Edit changelog a little for clarity and conciseness
[tor.git] / ChangeLog
blob5d91f82118f2d86aa1aba369fec51355ec4cc0fa
1 Changes in version 0.2.9.1-alpha - 2016-08-08
2   Tor 0.2.9.1-alpha is the first alpha release in the 0.2.9 development
3   series. It improves our support for hardened builds and compiler
4   warnings, deploys some critical infrastructure for improvements to
5   hidden services, includes a new timing backend that we hope to use for
6   better support for traffic padding, makes it easier for programmers to
7   log unexpected events, and contains other small improvements to
8   security, correctness, and performance.
10   Below are the changes since 0.2.8.6.
12   o New system requirements:
13     - Tor now requires Libevent version 2.0.10-stable or later. Older
14       versions of Libevent have less efficient backends for several
15       platforms, and lack the DNS code that we use for our server-side
16       DNS support. This implements ticket 19554.
17     - Tor now requires zlib version 1.2 or later, for security,
18       efficiency, and (eventually) gzip support. (Back when we started,
19       zlib 1.1 and zlib 1.0 were still found in the wild. 1.2 was
20       released in 2003. We recommend the latest version.)
22   o Major features (build, hardening):
23     - Tor now builds with -ftrapv by default on compilers that support
24       it. This option detects signed integer overflow (which C forbids),
25       and turns it into a hard-failure. We do not apply this option to
26       code that needs to run in constant time to avoid side-channels;
27       instead, we use -fwrapv in that code. Closes ticket 17983.
28     - When --enable-expensive-hardening is selected, stop applying the
29       clang/gcc sanitizers to code that needs to run in constant time.
30       Although we are aware of no introduced side-channels, we are not
31       able to prove that there are none. Related to ticket 17983.
33   o Major features (compilation):
34     - Our big list of extra GCC warnings is now enabled by default when
35       building with GCC (or with anything like Clang that claims to be
36       GCC-compatible). To make all warnings into fatal compilation
37       errors, pass --enable-fatal-warnings to configure. Closes
38       ticket 19044.
39     - Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS to automatically
40       turn on C and POSIX extensions. (Previously, we attempted to do
41       this on an ad hoc basis.) Closes ticket 19139.
43   o Major features (directory authorities, hidden services):
44     - Directory authorities can now perform the shared randomness
45       protocol specified by proposal 250. Using this protocol, directory
46       authorities generate a global fresh random value every day. In the
47       future, this value will be used by hidden services to select
48       HSDirs. This release implements the directory authority feature;
49       the hidden service side will be implemented in the future as part
50       of proposal 224. Resolves ticket 16943; implements proposal 250.
52   o Major features (downloading, random exponential backoff):
53     - When we fail to download an object from a directory service, wait
54       for an (exponentially increasing) randomized amount of time before
55       retrying, rather than a fixed interval as we did before. This
56       prevents a group of Tor instances from becoming too synchronized,
57       or a single Tor instance from becoming too predictable, in its
58       download schedule. Closes ticket 15942.
60   o Major bugfixes (exit policies):
61     - Avoid disclosing exit outbound bind addresses, configured port
62       bind addresses, and local interface addresses in relay descriptors
63       by default under ExitPolicyRejectPrivate. Instead, only reject
64       these (otherwise unlisted) addresses if
65       ExitPolicyRejectLocalInterfaces is set. Fixes bug 18456; bugfix on
66       0.2.7.2-alpha. Patch by teor.
68   o Major bugfixes (hidden service client):
69     - Allow Tor clients with appropriate controllers to work with
70       FetchHidServDescriptors set to 0. Previously, this option also
71       disabled descriptor cache lookup, thus breaking hidden services
72       entirely. Fixes bug 18704; bugfix on 0.2.0.20-rc. Patch by "twim".
74   o Minor features (build, hardening):
75     - Detect and work around a libclang_rt problem that would prevent
76       clang from finding __mulodi4() on some 32-bit platforms, and thus
77       keep -ftrapv from linking on those systems. Closes ticket 19079.
78     - When building on a system without runtime support for the runtime
79       hardening options, try to log a useful warning at configuration
80       time, rather than an incomprehensible warning at link time. If
81       expensive hardening was requested, this warning becomes an error.
82       Closes ticket 18895.
84   o Minor features (code safety):
85     - In our integer-parsing functions, ensure that maxiumum value we
86       give is no smaller than the minimum value. Closes ticket 19063;
87       patch from U+039b.
89   o Minor features (controller):
90     - Implement new GETINFO queries for all downloads that use
91       download_status_t to schedule retries. This allows controllers to
92       examine the schedule for pending downloads. Closes ticket 19323.
93     - Allow controllers to configure basic client authorization on
94       hidden services when they create them with the ADD_ONION control
95       command. Implements ticket 15588. Patch by "special".
96     - Fire a STATUS_SERVER controller event whenever the hibernation
97       status changes between "awake"/"soft"/"hard". Closes ticket 18685.
99   o Minor features (directory authority):
100     - Directory authorities now only give the Guard flag to a relay if
101       they are also giving it the Stable flag. This change allows us to
102       simplify path selection for clients. It should have minimal effect
103       in practice, since >99% of Guards already have the Stable flag.
104       Implements ticket 18624.
105     - Directory authorities now write their v3-status-votes file out to
106       disk earlier in the consensus process, so we have a record of the
107       votes even if we abort the consensus process. Resolves
108       ticket 19036.
110   o Minor features (hidden service):
111     - Stop being so strict about the payload length of "rendezvous1"
112       cells. We used to be locked in to the "TAP" handshake length, and
113       now we can handle better handshakes like "ntor". Resolves
114       ticket 18998.
116   o Minor features (infrastructure, time):
117     - Tor now uses the operating system's monotonic timers (where
118       available) for internal fine-grained timing. Previously we would
119       look at the system clock, and then attempt to compensate for the
120       clock running backwards. Closes ticket 18908.
121     - Tor now includes an improved timer backend, so that we can
122       efficiently support tens or hundreds of thousands of concurrent
123       timers, as will be needed for some of our planned anti-traffic-
124       analysis work. This code is based on William Ahern's "timeout.c"
125       project, which implements a "tickless hierarchical timing wheel".
126       Closes ticket 18365.
128   o Minor features (logging):
129     - Provide a more useful warning message when configured with an
130       invalid Nickname. Closes ticket 18300; patch from "icanhasaccount".
131     - When dumping unparseable router descriptors, optionally store them
132       in separate files, named by digest, up to a configurable size
133       limit. You can change the size limit by setting the
134       MaxUnparseableDescSizeToLog option, and disable this feature by
135       setting that option to 0. Closes ticket 18322.
136     - Add a set of macros to check nonfatal assertions, for internal
137       use. Migrating more of our checks to these should help us avoid
138       needless crash bugs. Closes ticket 18613.
140   o Minor features (performance):
141     - Changer the "optimistic data" extension from "off by default" to
142       "on by default". The default was ordinarily overridden by a
143       consensus option, but when clients were bootstrapping for the
144       first time, they would not have a consensus to get the option
145       from. Changing this default When fetching a consensus for the
146       first time, use optimistic data. This saves a round-trip during
147       startup. Closes ticket 18815.
149   o Minor features (relay, usability):
150     - When the directory authorities refuse a bad relay's descriptor,
151       encourage the relay operator to contact us. Many relay operators
152       won't notice this line in their logs, but it's a win if even a few
153       learn why we don't like what their relay was doing. Resolves
154       ticket 18760.
156   o Minor features (testing):
157     - Let backtrace tests work correctly under AddressSanitizer. Fixes
158       part of bug 18934; bugfix on 0.2.5.2-alpha.
159     - Move the test-network.sh script to chutney, and modify tor's test-
160       network.sh to call the (newer) chutney version when available.
161       Resolves ticket 19116. Patch by teor.
162     - Use the lcov convention for marking lines as unreachable, so that
163       we don't count them when we're generating test coverage data.
164       Update our coverage tools to understand this convention. Closes
165       ticket 16792.
167   o Minor bugfixes (bootstrap):
168     - Remember the directory we fetched the consensus or previous
169       certificates from, and use it to fetch future authority
170       certificates. This change improves bootstrapping performance.
171       Fixes bug 18963; bugfix on 0.2.8.1-alpha.
173   o Minor bugfixes (build):
174     - The test-stem and test-network makefile targets now depend only on
175       the tor binary that they are testing. Previously, they depended on
176       "make all". Fixes bug 18240; bugfix on 0.2.8.2-alpha. Based on a
177       patch from "cypherpunks".
179   o Minor bugfixes (circuits):
180     - Make sure extend_info_from_router() is only called on servers.
181       Fixes bug 19639; bugfix on 0.2.8.1-alpha.
183   o Minor bugfixes (compilation):
184     - When building with Clang, use a full set of GCC warnings.
185       (Previously, we included only a subset, because of the way we
186       detected them.) Fixes bug 19216; bugfix on 0.2.0.1-alpha.
188   o Minor bugfixes (directory authority):
189     - Authorities now sort the "package" lines in their votes, for ease
190       of debugging. (They are already sorted in consensus documents.)
191       Fixes bug 18840; bugfix on 0.2.6.3-alpha.
192     - When parsing a detached signature, make sure we use the length of
193       the digest algorithm instead of an hardcoded DIGEST256_LEN in
194       order to avoid comparing bytes out-of-bounds with a smaller digest
195       length such as SHA1. Fixes bug 19066; bugfix on 0.2.2.6-alpha.
197   o Minor bugfixes (documentation):
198     - Document the --passphrase-fd option in the tor manpage. Fixes bug
199       19504; bugfix on 0.2.7.3-rc.
200     - Fix the description of the --passphrase-fd option in the
201       tor-gencert manpage. The option is used to pass the number of a
202       file descriptor to read the passphrase from, not to read the file
203       descriptor from. Fixes bug 19505; bugfix on 0.2.0.20-alpha.
205   o Minor bugfixes (ephemeral hidden service):
206     - When deleting an ephemeral hidden service, close its intro points
207       even if they are not completely open. Fixes bug 18604; bugfix
208       on 0.2.7.1-alpha.
210   o Minor bugfixes (guard selection):
211     - Use a single entry guard even if the NumEntryGuards consensus
212       parameter is not provided. Fixes bug 17688; bugfix
213       on 0.2.5.6-alpha.
214     - Don't mark guards as unreachable if connection_connect() fails.
215       That function fails for local reasons, so it shouldn't reveal
216       anything about the status of the guard. Fixes bug 14334; bugfix
217       on 0.2.3.10-alpha.
219   o Minor bugfixes (hidden service client):
220     - Increase the minimum number of internal circuits we preemptively
221       build from 2 to 3, so a circuit is available when a client
222       connects to another onion service. Fixes bug 13239; bugfix
223       on 0.1.0.1-rc.
225   o Minor bugfixes (logging):
226     - When logging a directory ownership mismatch, log the owning
227       username correctly. Fixes bug 19578; bugfix on 0.2.2.29-beta.
229   o Minor bugfixes (memory leaks):
230     - Fix a small, uncommon memory leak that could occur when reading a
231       truncated ed25519 key file. Fixes bug 18956; bugfix
232       on 0.2.6.1-alpha.
234   o Minor bugfixes (testing):
235     - Allow clients to retry HSDirs much faster in test networks. Fixes
236       bug 19702; bugfix on 0.2.7.1-alpha. Patch by teor.
237     - Disable ASAN's detection of segmentation faults while running
238       test_bt.sh, so that we can make sure that our own backtrace
239       generation code works. Fixes another aspect of bug 18934; bugfix
240       on 0.2.5.2-alpha. Patch from "cypherpunks".
241     - Fix the test-network-all target on out-of-tree builds by using the
242       correct path to the test driver script. Fixes bug 19421; bugfix
243       on 0.2.7.3-rc.
245   o Minor bugfixes (time):
246     - Improve overflow checks in tv_udiff and tv_mdiff. Fixes bug 19483;
247       bugfix on all released tor versions.
248     - When computing the difference between two times in milliseconds,
249       we now round to the nearest millisecond correctly. Previously, we
250       could sometimes round in the wrong direction. Fixes bug 19428;
251       bugfix on 0.2.2.2-alpha.
253   o Minor bugfixes (user interface):
254     - Display a more accurate number of suppressed messages in the log
255       rate-limiter. Previously, there was a potential integer overflow
256       in the counter. Now, if the number of messages hits a maximum, the
257       rate-limiter doesn't count any further. Fixes bug 19435; bugfix
258       on 0.2.4.11-alpha.
259     - Fix a typo in the passphrase prompt for the ed25519 identity key.
260       Fixes bug 19503; bugfix on 0.2.7.2-alpha.
262   o Code simplification and refactoring:
263     - Remove redundant declarations of the MIN macro. Closes
264       ticket 18889.
265     - Rename tor_dup_addr() to tor_addr_to_str_dup() to avoid confusion.
266       Closes ticket 18462; patch from "icanhasaccount".
267     - Split the 600-line directory_handle_command_get function into
268       separate functions for different URL types. Closes ticket 16698.
270   o Documentation:
271     - Fix spelling of "--enable-tor2web-mode" in the manpage. Closes
272       ticket 19153. Patch from "U+039b".
274   o Removed features:
275     - Remove support for "GET /tor/bytes.txt" DirPort request, and
276       "GETINFO dir-usage" controller request, which were only available
277       via a compile-time option in Tor anyway. Feature was added in
278       0.2.2.1-alpha. Resolves ticket 19035.
279     - There is no longer a compile-time option to disable support for
280       TransPort. (If you don't want TransPort; just don't use it.) Patch
281       from "U+039b". Closes ticket 19449.
283   o Testing:
284     - Run more workqueue tests as part of "make check". These had
285       previously been implemented, but you needed to know special
286       command-line options to enable them.
287     - We now have unit tests for our code to reject zlib "compression
288       bombs". (Fortunately, the code works fine.)
291 Changes in version 0.2.8.6 - 2016-08-02
293   Tor 0.2.8.6 is the first stable version of the Tor 0.2.8 series.
295   The Tor 0.2.8 series improves client bootstrapping performance,
296   completes the authority-side implementation of improved identity
297   keys for relays, and includes numerous bugfixes and performance
298   improvements throughout the program. This release continues to
299   improve the coverage of Tor's test suite.  For a full list of
300   changes since Tor 0.2.7, see the ReleaseNotes file.
302   Changes since 0.2.8.5-rc:
304   o Minor features (geoip):
305     - Update geoip and geoip6 to the July 6 2016 Maxmind GeoLite2
306       Country database.
308   o Minor bugfixes (compilation):
309     - Fix a compilation warning in the unit tests on systems where char
310       is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha.
312   o Minor bugfixes (fallback directories):
313     - Remove a fallback that was on the hardcoded list, then opted-out.
314       Fixes bug 19782; update to fallback list from 0.2.8.2-alpha.
316   o Minor bugfixes (Linux seccomp2 sandbox):
317     - Allow more syscalls when running with "Sandbox 1" enabled:
318       sysinfo, getsockopt(SO_SNDBUF), and setsockopt(SO_SNDBUFFORCE). On
319       some systems, these are required for Tor to start. Fixes bug
320       18397; bugfix on 0.2.5.1-alpha. Patch from Daniel Pinto.
321     - Allow IPPROTO_UDP datagram sockets when running with "Sandbox 1",
322       so that get_interface_address6_via_udp_socket_hack() can work.
323       Fixes bug 19660; bugfix on 0.2.5.1-alpha.
326 Changes in version 0.2.8.5-rc - 2016-07-07
327   Tor 0.2.8.5-rc is the second release candidate in the Tor 0.2.8
328   series. If we find no new bugs or regressions here, the first stable
329   0.2.8 release will be identical to it. It has a few small bugfixes
330   against previous versions.
332   o Directory authority changes:
333     - Urras is no longer a directory authority. Closes ticket 19271.
335   o Major bugfixes (heartbeat):
336     - Fix a regression that would crash Tor when the periodic
337       "heartbeat" log messages were disabled. Fixes bug 19454; bugfix on
338       tor-0.2.8.1-alpha. Reported by "kubaku".
340   o Minor features (build):
341     - Tor now again builds with the recent OpenSSL 1.1 development
342       branch (tested against 1.1.0-pre6-dev). Closes ticket 19499.
343     - When building manual pages, set the timezone to "UTC", so that the
344       output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha.
345       Patch from intrigeri.
347   o Minor bugfixes (fallback directory selection):
348     - Avoid errors during fallback selection if there are no eligible
349       fallbacks. Fixes bug 19480; bugfix on 0.2.8.3-alpha. Patch
350       by teor.
352   o Minor bugfixes (IPv6, microdescriptors):
353     - Don't check node addresses when we only have a routerstatus. This
354       allows IPv6-only clients to bootstrap by fetching microdescriptors
355       from fallback directory mirrors. (The microdescriptor consensus
356       has no IPv6 addresses in it.) Fixes bug 19608; bugfix
357       on 0.2.8.2-alpha.
359   o Minor bugfixes (logging):
360     - Reduce pointlessly verbose log messages when directory servers
361       can't be found. Fixes bug 18849; bugfix on 0.2.8.3-alpha and
362       0.2.8.1-alpha. Patch by teor.
363     - When a fallback directory changes its fingerprint from the hard-
364       coded fingerprint, log a less severe, more explanatory log
365       message. Fixes bug 18812; bugfix on 0.2.8.1-alpha. Patch by teor.
367   o Minor bugfixes (Linux seccomp2 sandboxing):
368     - Allow statistics to be written to disk when "Sandbox 1" is
369       enabled. Fixes bugs 19556 and 19957; bugfix on 0.2.5.1-alpha and
370       0.2.6.1-alpha respectively.
372   o Minor bugfixes (user interface):
373     - Remove a warning message "Service [scrubbed] not found after
374       descriptor upload". This message appears when one uses HSPOST
375       control command to upload a service descriptor. Since there is
376       only a descriptor and no service, showing this message is
377       pointless and confusing. Fixes bug 19464; bugfix on 0.2.7.2-alpha.
379   o Fallback directory list:
380     - Add a comment to the generated fallback directory list that
381       explains how to comment out unsuitable fallbacks in a way that's
382       compatible with the stem fallback parser.
383     - Update fallback whitelist and blacklist based on relay operator
384       emails. Blacklist unsuitable (non-working, over-volatile)
385       fallbacks. Resolves ticket 19071. Patch by teor.
386     - Update hard-coded fallback list to remove unsuitable fallbacks.
387       Resolves ticket 19071. Patch by teor.
390 Changes in version 0.2.8.4-rc - 2016-06-15
391   Tor 0.2.8.4-rc is the first release candidate in the Tor 0.2.8 series.
392   If we find no new bugs or regressions here, the first stable 0.2.8
393   release will be identical to it. It has a few small bugfixes against
394   previous versions.
396   o Major bugfixes (user interface):
397     - Correctly give a warning in the cases where a relay is specified
398       by nickname, and one such relay is found, but it is not officially
399       Named. Fixes bug 19203; bugfix on 0.2.3.1-alpha.
401   o Minor features (build):
402     - Tor now builds once again with the recent OpenSSL 1.1 development
403       branch (tested against 1.1.0-pre5 and 1.1.0-pre6-dev).
405   o Minor features (geoip):
406     - Update geoip and geoip6 to the June 7 2016 Maxmind GeoLite2
407       Country database.
409   o Minor bugfixes (compilation):
410     - Cause the unit tests to compile correctly on mingw64 versions that
411       lack sscanf. Fixes bug 19213; bugfix on 0.2.7.1-alpha.
413   o Minor bugfixes (downloading):
414     - Predict more correctly whether we'll be downloading over HTTP when
415       we determine the maximum length of a URL. This should avoid a
416       "BUG" warning about the Squid HTTP proxy and its URL limits. Fixes
417       bug 19191.
420 Changes in version 0.2.8.3-alpha - 2016-05-26
421   Tor 0.2.8.3-alpha resolves several bugs, most of them introduced over
422   the course of the 0.2.8 development cycle. It improves the behavior of
423   directory clients, fixes several crash bugs, fixes a gap in compiler
424   hardening, and allows the full integration test suite to run on
425   more platforms.
427   o Major bugfixes (security, client, DNS proxy):
428     - Stop a crash that could occur when a client running with DNSPort
429       received a query with multiple address types, and the first
430       address type was not supported. Found and fixed by Scott Dial.
431       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
433   o Major bugfixes (security, compilation):
434     - Correctly detect compiler flags on systems where _FORTIFY_SOURCE
435       is predefined. Previously, our use of -D_FORTIFY_SOURCE would
436       cause a compiler warning, thereby making other checks fail, and
437       needlessly disabling compiler-hardening support. Fixes one case of
438       bug 18841; bugfix on 0.2.3.17-beta. Patch from "trudokal".
440   o Major bugfixes (security, directory authorities):
441     - Fix a crash and out-of-bounds write during authority voting, when
442       the list of relays includes duplicate ed25519 identity keys. Fixes
443       bug 19032; bugfix on 0.2.8.2-alpha.
445   o Major bugfixes (client, bootstrapping):
446     - Check if bootstrap consensus downloads are still needed when the
447       linked connection attaches. This prevents tor making unnecessary
448       begindir-style connections, which are the only directory
449       connections tor clients make since the fix for 18483 was merged.
450     - Fix some edge cases where consensus download connections may not
451       have been closed, even though they were not needed. Related to fix
452       for 18809.
453     - Make relays retry consensus downloads the correct number of times,
454       rather than the more aggressive client retry count. Fixes part of
455       ticket 18809.
456     - Stop downloading consensuses when we have a consensus, even if we
457       don't have all the certificates for it yet. Fixes bug 18809;
458       bugfix on 0.2.8.1-alpha. Patches by arma and teor.
460   o Major bugfixes (directory mirrors):
461     - Decide whether to advertise begindir support in the the same way
462       we decide whether to advertise our DirPort. Allowing these
463       decisions to become out-of-sync led to surprising behavior like
464       advertising begindir support when hibernation made us not
465       advertise a DirPort. Resolves bug 18616; bugfix on 0.2.8.1-alpha.
466       Patch by teor.
468   o Major bugfixes (IPv6 bridges, client):
469     - Actually use IPv6 addresses when selecting directory addresses for
470       IPv6 bridges. Fixes bug 18921; bugfix on 0.2.8.1-alpha. Patch
471       by "teor".
473   o Major bugfixes (key management):
474     - If OpenSSL fails to generate an RSA key, do not retain a dangling
475       pointer to the previous (uninitialized) key value. The impact here
476       should be limited to a difficult-to-trigger crash, if OpenSSL is
477       running an engine that makes key generation failures possible, or
478       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
479       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
480       Baishakhi Ray.
482   o Major bugfixes (testing):
483     - Fix a bug that would block 'make test-network-all' on systems where
484       IPv6 packets were lost. Fixes bug 19008; bugfix on tor-0.2.7.3-rc.
485     - Avoid "WSANOTINITIALISED" warnings in the unit tests. Fixes bug 18668;
486       bugfix on 0.2.8.1-alpha.
488   o Minor features (clients):
489     - Make clients, onion services, and bridge relays always use an
490       encrypted begindir connection for directory requests. Resolves
491       ticket 18483. Patch by "teor".
493   o Minor features (fallback directory mirrors):
494     - Give each fallback the same weight for client selection; restrict
495       fallbacks to one per operator; report fallback directory detail
496       changes when rebuilding list; add new fallback directory mirrors
497       to the whitelist; update fallback directories based on the latest
498       OnionOO data; and any other minor simplifications and fixes.
499       Closes tasks 17158, 17905, 18749, bug 18689, and fixes part of bug
500       18812 on 0.2.8.1-alpha; patch by "teor".
502   o Minor features (geoip):
503     - Update geoip and geoip6 to the May 4 2016 Maxmind GeoLite2
504       Country database.
506   o Minor bugfixes (assert, portability):
507     - Fix an assertion failure in memarea.c on systems where "long" is
508       shorter than the size of a pointer. Fixes bug 18716; bugfix
509       on 0.2.1.1-alpha.
511   o Minor bugfixes (bootstrap):
512     - Consistently use the consensus download schedule for authority
513       certificates. Fixes bug 18816; bugfix on 0.2.4.13-alpha.
515   o Minor bugfixes (build):
516     - Remove a pair of redundant AM_CONDITIONAL declarations from
517       configure.ac. Fixes one final case of bug 17744; bugfix
518       on 0.2.8.2-alpha.
519     - Resolve warnings when building on systems that are concerned with
520       signed char. Fixes bug 18728; bugfix on 0.2.7.2-alpha
521       and 0.2.6.1-alpha.
522     - When libscrypt.h is found, but no libscrypt library can be linked,
523       treat libscrypt as absent. Fixes bug 19161; bugfix
524       on 0.2.6.1-alpha.
526   o Minor bugfixes (client):
527     - Turn all TestingClientBootstrap* into non-testing torrc options.
528       This changes simply renames them by removing "Testing" in front of
529       them and they do not require TestingTorNetwork to be enabled
530       anymore. Fixes bug 18481; bugfix on 0.2.8.1-alpha.
531     - Make directory node selection more reliable, mainly for IPv6-only
532       clients and clients with few reachable addresses. Fixes bug 18929;
533       bugfix on 0.2.8.1-alpha. Patch by "teor".
535   o Minor bugfixes (controller, microdescriptors):
536     - Make GETINFO dir/status-vote/current/consensus conform to the
537       control specification by returning "551 Could not open cached
538       consensus..." when not caching consensuses. Fixes bug 18920;
539       bugfix on 0.2.2.6-alpha.
541   o Minor bugfixes (crypto, portability):
542     - The SHA3 and SHAKE routines now produce the correct output on Big
543       Endian systems. No code calls either algorithm yet, so this is
544       primarily a build fix. Fixes bug 18943; bugfix on 0.2.8.1-alpha.
545     - Tor now builds again with the recent OpenSSL 1.1 development
546       branch (tested against 1.1.0-pre4 and 1.1.0-pre5-dev). Closes
547       ticket 18286.
549   o Minor bugfixes (directories):
550     - When fetching extrainfo documents, compare their SHA256 digests
551       and Ed25519 signing key certificates with the routerinfo that led
552       us to fetch them, rather than with the most recent routerinfo.
553       Otherwise we generate many spurious warnings about mismatches.
554       Fixes bug 17150; bugfix on 0.2.7.2-alpha.
556   o Minor bugfixes (logging):
557     - When we can't generate a signing key because OfflineMasterKey is
558       set, do not imply that we should have been able to load it. Fixes
559       bug 18133; bugfix on 0.2.7.2-alpha.
560     - Stop periodic_event_dispatch() from blasting twelve lines per
561       second at loglevel debug. Fixes bug 18729; fix on 0.2.8.1-alpha.
562     - When rejecting a misformed INTRODUCE2 cell, only log at
563       PROTOCOL_WARN severity. Fixes bug 18761; bugfix on 0.2.8.2-alpha.
565   o Minor bugfixes (pluggable transports):
566     - Avoid reporting a spurious error when we decide that we don't need
567       to terminate a pluggable transport because it has already exited.
568       Fixes bug 18686; bugfix on 0.2.5.5-alpha.
570   o Minor bugfixes (pointer arithmetic):
571     - Fix a bug in memarea_alloc() that could have resulted in remote
572       heap write access, if Tor had ever passed an unchecked size to
573       memarea_alloc(). Fortunately, all the sizes we pass to
574       memarea_alloc() are pre-checked to be less than 128 kilobytes.
575       Fixes bug 19150; bugfix on 0.2.1.1-alpha. Bug found by
576       Guido Vranken.
578   o Minor bugfixes (relays):
579     - Consider more config options when relays decide whether to
580       regenerate their descriptor. Fixes more of bug 12538; bugfix
581       on 0.2.8.1-alpha.
582     - Resolve some edge cases where we might launch an ORPort
583       reachability check even when DisableNetwork is set. Noticed while
584       fixing bug 18616; bugfix on 0.2.3.9-alpha.
586   o Minor bugfixes (statistics):
587     - We now include consensus downloads via IPv6 in our directory-
588       request statistics. Fixes bug 18460; bugfix on 0.2.3.14-alpha.
590   o Minor bugfixes (testing):
591     - Allow directories in small networks to bootstrap by skipping
592       DirPort checks when the consensus has no exits. Fixes bug 19003;
593       bugfix on 0.2.8.1-alpha. Patch by teor.
594     - Fix a small memory leak that would occur when the
595       TestingEnableCellStatsEvent option was turned on. Fixes bug 18673;
596       bugfix on 0.2.5.2-alpha.
598   o Minor bugfixes (time handling):
599     - When correcting a corrupt 'struct tm' value, fill in the tm_wday
600       field. Otherwise, our unit tests crash on Windows. Fixes bug
601       18977; bugfix on 0.2.2.25-alpha.
603   o Documentation:
604     - Document the contents of the 'datadir/keys' subdirectory in the
605       manual page. Closes ticket 17621.
606     - Stop recommending use of nicknames to identify relays in our
607       MapAddress documentation. Closes ticket 18312.
610 Changes in version 0.2.8.2-alpha - 2016-03-28
611   Tor 0.2.8.2-alpha is the second alpha in its series. It fixes numerous
612   bugs in earlier versions of Tor, including some that prevented
613   authorities using Tor 0.2.7.x from running correctly. IPv6 and
614   directory support should also be much improved.
616   o New system requirements:
617     - Tor no longer supports versions of OpenSSL with a broken
618       implementation of counter mode. (This bug was present in OpenSSL
619       1.0.0, and was fixed in OpenSSL 1.0.0a.) Tor still detects, but no
620       longer runs with, these versions.
621     - Tor no longer attempts to support platforms where the "time_t"
622       type is unsigned. (To the best of our knowledge, only OpenVMS does
623       this, and Tor has never actually built on OpenVMS.) Closes
624       ticket 18184.
625     - Tor now uses Autoconf version 2.63 or later, and Automake 1.11 or
626       later (released in 2008 and 2009 respectively). If you are
627       building Tor from the git repository instead of from the source
628       distribution, and your tools are older than this, you will need to
629       upgrade. Closes ticket 17732.
631   o Major bugfixes (security, pointers):
632     - Avoid a difficult-to-trigger heap corruption attack when extending
633       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
634       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
635       Reported by Guido Vranken.
637   o Major bugfixes (bridges, pluggable transports):
638     - Modify the check for OR connections to private addresses. Allow
639       bridges on private addresses, including pluggable transports that
640       ignore the (potentially private) address in the bridge line. Fixes
641       bug 18517; bugfix on 0.2.8.1-alpha. Reported by gk, patch by teor.
643   o Major bugfixes (compilation):
644     - Repair hardened builds under the clang compiler. Previously, our
645       use of _FORTIFY_SOURCE would conflict with clang's address
646       sanitizer. Fixes bug 14821; bugfix on 0.2.5.4-alpha.
648   o Major bugfixes (crash on shutdown):
649     - Correctly handle detaching circuits from muxes when shutting down.
650       Fixes bug 18116; bugfix on 0.2.8.1-alpha.
651     - Fix an assert-on-exit bug related to counting memory usage in
652       rephist.c. Fixes bug 18651; bugfix on 0.2.8.1-alpha.
654   o Major bugfixes (crash on startup):
655     - Fix a segfault during startup: If a Unix domain socket was
656       configured as listener (such as a ControlSocket or a SocksPort
657       "unix:" socket), and tor was started as root but not configured to
658       switch to another user, tor would segfault while trying to string
659       compare a NULL value. Fixes bug 18261; bugfix on 0.2.8.1-alpha.
660       Patch by weasel.
662   o Major bugfixes (dns proxy mode, crash):
663     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
664       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
666   o Major bugfixes (relays, bridge clients):
667     - Ensure relays always allow IPv4 OR and Dir connections. Ensure
668       bridge clients use the address configured in the bridge line.
669       Fixes bug 18348; bugfix on 0.2.8.1-alpha. Reported by sysrqb,
670       patch by teor.
672   o Major bugfixes (voting):
673     - Actually enable support for authorities to match routers by their
674       Ed25519 identities. Previously, the code had been written, but
675       some debugging code that had accidentally been left in the
676       codebase made it stay turned off. Fixes bug 17702; bugfix
677       on 0.2.7.2-alpha.
678     - When collating votes by Ed25519 identities, authorities now
679       include a "NoEdConsensus" flag if the ed25519 value (or lack
680       thereof) for a server does not reflect the majority consensus.
681       Related to bug 17668; bugfix on 0.2.7.2-alpha.
682     - When generating a vote with keypinning disabled, never include two
683       entries for the same ed25519 identity. This bug was causing
684       authorities to generate votes that they could not parse when a
685       router violated key pinning by changing its RSA identity but
686       keeping its Ed25519 identity. Fixes bug 17668; fixes part of bug
687       18318. Bugfix on 0.2.7.2-alpha.
689   o Minor features (security, win32):
690     - Set SO_EXCLUSIVEADDRUSE on Win32 to avoid a local port-stealing
691       attack. Fixes bug 18123; bugfix on all tor versions. Patch
692       by teor.
694   o Minor features (bug-resistance):
695     - Make Tor survive errors involving connections without a
696       corresponding event object. Previously we'd fail with an
697       assertion; now we produce a log message. Related to bug 16248.
699   o Minor features (build):
700     - Detect systems with FreeBSD-derived kernels (such as GNU/kFreeBSD)
701       as having possible IPFW support. Closes ticket 18448. Patch from
702       Steven Chamberlain.
704   o Minor features (code hardening):
705     - Use tor_snprintf() and tor_vsnprintf() even in external and low-
706       level code, to harden against accidental failures to NUL-
707       terminate. Part of ticket 17852. Patch from jsturgix. Found
708       with Flawfinder.
710   o Minor features (crypto):
711     - Validate the hard-coded Diffie-Hellman parameters and ensure that
712       p is a safe prime, and g is a suitable generator. Closes
713       ticket 18221.
715   o Minor features (geoip):
716     - Update geoip and geoip6 to the March 3 2016 Maxmind GeoLite2
717       Country database.
719   o Minor features (hidden service directory):
720     - Streamline relay-side hsdir handling: when relays consider whether
721       to accept an uploaded hidden service descriptor, they no longer
722       check whether they are one of the relays in the network that is
723       "supposed" to handle that descriptor. Implements ticket 18332.
725   o Minor features (IPv6):
726     - Add ClientPreferIPv6DirPort, which is set to 0 by default. If set
727       to 1, tor prefers IPv6 directory addresses.
728     - Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor
729       avoids using IPv4 for client OR and directory connections.
730     - Try harder to obey the IP version restrictions "ClientUseIPv4 0",
731       "ClientUseIPv6 0", "ClientPreferIPv6ORPort", and
732       "ClientPreferIPv6DirPort". Closes ticket 17840; patch by teor.
734   o Minor features (linux seccomp2 sandbox):
735     - Reject attempts to change our Address with "Sandbox 1" enabled.
736       Changing Address with Sandbox turned on would never actually work,
737       but previously it would fail in strange and confusing ways. Found
738       while fixing 18548.
740   o Minor features (robustness):
741     - Exit immediately with an error message if the code attempts to use
742       Libevent without having initialized it. This should resolve some
743       frequently-made mistakes in our unit tests. Closes ticket 18241.
745   o Minor features (unix domain sockets):
746     - Add a new per-socket option, RelaxDirModeCheck, to allow creating
747       Unix domain sockets without checking the permissions on the parent
748       directory. (Tor checks permissions by default because some
749       operating systems only check permissions on the parent directory.
750       However, some operating systems do look at permissions on the
751       socket, and tor's default check is unneeded.) Closes ticket 18458.
752       Patch by weasel.
754   o Minor bugfixes (exit policies, security):
755     - Refresh an exit relay's exit policy when interface addresses
756       change. Previously, tor only refreshed the exit policy when the
757       configured external address changed. Fixes bug 18208; bugfix on
758       0.2.7.3-rc. Patch by teor.
760   o Minor bugfixes (security, hidden services):
761     - Prevent hidden services connecting to client-supplied rendezvous
762       addresses that are reserved as internal or multicast. Fixes bug
763       8976; bugfix on 0.2.3.21-rc. Patch by dgoulet and teor.
765   o Minor bugfixes (build):
766     - Do not link the unit tests against both the testing and non-
767       testing versions of the static libraries. Fixes bug 18490; bugfix
768       on 0.2.7.1-alpha.
769     - Avoid spurious failures from configure files related to calling
770       exit(0) in TOR_SEARCH_LIBRARY. Fixes bug 18625; bugfix on
771       0.2.0.1-alpha. Patch from "cypherpunks".
772     - Silence spurious clang-scan warnings in the ed25519_donna code by
773       explicitly initializing some objects. Fixes bug 18384; bugfix on
774       0.2.7.2-alpha. Patch by teor.
776   o Minor bugfixes (client, bootstrap):
777     - Count receipt of new microdescriptors as progress towards
778       bootstrapping. Previously, with EntryNodes set, Tor might not
779       successfully repopulate the guard set on bootstrapping. Fixes bug
780       16825; bugfix on 0.2.3.1-alpha.
782   o Minor bugfixes (code correctness):
783     - Update to the latest version of Trunnel, which tries harder to
784       avoid generating code that can invoke memcpy(p,NULL,0). Bug found
785       by clang address sanitizer. Fixes bug 18373; bugfix
786       on 0.2.7.2-alpha.
788   o Minor bugfixes (configuration):
789     - Fix a tiny memory leak when parsing a port configuration ending in
790       ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha.
792   o Minor bugfixes (containers):
793     - If we somehow attempt to construct a heap with more than
794       1073741822 elements, avoid an integer overflow when maintaining
795       the heap property. Fixes bug 18296; bugfix on 0.1.2.1-alpha.
797   o Minor bugfixes (correctness):
798     - Fix a bad memory handling bug that would occur if we had queued a
799       cell on a channel's incoming queue. Fortunately, we can't actually
800       queue a cell like that as our code is constructed today, but it's
801       best to avoid this kind of error, even if there isn't any code
802       that triggers it today. Fixes bug 18570; bugfix on 0.2.4.4-alpha.
804   o Minor bugfixes (directory):
805     - When generating a URL for a directory server on an IPv6 address,
806       wrap the IPv6 address in square brackets. Fixes bug 18051; bugfix
807       on 0.2.3.9-alpha. Patch from Malek.
809   o Minor bugfixes (fallback directory mirrors):
810     - When requesting extrainfo descriptors from a trusted directory
811       server, check whether it is an authority or a fallback directory
812       which supports extrainfo descriptors. Fixes bug 18489; bugfix on
813       0.2.4.7-alpha. Reported by atagar, patch by teor.
815   o Minor bugfixes (hidden service, client):
816     - Handle the case where the user makes several fast consecutive
817       requests to the same .onion address. Previously, the first six
818       requests would each trigger a descriptor fetch, each picking a
819       directory (there are 6 overall) and the seventh one would fail
820       because no directories were left, thereby triggering a close on
821       all current directory connections asking for the hidden service.
822       The solution here is to not close the connections if we have
823       pending directory fetches. Fixes bug 15937; bugfix
824       on 0.2.7.1-alpha.
826   o Minor bugfixes (hidden service, control port):
827     - Add the onion address to the HS_DESC event for the UPLOADED action
828       both on success or failure. It was previously hardcoded with
829       UNKNOWN. Fixes bug 16023; bugfix on 0.2.7.2-alpha.
831   o Minor bugfixes (hidden service, directory):
832     - Bridges now refuse "rendezvous2" (hidden service descriptor)
833       publish attempts. Suggested by ticket 18332.
835   o Minor bugfixes (linux seccomp2 sandbox):
836     - Allow the setrlimit syscall, and the prlimit and prlimit64
837       syscalls, which some libc implementations use under the hood.
838       Fixes bug 15221; bugfix on 0.2.5.1-alpha.
839     - Avoid a 10-second delay when starting as a client with "Sandbox 1"
840       enabled and no DNS resolvers configured. This should help TAILS
841       start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha.
842     - Fix the sandbox's interoperability with unix domain sockets under
843       setuid. Fixes bug 18253; bugfix on 0.2.8.1-alpha.
845   o Minor bugfixes (logging):
846     - When logging information about an unparsable networkstatus vote or
847       consensus, do not say "vote" when we mean consensus. Fixes bug
848       18368; bugfix on 0.2.0.8-alpha.
849     - Scrub service name in "unrecognized service ID" log messages.
850       Fixes bug 18600; bugfix on 0.2.4.11-alpha.
851     - Downgrade logs and backtraces about IP versions to info-level.
852       Only log backtraces once each time tor runs. Assists in diagnosing
853       bug 18351; bugfix on 0.2.8.1-alpha. Reported by sysrqb and
854       Christian, patch by teor.
856   o Minor bugfixes (memory safety):
857     - Avoid freeing an uninitialized pointer when opening a socket fails
858       in get_interface_addresses_ioctl(). Fixes bug 18454; bugfix on
859       0.2.3.11-alpha. Reported by toralf and "cypherpunks", patch
860       by teor.
861     - Correctly duplicate addresses in get_interface_address6_list().
862       Fixes bug 18454; bugfix on 0.2.8.1-alpha. Reported by toralf,
863       patch by "cypherpunks".
864     - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix
865       on 0.2.0.1-alpha.
866     - Fix a memory leak in "tor --list-fingerprint". Fixes part of bug
867       18672; bugfix on 0.2.5.1-alpha.
869   o Minor bugfixes (private directory):
870     - Prevent a race condition when creating private directories. Fixes
871       part of bug 17852; bugfix on 0.0.2pre13. Part of ticket 17852.
872       Patch from jsturgix. Found with Flawfinder.
874   o Minor bugfixes (test networks, IPv6):
875     - Allow internal IPv6 addresses in descriptors in test networks.
876       Fixes bug 17153; bugfix on 0.2.3.16-alpha. Patch by teor, reported
877       by karsten.
879   o Minor bugfixes (testing):
880     - We no longer disable assertions in the unit tests when coverage is
881       enabled. Instead, we require you to say --disable-asserts-in-tests
882       to the configure script if you need assertions disabled in the
883       unit tests (for example, if you want to perform branch coverage).
884       Fixes bug 18242; bugfix on 0.2.7.1-alpha.
886   o Minor bugfixes (time parsing):
887     - Avoid overflow in tor_timegm when parsing dates in and after 2038
888       on platforms with 32-bit time_t. Fixes bug 18479; bugfix on
889       0.0.2pre14. Patch by teor.
891   o Minor bugfixes (tor-gencert):
892     - Correctly handle the case where an authority operator enters a
893       passphrase but sends an EOF before sending a newline. Fixes bug
894       17443; bugfix on 0.2.0.20-rc. Found by junglefowl.
896   o Code simplification and refactoring:
897     - Quote all the string interpolations in configure.ac -- even those
898       which we are pretty sure can't contain spaces. Closes ticket
899       17744. Patch from zerosion.
900     - Remove specialized code for non-inplace AES_CTR. 99% of our AES is
901       inplace, so there's no need to have a separate implementation for
902       the non-inplace code. Closes ticket 18258. Patch from Malek.
903     - Simplify return types for some crypto functions that can't
904       actually fail. Patch from Hassan Alsibyani. Closes ticket 18259.
906   o Documentation:
907     - Change build messages to refer to "Fedora" instead of "Fedora
908       Core", and "dnf" instead of "yum". Closes tickets 18459 and 18426.
909       Patches from "icanhasaccount" and "cypherpunks".
911   o Removed features:
912     - We no longer maintain an internal freelist in memarea.c.
913       Allocators should be good enough to make this code unnecessary,
914       and it's doubtful that it ever had any performance benefit.
916   o Testing:
917     - Fix several warnings from clang's address sanitizer produced in
918       the unit tests.
919     - Treat backtrace test failures as expected on FreeBSD until we
920       solve bug 17808. Closes ticket 18204.
923 Changes in version 0.2.8.1-alpha - 2016-02-04
924   Tor 0.2.8.1-alpha is the first alpha release in its series. It
925   includes numerous small features and bugfixes against previous Tor
926   versions, and numerous small infrastructure improvements. The most
927   notable features are a set of improvements to the directory subsystem.
929   o Major features (security, Linux):
930     - When Tor starts as root on Linux and is told to switch user ID, it
931       can now retain the capability to bind to low ports. By default,
932       Tor will do this only when it's switching user ID and some low
933       ports have been configured. You can change this behavior with the
934       new option KeepBindCapabilities. Closes ticket 8195.
936   o Major features (directory system):
937     - When bootstrapping multiple consensus downloads at a time, use the
938       first one that starts downloading, and close the rest. This
939       reduces failures when authorities or fallback directories are slow
940       or down. Together with the code for feature 15775, this feature
941       should reduces failures due to fallback churn. Implements ticket
942       4483. Patch by "teor". Implements IPv4 portions of proposal 210 by
943       "mikeperry" and "teor".
944     - Include a trial list of default fallback directories, based on an
945       opt-in survey of suitable relays. Doing this should make clients
946       bootstrap more quickly and reliably, and reduce the load on the
947       directory authorities. Closes ticket 15775. Patch by "teor".
948       Candidates identified using an OnionOO script by "weasel", "teor",
949       "gsathya", and "karsten".
950     - Previously only relays that explicitly opened a directory port
951       (DirPort) accepted directory requests from clients. Now all
952       relays, with and without a DirPort, accept and serve tunneled
953       directory requests that they receive through their ORPort. You can
954       disable this behavior using the new DirCache option. Closes
955       ticket 12538.
957   o Major key updates:
958     - Update the V3 identity key for the dannenberg directory authority:
959       it was changed on 18 November 2015. Closes task 17906. Patch
960       by "teor".
962   o Minor features (security, clock):
963     - Warn when the system clock appears to move back in time (when the
964       state file was last written in the future). Tor doesn't know that
965       consensuses have expired if the clock is in the past. Patch by
966       "teor". Implements ticket 17188.
968   o Minor features (security, exit policies):
969     - ExitPolicyRejectPrivate now rejects more private addresses by
970       default. Specifically, it now rejects the relay's outbound bind
971       addresses (if configured), and the relay's configured port
972       addresses (such as ORPort and DirPort). Fixes bug 17027; bugfix on
973       0.2.0.11-alpha. Patch by "teor".
975   o Minor features (security, memory erasure):
976     - Set the unused entries in a smartlist to NULL. This helped catch
977       a (harmless) bug, and shouldn't affect performance too much.
978       Implements ticket 17026.
979     - Use SecureMemoryWipe() function to securely clean memory on
980       Windows. Previously we'd use OpenSSL's OPENSSL_cleanse() function.
981       Implements feature 17986.
982     - Use explicit_bzero or memset_s when present. Previously, we'd use
983       OpenSSL's OPENSSL_cleanse() function. Closes ticket 7419; patches
984       from <logan@hackers.mu> and <selven@hackers.mu>.
985     - Make memwipe() do nothing when passed a NULL pointer or buffer of
986       zero size. Check size argument to memwipe() for underflow. Fixes
987       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
988       patch by "teor".
990   o Minor features (security, RNG):
991     - Adjust Tor's use of OpenSSL's RNG APIs so that they absolutely,
992       positively are not allowed to fail. Previously we depended on
993       internal details of OpenSSL's behavior. Closes ticket 17686.
994     - Never use the system entropy output directly for anything besides
995       seeding the PRNG. When we want to generate important keys, instead
996       of using system entropy directly, we now hash it with the PRNG
997       stream. This may help resist certain attacks based on broken OS
998       entropy implementations. Closes part of ticket 17694.
999     - Use modern system calls (like getentropy() or getrandom()) to
1000       generate strong entropy on platforms that have them. Closes
1001       ticket 13696.
1003   o Minor features (accounting):
1004     - Added two modes to the AccountingRule option: One for limiting
1005       only the number of bytes sent ("AccountingRule out"), and one for
1006       limiting only the number of bytes received ("AccountingRule in").
1007       Closes ticket 15989; patch from "unixninja92".
1009   o Minor features (build):
1010     - Since our build process now uses "make distcheck", we no longer
1011       force "make dist" to depend on "make check". Closes ticket 17893;
1012       patch from "cypherpunks."
1013     - Tor now builds successfully with the recent OpenSSL 1.1
1014       development branch, and with the latest LibreSSL. Closes tickets
1015       17549, 17921, and 17984.
1017   o Minor features (controller):
1018     - Adds the FallbackDir entries to 'GETINFO config/defaults'. Closes
1019       tickets 16774 and 17817. Patch by George Tankersley.
1020     - New 'GETINFO hs/service/desc/id/' command to retrieve a hidden
1021       service descriptor from a service's local hidden service
1022       descriptor cache. Closes ticket 14846.
1023     - Add 'GETINFO exit-policy/reject-private/[default,relay]', so
1024       controllers can examine the the reject rules added by
1025       ExitPolicyRejectPrivate. This makes it easier for stem to display
1026       exit policies.
1028   o Minor features (crypto):
1029     - Add SHA512 support to crypto.c. Closes ticket 17663; patch from
1030       George Tankersley.
1031     - Add SHA3 and SHAKE support to crypto.c. Closes ticket 17783.
1032     - When allocating a digest state object, allocate no more space than
1033       we actually need. Previously, we would allocate as much space as
1034       the state for the largest algorithm would need. This change saves
1035       up to 672 bytes per circuit. Closes ticket 17796.
1036     - Improve performance when hashing non-multiple of 8 sized buffers,
1037       based on Andrew Moon's public domain SipHash-2-4 implementation.
1038       Fixes bug 17544; bugfix on 0.2.5.3-alpha.
1040   o Minor features (directory downloads):
1041     - Wait for busy authorities and fallback directories to become non-
1042       busy when bootstrapping. (A similar change was made in 6c443e987d
1043       for directory caches chosen from the consensus.) Closes ticket
1044       17864; patch by "teor".
1045     - Add UseDefaultFallbackDirs, which enables any hard-coded fallback
1046       directory mirrors. The default is 1; set it to 0 to disable
1047       fallbacks. Implements ticket 17576. Patch by "teor".
1049   o Minor features (geoip):
1050     - Update geoip and geoip6 to the January 5 2016 Maxmind GeoLite2
1051       Country database.
1053   o Minor features (IPv6):
1054     - Add an argument 'ipv6=address:orport' to the DirAuthority and
1055       FallbackDir torrc options, to specify an IPv6 address for an
1056       authority or fallback directory. Add hard-coded ipv6 addresses for
1057       directory authorities that have them. Closes ticket 17327; patch
1058       from Nick Mathewson and "teor".
1059     - Add address policy assume_action support for IPv6 addresses.
1060     - Limit IPv6 mask bits to 128.
1061     - Warn when comparing against an AF_UNSPEC address in a policy, it's
1062       almost always a bug. Closes ticket 17863; patch by "teor".
1063     - Allow users to configure directory authorities and fallback
1064       directory servers with IPv6 addresses and ORPorts. Resolves
1065       ticket 6027.
1066     - routerset_parse now accepts IPv6 literal addresses. Fixes bug
1067       17060; bugfix on 0.2.1.3-alpha. Patch by "teor".
1068     - Make tor_ersatz_socketpair work on IPv6-only systems. Fixes bug
1069       17638; bugfix on 0.0.2pre8. Patch by "teor".
1071   o Minor features (logging):
1072     - When logging to syslog, allow a tag to be added to the syslog
1073       identity (the string prepended to every log message). The tag can
1074       be configured with SyslogIdentityTag and defaults to none. Setting
1075       it to "foo" will cause logs to be tagged as "Tor-foo". Closes
1076       ticket 17194.
1078   o Minor features (portability):
1079     - Use timingsafe_memcmp() where available. Closes ticket 17944;
1080       patch from <logan@hackers.mu>.
1082   o Minor features (relay, address discovery):
1083     - Add a family argument to get_interface_addresses_raw() and
1084       subfunctions to make network interface address interogation more
1085       efficient. Now Tor can specifically ask for IPv4, IPv6 or both
1086       types of interfaces from the operating system. Resolves
1087       ticket 17950.
1088     - When get_interface_address6_list(.,AF_UNSPEC,.) is called and
1089       fails to enumerate interface addresses using the platform-specific
1090       API, have it rely on the UDP socket fallback technique to try and
1091       find out what IP addresses (both IPv4 and IPv6) our machine has.
1092       Resolves ticket 17951.
1094   o Minor features (replay cache):
1095     - The replay cache now uses SHA256 instead of SHA1. Implements
1096       feature 8961. Patch by "teor", issue reported by "rransom".
1098   o Minor features (unix file permissions):
1099     - Defer creation of Unix sockets until after setuid. This avoids
1100       needing CAP_CHOWN and CAP_FOWNER when using systemd's
1101       CapabilityBoundingSet, or chown and fowner when using SELinux.
1102       Implements part of ticket 17562. Patch from Jamie Nguyen.
1103     - If any directory created by Tor is marked as group readable, the
1104       filesystem group is allowed to be either the default GID or the
1105       root user. Allowing root to read the DataDirectory prevents the
1106       need for CAP_READ_SEARCH when using systemd's
1107       CapabilityBoundingSet, or dac_read_search when using SELinux.
1108       Implements part of ticket 17562. Patch from Jamie Nguyen.
1109     - Introduce a new DataDirectoryGroupReadable option. If it is set to
1110       1, the DataDirectory will be made readable by the default GID.
1111       Implements part of ticket 17562. Patch from Jamie Nguyen.
1113   o Minor bugfixes (accounting):
1114     - The max bandwidth when using 'AccountRule sum' is now correctly
1115       logged. Fixes bug 18024; bugfix on 0.2.6.1-alpha. Patch
1116       from "unixninja92".
1118   o Minor bugfixes (code correctness):
1119     - When closing an entry connection, generate a warning if we should
1120       have sent an end cell for it but we haven't. Fixes bug 17876;
1121       bugfix on 0.2.3.2-alpha.
1122     - Assert that allocated memory held by the reputation code is freed
1123       according to its internal counters. Fixes bug 17753; bugfix
1124       on 0.1.1.1-alpha.
1125     - Assert when the TLS contexts fail to initialize. Fixes bug 17683;
1126       bugfix on 0.0.6.
1128   o Minor bugfixes (compilation):
1129     - Mark all object files that include micro-revision.i as depending
1130       on it, so as to make parallel builds more reliable. Fixes bug
1131       17826; bugfix on 0.2.5.1-alpha.
1132     - Don't try to use the pthread_condattr_setclock() function unless
1133       it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug
1134       17819; bugfix on 0.2.6.3-alpha.
1135     - Fix backtrace compilation on FreeBSD. Fixes bug 17827; bugfix
1136       on 0.2.5.2-alpha.
1137     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
1138       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
1139     - Fix search for libevent libraries on OpenBSD (and other systems
1140       that install libevent 1 and libevent 2 in parallel). Fixes bug
1141       16651; bugfix on 0.1.0.7-rc. Patch from "rubiate".
1142     - Isolate environment variables meant for tests from the rest of the
1143       build system. Fixes bug 17818; bugfix on 0.2.7.3-rc.
1144     - Replace usage of 'INLINE' with 'inline'. Fixes bug 17804; bugfix
1145       on 0.0.2pre8.
1146     - Remove config.log only from make distclean, not from make clean.
1147       Fixes bug 17924; bugfix on 0.2.4.1-alpha.
1149   o Minor bugfixes (crypto):
1150     - Check the return value of HMAC() and assert on failure. Fixes bug
1151       17658; bugfix on 0.2.3.6-alpha. Patch by "teor".
1153   o Minor bugfixes (fallback directories):
1154     - Mark fallbacks as "too busy" when they return a 503 response,
1155       rather than just marking authorities. Fixes bug 17572; bugfix on
1156       0.2.4.7-alpha. Patch by "teor".
1158   o Minor bugfixes (IPv6):
1159     - Update the limits in max_dl_per_request for IPv6 address length.
1160       Fixes bug 17573; bugfix on 0.2.1.5-alpha.
1162   o Minor bugfixes (linux seccomp2 sandbox):
1163     - Fix a crash when using offline master ed25519 keys with the Linux
1164       seccomp2 sandbox enabled. Fixes bug 17675; bugfix on 0.2.7.3-rc.
1166   o Minor bugfixes (logging):
1167     - In log messages that include a function name, use __FUNCTION__
1168       instead of __PRETTY_FUNCTION__. In GCC, these are synonymous, but
1169       with clang __PRETTY_FUNCTION__ has extra information we don't
1170       need. Fixes bug 16563; bugfix on 0.0.2pre8. Fix by Tom van
1171       der Woerdt.
1172     - Remove needless quotes from a log message about unparseable
1173       addresses. Fixes bug 17843; bugfix on 0.2.3.3-alpha.
1175   o Minor bugfixes (portability):
1176     - Remove an #endif from configure.ac so that we correctly detect the
1177       presence of in6_addr.s6_addr32. Fixes bug 17923; bugfix
1178       on 0.2.0.13-alpha.
1180   o Minor bugfixes (relays):
1181     - Check that both the ORPort and DirPort (if present) are reachable
1182       before publishing a relay descriptor. Otherwise, relays publish a
1183       descriptor with DirPort 0 when the DirPort reachability test takes
1184       longer than the ORPort reachability test. Fixes bug 18050; bugfix
1185       on 0.1.0.1-rc. Reported by "starlight", patch by "teor".
1187   o Minor bugfixes (relays, hidden services):
1188     - Refuse connection requests to private OR addresses unless
1189       ExtendAllowPrivateAddresses is set. Previously, tor would connect,
1190       then refuse to send any cells to a private address. Fixes bugs
1191       17674 and 8976; bugfix on 0.2.3.21-rc. Patch by "teor".
1193   o Minor bugfixes (safe logging):
1194     - When logging a malformed hostname received through socks4, scrub
1195       it if SafeLogging says we should. Fixes bug 17419; bugfix
1196       on 0.1.1.16-rc.
1198   o Minor bugfixes (statistics code):
1199     - Consistently check for overflow in round_*_to_next_multiple_of
1200       functions, and add unit tests with additional and maximal values.
1201       Fixes part of bug 13192; bugfix on 0.2.2.1-alpha.
1202     - Handle edge cases in the laplace functions: avoid division by
1203       zero, avoid taking the log of zero, and silence clang type
1204       conversion warnings using round and trunc. Add unit tests for edge
1205       cases with maximal values. Fixes part of bug 13192; bugfix
1206       on 0.2.6.2-alpha.
1208   o Minor bugfixes (testing):
1209     - The test for log_heartbeat was incorrectly failing in timezones
1210       with non-integer offsets. Instead of comparing the end of the time
1211       string against a constant, compare it to the output of
1212       format_local_iso_time when given the correct input. Fixes bug
1213       18039; bugfix on 0.2.5.4-alpha.
1214     - Make unit tests pass on IPv6-only systems, and systems without
1215       localhost addresses (like some FreeBSD jails). Fixes bug 17632;
1216       bugfix on 0.2.7.3-rc. Patch by "teor".
1217     - Fix a memory leak in the ntor test. Fixes bug 17778; bugfix
1218       on 0.2.4.8-alpha.
1219     - Check the full results of SHA256 and SHA512 digests in the unit
1220       tests. Bugfix on 0.2.2.4-alpha. Patch by "teor".
1222   o Code simplification and refactoring:
1223     - Move logging of redundant policy entries in
1224       policies_parse_exit_policy_internal into its own function. Closes
1225       ticket 17608; patch from "juce".
1226     - Extract the more complicated parts of circuit_mark_for_close()
1227       into a new function that we run periodically before circuits are
1228       freed. This change removes more than half of the functions
1229       currently in the "blob". Closes ticket 17218.
1230     - Clean up a little duplicated code in
1231       crypto_expand_key_material_TAP(). Closes ticket 17587; patch
1232       from "pfrankw".
1233     - Decouple the list of streams waiting to be attached to circuits
1234       from the overall connection list. This change makes it possible to
1235       attach streams quickly while simplifying Tor's callgraph and
1236       avoiding O(N) scans of the entire connection list. Closes
1237       ticket 17590.
1238     - When a direct directory request fails immediately on launch,
1239       instead of relaunching that request from inside the code that
1240       launches it, instead mark the connection for teardown. This change
1241       simplifies Tor's callback and prevents the directory-request
1242       launching code from invoking itself recursively. Closes
1243       ticket 17589
1244     - Remove code for configuring OpenSSL dynamic locks; OpenSSL doesn't
1245       use them. Closes ticket 17926.
1247   o Documentation:
1248     - Add a description of the correct use of the '--keygen' command-
1249       line option. Closes ticket 17583; based on text by 's7r'.
1250     - Document the minimum HeartbeatPeriod value. Closes ticket 15638.
1251     - Explain actual minima for BandwidthRate. Closes ticket 16382.
1252     - Fix a minor formatting typo in the manpage. Closes ticket 17791.
1253     - Mention torspec URL in the manpage and point the reader to it
1254       whenever we mention a document that belongs in torspce. Fixes
1255       issue 17392.
1257   o Removed features:
1258     - Remove client-side support for connecting to Tor relays running
1259       versions of Tor before 0.2.3.6-alpha. These relays didn't support
1260       the v3 TLS handshake protocol, and are no longer allowed on the
1261       Tor network. Implements the client side of ticket 11150. Based on
1262       patches by Tom van der Woerdt.
1264   o Testing:
1265     - Add unit tests to check for common RNG failure modes, such as
1266       returning all zeroes, identical values, or incrementing values
1267       (OpenSSL's rand_predictable feature). Patch by "teor".
1268     - Log more information when the backtrace tests fail. Closes ticket
1269       17892. Patch from "cypherpunks."
1270     - Always test both ed25519 backends, so that we can be sure that our
1271       batch-open replacement code works. Part of ticket 16794.
1272     - Cover dns_resolve_impl() in dns.c with unit tests. Implements a
1273       portion of ticket 16831.
1274     - More unit tests for compat_libevent.c, procmon.c, tortls.c,
1275       util_format.c, directory.c, and options_validate.c. Closes tickets
1276       17075, 17082, 17084, 17003, and 17076 respectively. Patches from
1277       Ola Bini.
1278     - Unit tests for directory_handle_command_get. Closes ticket 17004.
1279       Patch from Reinaldo de Souza Jr.
1282 Changes in version 0.2.7.6 - 2015-12-10
1283   Tor version 0.2.7.6 fixes a major bug in entry guard selection, as
1284   well as a minor bug in hidden service reliability.
1286   o Major bugfixes (guard selection):
1287     - Actually look at the Guard flag when selecting a new directory
1288       guard. When we implemented the directory guard design, we
1289       accidentally started treating all relays as if they have the Guard
1290       flag during guard selection, leading to weaker anonymity and worse
1291       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
1292       by Mohsen Imani.
1294   o Minor features (geoip):
1295     - Update geoip and geoip6 to the December 1 2015 Maxmind GeoLite2
1296       Country database.
1298   o Minor bugfixes (compilation):
1299     - When checking for net/pfvar.h, include netinet/in.h if possible.
1300       This fixes transparent proxy detection on OpenBSD. Fixes bug
1301       17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate".
1302     - Fix a compilation warning with Clang 3.6: Do not check the
1303       presence of an address which can never be NULL. Fixes bug 17781.
1305   o Minor bugfixes (correctness):
1306     - When displaying an IPv6 exit policy, include the mask bits
1307       correctly even when the number is greater than 31. Fixes bug
1308       16056; bugfix on 0.2.4.7-alpha. Patch from "gturner".
1309     - The wrong list was used when looking up expired intro points in a
1310       rend service object, causing what we think could be reachability
1311       issues for hidden services, and triggering a BUG log. Fixes bug
1312       16702; bugfix on 0.2.7.2-alpha.
1313     - Fix undefined behavior in the tor_cert_checksig function. Fixes
1314       bug 17722; bugfix on 0.2.7.2-alpha.
1317 Changes in version 0.2.7.5 - 2015-11-20
1318   The Tor 0.2.7 release series is dedicated to the memory of Tor user
1319   and privacy advocate Caspar Bowden (1961-2015). Caspar worked
1320   tirelessly to advocate human rights regardless of national borders,
1321   and oppose the encroachments of mass surveillance. He opposed national
1322   exceptionalism, he brought clarity to legal and policy debates, he
1323   understood and predicted the impact of mass surveillance on the world,
1324   and he laid the groundwork for resisting it. While serving on the Tor
1325   Project's board of directors, he brought us his uncompromising focus
1326   on technical excellence in the service of humankind. Caspar was an
1327   inimitable force for good and a wonderful friend. He was kind,
1328   humorous, generous, gallant, and believed we should protect one
1329   another without exception. We honor him here for his ideals, his
1330   efforts, and his accomplishments. Please honor his memory with works
1331   that would make him proud.
1333   Tor 0.2.7.5 is the first stable release in the Tor 0.2.7 series.
1335   The 0.2.7 series adds a more secure identity key type for relays,
1336   improves cryptography performance, resolves several longstanding
1337   hidden-service performance issues, improves controller support for
1338   hidden services, and includes small bugfixes and performance
1339   improvements throughout the program. This release series also includes
1340   more tests than before, and significant simplifications to which parts
1341   of Tor invoke which others.
1343   (This release contains no code changes since 0.2.7.4-rc.)
1346 Changes in version 0.2.7.4-rc - 2015-10-21
1347   Tor 0.2.7.4-rc is the second release candidate in the 0.2.7 series. It
1348   fixes some important memory leaks, and a scary-looking (but mostly
1349   harmless in practice) invalid-read bug. It also has a few small
1350   bugfixes, notably fixes for compilation and portability on different
1351   platforms. If no further significant bounds are found, the next
1352   release will the the official stable release.
1354   o Major bugfixes (security, correctness):
1355     - Fix an error that could cause us to read 4 bytes before the
1356       beginning of an openssl string. This bug could be used to cause
1357       Tor to crash on systems with unusual malloc implementations, or
1358       systems with unusual hardening installed. Fixes bug 17404; bugfix
1359       on 0.2.3.6-alpha.
1361   o Major bugfixes (correctness):
1362     - Fix a use-after-free bug in validate_intro_point_failure(). Fixes
1363       bug 17401; bugfix on 0.2.7.3-rc.
1365   o Major bugfixes (memory leaks):
1366     - Fix a memory leak in ed25519 batch signature checking. Fixes bug
1367       17398; bugfix on 0.2.6.1-alpha.
1368     - Fix a memory leak in rend_cache_failure_entry_free(). Fixes bug
1369       17402; bugfix on 0.2.7.3-rc.
1370     - Fix a memory leak when reading an expired signing key from disk.
1371       Fixes bug 17403; bugfix on 0.2.7.2-rc.
1373   o Minor features (geoIP):
1374     - Update geoip and geoip6 to the October 9 2015 Maxmind GeoLite2
1375       Country database.
1377   o Minor bugfixes (compilation):
1378     - Repair compilation with the most recent (unreleased, alpha)
1379       vesions of OpenSSL 1.1. Fixes part of ticket 17237.
1380     - Fix an integer overflow warning in test_crypto_slow.c. Fixes bug
1381       17251; bugfix on 0.2.7.2-alpha.
1382     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
1383       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
1385   o Minor bugfixes (portability):
1386     - Use libexecinfo on FreeBSD to enable backtrace support. Fixes
1387       part of bug 17151; bugfix on 0.2.5.2-alpha. Patch from
1388       Marcin CieÅ›lak.
1390   o Minor bugfixes (sandbox):
1391     - Add the "hidserv-stats" filename to our sandbox filter for the
1392       HiddenServiceStatistics option to work properly. Fixes bug 17354;
1393       bugfix on 0.2.6.2-alpha. Patch from David Goulet.
1395   o Minor bugfixes (testing):
1396     - Add unit tests for get_interface_address* failure cases. Fixes bug
1397       17173; bugfix on 0.2.7.3-rc. Patch by fk/teor.
1398     - Fix breakage when running 'make check' with BSD make. Fixes bug
1399       17154; bugfix on 0.2.7.3-rc. Patch by Marcin CieÅ›lak.
1400     - Make the get_ifaddrs_* unit tests more tolerant of different
1401       network configurations. (Don't assume every test box has an IPv4
1402       address, and don't assume every test box has a non-localhost
1403       address.) Fixes bug 17255; bugfix on 0.2.7.3-rc. Patch by "teor".
1404     - Skip backtrace tests when backtrace support is not compiled in.
1405       Fixes part of bug 17151; bugfix on 0.2.7.1-alpha. Patch from
1406       Marcin CieÅ›lak.
1408   o Documentation:
1409     - Fix capitalization of SOCKS in sample torrc. Closes ticket 15609.
1410     - Note that HiddenServicePorts can take a unix domain socket. Closes
1411       ticket 17364.
1414 Changes in version 0.2.7.3-rc - 2015-09-25
1415   Tor 0.2.7.3-rc is the first release candidate in the 0.2.7 series. It
1416   contains numerous usability fixes for Ed25519 keys, safeguards against
1417   several misconfiguration problems, significant simplifications to
1418   Tor's callgraph, and numerous bugfixes and small features.
1420   This is the most tested release of Tor to date. The unit tests cover
1421   39.40% of the code, and the integration tests (accessible with "make
1422   test-full-online", requiring stem and chutney and a network
1423   connection) raise the coverage to 64.49%.
1425   o Major features (security, hidden services):
1426     - Hidden services, if using the EntryNodes option, are required to
1427       use more than one EntryNode, in order to avoid a guard discovery
1428       attack. (This would only affect people who had configured hidden
1429       services and manually specified the EntryNodes option with a
1430       single entry-node. The impact was that it would be easy to
1431       remotely identify the guard node used by such a hidden service.
1432       See ticket for more information.) Fixes ticket 14917.
1434   o Major features (Ed25519 keys, keypinning):
1435     - The key-pinning option on directory authorities is now advisory-
1436       only by default. In a future version, or when the AuthDirPinKeys
1437       option is set, pins are enforced again. Disabling key-pinning
1438       seemed like a good idea so that we can survive the fallout of any
1439       usability problems associated with Ed25519 keys. Closes
1440       ticket 17135.
1442   o Major features (Ed25519 performance):
1443     - Improve the speed of Ed25519 operations and Curve25519 keypair
1444       generation when built targeting 32 bit x86 platforms with SSE2
1445       available. Implements ticket 16535.
1446     - Improve the runtime speed of Ed25519 signature verification by
1447       using Ed25519-donna's batch verification support. Implements
1448       ticket 16533.
1450   o Major features (performance testing):
1451     - The test-network.sh script now supports performance testing.
1452       Requires corresponding chutney performance testing changes. Patch
1453       by "teor". Closes ticket 14175.
1455   o Major features (relay, Ed25519):
1456     - Significant usability improvements for Ed25519 key management. Log
1457       messages are better, and the code can recover from far more
1458       failure conditions. Thanks to "s7r" for reporting and diagnosing
1459       so many of these!
1460     - Add a new OfflineMasterKey option to tell Tor never to try loading
1461       or generating a secret Ed25519 identity key. You can use this in
1462       combination with tor --keygen to manage offline and/or encrypted
1463       Ed25519 keys. Implements ticket 16944.
1464     - Add a --newpass option to allow changing or removing the
1465       passphrase of an encrypted key with tor --keygen. Implements part
1466       of ticket 16769.
1467     - On receiving a HUP signal, check to see whether the Ed25519
1468       signing key has changed, and reload it if so. Closes ticket 16790.
1470   o Major bugfixes (relay, Ed25519):
1471     - Avoid crashing on 'tor --keygen'. Fixes bug 16679; bugfix on
1472       0.2.7.2-alpha. Reported by "s7r".
1473     - Improve handling of expired signing keys with offline master keys.
1474       Fixes bug 16685; bugfix on 0.2.7.2-alpha. Reported by "s7r".
1476   o Minor features (client-side privacy):
1477     - New KeepAliveIsolateSOCKSAuth option to indefinitely extend circuit
1478       lifespan when IsolateSOCKSAuth and streams with SOCKS
1479       authentication are attached to the circuit. This allows
1480       applications like TorBrowser to manage circuit lifetime on their
1481       own. Implements feature 15482.
1482     - When logging malformed hostnames from SOCKS5 requests, respect
1483       SafeLogging configuration. Fixes bug 16891; bugfix on 0.1.1.16-rc.
1485   o Minor features (compilation):
1486     - Give a warning as early as possible when trying to build with an
1487       unsupported OpenSSL version. Closes ticket 16901.
1488     - Fail during configure if we're trying to build against an OpenSSL
1489       built without ECC support. Fixes bug 17109, bugfix on 0.2.7.1-alpha
1490       which started requiring ECC.
1492   o Minor features (geoip):
1493     - Update geoip and geoip6 to the September 3 2015 Maxmind GeoLite2
1494       Country database.
1496   o Minor features (hidden services):
1497     - Relays need to have the Fast flag to get the HSDir flag. As this
1498       is being written, we'll go from 2745 HSDirs down to 2342, a ~14%
1499       drop. This change should make some attacks against the hidden
1500       service directory system harder. Fixes ticket 15963.
1501     - Turn on hidden service statistics collection by setting the torrc
1502       option HiddenServiceStatistics to "1" by default. (This keeps
1503       track only of the fraction of traffic used by hidden services, and
1504       the total number of hidden services in existence.) Closes
1505       ticket 15254.
1506     - Client now uses an introduction point failure cache to know when
1507       to fetch or keep a descriptor in their cache. Previously, failures
1508       were recorded implicitly, but not explicitly remembered. Closes
1509       ticket 16389.
1511   o Minor features (testing, authorities, documentation):
1512     - New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags to
1513       explicitly manage consensus flags in testing networks. Patch by
1514       "robgjansen", modified by "teor". Implements part of ticket 14882.
1516   o Minor bugfixes (security, exit policies):
1517     - ExitPolicyRejectPrivate now also rejects the relay's published
1518       IPv6 address (if any), and any publicly routable IPv4 or IPv6
1519       addresses on any local interfaces. ticket 17027. Patch by "teor".
1520       Fixes bug 17027; bugfix on 0.2.0.11-alpha.
1522   o Minor bug fixes (torrc exit policies):
1523     - In torrc, "accept6 *" and "reject6 *" ExitPolicy lines now only
1524       produce IPv6 wildcard addresses. Previously they would produce
1525       both IPv4 and IPv6 wildcard addresses. Patch by "teor". Fixes part
1526       of bug 16069; bugfix on 0.2.4.7-alpha.
1527     - When parsing torrc ExitPolicies, we now warn for a number of cases
1528       where the user's intent is likely to differ from Tor's actual
1529       behavior. These include: using an IPv4 address with an accept6 or
1530       reject6 line; using "private" on an accept6 or reject6 line; and
1531       including any ExitPolicy lines after accept *:* or reject *:*.
1532       Related to ticket 16069.
1533     - When parsing torrc ExitPolicies, we now issue an info-level
1534       message when expanding an "accept/reject *" line to include both
1535       IPv4 and IPv6 wildcard addresses. Related to ticket 16069.
1536     - In each instance above, usage advice is provided to avoid the
1537       message. Resolves ticket 16069. Patch by "teor". Fixes part of bug
1538       16069; bugfix on 0.2.4.7-alpha.
1540   o Minor bugfixes (authority):
1541     - Don't assign "HSDir" to a router if it isn't Valid and Running.
1542       Fixes bug 16524; bugfix on 0.2.7.2-alpha.
1543     - Downgrade log messages about Ed25519 key issues if they are in old
1544       cached router descriptors. Fixes part of bug 16286; bugfix
1545       on 0.2.7.2-alpha.
1546     - When we find an Ed25519 key issue in a cached descriptor, stop
1547       saying the descriptor was just "uploaded". Fixes another part of
1548       bug 16286; bugfix on 0.2.7.2-alpha.
1550   o Minor bugfixes (control port):
1551     - Repair a warning and a spurious result when getting the maximum
1552       number of file descriptors from the controller. Fixes bug 16697;
1553       bugfix on 0.2.7.2-alpha.
1555   o Minor bugfixes (correctness):
1556     - When calling channel_free_list(), avoid calling smartlist_remove()
1557       while inside a FOREACH loop. This partially reverts commit
1558       17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was
1559       incorrectly removed. Fixes bug 16924; bugfix on 0.2.4.4-alpha.
1561   o Minor bugfixes (documentation):
1562     - Advise users on how to configure separate IPv4 and IPv6 exit
1563       policies in the manpage and sample torrcs. Related to ticket 16069.
1564     - Fix the usage message of tor-resolve(1) so that it no longer lists
1565       the removed -F option. Fixes bug 16913; bugfix on 0.2.2.28-beta.
1566     - Fix an error in the manual page and comments for
1567       TestingDirAuthVoteHSDir[IsStrict], which suggested that a HSDir
1568       required "ORPort connectivity". While this is true, it is in no
1569       way unique to the HSDir flag. Of all the flags, only HSDirs need a
1570       DirPort configured in order for the authorities to assign that
1571       particular flag. Patch by "teor". Fixed as part of 14882; bugfix
1572       on 0.2.6.3-alpha.
1574   o Minor bugfixes (Ed25519):
1575     - Fix a memory leak when reading router descriptors with expired
1576       Ed25519 certificates. Fixes bug 16539; bugfix on 0.2.7.2-alpha.
1578   o Minor bugfixes (linux seccomp2 sandbox):
1579     - Allow bridge authorities to run correctly under the seccomp2
1580       sandbox. Fixes bug 16964; bugfix on 0.2.5.1-alpha.
1581     - Allow routers with ed25519 keys to run correctly under the
1582       seccomp2 sandbox. Fixes bug 16965; bugfix on 0.2.7.2-alpha.
1584   o Minor bugfixes (open file limit):
1585     - Fix set_max_file_descriptors() to set by default the max open file
1586       limit to the current limit when setrlimit() fails. Fixes bug
1587       16274; bugfix on 0.2.0.10-alpha. Patch by dgoulet.
1589   o Minor bugfixes (portability):
1590     - Try harder to normalize the exit status of the Tor process to the
1591       standard-provided range. Fixes bug 16975; bugfix on every version
1592       of Tor ever.
1593     - Check correctly for Windows socket errors in the workqueue
1594       backend. Fixes bug 16741; bugfix on 0.2.6.3-alpha.
1595     - Fix the behavior of crypto_rand_time_range() when told to consider
1596       times before 1970. (These times were possible when running in a
1597       simulated network environment where time()'s output starts at
1598       zero.) Fixes bug 16980; bugfix on 0.2.7.1-alpha.
1599     - Restore correct operation of TLS client-cipher detection on
1600       OpenSSL 1.1. Fixes bug 14047; bugfix on 0.2.7.2-alpha.
1602   o Minor bugfixes (relay):
1603     - Ensure that worker threads actually exit when a fatal error or
1604       shutdown is indicated. This fix doesn't currently affect the
1605       behavior of Tor, because Tor workers never indicates fatal error
1606       or shutdown except in the unit tests. Fixes bug 16868; bugfix
1607       on 0.2.6.3-alpha.
1608     - Unblock threads before releasing the work queue mutex to ensure
1609       predictable scheduling behavior. Fixes bug 16644; bugfix
1610       on 0.2.6.3-alpha.
1612   o Code simplification and refactoring:
1613     - Change the function that's called when we need to retry all
1614       downloads so that it only reschedules the downloads to happen
1615       immediately, rather than launching them all at once itself. This
1616       further simplifies Tor's callgraph.
1617     - Move some format-parsing functions out of crypto.c and
1618       crypto_curve25519.c into crypto_format.c and/or util_format.c.
1619     - Move the client-only parts of init_keys() into a separate
1620       function. Closes ticket 16763.
1621     - Simplify the microdesc_free() implementation so that it no longer
1622       appears (to code analysis tools) to potentially invoke a huge
1623       suite of other microdesc functions.
1624     - Simply the control graph further by deferring the inner body of
1625       directory_all_unreachable() into a callback. Closes ticket 16762.
1626     - Treat the loss of an owning controller as equivalent to a SIGTERM
1627       signal. This removes a tiny amount of duplicated code, and
1628       simplifies our callgraph. Closes ticket 16788.
1629     - When generating an event to send to the controller, we no longer
1630       put the event over the network immediately. Instead, we queue
1631       these events, and use a Libevent callback to deliver them. This
1632       change simplifies Tor's callgraph by reducing the number of
1633       functions from which all other Tor functions are reachable. Closes
1634       ticket 16695.
1635     - Wrap Windows-only C files inside '#ifdef _WIN32' so that tools
1636       that try to scan or compile every file on Unix won't decide that
1637       they are broken.
1638     - Remove the unused "nulterminate" argument from buf_pullup().
1640   o Documentation:
1641     - Recommend a 40 GB example AccountingMax in torrc.sample rather
1642       than a 4 GB max. Closes ticket 16742.
1643     - Include the TUNING document in our source tarball. It is referred
1644       to in the ChangeLog and an error message. Fixes bug 16929; bugfix
1645       on 0.2.6.1-alpha.
1647   o Removed code:
1648     - The internal pure-C tor-fw-helper tool is now removed from the Tor
1649       distribution, in favor of the pure-Go clone available from
1650       https://gitweb.torproject.org/tor-fw-helper.git/ . The libraries
1651       used by the C tor-fw-helper are not, in our opinion, very
1652       confidence- inspiring in their secure-programming techniques.
1653       Closes ticket 13338.
1654     - Remove the code that would try to aggressively flush controller
1655       connections while writing to them. This code was introduced in
1656       0.1.2.7-alpha, in order to keep output buffers from exceeding
1657       their limits. But there is no longer a maximum output buffer size,
1658       and flushing data in this way caused some undesirable recursions
1659       in our call graph. Closes ticket 16480.
1661   o Testing:
1662     - Make "bridges+hs" the default test network. This tests almost all
1663       tor functionality during make test-network, while allowing tests
1664       to succeed on non-IPv6 systems. Requires chutney commit 396da92 in
1665       test-network-bridges-hs. Closes tickets 16945 (tor) and 16946
1666       (chutney). Patches by "teor".
1667     - Autodetect CHUTNEY_PATH if the chutney and Tor sources are side-
1668       by-side in the same parent directory. Closes ticket 16903. Patch
1669       by "teor".
1670     - Use environment variables rather than autoconf substitutions to
1671       send variables from the build system to the test scripts. This
1672       change should be easier to maintain, and cause 'make distcheck' to
1673       work better than before. Fixes bug 17148.
1674     - Add a new set of callgraph analysis scripts that use clang to
1675       produce a list of which Tor functions are reachable from which
1676       other Tor functions. We're planning to use these to help simplify
1677       our code structure by identifying illogical dependencies.
1678     - Add new 'test-full' and 'test-full-online' targets to run all
1679       tests, including integration tests with stem and chutney.
1680     - Make the test-workqueue test work on Windows by initializing the
1681       network before we begin.
1682     - New make target (make test-network-all) to run multiple applicable
1683       chutney test cases. Patch from Teor; closes 16953.
1684     - Unit test dns_resolve(), dns_clip_ttl() and dns_get_expiry_ttl()
1685       functions in dns.c. Implements a portion of ticket 16831.
1686     - When building Tor with testing coverage enabled, run Chutney tests
1687       (if any) using the 'tor-cov' coverage binary.
1688     - When running test-network or test-stem, check for the absence of
1689       stem/chutney before doing any build operations.
1692 Changes in version 0.2.7.2-alpha - 2015-07-27
1693   This, the second alpha in the Tor 0.2.7 series, has a number of new
1694   features, including a way to manually pick the number of introduction
1695   points for hidden services, and the much stronger Ed25519 signing key
1696   algorithm for regular Tor relays (including support for encrypted
1697   offline identity keys in the new algorithm).
1699   Support for Ed25519 on relays is currently limited to signing router
1700   descriptors; later alphas in this series will extend Ed25519 key
1701   support to more parts of the Tor protocol.
1703   o Major features (Ed25519 identity keys, Proposal 220):
1704     - All relays now maintain a stronger identity key, using the Ed25519
1705       elliptic curve signature format. This master key is designed so
1706       that it can be kept offline. Relays also generate an online
1707       signing key, and a set of other Ed25519 keys and certificates.
1708       These are all automatically regenerated and rotated as needed.
1709       Implements part of ticket 12498.
1710     - Directory authorities now vote on Ed25519 identity keys along with
1711       RSA1024 keys. Implements part of ticket 12498.
1712     - Directory authorities track which Ed25519 identity keys have been
1713       used with which RSA1024 identity keys, and do not allow them to
1714       vary freely. Implements part of ticket 12498.
1715     - Microdescriptors now include Ed25519 identity keys. Implements
1716       part of ticket 12498.
1717     - Add support for offline encrypted Ed25519 master keys. To use this
1718       feature on your tor relay, run "tor --keygen" to make a new master
1719       key (or to make a new signing key if you already have a master
1720       key). Closes ticket 13642.
1722   o Major features (Hidden services):
1723     - Add the torrc option HiddenServiceNumIntroductionPoints, to
1724       specify a fixed number of introduction points. Its maximum value
1725       is 10 and default is 3. Using this option can increase a hidden
1726       service's reliability under load, at the cost of making it more
1727       visible that the hidden service is facing extra load. Closes
1728       ticket 4862.
1729     - Remove the adaptive algorithm for choosing the number of
1730       introduction points, which used to change the number of
1731       introduction points (poorly) depending on the number of
1732       connections the HS sees. Closes ticket 4862.
1734   o Major features (onion key cross-certification):
1735     - Relay descriptors now include signatures of their own identity
1736       keys, made using the TAP and ntor onion keys. These signatures
1737       allow relays to prove ownership of their own onion keys. Because
1738       of this change, microdescriptors will no longer need to include
1739       RSA identity keys. Implements proposal 228; closes ticket 12499.
1741   o Major features (performance):
1742     - Improve the runtime speed of Ed25519 operations by using the
1743       public-domain Ed25519-donna by Andrew M. ("floodyberry").
1744       Implements ticket 16467.
1745     - Improve the runtime speed of the ntor handshake by using an
1746       optimized curve25519 basepoint scalarmult implementation from the
1747       public-domain Ed25519-donna by Andrew M. ("floodyberry"), based on
1748       ideas by Adam Langley. Implements ticket 9663.
1750   o Major bugfixes (client-side privacy, also in 0.2.6.9):
1751     - Properly separate out each SOCKSPort when applying stream
1752       isolation. The error occurred because each port's session group
1753       was being overwritten by a default value when the listener
1754       connection was initialized. Fixes bug 16247; bugfix on
1755       0.2.6.3-alpha. Patch by "jojelino".
1757   o Major bugfixes (hidden service clients, stability, also in 0.2.6.10):
1758     - Stop refusing to store updated hidden service descriptors on a
1759       client. This reverts commit 9407040c59218 (which indeed fixed bug
1760       14219, but introduced a major hidden service reachability
1761       regression detailed in bug 16381). This is a temporary fix since
1762       we can live with the minor issue in bug 14219 (it just results in
1763       some load on the network) but the regression of 16381 is too much
1764       of a setback. First-round fix for bug 16381; bugfix
1765       on 0.2.6.3-alpha.
1767   o Major bugfixes (hidden services):
1768     - When cannibalizing a circuit for an introduction point, always
1769       extend to the chosen exit node (creating a 4 hop circuit).
1770       Previously Tor would use the current circuit exit node, which
1771       changed the original choice of introduction point, and could cause
1772       the hidden service to skip excluded introduction points or
1773       reconnect to a skipped introduction point. Fixes bug 16260; bugfix
1774       on 0.1.0.1-rc.
1776   o Major bugfixes (open file limit):
1777     - The open file limit wasn't checked before calling
1778       tor_accept_socket_nonblocking(), which would make Tor exceed the
1779       limit. Now, before opening a new socket, Tor validates the open
1780       file limit just before, and if the max has been reached, return an
1781       error. Fixes bug 16288; bugfix on 0.1.1.1-alpha.
1783   o Major bugfixes (stability, also in 0.2.6.10):
1784     - Stop crashing with an assertion failure when parsing certain kinds
1785       of malformed or truncated microdescriptors. Fixes bug 16400;
1786       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
1787       by "cypherpunks_backup".
1788     - Stop random client-side assertion failures that could occur when
1789       connecting to a busy hidden service, or connecting to a hidden
1790       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
1791       on 0.1.0.1-rc.
1793   o Minor features (directory authorities, security, also in 0.2.6.9):
1794     - The HSDir flag given by authorities now requires the Stable flag.
1795       For the current network, this results in going from 2887 to 2806
1796       HSDirs. Also, it makes it harder for an attacker to launch a sybil
1797       attack by raising the effort for a relay to become Stable to
1798       require at the very least 7 days, while maintaining the 96 hours
1799       uptime requirement for HSDir. Implements ticket 8243.
1801   o Minor features (client):
1802     - Relax the validation of hostnames in SOCKS5 requests, allowing the
1803       character '_' to appear, in order to cope with domains observed in
1804       the wild that are serving non-RFC compliant records. Resolves
1805       ticket 16430.
1806     - Relax the validation done to hostnames in SOCKS5 requests, and
1807       allow a single trailing '.' to cope with clients that pass FQDNs
1808       using that syntax to explicitly indicate that the domain name is
1809       fully-qualified. Fixes bug 16674; bugfix on 0.2.6.2-alpha.
1810     - Add GroupWritable and WorldWritable options to unix-socket based
1811       SocksPort and ControlPort options. These options apply to a single
1812       socket, and override {Control,Socks}SocketsGroupWritable. Closes
1813       ticket 15220.
1815   o Minor features (control protocol):
1816     - Support network-liveness GETINFO key and NETWORK_LIVENESS event in
1817       the control protocol. Resolves ticket 15358.
1819   o Minor features (directory authorities):
1820     - Directory authorities no longer vote against the "Fast", "Stable",
1821       and "HSDir" flags just because they were going to vote against
1822       "Running": if the consensus turns out to be that the router was
1823       running, then the authority's vote should count. Patch from Peter
1824       Retzlaff; closes issue 8712.
1826   o Minor features (geoip, also in 0.2.6.10):
1827     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
1828     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
1830   o Minor features (hidden services):
1831     - Add the new options "HiddenServiceMaxStreams" and
1832       "HiddenServiceMaxStreamsCloseCircuit" to allow hidden services to
1833       limit the maximum number of simultaneous streams per circuit, and
1834       optionally tear down the circuit when the limit is exceeded. Part
1835       of ticket 16052.
1837   o Minor features (portability):
1838     - Use C99 variadic macros when the compiler is not GCC. This avoids
1839       failing compilations on MSVC, and fixes a log-file-based race
1840       condition in our old workarounds. Original patch from Gisle Vanem.
1842   o Minor bugfixes (compilation, also in 0.2.6.9):
1843     - Build with --enable-systemd correctly when libsystemd is
1844       installed, but systemd is not. Fixes bug 16164; bugfix on
1845       0.2.6.3-alpha. Patch from Peter Palfrader.
1847   o Minor bugfixes (controller):
1848     - Add the descriptor ID in each HS_DESC control event. It was
1849       missing, but specified in control-spec.txt. Fixes bug 15881;
1850       bugfix on 0.2.5.2-alpha.
1852   o Minor bugfixes (crypto error-handling, also in 0.2.6.10):
1853     - Check for failures from crypto_early_init, and refuse to continue.
1854       A previous typo meant that we could keep going with an
1855       uninitialized crypto library, and would have OpenSSL initialize
1856       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
1857       when implementing ticket 4900. Patch by "teor".
1859   o Minor bugfixes (hidden services):
1860     - Fix a crash when reloading configuration while at least one
1861       configured and one ephemeral hidden service exists. Fixes bug
1862       16060; bugfix on 0.2.7.1-alpha.
1863     - Avoid crashing with a double-free bug when we create an ephemeral
1864       hidden service but adding it fails for some reason. Fixes bug
1865       16228; bugfix on 0.2.7.1-alpha.
1867   o Minor bugfixes (Linux seccomp2 sandbox):
1868     - Use the sandbox in tor_open_cloexec whether or not O_CLOEXEC is
1869       defined. Patch by "teor". Fixes bug 16515; bugfix on 0.2.3.1-alpha.
1871   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.10):
1872     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
1873       these when eventfd2() support is missing. Fixes bug 16363; bugfix
1874       on 0.2.6.3-alpha. Patch from "teor".
1876   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.9):
1877     - Fix sandboxing to work when running as a relay, by allowing the
1878       renaming of secret_id_key, and allowing the eventfd2 and futex
1879       syscalls. Fixes bug 16244; bugfix on 0.2.6.1-alpha. Patch by
1880       Peter Palfrader.
1881     - Allow systemd connections to work with the Linux seccomp2 sandbox
1882       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
1883       Peter Palfrader.
1885   o Minor bugfixes (relay):
1886     - Fix a rarely-encountered memory leak when failing to initialize
1887       the thread pool. Fixes bug 16631; bugfix on 0.2.6.3-alpha. Patch
1888       from "cypherpunks".
1890   o Minor bugfixes (systemd):
1891     - Fix an accidental formatting error that broke the systemd
1892       configuration file. Fixes bug 16152; bugfix on 0.2.7.1-alpha.
1893     - Tor's systemd unit file no longer contains extraneous spaces.
1894       These spaces would sometimes confuse tools like deb-systemd-
1895       helper. Fixes bug 16162; bugfix on 0.2.5.5-alpha.
1897   o Minor bugfixes (tests):
1898     - Use the configured Python executable when running test-stem-full.
1899       Fixes bug 16470; bugfix on 0.2.7.1-alpha.
1901   o Minor bugfixes (tests, also in 0.2.6.9):
1902     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
1903       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
1905   o Minor bugfixes (threads, comments):
1906     - Always initialize return value in compute_desc_id in rendcommon.c
1907       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
1908     - Check for NULL values in getinfo_helper_onions(). Patch by "teor".
1909       Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
1910     - Remove undefined directive-in-macro in test_util_writepid clang
1911       3.7 complains that using a preprocessor directive inside a macro
1912       invocation in test_util_writepid in test_util.c is undefined.
1913       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
1915   o Code simplification and refactoring:
1916     - Define WINVER and _WIN32_WINNT centrally, in orconfig.h, in order
1917       to ensure they remain consistent and visible everywhere.
1918     - Remove some vestigial workarounds for the MSVC6 compiler. We
1919       haven't supported that in ages.
1920     - The link authentication code has been refactored for better
1921       testability and reliability. It now uses code generated with the
1922       "trunnel" binary encoding generator, to reduce the risk of bugs
1923       due to programmer error. Done as part of ticket 12498.
1925   o Documentation:
1926     - Include a specific and (hopefully) accurate documentation of the
1927       torrc file's meta-format in doc/torrc_format.txt. This is mainly
1928       of interest to people writing programs to parse or generate torrc
1929       files. This document is not a commitment to long-term
1930       compatibility; some aspects of the current format are a bit
1931       ridiculous. Closes ticket 2325.
1933   o Removed features:
1934     - Tor no longer supports copies of OpenSSL that are missing support
1935       for Elliptic Curve Cryptography. (We began using ECC when
1936       available in 0.2.4.8-alpha, for more safe and efficient key
1937       negotiation.) In particular, support for at least one of P256 or
1938       P224 is now required, with manual configuration needed if only
1939       P224 is available. Resolves ticket 16140.
1940     - Tor no longer supports versions of OpenSSL before 1.0. (If you are
1941       on an operating system that has not upgraded to OpenSSL 1.0 or
1942       later, and you compile Tor from source, you will need to install a
1943       more recent OpenSSL to link Tor against.) These versions of
1944       OpenSSL are still supported by the OpenSSL, but the numerous
1945       cryptographic improvements in later OpenSSL releases makes them a
1946       clear choice. Resolves ticket 16034.
1947     - Remove the HidServDirectoryV2 option. Now all relays offer to
1948       store hidden service descriptors. Related to 16543.
1949     - Remove the VoteOnHidServDirectoriesV2 option, since all
1950       authorities have long set it to 1. Closes ticket 16543.
1952   o Testing:
1953     - Document use of coverity, clang static analyzer, and clang dynamic
1954       undefined behavior and address sanitizers in doc/HACKING. Include
1955       detailed usage instructions in the blacklist. Patch by "teor".
1956       Closes ticket 15817.
1957     - The link authentication protocol code now has extensive tests.
1958     - The relay descriptor signature testing code now has
1959       extensive tests.
1960     - The test_workqueue program now runs faster, and is enabled by
1961       default as a part of "make check".
1962     - Now that OpenSSL has its own scrypt implementation, add an unit
1963       test that checks for interoperability between libscrypt_scrypt()
1964       and OpenSSL's EVP_PBE_scrypt() so that we could not use libscrypt
1965       and rely on EVP_PBE_scrypt() whenever possible. Resolves
1966       ticket 16189.
1969 Changes in version 0.2.6.10 - 2015-07-12
1970   Tor version 0.2.6.10 fixes some significant stability and hidden
1971   service client bugs, bulletproofs the cryptography init process, and
1972   fixes a bug when using the sandbox code with some older versions of
1973   Linux. Everyone running an older version, especially an older version
1974   of 0.2.6, should upgrade.
1976   o Major bugfixes (hidden service clients, stability):
1977     - Stop refusing to store updated hidden service descriptors on a
1978       client. This reverts commit 9407040c59218 (which indeed fixed bug
1979       14219, but introduced a major hidden service reachability
1980       regression detailed in bug 16381). This is a temporary fix since
1981       we can live with the minor issue in bug 14219 (it just results in
1982       some load on the network) but the regression of 16381 is too much
1983       of a setback. First-round fix for bug 16381; bugfix
1984       on 0.2.6.3-alpha.
1986   o Major bugfixes (stability):
1987     - Stop crashing with an assertion failure when parsing certain kinds
1988       of malformed or truncated microdescriptors. Fixes bug 16400;
1989       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
1990       by "cypherpunks_backup".
1991     - Stop random client-side assertion failures that could occur when
1992       connecting to a busy hidden service, or connecting to a hidden
1993       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
1994       on 0.1.0.1-rc.
1996   o Minor features (geoip):
1997     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
1998     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
2000   o Minor bugfixes (crypto error-handling):
2001     - Check for failures from crypto_early_init, and refuse to continue.
2002       A previous typo meant that we could keep going with an
2003       uninitialized crypto library, and would have OpenSSL initialize
2004       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
2005       when implementing ticket 4900. Patch by "teor".
2007   o Minor bugfixes (Linux seccomp2 sandbox):
2008     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
2009       these when eventfd2() support is missing. Fixes bug 16363; bugfix
2010       on 0.2.6.3-alpha. Patch from "teor".
2013 Changes in version 0.2.6.9 - 2015-06-11
2014   Tor 0.2.6.9 fixes a regression in the circuit isolation code, increases the
2015   requirements for receiving an HSDir flag, and addresses some other small
2016   bugs in the systemd and sandbox code. Clients using circuit isolation
2017   should upgrade; all directory authorities should upgrade.
2019   o Major bugfixes (client-side privacy):
2020     - Properly separate out each SOCKSPort when applying stream
2021       isolation. The error occurred because each port's session group was
2022       being overwritten by a default value when the listener connection
2023       was initialized. Fixes bug 16247; bugfix on 0.2.6.3-alpha. Patch
2024       by "jojelino".
2026   o Minor feature (directory authorities, security):
2027     - The HSDir flag given by authorities now requires the Stable flag.
2028       For the current network, this results in going from 2887 to 2806
2029       HSDirs. Also, it makes it harder for an attacker to launch a sybil
2030       attack by raising the effort for a relay to become Stable which
2031       takes at the very least 7 days to do so and by keeping the 96
2032       hours uptime requirement for HSDir. Implements ticket 8243.
2034   o Minor bugfixes (compilation):
2035     - Build with --enable-systemd correctly when libsystemd is
2036       installed, but systemd is not. Fixes bug 16164; bugfix on
2037       0.2.6.3-alpha. Patch from Peter Palfrader.
2039   o Minor bugfixes (Linux seccomp2 sandbox):
2040     - Fix sandboxing to work when running as a relaymby renaming of
2041       secret_id_key, and allowing the eventfd2 and futex syscalls. Fixes
2042       bug 16244; bugfix on 0.2.6.1-alpha. Patch by Peter Palfrader.
2043     - Allow systemd connections to work with the Linux seccomp2 sandbox
2044       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
2045       Peter Palfrader.
2047   o Minor bugfixes (tests):
2048     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
2049       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
2052 Changes in version 0.2.6.8 - 2015-05-21
2053   Tor 0.2.6.8 fixes a bit of dodgy code in parsing INTRODUCE2 cells, and
2054   fixes an authority-side bug in assigning the HSDir flag. All directory
2055   authorities should upgrade.
2057   o Major bugfixes (hidden services, backport from 0.2.7.1-alpha):
2058     - Revert commit that made directory authorities assign the HSDir
2059       flag to relay without a DirPort; this was bad because such relays
2060       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
2061       on 0.2.6.3-alpha.
2063   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
2064     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
2065       a client authorized hidden service. Fixes bug 15823; bugfix
2066       on 0.2.1.6-alpha.
2068   o Minor features (geoip):
2069     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
2070     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
2071       Country database.
2074 Changes in version 0.2.7.1-alpha - 2015-05-12
2075   Tor 0.2.7.1-alpha is the first alpha release in its series. It
2076   includes numerous small features and bugfixes against previous Tor
2077   versions, and numerous small infrastructure improvements. The most
2078   notable features are several new ways for controllers to interact with
2079   the hidden services subsystem.
2081   o New system requirements:
2082     - Tor no longer includes workarounds to support Libevent versions
2083       before 1.3e. Libevent 2.0 or later is recommended. Closes
2084       ticket 15248.
2086   o Major features (controller):
2087     - Add the ADD_ONION and DEL_ONION commands that allow the creation
2088       and management of hidden services via the controller. Closes
2089       ticket 6411.
2090     - New "GETINFO onions/current" and "GETINFO onions/detached"
2091       commands to get information about hidden services created via the
2092       controller. Part of ticket 6411.
2093     - New HSFETCH command to launch a request for a hidden service
2094       descriptor. Closes ticket 14847.
2095     - New HSPOST command to upload a hidden service descriptor. Closes
2096       ticket 3523. Patch by "DonnchaC".
2098   o Major bugfixes (hidden services):
2099     - Revert commit that made directory authorities assign the HSDir
2100       flag to relay without a DirPort; this was bad because such relays
2101       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
2102       on 0.2.6.3-alpha.
2104   o Minor features (clock-jump tolerance):
2105     - Recover better when our clock jumps back many hours, like might
2106       happen for Tails or Whonix users who start with a very wrong
2107       hardware clock, use Tor to discover a more accurate time, and then
2108       fix their clock. Resolves part of ticket 8766.
2110   o Minor features (command-line interface):
2111     - Make --hash-password imply --hush to prevent unnecessary noise.
2112       Closes ticket 15542. Patch from "cypherpunks".
2113     - Print a warning whenever we find a relative file path being used
2114       as torrc option. Resolves issue 14018.
2116   o Minor features (controller):
2117     - Add DirAuthority lines for default directory authorities to the
2118       output of the "GETINFO config/defaults" command if not already
2119       present. Implements ticket 14840.
2120     - Controllers can now use "GETINFO hs/client/desc/id/..." to
2121       retrieve items from the client's hidden service descriptor cache.
2122       Closes ticket 14845.
2123     - Implement a new controller command "GETINFO status/fresh-relay-
2124       descs" to fetch a descriptor/extrainfo pair that was generated on
2125       demand just for the controller's use. Implements ticket 14784.
2127   o Minor features (DoS-resistance):
2128     - Make it harder for attackers to overload hidden services with
2129       introductions, by blocking multiple introduction requests on the
2130       same circuit. Resolves ticket 15515.
2132   o Minor features (geoip):
2133     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
2134     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
2135       Country database.
2137   o Minor features (HS popularity countermeasure):
2138     - To avoid leaking HS popularity, don't cycle the introduction point
2139       when we've handled a fixed number of INTRODUCE2 cells but instead
2140       cycle it when a random number of introductions is reached, thus
2141       making it more difficult for an attacker to find out the amount of
2142       clients that have used the introduction point for a specific HS.
2143       Closes ticket 15745.
2145   o Minor features (logging):
2146     - Include the Tor version in all LD_BUG log messages, since people
2147       tend to cut and paste those into the bugtracker. Implements
2148       ticket 15026.
2150   o Minor features (pluggable transports):
2151     - When launching managed pluggable transports on Linux systems,
2152       attempt to have the kernel deliver a SIGTERM on tor exit if the
2153       pluggable transport process is still running. Resolves
2154       ticket 15471.
2155     - When launching managed pluggable transports, setup a valid open
2156       stdin in the child process that can be used to detect if tor has
2157       terminated. The "TOR_PT_EXIT_ON_STDIN_CLOSE" environment variable
2158       can be used by implementations to detect this new behavior.
2159       Resolves ticket 15435.
2161   o Minor features (testing):
2162     - Add a test to verify that the compiler does not eliminate our
2163       memwipe() implementation. Closes ticket 15377.
2164     - Add make rule `check-changes` to verify the format of changes
2165       files. Closes ticket 15180.
2166     - Add unit tests for control_event_is_interesting(). Add a compile-
2167       time check that the number of events doesn't exceed the capacity
2168       of control_event_t.event_mask. Closes ticket 15431, checks for
2169       bugs similar to 13085. Patch by "teor".
2170     - Command-line argument tests moved to Stem. Resolves ticket 14806.
2171     - Integrate the ntor, backtrace, and zero-length keys tests into the
2172       automake test suite. Closes ticket 15344.
2173     - Remove assertions during builds to determine Tor's test coverage.
2174       We don't want to trigger these even in assertions, so including
2175       them artificially makes our branch coverage look worse than it is.
2176       This patch provides the new test-stem-full and coverage-html-full
2177       configure options. Implements ticket 15400.
2179   o Minor bugfixes (build):
2180     - Improve out-of-tree builds by making non-standard rules work and
2181       clean up additional files and directories. Fixes bug 15053; bugfix
2182       on 0.2.7.0-alpha.
2184   o Minor bugfixes (command-line interface):
2185     - When "--quiet" is provided along with "--validate-config", do not
2186       write anything to stdout on success. Fixes bug 14994; bugfix
2187       on 0.2.3.3-alpha.
2188     - When complaining about bad arguments to "--dump-config", use
2189       stderr, not stdout.
2191   o Minor bugfixes (configuration, unit tests):
2192     - Only add the default fallback directories when the DirAuthorities,
2193       AlternateDirAuthority, and FallbackDir directory config options
2194       are set to their defaults. The default fallback directory list is
2195       currently empty, this fix will only change tor's behavior when it
2196       has default fallback directories. Includes unit tests for
2197       consider_adding_dir_servers(). Fixes bug 15642; bugfix on
2198       90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor".
2200   o Minor bugfixes (correctness):
2201     - For correctness, avoid modifying a constant string in
2202       handle_control_postdescriptor. Fixes bug 15546; bugfix
2203       on 0.1.1.16-rc.
2204     - Remove side-effects from tor_assert() calls. This was harmless,
2205       because we never disable assertions, but it is bad style and
2206       unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36,
2207       and 0.2.0.10.
2209   o Minor bugfixes (hidden service):
2210     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
2211       a client authorized hidden service. Fixes bug 15823; bugfix
2212       on 0.2.1.6-alpha.
2213     - Remove an extraneous newline character from the end of hidden
2214       service descriptors. Fixes bug 15296; bugfix on 0.2.0.10-alpha.
2216   o Minor bugfixes (interface):
2217     - Print usage information for --dump-config when it is used without
2218       an argument. Also, fix the error message to use different wording
2219       and add newline at the end. Fixes bug 15541; bugfix
2220       on 0.2.5.1-alpha.
2222   o Minor bugfixes (logs):
2223     - When building Tor under Clang, do not include an extra set of
2224       parentheses in log messages that include function names. Fixes bug
2225       15269; bugfix on every released version of Tor when compiled with
2226       recent enough Clang.
2228   o Minor bugfixes (network):
2229     - When attempting to use fallback technique for network interface
2230       lookup, disregard loopback and multicast addresses since they are
2231       unsuitable for public communications.
2233   o Minor bugfixes (statistics):
2234     - Disregard the ConnDirectionStatistics torrc options when Tor is
2235       not a relay since in that mode of operation no sensible data is
2236       being collected and because Tor might run into measurement hiccups
2237       when running as a client for some time, then becoming a relay.
2238       Fixes bug 15604; bugfix on 0.2.2.35.
2240   o Minor bugfixes (test networks):
2241     - When self-testing reachability, use ExtendAllowPrivateAddresses to
2242       determine if local/private addresses imply reachability. The
2243       previous fix used TestingTorNetwork, which implies
2244       ExtendAllowPrivateAddresses, but this excluded rare configurations
2245       where ExtendAllowPrivateAddresses is set but TestingTorNetwork is
2246       not. Fixes bug 15771; bugfix on 0.2.6.1-alpha. Patch by "teor",
2247       issue discovered by CJ Ess.
2249   o Minor bugfixes (testing):
2250     - Check for matching value in server response in ntor_ref.py. Fixes
2251       bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed
2252       by "joelanders".
2253     - Set the severity correctly when testing
2254       get_interface_addresses_ifaddrs() and
2255       get_interface_addresses_win32(), so that the tests fail gracefully
2256       instead of triggering an assertion. Fixes bug 15759; bugfix on
2257       0.2.6.3-alpha. Reported by Nicolas Derive.
2259   o Code simplification and refactoring:
2260     - Move the hacky fallback code out of get_interface_address6() into
2261       separate function and get it covered with unit-tests. Resolves
2262       ticket 14710.
2263     - Refactor hidden service client-side cache lookup to intelligently
2264       report its various failure cases, and disentangle failure cases
2265       involving a lack of introduction points. Closes ticket 14391.
2266     - Use our own Base64 encoder instead of OpenSSL's, to allow more
2267       control over the output. Part of ticket 15652.
2269   o Documentation:
2270     - Improve the descriptions of statistics-related torrc options in
2271       the manpage to describe rationale and possible uses cases. Fixes
2272       issue 15550.
2273     - Improve the layout and formatting of ./configure --help messages.
2274       Closes ticket 15024. Patch from "cypherpunks".
2275     - Standardize on the term "server descriptor" in the manual page.
2276       Previously, we had used "router descriptor", "server descriptor",
2277       and "relay descriptor" interchangeably. Part of ticket 14987.
2279   o Removed code:
2280     - Remove `USE_OPENSSL_BASE64` and the corresponding fallback code
2281       and always use the internal Base64 decoder. The internal decoder
2282       has been part of tor since 0.2.0.10-alpha, and no one should
2283       be using the OpenSSL one. Part of ticket 15652.
2284     - Remove the 'tor_strclear()' function; use memwipe() instead.
2285       Closes ticket 14922.
2287   o Removed features:
2288     - Remove the (seldom-used) DynamicDHGroups feature. For anti-
2289       fingerprinting we now recommend pluggable transports; for forward-
2290       secrecy in TLS, we now use the P-256 group. Closes ticket 13736.
2291     - Remove the undocumented "--digests" command-line option. It
2292       complicated our build process, caused subtle build issues on
2293       multiple platforms, and is now redundant since we started
2294       including git version identifiers. Closes ticket 14742.
2295     - Tor no longer contains checks for ancient directory cache versions
2296       that didn't know about microdescriptors.
2297     - Tor no longer contains workarounds for stat files generated by
2298       super-old versions of Tor that didn't choose guards sensibly.
2301 Changes in version 0.2.4.27 - 2015-04-06
2302   Tor 0.2.4.27 backports two fixes from 0.2.6.7 for security issues that
2303   could be used by an attacker to crash hidden services, or crash clients
2304   visiting hidden services. Hidden services should upgrade as soon as
2305   possible; clients should upgrade whenever packages become available.
2307   This release also backports a simple improvement to make hidden
2308   services a bit less vulnerable to denial-of-service attacks.
2310   o Major bugfixes (security, hidden service):
2311     - Fix an issue that would allow a malicious client to trigger an
2312       assertion failure and halt a hidden service. Fixes bug 15600;
2313       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
2314     - Fix a bug that could cause a client to crash with an assertion
2315       failure when parsing a malformed hidden service descriptor. Fixes
2316       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
2318   o Minor features (DoS-resistance, hidden service):
2319     - Introduction points no longer allow multiple INTRODUCE1 cells to
2320       arrive on the same circuit. This should make it more expensive for
2321       attackers to overwhelm hidden services with introductions.
2322       Resolves ticket 15515.
2325 Changes in version 0.2.5.12 - 2015-04-06
2326   Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that
2327   could be used by an attacker to crash hidden services, or crash clients
2328   visiting hidden services. Hidden services should upgrade as soon as
2329   possible; clients should upgrade whenever packages become available.
2331   This release also backports a simple improvement to make hidden
2332   services a bit less vulnerable to denial-of-service attacks.
2334   o Major bugfixes (security, hidden service):
2335     - Fix an issue that would allow a malicious client to trigger an
2336       assertion failure and halt a hidden service. Fixes bug 15600;
2337       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
2338     - Fix a bug that could cause a client to crash with an assertion
2339       failure when parsing a malformed hidden service descriptor. Fixes
2340       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
2342   o Minor features (DoS-resistance, hidden service):
2343     - Introduction points no longer allow multiple INTRODUCE1 cells to
2344       arrive on the same circuit. This should make it more expensive for
2345       attackers to overwhelm hidden services with introductions.
2346       Resolves ticket 15515.
2349 Changes in version 0.2.6.7 - 2015-04-06
2350   Tor 0.2.6.7 fixes two security issues that could be used by an
2351   attacker to crash hidden services, or crash clients visiting hidden
2352   services. Hidden services should upgrade as soon as possible; clients
2353   should upgrade whenever packages become available.
2355   This release also contains two simple improvements to make hidden
2356   services a bit less vulnerable to denial-of-service attacks.
2358   o Major bugfixes (security, hidden service):
2359     - Fix an issue that would allow a malicious client to trigger an
2360       assertion failure and halt a hidden service. Fixes bug 15600;
2361       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
2362     - Fix a bug that could cause a client to crash with an assertion
2363       failure when parsing a malformed hidden service descriptor. Fixes
2364       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
2366   o Minor features (DoS-resistance, hidden service):
2367     - Introduction points no longer allow multiple INTRODUCE1 cells to
2368       arrive on the same circuit. This should make it more expensive for
2369       attackers to overwhelm hidden services with introductions.
2370       Resolves ticket 15515.
2371     - Decrease the amount of reattempts that a hidden service performs
2372       when its rendezvous circuits fail. This reduces the computational
2373       cost for running a hidden service under heavy load. Resolves
2374       ticket 11447.
2377 Changes in version 0.2.6.6 - 2015-03-24
2378   Tor 0.2.6.6 is the first stable release in the 0.2.6 series.
2380   It adds numerous safety, security, correctness, and performance
2381   improvements. Client programs can be configured to use more kinds of
2382   sockets, AutomapHosts works better, the multithreading backend is
2383   improved, cell transmission is refactored, test coverage is much
2384   higher, more denial-of-service attacks are handled, guard selection is
2385   improved to handle long-term guards better, pluggable transports
2386   should work a bit better, and some annoying hidden service performance
2387   bugs should be addressed.
2389   o Minor bugfixes (portability):
2390     - Use the correct datatype in the SipHash-2-4 function to prevent
2391       compilers from assuming any sort of alignment. Fixes bug 15436;
2392       bugfix on 0.2.5.3-alpha.
2394 Changes in version 0.2.6.5-rc - 2015-03-18
2395   Tor 0.2.6.5-rc is the second and (hopefully) last release candidate in
2396   the 0.2.6. It fixes a small number of bugs found in 0.2.6.4-rc.
2398   o Major bugfixes (client):
2399     - Avoid crashing when making certain configuration option changes on
2400       clients. Fixes bug 15245; bugfix on 0.2.6.3-alpha. Reported
2401       by "anonym".
2403   o Major bugfixes (pluggable transports):
2404     - Initialize the extended OR Port authentication cookie before
2405       launching pluggable transports. This prevents a race condition
2406       that occured when server-side pluggable transports would cache the
2407       authentication cookie before it has been (re)generated. Fixes bug
2408       15240; bugfix on 0.2.5.1-alpha.
2410   o Major bugfixes (portability):
2411     - Do not crash on startup when running on Solaris. Fixes a bug
2412       related to our fix for 9495; bugfix on 0.2.6.1-alpha. Reported
2413       by "ruebezahl".
2415   o Minor features (heartbeat):
2416     - On relays, report how many connections we negotiated using each
2417       version of the Tor link protocols. This information will let us
2418       know if removing support for very old versions of the Tor
2419       protocols is harming the network. Closes ticket 15212.
2421   o Code simplification and refactoring:
2422     - Refactor main loop to extract the 'loop' part. This makes it
2423       easier to run Tor under Shadow. Closes ticket 15176.
2426 Changes in version 0.2.5.11 - 2015-03-17
2427   Tor 0.2.5.11 is the second stable release in the 0.2.5 series.
2429   It backports several bugfixes from the 0.2.6 branch, including a
2430   couple of medium-level security fixes for relays and exit nodes.
2431   It also updates the list of directory authorities.
2433   o Directory authority changes:
2434     - Remove turtles as a directory authority.
2435     - Add longclaw as a new (v3) directory authority. This implements
2436       ticket 13296. This keeps the directory authority count at 9.
2437     - The directory authority Faravahar has a new IP address. This
2438       closes ticket 14487.
2440   o Major bugfixes (crash, OSX, security):
2441     - Fix a remote denial-of-service opportunity caused by a bug in
2442       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
2443       in OSX 10.9.
2445   o Major bugfixes (relay, stability, possible security):
2446     - Fix a bug that could lead to a relay crashing with an assertion
2447       failure if a buffer of exactly the wrong layout was passed to
2448       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
2449       0.2.0.10-alpha. Patch from 'cypherpunks'.
2450     - Do not assert if the 'data' pointer on a buffer is advanced to the
2451       very end of the buffer; log a BUG message instead. Only assert if
2452       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
2454   o Major bugfixes (exit node stability):
2455     - Fix an assertion failure that could occur under high DNS load.
2456       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
2457       diagnosed and fixed by "cypherpunks".
2459   o Major bugfixes (Linux seccomp2 sandbox):
2460     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
2461       crash during attempts to call wait4. Fixes bug 15088; bugfix on
2462       0.2.5.1-alpha. Patch from "sanic".
2464   o Minor features (controller):
2465     - New "GETINFO bw-event-cache" to get information about recent
2466       bandwidth events. Closes ticket 14128. Useful for controllers to
2467       get recent bandwidth history after the fix for ticket 13988.
2469   o Minor features (geoip):
2470     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
2471     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
2472       Country database.
2474   o Minor bugfixes (client, automapping):
2475     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
2476       no value follows the option. Fixes bug 14142; bugfix on
2477       0.2.4.7-alpha. Patch by "teor".
2478     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
2479       14195; bugfix on 0.1.0.1-rc.
2481   o Minor bugfixes (compilation):
2482     - Build without warnings with the stock OpenSSL srtp.h header, which
2483       has a duplicate declaration of SSL_get_selected_srtp_profile().
2484       Fixes bug 14220; this is OpenSSL's bug, not ours.
2486   o Minor bugfixes (directory authority):
2487     - Allow directory authorities to fetch more data from one another if
2488       they find themselves missing lots of votes. Previously, they had
2489       been bumping against the 10 MB queued data limit. Fixes bug 14261;
2490       bugfix on 0.1.2.5-alpha.
2491     - Enlarge the buffer to read bwauth generated files to avoid an
2492       issue when parsing the file in dirserv_read_measured_bandwidths().
2493       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
2495   o Minor bugfixes (statistics):
2496     - Increase period over which bandwidth observations are aggregated
2497       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
2499   o Minor bugfixes (preventative security, C safety):
2500     - When reading a hexadecimal, base-32, or base-64 encoded value from
2501       a string, always overwrite the whole output buffer. This prevents
2502       some bugs where we would look at (but fortunately, not reveal)
2503       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
2504       versions of Tor.
2507 Changes in version 0.2.4.26 - 2015-03-17
2508   Tor 0.2.4.26 includes an updated list of directory authorities.  It
2509   also backports a couple of stability and security bugfixes from 0.2.5
2510   and beyond.
2512   o Directory authority changes:
2513     - Remove turtles as a directory authority.
2514     - Add longclaw as a new (v3) directory authority. This implements
2515       ticket 13296. This keeps the directory authority count at 9.
2516     - The directory authority Faravahar has a new IP address. This
2517       closes ticket 14487.
2519   o Major bugfixes (exit node stability, also in 0.2.6.3-alpha):
2520     - Fix an assertion failure that could occur under high DNS load.
2521       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
2522       diagnosed and fixed by "cypherpunks".
2524   o Major bugfixes (relay, stability, possible security, also in 0.2.6.4-rc):
2525     - Fix a bug that could lead to a relay crashing with an assertion
2526       failure if a buffer of exactly the wrong layout was passed to
2527       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
2528       0.2.0.10-alpha. Patch from 'cypherpunks'.
2529     - Do not assert if the 'data' pointer on a buffer is advanced to the
2530       very end of the buffer; log a BUG message instead. Only assert if
2531       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
2533   o Minor features (geoip):
2534     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
2535     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
2536       Country database.
2538 Changes in version 0.2.6.4-rc - 2015-03-09
2539   Tor 0.2.6.4-alpha fixes an issue in the directory code that an
2540   attacker might be able to use in order to crash certain Tor
2541   directories. It also resolves some minor issues left over from, or
2542   introduced in, Tor 0.2.6.3-alpha or earlier.
2544   o Major bugfixes (crash, OSX, security):
2545     - Fix a remote denial-of-service opportunity caused by a bug in
2546       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
2547       in OSX 10.9.
2549   o Major bugfixes (relay, stability, possible security):
2550     - Fix a bug that could lead to a relay crashing with an assertion
2551       failure if a buffer of exactly the wrong layout is passed to
2552       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
2553       0.2.0.10-alpha. Patch from "cypherpunks".
2554     - Do not assert if the 'data' pointer on a buffer is advanced to the
2555       very end of the buffer; log a BUG message instead. Only assert if
2556       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
2558   o Major bugfixes (FreeBSD IPFW transparent proxy):
2559     - Fix address detection with FreeBSD transparent proxies, when
2560       "TransProxyType ipfw" is in use. Fixes bug 15064; bugfix
2561       on 0.2.5.4-alpha.
2563   o Major bugfixes (Linux seccomp2 sandbox):
2564     - Pass IPPROTO_TCP rather than 0 to socket(), so that the Linux
2565       seccomp2 sandbox doesn't fail. Fixes bug 14989; bugfix
2566       on 0.2.6.3-alpha.
2567     - Allow AF_UNIX hidden services to be used with the seccomp2
2568       sandbox. Fixes bug 15003; bugfix on 0.2.6.3-alpha.
2569     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
2570       crash during attempts to call wait4. Fixes bug 15088; bugfix on
2571       0.2.5.1-alpha. Patch from "sanic".
2573   o Minor features (controller):
2574     - Messages about problems in the bootstrap process now include
2575       information about the server we were trying to connect to when we
2576       noticed the problem. Closes ticket 15006.
2578   o Minor features (geoip):
2579     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
2580     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
2581       Country database.
2583   o Minor features (logs):
2584     - Quiet some log messages in the heartbeat and at startup. Closes
2585       ticket 14950.
2587   o Minor bugfixes (certificate handling):
2588     - If an authority operator accidentally makes a signing certificate
2589       with a future publication time, do not discard its real signing
2590       certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha.
2591     - Remove any old authority certificates that have been superseded
2592       for at least two days. Previously, we would keep superseded
2593       certificates until they expired, if they were published close in
2594       time to the certificate that superseded them. Fixes bug 11454;
2595       bugfix on 0.2.1.8-alpha.
2597   o Minor bugfixes (compilation):
2598     - Fix a compilation warning on s390. Fixes bug 14988; bugfix
2599       on 0.2.5.2-alpha.
2600     - Fix a compilation warning on FreeBSD. Fixes bug 15151; bugfix
2601       on 0.2.6.2-alpha.
2603   o Minor bugfixes (testing):
2604     - Fix endianness issues in unit test for resolve_my_address() to
2605       have it pass on big endian systems. Fixes bug 14980; bugfix on
2606       Tor 0.2.6.3-alpha.
2607     - Avoid a side-effect in a tor_assert() in the unit tests. Fixes bug
2608       15188; bugfix on 0.1.2.3-alpha. Patch from Tom van der Woerdt.
2609     - When running the new 'make test-stem' target, use the configured
2610       python binary. Fixes bug 15037; bugfix on 0.2.6.3-alpha. Patch
2611       from "cypherpunks".
2612     - When running the zero-length-keys tests, do not use the default
2613       torrc file. Fixes bug 15033; bugfix on 0.2.6.3-alpha. Reported
2614       by "reezer".
2616   o Directory authority IP change:
2617     - The directory authority Faravahar has a new IP address. This
2618       closes ticket 14487.
2620   o Removed code:
2621     - Remove some lingering dead code that once supported mempools.
2622       Mempools were disabled by default in 0.2.5, and removed entirely
2623       in 0.2.6.3-alpha. Closes more of ticket 14848; patch
2624       by "cypherpunks".
2627 Changes in version 0.2.6.3-alpha - 2015-02-19
2628   Tor 0.2.6.3-alpha is the third (and hopefully final) alpha release in
2629   the 0.2.6.x series. It introduces support for more kinds of sockets,
2630   makes it harder to accidentally run an exit, improves our
2631   multithreading backend, incorporates several fixes for the
2632   AutomapHostsOnResolve option, and fixes numerous other bugs besides.
2634   If no major regressions or security holes are found in this version,
2635   the next version will be a release candidate.
2637   o Deprecated versions:
2638     - Tor relays older than 0.2.4.18-rc are no longer allowed to
2639       advertise themselves on the network. Closes ticket 13555.
2641   o Major features (security, unix domain sockets):
2642     - Allow SocksPort to be an AF_UNIX Unix Domain Socket. Now high risk
2643       applications can reach Tor without having to create AF_INET or
2644       AF_INET6 sockets, meaning they can completely disable their
2645       ability to make non-Tor network connections. To create a socket of
2646       this type, use "SocksPort unix:/path/to/socket". Implements
2647       ticket 12585.
2648     - Support mapping hidden service virtual ports to AF_UNIX sockets.
2649       The syntax is "HiddenServicePort 80 unix:/path/to/socket".
2650       Implements ticket 11485.
2652   o Major features (changed defaults):
2653     - Prevent relay operators from unintentionally running exits: When a
2654       relay is configured as an exit node, we now warn the user unless
2655       the "ExitRelay" option is set to 1. We warn even more loudly if
2656       the relay is configured with the default exit policy, since this
2657       can indicate accidental misconfiguration. Setting "ExitRelay 0"
2658       stops Tor from running as an exit relay. Closes ticket 10067.
2660   o Major features (directory system):
2661     - When downloading server- or microdescriptors from a directory
2662       server, we no longer launch multiple simultaneous requests to the
2663       same server. This reduces load on the directory servers,
2664       especially when directory guards are in use. Closes ticket 9969.
2665     - When downloading server- or microdescriptors over a tunneled
2666       connection, do not limit the length of our requests to what the
2667       Squid proxy is willing to handle. Part of ticket 9969.
2668     - Authorities can now vote on the correct digests and latest
2669       versions for different software packages. This allows packages
2670       that include Tor to use the Tor authority system as a way to get
2671       notified of updates and their correct digests. Implements proposal
2672       227. Closes ticket 10395.
2674   o Major features (guards):
2675     - Introduce the Guardfraction feature to improves load balancing on
2676       guard nodes. Specifically, it aims to reduce the traffic gap that
2677       guard nodes experience when they first get the Guard flag. This is
2678       a required step if we want to increase the guard lifetime to 9
2679       months or greater.  Closes ticket 9321.
2681   o Major features (performance):
2682     - Make the CPU worker implementation more efficient by avoiding the
2683       kernel and lengthening pipelines. The original implementation used
2684       sockets to transfer data from the main thread to the workers, and
2685       didn't allow any thread to be assigned more than a single piece of
2686       work at once. The new implementation avoids communications
2687       overhead by making requests in shared memory, avoiding kernel IO
2688       where possible, and keeping more requests in flight at once.
2689       Implements ticket 9682.
2691   o Major features (relay):
2692     - Raise the minimum acceptable configured bandwidth rate for bridges
2693       to 50 KiB/sec and for relays to 75 KiB/sec. (The old values were
2694       20 KiB/sec.) Closes ticket 13822.
2696   o Major bugfixes (exit node stability):
2697     - Fix an assertion failure that could occur under high DNS load.
2698       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
2699       diagnosed and fixed by "cypherpunks".
2701   o Major bugfixes (mixed relay-client operation):
2702     - When running as a relay and client at the same time (not
2703       recommended), if we decide not to use a new guard because we want
2704       to retry older guards, only close the locally-originating circuits
2705       passing through that guard. Previously we would close all the
2706       circuits through that guard. Fixes bug 9819; bugfix on
2707       0.2.1.1-alpha. Reported by "skruffy".
2709   o Minor features (build):
2710     - New --disable-system-torrc compile-time option to prevent Tor from
2711       looking for the system-wide torrc or torrc-defaults files.
2712       Resolves ticket 13037.
2714   o Minor features (controller):
2715     - Include SOCKS_USERNAME and SOCKS_PASSWORD values in controller
2716       events so controllers can observe circuit isolation inputs. Closes
2717       ticket 8405.
2718     - ControlPort now supports the unix:/path/to/socket syntax as an
2719       alternative to the ControlSocket option, for consistency with
2720       SocksPort and HiddenServicePort. Closes ticket 14451.
2721     - New "GETINFO bw-event-cache" to get information about recent
2722       bandwidth events. Closes ticket 14128. Useful for controllers to
2723       get recent bandwidth history after the fix for ticket 13988.
2725   o Minor features (Denial of service resistance):
2726     - Count the total number of bytes used storing hidden service
2727       descriptors against the value of MaxMemInQueues. If we're low on
2728       memory, and more than 20% of our memory is used holding hidden
2729       service descriptors, free them until no more than 10% of our
2730       memory holds hidden service descriptors. Free the least recently
2731       fetched descriptors first. Resolves ticket 13806.
2732     - When we have recently been under memory pressure (over 3/4 of
2733       MaxMemInQueues is allocated), then allocate smaller zlib objects
2734       for small requests. Closes ticket 11791.
2736   o Minor features (geoip):
2737     - Update geoip and geoip6 files to the January 7 2015 Maxmind
2738       GeoLite2 Country database.
2740   o Minor features (guard nodes):
2741     - Reduce the time delay before saving guard status to disk from 10
2742       minutes to 30 seconds (or from one hour to 10 minutes if
2743       AvoidDiskWrites is set). Closes ticket 12485.
2745   o Minor features (hidden service):
2746     - Make Sybil attacks against hidden services harder by changing the
2747       minimum time required to get the HSDir flag from 25 hours up to 96
2748       hours. Addresses ticket 14149.
2749     - New option "HiddenServiceAllowUnknownPorts" to allow hidden
2750       services to disable the anti-scanning feature introduced in
2751       0.2.6.2-alpha. With this option not set, a connection to an
2752       unlisted port closes the circuit. With this option set, only a
2753       RELAY_DONE cell is sent. Closes ticket 14084.
2755   o Minor features (interface):
2756     - Implement "-f -" command-line option to read torrc configuration
2757       from standard input, if you don't want to store the torrc file in
2758       the file system. Implements feature 13865.
2760   o Minor features (logging):
2761     - Add a count of unique clients to the bridge heartbeat message.
2762       Resolves ticket 6852.
2763     - Suppress "router info incompatible with extra info" message when
2764       reading extrainfo documents from cache. (This message got loud
2765       around when we closed bug 9812 in 0.2.6.2-alpha.) Closes
2766       ticket 13762.
2767     - Elevate hidden service authorized-client message from DEBUG to
2768       INFO. Closes ticket 14015.
2770   o Minor features (stability):
2771     - Add assertions in our hash-table iteration code to check for
2772       corrupted values that could cause infinite loops. Closes
2773       ticket 11737.
2775   o Minor features (systemd):
2776     - Various improvements and modernizations in systemd hardening
2777       support. Closes ticket 13805. Patch from Craig Andrews.
2779   o Minor features (testing networks):
2780     - Drop the minimum RendPostPeriod on a testing network to 5 seconds,
2781       and the default on a testing network to 2 minutes. Drop the
2782       MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but
2783       keep the default on a testing network at 30 seconds. This reduces
2784       HS bootstrap time to around 25 seconds. Also, change the default
2785       time in test-network.sh to match. Closes ticket 13401. Patch
2786       by "teor".
2787     - Create TestingDirAuthVoteHSDir to correspond to
2788       TestingDirAuthVoteExit/Guard. Ensures that authorities vote the
2789       HSDir flag for the listed relays regardless of uptime or ORPort
2790       connectivity. Respects the value of VoteOnHidServDirectoriesV2.
2791       Partial implementation for ticket 14067. Patch by "teor".
2793   o Minor features (tor2web mode):
2794     - Introduce the config option Tor2webRendezvousPoints, which allows
2795       clients in Tor2webMode to select a specific Rendezvous Point to be
2796       used in HS circuits. This might allow better performance for
2797       Tor2Web nodes. Implements ticket 12844.
2799   o Minor bugfixes (client DNS):
2800     - Report the correct cached DNS expiration times on SOCKS port or in
2801       DNS replies. Previously, we would report everything as "never
2802       expires." Fixes bug 14193; bugfix on 0.2.3.17-beta.
2803     - Avoid a small memory leak when we find a cached answer for a
2804       reverse DNS lookup in a client-side DNS cache. (Remember, client-
2805       side DNS caching is off by default, and is not recommended.) Fixes
2806       bug 14259; bugfix on 0.2.0.1-alpha.
2808   o Minor bugfixes (client, automapping):
2809     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
2810       no value follows the option. Fixes bug 14142; bugfix on
2811       0.2.4.7-alpha. Patch by "teor".
2812     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
2813       14195; bugfix on 0.1.0.1-rc.
2814     - Prevent changes to other options from removing the wildcard value
2815       "." from "AutomapHostsSuffixes". Fixes bug 12509; bugfix
2816       on 0.2.0.1-alpha.
2817     - Allow MapAddress and AutomapHostsOnResolve to work together when
2818       an address is mapped into another address type (like .onion) that
2819       must be automapped at resolve time. Fixes bug 7555; bugfix
2820       on 0.2.0.1-alpha.
2822   o Minor bugfixes (client, bridges):
2823     - When we are using bridges and we had a network connectivity
2824       problem, only retry connecting to our currently configured
2825       bridges, not all bridges we know about and remember using. Fixes
2826       bug 14216; bugfix on 0.2.2.17-alpha.
2828   o Minor bugfixes (client, IPv6):
2829     - Reject socks requests to literal IPv6 addresses when IPv6Traffic
2830       flag is not set; and not because the NoIPv4Traffic flag was set.
2831       Previously we'd looked at the NoIPv4Traffic flag for both types of
2832       literal addresses. Fixes bug 14280; bugfix on 0.2.4.7-alpha.
2834   o Minor bugfixes (compilation):
2835     - The address of an array in the middle of a structure will always
2836       be non-NULL. clang recognises this and complains. Disable the
2837       tautologous and redundant check to silence this warning. Fixes bug
2838       14001; bugfix on 0.2.1.2-alpha.
2839     - Avoid warnings when building with systemd 209 or later. Fixes bug
2840       14072; bugfix on 0.2.6.2-alpha. Patch from "h.venev".
2841     - Compile correctly with (unreleased) OpenSSL 1.1.0 headers.
2842       Addresses ticket 14188.
2843     - Build without warnings with the stock OpenSSL srtp.h header, which
2844       has a duplicate declaration of SSL_get_selected_srtp_profile().
2845       Fixes bug 14220; this is OpenSSL's bug, not ours.
2846     - Do not compile any code related to Tor2Web mode when Tor2Web mode
2847       is not enabled at compile time. Previously, this code was included
2848       in a disabled state. See discussion on ticket 12844.
2849     - Remove the --disable-threads configure option again. It was
2850       accidentally partially reintroduced in 29ac883606d6d. Fixes bug
2851       14819; bugfix on 0.2.6.2-alpha.
2853   o Minor bugfixes (controller):
2854     - Report "down" in response to the "GETINFO entry-guards" command
2855       when relays are down with an unreachable_since value. Previously,
2856       we would report "up". Fixes bug 14184; bugfix on 0.1.2.2-alpha.
2857     - Avoid crashing on a malformed EXTENDCIRCUIT command. Fixes bug
2858       14116; bugfix on 0.2.2.9-alpha.
2859     - Add a code for the END_CIRC_REASON_IP_NOW_REDUNDANT circuit close
2860       reason. Fixes bug 14207; bugfix on 0.2.6.2-alpha.
2862   o Minor bugfixes (directory authority):
2863     - Allow directory authorities to fetch more data from one another if
2864       they find themselves missing lots of votes. Previously, they had
2865       been bumping against the 10 MB queued data limit. Fixes bug 14261;
2866       bugfix on 0.1.2.5-alpha.
2867     - Do not attempt to download extrainfo documents which we will be
2868       unable to validate with a matching server descriptor. Fixes bug
2869       13762; bugfix on 0.2.0.1-alpha.
2870     - Fix a bug that was truncating AUTHDIR_NEWDESC events sent to the
2871       control port. Fixes bug 14953; bugfix on 0.2.0.1-alpha.
2872     - Enlarge the buffer to read bwauth generated files to avoid an
2873       issue when parsing the file in dirserv_read_measured_bandwidths().
2874       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
2876   o Minor bugfixes (file handling):
2877     - Stop failing when key files are zero-length. Instead, generate new
2878       keys, and overwrite the empty key files. Fixes bug 13111; bugfix
2879       on all versions of Tor. Patch by "teor".
2880     - Stop generating a fresh .old RSA onion key file when the .old file
2881       is missing. Fixes part of 13111; bugfix on 0.0.6rc1.
2882     - Avoid overwriting .old key files with empty key files.
2883     - Skip loading zero-length extrainfo store, router store, stats,
2884       state, and key files.
2885     - Avoid crashing when trying to reload a torrc specified as a
2886       relative path with RunAsDaemon turned on. Fixes bug 13397; bugfix
2887       on 0.2.3.11-alpha.
2889   o Minor bugfixes (hidden services):
2890     - Close the introduction circuit when we have no more usable intro
2891       points, instead of waiting for it to time out. This also ensures
2892       that no follow-up HS descriptor fetch is triggered when the
2893       circuit eventually times out. Fixes bug 14224; bugfix on 0.0.6.
2894     - When fetching a hidden service descriptor for a down service that
2895       was recently up, do not keep refetching until we try the same
2896       replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha.
2897     - Successfully launch Tor with a nonexistent hidden service
2898       directory. Our fix for bug 13942 didn't catch this case. Fixes bug
2899       14106; bugfix on 0.2.6.2-alpha.
2901   o Minor bugfixes (logging):
2902     - Avoid crashing when there are more log domains than entries in
2903       domain_list. Bugfix on 0.2.3.1-alpha.
2904     - Add a string representation for LD_SCHED. Fixes bug 14740; bugfix
2905       on 0.2.6.1-alpha.
2906     - Don't log messages to stdout twice when starting up. Fixes bug
2907       13993; bugfix on 0.2.6.1-alpha.
2909   o Minor bugfixes (parsing):
2910     - Stop accepting milliseconds (or other junk) at the end of
2911       descriptor publication times. Fixes bug 9286; bugfix on 0.0.2pre25.
2912     - Support two-number and three-number version numbers correctly, in
2913       case we change the Tor versioning system in the future. Fixes bug
2914       13661; bugfix on 0.0.8pre1.
2916   o Minor bugfixes (path counting):
2917     - When deciding whether the consensus lists any exit nodes, count
2918       the number listed in the consensus, not the number we have
2919       descriptors for. Fixes part of bug 14918; bugfix on 0.2.6.2-alpha.
2920     - When deciding whether we have any exit nodes, only examine
2921       ExitNodes when the ExitNodes option is actually set. Fixes part of
2922       bug 14918; bugfix on 0.2.6.2-alpha.
2923     - Get rid of redundant and possibly scary warnings that we are
2924       missing directory information while we bootstrap. Fixes part of
2925       bug 14918; bugfix on 0.2.6.2-alpha.
2927   o Minor bugfixes (portability):
2928     - Fix the ioctl()-based network interface lookup code so that it
2929       will work on systems that have variable-length struct ifreq, for
2930       example Mac OS X.
2931     - Fix scheduler compilation on targets where char is unsigned. Fixes
2932       bug 14764; bugfix on 0.2.6.2-alpha. Reported by Christian Kujau.
2934   o Minor bugfixes (sandbox):
2935     - Allow glibc fatal errors to be sent to stderr before Tor exits.
2936       Previously, glibc would try to write them to /dev/tty, and the
2937       sandbox would trap the call and make Tor exit prematurely. Fixes
2938       bug 14759; bugfix on 0.2.5.1-alpha.
2940   o Minor bugfixes (shutdown):
2941     - When shutting down, always call event_del() on lingering read or
2942       write events before freeing them. Otherwise, we risk double-frees
2943       or read-after-frees in event_base_free(). Fixes bug 12985; bugfix
2944       on 0.1.0.2-rc.
2946   o Minor bugfixes (small memory leaks):
2947     - Avoid leaking memory when using IPv6 virtual address mappings.
2948       Fixes bug 14123; bugfix on 0.2.4.7-alpha. Patch by Tom van
2949       der Woerdt.
2951   o Minor bugfixes (statistics):
2952     - Increase period over which bandwidth observations are aggregated
2953       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
2955   o Minor bugfixes (systemd support):
2956     - Fix detection and operation of systemd watchdog. Fixes part of bug
2957       14141; bugfix on 0.2.6.2-alpha. Patch from Tomasz Torcz.
2958     - Run correctly under systemd with the RunAsDaemon option set. Fixes
2959       part of bug 14141; bugfix on 0.2.5.7-rc. Patch from Tomasz Torcz.
2960     - Inform the systemd supervisor about more changes in the Tor
2961       process status. Implements part of ticket 14141. Patch from
2962       Tomasz Torcz.
2963     - Cause the "--disable-systemd" option to actually disable systemd
2964       support. Fixes bug 14350; bugfix on 0.2.6.2-alpha. Patch
2965       from "blueness".
2967   o Minor bugfixes (TLS):
2968     - Check more thoroughly throughout the TLS code for possible
2969       unlogged TLS errors. Possible diagnostic or fix for bug 13319.
2971   o Minor bugfixes (transparent proxy):
2972     - Use getsockname, not getsockopt, to retrieve the address for a
2973       TPROXY-redirected connection. Fixes bug 13796; bugfix
2974       on 0.2.5.2-alpha.
2976   o Code simplification and refactoring:
2977     - Move fields related to isolating and configuring client ports into
2978       a shared structure. Previously, they were duplicated across
2979       port_cfg_t, listener_connection_t, and edge_connection_t. Failure
2980       to copy them correctly had been the cause of at least one bug in
2981       the past. Closes ticket 8546.
2982     - Refactor the get_interface_addresses_raw() doom-function into
2983       multiple smaller and simpler subfunctions. Cover the resulting
2984       subfunctions with unit-tests. Fixes a significant portion of
2985       issue 12376.
2986     - Remove workaround in dirserv_thinks_router_is_hs_dir() that was
2987       only for version <= 0.2.2.24 which is now deprecated. Closes
2988       ticket 14202.
2989     - Remove a test for a long-defunct broken version-one
2990       directory server.
2992   o Documentation:
2993     - Adding section on OpenBSD to our TUNING document. Thanks to mmcc
2994       for writing the OpenBSD-specific tips. Resolves ticket 13702.
2995     - Make the tor-resolve documentation match its help string and its
2996       options. Resolves part of ticket 14325.
2997     - Log a more useful error message from tor-resolve when failing to
2998       look up a hidden service address. Resolves part of ticket 14325.
3000   o Downgraded warnings:
3001     - Don't warn when we've attempted to contact a relay using the wrong
3002       ntor onion key. Closes ticket 9635.
3004   o Removed features:
3005     - To avoid confusion with the "ExitRelay" option, "ExitNode" is no
3006       longer silently accepted as an alias for "ExitNodes".
3007     - The --enable-mempool and --enable-buf-freelists options, which
3008       were originally created to work around bad malloc implementations,
3009       no longer exist. They were off-by-default in 0.2.5. Closes
3010       ticket 14848.
3012   o Testing:
3013     - Make the checkdir/perms test complete successfully even if the
3014       global umask is not 022. Fixes bug 14215; bugfix on 0.2.6.2-alpha.
3015     - Test that tor does not fail when key files are zero-length. Check
3016       that tor generates new keys, and overwrites the empty key files.
3017     - Test that tor generates new keys when keys are missing
3018       (existing behavior).
3019     - Test that tor does not overwrite key files that already contain
3020       data (existing behavior). Tests bug 13111. Patch by "teor".
3021     - New "make test-stem" target to run stem integration tests.
3022       Requires that the "STEM_SOURCE_DIR" environment variable be set.
3023       Closes ticket 14107.
3024     - Make the test_cmdline_args.py script work correctly on Windows.
3025       Patch from Gisle Vanem.
3026     - Move the slower unit tests into a new "./src/test/test-slow"
3027       binary that can be run independently of the other tests. Closes
3028       ticket 13243.
3029     - Avoid undefined behavior when sampling huge values from the
3030       Laplace distribution. This made unittests fail on Raspberry Pi.
3031       Bug found by Device. Fixes bug 14090; bugfix on 0.2.6.2-alpha.
3034 Changes in version 0.2.6.2-alpha - 2014-12-31
3035   Tor 0.2.6.2-alpha is the second alpha release in the 0.2.6.x series.
3036   It introduces a major new backend for deciding when to send cells on
3037   channels, which should lead down the road to big performance
3038   increases. It contains security and statistics features for better
3039   work on hidden services, and numerous bugfixes.
3041   This release contains many new unit tests, along with major
3042   performance improvements for running testing networks using Chutney.
3043   Thanks to a series of patches contributed by "teor", testing networks
3044   should now bootstrap in seconds, rather than minutes.
3046   o Major features (relay, infrastructure):
3047     - Complete revision of the code that relays use to decide which cell
3048       to send next. Formerly, we selected the best circuit to write on
3049       each channel, but we didn't select among channels in any
3050       sophisticated way. Now, we choose the best circuits globally from
3051       among those whose channels are ready to deliver traffic.
3053       This patch implements a new inter-cmux comparison API, a global
3054       high/low watermark mechanism and a global scheduler loop for
3055       transmission prioritization across all channels as well as among
3056       circuits on one channel. This schedule is currently tuned to
3057       (tolerantly) avoid making changes in network performance, but it
3058       should form the basis for major circuit performance increases in
3059       the future. Code by Andrea; tuning by Rob Jansen; implements
3060       ticket 9262.
3062   o Major features (hidden services):
3063     - Make HS port scanning more difficult by immediately closing the
3064       circuit when a user attempts to connect to a nonexistent port.
3065       Closes ticket 13667.
3066     - Add a HiddenServiceStatistics option that allows Tor relays to
3067       gather and publish statistics about the overall size and volume of
3068       hidden service usage. Specifically, when this option is turned on,
3069       an HSDir will publish an approximate number of hidden services
3070       that have published descriptors to it the past 24 hours. Also, if
3071       a relay has acted as a hidden service rendezvous point, it will
3072       publish the approximate amount of rendezvous cells it has relayed
3073       the past 24 hours. The statistics themselves are obfuscated so
3074       that the exact values cannot be derived. For more details see
3075       proposal 238, "Better hidden service stats from Tor relays". This
3076       feature is currently disabled by default. Implements feature 13192.
3078   o Major bugfixes (client, automap):
3079     - Repair automapping with IPv6 addresses. This automapping should
3080       have worked previously, but one piece of debugging code that we
3081       inserted to detect a regression actually caused the regression to
3082       manifest itself again. Fixes bug 13811 and bug 12831; bugfix on
3083       0.2.4.7-alpha. Diagnosed and fixed by Francisco Blas
3084       Izquierdo Riera.
3086   o Major bugfixes (hidden services):
3087     - When closing an introduction circuit that was opened in parallel
3088       with others, don't mark the introduction point as unreachable.
3089       Previously, the first successful connection to an introduction
3090       point would make the other introduction points get marked as
3091       having timed out. Fixes bug 13698; bugfix on 0.0.6rc2.
3093   o Directory authority changes:
3094     - Remove turtles as a directory authority.
3095     - Add longclaw as a new (v3) directory authority. This implements
3096       ticket 13296. This keeps the directory authority count at 9.
3098   o Major removed features:
3099     - Tor clients no longer support connecting to hidden services
3100       running on Tor 0.2.2.x and earlier; the Support022HiddenServices
3101       option has been removed. (There shouldn't be any hidden services
3102       running these versions on the network.) Closes ticket 7803.
3104   o Minor features (client):
3105     - Validate hostnames in SOCKS5 requests more strictly. If SafeSocks
3106       is enabled, reject requests with IP addresses as hostnames.
3107       Resolves ticket 13315.
3109   o Minor features (controller):
3110     - Add a "SIGNAL HEARTBEAT" controller command that tells Tor to
3111       write an unscheduled heartbeat message to the log. Implements
3112       feature 9503.
3114   o Minor features (geoip):
3115     - Update geoip and geoip6 to the November 15 2014 Maxmind GeoLite2
3116       Country database.
3118   o Minor features (hidden services):
3119     - When re-enabling the network, don't try to build introduction
3120       circuits until we have successfully built a circuit. This makes
3121       hidden services come up faster when the network is re-enabled.
3122       Patch from "akwizgran". Closes ticket 13447.
3123     - When we fail to retrieve a hidden service descriptor, send the
3124       controller an "HS_DESC FAILED" controller event. Implements
3125       feature 13212.
3126     - New HiddenServiceDirGroupReadable option to cause hidden service
3127       directories and hostname files to be created group-readable. Patch
3128       from "anon", David Stainton, and "meejah". Closes ticket 11291.
3130   o Minor features (systemd):
3131     - Where supported, when running with systemd, report successful
3132       startup to systemd. Part of ticket 11016. Patch by Michael Scherer.
3133     - When running with systemd, support systemd watchdog messages. Part
3134       of ticket 11016. Patch by Michael Scherer.
3136   o Minor features (transparent proxy):
3137     - Update the transparent proxy option checks to allow for both ipfw
3138       and pf on OS X. Closes ticket 14002.
3139     - Use the correct option when using IPv6 with transparent proxy
3140       support on Linux. Resolves 13808. Patch by Francisco Blas
3141       Izquierdo Riera.
3143   o Minor bugfixes (preventative security, C safety):
3144     - When reading a hexadecimal, base-32, or base-64 encoded value from
3145       a string, always overwrite the whole output buffer. This prevents
3146       some bugs where we would look at (but fortunately, not reveal)
3147       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
3148       versions of Tor.
3149     - Clear all memory targetted by tor_addr_{to,from}_sockaddr(), not
3150       just the part that's used. This makes it harder for data leak bugs
3151       to occur in the event of other programming failures. Resolves
3152       ticket 14041.
3154   o Minor bugfixes (client, microdescriptors):
3155     - Use a full 256 bits of the SHA256 digest of a microdescriptor when
3156       computing which microdescriptors to download. This keeps us from
3157       erroneous download behavior if two microdescriptor digests ever
3158       have the same first 160 bits. Fixes part of bug 13399; bugfix
3159       on 0.2.3.1-alpha.
3160     - Reset a router's status if its microdescriptor digest changes,
3161       even if the first 160 bits remain the same. Fixes part of bug
3162       13399; bugfix on 0.2.3.1-alpha.
3164   o Minor bugfixes (compilation):
3165     - Silence clang warnings under --enable-expensive-hardening,
3166       including implicit truncation of 64 bit values to 32 bit, const
3167       char assignment to self, tautological compare, and additional
3168       parentheses around equality tests. Fixes bug 13577; bugfix
3169       on 0.2.5.4-alpha.
3170     - Fix a clang warning about checking whether an address in the
3171       middle of a structure is NULL. Fixes bug 14001; bugfix
3172       on 0.2.1.2-alpha.
3174   o Minor bugfixes (hidden services):
3175     - Correctly send a controller event when we find that a rendezvous
3176       circuit has finished. Fixes bug 13936; bugfix on 0.1.1.5-alpha.
3177     - Pre-check directory permissions for new hidden-services to avoid
3178       at least one case of "Bug: Acting on config options left us in a
3179       broken state. Dying." Fixes bug 13942; bugfix on 0.0.6pre1.
3180     - When adding a new hidden service (for example, via SETCONF), Tor
3181       no longer congratulates the user for running a relay. Fixes bug
3182       13941; bugfix on 0.2.6.1-alpha.
3183     - When fetching hidden service descriptors, we now check not only
3184       for whether we got the hidden service we had in mind, but also
3185       whether we got the particular descriptors we wanted. This prevents
3186       a class of inefficient but annoying DoS attacks by hidden service
3187       directories. Fixes bug 13214; bugfix on 0.2.1.6-alpha. Reported
3188       by "special".
3190   o Minor bugfixes (Linux seccomp2 sandbox):
3191     - Make transparent proxy support work along with the seccomp2
3192       sandbox. Fixes part of bug 13808; bugfix on 0.2.5.1-alpha. Patch
3193       by Francisco Blas Izquierdo Riera.
3194     - Fix a memory leak in tor-resolve when running with the sandbox
3195       enabled. Fixes bug 14050; bugfix on 0.2.5.9-rc.
3197   o Minor bugfixes (logging):
3198     - Downgrade warnings about RSA signature failures to info log level.
3199       Emit a warning when an extra info document is found incompatible
3200       with a corresponding router descriptor. Fixes bug 9812; bugfix
3201       on 0.0.6rc3.
3202     - Make connection_ap_handshake_attach_circuit() log the circuit ID
3203       correctly. Fixes bug 13701; bugfix on 0.0.6.
3205   o Minor bugfixes (misc):
3206     - Stop allowing invalid address patterns like "*/24" that contain
3207       both a wildcard address and a bit prefix length. This affects all
3208       our address-range parsing code. Fixes bug 7484; bugfix
3209       on 0.0.2pre14.
3211   o Minor bugfixes (testing networks, fast startup):
3212     - Allow Tor to build circuits using a consensus with no exits. If
3213       the consensus has no exits (typical of a bootstrapping test
3214       network), allow Tor to build circuits once enough descriptors have
3215       been downloaded. This assists in bootstrapping a testing Tor
3216       network. Fixes bug 13718; bugfix on 0.2.4.10-alpha. Patch
3217       by "teor".
3218     - When V3AuthVotingInterval is low, give a lower If-Modified-Since
3219       header to directory servers. This allows us to obtain consensuses
3220       promptly when the consensus interval is very short. This assists
3221       in bootstrapping a testing Tor network. Fixes parts of bugs 13718
3222       and 13963; bugfix on 0.2.0.3-alpha. Patch by "teor".
3223     - Stop assuming that private addresses are local when checking
3224       reachability in a TestingTorNetwork. Instead, when testing, assume
3225       all OR connections are remote. (This is necessary due to many test
3226       scenarios running all relays on localhost.) This assists in
3227       bootstrapping a testing Tor network. Fixes bug 13924; bugfix on
3228       0.1.0.1-rc. Patch by "teor".
3229     - Avoid building exit circuits from a consensus with no exits. Now
3230       thanks to our fix for 13718, we accept a no-exit network as not
3231       wholly lost, but we need to remember not to try to build exit
3232       circuits on it. Closes ticket 13814; patch by "teor".
3233     - Stop requiring exits to have non-zero bandwithcapacity in a
3234       TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
3235       ignore exit bandwidthcapacity. This assists in bootstrapping a
3236       testing Tor network. Fixes parts of bugs 13718 and 13839; bugfix
3237       on 0.2.0.3-alpha. Patch by "teor".
3238     - Add "internal" to some bootstrap statuses when no exits are
3239       available. If the consensus does not contain Exits, Tor will only
3240       build internal circuits. In this case, relevant statuses will
3241       contain the word "internal" as indicated in the Tor control-
3242        spec.txt. When bootstrap completes, Tor will be ready to build
3243       internal circuits. If a future consensus contains Exits, exit
3244       circuits may become available. Fixes part of bug 13718; bugfix on
3245       0.2.4.10-alpha. Patch by "teor".
3246     - Decrease minimum consensus interval to 10 seconds when
3247       TestingTorNetwork is set, or 5 seconds for the first consensus.
3248       Fix assumptions throughout the code that assume larger intervals.
3249       Fixes bugs 13718 and 13823; bugfix on 0.2.0.3-alpha. Patch
3250       by "teor".
3251     - Avoid excluding guards from path building in minimal test
3252       networks, when we're in a test network and excluding guards would
3253       exclude all relays. This typically occurs in incredibly small tor
3254       networks, and those using "TestingAuthVoteGuard *". Fixes part of
3255       bug 13718; bugfix on 0.1.1.11-alpha. Patch by "teor".
3257   o Code simplification and refactoring:
3258     - Stop using can_complete_circuits as a global variable; access it
3259       with a function instead.
3260     - Avoid using operators directly as macro arguments: this lets us
3261       apply coccinelle transformations to our codebase more directly.
3262       Closes ticket 13172.
3263     - Combine the functions used to parse ClientTransportPlugin and
3264       ServerTransportPlugin into a single function. Closes ticket 6456.
3265     - Add inline functions and convenience macros for inspecting channel
3266       state. Refactor the code to use convenience macros instead of
3267       checking channel state directly. Fixes issue 7356.
3268     - Document all members of was_router_added_t and rename
3269       ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN to make it less
3270       confusable with ROUTER_WAS_TOO_OLD. Fixes issue 13644.
3271     - In connection_exit_begin_conn(), use END_CIRC_REASON_TORPROTOCOL
3272       constant instead of hardcoded value. Fixes issue 13840.
3273     - Refactor our generic strmap and digestmap types into a single
3274       implementation, so that we can add a new digest256map
3275       type trivially.
3277   o Documentation:
3278     - Document the bridge-authority-only 'networkstatus-bridges' file.
3279       Closes ticket 13713; patch from "tom".
3280     - Fix typo in PredictedPortsRelevanceTime option description in
3281       manpage. Resolves issue 13707.
3282     - Stop suggesting that users specify relays by nickname: it isn't a
3283       good idea. Also, properly cross-reference how to specify relays in
3284       all parts of manual documenting options that take a list of
3285       relays. Closes ticket 13381.
3286     - Clarify the HiddenServiceDir option description in manpage to make
3287       it clear that relative paths are taken with respect to the current
3288       working directory. Also clarify that this behavior is not
3289       guaranteed to remain indefinitely. Fixes issue 13913.
3291   o Testing:
3292     - New tests for many parts of channel, relay, and circuitmux
3293       functionality. Code by Andrea; part of 9262.
3294     - New tests for parse_transport_line(). Part of ticket 6456.
3295     - In the unit tests, use chgrp() to change the group of the unit
3296       test temporary directory to the current user, so that the sticky
3297       bit doesn't interfere with tests that check directory groups.
3298       Closes 13678.
3299     - Add unit tests for resolve_my_addr(). Part of ticket 12376; patch
3300       by 'rl1987'.
3303 Changes in version 0.2.6.1-alpha - 2014-10-30
3304   Tor 0.2.6.1-alpha is the first release in the Tor 0.2.6.x series. It
3305   includes numerous code cleanups and new tests, and fixes a large
3306   number of annoying bugs. Out-of-memory conditions are handled better
3307   than in 0.2.5, pluggable transports have improved proxy support, and
3308   clients now use optimistic data for contacting hidden services. Also,
3309   we are now more robust to changes in what we consider a parseable
3310   directory object, so that tightening restrictions does not have a risk
3311   of introducing infinite download loops.
3313   This is the first alpha release in a new series, so expect there to be
3314   bugs. Users who would rather test out a more stable branch should stay
3315   with 0.2.5.x for now.
3317   o New compiler and system requirements:
3318     - Tor 0.2.6.x requires that your compiler support more of the C99
3319       language standard than before. The 'configure' script now detects
3320       whether your compiler supports C99 mid-block declarations and
3321       designated initializers. If it does not, Tor will not compile.
3323       We may revisit this requirement if it turns out that a significant
3324       number of people need to build Tor with compilers that don't
3325       bother implementing a 15-year-old standard. Closes ticket 13233.
3326     - Tor no longer supports systems without threading support. When we
3327       began working on Tor, there were several systems that didn't have
3328       threads, or where the thread support wasn't able to run the
3329       threads of a single process on multiple CPUs. That no longer
3330       holds: every system where Tor needs to run well now has threading
3331       support. Resolves ticket 12439.
3333   o Removed platform support:
3334     - We no longer include special code to build on Windows CE; as far
3335       as we know, nobody has used Tor on Windows CE in a very long time.
3336       Closes ticket 11446.
3338   o Major features (bridges):
3339     - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable
3340       transports if they are configured via the "TOR_PT_PROXY"
3341       environment variable. Implements proposal 232. Resolves
3342       ticket 8402.
3344   o Major features (client performance, hidden services):
3345     - Allow clients to use optimistic data when connecting to a hidden
3346       service, which should remove a round-trip from hidden service
3347       initialization. See proposal 181 for details. Implements
3348       ticket 13211.
3350   o Major features (directory system):
3351     - Upon receiving an unparseable directory object, if its digest
3352       matches what we expected, then don't try to download it again.
3353       Previously, when we got a descriptor we didn't like, we would keep
3354       trying to download it over and over. Closes ticket 11243.
3356   o Major features (sample torrc):
3357     - Add a new, infrequently-changed "torrc.minimal". This file is
3358       similar to torrc.sample, but it will change as infrequently as
3359       possible, for the benefit of users whose systems prompt them for
3360       intervention whenever a default configuration file is changed.
3361       Making this change allows us to update torrc.sample to be a more
3362       generally useful "sample torrc".
3364   o Major bugfixes (directory authorities):
3365     - Do not assign the HSDir flag to relays if they are not Valid, or
3366       currently hibernating. Fixes 12573; bugfix on 0.2.0.10-alpha.
3368   o Major bugfixes (directory bandwidth performance):
3369     - Don't flush the zlib buffer aggressively when compressing
3370       directory information for clients. This should save about 7% of
3371       the bandwidth currently used for compressed descriptors and
3372       microdescriptors. Fixes bug 11787; bugfix on 0.1.1.23.
3374   o Minor features (security, memory wiping):
3375     - Ensure we securely wipe keys from memory after
3376       crypto_digest_get_digest and init_curve25519_keypair_from_file
3377       have finished using them. Resolves ticket 13477.
3379   o Minor features (security, out-of-memory handling):
3380     - When handling an out-of-memory condition, allocate less memory for
3381       temporary data structures. Fixes issue 10115.
3382     - When handling an out-of-memory condition, consider more types of
3383       buffers, including those on directory connections, and zlib
3384       buffers. Resolves ticket 11792.
3386   o Minor features:
3387     - When identity keypair is generated for first time, log a
3388       congratulatory message that links to the new relay lifecycle
3389       document. Implements feature 10427.
3391   o Minor features (client):
3392     - Clients are now willing to send optimistic data (before they
3393       receive a 'connected' cell) to relays of any version. (Relays
3394       without support for optimistic data are no longer supported on the
3395       Tor network.) Resolves ticket 13153.
3397   o Minor features (directory authorities):
3398     - Don't list relays with a bandwidth estimate of 0 in the consensus.
3399       Implements a feature proposed during discussion of bug 13000.
3400     - In tor-gencert, report an error if the user provides the same
3401       argument more than once.
3402     - If a directory authority can't find a best consensus method in the
3403       votes that it holds, it now falls back to its favorite consensus
3404       method. Previously, it fell back to method 1. Neither of these is
3405       likely to get enough signatures, but "fall back to favorite"
3406       doesn't require us to maintain support an obsolete consensus
3407       method. Implements part of proposal 215.
3409   o Minor features (logging):
3410     - On Unix-like systems, you can now use named pipes as the target of
3411       the Log option, and other options that try to append to files.
3412       Closes ticket 12061. Patch from "carlo von lynX".
3413     - When opening a log file at startup, send it every log message that
3414       we generated between startup and opening it. Previously, log
3415       messages that were generated before opening the log file were only
3416       logged to stdout. Closes ticket 6938.
3417     - Add a TruncateLogFile option to overwrite logs instead of
3418       appending to them. Closes ticket 5583.
3420   o Minor features (portability, Solaris):
3421     - Threads are no longer disabled by default on Solaris; we believe
3422       that the versions of Solaris with broken threading support are all
3423       obsolete by now. Resolves ticket 9495.
3425   o Minor features (relay):
3426     - Re-check our address after we detect a changed IP address from
3427       getsockname(). This ensures that the controller command "GETINFO
3428       address" will report the correct value. Resolves ticket 11582.
3429       Patch from "ra".
3430     - A new AccountingRule option lets Relays set whether they'd like
3431       AccountingMax to be applied separately to inbound and outbound
3432       traffic, or applied to the sum of inbound and outbound traffic.
3433       Resolves ticket 961. Patch by "chobe".
3435   o Minor features (testing networks):
3436     - Add the TestingDirAuthVoteExit option, which lists nodes to assign
3437       the "Exit" flag regardless of their uptime, bandwidth, or exit
3438       policy. TestingTorNetwork must be set for this option to have any
3439       effect. Previously, authorities would take up to 35 minutes to
3440       give nodes the Exit flag in a test network. Partially implements
3441       ticket 13161.
3443   o Minor features (validation):
3444     - Check all date/time values passed to tor_timegm and
3445       parse_rfc1123_time for validity, taking leap years into account.
3446       Improves HTTP header validation. Implemented with bug 13476.
3447     - In correct_tm(), limit the range of values returned by system
3448       localtime(_r) and gmtime(_r) to be between the years 1 and 8099.
3449       This means we don't have to deal with negative or too large dates,
3450       even if a clock is wrong. Otherwise we might fail to read a file
3451       written by us which includes such a date. Fixes bug 13476.
3453   o Minor bugfixes (bridge clients):
3454     - When configured to use a bridge without an identity digest (not
3455       recommended), avoid launching an extra channel to it when
3456       bootstrapping. Fixes bug 7733; bugfix on 0.2.4.4-alpha.
3458   o Minor bugfixes (bridges):
3459     - When DisableNetwork is set, do not launch pluggable transport
3460       plugins, and if any are running, terminate them. Fixes bug 13213;
3461       bugfix on 0.2.3.6-alpha.
3463   o Minor bugfixes (C correctness):
3464     - Fix several instances of possible integer overflow/underflow/NaN.
3465       Fixes bug 13104; bugfix on 0.2.3.1-alpha and later. Patches
3466       from "teor".
3467     - In circuit_build_times_calculate_timeout() in circuitstats.c,
3468       avoid dividing by zero in the pareto calculations. This traps
3469       under clang's "undefined-trap" sanitizer. Fixes bug 13290; bugfix
3470       on 0.2.2.2-alpha.
3471     - Fix an integer overflow in format_time_interval(). Fixes bug
3472       13393; bugfix on 0.2.0.10-alpha.
3473     - Set the correct day of year value when the system's localtime(_r)
3474       or gmtime(_r) functions fail to set struct tm. Not externally
3475       visible. Fixes bug 13476; bugfix on 0.0.2pre14.
3476     - Avoid unlikely signed integer overflow in tor_timegm on systems
3477       with 32-bit time_t. Fixes bug 13476; bugfix on 0.0.2pre14.
3479   o Minor bugfixes (client):
3480     - Fix smartlist_choose_node_by_bandwidth() so that relays with the
3481       BadExit flag are not considered worthy candidates. Fixes bug
3482       13066; bugfix on 0.1.2.3-alpha.
3483     - Use the consensus schedule for downloading consensuses, and not
3484       the generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha.
3485     - Handle unsupported or malformed SOCKS5 requests properly by
3486       responding with the appropriate error message before closing the
3487       connection. Fixes bugs 12971 and 13314; bugfix on 0.0.2pre13.
3489   o Minor bugfixes (client, torrc):
3490     - Stop modifying the value of our DirReqStatistics torrc option just
3491       because we're not a bridge or relay. This bug was causing Tor
3492       Browser users to write "DirReqStatistics 0" in their torrc files
3493       as if they had chosen to change the config. Fixes bug 4244; bugfix
3494       on 0.2.3.1-alpha.
3495     - When GeoIPExcludeUnknown is enabled, do not incorrectly decide
3496       that our options have changed every time we SIGHUP. Fixes bug
3497       9801; bugfix on 0.2.4.10-alpha. Patch from "qwerty1".
3499   o Minor bugfixes (controller):
3500     - Return an error when the second or later arguments of the
3501       "setevents" controller command are invalid events. Previously we
3502       would return success while silently skipping invalid events. Fixes
3503       bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns".
3505   o Minor bugfixes (directory system):
3506     - Always believe that v3 directory authorities serve extra-info
3507       documents, whether they advertise "caches-extra-info" or not.
3508       Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
3509     - When running as a v3 directory authority, advertise that you serve
3510       extra-info documents so that clients who want them can find them
3511       from you too. Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
3512     - Check the BRIDGE_DIRINFO flag bitwise rather than using equality.
3513       Previously, directories offering BRIDGE_DIRINFO and some other
3514       flag (i.e. microdescriptors or extrainfo) would be ignored when
3515       looking for bridges. Partially fixes bug 13163; bugfix
3516       on 0.2.0.7-alpha.
3518   o Minor bugfixes (networking):
3519     - Check for orconns and use connection_or_close_for_error() rather
3520       than connection_mark_for_close() directly in the getsockopt()
3521       failure case of connection_handle_write_impl(). Fixes bug 11302;
3522       bugfix on 0.2.4.4-alpha.
3524   o Minor bugfixes (relay):
3525     - When generating our family list, remove spaces from around the
3526       entries. Fixes bug 12728; bugfix on 0.2.1.7-alpha.
3527     - If our previous bandwidth estimate was 0 bytes, allow publishing a
3528       new relay descriptor immediately. Fixes bug 13000; bugfix
3529       on 0.1.1.6-alpha.
3531   o Minor bugfixes (testing networks):
3532     - Fix TestingDirAuthVoteGuard to properly give out Guard flags in a
3533       testing network. Fixes bug 13064; bugfix on 0.2.5.2-alpha.
3534     - Stop using the default authorities in networks which provide both
3535       AlternateDirAuthority and AlternateBridgeAuthority. Partially
3536       fixes bug 13163; bugfix on 0.2.0.13-alpha.
3538   o Minor bugfixes (testing):
3539     - Stop spawn test failures due to a race condition between the
3540       SIGCHLD handler updating the process status, and the test reading
3541       it. Fixes bug 13291; bugfix on 0.2.3.3-alpha.
3543   o Minor bugfixes (testing, Windows):
3544     - Avoid passing an extra backslash when creating a temporary
3545       directory for running the unit tests on Windows. Fixes bug 12392;
3546       bugfix on 0.2.2.25-alpha. Patch from Gisle Vanem.
3548   o Minor bugfixes (windows):
3549     - Remove code to special-case handling of NTE_BAD_KEYSET when
3550       acquiring windows CryptoAPI context. This error can't actually
3551       occur for the parameters we're providing. Fixes bug 10816; bugfix
3552       on 0.0.2pre26.
3554   o Minor bugfixes (zlib):
3555     - Avoid truncating a zlib stream when trying to finalize it with an
3556       empty output buffer. Fixes bug 11824; bugfix on 0.1.1.23.
3558   o Build fixes:
3559     - Allow our configure script to build correctly with autoconf 2.62
3560       again. Fixes bug 12693; bugfix on 0.2.5.2-alpha.
3561     - Improve the error message from ./configure to make it clear that
3562       when asciidoc has not been found, the user will have to either add
3563       --disable-asciidoc argument or install asciidoc. Resolves
3564       ticket 13228.
3566   o Code simplification and refactoring:
3567     - Change the entry_is_live() function to take named bitfield
3568       elements instead of an unnamed list of booleans. Closes
3569       ticket 12202.
3570     - Refactor and unit-test entry_is_time_to_retry() in entrynodes.c.
3571       Resolves ticket 12205.
3572     - Use calloc and reallocarray functions instead of multiply-
3573       then-malloc. This makes it less likely for us to fall victim to an
3574       integer overflow attack when allocating. Resolves ticket 12855.
3575     - Use the standard macro name SIZE_MAX, instead of our
3576       own SIZE_T_MAX.
3577     - Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in
3578       functions which take them as arguments. Replace 0 with NO_DIRINFO
3579       in a function call for clarity. Seeks to prevent future issues
3580       like 13163.
3581     - Avoid 4 null pointer errors under clang static analysis by using
3582       tor_assert() to prove that the pointers aren't null. Fixes
3583       bug 13284.
3584     - Rework the API of policies_parse_exit_policy() to use a bitmask to
3585       represent parsing options, instead of a confusing mess of
3586       booleans. Resolves ticket 8197.
3587     - Introduce a helper function to parse ExitPolicy in
3588       or_options_t structure.
3590   o Documentation:
3591     - Add a doc/TUNING document with tips for handling large numbers of
3592       TCP connections when running busy Tor relay. Update the warning
3593       message to point to this file when running out of sockets
3594       operating system is allowing to use simultaneously. Resolves
3595       ticket 9708.
3597   o Removed features:
3598     - We no longer remind the user about configuration options that have
3599       been obsolete since 0.2.3.x or earlier. Patch by Adrien Bak.
3600     - Remove our old, non-weighted bandwidth-based node selection code.
3601       Previously, we used it as a fallback when we couldn't perform
3602       weighted bandwidth-based node selection. But that would only
3603       happen in the cases where we had no consensus, or when we had a
3604       consensus generated by buggy or ancient directory authorities. In
3605       either case, it's better to use the more modern, better maintained
3606       algorithm, with reasonable defaults for the weights. Closes
3607       ticket 13126.
3608     - Remove the --disable-curve25519 configure option. Relays and
3609       clients now are required to support curve25519 and the
3610       ntor handshake.
3611     - The old "StrictEntryNodes" and "StrictExitNodes" options, which
3612       used to be deprecated synonyms for "StrictNodes", are now marked
3613       obsolete. Resolves ticket 12226.
3614     - Clients don't understand the BadDirectory flag in the consensus
3615       anymore, and ignore it.
3617   o Testing:
3618     - Refactor the function that chooses guard nodes so that it can more
3619       easily be tested; write some tests for it.
3620     - Fix and re-enable the fgets_eagain unit test. Fixes bug 12503;
3621       bugfix on 0.2.3.1-alpha. Patch from "cypherpunks."
3622     - Create unit tests for format_time_interval(). With bug 13393.
3623     - Add unit tests for tor_timegm signed overflow, tor_timegm and
3624       parse_rfc1123_time validity checks, correct_tm year clamping. Unit
3625       tests (visible) fixes in bug 13476.
3626     - Add a "coverage-html" make target to generate HTML-visualized
3627       coverage results when building with --enable-coverage. (Requires
3628       lcov.) Patch from Kevin Murray.
3629     - Enable the backtrace handler (where supported) when running the
3630       unit tests.
3631     - Revise all unit tests that used the legacy test_* macros to
3632       instead use the recommended tt_* macros. This patch was generated
3633       with coccinelle, to avoid manual errors. Closes ticket 13119.
3635   o Distribution (systemd):
3636     - systemd unit file: only allow tor to write to /var/lib/tor and
3637       /var/log/tor. The rest of the filesystem is accessible for reading
3638       only. Patch by intrigeri; resolves ticket 12751.
3639     - systemd unit file: ensure that the process and all its children
3640       can never gain new privileges. Patch by intrigeri; resolves
3641       ticket 12939.
3642     - systemd unit file: set up /var/run/tor as writable for the Tor
3643       service. Patch by intrigeri; resolves ticket 13196.
3645   o Removed features (directory authorities):
3646     - Remove code that prevented authorities from listing Tor relays
3647       affected by CVE-2011-2769 as guards. These relays are already
3648       rejected altogether due to the minimum version requirement of
3649       0.2.3.16-alpha. Closes ticket 13152.
3650     - The "AuthDirRejectUnlisted" option no longer has any effect, as
3651       the fingerprints file (approved-routers) has been deprecated.
3652     - Directory authorities do not support being Naming dirauths anymore.
3653       The "NamingAuthoritativeDir" config option is now obsolete.
3654     - Directory authorities do not support giving out the BadDirectory
3655       flag anymore.
3656     - Directory authorities no longer advertise or support consensus
3657       methods 1 through 12 inclusive. These consensus methods were
3658       obsolete and/or insecure: maintaining the ability to support them
3659       served no good purpose. Implements part of proposal 215; closes
3660       ticket 10163.
3662   o Testing (test-network.sh):
3663     - Stop using "echo -n", as some shells' built-in echo doesn't
3664       support "-n". Instead, use "/bin/echo -n". Partially fixes
3665       bug 13161.
3666     - Stop an apparent test-network hang when used with make -j2. Fixes
3667       bug 13331.
3668     - Add a --delay option to test-network.sh, which configures the
3669       delay before the chutney network tests for data transmission.
3670       Partially implements ticket 13161.
3673 Changes in version 0.2.5.10 - 2014-10-24
3674   Tor 0.2.5.10 is the first stable release in the 0.2.5 series.
3676   It adds several new security features, including improved
3677   denial-of-service resistance for relays, new compiler hardening
3678   options, and a system-call sandbox for hardened installations on Linux
3679   (requires seccomp2). The controller protocol has several new features,
3680   resolving IPv6 addresses should work better than before, and relays
3681   should be a little more CPU-efficient. We've added support for more
3682   OpenBSD and FreeBSD transparent proxy types. We've improved the build
3683   system and testing infrastructure to allow unit testing of more parts
3684   of the Tor codebase. Finally, we've addressed several nagging pluggable
3685   transport usability issues, and included numerous other small bugfixes
3686   and features mentioned below.
3688   This release marks end-of-life for Tor 0.2.3.x; those Tor versions
3689   have accumulated many known flaws; everyone should upgrade.
3691   o Deprecated versions:
3692     - Tor 0.2.3.x has reached end-of-life; it has received no patches or
3693       attention for some while.
3696 Changes in version 0.2.5.9-rc - 2014-10-20
3697   Tor 0.2.5.9-rc is the third release candidate for the Tor 0.2.5.x
3698   series. It disables SSL3 in response to the recent "POODLE" attack
3699   (even though POODLE does not affect Tor). It also works around a crash
3700   bug caused by some operating systems' response to the "POODLE" attack
3701   (which does affect Tor). It also contains a few miscellaneous fixes.
3703   o Major security fixes:
3704     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
3705       today support TLS 1.0 or later, so we can safely turn off support
3706       for this old (and insecure) protocol. Fixes bug 13426.
3708   o Major bugfixes (openssl bug workaround):
3709     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
3710       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
3711       13471. This is a workaround for an OpenSSL bug.
3713   o Minor bugfixes:
3714     - Disable the sandbox name resolver cache when running tor-resolve:
3715       tor-resolve doesn't use the sandbox code, and turning it on was
3716       breaking attempts to do tor-resolve on a non-default server on
3717       Linux. Fixes bug 13295; bugfix on 0.2.5.3-alpha.
3719   o Compilation fixes:
3720     - Build and run correctly on systems like OpenBSD-current that have
3721       patched OpenSSL to remove get_cipher_by_char and/or its
3722       implementations. Fixes issue 13325.
3724   o Downgraded warnings:
3725     - Downgrade the severity of the 'unexpected sendme cell from client'
3726       from 'warn' to 'protocol warning'. Closes ticket 8093.
3729 Changes in version 0.2.4.25 - 2014-10-20
3730   Tor 0.2.4.25 disables SSL3 in response to the recent "POODLE" attack
3731   (even though POODLE does not affect Tor). It also works around a crash
3732   bug caused by some operating systems' response to the "POODLE" attack
3733   (which does affect Tor).
3735   o Major security fixes (also in 0.2.5.9-rc):
3736     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
3737       today support TLS 1.0 or later, so we can safely turn off support
3738       for this old (and insecure) protocol. Fixes bug 13426.
3740   o Major bugfixes (openssl bug workaround, also in 0.2.5.9-rc):
3741     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
3742       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
3743       13471. This is a workaround for an OpenSSL bug.
3746 Changes in version 0.2.5.8-rc - 2014-09-22
3747   Tor 0.2.5.8-rc is the second release candidate for the Tor 0.2.5.x
3748   series. It fixes a bug that affects consistency and speed when
3749   connecting to hidden services, and it updates the location of one of
3750   the directory authorities.
3752   o Major bugfixes:
3753     - Clients now send the correct address for their chosen rendezvous
3754       point when trying to access a hidden service. They used to send
3755       the wrong address, which would still work some of the time because
3756       they also sent the identity digest of the rendezvous point, and if
3757       the hidden service happened to try connecting to the rendezvous
3758       point from a relay that already had a connection open to it,
3759       the relay would reuse that connection. Now connections to hidden
3760       services should be more robust and faster. Also, this bug meant
3761       that clients were leaking to the hidden service whether they were
3762       on a little-endian (common) or big-endian (rare) system, which for
3763       some users might have reduced their anonymity. Fixes bug 13151;
3764       bugfix on 0.2.1.5-alpha.
3766   o Directory authority changes:
3767     - Change IP address for gabelmoo (v3 directory authority).
3770 Changes in version 0.2.4.24 - 2014-09-22
3771   Tor 0.2.4.24 fixes a bug that affects consistency and speed when
3772   connecting to hidden services, and it updates the location of one of
3773   the directory authorities.
3775   o Major bugfixes:
3776     - Clients now send the correct address for their chosen rendezvous
3777       point when trying to access a hidden service. They used to send
3778       the wrong address, which would still work some of the time because
3779       they also sent the identity digest of the rendezvous point, and if
3780       the hidden service happened to try connecting to the rendezvous
3781       point from a relay that already had a connection open to it,
3782       the relay would reuse that connection. Now connections to hidden
3783       services should be more robust and faster. Also, this bug meant
3784       that clients were leaking to the hidden service whether they were
3785       on a little-endian (common) or big-endian (rare) system, which for
3786       some users might have reduced their anonymity. Fixes bug 13151;
3787       bugfix on 0.2.1.5-alpha.
3789   o Directory authority changes:
3790     - Change IP address for gabelmoo (v3 directory authority).
3792   o Minor features (geoip):
3793     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
3794       Country database.
3797 Changes in version 0.2.5.7-rc - 2014-09-11
3798   Tor 0.2.5.7-rc fixes several regressions from earlier in the 0.2.5.x
3799   release series, and some long-standing bugs related to ORPort reachability
3800   testing and failure to send CREATE cells. It is the first release
3801   candidate for the Tor 0.2.5.x series.
3803   o Major bugfixes (client, startup):
3804     - Start making circuits as soon as DisabledNetwork is turned off.
3805       When Tor started with DisabledNetwork set, it would correctly
3806       conclude that it shouldn't build circuits, but it would mistakenly
3807       cache this conclusion, and continue believing it even when
3808       DisableNetwork is set to 0. Fixes the bug introduced by the fix
3809       for bug 11200; bugfix on 0.2.5.4-alpha.
3810     - Resume expanding abbreviations for command-line options. The fix
3811       for bug 4647 accidentally removed our hack from bug 586 that
3812       rewrote HashedControlPassword to __HashedControlSessionPassword
3813       when it appears on the commandline (which allowed the user to set
3814       her own HashedControlPassword in the torrc file while the
3815       controller generates a fresh session password for each run). Fixes
3816       bug 12948; bugfix on 0.2.5.1-alpha.
3817     - Warn about attempts to run hidden services and relays in the same
3818       process: that's probably not a good idea. Closes ticket 12908.
3820   o Major bugfixes (relay):
3821     - Avoid queuing or sending destroy cells for circuit ID zero when we
3822       fail to send a CREATE cell. Fixes bug 12848; bugfix on 0.0.8pre1.
3823       Found and fixed by "cypherpunks".
3824     - Fix ORPort reachability detection on relays running behind a
3825       proxy, by correctly updating the "local" mark on the controlling
3826       channel when changing the address of an or_connection_t after the
3827       handshake. Fixes bug 12160; bugfix on 0.2.4.4-alpha.
3829   o Minor features (bridge):
3830     - Add an ExtORPortCookieAuthFileGroupReadable option to make the
3831       cookie file for the ExtORPort g+r by default.
3833   o Minor features (geoip):
3834     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
3835       Country database.
3837   o Minor bugfixes (logging):
3838     - Reduce the log severity of the "Pluggable transport proxy does not
3839       provide any needed transports and will not be launched." message,
3840       since Tor Browser includes several ClientTransportPlugin lines in
3841       its torrc-defaults file, leading every Tor Browser user who looks
3842       at her logs to see these notices and wonder if they're dangerous.
3843       Resolves bug 13124; bugfix on 0.2.5.3-alpha.
3844     - Downgrade "Unexpected onionskin length after decryption" warning
3845       to a protocol-warn, since there's nothing relay operators can do
3846       about a client that sends them a malformed create cell. Resolves
3847       bug 12996; bugfix on 0.0.6rc1.
3848     - Log more specific warnings when we get an ESTABLISH_RENDEZVOUS
3849       cell on a cannibalized or non-OR circuit. Resolves ticket 12997.
3850     - When logging information about an EXTEND2 or EXTENDED2 cell, log
3851       their names correctly. Fixes part of bug 12700; bugfix
3852       on 0.2.4.8-alpha.
3853     - When logging information about a relay cell whose command we don't
3854       recognize, log its command as an integer. Fixes part of bug 12700;
3855       bugfix on 0.2.1.10-alpha.
3856     - Escape all strings from the directory connection before logging
3857       them. Fixes bug 13071; bugfix on 0.1.1.15. Patch from "teor".
3859   o Minor bugfixes (controller):
3860     - Restore the functionality of CookieAuthFileGroupReadable. Fixes
3861       bug 12864; bugfix on 0.2.5.1-alpha.
3862     - Actually send TRANSPORT_LAUNCHED and HS_DESC events to
3863       controllers. Fixes bug 13085; bugfix on 0.2.5.1-alpha. Patch
3864       by "teor".
3866   o Minor bugfixes (compilation):
3867     - Fix compilation of test.h with MSVC. Patch from Gisle Vanem;
3868       bugfix on 0.2.5.5-alpha.
3869     - Make the nmake make files work again. Fixes bug 13081. Bugfix on
3870       0.2.5.1-alpha. Patch from "NewEraCracker".
3871     - In routerlist_assert_ok(), don't take the address of a
3872       routerinfo's cache_info member unless that routerinfo is non-NULL.
3873       Fixes bug 13096; bugfix on 0.1.1.9-alpha. Patch by "teor".
3874     - Fix a large number of false positive warnings from the clang
3875       analyzer static analysis tool. This should make real warnings
3876       easier for clang analyzer to find. Patch from "teor". Closes
3877       ticket 13036.
3879   o Distribution (systemd):
3880     - Verify configuration file via ExecStartPre in the systemd unit
3881       file. Patch from intrigeri; resolves ticket 12730.
3882     - Explicitly disable RunAsDaemon in the systemd unit file. Our
3883       current systemd unit uses "Type = simple", so systemd does not
3884       expect tor to fork. If the user has "RunAsDaemon 1" in their
3885       torrc, then things won't work as expected. This is e.g. the case
3886       on Debian (and derivatives), since there we pass "--defaults-torrc
3887       /usr/share/tor/tor-service-defaults-torrc" (that contains
3888       "RunAsDaemon 1") by default. Patch by intrigeri; resolves
3889       ticket 12731.
3891   o Documentation:
3892     - Adjust the URLs in the README to refer to the new locations of
3893       several documents on the website. Fixes bug 12830. Patch from
3894       Matt Pagan.
3895     - Document 'reject6' and 'accept6' ExitPolicy entries. Resolves
3896       ticket 12878.
3899 Changes in version 0.2.5.6-alpha - 2014-07-28
3900   Tor 0.2.5.6-alpha brings us a big step closer to slowing down the
3901   risk from guard rotation, and fixes a variety of other issues to get
3902   us closer to a release candidate.
3904   o Major features (also in 0.2.4.23):
3905     - Make the number of entry guards configurable via a new
3906       NumEntryGuards consensus parameter, and the number of directory
3907       guards configurable via a new NumDirectoryGuards consensus
3908       parameter. Implements ticket 12688.
3910   o Major bugfixes (also in 0.2.4.23):
3911     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
3912       implementation that caused incorrect results on 32-bit
3913       implementations when certain malformed inputs were used along with
3914       a small class of private ntor keys. This bug does not currently
3915       appear to allow an attacker to learn private keys or impersonate a
3916       Tor server, but it could provide a means to distinguish 32-bit Tor
3917       implementations from 64-bit Tor implementations. Fixes bug 12694;
3918       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
3919       Adam Langley.
3921   o Major bugfixes:
3922     - Perform circuit cleanup operations even when circuit
3923       construction operations are disabled (because the network is
3924       disabled, or because there isn't enough directory information).
3925       Previously, when we were not building predictive circuits, we
3926       were not closing expired circuits either. Fixes bug 8387; bugfix on
3927       0.1.1.11-alpha. This bug became visible in 0.2.4.10-alpha when we
3928       became more strict about when we have "enough directory information
3929       to build circuits".
3931   o Minor features:
3932     - Authorities now assign the Guard flag to the fastest 25% of the
3933       network (it used to be the fastest 50%). Also raise the consensus
3934       weight that guarantees the Guard flag from 250 to 2000. For the
3935       current network, this results in about 1100 guards, down from 2500.
3936       This step paves the way for moving the number of entry guards
3937       down to 1 (proposal 236) while still providing reasonable expected
3938       performance for most users. Implements ticket 12690.
3939     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
3940       Country database.
3941     - Slightly enhance the diagnostic message for bug 12184.
3943   o Minor bugfixes (also in 0.2.4.23):
3944     - Warn and drop the circuit if we receive an inbound 'relay early'
3945       cell. Those used to be normal to receive on hidden service circuits
3946       due to bug 1038, but the buggy Tor versions are long gone from
3947       the network so we can afford to resume watching for them. Resolves
3948       the rest of bug 1038; bugfix on 0.2.1.19.
3949     - Correct a confusing error message when trying to extend a circuit
3950       via the control protocol but we don't know a descriptor or
3951       microdescriptor for one of the specified relays. Fixes bug 12718;
3952       bugfix on 0.2.3.1-alpha.
3954   o Minor bugfixes:
3955     - Fix compilation when building with bufferevents enabled. (This
3956       configuration is still not expected to work, however.)
3957       Fixes bugs 12438, 12474, 11578; bugfixes on 0.2.5.1-alpha and
3958       0.2.5.3-alpha. Patches from Anthony G. Basile and Sathyanarayanan
3959       Gunasekaran.
3960     - Compile correctly with builds and forks of OpenSSL (such as
3961       LibreSSL) that disable compression. Fixes bug 12602; bugfix on
3962       0.2.1.1-alpha. Patch from "dhill".
3965 Changes in version 0.2.4.23 - 2014-07-28
3966   Tor 0.2.4.23 brings us a big step closer to slowing down the risk from
3967   guard rotation, and also backports several important fixes from the
3968   Tor 0.2.5 alpha release series.
3970   o Major features:
3971     - Clients now look at the "usecreatefast" consensus parameter to
3972       decide whether to use CREATE_FAST or CREATE cells for the first hop
3973       of their circuit. This approach can improve security on connections
3974       where Tor's circuit handshake is stronger than the available TLS
3975       connection security levels, but the tradeoff is more computational
3976       load on guard relays. Implements proposal 221. Resolves ticket 9386.
3977     - Make the number of entry guards configurable via a new
3978       NumEntryGuards consensus parameter, and the number of directory
3979       guards configurable via a new NumDirectoryGuards consensus
3980       parameter. Implements ticket 12688.
3982   o Major bugfixes:
3983     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
3984       implementation that caused incorrect results on 32-bit
3985       implementations when certain malformed inputs were used along with
3986       a small class of private ntor keys. This bug does not currently
3987       appear to allow an attacker to learn private keys or impersonate a
3988       Tor server, but it could provide a means to distinguish 32-bit Tor
3989       implementations from 64-bit Tor implementations. Fixes bug 12694;
3990       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
3991       Adam Langley.
3993   o Minor bugfixes:
3994     - Warn and drop the circuit if we receive an inbound 'relay early'
3995       cell. Those used to be normal to receive on hidden service circuits
3996       due to bug 1038, but the buggy Tor versions are long gone from
3997       the network so we can afford to resume watching for them. Resolves
3998       the rest of bug 1038; bugfix on 0.2.1.19.
3999     - Correct a confusing error message when trying to extend a circuit
4000       via the control protocol but we don't know a descriptor or
4001       microdescriptor for one of the specified relays. Fixes bug 12718;
4002       bugfix on 0.2.3.1-alpha.
4003     - Avoid an illegal read from stack when initializing the TLS
4004       module using a version of OpenSSL without all of the ciphers
4005       used by the v2 link handshake. Fixes bug 12227; bugfix on
4006       0.2.4.8-alpha.  Found by "starlight".
4008   o Minor features:
4009     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
4010       Country database.
4013 Changes in version 0.2.5.5-alpha - 2014-06-18
4014   Tor 0.2.5.5-alpha fixes a wide variety of remaining issues in the Tor
4015   0.2.5.x release series, including a couple of DoS issues, some
4016   performance regressions, a large number of bugs affecting the Linux
4017   seccomp2 sandbox code, and various other bugfixes. It also adds
4018   diagnostic bugfixes for a few tricky issues that we're trying to
4019   track down.
4021   o Major features (security, traffic analysis resistance):
4022     - Several major improvements to the algorithm used to decide when to
4023       close TLS connections. Previous versions of Tor closed connections
4024       at a fixed interval after the last time a non-padding cell was
4025       sent over the connection, regardless of the target of the
4026       connection. Now, we randomize the intervals by adding up to 50% of
4027       their base value, we measure the length of time since connection
4028       last had at least one circuit, and we allow connections to known
4029       ORs to remain open a little longer (15 minutes instead of 3
4030       minutes minimum). These changes should improve Tor's resistance
4031       against some kinds of traffic analysis, and lower some overhead
4032       from needlessly closed connections. Fixes ticket 6799.
4033       Incidentally fixes ticket 12023; bugfix on 0.2.5.1-alpha.
4035   o Major bugfixes (security, OOM, new since 0.2.5.4-alpha, also in 0.2.4.22):
4036     - Fix a memory leak that could occur if a microdescriptor parse
4037       fails during the tokenizing step. This bug could enable a memory
4038       exhaustion attack by directory servers. Fixes bug 11649; bugfix
4039       on 0.2.2.6-alpha.
4041   o Major bugfixes (security, directory authorities):
4042     - Directory authorities now include a digest of each relay's
4043       identity key as a part of its microdescriptor.
4045       This is a workaround for bug 11743 (reported by "cypherpunks"),
4046       where Tor clients do not support receiving multiple
4047       microdescriptors with the same SHA256 digest in the same
4048       consensus. When clients receive a consensus like this, they only
4049       use one of the relays. Without this fix, a hostile relay could
4050       selectively disable some client use of target relays by
4051       constructing a router descriptor with a different identity and the
4052       same microdescriptor parameters and getting the authorities to
4053       list it in a microdescriptor consensus. This fix prevents an
4054       attacker from causing a microdescriptor collision, because the
4055       router's identity is not forgeable.
4057   o Major bugfixes (relay):
4058     - Use a direct dirport connection when uploading non-anonymous
4059       descriptors to the directory authorities. Previously, relays would
4060       incorrectly use tunnel connections under a fairly wide variety of
4061       circumstances. Fixes bug 11469; bugfix on 0.2.4.3-alpha.
4062     - When a circuit accidentally has the same circuit ID for its
4063       forward and reverse direction, correctly detect the direction of
4064       cells using that circuit. Previously, this bug made roughly one
4065       circuit in a million non-functional. Fixes bug 12195; this is a
4066       bugfix on every version of Tor.
4068   o Major bugfixes (client, pluggable transports):
4069     - When managing pluggable transports, use OS notification facilities
4070       to learn if they have crashed, and don't attempt to kill any
4071       process that has already exited. Fixes bug 8746; bugfix
4072       on 0.2.3.6-alpha.
4074   o Minor features (diagnostic):
4075     - When logging a warning because of bug 7164, additionally check the
4076       hash table for consistency (as proposed on ticket 11737). This may
4077       help diagnose bug 7164.
4078     - When we log a heartbeat, log how many one-hop circuits we have
4079       that are at least 30 minutes old, and log status information about
4080       a few of them. This is an attempt to track down bug 8387.
4081     - When encountering an unexpected CR while writing text to a file on
4082       Windows, log the name of the file. Should help diagnosing
4083       bug 11233.
4084     - Give more specific warnings when a client notices that an onion
4085       handshake has failed. Fixes ticket 9635.
4086     - Add significant new logging code to attempt to diagnose bug 12184,
4087       where relays seem to run out of available circuit IDs.
4088     - Improve the diagnostic log message for bug 8387 even further to
4089       try to improve our odds of figuring out why one-hop directory
4090       circuits sometimes do not get closed.
4092   o Minor features (security, memory management):
4093     - Memory allocation tricks (mempools and buffer freelists) are now
4094       disabled by default. You can turn them back on with
4095       --enable-mempools and --enable-buf-freelists respectively. We're
4096       disabling these features because malloc performance is good enough
4097       on most platforms, and a similar feature in OpenSSL exacerbated
4098       exploitation of the Heartbleed attack. Resolves ticket 11476.
4100   o Minor features (security):
4101     - Apply the secure SipHash-2-4 function to the hash table mapping
4102       circuit IDs and channels to circuits. We missed this one when we
4103       were converting all the other hash functions to use SipHash back
4104       in 0.2.5.3-alpha. Resolves ticket 11750.
4106   o Minor features (build):
4107     - The configure script has a --disable-seccomp option to turn off
4108       support for libseccomp on systems that have it, in case it (or
4109       Tor's use of it) is broken. Resolves ticket 11628.
4111   o Minor features (other):
4112     - Update geoip and geoip6 to the June 4 2014 Maxmind GeoLite2
4113       Country database.
4115   o Minor bugfixes (security, new since 0.2.5.4-alpha, also in 0.2.4.22):
4116     - When running a hidden service, do not allow TunneledDirConns 0;
4117       this will keep the hidden service from running, and also
4118       make it publish its descriptors directly over HTTP. Fixes bug 10849;
4119       bugfix on 0.2.1.1-alpha.
4121   o Minor bugfixes (performance):
4122     - Avoid a bug where every successful connection made us recompute
4123       the flag telling us whether we have sufficient information to
4124       build circuits. Previously, we would forget our cached value
4125       whenever we successfully opened a channel (or marked a router as
4126       running or not running for any other reason), regardless of
4127       whether we had previously believed the router to be running. This
4128       forced us to run an expensive update operation far too often.
4129       Fixes bug 12170; bugfix on 0.1.2.1-alpha.
4130     - Avoid using tor_memeq() for checking relay cell integrity. This
4131       removes a possible performance bottleneck. Fixes part of bug
4132       12169; bugfix on 0.2.1.31.
4134   o Minor bugfixes (compilation):
4135     - Fix compilation of test_status.c when building with MVSC. Bugfix
4136       on 0.2.5.4-alpha. Patch from Gisle Vanem.
4137     - Resolve GCC complaints on OpenBSD about discarding constness in
4138       TO_{ORIGIN,OR}_CIRCUIT functions. Fixes part of bug 11633; bugfix
4139       on 0.1.1.23. Patch from Dana Koch.
4140     - Resolve clang complaints on OpenBSD with -Wshorten-64-to-32 due to
4141       treatment of long and time_t as comparable types. Fixes part of
4142       bug 11633. Patch from Dana Koch.
4143     - Make Tor compile correctly with --disable-buf-freelists. Fixes bug
4144       11623; bugfix on 0.2.5.3-alpha.
4145     - When deciding whether to build the 64-bit curve25519
4146       implementation, detect platforms where we can compile 128-bit
4147       arithmetic but cannot link it. Fixes bug 11729; bugfix on
4148       0.2.4.8-alpha. Patch from "conradev".
4149     - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761;
4150       bugfix on 0.2.3.13-alpha. Found by "cypherpunks".
4151     - Fix compilation with dmalloc. Fixes bug 11605; bugfix
4152       on 0.2.4.10-alpha.
4154   o Minor bugfixes (Directory server):
4155     - When sending a compressed set of descriptors or microdescriptors,
4156       make sure to finalize the zlib stream. Previously, we would write
4157       all the compressed data, but if the last descriptor we wanted to
4158       send was missing or too old, we would not mark the stream as
4159       finished. This caused problems for decompression tools. Fixes bug
4160       11648; bugfix on 0.1.1.23.
4162   o Minor bugfixes (Linux seccomp sandbox):
4163     - Make the seccomp sandbox code compile under ARM Linux. Fixes bug
4164       11622; bugfix on 0.2.5.1-alpha.
4165     - Avoid crashing when re-opening listener ports with the seccomp
4166       sandbox active. Fixes bug 12115; bugfix on 0.2.5.1-alpha.
4167     - Avoid crashing with the seccomp sandbox enabled along with
4168       ConstrainedSockets. Fixes bug 12139; bugfix on 0.2.5.1-alpha.
4169     - When we receive a SIGHUP with the sandbox enabled, correctly
4170       support rotating our log files. Fixes bug 12032; bugfix
4171       on 0.2.5.1-alpha.
4172     - Avoid crash when running with sandboxing enabled and
4173       DirReqStatistics not disabled. Fixes bug 12035; bugfix
4174       on 0.2.5.1-alpha.
4175     - Fix a "BUG" warning when trying to write bridge-stats files with
4176       the Linux syscall sandbox filter enabled. Fixes bug 12041; bugfix
4177       on 0.2.5.1-alpha.
4178     - Prevent the sandbox from crashing on startup when run with the
4179       --enable-expensive-hardening configuration option. Fixes bug
4180       11477; bugfix on 0.2.5.4-alpha.
4181     - When running with DirPortFrontPage and sandboxing both enabled,
4182       reload the DirPortFrontPage correctly when restarting. Fixes bug
4183       12028; bugfix on 0.2.5.1-alpha.
4184     - Don't try to enable the sandbox when using the Tor binary to check
4185       its configuration, hash a passphrase, or so on. Doing so was
4186       crashing on startup for some users. Fixes bug 11609; bugfix
4187       on 0.2.5.1-alpha.
4188     - Avoid warnings when running with sandboxing and node statistics
4189       enabled at the same time. Fixes part of 12064; bugfix on
4190       0.2.5.1-alpha. Patch from Michael Wolf.
4191     - Avoid warnings when running with sandboxing enabled at the same
4192       time as cookie authentication, hidden services, or directory
4193       authority voting. Fixes part of 12064; bugfix on 0.2.5.1-alpha.
4194     - Do not allow options that require calls to exec to be enabled
4195       alongside the seccomp2 sandbox: they will inevitably crash. Fixes
4196       bug 12043; bugfix on 0.2.5.1-alpha.
4197     - Handle failures in getpwnam()/getpwuid() when running with the
4198       User option set and the Linux syscall sandbox enabled. Fixes bug
4199       11946; bugfix on 0.2.5.1-alpha.
4200     - Refactor the getaddrinfo workaround that the seccomp sandbox uses
4201       to avoid calling getaddrinfo() after installing the sandbox
4202       filters. Previously, it preloaded a cache with the IPv4 address
4203       for our hostname, and nothing else. Now, it loads the cache with
4204       every address that it used to initialize the Tor process. Fixes
4205       bug 11970; bugfix on 0.2.5.1-alpha.
4207   o Minor bugfixes (pluggable transports):
4208     - Enable the ExtORPortCookieAuthFile option, to allow changing the
4209       default location of the authentication token for the extended OR
4210       Port as used by sever-side pluggable transports. We had
4211       implemented this option before, but the code to make it settable
4212       had been omitted. Fixes bug 11635; bugfix on 0.2.5.1-alpha.
4213     - Avoid another 60-second delay when starting Tor in a pluggable-
4214       transport-using configuration when we already have cached
4215       descriptors for our bridges. Fixes bug 11965; bugfix
4216       on 0.2.3.6-alpha.
4218   o Minor bugfixes (client):
4219     - Avoid "Tried to open a socket with DisableNetwork set" warnings
4220       when starting a client with bridges configured and DisableNetwork
4221       set. (Tor launcher starts Tor with DisableNetwork set the first
4222       time it runs.) Fixes bug 10405; bugfix on 0.2.3.9-alpha.
4224   o Minor bugfixes (testing):
4225     - The Python parts of the test scripts now work on Python 3 as well
4226       as Python 2, so systems where '/usr/bin/python' is Python 3 will
4227       no longer have the tests break. Fixes bug 11608; bugfix
4228       on 0.2.5.2-alpha.
4229     - When looking for versions of python that we could run the tests
4230       with, check for "python2.7" and "python3.3"; previously we were
4231       only looking for "python", "python2", and "python3". Patch from
4232       Dana Koch. Fixes bug 11632; bugfix on 0.2.5.2-alpha.
4233     - Fix all valgrind warnings produced by the unit tests. There were
4234       over a thousand memory leak warnings previously, mostly produced
4235       by forgetting to free things in the unit test code. Fixes bug
4236       11618, bugfixes on many versions of Tor.
4238   o Minor bugfixes (tor-fw-helper):
4239     - Give a correct log message when tor-fw-helper fails to launch.
4240       (Previously, we would say something like "tor-fw-helper sent us a
4241       string we could not parse".) Fixes bug 9781; bugfix
4242       on 0.2.4.2-alpha.
4244   o Minor bugfixes (relay, threading):
4245     - Check return code on spawn_func() in cpuworker code, so that we
4246       don't think we've spawned a nonworking cpuworker and write junk to
4247       it forever. Fix related to bug 4345; bugfix on all released Tor
4248       versions. Found by "skruffy".
4249     - Use a pthread_attr to make sure that spawn_func() cannot return an
4250       error while at the same time launching a thread. Fix related to
4251       bug 4345; bugfix on all released Tor versions. Reported
4252       by "cypherpunks".
4254   o Minor bugfixes (relay, oom prevention):
4255     - Correctly detect the total available system memory. We tried to do
4256       this in 0.2.5.4-alpha, but the code was set up to always return an
4257       error value, even on success. Fixes bug 11805; bugfix
4258       on 0.2.5.4-alpha.
4260   o Minor bugfixes (relay, other):
4261     - We now drop CREATE cells for already-existent circuit IDs and for
4262       zero-valued circuit IDs, regardless of other factors that might
4263       otherwise have called for DESTROY cells. Fixes bug 12191; bugfix
4264       on 0.0.8pre1.
4265     - Avoid an illegal read from stack when initializing the TLS module
4266       using a version of OpenSSL without all of the ciphers used by the
4267       v2 link handshake. Fixes bug 12227; bugfix on 0.2.4.8-alpha. Found
4268       by "starlight".
4269     - When rejecting DATA cells for stream_id zero, still count them
4270       against the circuit's deliver window so that we don't fail to send
4271       a SENDME. Fixes bug 11246; bugfix on 0.2.4.10-alpha.
4273   o Minor bugfixes (logging):
4274     - Fix a misformatted log message about delayed directory fetches.
4275       Fixes bug 11654; bugfix on 0.2.5.3-alpha.
4276     - Squelch a spurious LD_BUG message "No origin circuit for
4277       successful SOCKS stream" in certain hidden service failure cases;
4278       fixes bug 10616.
4280   o Distribution:
4281     - Include a tor.service file in contrib/dist for use with systemd.
4282       Some distributions will be able to use this file unmodified;
4283       others will need to tweak it, or write their own. Patch from Jamie
4284       Nguyen; resolves ticket 8368.
4286   o Documentation:
4287     - Clean up several option names in the manpage to match their real
4288       names, add the missing documentation for a couple of testing and
4289       directory authority options, remove the documentation for a
4290       V2-directory fetching option that no longer exists. Resolves
4291       ticket 11634.
4292     - Correct the documenation so that it lists the correct directory
4293       for the stats files. (They are in a subdirectory called "stats",
4294       not "status".)
4295     - In the manpage, move more authority-only options into the
4296       directory authority section so that operators of regular directory
4297       caches don't get confused.
4299   o Package cleanup:
4300     - The contrib directory has been sorted and tidied. Before, it was
4301       an unsorted dumping ground for useful and not-so-useful things.
4302       Now, it is divided based on functionality, and the items which
4303       seemed to be nonfunctional or useless have been removed. Resolves
4304       ticket 8966; based on patches from "rl1987".
4306   o Removed code:
4307     - Remove /tor/dbg-stability.txt URL that was meant to help debug WFU
4308       and MTBF calculations, but that nobody was using. Fixes ticket 11742.
4309     - The TunnelDirConns and PreferTunnelledDirConns options no longer
4310       exist; tunneled directory connections have been available since
4311       0.1.2.5-alpha, and turning them off is not a good idea. This is a
4312       brute-force fix for 10849, where "TunnelDirConns 0" would break
4313       hidden services.
4316 Changes in version 0.2.4.22 - 2014-05-16
4317   Tor 0.2.4.22 backports numerous high-priority fixes from the Tor 0.2.5
4318   alpha release series. These include blocking all authority signing
4319   keys that may have been affected by the OpenSSL "heartbleed" bug,
4320   choosing a far more secure set of TLS ciphersuites by default, closing
4321   a couple of memory leaks that could be used to run a target relay out
4322   of RAM, and several others.
4324   o Major features (security, backport from 0.2.5.4-alpha):
4325     - Block authority signing keys that were used on authorities
4326       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
4327       don't have any evidence that these keys _were_ compromised; we're
4328       doing this to be prudent.) Resolves ticket 11464.
4330   o Major bugfixes (security, OOM):
4331     - Fix a memory leak that could occur if a microdescriptor parse
4332       fails during the tokenizing step. This bug could enable a memory
4333       exhaustion attack by directory servers. Fixes bug 11649; bugfix
4334       on 0.2.2.6-alpha.
4336   o Major bugfixes (TLS cipher selection, backport from 0.2.5.4-alpha):
4337     - The relay ciphersuite list is now generated automatically based on
4338       uniform criteria, and includes all OpenSSL ciphersuites with
4339       acceptable strength and forward secrecy. Previously, we had left
4340       some perfectly fine ciphersuites unsupported due to omission or
4341       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
4342       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
4343     - Relays now trust themselves to have a better view than clients of
4344       which TLS ciphersuites are better than others. (Thanks to bug
4345       11513, the relay list is now well-considered, whereas the client
4346       list has been chosen mainly for anti-fingerprinting purposes.)
4347       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
4348       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
4349       AES128. Resolves ticket 11528.
4350     - Clients now try to advertise the same list of ciphersuites as
4351       Firefox 28. This change enables selection of (fast) GCM
4352       ciphersuites, disables some strange old ciphers, and stops
4353       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
4354       Resolves ticket 11438.
4356   o Minor bugfixes (configuration, security):
4357     - When running a hidden service, do not allow TunneledDirConns 0:
4358       trying to set that option together with a hidden service would
4359       otherwise prevent the hidden service from running, and also make
4360       it publish its descriptors directly over HTTP. Fixes bug 10849;
4361       bugfix on 0.2.1.1-alpha.
4363   o Minor bugfixes (controller, backport from 0.2.5.4-alpha):
4364     - Avoid sending a garbage value to the controller when a circuit is
4365       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
4367   o Minor bugfixes (exit relay, backport from 0.2.5.4-alpha):
4368     - Stop leaking memory when we successfully resolve a PTR record.
4369       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
4371   o Minor bugfixes (bridge client, backport from 0.2.5.4-alpha):
4372     - Avoid 60-second delays in the bootstrapping process when Tor is
4373       launching for a second time while using bridges. Fixes bug 9229;
4374       bugfix on 0.2.0.3-alpha.
4376   o Minor bugfixes (relays and bridges, backport from 0.2.5.4-alpha):
4377     - Give the correct URL in the warning message when trying to run a
4378       relay on an ancient version of Windows. Fixes bug 9393.
4380   o Minor bugfixes (compilation):
4381     - Fix a compilation error when compiling with --disable-curve25519.
4382       Fixes bug 9700; bugfix on 0.2.4.17-rc.
4384   o Minor bugfixes:
4385     - Downgrade the warning severity for the the "md was still
4386       referenced 1 node(s)" warning. Tor 0.2.5.4-alpha has better code
4387       for trying to diagnose this bug, and the current warning in
4388       earlier versions of tor achieves nothing useful. Addresses warning
4389       from bug 7164.
4391   o Minor features (log verbosity, backport from 0.2.5.4-alpha):
4392     - When we run out of usable circuit IDs on a channel, log only one
4393       warning for the whole channel, and describe how many circuits
4394       there were on the channel. Fixes part of ticket 11553.
4396   o Minor features (security, backport from 0.2.5.4-alpha):
4397     - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but
4398       leave the default at 8GBytes), to better support Raspberry Pi
4399       users. Fixes bug 9686; bugfix on 0.2.4.14-alpha.
4401   o Documentation (backport from 0.2.5.4-alpha):
4402     - Correctly document that we search for a system torrc file before
4403       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
4404       0.2.3.18-rc.
4407 Changes in version 0.2.5.4-alpha - 2014-04-25
4408   Tor 0.2.5.4-alpha includes several security and performance
4409   improvements for clients and relays, including blacklisting authority
4410   signing keys that were used while susceptible to the OpenSSL
4411   "heartbleed" bug, fixing two expensive functions on busy relays,
4412   improved TLS ciphersuite preference lists, support for run-time
4413   hardening on compilers that support AddressSanitizer, and more work on
4414   the Linux sandbox code.
4416   There are also several usability fixes for clients (especially clients
4417   that use bridges), two new TransPort protocols supported (one on
4418   OpenBSD, one on FreeBSD), and various other bugfixes.
4420   This release marks end-of-life for Tor 0.2.2.x; those Tor versions
4421   have accumulated many known flaws; everyone should upgrade.
4423   o Major features (security):
4424     - If you don't specify MaxMemInQueues yourself, Tor now tries to
4425       pick a good value based on your total system memory. Previously,
4426       the default was always 8 GB. You can still override the default by
4427       setting MaxMemInQueues yourself. Resolves ticket 11396.
4428     - Block authority signing keys that were used on authorities
4429       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
4430       don't have any evidence that these keys _were_ compromised; we're
4431       doing this to be prudent.) Resolves ticket 11464.
4433   o Major features (relay performance):
4434     - Speed up server-side lookups of rendezvous and introduction point
4435       circuits by using hashtables instead of linear searches. These
4436       functions previously accounted between 3 and 7% of CPU usage on
4437       some busy relays. Resolves ticket 9841.
4438     - Avoid wasting CPU when extending a circuit over a channel that is
4439       nearly out of circuit IDs. Previously, we would do a linear scan
4440       over possible circuit IDs before finding one or deciding that we
4441       had exhausted our possibilities. Now, we try at most 64 random
4442       circuit IDs before deciding that we probably won't succeed. Fixes
4443       a possible root cause of ticket 11553.
4445   o Major features (seccomp2 sandbox, Linux only):
4446     - The seccomp2 sandbox can now run a test network for multiple hours
4447       without crashing. The sandbox is still experimental, and more bugs
4448       will probably turn up. To try it, enable "Sandbox 1" on a Linux
4449       host. Resolves ticket 11351.
4450     - Strengthen sandbox code: the sandbox can now test the arguments
4451       for rename(), and blocks _sysctl() entirely. Resolves another part
4452       of ticket 11351.
4453     - When the sandbox blocks a system call, it now tries to log a stack
4454       trace before exiting. Resolves ticket 11465.
4456   o Major bugfixes (TLS cipher selection):
4457     - The relay ciphersuite list is now generated automatically based on
4458       uniform criteria, and includes all OpenSSL ciphersuites with
4459       acceptable strength and forward secrecy. Previously, we had left
4460       some perfectly fine ciphersuites unsupported due to omission or
4461       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
4462       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
4463     - Relays now trust themselves to have a better view than clients of
4464       which TLS ciphersuites are better than others. (Thanks to bug
4465       11513, the relay list is now well-considered, whereas the client
4466       list has been chosen mainly for anti-fingerprinting purposes.)
4467       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
4468       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
4469       AES128. Resolves ticket 11528.
4470     - Clients now try to advertise the same list of ciphersuites as
4471       Firefox 28. This change enables selection of (fast) GCM
4472       ciphersuites, disables some strange old ciphers, and stops
4473       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
4474       Resolves ticket 11438.
4476   o Major bugfixes (bridge client):
4477     - Avoid 60-second delays in the bootstrapping process when Tor is
4478       launching for a second time while using bridges. Fixes bug 9229;
4479       bugfix on 0.2.0.3-alpha.
4481   o Minor features (transparent proxy, *BSD):
4482     - Support FreeBSD's ipfw firewall interface for TransPort ports on
4483       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
4484       10267; patch from "yurivict".
4485     - Support OpenBSD's divert-to rules with the pf firewall for
4486       transparent proxy ports. To enable it, set "TransProxyType
4487       pf-divert". This allows Tor to run a TransPort transparent proxy
4488       port on OpenBSD 4.4 or later without root privileges. See the
4489       pf.conf(5) manual page for information on configuring pf to use
4490       divert-to rules. Closes ticket 10896; patch from Dana Koch.
4492   o Minor features (security):
4493     - New --enable-expensive-hardening option to enable security
4494       hardening options that consume nontrivial amounts of CPU and
4495       memory. Right now, this includes AddressSanitizer and UbSan, which
4496       are supported in newer versions of GCC and Clang. Closes ticket
4497       11477.
4499   o Minor features (log verbosity):
4500     - Demote the message that we give when a flushing connection times
4501       out for too long from NOTICE to INFO. It was usually meaningless.
4502       Resolves ticket 5286.
4503     - Don't log so many notice-level bootstrapping messages at startup
4504       about downloading descriptors. Previously, we'd log a notice
4505       whenever we learned about more routers. Now, we only log a notice
4506       at every 5% of progress. Fixes bug 9963.
4507     - Warn less verbosely when receiving a malformed
4508       ESTABLISH_RENDEZVOUS cell. Fixes ticket 11279.
4509     - When we run out of usable circuit IDs on a channel, log only one
4510       warning for the whole channel, and describe how many circuits
4511       there were on the channel. Fixes part of ticket 11553.
4513   o Minor features (relay):
4514     - If a circuit timed out for at least 3 minutes, check if we have a
4515       new external IP address, and publish a new descriptor with the new
4516       IP address if it changed. Resolves ticket 2454.
4518   o Minor features (controller):
4519     - Make the entire exit policy available from the control port via
4520       GETINFO exit-policy/*. Implements enhancement 7952. Patch from
4521       "rl1987".
4522     - Because of the fix for ticket 11396, the real limit for memory
4523       usage may no longer match the configured MaxMemInQueues value. The
4524       real limit is now exposed via GETINFO limits/max-mem-in-queues.
4526   o Minor features (bridge client):
4527     - Report a more useful failure message when we can't connect to a
4528       bridge because we don't have the right pluggable transport
4529       configured. Resolves ticket 9665. Patch from Fábio J. Bertinatto.
4531   o Minor features (diagnostic):
4532     - Add more log messages to diagnose bug 7164, which causes
4533       intermittent "microdesc_free() called but md was still referenced"
4534       warnings. We now include more information, to figure out why we
4535       might be cleaning a microdescriptor for being too old if it's
4536       still referenced by a live node_t object.
4538   o Minor bugfixes (client, DNSPort):
4539     - When using DNSPort, try to respond to AAAA requests with AAAA
4540       answers. Previously, we hadn't looked at the request type when
4541       deciding which answer type to prefer. Fixes bug 10468; bugfix on
4542       0.2.4.7-alpha.
4543     - When receiving a DNS query for an unsupported record type, reply
4544       with no answer rather than with a NOTIMPL error. This behavior
4545       isn't correct either, but it will break fewer client programs, we
4546       hope. Fixes bug 10268; bugfix on 0.2.0.1-alpha. Original patch
4547       from "epoch".
4549   o Minor bugfixes (exit relay):
4550     - Stop leaking memory when we successfully resolve a PTR record.
4551       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
4553   o Minor bugfixes (bridge client):
4554     - Stop accepting bridge lines containing hostnames. Doing so would
4555       cause clients to perform DNS requests on the hostnames, which was
4556       not sensible behavior. Fixes bug 10801; bugfix on 0.2.0.1-alpha.
4557     - Avoid a 60-second delay in the bootstrapping process when a Tor
4558       client with pluggable transports re-reads its configuration at
4559       just the wrong time. Re-fixes bug 11156; bugfix on 0.2.5.3-alpha.
4561   o Minor bugfixes (client, logging during bootstrap):
4562     - Warn only once if we start logging in an unsafe way. Previously,
4563       we complain as many times as we had problems. Fixes bug 9870;
4564       bugfix on 0.2.5.1-alpha.
4565     - Only report the first fatal bootstrap error on a given OR
4566       connection. This stops us from telling the controller bogus error
4567       messages like "DONE". Fixes bug 10431; bugfix on 0.2.1.1-alpha.
4568     - Be more helpful when trying to run sandboxed on Linux without
4569       libseccomp. Instead of saying "Sandbox is not implemented on this
4570       platform", we now explain that we need to be built with
4571       libseccomp. Fixes bug 11543; bugfix on 0.2.5.1-alpha.
4572     - Avoid generating spurious warnings when starting with
4573       DisableNetwork enabled. Fixes bug 11200 and bug 10405; bugfix on
4574       0.2.3.9-alpha.
4576   o Minor bugfixes (closing OR connections):
4577     - If write_to_buf() in connection_write_to_buf_impl_() ever fails,
4578       check if it's an or_connection_t and correctly call
4579       connection_or_close_for_error() rather than
4580       connection_mark_for_close() directly. Fixes bug 11304; bugfix on
4581       0.2.4.4-alpha.
4582     - When closing all connections on setting DisableNetwork to 1, use
4583       connection_or_close_normally() rather than closing OR connections
4584       out from under the channel layer. Fixes bug 11306; bugfix on
4585       0.2.4.4-alpha.
4587   o Minor bugfixes (controller):
4588     - Avoid sending a garbage value to the controller when a circuit is
4589       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
4591   o Minor bugfixes (tor-fw-helper):
4592     - Allow tor-fw-helper to build again by adding src/ext to its
4593       CPPFLAGS. Fixes bug 11296; bugfix on 0.2.5.3-alpha.
4595   o Minor bugfixes (bridges):
4596     - Avoid potential crashes or bad behavior when launching a
4597       server-side managed proxy with ORPort or ExtORPort temporarily
4598       disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha.
4600   o Minor bugfixes (platform-specific):
4601     - Fix compilation on Solaris, which does not have <endian.h>. Fixes
4602       bug 11426; bugfix on 0.2.5.3-alpha.
4603     - When dumping a malformed directory object to disk, save it in
4604       binary mode on Windows, not text mode. Fixes bug 11342; bugfix on
4605       0.2.2.1-alpha.
4606     - Don't report failures from make_socket_reuseable() on incoming
4607       sockets on OSX: this can happen when incoming connections close
4608       early. Fixes bug 10081.
4610   o Minor bugfixes (trivial memory leaks):
4611     - Fix a small memory leak when signing a directory object. Fixes bug
4612       11275; bugfix on 0.2.4.13-alpha.
4613     - Free placeholder entries in our circuit table at exit; fixes a
4614       harmless memory leak. Fixes bug 11278; bugfix on 0.2.5.1-alpha.
4615     - Don't re-initialize a second set of OpenSSL mutexes when starting
4616       up. Previously, we'd make one set of mutexes, and then immediately
4617       replace them with another. Fixes bug 11726; bugfix on
4618       0.2.5.3-alpha.
4619     - Resolve some memory leaks found by coverity in the unit tests, on
4620       exit in tor-gencert, and on a failure to compute digests for our
4621       own keys when generating a v3 networkstatus vote. These leaks
4622       should never have affected anyone in practice.
4624   o Minor bugfixes (hidden service):
4625     - Only retry attempts to connect to a chosen rendezvous point 8
4626       times, not 30. Fixes bug 4241; bugfix on 0.1.0.1-rc.
4628   o Minor bugfixes (misc code correctness):
4629     - Fix various instances of undefined behavior in channeltls.c,
4630       tor_memmem(), and eventdns.c that would cause us to construct
4631       pointers to memory outside an allocated object. (These invalid
4632       pointers were not accessed, but C does not even allow them to
4633       exist.) Fixes bug 10363; bugfixes on 0.1.1.1-alpha, 0.1.2.1-alpha,
4634       0.2.0.10-alpha, and 0.2.3.6-alpha. Reported by "bobnomnom".
4635     - Use the AddressSanitizer and Ubsan sanitizers (in clang-3.4) to
4636       fix some miscellaneous errors in our tests and codebase. Fixes bug
4637       11232. Bugfixes on versions back as far as 0.2.1.11-alpha.
4638     - Always check return values for unlink, munmap, UnmapViewOfFile;
4639       check strftime return values more often. In some cases all we can
4640       do is report a warning, but this may help prevent deeper bugs from
4641       going unnoticed. Closes ticket 8787; bugfixes on many, many tor
4642       versions.
4643     - Fix numerous warnings from the clang "scan-build" static analyzer.
4644       Some of these are programming style issues; some of them are false
4645       positives that indicated awkward code; some are undefined behavior
4646       cases related to constructing (but not using) invalid pointers;
4647       some are assumptions about API behavior; some are (harmlessly)
4648       logging sizeof(ptr) bytes from a token when sizeof(*ptr) would be
4649       correct; and one or two are genuine bugs that weren't reachable
4650       from the rest of the program. Fixes bug 8793; bugfixes on many,
4651       many tor versions.
4653   o Documentation:
4654     - Build the torify.1 manpage again. Previously, we were only trying
4655       to build it when also building tor-fw-helper. That's why we didn't
4656       notice that we'd broken the ability to build it. Fixes bug 11321;
4657       bugfix on 0.2.5.1-alpha.
4658     - Fix the layout of the SOCKSPort flags in the manpage. Fixes bug
4659       11061; bugfix on 0.2.4.7-alpha.
4660     - Correctly document that we search for a system torrc file before
4661       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
4662       0.2.3.18-rc.
4663     - Resolve warnings from Doxygen.
4665   o Code simplifications and refactoring:
4666     - Remove is_internal_IP() function. Resolves ticket 4645.
4667     - Remove unused function circuit_dump_by_chan from circuitlist.c.
4668       Closes issue 9107; patch from "marek".
4669     - Change our use of the ENUM_BF macro to avoid declarations that
4670       confuse Doxygen.
4672   o Deprecated versions:
4673     - Tor 0.2.2.x has reached end-of-life; it has received no patches or
4674       attention for some while. Directory authorities no longer accept
4675       descriptors from relays running any version of Tor prior to Tor
4676       0.2.3.16-alpha. Resolves ticket 11149.
4678   o Testing:
4679     - New macros in test.h to simplify writing mock-functions for unit
4680       tests. Part of ticket 11507. Patch from Dana Koch.
4681     - Complete tests for the status.c module. Resolves ticket 11507.
4682       Patch from Dana Koch.
4684   o Removed code:
4685     - Remove all code for the long unused v1 directory protocol.
4686       Resolves ticket 11070.
4689 Changes in version 0.2.5.3-alpha - 2014-03-22
4690   Tor 0.2.5.3-alpha includes all the fixes from 0.2.4.21. It contains
4691   two new anti-DoS features for Tor relays, resolves a bug that kept
4692   SOCKS5 support for IPv6 from working, fixes several annoying usability
4693   issues for bridge users, and removes more old code for unused
4694   directory formats.
4696   The Tor 0.2.5.x release series is now in patch-freeze: no feature
4697   patches not already written will be considered for inclusion in 0.2.5.x.
4699   o Major features (relay security, DoS-resistance):
4700     - When deciding whether we have run out of memory and we need to
4701       close circuits, also consider memory allocated in buffers for
4702       streams attached to each circuit.
4704       This change, which extends an anti-DoS feature introduced in
4705       0.2.4.13-alpha and improved in 0.2.4.14-alpha, lets Tor exit relays
4706       better resist more memory-based DoS attacks than before. Since the
4707       MaxMemInCellQueues option now applies to all queues, it is renamed
4708       to MaxMemInQueues. This feature fixes bug 10169.
4709     - Avoid hash-flooding denial-of-service attacks by using the secure
4710       SipHash-2-4 hash function for our hashtables. Without this
4711       feature, an attacker could degrade performance of a targeted
4712       client or server by flooding their data structures with a large
4713       number of entries to be stored at the same hash table position,
4714       thereby slowing down the Tor instance. With this feature, hash
4715       table positions are derived from a randomized cryptographic key,
4716       and an attacker cannot predict which entries will collide. Closes
4717       ticket 4900.
4718     - Decrease the lower limit of MaxMemInQueues to 256 MBytes (but leave
4719       the default at 8GBytes), to better support Raspberry Pi users. Fixes
4720       bug 9686; bugfix on 0.2.4.14-alpha.
4722   o Minor features (bridges, pluggable transports):
4723     - Bridges now write the SHA1 digest of their identity key
4724       fingerprint (that is, a hash of a hash of their public key) to
4725       notice-level logs, and to a new hashed-fingerprint file. This
4726       information will help bridge operators look up their bridge in
4727       Globe and similar tools. Resolves ticket 10884.
4728     - Improve the message that Tor displays when running as a bridge
4729       using pluggable transports without an Extended ORPort listener.
4730       Also, log the message in the log file too. Resolves ticket 11043.
4732   o Minor features (other):
4733     - Add a new option, PredictedPortsRelevanceTime, to control how long
4734       after having received a request to connect to a given port Tor
4735       will try to keep circuits ready in anticipation of future requests
4736       for that port. Patch from "unixninja92"; implements ticket 9176.
4737     - Generate a warning if any ports are listed in the SocksPolicy,
4738       DirPolicy, AuthDirReject, AuthDirInvalid, AuthDirBadDir, or
4739       AuthDirBadExit options. (These options only support address
4740       ranges.) Fixes part of ticket 11108.
4741     - Update geoip and geoip6 to the February 7 2014 Maxmind GeoLite2
4742       Country database.
4744   o Minor bugfixes (new since 0.2.5.2-alpha, also in 0.2.4.21):
4745     - Build without warnings under clang 3.4. (We have some macros that
4746       define static functions only some of which will get used later in
4747       the module. Starting with clang 3.4, these give a warning unless the
4748       unused attribute is set on them.) Resolves ticket 10904.
4749     - Fix build warnings about missing "a2x" comment when building the
4750       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
4751       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
4753   o Minor bugfixes (client):
4754     - Improve the log message when we can't connect to a hidden service
4755       because all of the hidden service directory nodes hosting its
4756       descriptor are excluded. Improves on our fix for bug 10722, which
4757       was a bugfix on 0.2.0.10-alpha.
4758     - Raise a control port warning when we fail to connect to all of
4759       our bridges. Previously, we didn't inform the controller, and
4760       the bootstrap process would stall. Fixes bug 11069; bugfix on
4761       0.2.1.2-alpha.
4762     - Exit immediately when a process-owning controller exits.
4763       Previously, tor relays would wait for a little while after their
4764       controller exited, as if they had gotten an INT signal -- but this
4765       was problematic, since there was no feedback for the user. To do a
4766       clean shutdown, controllers should send an INT signal and give Tor
4767       a chance to clean up. Fixes bug 10449; bugfix on 0.2.2.28-beta.
4768     - Stop attempting to connect to bridges before our pluggable
4769       transports are configured (harmless but resulted in some erroneous
4770       log messages). Fixes bug 11156; bugfix on 0.2.3.2-alpha.
4771     - Fix connections to IPv6 addresses over SOCKS5. Previously, we were
4772       generating incorrect SOCKS5 responses, and confusing client
4773       applications. Fixes bug 10987; bugfix on 0.2.4.7-alpha.
4775   o Minor bugfixes (relays and bridges):
4776     - Avoid crashing on a malformed resolv.conf file when running a
4777       relay using Libevent 1. Fixes bug 8788; bugfix on 0.1.1.23.
4778     - Non-exit relays no longer launch mock DNS requests to check for
4779       DNS hijacking. This has been unnecessary since 0.2.1.7-alpha, when
4780       non-exit relays stopped servicing DNS requests. Fixes bug 965;
4781       bugfix on 0.2.1.7-alpha. Patch from Matt Pagan.
4782     - Bridges now report complete directory request statistics. Related
4783       to bug 5824; bugfix on 0.2.2.1-alpha.
4784     - Bridges now never collect statistics that were designed for
4785       relays. Fixes bug 5824; bugfix on 0.2.3.8-alpha.
4786     - Stop giving annoying warning messages when we decide not to launch
4787       a pluggable transport proxy that we don't need (because there are
4788       no bridges configured to use it). Resolves ticket 5018; bugfix
4789       on 0.2.5.2-alpha.
4790     - Give the correct URL in the warning message when trying to run a
4791       relay on an ancient version of Windows. Fixes bug 9393.
4793   o Minor bugfixes (backtrace support):
4794     - Support automatic backtraces on more platforms by using the
4795       "-fasynchronous-unwind-tables" compiler option. This option is
4796       needed for platforms like 32-bit Intel where "-fomit-frame-pointer"
4797       is on by default and table generation is not. This doesn't yet
4798       add Windows support; only Linux, OSX, and some BSDs are affected.
4799       Reported by 'cypherpunks'; fixes bug 11047; bugfix on 0.2.5.2-alpha.
4800     - Avoid strange behavior if two threads hit failed assertions at the
4801       same time and both try to log backtraces at once. (Previously, if
4802       this had happened, both threads would have stored their intermediate
4803       results in the same buffer, and generated junk outputs.) Reported by
4804       "cypherpunks". Fixes bug 11048; bugfix on 0.2.5.2-alpha.
4805     - Fix a compiler warning in format_number_sigsafe(). Bugfix on
4806       0.2.5.2-alpha; patch from Nick Hopper.
4808   o Minor bugfixes (unit tests):
4809     - Fix a small bug in the unit tests that might have made the tests
4810       call 'chmod' with an uninitialized bitmask. Fixes bug 10928;
4811       bugfix on 0.2.5.1-alpha. Patch from Dana Koch.
4813   o Removed code:
4814     - Remove all remaining code related to version-0 hidden service
4815       descriptors: they have not been in use since 0.2.2.1-alpha. Fixes
4816       the rest of bug 10841.
4818   o Documentation:
4819     - Document in the manpage that "KBytes" may also be written as
4820       "kilobytes" or "KB", that "Kbits" may also be written as
4821       "kilobits", and so forth. Closes ticket 9222.
4822     - Document that the ClientOnly config option overrides ORPort.
4823       Our old explanation made ClientOnly sound as though it did
4824       nothing at all. Resolves bug 9059.
4825     - Explain that SocksPolicy, DirPolicy, and similar options don't
4826       take port arguments. Fixes the other part of ticket 11108.
4827     - Fix a comment about the rend_server_descriptor_t.protocols field
4828       to more accurately describe its range. Also, make that field
4829       unsigned, to more accurately reflect its usage. Fixes bug 9099;
4830       bugfix on 0.2.1.5-alpha.
4831     - Fix the manpage's description of HiddenServiceAuthorizeClient:
4832       the maximum client name length is 16, not 19. Fixes bug 11118;
4833       bugfix on 0.2.1.6-alpha.
4835   o Code simplifications and refactoring:
4836     - Get rid of router->address, since in all cases it was just the
4837       string representation of router->addr. Resolves ticket 5528.
4839   o Test infrastructure:
4840     - Update to the latest version of tinytest.
4841     - Improve the tinytest implementation of string operation tests so
4842       that comparisons with NULL strings no longer crash the tests; they
4843       now just fail, normally. Fixes bug 9004; bugfix on 0.2.2.4-alpha.
4846 Changes in version 0.2.4.21 - 2014-02-28
4847   Tor 0.2.4.21 further improves security against potential adversaries who
4848   find breaking 1024-bit crypto doable, and backports several stability
4849   and robustness patches from the 0.2.5 branch.
4851   o Major features (client security):
4852     - When we choose a path for a 3-hop circuit, make sure it contains
4853       at least one relay that supports the NTor circuit extension
4854       handshake. Otherwise, there is a chance that we're building
4855       a circuit that's worth attacking by an adversary who finds
4856       breaking 1024-bit crypto doable, and that chance changes the game
4857       theory. Implements ticket 9777.
4859   o Major bugfixes:
4860     - Do not treat streams that fail with reason
4861       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
4862       since it could also indicate an ENETUNREACH connection error. Fixes
4863       part of bug 10777; bugfix on 0.2.4.8-alpha.
4865   o Code simplification and refactoring:
4866     - Remove data structures which were introduced to implement the
4867       CellStatistics option: they are now redundant with the new timestamp
4868       field in the regular packed_cell_t data structure, which we did
4869       in 0.2.4.18-rc in order to resolve bug 9093. Resolves ticket 10870.
4871   o Minor features:
4872     - Always clear OpenSSL bignums before freeing them -- even bignums
4873       that don't contain secrets. Resolves ticket 10793. Patch by
4874       Florent Daigniere.
4875     - Build without warnings under clang 3.4. (We have some macros that
4876       define static functions only some of which will get used later in
4877       the module. Starting with clang 3.4, these give a warning unless the
4878       unused attribute is set on them.) Resolves ticket 10904.
4879     - Update geoip and geoip6 files to the February 7 2014 Maxmind
4880       GeoLite2 Country database.
4882   o Minor bugfixes:
4883     - Set the listen() backlog limit to the largest actually supported
4884       on the system, not to the value in a header file. Fixes bug 9716;
4885       bugfix on every released Tor.
4886     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
4887       exit node as a NOROUTE error, not an INTERNAL error, since they
4888       can apparently happen when trying to connect to the wrong sort
4889       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
4890     - Fix build warnings about missing "a2x" comment when building the
4891       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
4892       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
4893     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
4894       not entirely remove it from the connection lists. Fixes bug 9602;
4895       bugfix on 0.2.4.4-alpha.
4896     - Fix a segmentation fault in our benchmark code when running with
4897       Fedora's OpenSSL package, or any other OpenSSL that provides
4898       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
4899     - Turn "circuit handshake stats since last time" log messages into a
4900       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
4902   o Documentation fixes:
4903     - Document that all but one DirPort entry must have the NoAdvertise
4904       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
4907 Changes in version 0.2.5.2-alpha - 2014-02-13
4908   Tor 0.2.5.2-alpha includes all the fixes from 0.2.4.18-rc and 0.2.4.20,
4909   like the "poor random number generation" fix and the "building too many
4910   circuits" fix. It also further improves security against potential
4911   adversaries who find breaking 1024-bit crypto doable, and launches
4912   pluggable transports on demand (which gets us closer to integrating
4913   pluggable transport support by default -- not to be confused with Tor
4914   bundles enabling pluggable transports and bridges by default).
4916   o Major features (client security):
4917     - When we choose a path for a 3-hop circuit, make sure it contains
4918       at least one relay that supports the NTor circuit extension
4919       handshake. Otherwise, there is a chance that we're building
4920       a circuit that's worth attacking by an adversary who finds
4921       breaking 1024-bit crypto doable, and that chance changes the game
4922       theory. Implements ticket 9777.
4923     - Clients now look at the "usecreatefast" consensus parameter to
4924       decide whether to use CREATE_FAST or CREATE cells for the first hop
4925       of their circuit. This approach can improve security on connections
4926       where Tor's circuit handshake is stronger than the available TLS
4927       connection security levels, but the tradeoff is more computational
4928       load on guard relays. Implements proposal 221. Resolves ticket 9386.
4930   o Major features (bridges):
4931     - Don't launch pluggable transport proxies if we don't have any
4932       bridges configured that would use them. Now we can list many
4933       pluggable transports, and Tor will dynamically start one when it
4934       hears a bridge address that needs it. Resolves ticket 5018.
4935     - The bridge directory authority now assigns status flags (Stable,
4936       Guard, etc) to bridges based on thresholds calculated over all
4937       Running bridges. Now bridgedb can finally make use of its features
4938       to e.g. include at least one Stable bridge in its answers. Fixes
4939       bug 9859.
4941   o Major features (other):
4942     - Extend ORCONN controller event to include an "ID" parameter,
4943       and add four new controller event types CONN_BW, CIRC_BW,
4944       CELL_STATS, and TB_EMPTY that show connection and circuit usage.
4945       The new events are emitted in private Tor networks only, with the
4946       goal of being able to better track performance and load during
4947       full-network simulations. Implements proposal 218 and ticket 7359.
4948     - On some platforms (currently: recent OSX versions, glibc-based
4949       platforms that support the ELF format, and a few other
4950       Unix-like operating systems), Tor can now dump stack traces
4951       when a crash occurs or an assertion fails. By default, traces
4952       are dumped to stderr (if possible) and to any logs that are
4953       reporting errors. Implements ticket 9299.
4955   o Major bugfixes:
4956     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
4957       not entirely remove it from the connection lists. Fixes bug 9602;
4958       bugfix on 0.2.4.4-alpha.
4959     - Do not treat streams that fail with reason
4960       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
4961       since it could also indicate an ENETUNREACH connection error. Fixes
4962       part of bug 10777; bugfix on 0.2.4.8-alpha.
4964   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
4965     - Do not allow OpenSSL engines to replace the PRNG, even when
4966       HardwareAccel is set. The only default builtin PRNG engine uses
4967       the Intel RDRAND instruction to replace the entire PRNG, and
4968       ignores all attempts to seed it with more entropy. That's
4969       cryptographically stupid: the right response to a new alleged
4970       entropy source is never to discard all previously used entropy
4971       sources. Fixes bug 10402; works around behavior introduced in
4972       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
4973       and "rl1987".
4974     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
4975       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
4976     - Avoid launching spurious extra circuits when a stream is pending.
4977       This fixes a bug where any circuit that _wasn't_ unusable for new
4978       streams would be treated as if it were, causing extra circuits to
4979       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
4981   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
4982     - No longer stop reading or writing on cpuworker connections when
4983       our rate limiting buckets go empty. Now we should handle circuit
4984       handshake requests more promptly. Resolves bug 9731.
4985     - Stop trying to bootstrap all our directory information from
4986       only our first guard. Discovered while fixing bug 9946; bugfix
4987       on 0.2.4.8-alpha.
4989   o Minor features (bridges, pluggable transports):
4990     - Add threshold cutoffs to the networkstatus document created by
4991       the Bridge Authority. Fixes bug 1117.
4992     - On Windows, spawn background processes using the CREATE_NO_WINDOW
4993       flag. Now Tor Browser Bundle 3.5 with pluggable transports enabled
4994       doesn't pop up a blank console window. (In Tor Browser Bundle 2.x,
4995       Vidalia set this option for us.) Implements ticket 10297.
4997   o Minor features (security):
4998     - Always clear OpenSSL bignums before freeing them -- even bignums
4999       that don't contain secrets. Resolves ticket 10793. Patch by
5000       Florent Daignière.
5002   o Minor features (config options and command line):
5003     - Add an --allow-missing-torrc commandline option that tells Tor to
5004       run even if the configuration file specified by -f is not available.
5005       Implements ticket 10060.
5006     - Add support for the TPROXY transparent proxying facility on Linux.
5007       See documentation for the new TransProxyType option for more
5008       details. Implementation by "thomo". Closes ticket 10582.
5010   o Minor features (controller):
5011     - Add a new "HS_DESC" controller event that reports activities
5012       related to hidden service descriptors. Resolves ticket 8510.
5013     - New "DROPGUARDS" controller command to forget all current entry
5014       guards. Not recommended for ordinary use, since replacing guards
5015       too frequently makes several attacks easier. Resolves ticket 9934;
5016       patch from "ra".
5018   o Minor features (build):
5019     - Assume that a user using ./configure --host wants to cross-compile,
5020       and give an error if we cannot find a properly named
5021       tool-chain. Add a --disable-tool-name-check option to proceed
5022       nevertheless. Addresses ticket 9869. Patch by Benedikt Gollatz.
5023     - If we run ./configure and the compiler recognizes -fstack-protector
5024       but the linker rejects it, warn the user about a potentially missing
5025       libssp package. Addresses ticket 9948. Patch from Benedikt Gollatz.
5027   o Minor features (testing):
5028     - If Python is installed, "make check" now runs extra tests beyond
5029       the unit test scripts.
5030     - When bootstrapping a test network, sometimes very few relays get
5031       the Guard flag. Now a new option "TestingDirAuthVoteGuard" can
5032       specify a set of relays which should be voted Guard regardless of
5033       their uptime or bandwidth. Addresses ticket 9206.
5035   o Minor features (log messages):
5036     - When ServerTransportPlugin is set on a bridge, Tor can write more
5037       useful statistics about bridge use in its extrainfo descriptors,
5038       but only if the Extended ORPort ("ExtORPort") is set too. Add a
5039       log message to inform the user in this case. Resolves ticket 9651.
5040     - When receiving a new controller connection, log the origin address.
5041       Resolves ticket 9698; patch from "sigpipe".
5042     - When logging OpenSSL engine status at startup, log the status of
5043       more engines. Fixes ticket 10043; patch from Joshua Datko.
5044     - Turn "circuit handshake stats since last time" log messages into a
5045       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
5047   o Minor features (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
5048     - Improve the circuit queue out-of-memory handler. Previously, when
5049       we ran low on memory, we'd close whichever circuits had the most
5050       queued cells. Now, we close those that have the *oldest* queued
5051       cells, on the theory that those are most responsible for us
5052       running low on memory. Based on analysis from a forthcoming paper
5053       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
5054     - Generate bootstrapping status update events correctly when fetching
5055       microdescriptors. Fixes bug 9927.
5056     - Update to the October 2 2013 Maxmind GeoLite Country database.
5058   o Minor bugfixes (clients):
5059     - When closing a channel that has already been open, do not close
5060       pending circuits that were waiting to connect to the same relay.
5061       Fixes bug 9880; bugfix on 0.2.5.1-alpha. Thanks to skruffy for
5062       finding this bug.
5064   o Minor bugfixes (relays):
5065     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
5066       exit node as a NOROUTE error, not an INTERNAL error, since they
5067       can apparently happen when trying to connect to the wrong sort
5068       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
5070   o Minor bugfixes (bridges):
5071     - Fix a bug where the first connection works to a bridge that uses a
5072       pluggable transport with client-side parameters, but we don't send
5073       the client-side parameters on subsequent connections. (We don't
5074       use any pluggable transports with client-side parameters yet,
5075       but ScrambleSuit will soon become the first one.) Fixes bug 9162;
5076       bugfix on 0.2.0.3-alpha. Based on a patch from "rl1987".
5078   o Minor bugfixes (node selection):
5079     - If ExcludeNodes is set, consider non-excluded hidden service
5080       directory servers before excluded ones. Do not consider excluded
5081       hidden service directory servers at all if StrictNodes is
5082       set. (Previously, we would sometimes decide to connect to those
5083       servers, and then realize before we initiated a connection that
5084       we had excluded them.) Fixes bug 10722; bugfix on 0.2.0.10-alpha.
5085       Reported by "mr-4".
5086     - If we set the ExitNodes option but it doesn't include any nodes
5087       that have the Exit flag, we would choose not to bootstrap. Now we
5088       bootstrap so long as ExitNodes includes nodes which can exit to
5089       some port. Fixes bug 10543; bugfix on 0.2.4.10-alpha.
5091   o Minor bugfixes (controller and command-line):
5092     - If changing a config option via "setconf" fails in a recoverable
5093       way, we used to nonetheless write our new control ports to the
5094       file described by the "ControlPortWriteToFile" option. Now we only
5095       write out that file if we successfully switch to the new config
5096       option. Fixes bug 5605; bugfix on 0.2.2.26-beta. Patch from "Ryman".
5097     - When a command-line option such as --version or --help that
5098       ordinarily implies --hush appears on the command line along with
5099       --quiet, then actually obey --quiet. Previously, we obeyed --quiet
5100       only if it appeared later on the command line. Fixes bug 9578;
5101       bugfix on 0.2.5.1-alpha.
5103   o Minor bugfixes (code correctness):
5104     - Previously we used two temporary files when writing descriptors to
5105       disk; now we only use one. Fixes bug 1376.
5106     - Remove an erroneous (but impossible and thus harmless) pointer
5107       comparison that would have allowed compilers to skip a bounds
5108       check in channeltls.c. Fixes bugs 10313 and 9980; bugfix on
5109       0.2.0.10-alpha. Noticed by Jared L Wong and David Fifield.
5110     - Fix an always-true assertion in pluggable transports code so it
5111       actually checks what it was trying to check. Fixes bug 10046;
5112       bugfix on 0.2.3.9-alpha. Found by "dcb".
5114   o Minor bugfixes (protocol correctness):
5115     - When receiving a VERSIONS cell with an odd number of bytes, close
5116       the connection immediately since the cell is malformed. Fixes bug
5117       10365; bugfix on 0.2.0.10-alpha. Spotted by "bobnomnom"; fix by
5118       "rl1987".
5120   o Minor bugfixes (build):
5121     - Restore the ability to compile Tor with V2_HANDSHAKE_SERVER
5122       turned off (that is, without support for v2 link handshakes). Fixes
5123       bug 4677; bugfix on 0.2.3.2-alpha. Patch from "piet".
5124     - Fix compilation warnings and startup issues when running with
5125       "Sandbox 1" and libseccomp-2.1.0. Fixes bug 10563; bugfix on
5126       0.2.5.1-alpha.
5127     - Fix compilation on Solaris 9, which didn't like us having an
5128       identifier named "sun". Fixes bug 10565; bugfix in 0.2.5.1-alpha.
5130   o Minor bugfixes (testing):
5131     - Fix a segmentation fault in our benchmark code when running with
5132       Fedora's OpenSSL package, or any other OpenSSL that provides
5133       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
5135   o Minor bugfixes (log messages):
5136     - Fix a bug where clients using bridges would report themselves
5137       as 50% bootstrapped even without a live consensus document.
5138       Fixes bug 9922; bugfix on 0.2.1.1-alpha.
5139     - Suppress a warning where, if there's only one directory authority
5140       in the network, we would complain that votes and signatures cannot
5141       be uploaded to other directory authorities. Fixes bug 10842;
5142       bugfix on 0.2.2.26-beta.
5143     - Report bootstrapping progress correctly when we're downloading
5144       microdescriptors. We had updated our "do we have enough microdescs
5145       to begin building circuits?" logic most recently in 0.2.4.10-alpha
5146       (see bug 5956), but we left the bootstrap status event logic at
5147       "how far through getting 1/4 of them are we?" Fixes bug 9958;
5148       bugfix on 0.2.2.36, which is where they diverged (see bug 5343).
5150   o Minor bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
5151     - Avoid a crash bug when starting with a corrupted microdescriptor
5152       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
5153     - If we fail to dump a previously cached microdescriptor to disk, avoid
5154       freeing duplicate data later on. Fixes bug 10423; bugfix on
5155       0.2.4.13-alpha. Spotted by "bobnomnom".
5157   o Minor bugfixes on 0.2.4.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
5158     - Correctly log long IPv6 exit policies, instead of truncating them
5159       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
5160     - Our default TLS ecdhe groups were backwards: we meant to be using
5161       P224 for relays (for performance win) and P256 for bridges (since
5162       it is more common in the wild). Instead we had it backwards. After
5163       reconsideration, we decided that the default should be P256 on all
5164       hosts, since its security is probably better, and since P224 is
5165       reportedly used quite little in the wild.  Found by "skruffy" on
5166       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
5167     - Free directory authority certificate download statuses on exit
5168       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
5170   o Minor bugfixes on 0.2.3.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
5171     - If the guard we choose first doesn't answer, we would try the
5172       second guard, but once we connected to the second guard we would
5173       abandon it and retry the first one, slowing down bootstrapping.
5174       The fix is to treat all our initially chosen guards as acceptable
5175       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
5176     - Fix an assertion failure that would occur when disabling the
5177       ORPort setting on a running Tor process while accounting was
5178       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
5179     - When examining the list of network interfaces to find our address,
5180       do not consider non-running or disabled network interfaces. Fixes
5181       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
5182     - Avoid an off-by-one error when checking buffer boundaries when
5183       formatting the exit status of a pluggable transport helper.
5184       This is probably not an exploitable bug, but better safe than
5185       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
5186       Pedro Ribeiro.
5188   o Removed code and features:
5189     - Clients now reject any directory authority certificates lacking
5190       a dir-key-crosscert element. These have been included since
5191       0.2.1.9-alpha, so there's no real reason for them to be optional
5192       any longer. Completes proposal 157. Resolves ticket 10162.
5193     - Remove all code that existed to support the v2 directory system,
5194       since there are no longer any v2 directory authorities. Resolves
5195       ticket 10758.
5196     - Remove the HSAuthoritativeDir and AlternateHSAuthority torrc
5197       options, which were used for designating authorities as "Hidden
5198       service authorities". There has been no use of hidden service
5199       authorities since 0.2.2.1-alpha, when we stopped uploading or
5200       downloading v0 hidden service descriptors. Fixes bug 10881; also
5201       part of a fix for bug 10841.
5203   o Code simplification and refactoring:
5204     - Remove some old fallback code designed to keep Tor clients working
5205       in a network with only two working relays. Elsewhere in the code we
5206       have long since stopped supporting such networks, so there wasn't
5207       much point in keeping it around. Addresses ticket 9926.
5208     - Reject 0-length EXTEND2 cells more explicitly. Fixes bug 10536;
5209       bugfix on 0.2.4.8-alpha. Reported by "cypherpunks".
5210     - Remove data structures which were introduced to implement the
5211       CellStatistics option: they are now redundant with the addition
5212       of a timestamp to the regular packed_cell_t data structure, which
5213       we did in 0.2.4.18-rc in order to resolve ticket 9093. Implements
5214       ticket 10870.
5216   o Documentation (man page) fixes:
5217     - Update manpage to describe some of the files you can expect to
5218       find in Tor's DataDirectory. Addresses ticket 9839.
5219     - Document that all but one DirPort entry must have the NoAdvertise
5220       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
5222   o Documentation fixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
5223     - Clarify the usage and risks of setting the ContactInfo torrc line
5224       for your relay or bridge. Resolves ticket 9854.
5225     - Add anchors to the manpage so we can link to the html version of
5226       the documentation for specific options. Resolves ticket 9866.
5227     - Replace remaining references to DirServer in man page and
5228       log entries. Resolves ticket 10124.
5230   o Tool changes:
5231     - Make the "tor-gencert" tool used by directory authority operators
5232       create 2048-bit signing keys by default (rather than 1024-bit, since
5233       1024-bit is uncomfortably small these days). Addresses ticket 10324.
5236 Changes in version 0.2.4.20 - 2013-12-22
5237   Tor 0.2.4.20 fixes potentially poor random number generation for users
5238   who 1) use OpenSSL 1.0.0 or later, 2) set "HardwareAccel 1" in their
5239   torrc file, 3) have "Sandy Bridge" or "Ivy Bridge" Intel processors,
5240   and 4) have no state file in their DataDirectory (as would happen on
5241   first start). Users who generated relay or hidden service identity
5242   keys in such a situation should discard them and generate new ones.
5244   This release also fixes a logic error that caused Tor clients to build
5245   many more preemptive circuits than they actually need.
5247   o Major bugfixes:
5248     - Do not allow OpenSSL engines to replace the PRNG, even when
5249       HardwareAccel is set. The only default builtin PRNG engine uses
5250       the Intel RDRAND instruction to replace the entire PRNG, and
5251       ignores all attempts to seed it with more entropy. That's
5252       cryptographically stupid: the right response to a new alleged
5253       entropy source is never to discard all previously used entropy
5254       sources. Fixes bug 10402; works around behavior introduced in
5255       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
5256       and "rl1987".
5257     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
5258       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
5259     - Avoid launching spurious extra circuits when a stream is pending.
5260       This fixes a bug where any circuit that _wasn't_ unusable for new
5261       streams would be treated as if it were, causing extra circuits to
5262       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
5264   o Minor bugfixes:
5265     - Avoid a crash bug when starting with a corrupted microdescriptor
5266       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
5267     - If we fail to dump a previously cached microdescriptor to disk, avoid
5268       freeing duplicate data later on. Fixes bug 10423; bugfix on
5269       0.2.4.13-alpha. Spotted by "bobnomnom".
5272 Changes in version 0.2.4.19 - 2013-12-11
5273   The Tor 0.2.4 release series is dedicated to the memory of Aaron Swartz
5274   (1986-2013). Aaron worked on diverse projects including helping to guide
5275   Creative Commons, playing a key role in stopping SOPA/PIPA, bringing
5276   transparency to the U.S government's PACER documents, and contributing
5277   design and development for Tor and Tor2Web. Aaron was one of the latest
5278   martyrs in our collective fight for civil liberties and human rights,
5279   and his death is all the more painful because he was one of us.
5281   Tor 0.2.4.19, the first stable release in the 0.2.4 branch, features
5282   a new circuit handshake and link encryption that use ECC to provide
5283   better security and efficiency; makes relays better manage circuit
5284   creation requests; uses "directory guards" to reduce client enumeration
5285   risks; makes bridges collect and report statistics about the pluggable
5286   transports they support; cleans up and improves our geoip database;
5287   gets much closer to IPv6 support for clients, bridges, and relays; makes
5288   directory authorities use measured bandwidths rather than advertised
5289   ones when computing flags and thresholds; disables client-side DNS
5290   caching to reduce tracking risks; and fixes a big bug in bridge
5291   reachability testing. This release introduces two new design
5292   abstractions in the code: a new "channel" abstraction between circuits
5293   and or_connections to allow for implementing alternate relay-to-relay
5294   transports, and a new "circuitmux" abstraction storing the queue of
5295   circuits for a channel. The release also includes many stability,
5296   security, and privacy fixes.
5299 Changes in version 0.2.4.18-rc - 2013-11-16
5300   Tor 0.2.4.18-rc is the fourth release candidate for the Tor 0.2.4.x
5301   series. It takes a variety of fixes from the 0.2.5.x branch to improve
5302   stability, performance, and better handling of edge cases.
5304   o Major features:
5305     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
5306       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
5307       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
5308       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
5309       them to solve bug 6033.)
5311   o Major bugfixes:
5312     - No longer stop reading or writing on cpuworker connections when
5313       our rate limiting buckets go empty. Now we should handle circuit
5314       handshake requests more promptly. Resolves bug 9731.
5315     - If we are unable to save a microdescriptor to the journal, do not
5316       drop it from memory and then reattempt downloading it. Fixes bug
5317       9645; bugfix on 0.2.2.6-alpha.
5318     - Stop trying to bootstrap all our directory information from
5319       only our first guard. Discovered while fixing bug 9946; bugfix
5320       on 0.2.4.8-alpha.
5321     - The new channel code sometimes lost track of in-progress circuits,
5322       causing long-running clients to stop building new circuits. The
5323       fix is to always call circuit_n_chan_done(chan, 0) from
5324       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
5326   o Minor bugfixes (on 0.2.4.x):
5327     - Correctly log long IPv6 exit policies, instead of truncating them
5328       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
5329     - Our default TLS ecdhe groups were backwards: we meant to be using
5330       P224 for relays (for performance win) and P256 for bridges (since
5331       it is more common in the wild). Instead we had it backwards. After
5332       reconsideration, we decided that the default should be P256 on all
5333       hosts, since its security is probably better, and since P224 is
5334       reportedly used quite little in the wild.  Found by "skruffy" on
5335       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
5336     - Free directory authority certificate download statuses on exit
5337       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
5339   o Minor bugfixes (on 0.2.3.x and earlier):
5340     - If the guard we choose first doesn't answer, we would try the
5341       second guard, but once we connected to the second guard we would
5342       abandon it and retry the first one, slowing down bootstrapping.
5343       The fix is to treat all our initially chosen guards as acceptable
5344       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
5345     - Fix an assertion failure that would occur when disabling the
5346       ORPort setting on a running Tor process while accounting was
5347       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
5348     - When examining the list of network interfaces to find our address,
5349       do not consider non-running or disabled network interfaces. Fixes
5350       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
5351     - Avoid an off-by-one error when checking buffer boundaries when
5352       formatting the exit status of a pluggable transport helper.
5353       This is probably not an exploitable bug, but better safe than
5354       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
5355       Pedro Ribeiro.
5357   o Minor features (protecting client timestamps):
5358     - Clients no longer send timestamps in their NETINFO cells. These were
5359       not used for anything, and they provided one small way for clients
5360       to be distinguished from each other as they moved from network to
5361       network or behind NAT. Implements part of proposal 222.
5362     - Clients now round timestamps in INTRODUCE cells down to the nearest
5363       10 minutes. If a new Support022HiddenServices option is set to 0, or
5364       if it's set to "auto" and the feature is disabled in the consensus,
5365       the timestamp is sent as 0 instead. Implements part of proposal 222.
5366     - Stop sending timestamps in AUTHENTICATE cells. This is not such
5367       a big deal from a security point of view, but it achieves no actual
5368       good purpose, and isn't needed. Implements part of proposal 222.
5369     - Reduce down accuracy of timestamps in hidden service descriptors.
5370       Implements part of proposal 222.
5372   o Minor features (other):
5373     - Improve the circuit queue out-of-memory handler. Previously, when
5374       we ran low on memory, we'd close whichever circuits had the most
5375       queued cells. Now, we close those that have the *oldest* queued
5376       cells, on the theory that those are most responsible for us
5377       running low on memory. Based on analysis from a forthcoming paper
5378       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
5379     - Generate bootstrapping status update events correctly when fetching
5380       microdescriptors. Fixes bug 9927.
5381     - Update to the October 2 2013 Maxmind GeoLite Country database.
5383   o Documentation fixes:
5384     - Clarify the usage and risks of setting the ContactInfo torrc line
5385       for your relay or bridge. Resolves ticket 9854.
5386     - Add anchors to the manpage so we can link to the html version of
5387       the documentation for specific options. Resolves ticket 9866.
5388     - Replace remaining references to DirServer in man page and
5389       log entries. Resolves ticket 10124.
5392 Changes in version 0.2.5.1-alpha - 2013-10-02
5393   Tor 0.2.5.1-alpha introduces experimental support for syscall sandboxing
5394   on Linux, allows bridges that offer pluggable transports to report usage
5395   statistics, fixes many issues to make testing easier, and provides
5396   a pile of minor features and bugfixes that have been waiting for a
5397   release of the new branch.
5399   This is the first alpha release in a new series, so expect there to
5400   be bugs. Users who would rather test out a more stable branch should
5401   stay with 0.2.4.x for now.
5403   o Major features (security):
5404     - Use the seccomp2 syscall filtering facility on Linux to limit
5405       which system calls Tor can invoke. This is an experimental,
5406       Linux-only feature to provide defense-in-depth against unknown
5407       attacks. To try turning it on, set "Sandbox 1" in your torrc
5408       file. Please be ready to report bugs. We hope to add support
5409       for better sandboxing in the future, including more fine-grained
5410       filters, better division of responsibility, and support for more
5411       platforms. This work has been done by Cristian-Matei Toader for
5412       Google Summer of Code.
5413     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
5414       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
5415       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
5416       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
5417       them to solve bug 6033.)
5419   o Major features (other):
5420     - Add support for passing arguments to managed pluggable transport
5421       proxies. Implements ticket 3594.
5422     - Bridges now track GeoIP information and the number of their users
5423       even when pluggable transports are in use, and report usage
5424       statistics in their extra-info descriptors. Resolves tickets 4773
5425       and 5040.
5426     - Make testing Tor networks bootstrap better: lower directory fetch
5427       retry schedules and maximum interval without directory requests,
5428       and raise maximum download tries. Implements ticket 6752.
5429     - Add make target 'test-network' to run tests on a Chutney network.
5430       Implements ticket 8530.
5431     - The ntor handshake is now on-by-default, no matter what the
5432       directory authorities recommend. Implements ticket 8561.
5434   o Major bugfixes:
5435     - Instead of writing destroy cells directly to outgoing connection
5436       buffers, queue them and intersperse them with other outgoing cells.
5437       This can prevent a set of resource starvation conditions where too
5438       many pending destroy cells prevent data cells from actually getting
5439       delivered. Reported by "oftc_must_be_destroyed". Fixes bug 7912;
5440       bugfix on 0.2.0.1-alpha.
5441     - If we are unable to save a microdescriptor to the journal, do not
5442       drop it from memory and then reattempt downloading it. Fixes bug
5443       9645; bugfix on 0.2.2.6-alpha.
5444     - The new channel code sometimes lost track of in-progress circuits,
5445       causing long-running clients to stop building new circuits. The
5446       fix is to always call circuit_n_chan_done(chan, 0) from
5447       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
5449   o Build features:
5450     - Tor now builds each source file in two modes: a mode that avoids
5451       exposing identifiers needlessly, and another mode that exposes
5452       more identifiers for testing. This lets the compiler do better at
5453       optimizing the production code, while enabling us to take more
5454       radical measures to let the unit tests test things.
5455     - The production builds no longer include functions used only in
5456       the unit tests; all functions exposed from a module only for
5457       unit-testing are now static in production builds.
5458     - Add an --enable-coverage configuration option to make the unit
5459       tests (and a new src/or/tor-cov target) to build with gcov test
5460       coverage support.
5462   o Testing:
5463     - We now have rudimentary function mocking support that our unit
5464       tests can use to test functions in isolation. Function mocking
5465       lets the tests temporarily replace a function's dependencies with
5466       stub functions, so that the tests can check the function without
5467       invoking the other functions it calls.
5468     - Add more unit tests for the <circid,channel>->circuit map, and
5469       the destroy-cell-tracking code to fix bug 7912.
5470     - Unit tests for failing cases of the TAP onion handshake.
5471     - More unit tests for address-manipulation functions.
5473   o Minor features (protecting client timestamps):
5474     - Clients no longer send timestamps in their NETINFO cells. These were
5475       not used for anything, and they provided one small way for clients
5476       to be distinguished from each other as they moved from network to
5477       network or behind NAT. Implements part of proposal 222.
5478     - Clients now round timestamps in INTRODUCE cells down to the nearest
5479       10 minutes. If a new Support022HiddenServices option is set to 0, or
5480       if it's set to "auto" and the feature is disabled in the consensus,
5481       the timestamp is sent as 0 instead. Implements part of proposal 222.
5482     - Stop sending timestamps in AUTHENTICATE cells. This is not such
5483       a big deal from a security point of view, but it achieves no actual
5484       good purpose, and isn't needed. Implements part of proposal 222.
5485     - Reduce down accuracy of timestamps in hidden service descriptors.
5486       Implements part of proposal 222.
5488   o Minor features (config options):
5489     - Config (torrc) lines now handle fingerprints which are missing
5490       their initial '$'. Resolves ticket 4341; improvement over 0.0.9pre5.
5491     - Support a --dump-config option to print some or all of the
5492       configured options. Mainly useful for debugging the command-line
5493       option parsing code. Helps resolve ticket 4647.
5494     - Raise awareness of safer logging: notify user of potentially
5495       unsafe config options, like logging more verbosely than severity
5496       "notice" or setting SafeLogging to 0. Resolves ticket 5584.
5497     - Add a new configuration option TestingV3AuthVotingStartOffset
5498       that bootstraps a network faster by changing the timing for
5499       consensus votes. Addresses ticket 8532.
5500     - Add a new torrc option "ServerTransportOptions" that allows
5501       bridge operators to pass configuration parameters to their
5502       pluggable transports. Resolves ticket 8929.
5503     - The config (torrc) file now accepts bandwidth and space limits in
5504       bits as well as bytes. (Anywhere that you can say "2 Kilobytes",
5505       you can now say "16 kilobits", and so on.) Resolves ticket 9214.
5506       Patch by CharlieB.
5508   o Minor features (build):
5509     - Add support for `--library-versions` flag. Implements ticket 6384.
5510     - Return the "unexpected sendme" warnings to a warn severity, but make
5511       them rate limited, to help diagnose ticket 8093.
5512     - Detect a missing asciidoc, and warn the user about it, during
5513       configure rather than at build time. Fixes issue 6506. Patch from
5514       Arlo Breault.
5516   o Minor features (other):
5517     - Use the SOCK_NONBLOCK socket type, if supported, to open nonblocking
5518       sockets in a single system call. Implements ticket 5129.
5519     - Log current accounting state (bytes sent and received + remaining
5520       time for the current accounting period) in the relay's heartbeat
5521       message. Implements ticket 5526; patch from Peter Retzlaff.
5522     - Implement the TRANSPORT_LAUNCHED control port event that
5523       notifies controllers about new launched pluggable
5524       transports. Resolves ticket 5609.
5525     - If we're using the pure-C 32-bit curve25519_donna implementation
5526       of curve25519, build it with the -fomit-frame-pointer option to
5527       make it go faster on register-starved hosts. This improves our
5528       handshake performance by about 6% on i386 hosts without nacl.
5529       Closes ticket 8109.
5530     - Update to the September 4 2013 Maxmind GeoLite Country database.
5532   o Minor bugfixes:
5533     - Set the listen() backlog limit to the largest actually supported
5534       on the system, not to the value in a header file. Fixes bug 9716;
5535       bugfix on every released Tor.
5536     - No longer accept malformed http headers when parsing urls from
5537       headers. Now we reply with Bad Request ("400"). Fixes bug 2767;
5538       bugfix on 0.0.6pre1.
5539     - In munge_extrainfo_into_routerinfo(), check the return value of
5540       memchr(). This would have been a serious issue if we ever passed
5541       it a non-extrainfo. Fixes bug 8791; bugfix on 0.2.0.6-alpha. Patch
5542       from Arlo Breault.
5543     - On the chance that somebody manages to build Tor on a
5544       platform where time_t is unsigned, correct the way that
5545       microdesc_add_to_cache() handles negative time arguments.
5546       Fixes bug 8042; bugfix on 0.2.3.1-alpha.
5547     - Reject relative control socket paths and emit a warning. Previously,
5548       single-component control socket paths would be rejected, but Tor
5549       would not log why it could not validate the config. Fixes bug 9258;
5550       bugfix on 0.2.3.16-alpha.
5552   o Minor bugfixes (command line):
5553     - Use a single command-line parser for parsing torrc options on the
5554       command line and for finding special command-line options to avoid
5555       inconsistent behavior for torrc option arguments that have the same
5556       names as command-line options. Fixes bugs 4647 and 9578; bugfix on
5557       0.0.9pre5.
5558     - No longer allow 'tor --hash-password' with no arguments. Fixes bug
5559       9573; bugfix on 0.0.9pre5.
5561   o Minor fixes (build, auxiliary programs):
5562     - Stop preprocessing the "torify" script with autoconf, since
5563       it no longer refers to LOCALSTATEDIR. Fixes bug 5505; patch
5564       from Guilhem.
5565     - The tor-fw-helper program now follows the standard convention and
5566       exits with status code "0" on success. Fixes bug 9030; bugfix on
5567       0.2.3.1-alpha. Patch by Arlo Breault.
5568     - Corrected ./configure advice for what openssl dev package you should
5569       install on Debian. Fixes bug 9207; bugfix on 0.2.0.1-alpha.
5571   o Minor code improvements:
5572     - Remove constants and tests for PKCS1 padding; it's insecure and
5573       shouldn't be used for anything new. Fixes bug 8792; patch
5574       from Arlo Breault.
5575     - Remove instances of strcpy() from the unit tests. They weren't
5576       hurting anything, since they were only in the unit tests, but it's
5577       embarassing to have strcpy() in the code at all, and some analysis
5578       tools don't like it. Fixes bug 8790; bugfix on 0.2.3.6-alpha and
5579       0.2.3.8-alpha. Patch from Arlo Breault.
5581   o Removed features:
5582     - Remove migration code from when we renamed the "cached-routers"
5583       file to "cached-descriptors" back in 0.2.0.8-alpha. This
5584       incidentally resolves ticket 6502 by cleaning up the related code
5585       a bit. Patch from Akshay Hebbar.
5587   o Code simplification and refactoring:
5588     - Extract the common duplicated code for creating a subdirectory
5589       of the data directory and writing to a file in it. Fixes ticket
5590       4282; patch from Peter Retzlaff.
5591     - Since OpenSSL 0.9.7, the i2d_*() functions support allocating output
5592       buffer. Avoid calling twice: i2d_RSAPublicKey(), i2d_DHparams(),
5593       i2d_X509(), and i2d_PublicKey(). Resolves ticket 5170.
5594     - Add a set of accessor functions for the circuit timeout data
5595       structure. Fixes ticket 6153; patch from "piet".
5596     - Clean up exit paths from connection_listener_new(). Closes ticket
5597       8789. Patch from Arlo Breault.
5598     - Since we rely on OpenSSL 0.9.8 now, we can use EVP_PKEY_cmp()
5599       and drop our own custom pkey_eq() implementation. Fixes bug 9043.
5600     - Use a doubly-linked list to implement the global circuit list.
5601       Resolves ticket 9108. Patch from Marek Majkowski.
5602     - Remove contrib/id_to_fp.c since it wasn't used anywhere.
5605 Changes in version 0.2.4.17-rc - 2013-09-05
5606   Tor 0.2.4.17-rc is the third release candidate for the Tor 0.2.4.x
5607   series. It adds an emergency step to help us tolerate the massive
5608   influx of users: 0.2.4 clients using the new (faster and safer) "NTor"
5609   circuit-level handshakes now effectively jump the queue compared to
5610   the 0.2.3 clients using "TAP" handshakes. This release also fixes a
5611   big bug hindering bridge reachability tests.
5613   o Major features:
5614     - Relays now process the new "NTor" circuit-level handshake requests
5615       with higher priority than the old "TAP" circuit-level handshake
5616       requests. We still process some TAP requests to not totally starve
5617       0.2.3 clients when NTor becomes popular. A new consensus parameter
5618       "NumNTorsPerTAP" lets us tune the balance later if we need to.
5619       Implements ticket 9574.
5621   o Major bugfixes:
5622     - If the circuit build timeout logic is disabled (via the consensus,
5623       or because we are an authority), then don't build testing circuits.
5624       Fixes bug 9657; bugfix on 0.2.2.14-alpha.
5625     - Bridges now send AUTH_CHALLENGE cells during their v3 handshakes;
5626       previously they did not, which prevented them from receiving
5627       successful connections from relays for self-test or bandwidth
5628       testing. Also, when a relay is extending a circuit to a bridge,
5629       it needs to send a NETINFO cell, even when the bridge hasn't sent
5630       an AUTH_CHALLENGE cell. Fixes bug 9546; bugfix on 0.2.3.6-alpha.
5631     - If the time to download the next old-style networkstatus is in
5632       the future, do not decline to consider whether to download the
5633       next microdescriptor networkstatus. Fixes bug 9564; bugfix on
5634       0.2.3.14-alpha.
5636   o Minor bugfixes:
5637     - Avoid double-closing the listener socket in our socketpair()
5638       replacement (used on Windows) in the case where the addresses on
5639       our opened sockets don't match what we expected. Fixes bug 9400;
5640       bugfix on 0.0.2pre7. Found by Coverity.
5642   o Minor fixes (config options):
5643     - Avoid overflows when the user sets MaxCircuitDirtiness to a
5644       ridiculously high value, by imposing a (ridiculously high) 30-day
5645       maximum on MaxCircuitDirtiness.
5646     - Fix the documentation of HeartbeatPeriod to say that the heartbeat
5647       message is logged at notice, not at info.
5648     - Warn and fail if a server is configured not to advertise any
5649       ORPorts at all. (We need *something* to put in our descriptor,
5650       or we just won't work.)
5652   o Minor features:
5653     - Track how many "TAP" and "NTor" circuit handshake requests we get,
5654       and how many we complete, and log it every hour to help relay
5655       operators follow trends in network load. Addresses ticket 9658.
5656     - Update to the August 7 2013 Maxmind GeoLite Country database.
5659 Changes in version 0.2.4.16-rc - 2013-08-10
5660   Tor 0.2.4.16-rc is the second release candidate for the Tor 0.2.4.x
5661   series. It fixes several crash bugs in the 0.2.4 branch.
5663   o Major bugfixes:
5664     - Fix a bug in the voting algorithm that could yield incorrect results
5665       when a non-naming authority declared too many flags. Fixes bug 9200;
5666       bugfix on 0.2.0.3-alpha.
5667     - Fix an uninitialized read that could in some cases lead to a remote
5668       crash while parsing INTRODUCE2 cells. Bugfix on 0.2.4.1-alpha.
5669       Anybody running a hidden service on the experimental 0.2.4.x
5670       branch should upgrade. (This is, so far as we know, unrelated to
5671       the recent news.)
5672     - Avoid an assertion failure when processing DNS replies without the
5673       answer types we expected. Fixes bug 9337; bugfix on 0.2.4.7-alpha.
5674     - Avoid a crash when using --hash-password. Fixes bug 9295; bugfix on
5675       0.2.4.15-rc. Found by stem integration tests.
5677   o Minor bugfixes:
5678     - Fix an invalid memory read that occured when a pluggable
5679       transport proxy failed its configuration protocol.
5680       Fixes bug 9288; bugfix on 0.2.4.1-alpha.
5681     - When evaluating whether to use a connection that we haven't
5682       decided is canonical using a recent link protocol version,
5683       decide that it's canonical only if it used address _does_
5684       match the desired address. Fixes bug 9309; bugfix on
5685       0.2.4.4-alpha. Reported by skruffy.
5686     - Make the default behavior of NumDirectoryGuards be to track
5687       NumEntryGuards. Now a user who changes only NumEntryGuards will get
5688       the behavior she expects. Fixes bug 9354; bugfix on 0.2.4.8-alpha.
5689     - Fix a spurious compilation warning with some older versions of
5690       GCC on FreeBSD. Fixes bug 9254; bugfix on 0.2.4.14-alpha.
5692   o Minor features:
5693     - Update to the July 3 2013 Maxmind GeoLite Country database.
5696 Changes in version 0.2.4.15-rc - 2013-07-01
5697   Tor 0.2.4.15-rc is the first release candidate for the Tor 0.2.4.x
5698   series. It fixes a few smaller bugs, but generally appears stable.
5699   Please test it and let us know whether it is!
5701   o Major bugfixes:
5702     - When receiving a new configuration file via the control port's
5703       LOADCONF command, do not treat the defaults file as absent.
5704       Fixes bug 9122; bugfix on 0.2.3.9-alpha.
5706   o Minor features:
5707     - Issue a warning when running with the bufferevents backend enabled.
5708       It's still not stable, and people should know that they're likely
5709       to hit unexpected problems. Closes ticket 9147.
5712 Changes in version 0.2.4.14-alpha - 2013-06-18
5713   Tor 0.2.4.14-alpha fixes a pair of client guard enumeration problems
5714   present in 0.2.4.13-alpha.
5716   o Major bugfixes:
5717     - When we have too much memory queued in circuits (according to a new
5718       MaxMemInCellQueues option), close the circuits consuming the most
5719       memory. This prevents us from running out of memory as a relay if
5720       circuits fill up faster than they can be drained. Fixes bug 9063;
5721       bugfix on the 54th commit of Tor. This bug is a further fix beyond
5722       bug 6252, whose fix was merged into 0.2.3.21-rc.
5724       This change also fixes an earlier approach taken in 0.2.4.13-alpha,
5725       where we tried to solve this issue simply by imposing an upper limit
5726       on the number of queued cells for a single circuit. That approach
5727       proved to be problematic, since there are ways to provoke clients to
5728       send a number of cells in excess of any such reasonable limit. Fixes
5729       bug 9072; bugfix on 0.2.4.13-alpha.
5731     - Limit hidden service descriptors to at most ten introduction
5732       points, to slow one kind of guard enumeration. Fixes bug 9002;
5733       bugfix on 0.1.1.11-alpha.
5736 Changes in version 0.2.4.13-alpha - 2013-06-14
5737   Tor 0.2.4.13-alpha fixes a variety of potential remote crash
5738   vulnerabilities, makes socks5 username/password circuit isolation
5739   actually actually work (this time for sure!), and cleans up a bunch
5740   of other issues in preparation for a release candidate.
5742   o Major bugfixes (robustness):
5743     - Close any circuit that has too many cells queued on it. Fixes
5744       bug 9063; bugfix on the 54th commit of Tor. This bug is a further
5745       fix beyond bug 6252, whose fix was merged into 0.2.3.21-rc.
5746     - Prevent the get_freelists() function from running off the end of
5747       the list of freelists if it somehow gets an unrecognized
5748       allocation. Fixes bug 8844; bugfix on 0.2.0.16-alpha. Reported by
5749       eugenis.
5750     - Avoid an assertion failure on OpenBSD (and perhaps other BSDs)
5751       when an exit connection with optimistic data succeeds immediately
5752       rather than returning EINPROGRESS. Fixes bug 9017; bugfix on
5753       0.2.3.1-alpha.
5754     - Fix a directory authority crash bug when building a consensus
5755       using an older consensus as its basis. Fixes bug 8833. Bugfix
5756       on 0.2.4.12-alpha.
5758   o Major bugfixes:
5759     - Avoid a memory leak where we would leak a consensus body when we
5760       find that a consensus which we couldn't previously verify due to
5761       missing certificates is now verifiable. Fixes bug 8719; bugfix
5762       on 0.2.0.10-alpha.
5763     - We used to always request authority certificates by identity digest,
5764       meaning we'd get the newest one even when we wanted one with a
5765       different signing key. Then we would complain about being given
5766       a certificate we already had, and never get the one we really
5767       wanted. Now we use the "fp-sk/" resource as well as the "fp/"
5768       resource to request the one we want. Fixes bug 5595; bugfix on
5769       0.2.0.8-alpha.
5770     - Follow the socks5 protocol when offering username/password
5771       authentication. The fix for bug 8117 exposed this bug, and it
5772       turns out real-world applications like Pidgin do care. Bugfix on
5773       0.2.3.2-alpha; fixes bug 8879.
5774     - Prevent failures on Windows Vista and later when rebuilding the
5775       microdescriptor cache. Diagnosed by Robert Ransom. Fixes bug 8822;
5776       bugfix on 0.2.4.12-alpha.
5778   o Minor bugfixes:
5779     - Fix an impossible buffer overrun in the AES unit tests. Fixes
5780       bug 8845; bugfix on 0.2.0.7-alpha. Found by eugenis.
5781     - If for some reason we fail to write a microdescriptor while
5782       rebuilding the cache, do not let the annotations from that
5783       microdescriptor linger in the cache file, and do not let the
5784       microdescriptor stay recorded as present in its old location.
5785       Fixes bug 9047; bugfix on 0.2.2.6-alpha.
5786     - Fix a memory leak that would occur whenever a configuration
5787       option changed. Fixes bug 8718; bugfix on 0.2.3.3-alpha.
5788     - Paste the description for PathBias parameters from the man
5789       page into or.h, so the code documents them too. Fixes bug 7982;
5790       bugfix on 0.2.3.17-beta and 0.2.4.8-alpha.
5791     - Relays now treat a changed IPv6 ORPort as sufficient reason to
5792       publish an updated descriptor. Fixes bug 6026; bugfix on
5793       0.2.4.1-alpha.
5794     - When launching a resolve request on behalf of an AF_UNIX control
5795       socket, omit the address field of the new entry connection, used in
5796       subsequent controller events, rather than letting tor_dup_addr()
5797       set it to "<unknown address type>". Fixes bug 8639; bugfix on
5798       0.2.4.12-alpha.
5800   o Minor bugfixes (log messages):
5801     - Fix a scaling issue in the path bias accounting code that
5802       resulted in "Bug:" log messages from either
5803       pathbias_scale_close_rates() or pathbias_count_build_success().
5804       This represents a bugfix on a previous bugfix: the original fix
5805       attempted in 0.2.4.10-alpha was incomplete. Fixes bug 8235; bugfix
5806       on 0.2.4.1-alpha.
5807     - Give a less useless error message when the user asks for an IPv4
5808       address on an IPv6-only port, or vice versa. Fixes bug 8846; bugfix
5809       on 0.2.4.7-alpha.
5811   o Minor features:
5812     - Downgrade "unexpected SENDME" warnings to protocol-warn for 0.2.4.x,
5813       to tolerate bug 8093 for now.
5814     - Add an "ignoring-advertised-bws" boolean to the flag-threshold lines
5815       in directory authority votes to describe whether they have enough
5816       measured bandwidths to ignore advertised (relay descriptor)
5817       bandwidth claims. Resolves ticket 8711.
5818     - Update to the June 5 2013 Maxmind GeoLite Country database.
5820   o Removed documentation:
5821     - Remove some of the older contents of doc/ as obsolete; move others
5822       to torspec.git. Fixes bug 8965.
5824   o Code simplification and refactoring:
5825     - Avoid using character buffers when constructing most directory
5826       objects: this approach was unwieldy and error-prone. Instead,
5827       build smartlists of strings, and concatenate them when done.
5830 Changes in version 0.2.4.12-alpha - 2013-04-18
5831   Tor 0.2.4.12-alpha moves Tor forward on several fronts: it starts the
5832   process for lengthening the guard rotation period, makes directory
5833   authority opinions in the consensus a bit less gameable, makes socks5
5834   username/password circuit isolation actually work, and fixes a wide
5835   variety of other issues.
5837   o Major features:
5838     - Raise the default time that a client keeps an entry guard from
5839       "1-2 months" to "2-3 months", as suggested by Tariq Elahi's WPES
5840       2012 paper. (We would make it even longer, but we need better client
5841       load balancing first.) Also, make the guard lifetime controllable
5842       via a new GuardLifetime torrc option and a GuardLifetime consensus
5843       parameter. Start of a fix for bug 8240; bugfix on 0.1.1.11-alpha.
5844     - Directory authorities now prefer using measured bandwidths to
5845       advertised ones when computing flags and thresholds. Resolves
5846       ticket 8273.
5847     - Directory authorities that have more than a threshold number
5848       of relays with measured bandwidths now treat relays with unmeasured
5849       bandwidths as having bandwidth 0. Resolves ticket 8435.
5851   o Major bugfixes (assert / resource use):
5852     - Avoid a bug where our response to TLS renegotiation under certain
5853       network conditions could lead to a busy-loop, with 100% CPU
5854       consumption. Fixes bug 5650; bugfix on 0.2.0.16-alpha.
5855     - Avoid an assertion when we discover that we'd like to write a cell
5856       onto a closing connection: just discard the cell. Fixes another
5857       case of bug 7350; bugfix on 0.2.4.4-alpha.
5859   o Major bugfixes (client-side privacy):
5860     - When we mark a circuit as unusable for new circuits, have it
5861       continue to be unusable for new circuits even if MaxCircuitDirtiness
5862       is increased too much at the wrong time, or the system clock jumps
5863       backwards. Fixes bug 6174; bugfix on 0.0.2pre26.
5864     - If ClientDNSRejectInternalAddresses ("do not believe DNS queries
5865       which have resolved to internal addresses") is set, apply that
5866       rule to IPv6 as well. Fixes bug 8475; bugfix on 0.2.0.7-alpha.
5867     - When an exit relay rejects a stream with reason "exit policy", but
5868       we only know an exit policy summary (e.g. from the microdesc
5869       consensus) for it, do not mark the relay as useless for all exiting.
5870       Instead, mark just the circuit as unsuitable for that particular
5871       address. Fixes part of bug 7582; bugfix on 0.2.3.2-alpha.
5872     - Allow applications to get proper stream isolation with
5873       IsolateSOCKSAuth. Many SOCKS5 clients that want to offer
5874       username/password authentication also offer "no authentication". Tor
5875       had previously preferred "no authentication", so the applications
5876       never actually sent Tor their auth details. Now Tor selects
5877       username/password authentication if it's offered. You can disable
5878       this behavior on a per-SOCKSPort basis via PreferSOCKSNoAuth. Fixes
5879       bug 8117; bugfix on 0.2.3.3-alpha.
5881   o Major bugfixes (other):
5882     - When unable to find any working directory nodes to use as a
5883       directory guard, give up rather than adding the same non-working
5884       nodes to the directory guard list over and over. Fixes bug 8231;
5885       bugfix on 0.2.4.8-alpha.
5887   o Minor features:
5888     - Reject as invalid most directory objects containing a NUL.
5889       Belt-and-suspender fix for bug 8037.
5890     - In our testsuite, create temporary directories with a bit more
5891       entropy in their name to make name collisions less likely. Fixes
5892       bug 8638.
5893     - Add CACHED keyword to ADDRMAP events in the control protocol
5894       to indicate whether a DNS result will be cached or not. Resolves
5895       ticket 8596.
5896     - Update to the April 3 2013 Maxmind GeoLite Country database.
5898   o Minor features (build):
5899     - Detect and reject attempts to build Tor with threading support
5900       when OpenSSL has been compiled without threading support.
5901       Fixes bug 6673.
5902     - Clarify that when autoconf is checking for nacl, it is checking
5903       specifically for nacl with a fast curve25519 implementation.
5904       Fixes bug 8014.
5905     - Warn if building on a platform with an unsigned time_t: there
5906       are too many places where Tor currently assumes that time_t can
5907       hold negative values. We'd like to fix them all, but probably
5908       some will remain.
5910   o Minor bugfixes (build):
5911     - Fix some bugs in tor-fw-helper-natpmp when trying to build and
5912       run it on Windows. More bugs likely remain. Patch from Gisle Vanem.
5913       Fixes bug 7280; bugfix on 0.2.3.1-alpha.
5914     - Add the old src/or/micro-revision.i filename to CLEANFILES.
5915       On the off chance that somebody has one, it will go away as soon
5916       as they run "make clean". Fix for bug 7143; bugfix on 0.2.4.1-alpha.
5917     - Build Tor correctly on 32-bit platforms where the compiler can build
5918       but not run code using the "uint128_t" construction. Fixes bug 8587;
5919       bugfix on 0.2.4.8-alpha.
5920     - Fix compilation warning with some versions of clang that would
5921       prefer the -Wswitch-enum compiler flag to warn about switch
5922       statements with missing enum values, even if those switch
5923       statements have a "default:" statement. Fixes bug 8598; bugfix
5924       on 0.2.4.10-alpha.
5926   o Minor bugfixes (protocol):
5927     - Fix the handling of a TRUNCATE cell when it arrives while the
5928       circuit extension is in progress. Fixes bug 7947; bugfix on 0.0.7.1.
5929     - Fix a misframing issue when reading the version numbers in a
5930       VERSIONS cell. Previously we would recognize [00 01 00 02] as
5931       'version 1, version 2, and version 0x100', when it should have
5932       only included versions 1 and 2. Fixes bug 8059; bugfix on
5933       0.2.0.10-alpha. Reported pseudonymously.
5934     - Make the format and order of STREAM events for DNS lookups
5935       consistent among the various ways to launch DNS lookups. Fixes
5936       bug 8203; bugfix on 0.2.0.24-rc. Patch by "Desoxy."
5937     - Correct our check for which versions of Tor support the EXTEND2
5938       cell. We had been willing to send it to Tor 0.2.4.7-alpha and
5939       later, when support was really added in version 0.2.4.8-alpha.
5940       Fixes bug 8464; bugfix on 0.2.4.8-alpha.
5942   o Minor bugfixes (other):
5943     - Correctly store microdescriptors and extrainfo descriptors with
5944       an internal NUL byte. Fixes bug 8037; bugfix on 0.2.0.1-alpha.
5945       Bug reported by "cypherpunks".
5946     - Increase the width of the field used to remember a connection's
5947       link protocol version to two bytes. Harmless for now, since the
5948       only currently recognized versions are one byte long. Reported
5949       pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha.
5950     - If the state file's path bias counts are invalid (presumably from a
5951       buggy Tor prior to 0.2.4.10-alpha), make them correct. Also add
5952       additional checks and log messages to the scaling of Path Bias
5953       counts, in case there still are remaining issues with scaling.
5954       Should help resolve bug 8235.
5955     - Eliminate several instances where we use "Nickname=ID" to refer to
5956       nodes in logs. Use "Nickname (ID)" instead. (Elsewhere, we still use
5957       "$ID=Nickname", which is also acceptable.) Fixes bug 7065. Bugfix
5958       on 0.2.3.21-rc, 0.2.4.5-alpha, 0.2.4.8-alpha, and 0.2.4.10-alpha.
5960   o Minor bugfixes (syscalls):
5961     - Always check the return values of functions fcntl() and
5962       setsockopt(). We don't believe these are ever actually failing in
5963       practice, but better safe than sorry. Also, checking these return
5964       values should please analysis tools like Coverity. Patch from
5965       'flupzor'. Fixes bug 8206; bugfix on all versions of Tor.
5966     - Use direct writes rather than stdio when building microdescriptor
5967       caches, in an attempt to mitigate bug 8031, or at least make it
5968       less common.
5970   o Minor bugfixes (config):
5971     - When rejecting a configuration because we were unable to parse a
5972       quoted string, log an actual error message. Fixes bug 7950; bugfix
5973       on 0.2.0.16-alpha.
5974     - Behave correctly when the user disables LearnCircuitBuildTimeout
5975       but doesn't tell us what they would like the timeout to be. Fixes
5976       bug 6304; bugfix on 0.2.2.14-alpha.
5977     - When autodetecting the number of CPUs, use the number of available
5978       CPUs in preference to the number of configured CPUs. Inform the
5979       user if this reduces the number of available CPUs. Fixes bug 8002;
5980       bugfix on 0.2.3.1-alpha.
5981     - Make it an error when you set EntryNodes but disable UseGuardNodes,
5982       since it will (surprisingly to some users) ignore EntryNodes. Fixes
5983       bug 8180; bugfix on 0.2.3.11-alpha.
5984     - Allow TestingTorNetworks to override the 4096-byte minimum for
5985       the Fast threshold. Otherwise they can't bootstrap until they've
5986       observed more traffic. Fixes bug 8508; bugfix on 0.2.4.10-alpha.
5987     - Fix some logic errors when the user manually overrides the
5988       PathsNeededToBuildCircuits option in torrc. Fixes bug 8599; bugfix
5989       on 0.2.4.10-alpha.
5991   o Minor bugfixes (log messages to help diagnose bugs):
5992     - If we fail to free a microdescriptor because of bug 7164, log
5993       the filename and line number from which we tried to free it.
5994     - Add another diagnostic to the heartbeat message: track and log
5995       overhead that TLS is adding to the data we write. If this is
5996       high, we are sending too little data to SSL_write at a time.
5997       Diagnostic for bug 7707.
5998     - Add more detail to a log message about relaxed timeouts, to help
5999       track bug 7799.
6000     - Warn more aggressively when flushing microdescriptors to a
6001       microdescriptor cache fails, in an attempt to mitigate bug 8031,
6002       or at least make it more diagnosable.
6003     - Improve debugging output to help track down bug 8185 ("Bug:
6004       outgoing relay cell has n_chan==NULL. Dropping.")
6005     - Log the purpose of a path-bias testing circuit correctly.
6006       Improves a log message from bug 8477; bugfix on 0.2.4.8-alpha.
6008   o Minor bugfixes (0.2.4.x log messages that were too noisy):
6009     - Don't attempt to relax the timeout of already opened 1-hop circuits.
6010       They might never timeout. This should eliminate some/all cases of
6011       the relaxed timeout log message.
6012     - Use circuit creation time for network liveness evaluation. This
6013       should eliminate warning log messages about liveness caused
6014       by changes in timeout evaluation. Fixes bug 6572; bugfix on
6015       0.2.4.8-alpha.
6016     - Reduce a path bias length check from notice to info. The message
6017       is triggered when creating controller circuits. Fixes bug 8196;
6018       bugfix on 0.2.4.8-alpha.
6019     - Fix a path state issue that triggered a notice during relay startup.
6020       Fixes bug 8320; bugfix on 0.2.4.10-alpha.
6021     - Reduce occurrences of warns about circuit purpose in
6022       connection_ap_expire_building(). Fixes bug 8477; bugfix on
6023       0.2.4.11-alpha.
6025   o Minor bugfixes (pre-0.2.4.x log messages that were too noisy):
6026     - If we encounter a write failure on a SOCKS connection before we
6027       finish our SOCKS handshake, don't warn that we closed the
6028       connection before we could send a SOCKS reply. Fixes bug 8427;
6029       bugfix on 0.1.0.1-rc.
6030     - Correctly recognize that [::1] is a loopback address. Fixes
6031       bug 8377; bugfix on 0.2.1.3-alpha.
6032     - Fix a directory authority warn caused when we have a large amount
6033       of badexit bandwidth. Fixes bug 8419; bugfix on 0.2.2.10-alpha.
6034     - Don't log inappropriate heartbeat messages when hibernating: a
6035       hibernating node is _expected_ to drop out of the consensus,
6036       decide it isn't bootstrapped, and so forth. Fixes bug 7302;
6037       bugfix on 0.2.3.1-alpha.
6038     - Don't complain about bootstrapping problems while hibernating.
6039       These complaints reflect a general code problem, but not one
6040       with any problematic effects (no connections are actually
6041       opened). Fixes part of bug 7302; bugfix on 0.2.3.2-alpha.
6043   o Documentation fixes:
6044     - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option
6045       names match. Fixes bug 7768.
6046     - Make the torify manpage no longer refer to tsocks; torify hasn't
6047       supported tsocks since 0.2.3.14-alpha.
6048     - Make the tor manpage no longer reference tsocks.
6049     - Fix the GeoIPExcludeUnknown documentation to refer to
6050       ExcludeExitNodes rather than the currently nonexistent
6051       ExcludeEntryNodes. Spotted by "hamahangi" on tor-talk.
6053   o Removed files:
6054     - The tor-tsocks.conf is no longer distributed or installed. We
6055       recommend that tsocks users use torsocks instead. Resolves
6056       ticket 8290.
6059 Changes in version 0.2.4.11-alpha - 2013-03-11
6060   Tor 0.2.4.11-alpha makes relay measurement by directory authorities
6061   more robust, makes hidden service authentication work again, and
6062   resolves a DPI fingerprint for Tor's SSL transport.
6064   o Major features (directory authorities):
6065     - Directory authorities now support a new consensus method (17)
6066       where they cap the published bandwidth of servers for which
6067       insufficient bandwidth measurements exist. Fixes part of bug 2286.
6068     - Directory authorities that set "DisableV2DirectoryInfo_ 1" no longer
6069       serve any v2 directory information. Now we can test disabling the
6070       old deprecated v2 directory format, and see whether doing so has
6071       any effect on network load. Begins to fix bug 6783.
6072     - Directory authorities now include inside each vote a statement of
6073       the performance thresholds they used when assigning flags.
6074       Implements ticket 8151.
6076   o Major bugfixes (directory authorities):
6077     - Stop marking every relay as having been down for one hour every
6078       time we restart a directory authority. These artificial downtimes
6079       were messing with our Stable and Guard flag calculations. Fixes
6080       bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha.
6082   o Major bugfixes (hidden services):
6083     - Allow hidden service authentication to succeed again. When we
6084       refactored the hidden service introduction code back
6085       in 0.2.4.1-alpha, we didn't update the code that checks
6086       whether authentication information is present, causing all
6087       authentication checks to return "false". Fix for bug 8207; bugfix
6088       on 0.2.4.1-alpha. Found by Coverity; this is CID 718615.
6090   o Minor features (relays, bridges):
6091     - Make bridge relays check once a minute for whether their IP
6092       address has changed, rather than only every 15 minutes. Resolves
6093       bugs 1913 and 1992.
6094     - Refactor resolve_my_address() so it returns the method by which we
6095       decided our public IP address (explicitly configured, resolved from
6096       explicit hostname, guessed from interfaces, learned by gethostname).
6097       Now we can provide more helpful log messages when a relay guesses
6098       its IP address incorrectly (e.g. due to unexpected lines in
6099       /etc/hosts). Resolves ticket 2267.
6100     - Teach bridge-using clients to avoid 0.2.2 bridges when making
6101       microdescriptor-related dir requests, and only fall back to normal
6102       descriptors if none of their bridges can handle microdescriptors
6103       (as opposed to the fix in ticket 4013, which caused them to fall
6104       back to normal descriptors if *any* of their bridges preferred
6105       them). Resolves ticket 4994.
6106     - Randomize the lifetime of our SSL link certificate, so censors can't
6107       use the static value for filtering Tor flows. Resolves ticket 8443;
6108       related to ticket 4014 which was included in 0.2.2.33.
6109     - Support a new version of the link protocol that allows 4-byte circuit
6110       IDs. Previously, circuit IDs were limited to 2 bytes, which presented
6111       a possible resource exhaustion issue. Closes ticket 7351; implements
6112       proposal 214.
6114   o Minor features (portability):
6115     - Tweak the curve25519-donna*.c implementations to tolerate systems
6116       that lack stdint.h. Fixes bug 3894; bugfix on 0.2.4.8-alpha.
6117     - Use Ville Laurikari's implementation of AX_CHECK_SIGN() to determine
6118       the signs of types during autoconf. This is better than our old
6119       approach, which didn't work when cross-compiling.
6120     - Detect the sign of enum values, rather than assuming that MSC is the
6121       only compiler where enum types are all signed. Fixes bug 7727;
6122       bugfix on 0.2.4.10-alpha.
6124   o Minor features (other):
6125     - Say "KBytes" rather than "KB" in the man page (for various values
6126       of K), to further reduce confusion about whether Tor counts in
6127       units of memory or fractions of units of memory. Resolves ticket 7054.
6128     - Clear the high bit on curve25519 public keys before passing them to
6129       our backend, in case we ever wind up using a backend that doesn't do
6130       so itself. If we used such a backend, and *didn't* clear the high bit,
6131       we could wind up in a situation where users with such backends would
6132       be distinguishable from users without. Fixes bug 8121; bugfix on
6133       0.2.4.8-alpha.
6134     - Update to the March 6 2013 Maxmind GeoLite Country database.
6136   o Minor bugfixes (clients):
6137     - When we receive a RELAY_END cell with the reason DONE, or with no
6138       reason, before receiving a RELAY_CONNECTED cell, report the SOCKS
6139       status as "connection refused". Previously we reported these cases
6140       as success but then immediately closed the connection. Fixes bug
6141       7902; bugfix on 0.1.0.1-rc. Reported by "oftc_must_be_destroyed".
6142     - Downgrade an assertion in connection_ap_expire_beginning to an
6143       LD_BUG message. The fix for bug 8024 should prevent this message
6144       from displaying, but just in case, a warn that we can diagnose
6145       is better than more assert crashes. Fixes bug 8065; bugfix on
6146       0.2.4.8-alpha.
6147     - Lower path use bias thresholds to .80 for notice and .60 for warn.
6148       Also make the rate limiting flags for the path use bias log messages
6149       independent from the original path bias flags. Fixes bug 8161;
6150       bugfix on 0.2.4.10-alpha.
6152   o Minor bugfixes (relays):
6153     - Stop trying to resolve our hostname so often (e.g. every time we
6154       think about doing a directory fetch). Now we reuse the cached
6155       answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc)
6156       and 2410 (bugfix on 0.1.2.2-alpha).
6157     - Stop sending a stray "(null)" in some cases for the server status
6158       "EXTERNAL_ADDRESS" controller event. Resolves bug 8200; bugfix
6159       on 0.1.2.6-alpha.
6160     - When choosing which stream on a formerly stalled circuit to wake
6161       first, make better use of the platform's weak RNG. Previously,
6162       we had been using the % ("modulo") operator to try to generate a
6163       1/N chance of picking each stream, but this behaves badly with
6164       many platforms' choice of weak RNG. Fixes bug 7801; bugfix on
6165       0.2.2.20-alpha.
6166     - Use our own weak RNG when we need a weak RNG. Windows's rand() and
6167       Irix's random() only return 15 bits; Solaris's random() returns more
6168       bits but its RAND_MAX says it only returns 15, and so on. Motivated
6169       by the fix for bug 7801; bugfix on 0.2.2.20-alpha.
6171   o Minor bugfixes (directory authorities):
6172     - Directory authorities now use less space when formatting identical
6173       microdescriptor lines in directory votes. Fixes bug 8158; bugfix
6174       on 0.2.4.1-alpha.
6176   o Minor bugfixes (memory leaks spotted by Coverity -- bug 7816):
6177     - Avoid leaking memory if we fail to compute a consensus signature
6178       or we generate a consensus we can't parse. Bugfix on 0.2.0.5-alpha.
6179     - Fix a memory leak when receiving headers from an HTTPS proxy. Bugfix
6180       on 0.2.1.1-alpha.
6181     - Fix a memory leak during safe-cookie controller authentication.
6182       Bugfix on 0.2.3.13-alpha.
6183     - Avoid memory leak of IPv6 policy content if we fail to format it into
6184       a router descriptor. Bugfix on 0.2.4.7-alpha.
6186   o Minor bugfixes (other code correctness issues):
6187     - Avoid a crash if we fail to generate an extrainfo descriptor.
6188       Fixes bug 8208; bugfix on 0.2.3.16-alpha. Found by Coverity;
6189       this is CID 718634.
6190     - When detecting the largest possible file descriptor (in order to
6191       close all file descriptors when launching a new program), actually
6192       use _SC_OPEN_MAX. The old code for doing this was very, very broken.
6193       Fixes bug 8209; bugfix on 0.2.3.1-alpha. Found by Coverity; this
6194       is CID 743383.
6195     - Fix a copy-and-paste error when adding a missing A1 to a routerset
6196       because of GeoIPExcludeUnknown. Fix for Coverity CID 980650.
6197       Bugfix on 0.2.4.10-alpha.
6198     - Fix an impossible-to-trigger integer overflow when estimating how
6199       long our onionskin queue would take. (This overflow would require us
6200       to accept 4 million onionskins before processing 100 of them.) Fixes
6201       bug 8210; bugfix on 0.2.4.10-alpha.
6203   o Code simplification and refactoring:
6204     - Add a wrapper function for the common "log a message with a
6205       rate-limit" case.
6208 Changes in version 0.2.4.10-alpha - 2013-02-04
6209   Tor 0.2.4.10-alpha adds defenses at the directory authority level from
6210   certain attacks that flood the network with relays; changes the queue
6211   for circuit create requests from a sized-based limit to a time-based
6212   limit; resumes building with MSVC on Windows; and fixes a wide variety
6213   of other issues.
6215   o Major bugfixes (directory authority):
6216     - When computing directory thresholds, ignore any rejected-as-sybil
6217       nodes during the computation so that they can't influence Fast,
6218       Guard, etc. (We should have done this for proposal 109.) Fixes
6219       bug 8146.
6220     - When marking a node as a likely sybil, reset its uptime metrics
6221       to zero, so that it cannot time towards getting marked as Guard,
6222       Stable, or HSDir. (We should have done this for proposal 109.) Fixes
6223       bug 8147.
6225   o Major bugfixes:
6226     - When a TLS write is partially successful but incomplete, remember
6227       that the flushed part has been flushed, and notice that bytes were
6228       actually written. Reported and fixed pseudonymously. Fixes bug
6229       7708; bugfix on Tor 0.1.0.5-rc.
6230     - Reject bogus create and relay cells with 0 circuit ID or 0 stream
6231       ID: these could be used to create unexpected streams and circuits
6232       which would count as "present" to some parts of Tor but "absent"
6233       to others, leading to zombie circuits and streams or to a bandwidth
6234       denial-of-service. Fixes bug 7889; bugfix on every released version
6235       of Tor. Reported by "oftc_must_be_destroyed".
6236     - Rename all macros in our local copy of queue.h to begin with "TOR_".
6237       This change seems the only good way to permanently prevent conflicts
6238       with queue.h on various operating systems. Fixes bug 8107; bugfix
6239       on 0.2.4.6-alpha.
6241   o Major features (relay):
6242     - Instead of limiting the number of queued onionskins (aka circuit
6243       create requests) to a fixed, hard-to-configure number, we limit
6244       the size of the queue based on how many we expect to be able to
6245       process in a given amount of time. We estimate the time it will
6246       take to process an onionskin based on average processing time
6247       of previous onionskins. Closes ticket 7291. You'll never have to
6248       configure MaxOnionsPending again.
6250   o Major features (portability):
6251     - Resume building correctly with MSVC and Makefile.nmake. This patch
6252       resolves numerous bugs and fixes reported by ultramage, including
6253       7305, 7308, 7309, 7310, 7312, 7313, 7315, 7316, and 7669.
6254     - Make the ntor and curve25519 code build correctly with MSVC.
6255       Fix on 0.2.4.8-alpha.
6257   o Minor features:
6258     - When directory authorities are computing thresholds for flags,
6259       never let the threshold for the Fast flag fall below 4096
6260       bytes. Also, do not consider nodes with extremely low bandwidths
6261       when deciding thresholds for various directory flags. This change
6262       should raise our threshold for Fast relays, possibly in turn
6263       improving overall network performance; see ticket 1854. Resolves
6264       ticket 8145.
6265     - The Tor client now ignores sub-domain components of a .onion
6266       address. This change makes HTTP "virtual" hosting
6267       possible: http://foo.aaaaaaaaaaaaaaaa.onion/ and
6268       http://bar.aaaaaaaaaaaaaaaa.onion/ can be two different websites
6269       hosted on the same hidden service. Implements proposal 204.
6270     - We compute the overhead from passing onionskins back and forth to
6271       cpuworkers, and report it when dumping statistics in response to
6272       SIGUSR1. Supports ticket 7291.
6274   o Minor features (path selection):
6275     - When deciding whether we have enough descriptors to build circuits,
6276       instead of looking at raw relay counts, look at which fraction
6277       of (bandwidth-weighted) paths we're able to build. This approach
6278       keeps clients from building circuits if their paths are likely to
6279       stand out statistically. The default fraction of paths needed is
6280       taken from the consensus directory; you can override it with the
6281       new PathsNeededToBuildCircuits option. Fixes ticket 5956.
6282     - When any country code is listed in ExcludeNodes or ExcludeExitNodes,
6283       and we have GeoIP information, also exclude all nodes with unknown
6284       countries "??" and "A1". This behavior is controlled by the
6285       new GeoIPExcludeUnknown option: you can make such nodes always
6286       excluded with "GeoIPExcludeUnknown 1", and disable the feature
6287       with "GeoIPExcludeUnknown 0". Setting "GeoIPExcludeUnknown auto"
6288       gets you the default behavior. Implements feature 7706.
6289     - Path Use Bias: Perform separate accounting for successful circuit
6290       use. Keep separate statistics on stream attempt rates versus stream
6291       success rates for each guard. Provide configurable thresholds to
6292       determine when to emit log messages or disable use of guards that
6293       fail too many stream attempts. Resolves ticket 7802.
6295   o Minor features (log messages):
6296     - When learning a fingerprint for a bridge, log its corresponding
6297       transport type. Implements ticket 7896.
6298     - Improve the log message when "Bug/attack: unexpected sendme cell
6299       from client" occurs, to help us track bug 8093.
6301   o Minor bugfixes:
6302     - Remove a couple of extraneous semicolons that were upsetting the
6303       cparser library. Patch by Christian Grothoff. Fixes bug 7115;
6304       bugfix on 0.2.2.1-alpha.
6305     - Remove a source of rounding error during path bias count scaling;
6306       don't count cannibalized circuits as used for path bias until we
6307       actually try to use them; and fix a circuit_package_relay_cell()
6308       warning message about n_chan==NULL. Fixes bug 7802.
6309     - Detect nacl when its headers are in a nacl/ subdirectory. Also,
6310       actually link against nacl when we're configured to use it. Fixes
6311       bug 7972; bugfix on 0.2.4.8-alpha.
6312     - Compile correctly with the --disable-curve25519 option. Fixes
6313       bug 8153; bugfix on 0.2.4.8-alpha.
6315   o Build improvements:
6316     - Do not report status verbosely from autogen.sh unless the -v flag
6317       is specified. Fixes issue 4664. Patch from Onizuka.
6318     - Replace all calls to snprintf() outside of src/ext with
6319       tor_snprintf(). Also remove the #define to replace snprintf with
6320       _snprintf on Windows; they have different semantics, and all of
6321       our callers should be using tor_snprintf() anyway. Fixes bug 7304.
6322     - Try to detect if we are ever building on a platform where
6323       memset(...,0,...) does not set the value of a double to 0.0. Such
6324       platforms are permitted by the C standard, though in practice
6325       they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't
6326       currently support them, but it's better to detect them and fail
6327       than to perform erroneously.
6329   o Removed features:
6330     - Stop exporting estimates of v2 and v3 directory traffic shares
6331       in extrainfo documents. They were unneeded and sometimes inaccurate.
6332       Also stop exporting any v2 directory request statistics. Resolves
6333       ticket 5823.
6334     - Drop support for detecting and warning about versions of Libevent
6335       before 1.3e. Nothing reasonable ships with them any longer;
6336       warning the user about them shouldn't be needed. Resolves ticket
6337       6826.
6339   o Code simplifications and refactoring:
6340     - Rename "isin" functions to "contains", for grammar. Resolves
6341       ticket 5285.
6342     - Rename Tor's logging function log() to tor_log(), to avoid conflicts
6343       with the natural logarithm function from the system libm. Resolves
6344       ticket 7599.
6347 Changes in version 0.2.4.9-alpha - 2013-01-15
6348   Tor 0.2.4.9-alpha provides a quick fix to make the new ntor handshake
6349   work more robustly.
6351   o Major bugfixes:
6352     - Fix backward compatibility logic when receiving an embedded ntor
6353       handshake tunneled in a CREATE cell. This clears up the "Bug:
6354       couldn't format CREATED cell" warning. Fixes bug 7959; bugfix
6355       on 0.2.4.8-alpha.
6358 Changes in version 0.2.4.8-alpha - 2013-01-14
6359   Tor 0.2.4.8-alpha introduces directory guards to reduce user enumeration
6360   risks, adds a new stronger and faster circuit handshake, and offers
6361   stronger and faster link encryption when both sides support it.
6363   o Major features:
6364     - Preliminary support for directory guards (proposal 207): when
6365       possible, clients now use their entry guards for non-anonymous
6366       directory requests. This can help prevent client enumeration. Note
6367       that this behavior only works when we have a usable consensus
6368       directory, and when options about what to download are more or less
6369       standard. In the future we should re-bootstrap from our guards,
6370       rather than re-bootstrapping from the preconfigured list of
6371       directory sources that ships with Tor. Resolves ticket 6526.
6372     - Tor relays and clients now support a better CREATE/EXTEND cell
6373       format, allowing the sender to specify multiple address, identity,
6374       and handshake types. Implements Robert Ransom's proposal 200;
6375       closes ticket 7199.
6377   o Major features (new circuit handshake):
6378     - Tor now supports a new circuit extension handshake designed by Ian
6379       Goldberg, Douglas Stebila, and Berkant Ustaoglu. Our original
6380       circuit extension handshake, later called "TAP", was a bit slow
6381       (especially on the relay side), had a fragile security proof, and
6382       used weaker keys than we'd now prefer. The new circuit handshake
6383       uses Dan Bernstein's "curve25519" elliptic-curve Diffie-Hellman
6384       function, making it significantly more secure than the older
6385       handshake, and significantly faster. Tor can use one of two built-in
6386       pure-C curve25519-donna implementations by Adam Langley, or it
6387       can link against the "nacl" library for a tuned version if present.
6389       The built-in version is very fast for 64-bit systems when building
6390       with GCC. The built-in 32-bit version is still faster than the
6391       old TAP protocol, but using libnacl is better on most such hosts.
6393       Clients don't currently use this protocol by default, since
6394       comparatively few clients support it so far. To try it, set
6395       UseNTorHandshake to 1.
6397       Implements proposal 216; closes ticket 7202.
6399   o Major features (better link encryption):
6400     - Relays can now enable the ECDHE TLS ciphersuites when available
6401       and appropriate. These ciphersuites let us negotiate forward-secure
6402       TLS secret keys more safely and more efficiently than with our
6403       previous use of Diffie-Hellman modulo a 1024-bit prime. By default,
6404       public relays prefer the (faster) P224 group, and bridges prefer
6405       the (more common) P256 group; you can override this with the
6406       TLSECGroup option.
6408       Enabling these ciphers was a little tricky, since for a long time,
6409       clients had been claiming to support them without actually doing
6410       so, in order to foil fingerprinting. But with the client-side
6411       implementation of proposal 198 in 0.2.3.17-beta, clients can now
6412       match the ciphers from recent Firefox versions *and* list the
6413       ciphers they actually mean, so relays can believe such clients
6414       when they advertise ECDHE support in their TLS ClientHello messages.
6416       This feature requires clients running 0.2.3.17-beta or later,
6417       and requires both sides to be running OpenSSL 1.0.0 or later
6418       with ECC support. OpenSSL 1.0.1, with the compile-time option
6419       "enable-ec_nistp_64_gcc_128", is highly recommended.
6421       Implements the relay side of proposal 198; closes ticket 7200.
6423   o Major bugfixes:
6424     - Avoid crashing when, as a relay without IPv6-exit support, a
6425       client insists on getting an IPv6 address or nothing. Fixes bug
6426       7814; bugfix on 0.2.4.7-alpha.
6428   o Minor features:
6429     - Improve circuit build timeout handling for hidden services.
6430       In particular: adjust build timeouts more accurately depending
6431       upon the number of hop-RTTs that a particular circuit type
6432       undergoes. Additionally, launch intro circuits in parallel
6433       if they timeout, and take the first one to reply as valid.
6434     - Work correctly on Unix systems where EAGAIN and EWOULDBLOCK are
6435       separate error codes; or at least, don't break for that reason.
6436       Fixes bug 7935. Reported by "oftc_must_be_destroyed".
6437     - Update to the January 2 2013 Maxmind GeoLite Country database.
6439   o Minor features (testing):
6440     - Add benchmarks for DH (1024-bit multiplicative group) and ECDH
6441       (P-256) Diffie-Hellman handshakes to src/or/bench.
6442     - Add benchmark functions to test onion handshake performance.
6444   o Minor features (path bias detection):
6445     - Alter the Path Bias log messages to be more descriptive in terms
6446       of reporting timeouts and other statistics.
6447     - Create three levels of Path Bias log messages, as opposed to just
6448       two. These are configurable via consensus as well as via the torrc
6449       options PathBiasNoticeRate, PathBiasWarnRate, PathBiasExtremeRate.
6450       The default values are 0.70, 0.50, and 0.30 respectively.
6451     - Separate the log message levels from the decision to drop guards,
6452       which also is available via torrc option PathBiasDropGuards.
6453       PathBiasDropGuards still defaults to 0 (off).
6454     - Deprecate PathBiasDisableRate in favor of PathBiasDropGuards
6455       in combination with PathBiasExtremeRate.
6456     - Increase the default values for PathBiasScaleThreshold and
6457       PathBiasCircThreshold from (200, 20) to (300, 150).
6458     - Add in circuit usage accounting to path bias. If we try to use a
6459       built circuit but fail for any reason, it counts as path bias.
6460       Certain classes of circuits where the adversary gets to pick your
6461       destination node are exempt from this accounting. Usage accounting
6462       can be specifically disabled via consensus parameter or torrc.
6463     - Convert all internal path bias state to double-precision floating
6464       point, to avoid roundoff error and other issues.
6465     - Only record path bias information for circuits that have completed
6466       *two* hops. Assuming end-to-end tagging is the attack vector, this
6467       makes us more resilient to ambient circuit failure without any
6468       detection capability loss.
6470   o Minor bugfixes (log messages):
6471     - Rate-limit the "No circuits are opened. Relaxed timeout for a
6472       circuit with channel state open..." message to once per hour to
6473       keep it from filling the notice logs. Mitigates bug 7799 but does
6474       not fix the underlying cause. Bugfix on 0.2.4.7-alpha.
6475     - Avoid spurious warnings when configuring multiple client ports of
6476       which only some are nonlocal. Previously, we had claimed that some
6477       were nonlocal when in fact they weren't. Fixes bug 7836; bugfix on
6478       0.2.3.3-alpha.
6480   o Code simplifications and refactoring:
6481     - Get rid of a couple of harmless clang warnings, where we compared
6482       enums to ints. These warnings are newly introduced in clang 3.2.
6483     - Split the onion.c file into separate modules for the onion queue
6484       and the different handshakes it supports.
6485     - Remove the marshalling/unmarshalling code for sending requests to
6486       cpuworkers over a socket, and instead just send structs. The
6487       recipient will always be the same Tor binary as the sender, so
6488       any encoding is overkill.
6491 Changes in version 0.2.4.7-alpha - 2012-12-24
6492   Tor 0.2.4.7-alpha introduces a new approach to providing fallback
6493   directory mirrors for more robust bootstrapping; fixes more issues where
6494   clients with changing network conditions refuse to make any circuits;
6495   adds initial support for exiting to IPv6 addresses; resumes being able
6496   to update our GeoIP database, and includes the geoip6 file this time;
6497   turns off the client-side DNS cache by default due to privacy risks;
6498   and fixes a variety of other issues.
6500   o Major features (client resilience):
6501     - Add a new "FallbackDir" torrc option to use when we can't use
6502       a directory mirror from the consensus (either because we lack a
6503       consensus, or because they're all down). Currently, all authorities
6504       are fallbacks by default, and there are no other default fallbacks,
6505       but that will change. This option will allow us to give clients a
6506       longer list of servers to try to get a consensus from when first
6507       connecting to the Tor network, and thereby reduce load on the
6508       directory authorities. Implements proposal 206, "Preconfigured
6509       directory sources for bootstrapping". We also removed the old
6510       "FallbackNetworkstatus" option, since we never got it working well
6511       enough to use it. Closes bug 572.
6512     - If we have no circuits open, use a relaxed timeout (the
6513       95-percentile cutoff) until a circuit succeeds. This heuristic
6514       should allow Tor to succeed at building circuits even when the
6515       network connection drastically changes. Should help with bug 3443.
6517   o Major features (IPv6):
6518     - Relays can now exit to IPv6 addresses: make sure that you have IPv6
6519       connectivity, then set the IPv6Exit flag to 1. Also make sure your
6520       exit policy reads as you would like: the address * applies to all
6521       address families, whereas *4 is IPv4 address only, and *6 is IPv6
6522       addresses only. On the client side, you'll need to wait until the
6523       authorities have upgraded, wait for enough exits to support IPv6,
6524       apply the "IPv6Traffic" flag to a SocksPort, and use Socks5. Closes
6525       ticket 5547, implements proposal 117 as revised in proposal 208.
6527       We DO NOT recommend that clients with actual anonymity needs start
6528       using IPv6 over Tor yet, since not enough exits support it yet.
6530   o Major features (geoip database):
6531     - Maxmind began labelling Tor relays as being in country "A1",
6532       which breaks by-country node selection inside Tor. Now we use a
6533       script to replace "A1" ("Anonymous Proxy") entries in our geoip
6534       file with real country codes. This script fixes about 90% of "A1"
6535       entries automatically and uses manual country code assignments to
6536       fix the remaining 10%. See src/config/README.geoip for details.
6537       Fixes bug 6266. Also update to the December 5 2012 Maxmind GeoLite
6538       Country database, as modified above.
6540   o Major bugfixes (client-side DNS):
6541     - Turn off the client-side DNS cache by default. Updating and using
6542       the DNS cache is now configurable on a per-client-port
6543       level. SOCKSPort, DNSPort, etc lines may now contain
6544       {No,}Cache{IPv4,IPv6,}DNS lines to indicate that we shouldn't
6545       cache these types of DNS answers when we receive them from an
6546       exit node in response to an application request on this port, and
6547       {No,}UseCached{IPv4,IPv6,DNS} lines to indicate that if we have
6548       cached DNS answers of these types, we shouldn't use them. It's
6549       potentially risky to use cached DNS answers at the client, since
6550       doing so can indicate to one exit what answers we've gotten
6551       for DNS lookups in the past. With IPv6, this becomes especially
6552       problematic. Using cached DNS answers for requests on the same
6553       circuit would present less linkability risk, since all traffic
6554       on a circuit is already linkable, but it would also provide
6555       little performance benefit: the exit node caches DNS replies
6556       too. Implements a simplified version of Proposal 205. Implements
6557       ticket 7570.
6559   o Major bugfixes (other):
6560     - Alter circuit build timeout measurement to start at the point
6561       where we begin the CREATE/CREATE_FAST step (as opposed to circuit
6562       initialization). This should make our timeout measurements more
6563       uniform. Previously, we were sometimes including ORconn setup time
6564       in our circuit build time measurements. Should resolve bug 3443.
6565     - Fix an assertion that could trigger in hibernate_go_dormant() when
6566       closing an or_connection_t: call channel_mark_for_close() rather
6567       than connection_mark_for_close(). Fixes bug 7267. Bugfix on
6568       0.2.4.4-alpha.
6569     - Include the geoip6 IPv6 GeoIP database in the tarball. Fixes bug
6570       7655; bugfix on 0.2.4.6-alpha.
6572   o Minor features:
6573     - Add a new torrc option "ServerTransportListenAddr" to let bridge
6574       operators select the address where their pluggable transports will
6575       listen for connections. Resolves ticket 7013.
6576     - Allow an optional $ before the node identity digest in the
6577       controller command GETINFO ns/id/<identity>, for consistency with
6578       md/id/<identity> and desc/id/<identity>. Resolves ticket 7059.
6579     - Log packaged cell fullness as part of the heartbeat message.
6580       Diagnosis to try to determine the extent of bug 7743.
6582   o Minor features (IPv6):
6583     - AutomapHostsOnResolve now supports IPv6 addresses. By default, we
6584       prefer to hand out virtual IPv6 addresses, since there are more of
6585       them and we can't run out. To override this behavior and make IPv4
6586       addresses preferred, set NoPreferIPv6Automap on whatever SOCKSPort
6587       or DNSPort you're using for resolving. Implements ticket 7571.
6588     - AutomapHostsOnResolve responses are now randomized, to avoid
6589       annoying situations where Tor is restarted and applications
6590       connect to the wrong addresses.
6591     - Never try more than 1000 times to pick a new virtual address when
6592       AutomapHostsOnResolve is set. That's good enough so long as we
6593       aren't close to handing out our entire virtual address space;
6594       if you're getting there, it's best to switch to IPv6 virtual
6595       addresses anyway.
6597   o Minor bugfixes:
6598     - The ADDRMAP command can no longer generate an ill-formed error
6599       code on a failed MAPADDRESS. It now says "internal" rather than
6600       an English sentence fragment with spaces in the middle. Bugfix on
6601       Tor 0.2.0.19-alpha.
6602     - Fix log messages and comments to avoid saying "GMT" when we mean
6603       "UTC". Fixes bug 6113.
6604     - Compile on win64 using mingw64. Fixes bug 7260; patches from
6605       "yayooo".
6606     - Fix a crash when debugging unit tests on Windows: deallocate a
6607       shared library with FreeLibrary, not CloseHandle. Fixes bug 7306;
6608       bugfix on 0.2.2.17-alpha. Reported by "ultramage".
6610   o Renamed options:
6611     - The DirServer option is now DirAuthority, for consistency with
6612       current naming patterns. You can still use the old DirServer form.
6614   o Code simplification and refactoring:
6615     - Move the client-side address-map/virtual-address/DNS-cache code
6616       out of connection_edge.c into a new addressmap.c module.
6617     - Remove unused code for parsing v1 directories and "running routers"
6618       documents. Fixes bug 6887.
6621 Changes in version 0.2.3.25 - 2012-11-19
6622   The Tor 0.2.3 release series is dedicated to the memory of Len "rabbi"
6623   Sassaman (1980-2011), a long-time cypherpunk, anonymity researcher,
6624   Mixmaster maintainer, Pynchon Gate co-designer, CodeCon organizer,
6625   programmer, and friend. Unstinting in his dedication to the cause of
6626   freedom, he inspired and helped many of us as we began our work on
6627   anonymity, and inspires us still. Please honor his memory by writing
6628   software to protect people's freedoms, and by helping others to do so.
6630   Tor 0.2.3.25, the first stable release in the 0.2.3 branch, features
6631   significantly reduced directory overhead (via microdescriptors),
6632   enormous crypto performance improvements for fast relays on new
6633   enough hardware, a new v3 TLS handshake protocol that can better
6634   resist fingerprinting, support for protocol obfuscation plugins (aka
6635   pluggable transports), better scalability for hidden services, IPv6
6636   support for bridges, performance improvements like allowing clients
6637   to skip the first round-trip on the circuit ("optimistic data") and
6638   refilling token buckets more often, a new "stream isolation" design
6639   to isolate different applications on different circuits, and many
6640   stability, security, and privacy fixes.
6642   o Major bugfixes:
6643     - Tor tries to wipe potentially sensitive data after using it, so
6644       that if some subsequent security failure exposes Tor's memory,
6645       the damage will be limited. But we had a bug where the compiler
6646       was eliminating these wipe operations when it decided that the
6647       memory was no longer visible to a (correctly running) program,
6648       hence defeating our attempt at defense in depth. We fix that
6649       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
6650       is unlikely to optimize away. Future versions of Tor may use
6651       a less ridiculously heavy approach for this. Fixes bug 7352.
6652       Reported in an article by Andrey Karpov.
6654   o Minor bugfixes:
6655     - Fix a harmless bug when opting against publishing a relay descriptor
6656       because DisableNetwork is set. Fixes bug 7464; bugfix on
6657       0.2.3.9-alpha.
6660 Changes in version 0.2.4.6-alpha - 2012-11-13
6661   Tor 0.2.4.6-alpha fixes an assert bug that has been plaguing relays,
6662   makes our defense-in-depth memory wiping more reliable, and begins to
6663   count IPv6 addresses in bridge statistics,
6665   o Major bugfixes:
6666     - Fix an assertion failure that could occur when closing a connection
6667       with a spliced rendezvous circuit. Fix for bug 7212; bugfix on
6668       Tor 0.2.4.4-alpha.
6669     - Tor tries to wipe potentially sensitive data after using it, so
6670       that if some subsequent security failure exposes Tor's memory,
6671       the damage will be limited. But we had a bug where the compiler
6672       was eliminating these wipe operations when it decided that the
6673       memory was no longer visible to a (correctly running) program,
6674       hence defeating our attempt at defense in depth. We fix that
6675       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
6676       is unlikely to optimize away. Future versions of Tor may use
6677       a less ridiculously heavy approach for this. Fixes bug 7352.
6678       Reported in an article by Andrey Karpov.
6680   o Minor features:
6681     - Add GeoIP database for IPv6 addresses. The new config option
6682       is GeoIPv6File.
6683     - Bridge statistics now count bridge clients connecting over IPv6:
6684       bridge statistics files now list "bridge-ip-versions" and
6685       extra-info documents list "geoip6-db-digest". The control protocol
6686       "CLIENTS_SEEN" and "ip-to-country" queries now support IPv6. Initial
6687       implementation by "shkoo", addressing ticket 5055.
6689   o Minor bugfixes:
6690     - Warn when we are binding low ports when hibernation is enabled;
6691       previously we had warned when we were _advertising_ low ports with
6692       hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
6693     - Fix a harmless bug when opting against publishing a relay descriptor
6694       because DisableNetwork is set. Fixes bug 7464; bugfix on
6695       0.2.3.9-alpha.
6696     - Add warning message when a managed proxy dies during configuration.
6697       Fixes bug 7195; bugfix on 0.2.4.2-alpha.
6698     - Fix a linking error when building tor-fw-helper without miniupnp.
6699       Fixes bug 7235; bugfix on 0.2.4.2-alpha. Fix by Anthony G. Basile.
6700     - Check for closing an or_connection_t without going through correct
6701       channel functions; emit a warning and then call
6702       connection_or_close_for_error() so we don't assert as in bugs 7212
6703       and 7267.
6704     - Compile correctly on compilers without C99 designated initializer
6705       support. Fixes bug 7286; bugfix on 0.2.4.4-alpha.
6706     - Avoid a possible assert that can occur when channel_send_destroy() is
6707       called on a channel in CHANNEL_STATE_CLOSING, CHANNEL_STATE_CLOSED,
6708       or CHANNEL_STATE_ERROR when the Tor process is resumed after being
6709       blocked for a long interval. Fixes bug 7350; bugfix on 0.2.4.4-alpha.
6710     - Fix a memory leak on failing cases of channel_tls_process_certs_cell.
6711       Fixes bug 7422; bugfix on 0.2.4.4-alpha.
6713   o Code simplification and refactoring:
6714     - Start using OpenBSD's implementation of queue.h, so that we don't
6715       need to hand-roll our own pointer and list structures whenever we
6716       need them. (We can't rely on a sys/queue.h, since some operating
6717       systems don't have them, and the ones that do have them don't all
6718       present the same extensions.)
6721 Changes in version 0.2.4.5-alpha - 2012-10-25
6722   Tor 0.2.4.5-alpha comes hard at the heels of 0.2.4.4-alpha, to fix
6723   two important security vulnerabilities that could lead to remotely
6724   triggerable relay crashes, fix a major bug that was preventing clients
6725   from choosing suitable exit nodes, and refactor some of our code.
6727   o Major bugfixes (security, also in 0.2.3.24-rc):
6728     - Fix a group of remotely triggerable assertion failures related to
6729       incorrect link protocol negotiation. Found, diagnosed, and fixed
6730       by "some guy from France". Fix for CVE-2012-2250; bugfix on
6731       0.2.3.6-alpha.
6732     - Fix a denial of service attack by which any directory authority
6733       could crash all the others, or by which a single v2 directory
6734       authority could crash everybody downloading v2 directory
6735       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
6737   o Major bugfixes (also in 0.2.3.24-rc):
6738     - When parsing exit policy summaries from microdescriptors, we had
6739       previously been ignoring the last character in each one, so that
6740       "accept 80,443,8080" would be treated by clients as indicating
6741       a node that allows access to ports 80, 443, and 808. That would
6742       lead to clients attempting connections that could never work,
6743       and ignoring exit nodes that would support their connections. Now
6744       clients parse these exit policy summaries correctly. Fixes bug 7192;
6745       bugfix on 0.2.3.1-alpha.
6747   o Minor bugfixes (also in 0.2.3.24-rc):
6748     - Clients now consider the ClientRejectInternalAddresses config option
6749       when using a microdescriptor consensus stanza to decide whether
6750       an exit relay would allow exiting to an internal address. Fixes
6751       bug 7190; bugfix on 0.2.3.1-alpha.
6753   o Minor bugfixes:
6754     - Only disable TLS session ticket support when running as a TLS
6755       server. Now clients will blend better with regular Firefox
6756       connections. Fixes bug 7189; bugfix on Tor 0.2.3.23-rc.
6758   o Code simplification and refactoring:
6759     - Start using OpenBSD's implementation of queue.h (originally by
6760       Niels Provos).
6761     - Move the entry node code from circuitbuild.c to its own file.
6762     - Move the circuit build timeout tracking code from circuitbuild.c
6763       to its own file.
6766 Changes in version 0.2.3.24-rc - 2012-10-25
6767   Tor 0.2.3.24-rc fixes two important security vulnerabilities that
6768   could lead to remotely triggerable relay crashes, and fixes
6769   a major bug that was preventing clients from choosing suitable exit
6770   nodes.
6772   o Major bugfixes (security):
6773     - Fix a group of remotely triggerable assertion failures related to
6774       incorrect link protocol negotiation. Found, diagnosed, and fixed
6775       by "some guy from France". Fix for CVE-2012-2250; bugfix on
6776       0.2.3.6-alpha.
6777     - Fix a denial of service attack by which any directory authority
6778       could crash all the others, or by which a single v2 directory
6779       authority could crash everybody downloading v2 directory
6780       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
6782   o Major bugfixes:
6783     - When parsing exit policy summaries from microdescriptors, we had
6784       previously been ignoring the last character in each one, so that
6785       "accept 80,443,8080" would be treated by clients as indicating
6786       a node that allows access to ports 80, 443, and 808. That would
6787       lead to clients attempting connections that could never work,
6788       and ignoring exit nodes that would support their connections. Now
6789       clients parse these exit policy summaries correctly. Fixes bug 7192;
6790       bugfix on 0.2.3.1-alpha.
6792   o Minor bugfixes:
6793     - Clients now consider the ClientRejectInternalAddresses config option
6794       when using a microdescriptor consensus stanza to decide whether
6795       an exit relay would allow exiting to an internal address. Fixes
6796       bug 7190; bugfix on 0.2.3.1-alpha.
6799 Changes in version 0.2.4.4-alpha - 2012-10-20
6800   Tor 0.2.4.4-alpha adds a new v3 directory authority, fixes a privacy
6801   vulnerability introduced by a change in OpenSSL, fixes a remotely
6802   triggerable assert, and adds new channel_t and circuitmux_t abstractions
6803   that will make it easier to test new connection transport and cell
6804   scheduling algorithms.
6806   o New directory authorities (also in 0.2.3.23-rc):
6807     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
6808       authority. Closes ticket 5749.
6810   o Major bugfixes (security/privacy, also in 0.2.3.23-rc):
6811     - Disable TLS session tickets. OpenSSL's implementation was giving
6812       our TLS session keys the lifetime of our TLS context objects, when
6813       perfect forward secrecy would want us to discard anything that
6814       could decrypt a link connection as soon as the link connection
6815       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
6816       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
6817     - Discard extraneous renegotiation attempts once the V3 link
6818       protocol has been initiated. Failure to do so left us open to
6819       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
6820       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
6822   o Internal abstraction features:
6823     - Introduce new channel_t abstraction between circuits and
6824       or_connection_t to allow for implementing alternate OR-to-OR
6825       transports. A channel_t is an abstract object which can either be a
6826       cell-bearing channel, which is responsible for authenticating and
6827       handshaking with the remote OR and transmitting cells to and from
6828       it, or a listening channel, which spawns new cell-bearing channels
6829       at the request of remote ORs. Implements part of ticket 6465.
6830     - Also new is the channel_tls_t subclass of channel_t, adapting it
6831       to the existing or_connection_t code. The V2/V3 protocol handshaking
6832       code which formerly resided in command.c has been moved below the
6833       channel_t abstraction layer and may be found in channeltls.c now.
6834       Implements the rest of ticket 6465.
6835     - Introduce new circuitmux_t storing the queue of circuits for
6836       a channel; this encapsulates and abstracts the queue logic and
6837       circuit selection policy, and allows the latter to be overridden
6838       easily by switching out a policy object. The existing EWMA behavior
6839       is now implemented as a circuitmux_policy_t. Resolves ticket 6816.
6841   o Required libraries:
6842     - Tor now requires OpenSSL 0.9.8 or later. OpenSSL 1.0.0 or later is
6843       strongly recommended.
6845   o Minor features:
6846     - Warn users who run hidden services on a Tor client with
6847       UseEntryGuards disabled that their hidden services will be
6848       vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the
6849       attack which motivated Tor to support entry guards in the first
6850       place). Resolves ticket 6889.
6851     - Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from
6852       dhill. Resolves ticket 6982.
6853     - Option OutboundBindAddress can be specified multiple times and
6854       accepts IPv6 addresses. Resolves ticket 6876.
6856   o Minor bugfixes (also in 0.2.3.23-rc):
6857     - Don't serve or accept v2 hidden service descriptors over a
6858       relay's DirPort. It's never correct to do so, and disabling it
6859       might make it more annoying to exploit any bugs that turn up in the
6860       descriptor-parsing code. Fixes bug 7149.
6861     - Fix two cases in src/or/transports.c where we were calling
6862       fmt_addr() twice in a parameter list. Bug found by David
6863       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
6864     - Fix memory leaks whenever we logged any message about the "path
6865       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
6866     - When relays refuse a "create" cell because their queue of pending
6867       create cells is too big (typically because their cpu can't keep up
6868       with the arrival rate), send back reason "resource limit" rather
6869       than reason "internal", so network measurement scripts can get a
6870       more accurate picture. Fixes bug 7037; bugfix on 0.1.1.11-alpha.
6872   o Minor bugfixes:
6873     - Command-line option "--version" implies "--quiet". Fixes bug 6997.
6874     - Free some more still-in-use memory at exit, to make hunting for
6875       memory leaks easier. Resolves bug 7029.
6876     - When a Tor client gets a "truncated" relay cell, the first byte of
6877       its payload specifies why the circuit was truncated. We were
6878       ignoring this 'reason' byte when tearing down the circuit, resulting
6879       in the controller not being told why the circuit closed. Now we
6880       pass the reason from the truncated cell to the controller. Bugfix
6881       on 0.1.2.3-alpha; fixes bug 7039.
6882     - Downgrade "Failed to hand off onionskin" messages to "debug"
6883       severity, since they're typically redundant with the "Your computer
6884       is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.
6885     - Make clients running with IPv6 bridges connect over IPv6 again,
6886       even without setting new config options ClientUseIPv6 and
6887       ClientPreferIPv6ORPort. Fixes bug 6757; bugfix on 0.2.4.1-alpha.
6888     - Use square brackets around IPv6 addresses in numerous places
6889       that needed them, including log messages, HTTPS CONNECT proxy
6890       requests, TransportProxy statefile entries, and pluggable transport
6891       extra-info lines. Fixes bug 7011; patch by David Fifield.
6893   o Code refactoring and cleanup:
6894     - Source files taken from other packages now reside in src/ext;
6895       previously they were scattered around the rest of Tor.
6896     - Avoid use of reserved identifiers in our C code. The C standard
6897       doesn't like us declaring anything that starts with an
6898       underscore, so let's knock it off before we get in trouble. Fix
6899       for bug 1031; bugfix on the first Tor commit.
6902 Changes in version 0.2.3.23-rc - 2012-10-20
6903   Tor 0.2.3.23-rc adds a new v3 directory authority, fixes a privacy
6904   vulnerability introduced by a change in OpenSSL, and fixes a variety
6905   of smaller bugs in preparation for the release.
6907   o New directory authorities:
6908     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
6909       authority. Closes ticket 5749.
6911   o Major bugfixes (security/privacy):
6912     - Disable TLS session tickets. OpenSSL's implementation was giving
6913       our TLS session keys the lifetime of our TLS context objects, when
6914       perfect forward secrecy would want us to discard anything that
6915       could decrypt a link connection as soon as the link connection
6916       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
6917       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
6918     - Discard extraneous renegotiation attempts once the V3 link
6919       protocol has been initiated. Failure to do so left us open to
6920       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
6921       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
6923   o Major bugfixes:
6924     - Fix a possible crash bug when checking for deactivated circuits
6925       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
6926       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
6928   o Minor bugfixes (on 0.2.3.x):
6929     - Fix two cases in src/or/transports.c where we were calling
6930       fmt_addr() twice in a parameter list. Bug found by David
6931       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
6932     - Convert an assert in the pathbias code to a log message. The assert
6933       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
6934       bugfix on 0.2.3.17-beta.
6935     - Fix memory leaks whenever we logged any message about the "path
6936       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
6938   o Minor bugfixes (on 0.2.2.x and earlier):
6939     - Don't serve or accept v2 hidden service descriptors over a relay's
6940       DirPort. It's never correct to do so, and disabling it might
6941       make it more annoying to exploit any bugs that turn up in the
6942       descriptor-parsing code. Fixes bug 7149.
6943     - When relays refuse a "create" cell because their queue of pending
6944       create cells is too big (typically because their cpu can't keep up
6945       with the arrival rate), send back reason "resource limit" rather
6946       than reason "internal", so network measurement scripts can get a
6947       more accurate picture. Bugfix on 0.1.1.11-alpha; fixes bug 7037.
6948     - Correct file sizes when reading binary files on Cygwin, to avoid
6949       a bug where Tor would fail to read its state file. Fixes bug 6844;
6950       bugfix on 0.1.2.7-alpha.
6951     - Avoid undefined behavior when parsing the list of supported
6952       rendezvous/introduction protocols in a hidden service descriptor.
6953       Previously, Tor would have confused (as-yet-unused) protocol version
6954       numbers greater than 32 with lower ones on many platforms. Fixes
6955       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
6957   o Documentation fixes:
6958     - Clarify that hidden services are TCP only. Fixes bug 6024.
6961 Changes in version 0.2.4.3-alpha - 2012-09-22
6962   Tor 0.2.4.3-alpha fixes another opportunity for a remotely triggerable
6963   assertion, resumes letting relays test reachability of their DirPort,
6964   and cleans up a bunch of smaller bugs.
6966   o Security fixes:
6967     - Fix an assertion failure in tor_timegm() that could be triggered
6968       by a badly formatted directory object. Bug found by fuzzing with
6969       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
6971   o Major bugfixes:
6972     - Fix a possible crash bug when checking for deactivated circuits
6973       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
6974       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
6975     - Allow routers to detect that their own DirPorts are running. When
6976       we removed support for versions_supports_begindir, we also
6977       accidentally removed the mechanism we used to self-test our
6978       DirPort. Diagnosed with help from kargig. Fixes bugs 6814 and 6815;
6979       bugfix on 0.2.4.2-alpha.
6981   o Security features:
6982     - Switch to a completely time-invariant approach for picking nodes
6983       weighted by bandwidth. Our old approach would run through the
6984       part of the loop after it had made its choice slightly slower
6985       than it ran through the part of the loop before it had made its
6986       choice. Addresses ticket 6538.
6987     - Disable the use of Guard nodes when in Tor2WebMode. Guard usage
6988       by tor2web clients allows hidden services to identify tor2web
6989       clients through their repeated selection of the same rendezvous
6990       and introduction point circuit endpoints (their guards). Resolves
6991       ticket 6888.
6993   o Minor features:
6994     - Enable Tor to read configuration, state, and key information from
6995       a FIFO. Previously Tor would only read from files with a positive
6996       stat.st_size. Code from meejah; fixes bug 6044.
6998   o Minor bugfixes:
6999     - Correct file sizes when reading binary files on Cygwin, to avoid
7000       a bug where Tor would fail to read its state file. Fixes bug 6844;
7001       bugfix on 0.1.2.7-alpha.
7002     - Correctly handle votes with more than 31 flags. Fixes bug 6853;
7003       bugfix on 0.2.0.3-alpha.
7004     - When complaining about a client port on a public address, log
7005       which address we're complaining about. Fixes bug 4020; bugfix on
7006       0.2.3.3-alpha. Patch by Tom Fitzhenry.
7007     - Convert an assert in the pathbias code to a log message. The assert
7008       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
7009       bugfix on 0.2.3.17-beta.
7010     - Our new buildsystem was overzealous about rebuilding manpages: it
7011       would rebuild them all whenever any one of them changed. Now our
7012       dependency checking should be correct. Fixes bug 6843; bugfix on
7013       0.2.4.1-alpha.
7014     - Don't do reachability testing over IPv6 unless AuthDirPublishIPv6
7015       is set. Fixes bug 6880. Bugfix on 0.2.4.1-alpha.
7016     - Correct log printout about which address family is preferred
7017       when connecting to a bridge with both an IPv4 and IPv6 OR port.
7018       Fixes bug 6884; bugfix on 0.2.4.1-alpha.
7020   o Minor bugfixes (code cleanliness):
7021     - Fix round_to_power_of_2() so it doesn't invoke undefined behavior
7022       with large values. This situation was untriggered, but nevertheless
7023       incorrect. Fixes bug 6831; bugfix on 0.2.0.1-alpha.
7024     - Reject consensus votes with more than 64 known-flags. We aren't even
7025       close to that limit yet, and our code doesn't handle it correctly.
7026       Fixes bug 6833; bugfix on 0.2.0.1-alpha.
7027     - Avoid undefined behavior when parsing the list of supported
7028       rendezvous/introduction protocols in a hidden service descriptor.
7029       Previously, Tor would have confused (as-yet-unused) protocol version
7030       numbers greater than 32 with lower ones on many platforms. Fixes
7031       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
7032     - Fix handling of rendezvous client authorization types over 8.
7033       Fixes bug 6861; bugfix on 0.2.1.5-alpha.
7034     - Fix building with older versions of GCC (2.95, for one) that don't
7035       like preprocessor directives inside macro arguments. Found by
7036       grarpamp. Fixes bug 6842; bugfix on 0.2.4.2-alpha.
7037     - Switch weighted node selection rule from using a list of doubles
7038       to using a list of int64_t. This change should make the process
7039       slightly easier to debug and maintain. Needed to finish ticket 6538.
7041   o Code simplification and refactoring:
7042     - Move the generic "config" code into a new file, and have "config.c"
7043       hold only torrc- and state-related code. Resolves ticket 6823.
7044     - Move the core of our "choose a weighted element at random" logic
7045       into its own function, and give it unit tests. Now the logic is
7046       testable, and a little less fragile too.
7047     - Removed the testing_since field of node_t, which hasn't been used
7048       for anything since 0.2.0.9-alpha.
7050   o Documentation fixes:
7051     - Clarify that hidden services are TCP only. Fixes bug 6024.
7052     - Resolve a typo in torrc.sample.in. Fixes bug 6819; bugfix on
7053       0.2.3.14-alpha.
7056 Changes in version 0.2.3.22-rc - 2012-09-11
7057   Tor 0.2.3.22-rc fixes another opportunity for a remotely triggerable
7058   assertion.
7060   o Security fixes:
7061     - Fix an assertion failure in tor_timegm() that could be triggered
7062       by a badly formatted directory object. Bug found by fuzzing with
7063       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
7065   o Minor bugfixes:
7066     - Avoid segfault when starting up having run with an extremely old
7067       version of Tor and parsing its state file. Fixes bug 6801; bugfix
7068       on 0.2.2.23-alpha.
7071 Changes in version 0.2.2.39 - 2012-09-11
7072   Tor 0.2.2.39 fixes two more opportunities for remotely triggerable
7073   assertions.
7075   o Security fixes:
7076     - Fix an assertion failure in tor_timegm() that could be triggered
7077       by a badly formatted directory object. Bug found by fuzzing with
7078       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
7079     - Do not crash when comparing an address with port value 0 to an
7080       address policy. This bug could have been used to cause a remote
7081       assertion failure by or against directory authorities, or to
7082       allow some applications to crash clients. Fixes bug 6690; bugfix
7083       on 0.2.1.10-alpha.
7086 Changes in version 0.2.4.2-alpha - 2012-09-10
7087   Tor 0.2.4.2-alpha enables port forwarding for pluggable transports,
7088   raises the default rate limiting even more, and makes the bootstrapping
7089   log messages less noisy.
7091   o Major features:
7092     - Automatically forward the TCP ports of pluggable transport
7093       proxies using tor-fw-helper if PortForwarding is enabled. Implements
7094       ticket 4567.
7096   o Major bugfixes:
7097     - Raise the default BandwidthRate/BandwidthBurst values from 5MB/10MB
7098       to 1GB/1GB. The previous defaults were intended to be "basically
7099       infinite", but it turns out they're now limiting our 100mbit+
7100       relays and bridges. Fixes bug 6605; bugfix on 0.2.0.10-alpha (the
7101       last time we raised it).
7103   o Minor features:
7104     - Detect when we're running with a version of OpenSSL other than the
7105       one we compiled with. This has occasionally given people hard-to-
7106       track-down errors.
7107     - Log fewer lines at level "notice" about our OpenSSL and Libevent
7108       versions and capabilities when everything is going right. Resolves
7109       part of ticket 6736.
7110     - Directory authorities no long accept descriptors for any version of
7111       Tor before 0.2.2.35, or for any 0.2.3 release before 0.2.3.10-alpha.
7112       These versions are insecure, unsupported, or both. Implements
7113       ticket 6789.
7115   o Minor bugfixes:
7116     - Rename the (internal-use-only) UsingTestingNetworkDefaults option
7117       to start with a triple-underscore so the controller won't touch it.
7118       Patch by Meejah. Fixes bug 3155. Bugfix on 0.2.2.23-alpha.
7119     - Avoid segfault when starting up having run with an extremely old
7120       version of Tor and parsing its state file. Fixes bug 6801; bugfix
7121       on 0.2.2.23-alpha.
7122     - Rename the (testing-use-only) _UseFilteringSSLBufferevents option
7123       so it doesn't start with _. Fixes bug 3155. Bugfix on 0.2.3.1-alpha.
7124     - Don't follow the NULL pointer if microdescriptor generation fails.
7125       (This does not appear to be triggerable, but it's best to be safe.)
7126       Found by "f. tp.". Fixes bug 6797; bugfix on 0.2.4.1-alpha.
7127     - Fix mis-declared dependencies on src/common/crypto.c and
7128       src/or/tor_main.c that could break out-of-tree builds under some
7129       circumstances. Fixes bug 6778; bugfix on 0.2.4.1-alpha.
7130     - Avoid a warning when building common_sha1.i out of tree. Fixes bug
7131       6778; bugfix on 0.2.4.1-alpha.
7132     - Fix a harmless (in this case) build warning for implicitly
7133       converting a strlen() to an int. Bugfix on 0.2.4.1-alpha.
7135   o Removed features:
7136     - Now that all versions before 0.2.2.x are disallowed, we no longer
7137       need to work around their missing features. Thus we can remove a
7138       bunch of compatibility code.
7140   o Code refactoring:
7141     - Tweak tor-fw-helper to accept an arbitrary amount of arbitrary
7142       TCP ports to forward. In the past it only accepted two ports:
7143       the ORPort and the DirPort.
7146 Changes in version 0.2.4.1-alpha - 2012-09-05
7147   Tor 0.2.4.1-alpha lets bridges publish their pluggable transports to
7148   bridgedb; lets relays use IPv6 addresses and directory authorities
7149   advertise them; and switches to a cleaner build interface.
7151   This is the first alpha release in a new series, so expect there to
7152   be bugs. Users who would rather test out a more stable branch should
7153   stay with 0.2.3.x for now.
7155   o Major features (bridges):
7156     - Bridges now report the pluggable transports they support to the
7157       bridge authority, so it can pass the supported transports on to
7158       bridgedb and/or eventually do reachability testing. Implements
7159       ticket 3589.
7161   o Major features (IPv6):
7162     - Bridge authorities now accept IPv6 bridge addresses and include
7163       them in network status documents. Implements ticket 5534.
7164     - Clients who set "ClientUseIPv6 1" may connect to entry nodes over
7165       IPv6. Set "ClientPreferIPv6ORPort 1" to make this even more likely
7166       to happen. Implements ticket 5535.
7167     - All kind of relays, not just bridges, can now advertise an IPv6
7168       OR port. Implements ticket 6362.
7169     - Directory authorities vote on IPv6 OR ports using the new consensus
7170       method 14. Implements ticket 6363.
7172   o Major features (build):
7173     - Switch to a nonrecursive Makefile structure. Now instead of each
7174       Makefile.am invoking other Makefile.am's, there is a master
7175       Makefile.am that includes the others. This change makes our build
7176       process slightly more maintainable, and improves parallelism for
7177       building with make -j. Original patch by Stewart Smith; various
7178       fixes by Jim Meyering.
7179     - Where available, we now use automake's "silent" make rules by
7180       default, so that warnings are easier to spot. You can get the old
7181       behavior with "make V=1". Patch by Stewart Smith for ticket 6522.
7183   o Minor features (code security and spec conformance):
7184     - Clear keys and key-derived material left on the stack in
7185       rendservice.c and rendclient.c. Check return value of
7186       crypto_pk_write_private_key_to_string() in rend_service_load_keys().
7187       These fixes should make us more forward-secure against cold-boot
7188       attacks and the like. Fixes bug 2385.
7189     - Reject EXTEND cells sent to nonexistent streams. According to the
7190       spec, an EXTEND cell sent to _any_ nonzero stream ID is invalid, but
7191       we were only checking for stream IDs that were currently in use.
7192       Found while hunting for more instances of bug 6271. Bugfix on
7193       0.0.2pre8, which introduced incremental circuit construction.
7195   o Minor features (streamlining);
7196     - No longer include the "opt" prefix when generating routerinfos
7197       or v2 directories: it has been needless since Tor 0.1.2. Closes
7198       ticket 5124.
7199     - Remove some now-needless code that tried to aggressively flush
7200       OR connections as data was added to them. Since 0.2.0.1-alpha, our
7201       cell queue logic has saved us from the failure mode that this code
7202       was supposed to prevent. Removing this code will limit the number
7203       of baroque control flow paths through Tor's network logic. Reported
7204       pseudonymously on IRC. Fixes bug 6468; bugfix on 0.2.0.1-alpha.
7206   o Minor features (controller):
7207     - Add a "GETINFO signal/names" control port command. Implements
7208       ticket 3842.
7209     - Provide default values for all options via "GETINFO config/defaults".
7210       Implements ticket 4971.
7212   o Minor features (IPv6):
7213     - New config option "AuthDirHasIPv6Connectivity 1" that directory
7214       authorities should set if they have IPv6 connectivity and want to
7215       do reachability tests for IPv6 relays. Implements feature 5974.
7216     - A relay with an IPv6 OR port now sends that address in NETINFO
7217       cells (in addition to its other address). Implements ticket 6364.
7219   o Minor features (log messages):
7220     - Omit the first heartbeat log message, because it never has anything
7221       useful to say, and it clutters up the bootstrapping messages.
7222       Resolves ticket 6758.
7223     - Don't log about reloading the microdescriptor cache at startup. Our
7224       bootstrap warnings are supposed to tell the user when there's a
7225       problem, and our bootstrap notices say when there isn't. Resolves
7226       ticket 6759; bugfix on 0.2.2.6-alpha.
7227     - Don't log "I learned some more directory information" when we're
7228       reading cached directory information. Reserve it for when new
7229       directory information arrives in response to a fetch. Resolves
7230       ticket 6760.
7231     - Prevent rounding error in path bias counts when scaling
7232       them down, and use the correct scale factor default. Also demote
7233       some path bias related log messages down a level and make others
7234       less scary sounding. Fixes bug 6647. Bugfix against 0.2.3.17-beta.
7235     - We no longer warn so much when generating manpages from their
7236       asciidoc source.
7238   o Code simplifications and refactoring:
7239     - Enhance our internal sscanf replacement so that we can eliminate
7240       the last remaining uses of the system sscanf. (Though those uses
7241       of sscanf were safe, sscanf itself is generally error prone, so
7242       we want to eliminate when we can.) Fixes ticket 4195 and Coverity
7243       CID 448.
7244     - Move ipv6_preferred from routerinfo_t to node_t. Addresses bug 4620.
7245     - Move last_reachable and testing_since from routerinfo_t to node_t.
7246       Implements ticket 5529.
7247     - Add replaycache_t structure, functions and unit tests, then refactor
7248       rend_service_introduce() to be more clear to read, improve, debug,
7249       and test. Resolves bug 6177.
7250     - Finally remove support for malloc_good_size and malloc_usable_size.
7251       We had hoped that these functions would let us eke a little more
7252       memory out of our malloc implementation. Unfortunately, the only
7253       implementations that provided these functions are also ones that
7254       are already efficient about not overallocation: they never got us
7255       more than 7 or so bytes per allocation. Removing them saves us a
7256       little code complexity and a nontrivial amount of build complexity.
7258   o New requirements:
7259     - Tor maintainers now require Automake version 1.9 or later to build
7260       Tor from the Git repository. (Automake is not required when building
7261       from a source distribution.)
7264 Changes in version 0.2.3.21-rc - 2012-09-05
7265   Tor 0.2.3.21-rc is the fourth release candidate for the Tor 0.2.3.x
7266   series. It fixes a trio of potential security bugs, fixes a bug where
7267   we were leaving some of the fast relays out of the microdescriptor
7268   consensus, resumes interpreting "ORPort 0" and "DirPort 0" correctly,
7269   and cleans up other smaller issues.
7271   o Major bugfixes (security):
7272     - Tear down the circuit if we get an unexpected SENDME cell. Clients
7273       could use this trick to make their circuits receive cells faster
7274       than our flow control would have allowed, or to gum up the network,
7275       or possibly to do targeted memory denial-of-service attacks on
7276       entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor --
7277       from July 2002, before the release of Tor 0.0.0. We had committed
7278       this patch previously, but we had to revert it because of bug 6271.
7279       Now that 6271 is fixed, this patch appears to work.
7280     - Reject any attempt to extend to an internal address. Without
7281       this fix, a router could be used to probe addresses on an internal
7282       network to see whether they were accepting connections. Fixes bug
7283       6710; bugfix on 0.0.8pre1.
7284     - Do not crash when comparing an address with port value 0 to an
7285       address policy. This bug could have been used to cause a remote
7286       assertion failure by or against directory authorities, or to
7287       allow some applications to crash clients. Fixes bug 6690; bugfix
7288       on 0.2.1.10-alpha.
7290   o Major bugfixes:
7291     - Remove the upper bound on microdescriptor length. We were hitting
7292       the limit for routers with complex exit policies or family
7293       declarations, causing clients to not use them. Fixes the first
7294       piece of bug 6404; fix on 0.2.2.6-alpha.
7295     - Detect "ORPort 0" as meaning, uniformly, that we're not running
7296       as a relay. Previously, some of our code would treat the presence
7297       of any ORPort line as meaning that we should act like a relay,
7298       even though our new listener code would correctly not open any
7299       ORPorts for ORPort 0. Similar bugs in other Port options are also
7300       fixed. Fixes the first half of bug 6507; bugfix on 0.2.3.3-alpha.
7302   o Minor bugfixes:
7303     - Avoid a pair of double-free and use-after-mark bugs that can
7304       occur with certain timings in canceled and re-received DNS
7305       requests. Fixes bug 6472; bugfix on 0.0.7rc1.
7306     - Fix build and 64-bit compile warnings from --enable-openbsd-malloc.
7307       Fixes bug 6379. Bugfix on 0.2.0.20-rc.
7308     - Allow one-hop directory fetching circuits the full "circuit build
7309       timeout" period, rather than just half of it, before failing them
7310       and marking the relay down. This fix should help reduce cases where
7311       clients declare relays (or worse, bridges) unreachable because
7312       the TLS handshake takes a few seconds to complete. Fixes bug 6743;
7313       bugfix on 0.2.2.2-alpha, where we changed the timeout from a static
7314       30 seconds.
7315     - Authorities no longer include any router in their microdescriptor
7316       consensuses for which they couldn't generate or agree on a
7317       microdescriptor. Fixes the second piece of bug 6404; fix on
7318       0.2.2.6-alpha.
7319     - Detect and reject attempts to specify both "FooPort" and
7320       "FooPort 0" in the same configuration domain. (It's still okay
7321       to have a FooPort in your configuration file, and use "FooPort 0"
7322       on the command line to disable it.) Fixes the second half of bug
7323       6507; bugfix on 0.2.3.3-alpha.
7324     - Make wildcarded addresses (that is, ones beginning with "*.") work
7325       when provided via the controller's MapAddress command. Previously,
7326       they were accepted, but we never actually noticed that they were
7327       wildcards. Fixes bug 6244; bugfix on 0.2.3.9-alpha.
7328     - Avoid crashing on a malformed state file where EntryGuardPathBias
7329       precedes EntryGuard. Fix for bug 6774; bugfix on 0.2.3.17-beta.
7330     - Add a (probably redundant) memory clear between iterations of
7331       the router status voting loop, to prevent future coding errors
7332       where data might leak between iterations of the loop. Resolves
7333       ticket 6514.
7335   o Minor bugfixes (log messages):
7336     - Downgrade "set buildtimeout to low value" messages to "info"
7337       severity; they were never an actual problem, there was never
7338       anything reasonable to do about them, and they tended to spam logs
7339       from time to time. Fixes bug 6251; bugfix on 0.2.2.2-alpha.
7340     - Downgrade path-bias warning messages to "info". We'll try to get
7341       them working better in 0.2.4. Add internal circuit construction
7342       state to protect against the noisy warn message "Unexpectedly high
7343       circuit_successes". Also add some additional rate-limited notice
7344       messages to help determine the root cause of the warn. Fixes bug
7345       6475. Bugfix against 0.2.3.17-beta.
7346     - Move log message when unable to find a microdesc in a routerstatus
7347       entry to parse time. Previously we'd spam this warning every time
7348       we tried to figure out which microdescriptors to download. Fixes
7349       the third piece of bug 6404; fix on 0.2.3.18-rc.
7351   o Minor features:
7352     - Consider new, removed or changed IPv6 OR ports a non-cosmetic
7353       change when the authority is deciding whether to accept a newly
7354       uploaded descriptor. Implements ticket 6423.
7355     - Add missing documentation for consensus and microdesc files.
7356       Resolves ticket 6732.
7359 Changes in version 0.2.2.38 - 2012-08-12
7360   Tor 0.2.2.38 fixes a remotely triggerable crash bug, and fixes a timing
7361   attack that could in theory leak path information.
7363   o Security fixes:
7364     - Avoid an uninitialized memory read when reading a vote or consensus
7365       document that has an unrecognized flavor name. This read could
7366       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
7367     - Try to leak less information about what relays a client is
7368       choosing to a side-channel attacker. Previously, a Tor client would
7369       stop iterating through the list of available relays as soon as it
7370       had chosen one, thus finishing a little earlier when it picked
7371       a router earlier in the list. If an attacker can recover this
7372       timing information (nontrivial but not proven to be impossible),
7373       they could learn some coarse-grained information about which relays
7374       a client was picking (middle nodes in particular are likelier to
7375       be affected than exits). The timing attack might be mitigated by
7376       other factors (see bug 6537 for some discussion), but it's best
7377       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
7380 Changes in version 0.2.3.20-rc - 2012-08-05
7381   Tor 0.2.3.20-rc is the third release candidate for the Tor 0.2.3.x
7382   series. It fixes a pair of code security bugs and a potential anonymity
7383   issue, updates our RPM spec files, and cleans up other smaller issues.
7385   o Security fixes:
7386     - Avoid read-from-freed-memory and double-free bugs that could occur
7387       when a DNS request fails while launching it. Fixes bug 6480;
7388       bugfix on 0.2.0.1-alpha.
7389     - Avoid an uninitialized memory read when reading a vote or consensus
7390       document that has an unrecognized flavor name. This read could
7391       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
7392     - Try to leak less information about what relays a client is
7393       choosing to a side-channel attacker. Previously, a Tor client would
7394       stop iterating through the list of available relays as soon as it
7395       had chosen one, thus finishing a little earlier when it picked
7396       a router earlier in the list. If an attacker can recover this
7397       timing information (nontrivial but not proven to be impossible),
7398       they could learn some coarse-grained information about which relays
7399       a client was picking (middle nodes in particular are likelier to
7400       be affected than exits). The timing attack might be mitigated by
7401       other factors (see bug 6537 for some discussion), but it's best
7402       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
7404   o Minor features:
7405     - Try to make the warning when giving an obsolete SOCKSListenAddress
7406       a little more useful.
7407     - Terminate active server managed proxies if Tor stops being a
7408       relay. Addresses parts of bug 6274; bugfix on 0.2.3.6-alpha.
7409     - Provide a better error message about possible OSX Asciidoc failure
7410       reasons. Fixes bug 6436.
7411     - Warn when Tor is configured to use accounting in a way that can
7412       link a hidden service to some other hidden service or public
7413       address. Resolves ticket 6490.
7415   o Minor bugfixes:
7416     - Check return value of fputs() when writing authority certificate
7417       file. Fixes Coverity issue 709056; bugfix on 0.2.0.1-alpha.
7418     - Ignore ServerTransportPlugin lines when Tor is not configured as
7419       a relay. Fixes bug 6274; bugfix on 0.2.3.6-alpha.
7420     - When disabling guards for having too high a proportion of failed
7421       circuits, make sure to look at each guard. Fixes bug 6397; bugfix
7422       on 0.2.3.17-beta.
7424   o Packaging (RPM):
7425     - Update our default RPM spec files to work with mock and rpmbuild
7426       on RHEL/Fedora. They have an updated set of dependencies and
7427       conflicts, a fix for an ancient typo when creating the "_tor"
7428       user, and better instructions. Thanks to Ondrej Mikle for the
7429       patch series. Fixes bug 6043.
7431   o Testing:
7432     - Make it possible to set the TestingTorNetwork configuration
7433       option using AlternateDirAuthority and AlternateBridgeAuthority
7434       as an alternative to setting DirServer. Addresses ticket 6377.
7436   o Documentation:
7437     - Clarify the documentation for the Alternate*Authority options.
7438       Fixes bug 6387.
7439     - Fix some typos in the manpages. Patch from A. Costa. Fixes bug 6500.
7441   o Code simplification and refactoring:
7442     - Do not use SMARTLIST_FOREACH for any loop whose body exceeds
7443       10 lines. Also, don't nest them. Doing so in the past has
7444       led to hard-to-debug code. The new style is to use the
7445       SMARTLIST_FOREACH_{BEGIN,END} pair. Addresses issue 6400.
7448 Changes in version 0.2.3.19-rc - 2012-07-06
7449   Tor 0.2.3.19-rc is the second release candidate for the Tor 0.2.3.x
7450   series. It fixes the compile on Windows, reverts to a GeoIP database
7451   that isn't as broken, and fixes a flow control bug that has been around
7452   since the beginning of Tor.
7454   o Major bugfixes:
7455     - Fix a bug handling SENDME cells on nonexistent streams that could
7456       result in bizarre window values. Report and patch contributed
7457       pseudonymously. Fixes part of bug 6271. This bug was introduced
7458       before the first Tor release, in svn commit r152.
7459     - Revert to the May 1 2012 Maxmind GeoLite Country database. In the
7460       June 2012 database, Maxmind marked many Tor relays as country "A1",
7461       which will cause risky behavior for clients that set EntryNodes
7462       or ExitNodes. Addresses bug 6334; bugfix on 0.2.3.17-beta.
7463     - Instead of ENOBUFS on Windows, say WSAENOBUFS. Fixes compilation
7464       on Windows. Fixes bug 6296; bugfix on 0.2.3.18-rc.
7466   o Minor bugfixes:
7467     - Fix wrong TCP port range in parse_port_range(). Fixes bug 6218;
7468       bugfix on 0.2.1.10-alpha.
7471 Changes in version 0.2.3.18-rc - 2012-06-28
7472   Tor 0.2.3.18-rc is the first release candidate for the Tor 0.2.3.x
7473   series. It fixes a few smaller bugs, but generally appears stable.
7474   Please test it and let us know whether it is!
7476   o Major bugfixes:
7477     - Allow wildcarded mapaddress targets to be specified on the
7478       controlport. Partially fixes bug 6244; bugfix on 0.2.3.9-alpha.
7479     - Make our linker option detection code more robust against linkers
7480       such as on FreeBSD 8, where a bad combination of options completes
7481       successfully but makes an unrunnable binary. Fixes bug 6173;
7482       bugfix on 0.2.3.17-beta.
7484   o Minor bugfixes (on 0.2.2.x and earlier):
7485     - Avoid a false positive in the util/threads unit test by increasing
7486       the maximum timeout time. Fixes bug 6227; bugfix on 0.2.0.4-alpha.
7487     - Replace "Sending publish request" log messages with "Launching
7488       upload", so that they no longer confusingly imply that we're
7489       sending something to a directory we might not even be connected
7490       to yet. Fixes bug 3311; bugfix on 0.2.0.10-alpha.
7491     - Make sure to set *socket_error in all error cases in
7492       connection_connect(), so it can't produce a warning about
7493       errno being zero from errno_to_orconn_end_reason(). Bugfix on
7494       0.2.1.1-alpha; resolves ticket 6028.
7495     - Downgrade "Got a certificate, but we already have it" log messages
7496       from warning to info, except when we're a dirauth. Fixes bug 5238;
7497       bugfix on 0.2.1.7-alpha.
7498     - When checking for requested signatures on the latest consensus
7499       before serving it to a client, make sure to check the right
7500       consensus flavor. Bugfix on 0.2.2.6-alpha.
7501     - Downgrade "eventdns rejected address" message to LOG_PROTOCOL_WARN.
7502       Fixes bug 5932; bugfix on 0.2.2.7-alpha.
7504   o Minor bugfixes (on 0.2.3.x):
7505     - Make format_helper_exit_status() avoid unnecessary space padding
7506       and stop confusing log_from_pipe(). Fixes ticket 5557; bugfix
7507       on 0.2.3.1-alpha.
7508     - Downgrade a message about cleaning the microdescriptor cache to
7509       "info" from "notice". Fixes bug 6238; bugfix on 0.2.3.1-alpha.
7510     - Log a BUG message at severity INFO if we have a networkstatus with
7511       a missing entry for some microdescriptor. Continues on a patch
7512       to 0.2.3.2-alpha.
7513     - Improve the log message when a managed proxy fails to launch. Fixes
7514       bug 5099; bugfix on 0.2.3.6-alpha.
7515     - Don't do DNS lookups when parsing corrupted managed proxy protocol
7516       messages. Fixes bug 6226; bugfix on 0.2.3.6-alpha.
7517     - When formatting wildcarded address mappings for the controller,
7518       be sure to include "*." as appropriate. Partially fixes bug 6244;
7519       bugfix on 0.2.3.9-alpha.
7520     - Avoid a warning caused by using strcspn() from glibc with clang 3.0.
7521       Bugfix on 0.2.3.13-alpha.
7522     - Stop logging messages about running with circuit timeout learning
7523       enabled at severity LD_BUG. Fixes bug 6169; bugfix on 0.2.3.17-beta.
7524     - Disable a spurious warning about reading on a marked and flushing
7525       connection. We shouldn't be doing that, but apparently we
7526       sometimes do. Fixes bug 6203; bugfix on 0.2.3.17-beta.
7527     - Fix a bug that stopped AllowDotExit from working on addresses
7528       that had an entry in the DNS cache. Fixes bug 6211; bugfix on
7529       0.2.3.17-beta.
7531   o Code simplification, refactoring, unit tests:
7532     - Move tor_gettimeofday_cached() into compat_libevent.c, and use
7533       Libevent's notion of cached time when possible.
7534     - Remove duplicate code for invoking getrlimit() from control.c.
7535     - Add a unit test for the environment_variable_names_equal function.
7537   o Documentation:
7538     - Document the --defaults-torrc option, and the new (in 0.2.3)
7539       semantics for overriding, extending, and clearing lists of
7540       options. Closes bug 4748.
7543 Changes in version 0.2.3.17-beta - 2012-06-15
7544   Tor 0.2.3.17-beta enables compiler and linker hardening by default,
7545   gets our TLS handshake back on track for being able to blend in with
7546   Firefox, fixes a big bug in 0.2.3.16-alpha that broke Tor's interaction
7547   with Vidalia, and otherwise continues to get us closer to a release
7548   candidate.
7550   o Major features:
7551     - Enable gcc and ld hardening by default. Resolves ticket 5210.
7552     - Update TLS cipher list to match Firefox 8 and later. Resolves
7553       ticket 4744.
7554     - Implement the client side of proposal 198: remove support for
7555       clients falsely claiming to support standard ciphersuites that
7556       they can actually provide. As of modern OpenSSL versions, it's not
7557       necessary to fake any standard ciphersuite, and doing so prevents
7558       us from using better ciphersuites in the future, since servers
7559       can't know whether an advertised ciphersuite is really supported or
7560       not. Some hosts -- notably, ones with very old versions of OpenSSL
7561       or where OpenSSL has been built with ECC disabled -- will stand
7562       out because of this change; TBB users should not be affected.
7564   o Major bugfixes:
7565     - Change the default value for DynamicDHGroups (introduced in
7566       0.2.3.9-alpha) to 0. This feature can make Tor relays less
7567       identifiable by their use of the mod_ssl DH group, but at
7568       the cost of some usability (#4721) and bridge tracing (#6087)
7569       regressions. Resolves ticket 5598.
7570     - Send a CRLF at the end of each STATUS_* control protocol event. This
7571       bug tickled a bug in Vidalia which would make it freeze. Fixes
7572       bug 6094; bugfix on 0.2.3.16-alpha.
7574   o Minor bugfixes:
7575     - Disable writing on marked-for-close connections when they are
7576       blocked on bandwidth, to prevent busy-looping in Libevent. Fixes
7577       bug 5263; bugfix on 0.0.2pre13, where we first added a special
7578       case for flushing marked connections.
7579     - Detect SSL handshake even when the initial attempt to write the
7580       server hello fails. Fixes bug 4592; bugfix on 0.2.0.13-alpha.
7581     - Change the AllowDotExit rules so they should actually work.
7582       We now enforce AllowDotExit only immediately after receiving an
7583       address via SOCKS or DNSPort: other sources are free to provide
7584       .exit addresses after the resolution occurs. Fixes bug 3940;
7585       bugfix on 0.2.2.1-alpha.
7586     - Fix a (harmless) integer overflow in cell statistics reported by
7587       some fast relays. Fixes bug 5849; bugfix on 0.2.2.1-alpha.
7588     - Make sure circuitbuild.c checks LearnCircuitBuildTimeout in all the
7589       right places and never depends on the consensus parameters or
7590       computes adaptive timeouts when it is disabled. Fixes bug 5049;
7591       bugfix on 0.2.2.14-alpha.
7592     - When building Tor on Windows with -DUNICODE (not default), ensure
7593       that error messages, filenames, and DNS server names are always
7594       NUL-terminated when we convert them to a single-byte encoding.
7595       Fixes bug 5909; bugfix on 0.2.2.16-alpha.
7596     - Make Tor build correctly again with -DUNICODE -D_UNICODE defined.
7597       Fixes bug 6097; bugfix on 0.2.2.16-alpha.
7598     - Fix an edge case where TestingTorNetwork is set but the authorities
7599       and relays all have an uptime of zero, where the private Tor network
7600       could briefly lack support for hidden services. Fixes bug 3886;
7601       bugfix on 0.2.2.18-alpha.
7602     - Correct the manpage's descriptions for the default values of
7603       DirReqStatistics and ExtraInfoStatistics. Fixes bug 2865; bugfix
7604       on 0.2.3.1-alpha.
7605     - Fix the documentation for the --hush and --quiet command line
7606       options, which changed their behavior back in 0.2.3.3-alpha.
7607     - Fix compilation warning with clang 3.1. Fixes bug 6141; bugfix on
7608       0.2.3.11-alpha.
7610   o Minor features:
7611     - Rate-limit the "Weighted bandwidth is 0.000000" message, and add
7612       more information to it, so that we can track it down in case it
7613       returns again. Mitigates bug 5235.
7614     - Check CircuitBuildTimeout and LearnCircuitBuildTimeout in
7615       options_validate(); warn if LearnCircuitBuildTimeout is disabled and
7616       CircuitBuildTimeout is set unreasonably low. Resolves ticket 5452.
7617     - Warn the user when HTTPProxy, but no other proxy type, is
7618       configured. This can cause surprising behavior: it doesn't send
7619       all of Tor's traffic over the HTTPProxy -- it sends unencrypted
7620       directory traffic only. Resolves ticket 4663.
7621     - Issue a notice if a guard completes less than 40% of your circuits.
7622       Threshold is configurable by torrc option PathBiasNoticeRate and
7623       consensus parameter pb_noticepct. There is additional, off-by-
7624       default code to disable guards which fail too many circuits.
7625       Addresses ticket 5458.
7626     - Update to the June 6 2012 Maxmind GeoLite Country database.
7628   o Code simplifications and refactoring:
7629     - Remove validate_pluggable_transports_config(): its warning
7630       message is now handled by connection_or_connect().
7633 Changes in version 0.2.2.37 - 2012-06-06
7634   Tor 0.2.2.37 introduces a workaround for a critical renegotiation
7635   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
7636   currently).
7638   o Major bugfixes:
7639     - Work around a bug in OpenSSL that broke renegotiation with TLS
7640       1.1 and TLS 1.2. Without this workaround, all attempts to speak
7641       the v2 Tor connection protocol when both sides were using OpenSSL
7642       1.0.1 would fail. Resolves ticket 6033.
7643     - When waiting for a client to renegotiate, don't allow it to add
7644       any bytes to the input buffer. This fixes a potential DoS issue.
7645       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
7646     - Fix an edge case where if we fetch or publish a hidden service
7647       descriptor, we might build a 4-hop circuit and then use that circuit
7648       for exiting afterwards -- even if the new last hop doesn't obey our
7649       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
7651   o Minor bugfixes:
7652     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
7653       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
7655   o Minor features:
7656     - Tell GCC and Clang to check for any errors in format strings passed
7657       to the tor_v*(print|scan)f functions.
7660 Changes in version 0.2.3.16-alpha - 2012-06-05
7661   Tor 0.2.3.16-alpha introduces a workaround for a critical renegotiation
7662   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
7663   currently). It also fixes a variety of smaller bugs and other cleanups
7664   that get us closer to a release candidate.
7666   o Major bugfixes (general):
7667     - Work around a bug in OpenSSL that broke renegotiation with TLS
7668       1.1 and TLS 1.2. Without this workaround, all attempts to speak
7669       the v2 Tor connection protocol when both sides were using OpenSSL
7670       1.0.1 would fail. Resolves ticket 6033.
7671     - When waiting for a client to renegotiate, don't allow it to add
7672       any bytes to the input buffer. This fixes a potential DoS issue.
7673       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
7674     - Pass correct OR address to managed proxies (like obfsproxy),
7675       even when ORListenAddress is used. Fixes bug 4865; bugfix on
7676       0.2.3.9-alpha.
7677     - The advertised platform of a router now includes only its operating
7678       system's name (e.g., "Linux", "Darwin", "Windows 7"), and not its
7679       service pack level (for Windows) or its CPU architecture (for Unix).
7680       We also no longer include the "git-XYZ" tag in the version. Resolves
7681       part of bug 2988.
7683   o Major bugfixes (clients):
7684     - If we are unable to find any exit that supports our predicted ports,
7685       stop calling them predicted, so that we don't loop and build
7686       hopeless circuits indefinitely. Fixes bug 3296; bugfix on 0.0.9pre6,
7687       which introduced predicted ports.
7688     - Fix an edge case where if we fetch or publish a hidden service
7689       descriptor, we might build a 4-hop circuit and then use that circuit
7690       for exiting afterwards -- even if the new last hop doesn't obey our
7691       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
7692     - Check at each new consensus whether our entry guards were picked
7693       long enough ago that we should rotate them. Previously, we only
7694       did this check at startup, which could lead to us holding a guard
7695       indefinitely. Fixes bug 5380; bugfix on 0.2.1.14-rc.
7696     - When fetching a bridge descriptor from a bridge authority,
7697       always do so anonymously, whether we have been able to open
7698       circuits or not. Partial fix for bug 1938; bugfix on 0.2.0.7-alpha.
7699       This behavior makes it *safer* to use UpdateBridgesFromAuthority,
7700       but we'll need to wait for bug 6010 before it's actually usable.
7702   o Major bugfixes (directory authorities):
7703     - When computing weight parameters, behave more robustly in the
7704       presence of a bad bwweightscale value. Previously, the authorities
7705       would crash if they agreed on a sufficiently broken weight_scale
7706       value: now, they use a reasonable default and carry on. Partial
7707       fix for 5786; bugfix on 0.2.2.17-alpha.
7708     - Check more thoroughly to prevent a rogue authority from
7709       double-voting on any consensus directory parameter. Previously,
7710       authorities would crash in this case if the total number of
7711       votes for any parameter exceeded the number of active voters,
7712       but would let it pass otherwise. Partial fix for bug 5786; bugfix
7713       on 0.2.2.2-alpha.
7715   o Minor features:
7716     - Rate-limit log messages when asked to connect anonymously to
7717       a private address. When these hit, they tended to hit fast and
7718       often. Also, don't bother trying to connect to addresses that we
7719       are sure will resolve to 127.0.0.1: getting 127.0.0.1 in a directory
7720       reply makes us think we have been lied to, even when the address the
7721       client tried to connect to was "localhost." Resolves ticket 2822.
7722     - Allow packagers to insert an extra string in server descriptor
7723       platform lines by setting the preprocessor variable TOR_BUILD_TAG.
7724       Resolves the rest of ticket 2988.
7725     - Raise the threshold of server descriptors needed (75%) and exit
7726       server descriptors needed (50%) before we will declare ourselves
7727       bootstrapped. This will make clients start building circuits a
7728       little later, but makes the initially constructed circuits less
7729       skewed and less in conflict with further directory fetches. Fixes
7730       ticket 3196.
7731     - Close any connection that sends unrecognized junk before the
7732       handshake. Solves an issue noted in bug 4369.
7733     - Improve log messages about managed transports. Resolves ticket 5070.
7734     - Tag a bridge's descriptor as "never to be sent unencrypted".
7735       This shouldn't matter, since bridges don't open non-anonymous
7736       connections to the bridge authority and don't allow unencrypted
7737       directory connections from clients, but we might as well make
7738       sure. Closes bug 5139.
7739     - Expose our view of whether we have gone dormant to the controller,
7740       via a new "GETINFO dormant" value. Torbutton and other controllers
7741       can use this to avoid doing periodic requests through Tor while
7742       it's dormant (bug 4718). Fixes bug 5954.
7743     - Tell GCC and Clang to check for any errors in format strings passed
7744       to the tor_v*(print|scan)f functions.
7745     - Update to the May 1 2012 Maxmind GeoLite Country database.
7747   o Minor bugfixes (already included in 0.2.2.36):
7748     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
7749       Fixes bug 5346; bugfix on 0.0.8pre3.
7750     - Correct parsing of certain date types in parse_http_time().
7751       Without this patch, If-Modified-Since would behave
7752       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
7753       Esteban Manchado Velázques.
7754     - Make our number-parsing functions always treat too-large values
7755       as an error, even when those values exceed the width of the
7756       underlying type. Previously, if the caller provided these
7757       functions with minima or maxima set to the extreme values of the
7758       underlying integer type, these functions would return those
7759       values on overflow rather than treating overflow as an error.
7760       Fixes part of bug 5786; bugfix on 0.0.9.
7761     - If we hit the error case where routerlist_insert() replaces an
7762       existing (old) server descriptor, make sure to remove that
7763       server descriptor from the old_routers list. Fix related to bug
7764       1776. Bugfix on 0.2.2.18-alpha.
7765     - Clarify the behavior of MaxCircuitDirtiness with hidden service
7766       circuits. Fixes issue 5259.
7768   o Minor bugfixes (coding cleanup, on 0.2.2.x and earlier):
7769     - Prevent a null-pointer dereference when receiving a data cell
7770       for a nonexistent stream when the circuit in question has an
7771       empty deliver window. We don't believe this is triggerable,
7772       since we don't currently allow deliver windows to become empty,
7773       but the logic is tricky enough that it's better to make the code
7774       robust. Fixes bug 5541; bugfix on 0.0.2pre14.
7775     - Fix a memory leak when trying to launch a DNS request when the
7776       network is disabled or the nameservers are unconfigurable. Fixes
7777       bug 5916; bugfix on Tor 0.1.2.1-alpha (for the unconfigurable
7778       nameserver case) and on 0.2.3.9-alpha (for the DisableNetwork case).
7779     - Don't hold a Windows file handle open for every file mapping;
7780       the file mapping handle is sufficient. Fixes bug 5951; bugfix on
7781       0.1.2.1-alpha.
7782     - Avoid O(n^2) performance characteristics when parsing a large
7783       extrainfo cache. Fixes bug 5828; bugfix on 0.2.0.1-alpha.
7784     - Format more doubles with %f, not %lf. Patch from grarpamp to make
7785       Tor build correctly on older BSDs again. Fixes bug 3894; bugfix on
7786       Tor 0.2.0.8-alpha.
7787     - Make our replacement implementation of strtok_r() compatible with
7788       the standard behavior of strtok_r(). Patch by nils. Fixes bug 5091;
7789       bugfix on 0.2.2.1-alpha.
7790     - Fix a NULL-pointer dereference on a badly formed
7791       SETCIRCUITPURPOSE command. Found by mikeyc. Fixes bug 5796;
7792       bugfix on 0.2.2.9-alpha.
7793     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
7794       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
7795     - Defensively refactor rend_mid_rendezvous() so that protocol
7796       violations and length checks happen in the beginning. Fixes
7797       bug 5645.
7798     - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so
7799       that IPv6 stuff will compile on MSVC, and compilation issues
7800       will be easier to track down. Fixes bug 5861.
7802   o Minor bugfixes (correctness, on 0.2.2.x and earlier):
7803     - Exit nodes now correctly report EADDRINUSE and EADDRNOTAVAIL as
7804       resource exhaustion, so that clients can adjust their load to
7805       try other exits. Fixes bug 4710; bugfix on 0.1.0.1-rc, which
7806       started using END_STREAM_REASON_RESOURCELIMIT.
7807     - Don't check for whether the address we're using for outbound
7808       connections has changed until after the outbound connection has
7809       completed. On Windows, getsockname() doesn't succeed until the
7810       connection is finished. Fixes bug 5374; bugfix on 0.1.1.14-alpha.
7811     - If the configuration tries to set MyFamily on a bridge, refuse to
7812       do so, and warn about the security implications. Fixes bug 4657;
7813       bugfix on 0.2.0.3-alpha.
7814     - If the client fails to set a reasonable set of ciphersuites
7815       during its v2 handshake renegotiation, allow the renegotiation to
7816       continue nevertheless (i.e. send all the required certificates).
7817       Fixes bug 4591; bugfix on 0.2.0.20-rc.
7818     - When we receive a SIGHUP and the controller __ReloadTorrcOnSIGHUP
7819       option is set to 0 (which Vidalia version 0.2.16 now does when
7820       a SAVECONF attempt fails), perform other actions that SIGHUP
7821       usually causes (like reopening the logs). Fixes bug 5095; bugfix
7822       on 0.2.1.9-alpha.
7823     - If we fail to write a microdescriptor to the disk cache, do not
7824       continue replacing the old microdescriptor file. Fixes bug 2954;
7825       bugfix on 0.2.2.6-alpha.
7826     - Exit nodes don't need to fetch certificates for authorities that
7827       they don't recognize; only directory authorities, bridges,
7828       and caches need to do that. Fixes part of bug 2297; bugfix on
7829       0.2.2.11-alpha.
7830     - Correctly handle checking the permissions on the parent
7831       directory of a control socket in the root directory. Bug found
7832       by Esteban Manchado Velázquez. Fixes bug 5089; bugfix on Tor
7833       0.2.2.26-beta.
7834     - When told to add a bridge with the same digest as a preexisting
7835       bridge but a different addr:port, change the addr:port as
7836       requested. Previously we would not notice the change. Fixes half
7837       of bug 5603; fix on 0.2.2.26-beta.
7838     - End AUTHCHALLENGE error messages (in the control protocol) with
7839       a CRLF. Fixes bug 5760; bugfix on 0.2.2.36 and 0.2.3.13-alpha.
7841   o Minor bugfixes (on 0.2.3.x):
7842     - Turn an assertion (that the number of handshakes received as a
7843       server is not < 1) into a warning. Fixes bug 4873; bugfix on
7844       0.2.3.1-alpha.
7845     - Format IPv4 addresses correctly in ADDRMAP events. (Previously,
7846       we had reversed them when the answer was cached.) Fixes bug
7847       5723; bugfix on 0.2.3.1-alpha.
7848     - Work correctly on Linux systems with accept4 support advertised in
7849       their headers, but without accept4 support in the kernel. Fix
7850       by murb. Fixes bug 5762; bugfix on 0.2.3.1-alpha.
7851     - When told to add a bridge with the same addr:port as a preexisting
7852       bridge but a different transport, change the transport as
7853       requested. Previously we would not notice the change. Fixes half
7854       of bug 5603; fix on 0.2.3.2-alpha.
7855     - Avoid a "double-reply" warning when replying to a SOCKS request
7856       with a parse error. Patch from Fabian Keil. Fixes bug 4108;
7857       bugfix on 0.2.3.4-alpha.
7858     - Fix a bug where a bridge authority crashes if it has seen no
7859       directory requests when it's time to write statistics to disk.
7860       Fixes bug 5891; bugfix on 0.2.3.6-alpha. Also fixes bug 5508 in
7861       a better way.
7862     - Don't try to open non-control listeners when DisableNetwork is set.
7863       Previously, we'd open all listeners, then immediately close them.
7864       Fixes bug 5604; bugfix on 0.2.3.9-alpha.
7865     - Don't abort the managed proxy protocol if the managed proxy
7866       sends us an unrecognized line; ignore it instead. Fixes bug
7867       5910; bugfix on 0.2.3.9-alpha.
7868     - Fix a compile warning in crypto.c when compiling with clang 3.1.
7869       Fixes bug 5969, bugfix on 0.2.3.9-alpha.
7870     - Fix a compilation issue on GNU Hurd, which doesn't have PATH_MAX.
7871       Fixes bug 5355; bugfix on 0.2.3.11-alpha.
7872     - Remove bogus definition of "_WIN32" from src/win32/orconfig.h, to
7873       unbreak the MSVC build. Fixes bug 5858; bugfix on 0.2.3.12-alpha.
7874     - Resolve numerous small warnings and build issues with MSVC. Resolves
7875       bug 5859.
7877   o Documentation fixes:
7878     - Improve the manual's documentation for the NT Service command-line
7879       options. Addresses ticket 3964.
7880     - Clarify SessionGroup documentation slightly; resolves ticket 5437.
7881     - Document the changes to the ORPort and DirPort options, and the
7882       fact that {OR/Dir}ListenAddress is now unnecessary (and
7883       therefore deprecated). Resolves ticket 5597.
7885   o Removed files:
7886     - Remove the torrc.bridge file: we don't use it for anything, and
7887       it had become badly desynchronized from torrc.sample. Resolves
7888       bug 5622.
7891 Changes in version 0.2.2.36 - 2012-05-24
7892   Tor 0.2.2.36 updates the addresses for two of the eight directory
7893   authorities, fixes some potential anonymity and security issues,
7894   and fixes several crash bugs.
7896   Tor 0.2.1.x has reached its end-of-life. Those Tor versions have many
7897   known flaws, and nobody should be using them. You should upgrade. If
7898   you're using a Linux or BSD and its packages are obsolete, stop using
7899   those packages and upgrade anyway.
7901   o Directory authority changes:
7902     - Change IP address for maatuska (v3 directory authority).
7903     - Change IP address for ides (v3 directory authority), and rename
7904       it to turtles.
7906   o Security fixes:
7907     - When building or running with any version of OpenSSL earlier
7908       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
7909       versions have a bug (CVE-2011-4576) in which their block cipher
7910       padding includes uninitialized data, potentially leaking sensitive
7911       information to any peer with whom they make a SSLv3 connection. Tor
7912       does not use SSL v3 by default, but a hostile client or server
7913       could force an SSLv3 connection in order to gain information that
7914       they shouldn't have been able to get. The best solution here is to
7915       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
7916       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
7917       to make sure that the bug can't happen.
7918     - Never use a bridge or a controller-supplied node as an exit, even
7919       if its exit policy allows it. Found by wanoskarnet. Fixes bug
7920       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
7921       and 0.2.0.3-alpha (for bridge-purpose descriptors).
7922     - Only build circuits if we have a sufficient threshold of the total
7923       descriptors that are marked in the consensus with the "Exit"
7924       flag. This mitigates an attack proposed by wanoskarnet, in which
7925       all of a client's bridges collude to restrict the exit nodes that
7926       the client knows about. Fixes bug 5343.
7927     - Provide controllers with a safer way to implement the cookie
7928       authentication mechanism. With the old method, if another locally
7929       running program could convince a controller that it was the Tor
7930       process, then that program could trick the controller into telling
7931       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
7932       authentication method uses a challenge-response approach to prevent
7933       this attack. Fixes bug 5185; implements proposal 193.
7935   o Major bugfixes:
7936     - Avoid logging uninitialized data when unable to decode a hidden
7937       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
7938     - Avoid a client-side assertion failure when receiving an INTRODUCE2
7939       cell on a general purpose circuit. Fixes bug 5644; bugfix on
7940       0.2.1.6-alpha.
7941     - Fix builds when the path to sed, openssl, or sha1sum contains
7942       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
7943       on 0.2.2.1-alpha.
7944     - Correct our replacements for the timeradd() and timersub() functions
7945       on platforms that lack them (for example, Windows). The timersub()
7946       function is used when expiring circuits, while timeradd() is
7947       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
7948       bugfix on 0.2.2.24-alpha.
7949     - Fix the SOCKET_OK test that we use to tell when socket
7950       creation fails so that it works on Win64. Fixes part of bug 4533;
7951       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
7953   o Minor bugfixes:
7954     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
7955       Fixes bug 5346; bugfix on 0.0.8pre3.
7956     - Make our number-parsing functions always treat too-large values
7957       as an error, even when those values exceed the width of the
7958       underlying type. Previously, if the caller provided these
7959       functions with minima or maxima set to the extreme values of the
7960       underlying integer type, these functions would return those
7961       values on overflow rather than treating overflow as an error.
7962       Fixes part of bug 5786; bugfix on 0.0.9.
7963     - Older Linux kernels erroneously respond to strange nmap behavior
7964       by having accept() return successfully with a zero-length
7965       socket. When this happens, just close the connection. Previously,
7966       we would try harder to learn the remote address: but there was
7967       no such remote address to learn, and our method for trying to
7968       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
7969       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
7970     - Correct parsing of certain date types in parse_http_time().
7971       Without this patch, If-Modified-Since would behave
7972       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
7973       Esteban Manchado Velázques.
7974     - Change the BridgePassword feature (part of the "bridge community"
7975       design, which is not yet implemented) to use a time-independent
7976       comparison. The old behavior might have allowed an adversary
7977       to use timing to guess the BridgePassword value. Fixes bug 5543;
7978       bugfix on 0.2.0.14-alpha.
7979     - Detect and reject certain misformed escape sequences in
7980       configuration values. Previously, these values would cause us
7981       to crash if received in a torrc file or over an authenticated
7982       control port. Bug found by Esteban Manchado Velázquez, and
7983       independently by Robert Connolly from Matta Consulting who further
7984       noted that it allows a post-authentication heap overflow. Patch
7985       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
7986       bugfix on 0.2.0.16-alpha.
7987     - Fix a compile warning when using the --enable-openbsd-malloc
7988       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
7989     - During configure, detect when we're building with clang version
7990       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
7991       CFLAGS. clang doesn't support them yet.
7992     - When sending an HTTP/1.1 proxy request, include a Host header.
7993       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
7994     - Fix a NULL-pointer dereference on a badly formed SETCIRCUITPURPOSE
7995       command. Found by mikeyc. Fixes bug 5796; bugfix on 0.2.2.9-alpha.
7996     - If we hit the error case where routerlist_insert() replaces an
7997       existing (old) server descriptor, make sure to remove that
7998       server descriptor from the old_routers list. Fix related to bug
7999       1776. Bugfix on 0.2.2.18-alpha.
8001   o Minor bugfixes (documentation and log messages):
8002     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
8003       Fixes bug 4856; bugfix on Tor 0.0.6.
8004     - Update "ClientOnly" man page entry to explain that there isn't
8005       really any point to messing with it. Resolves ticket 5005.
8006     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
8007       directory authority option (introduced in Tor 0.2.2.34).
8008     - Downgrade the "We're missing a certificate" message from notice
8009       to info: people kept mistaking it for a real problem, whereas it
8010       is seldom the problem even when we are failing to bootstrap. Fixes
8011       bug 5067; bugfix on 0.2.0.10-alpha.
8012     - Correctly spell "connect" in a log message on failure to create a
8013       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta.
8014     - Clarify the behavior of MaxCircuitDirtiness with hidden service
8015       circuits. Fixes issue 5259.
8017   o Minor features:
8018     - Directory authorities now reject versions of Tor older than
8019       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
8020       inclusive. These versions accounted for only a small fraction of
8021       the Tor network, and have numerous known security issues. Resolves
8022       issue 4788.
8023     - Update to the May 1 2012 Maxmind GeoLite Country database.
8025   - Feature removal:
8026     - When sending or relaying a RELAY_EARLY cell, we used to convert
8027       it to a RELAY cell if the connection was using the v1 link
8028       protocol. This was a workaround for older versions of Tor, which
8029       didn't handle RELAY_EARLY cells properly. Now that all supported
8030       versions can handle RELAY_EARLY cells, and now that we're enforcing
8031       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
8032       remove this workaround. Addresses bug 4786.
8035 Changes in version 0.2.3.15-alpha - 2012-04-30
8036   Tor 0.2.3.15-alpha fixes a variety of smaller bugs, including making
8037   the development branch build on Windows again.
8039   o Minor bugfixes (on 0.2.2.x and earlier):
8040     - Make sure that there are no unhandled pending TLS errors before
8041       reading from a TLS stream. We had checks in 0.1.0.3-rc, but
8042       lost them in 0.1.0.5-rc when we refactored read_to_buf_tls().
8043       Bugfix on 0.1.0.5-rc; fixes bug 4528.
8044     - Fix an assert that directory authorities could trigger on sighup
8045       during some configuration state transitions. We now don't treat
8046       it as a fatal error when the new descriptor we just generated in
8047       init_keys() isn't accepted. Fixes bug 4438; bugfix on 0.2.1.9-alpha.
8048     - After we pick a directory mirror, we would refuse to use it if
8049       it's in our ExcludeExitNodes list, resulting in mysterious failures
8050       to bootstrap for people who just wanted to avoid exiting from
8051       certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha.
8052     - When building with --enable-static-tor on OpenBSD, do not
8053       erroneously attempt to link -lrt. Fixes bug 5103.
8055   o Minor bugfixes (on 0.2.3.x):
8056     - When Tor is built with kernel headers from a recent (last few
8057       years) Linux kernel, do not fail to run on older (pre-2.6.28
8058       Linux kernels). Fixes bug 5112; bugfix on 0.2.3.1-alpha.
8059     - Fix cross-compilation issues with mingw. Bugfixes on 0.2.3.6-alpha
8060       and 0.2.3.12-alpha.
8061     - Fix compilation with miniupnpc version 1.6; patch from
8062       Anthony G. Basile. Fixes bug 5434; bugfix on 0.2.3.12-alpha.
8063     - Fix compilation with MSVC, which had defined MS_WINDOWS. Bugfix
8064       on 0.2.3.13-alpha; found and fixed by Gisle Vanem.
8065     - Fix compilation on platforms without unistd.h, or where environ
8066       is defined in stdlib.h. Fixes bug 5704; bugfix on 0.2.3.13-alpha.
8068   o Minor features:
8069     - Directory authorities are now a little more lenient at accepting
8070       older router descriptors, or newer router descriptors that don't
8071       make big changes. This should help ameliorate past and future
8072       issues where routers think they have uploaded valid descriptors,
8073       but the authorities don't think so. Fix for ticket 2479.
8074     - Make the code that clients use to detect an address change be
8075       IPv6-aware, so that it won't fill clients' logs with error
8076       messages when trying to get the IPv4 address of an IPv6
8077       connection. Implements ticket 5537.
8079   o Removed features:
8080     - Remove the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays option;
8081       authorities needed to use it for a while to keep the network working
8082       as people upgraded to 0.2.1.31, 0.2.2.34, or 0.2.3.6-alpha, but
8083       that was six months ago. As of now, it should no longer be needed
8084       or used.
8087 Changes in version 0.2.3.14-alpha - 2012-04-23
8088   Tor 0.2.3.14-alpha fixes yet more bugs to get us closer to a release
8089   candidate. It also dramatically speeds up AES: fast relays should
8090   consider switching to the newer OpenSSL library.
8092   o Directory authority changes:
8093     - Change IP address for ides (v3 directory authority), and rename
8094       it to turtles.
8096   o Major bugfixes:
8097     - Avoid logging uninitialized data when unable to decode a hidden
8098       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
8099     - Avoid a client-side assertion failure when receiving an INTRODUCE2
8100       cell on a general purpose circuit. Fixes bug 5644; bugfix on
8101       0.2.1.6-alpha.
8102     - If authorities are unable to get a v2 consensus document from other
8103       directory authorities, they no longer fall back to fetching
8104       them from regular directory caches. Fixes bug 5635; bugfix on
8105       0.2.2.26-beta, where routers stopped downloading v2 consensus
8106       documents entirely.
8107     - When we start a Tor client with a normal consensus already cached,
8108       be willing to download a microdescriptor consensus. Fixes bug 4011;
8109       fix on 0.2.3.1-alpha.
8111   o Major features (performance):
8112     - When built to use OpenSSL 1.0.1, and built for an x86 or x86_64
8113       instruction set, take advantage of OpenSSL's AESNI, bitsliced, or
8114       vectorized AES implementations as appropriate. These can be much,
8115       much faster than other AES implementations.
8117   o Minor bugfixes (0.2.2.x and earlier):
8118     - Don't launch more than 10 service-side introduction-point circuits
8119       for a hidden service in five minutes. Previously, we would consider
8120       launching more introduction-point circuits if at least one second
8121       had passed without any introduction-point circuits failing. Fixes
8122       bug 4607; bugfix on 0.0.7pre1.
8123     - Change the BridgePassword feature (part of the "bridge community"
8124       design, which is not yet implemented) to use a time-independent
8125       comparison. The old behavior might have allowed an adversary
8126       to use timing to guess the BridgePassword value. Fixes bug 5543;
8127       bugfix on 0.2.0.14-alpha.
8128     - Enforce correct return behavior of tor_vsscanf() when the '%%'
8129       pattern is used. Fixes bug 5558. Bugfix on 0.2.1.13.
8130     - When sending an HTTP/1.1 proxy request, include a Host header.
8131       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
8132     - Don't log that we have "decided to publish new relay descriptor"
8133       unless we are actually publishing a descriptor. Fixes bug 3942;
8134       bugfix on 0.2.2.28-beta.
8136   o Minor bugfixes (0.2.3.x):
8137     - Fix a bug where a bridge authority crashes (on a failed assert)
8138       if it has seen no directory requests when it's time to write
8139       statistics to disk. Fixes bug 5508. Bugfix on 0.2.3.6-alpha.
8140     - Fix bug stomping on ORPort option NoListen and ignoring option
8141       NoAdvertise. Fixes bug 5151; bugfix on 0.2.3.9-alpha.
8142     - In the testsuite, provide a large enough buffer in the tor_sscanf
8143       unit test. Otherwise we'd overrun that buffer and crash during
8144       the unit tests. Found by weasel. Fixes bug 5449; bugfix on
8145       0.2.3.12-alpha.
8146     - Make sure we create the keys directory if it doesn't exist and we're
8147       about to store the dynamic Diffie-Hellman parameters. Fixes bug
8148       5572; bugfix on 0.2.3.13-alpha.
8149     - Fix a small memory leak when trying to decode incorrect base16
8150       authenticator during SAFECOOKIE authentication. Found by
8151       Coverity Scan. Fixes CID 507. Bugfix on 0.2.3.13-alpha.
8153   o Minor features:
8154     - Add more information to a log statement that might help track down
8155       bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a
8156       non-IP address" messages (or any Bug messages, for that matter!),
8157       please let us know about it.
8158     - Relays now understand an IPv6 address when they get one from a
8159       directory server. Resolves ticket 4875.
8160     - Resolve IPv6 addresses in bridge and entry statistics to country
8161       code "??" which means we at least count them. Resolves ticket 5053;
8162       improves on 0.2.3.9-alpha.
8163     - Update to the April 3 2012 Maxmind GeoLite Country database.
8164     - Begin a doc/state-contents.txt file to explain the contents of
8165       the Tor state file. Fixes bug 2987.
8167   o Default torrc changes:
8168     - Stop listing "socksport 9050" in torrc.sample. We open a socks
8169       port on 9050 by default anyway, so this should not change anything
8170       in practice.
8171     - Stop mentioning the deprecated *ListenAddress options in
8172       torrc.sample. Fixes bug 5438.
8173     - Document unit of bandwidth related options in sample torrc.
8174       Fixes bug 5621.
8176   o Removed features:
8177     - The "torify" script no longer supports the "tsocks" socksifier
8178       tool, since tsocks doesn't support DNS and UDP right for Tor.
8179       Everyone should be using torsocks instead. Fixes bugs 3530 and
8180       5180. Based on a patch by "ugh".
8182   o Code refactoring:
8183     - Change the symmetric cipher interface so that creating and
8184       initializing a stream cipher are no longer separate functions.
8185     - Remove all internal support for unpadded RSA. We never used it, and
8186       it would be a bad idea to start.
8189 Changes in version 0.2.3.13-alpha - 2012-03-26
8190   Tor 0.2.3.13-alpha fixes a variety of stability and correctness bugs
8191   in managed pluggable transports, as well as providing other cleanups
8192   that get us closer to a release candidate.
8194   o Directory authority changes:
8195     - Change IP address for maatuska (v3 directory authority).
8197   o Security fixes:
8198     - Provide controllers with a safer way to implement the cookie
8199       authentication mechanism. With the old method, if another locally
8200       running program could convince a controller that it was the Tor
8201       process, then that program could trick the controller into telling
8202       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
8203       authentication method uses a challenge-response approach to prevent
8204       this attack. Fixes bug 5185, implements proposal 193.
8205     - Never use a bridge or a controller-supplied node as an exit, even
8206       if its exit policy allows it. Found by wanoskarnet. Fixes bug
8207       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
8208       and 0.2.0.3-alpha (for bridge-purpose descriptors).
8209     - Only build circuits if we have a sufficient threshold of the total
8210       descriptors that are marked in the consensus with the "Exit"
8211       flag. This mitigates an attack proposed by wanoskarnet, in which
8212       all of a client's bridges collude to restrict the exit nodes that
8213       the client knows about. Fixes bug 5343.
8215   o Major bugfixes (on Tor 0.2.3.x):
8216     - Avoid an assert when managed proxies like obfsproxy are configured,
8217       and we receive HUP signals or setconf attempts too rapidly. This
8218       situation happens most commonly when Vidalia tries to attach to
8219       Tor or tries to configure the Tor it's attached to. Fixes bug 5084;
8220       bugfix on 0.2.3.6-alpha.
8221     - Fix a relay-side pluggable transports bug where managed proxies were
8222       unreachable from the Internet, because Tor asked them to bind on
8223       localhost. Fixes bug 4725; bugfix on 0.2.3.9-alpha.
8224     - Stop discarding command-line arguments when TestingTorNetwork
8225       is set. Discovered by Kevin Bauer. Fixes bug 5373; bugfix on
8226       0.2.3.9-alpha, where task 4552 added support for two layers of
8227       torrc files.
8228     - Resume allowing the unit tests to run in gdb. This was accidentally
8229       made impossible when the DisableDebuggerAttachment option was
8230       introduced. Fixes bug 5448; bugfix on 0.2.3.9-alpha.
8231     - Resume building with nat-pmp support. Fixes bug 4955; bugfix on
8232       0.2.3.11-alpha. Reported by Anthony G. Basile.
8234   o Minor bugfixes (on 0.2.2.x and earlier):
8235     - Ensure we don't cannibalize circuits that are longer than three hops
8236       already, so we don't end up making circuits with 5 or more
8237       hops. Patch contributed by wanoskarnet. Fixes bug 5231; bugfix on
8238       0.1.0.1-rc which introduced cannibalization.
8239     - Detect and reject certain misformed escape sequences in
8240       configuration values. Previously, these values would cause us
8241       to crash if received in a torrc file or over an authenticated
8242       control port. Bug found by Esteban Manchado Velázquez, and
8243       independently by Robert Connolly from Matta Consulting who further
8244       noted that it allows a post-authentication heap overflow. Patch
8245       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
8246       bugfix on 0.2.0.16-alpha.
8247     - Fix a compile warning when using the --enable-openbsd-malloc
8248       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
8249     - Directory caches no longer refuse to clean out descriptors because
8250       of missing v2 networkstatus documents, unless they're configured
8251       to retrieve v2 networkstatus documents. Fixes bug 4838; bugfix on
8252       0.2.2.26-beta. Patch by Daniel Bryg.
8253     - Update to the latest version of the tinytest unit testing framework.
8254       This includes a couple of bugfixes that can be relevant for
8255       running forked unit tests on Windows, and removes all reserved
8256       identifiers.
8258   o Minor bugfixes (on 0.2.3.x):
8259     - On a failed pipe() call, don't leak file descriptors. Fixes bug
8260       4296; bugfix on 0.2.3.1-alpha.
8261     - Spec conformance: on a v3 handshake, do not send a NETINFO cell
8262       until after we have received a CERTS cell. Fixes bug 4361; bugfix
8263       on 0.2.3.6-alpha. Patch by "frosty".
8264     - When binding to an IPv6 address, set the IPV6_V6ONLY socket
8265       option, so that the IP stack doesn't decide to use it for IPv4
8266       too. Fixes bug 4760; bugfix on 0.2.3.9-alpha.
8267     - Ensure that variables set in Tor's environment cannot override
8268       environment variables that Tor passes to a managed
8269       pluggable-transport proxy. Previously, Tor would pass every
8270       variable in its environment to managed proxies along with the new
8271       ones, in such a way that on many operating systems, the inherited
8272       environment variables would override those which Tor tried to
8273       explicitly set. Bugfix on 0.2.3.12-alpha for most Unixoid systems;
8274       bugfix on 0.2.3.9-alpha for Windows.
8276   o Minor features:
8277     - A wide variety of new unit tests by Esteban Manchado Velázquez.
8278     - Shorten links in the tor-exit-notice file. Patch by Christian Kujau.
8279     - Update to the March 6 2012 Maxmind GeoLite Country database.
8282 Changes in version 0.2.3.12-alpha - 2012-02-13
8283   Tor 0.2.3.12-alpha lets fast exit relays scale better, allows clients
8284   to use bridges that run Tor 0.2.2.x, and resolves several big bugs
8285   when Tor is configured to use a pluggable transport like obfsproxy.
8287   o Major bugfixes:
8288     - Fix builds when the path to sed, openssl, or sha1sum contains
8289       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
8290       on 0.2.2.1-alpha.
8291     - Set the SO_REUSEADDR socket option before we call bind() on outgoing
8292       connections. This change should allow busy exit relays to stop
8293       running out of available sockets as quickly. Fixes bug 4950;
8294       bugfix on 0.2.2.26-beta.
8295     - Allow 0.2.3.x clients to use 0.2.2.x bridges. Previously the client
8296       would ask the bridge for microdescriptors, which are only supported
8297       in 0.2.3.x, and then fail to bootstrap when it didn't get the
8298       answers it wanted. Fixes bug 4013; bugfix on 0.2.3.2-alpha.
8299     - Properly set up obfsproxy's environment when in managed mode. The
8300       Tor Browser Bundle needs LD_LIBRARY_PATH to be passed to obfsproxy,
8301       and when you run your Tor as a daemon, there's no HOME. Fixes bugs
8302       5076 and 5082; bugfix on 0.2.3.6-alpha.
8304   o Minor features:
8305     - Use the dead_strip option when building Tor on OS X. This reduces
8306       binary size by almost 19% when linking openssl and libevent
8307       statically, which we do for Tor Browser Bundle.
8308     - Fix broken URLs in the sample torrc file, and tell readers about
8309       the OutboundBindAddress, ExitPolicyRejectPrivate, and
8310       PublishServerDescriptor options. Addresses bug 4652.
8311     - Update to the February 7 2012 Maxmind GeoLite Country database.
8313   o Minor bugfixes:
8314     - Downgrade the "We're missing a certificate" message from notice
8315       to info: people kept mistaking it for a real problem, whereas it
8316       is seldom the problem even when we are failing to bootstrap. Fixes
8317       bug 5067; bugfix on 0.2.0.10-alpha.
8318     - Don't put "TOR_PT_EXTENDED_SERVER_PORT=127.0.0.1:4200" in a
8319       managed pluggable transport server proxy's environment.
8320       Previously, we would put it there, even though Tor doesn't
8321       implement an 'extended server port' yet, and even though Tor
8322       almost certainly isn't listening at that address. For now, we set
8323       it to an empty string to avoid crashing older obfsproxies. Bugfix
8324       on 0.2.3.6-alpha.
8325     - Log the heartbeat message every HeartbeatPeriod seconds, not every
8326       HeartbeatPeriod + 1 seconds. Fixes bug 4942; bugfix on
8327       0.2.3.1-alpha. Bug reported by Scott Bennett.
8328     - Calculate absolute paths correctly on Windows. Fixes bug 4973;
8329       bugfix on 0.2.3.11-alpha.
8330     - Update "ClientOnly" man page entry to explain that there isn't
8331       really any point to messing with it. Resolves ticket 5005.
8332     - Use the correct CVE number for CVE-2011-4576 in our comments and
8333       log messages. Found by "fermenthor". Resolves bug 5066; bugfix on
8334       0.2.3.11-alpha.
8336   o Code simplifications and refactoring:
8337     - Use the _WIN32 macro throughout our code to detect Windows.
8338       (Previously we had used the obsolete 'WIN32' and the idiosyncratic
8339       'MS_WINDOWS'.)
8342 Changes in version 0.2.3.11-alpha - 2012-01-22
8343   Tor 0.2.3.11-alpha marks feature-freeze for the 0.2.3 tree. It deploys
8344   the last step of the plan to limit maximum circuit length, includes
8345   a wide variety of hidden service performance and correctness fixes,
8346   works around an OpenSSL security flaw if your distro is too stubborn
8347   to upgrade, and fixes a bunch of smaller issues.
8349   o Major features:
8350     - Now that Tor 0.2.0.x is completely deprecated, enable the final
8351       part of "Proposal 110: Avoiding infinite length circuits" by
8352       refusing all circuit-extend requests that do not use a relay_early
8353       cell. This change helps Tor resist a class of denial-of-service
8354       attacks by limiting the maximum circuit length.
8355     - Adjust the number of introduction points that a hidden service
8356       will try to maintain based on how long its introduction points
8357       remain in use and how many introductions they handle. Fixes
8358       part of bug 3825.
8359     - Try to use system facilities for enumerating local interface
8360       addresses, before falling back to our old approach (which was
8361       binding a UDP socket, and calling getsockname() on it). That
8362       approach was scaring OS X users whose draconian firewall
8363       software warned about binding to UDP sockets, regardless of
8364       whether packets were sent. Now we try to use getifaddrs(),
8365       SIOCGIFCONF, or GetAdaptersAddresses(), depending on what the
8366       system supports. Resolves ticket 1827.
8368   o Major security workaround:
8369     - When building or running with any version of OpenSSL earlier
8370       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
8371       versions have a bug (CVE-2011-4576) in which their block cipher
8372       padding includes uninitialized data, potentially leaking sensitive
8373       information to any peer with whom they make a SSLv3 connection. Tor
8374       does not use SSL v3 by default, but a hostile client or server
8375       could force an SSLv3 connection in order to gain information that
8376       they shouldn't have been able to get. The best solution here is to
8377       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
8378       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
8379       to make sure that the bug can't happen.
8381   o Major bugfixes:
8382     - Fix the SOCKET_OK test that we use to tell when socket
8383       creation fails so that it works on Win64. Fixes part of bug 4533;
8384       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
8385     - Correct our replacements for the timeradd() and timersub() functions
8386       on platforms that lack them (for example, Windows). The timersub()
8387       function is used when expiring circuits, while timeradd() is
8388       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
8389       bugfix on 0.2.2.24-alpha and 0.2.3.1-alpha.
8390     - Do not use OpenSSL 1.0.0's counter mode: it has a critical bug
8391       that was fixed in OpenSSL 1.0.0a. We test for the counter mode
8392       bug at runtime, not compile time, because some distributions hack
8393       their OpenSSL to mis-report its version. Fixes bug 4779; bugfix
8394       on 0.2.3.9-alpha. Found by Pascal.
8396   o Minor features (controller):
8397     - Use absolute path names when reporting the torrc filename in the
8398       control protocol, so a controller can more easily find the torrc
8399       file. Resolves bug 1101.
8400     - Extend the control protocol to report flags that control a circuit's
8401       path selection in CIRC events and in replies to 'GETINFO
8402       circuit-status'. Implements part of ticket 2411.
8403     - Extend the control protocol to report the hidden service address
8404       and current state of a hidden-service-related circuit in CIRC
8405       events and in replies to 'GETINFO circuit-status'. Implements part
8406       of ticket 2411.
8407     - When reporting the path to the cookie file to the controller,
8408       give an absolute path. Resolves ticket 4881.
8409     - Allow controllers to request an event notification whenever a
8410       circuit is cannibalized or its purpose is changed. Implements
8411       part of ticket 3457.
8412     - Include the creation time of a circuit in CIRC and CIRC2
8413       control-port events and the list produced by the 'GETINFO
8414       circuit-status' control-port command.
8416   o Minor features (directory authorities):
8417     - Directory authorities now reject versions of Tor older than
8418       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
8419       inclusive. These versions accounted for only a small fraction of
8420       the Tor network, and have numerous known security issues. Resolves
8421       issue 4788.
8422     - Authority operators can now vote for all relays in a given
8423       set of countries to be BadDir/BadExit/Invalid/Rejected.
8424     - Provide two consensus parameters (FastFlagMinThreshold and
8425       FastFlagMaxThreshold) to control the range of allowable bandwidths
8426       for the Fast directory flag. These allow authorities to run
8427       experiments on appropriate requirements for being a "Fast" node.
8428       The AuthDirFastGuarantee config value still applies. Implements
8429       ticket 3946.
8430     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
8431       directory authority option (introduced in Tor 0.2.2.34).
8433   o Minor features (other):
8434     - Don't disable the DirPort when we cannot exceed our AccountingMax
8435       limit during this interval because the effective bandwidthrate is
8436       low enough. This is useful in a situation where AccountMax is only
8437       used as an additional safeguard or to provide statistics.
8438     - Prepend an informative header to generated dynamic_dh_params files.
8439     - If EntryNodes are given, but UseEntryGuards is set to 0, warn that
8440       EntryNodes will have no effect. Resolves issue 2571.
8441     - Log more useful messages when we fail to disable debugger
8442       attachment.
8443     - Log which authority we're missing votes from when we go to fetch
8444       them from the other auths.
8445     - Log (at debug level) whenever a circuit's purpose is changed.
8446     - Add missing documentation for the MaxClientCircuitsPending,
8447       UseMicrodescriptors, UserspaceIOCPBuffers, and
8448       _UseFilteringSSLBufferevents options, all introduced during
8449       the 0.2.3.x series.
8450     - Update to the January 3 2012 Maxmind GeoLite Country database.
8452   o Minor bugfixes (hidden services):
8453     - Don't close hidden service client circuits which have almost
8454       finished connecting to their destination when they reach
8455       the normal circuit-build timeout. Previously, we would close
8456       introduction circuits which are waiting for an acknowledgement
8457       from the introduction point, and rendezvous circuits which have
8458       been specified in an INTRODUCE1 cell sent to a hidden service,
8459       after the normal CBT. Now, we mark them as 'timed out', and launch
8460       another rendezvous attempt in parallel. This behavior change can
8461       be disabled using the new CloseHSClientCircuitsImmediatelyOnTimeout
8462       option. Fixes part of bug 1297; bugfix on 0.2.2.2-alpha.
8463     - Don't close hidden-service-side rendezvous circuits when they
8464       reach the normal circuit-build timeout. This behavior change can
8465       be disabled using the new
8466       CloseHSServiceRendCircuitsImmediatelyOnTimeout option. Fixes the
8467       remaining part of bug 1297; bugfix on 0.2.2.2-alpha.
8468     - Make sure we never mark the wrong rendezvous circuit as having
8469       had its introduction cell acknowleged by the introduction-point
8470       relay. Previously, when we received an INTRODUCE_ACK cell on a
8471       client-side hidden-service introduction circuit, we might have
8472       marked a rendezvous circuit other than the one we specified in
8473       the INTRODUCE1 cell as INTRO_ACKED, which would have produced
8474       a warning message and interfered with the hidden service
8475       connection-establishment process. Fixes bug 4759; bugfix on
8476       0.2.3.3-alpha, when we added the stream-isolation feature which
8477       might cause Tor to open multiple rendezvous circuits for the same
8478       hidden service.
8479     - Don't trigger an assertion failure when we mark a new client-side
8480       hidden-service introduction circuit for close during the process
8481       of creating it. Fixes bug 4796; bugfix on 0.2.3.6-alpha. Reported
8482       by murb.
8484   o Minor bugfixes (log messages):
8485     - Correctly spell "connect" in a log message on failure to create a
8486       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta and
8487       0.2.3.2-alpha.
8488     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
8489       Fixes bug 4856; bugfix on Tor 0.0.6.
8490     - Fix the log message describing how we work around discovering
8491       that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug
8492       4837; bugfix on 0.2.2.9-alpha.
8493     - When logging about a disallowed .exit name, do not also call it
8494       an "invalid onion address". Fixes bug 3325; bugfix on 0.2.2.9-alpha.
8496   o Minor bugfixes (build fixes):
8497     - During configure, detect when we're building with clang version
8498       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
8499       CFLAGS. clang doesn't support them yet.
8500     - During configure, search for library containing cos function as
8501       libm lives in libcore on some platforms (BeOS/Haiku). Linking
8502       against libm was hard-coded before. Fixes the first part of bug
8503       4727; bugfix on 0.2.2.2-alpha. Patch and analysis by Martin Hebnes
8504       Pedersen.
8505     - Detect attempts to build Tor on (as yet hypothetical) versions
8506       of Windows where sizeof(intptr_t) != sizeof(SOCKET). Partial
8507       fix for bug 4533. Bugfix on 0.2.2.28-beta.
8508     - Preprocessor directives should not be put inside the arguments
8509       of a macro. This would break compilation with GCC releases prior
8510       to version 3.3. We would never recommend such an old GCC version,
8511       but it is apparently required for binary compatibility on some
8512       platforms (namely, certain builds of Haiku). Fixes the other part
8513       of bug 4727; bugfix on 0.2.3.3-alpha. Patch and analysis by Martin
8514       Hebnes Pedersen.
8516   o Minor bugfixes (other):
8517     - Older Linux kernels erroneously respond to strange nmap behavior
8518       by having accept() return successfully with a zero-length
8519       socket. When this happens, just close the connection. Previously,
8520       we would try harder to learn the remote address: but there was
8521       no such remote address to learn, and our method for trying to
8522       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
8523       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
8524     - Fix null-pointer access that could occur if TLS allocation failed.
8525       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un". This was
8526       erroneously listed as fixed in 0.2.3.9-alpha, but the fix had
8527       accidentally been reverted.
8528     - Fix our implementation of crypto_random_hostname() so it can't
8529       overflow on ridiculously large inputs. (No Tor version has ever
8530       provided this kind of bad inputs, but let's be correct in depth.)
8531       Fixes bug 4413; bugfix on 0.2.2.9-alpha. Fix by Stephen Palmateer.
8532     - Find more places in the code that should have been testing for
8533       invalid sockets using the SOCKET_OK macro. Required for a fix
8534       for bug 4533. Bugfix on 0.2.2.28-beta.
8535     - Fix an assertion failure when, while running with bufferevents, a
8536       connection finishes connecting after it is marked for close, but
8537       before it is closed. Fixes bug 4697; bugfix on 0.2.3.1-alpha.
8538     - test_util_spawn_background_ok() hardcoded the expected value
8539       for ENOENT to 2. This isn't portable as error numbers are
8540       platform specific, and particularly the hurd has ENOENT at
8541       0x40000002. Construct expected string at runtime, using the correct
8542       value for ENOENT. Fixes bug 4733; bugfix on 0.2.3.1-alpha.
8543     - Reject attempts to disable DisableDebuggerAttachment while Tor is
8544       running. Fixes bug 4650; bugfix on 0.2.3.9-alpha.
8545     - Use an appropriate-width type for sockets in tor-fw-helper on
8546       win64. Fixes bug 1983 at last. Bugfix on 0.2.3.9-alpha.
8548   o Feature removal:
8549     - When sending or relaying a RELAY_EARLY cell, we used to convert
8550       it to a RELAY cell if the connection was using the v1 link
8551       protocol. This was a workaround for older versions of Tor, which
8552       didn't handle RELAY_EARLY cells properly. Now that all supported
8553       versions can handle RELAY_EARLY cells, and now that we're enforcing
8554       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
8555       remove this workaround. Addresses bug 4786.
8557   o Code simplifications and refactoring:
8558     - Use OpenSSL's built-in SSL_state_string_long() instead of our
8559       own homebrewed ssl_state_to_string() replacement. Patch from
8560       Emile Snyder. Fixes bug 4653.
8561     - Use macros to indicate OpenSSL versions, so we don't need to worry
8562       about accidental hexadecimal bit shifts.
8563     - Remove some workaround code for OpenSSL 0.9.6 (which is no longer
8564       supported).
8565     - Convert more instances of tor_snprintf+tor_strdup into tor_asprintf.
8566     - Use the smartlist_add_asprintf() alias more consistently.
8567     - Use a TOR_INVALID_SOCKET macro when initializing a socket to an
8568       invalid value, rather than just -1.
8569     - Rename a handful of old identifiers, mostly related to crypto
8570       structures and crypto functions. By convention, our "create an
8571       object" functions are called "type_new()", our "free an object"
8572       functions are called "type_free()", and our types indicate that
8573       they are types only with a final "_t". But a handful of older
8574       types and functions broke these rules, with function names like
8575       "type_create" or "subsystem_op_type", or with type names like
8576       type_env_t.
8579 Changes in version 0.2.3.10-alpha - 2011-12-16
8580   Tor 0.2.3.10-alpha fixes a critical heap-overflow security issue in
8581   Tor's buffers code. Absolutely everybody should upgrade.
8583   The bug relied on an incorrect calculation when making data continuous
8584   in one of our IO buffers, if the first chunk of the buffer was
8585   misaligned by just the wrong amount. The miscalculation would allow an
8586   attacker to overflow a piece of heap-allocated memory. To mount this
8587   attack, the attacker would need to either open a SOCKS connection to
8588   Tor's SocksPort (usually restricted to localhost), or target a Tor
8589   instance configured to make its connections through a SOCKS proxy
8590   (which Tor does not do by default).
8592   Good security practice requires that all heap-overflow bugs should be
8593   presumed to be exploitable until proven otherwise, so we are treating
8594   this as a potential code execution attack. Please upgrade immediately!
8595   This bug does not affect bufferevents-based builds of Tor. Special
8596   thanks to "Vektor" for reporting this issue to us!
8598   This release also contains a few minor bugfixes for issues discovered
8599   in 0.2.3.9-alpha.
8601   o Major bugfixes:
8602     - Fix a heap overflow bug that could occur when trying to pull
8603       data into the first chunk of a buffer, when that chunk had
8604       already had some data drained from it. Fixes CVE-2011-2778;
8605       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
8607   o Minor bugfixes:
8608     - If we can't attach streams to a rendezvous circuit when we
8609       finish connecting to a hidden service, clear the rendezvous
8610       circuit's stream-isolation state and try to attach streams
8611       again. Previously, we cleared rendezvous circuits' isolation
8612       state either too early (if they were freshly built) or not at all
8613       (if they had been built earlier and were cannibalized). Bugfix on
8614       0.2.3.3-alpha; fixes bug 4655.
8615     - Fix compilation of the libnatpmp helper on non-Windows. Bugfix on
8616       0.2.3.9-alpha; fixes bug 4691. Reported by Anthony G. Basile.
8617     - Fix an assertion failure when a relay with accounting enabled
8618       starts up while dormant. Fixes bug 4702; bugfix on 0.2.3.9-alpha.
8620   o Minor features:
8621     - Update to the December 6 2011 Maxmind GeoLite Country database.
8624 Changes in version 0.2.2.35 - 2011-12-16
8625   Tor 0.2.2.35 fixes a critical heap-overflow security issue in Tor's
8626   buffers code. Absolutely everybody should upgrade.
8628   The bug relied on an incorrect calculation when making data continuous
8629   in one of our IO buffers, if the first chunk of the buffer was
8630   misaligned by just the wrong amount. The miscalculation would allow an
8631   attacker to overflow a piece of heap-allocated memory. To mount this
8632   attack, the attacker would need to either open a SOCKS connection to
8633   Tor's SocksPort (usually restricted to localhost), or target a Tor
8634   instance configured to make its connections through a SOCKS proxy
8635   (which Tor does not do by default).
8637   Good security practice requires that all heap-overflow bugs should be
8638   presumed to be exploitable until proven otherwise, so we are treating
8639   this as a potential code execution attack. Please upgrade immediately!
8640   This bug does not affect bufferevents-based builds of Tor. Special
8641   thanks to "Vektor" for reporting this issue to us!
8643   Tor 0.2.2.35 also fixes several bugs in previous versions, including
8644   crash bugs for unusual configurations, and a long-term bug that
8645   would prevent Tor from starting on Windows machines with draconian
8646   AV software.
8648   With this release, we remind everyone that 0.2.0.x has reached its
8649   formal end-of-life. Those Tor versions have many known flaws, and
8650   nobody should be using them. You should upgrade -- ideally to the
8651   0.2.2.x series. If you're using a Linux or BSD and its packages are
8652   obsolete, stop using those packages and upgrade anyway.
8654   The Tor 0.2.1.x series is also approaching its end-of-life: it will no
8655   longer receive support after some time in early 2012.
8657   o Major bugfixes:
8658     - Fix a heap overflow bug that could occur when trying to pull
8659       data into the first chunk of a buffer, when that chunk had
8660       already had some data drained from it. Fixes CVE-2011-2778;
8661       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
8662     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
8663       that it doesn't attempt to allocate a socketpair. This could cause
8664       some problems on Windows systems with overzealous firewalls. Fix for
8665       bug 4457; workaround for Libevent versions 2.0.1-alpha through
8666       2.0.15-stable.
8667     - If we mark an OR connection for close based on a cell we process,
8668       don't process any further cells on it. We already avoid further
8669       reads on marked-for-close connections, but now we also discard the
8670       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
8671       which was the first version where we might mark a connection for
8672       close based on processing a cell on it.
8673     - Correctly sanity-check that we don't underflow on a memory
8674       allocation (and then assert) for hidden service introduction
8675       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
8676       bugfix on 0.2.1.5-alpha.
8677     - Fix a memory leak when we check whether a hidden service
8678       descriptor has any usable introduction points left. Fixes bug
8679       4424. Bugfix on 0.2.2.25-alpha.
8680     - Don't crash when we're running as a relay and don't have a GeoIP
8681       file. Bugfix on 0.2.2.34; fixes bug 4340. This backports a fix
8682       we've had in the 0.2.3.x branch already.
8683     - When running as a client, do not print a misleading (and plain
8684       wrong) log message that we're collecting "directory request"
8685       statistics: clients don't collect statistics. Also don't create a
8686       useless (because empty) stats file in the stats/ directory. Fixes
8687       bug 4353; bugfix on 0.2.2.34.
8689   o Minor bugfixes:
8690     - Detect failure to initialize Libevent. This fix provides better
8691       detection for future instances of bug 4457.
8692     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
8693       function. This was eating up hideously large amounts of time on some
8694       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
8695     - Resolve an integer overflow bug in smartlist_ensure_capacity().
8696       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
8697       Mansour Moufid.
8698     - Don't warn about unused log_mutex in log.c when building with
8699       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
8700       0.1.0.6-rc which introduced --disable-threads.
8701     - When configuring, starting, or stopping an NT service, stop
8702       immediately after the service configuration attempt has succeeded
8703       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
8704     - When sending a NETINFO cell, include the original address
8705       received for the other side, not its canonical address. Found
8706       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
8707     - Fix a typo in a hibernation-related log message. Fixes bug 4331;
8708       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
8709     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
8710       occurred when a client tried to fetch a descriptor for a bridge
8711       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
8712     - Backport fixes for a pair of compilation warnings on Windows.
8713       Fixes bug 4521; bugfix on 0.2.2.28-beta and on 0.2.2.29-beta.
8714     - If we had ever tried to call tor_addr_to_str on an address of
8715       unknown type, we would have done a strdup on an uninitialized
8716       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
8717       Reported by "troll_un".
8718     - Correctly detect and handle transient lookup failures from
8719       tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha.
8720       Reported by "troll_un".
8721     - Fix null-pointer access that could occur if TLS allocation failed.
8722       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
8723     - Use tor_socket_t type for listener argument to accept(). Fixes bug
8724       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
8726   o Minor features:
8727     - Add two new config options for directory authorities:
8728       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
8729       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
8730       that is always sufficient to satisfy the bandwidth requirement for
8731       the Guard flag. Now it will be easier for researchers to simulate
8732       Tor networks with different values. Resolves ticket 4484.
8733     - When Tor ignores a hidden service specified in its configuration,
8734       include the hidden service's directory in the warning message.
8735       Previously, we would only tell the user that some hidden service
8736       was ignored. Bugfix on 0.0.6; fixes bug 4426.
8737     - Update to the December 6 2011 Maxmind GeoLite Country database.
8739   o Packaging changes:
8740     - Make it easier to automate expert package builds on Windows,
8741       by removing an absolute path from makensis.exe command.
8744 Changes in version 0.2.1.32 - 2011-12-16
8745   Tor 0.2.1.32 backports important security and privacy fixes for
8746   oldstable. This release is intended only for package maintainers and
8747   others who cannot use the 0.2.2 stable series. All others should be
8748   using Tor 0.2.2.x or newer.
8750   The Tor 0.2.1.x series will reach formal end-of-life some time in
8751   early 2012; we will stop releasing patches for it then.
8753   o Major bugfixes (also included in 0.2.2.x):
8754     - Correctly sanity-check that we don't underflow on a memory
8755       allocation (and then assert) for hidden service introduction
8756       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
8757       bugfix on 0.2.1.5-alpha.
8758     - Fix a heap overflow bug that could occur when trying to pull
8759       data into the first chunk of a buffer, when that chunk had
8760       already had some data drained from it. Fixes CVE-2011-2778;
8761       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
8763   o Minor features:
8764     - Update to the December 6 2011 Maxmind GeoLite Country database.
8767 Changes in version 0.2.3.9-alpha - 2011-12-08
8768   Tor 0.2.3.9-alpha introduces initial IPv6 support for bridges, adds
8769   a "DisableNetwork" security feature that bundles can use to avoid
8770   touching the network until bridges are configured, moves forward on
8771   the pluggable transport design, fixes a flaw in the hidden service
8772   design that unnecessarily prevented clients with wrong clocks from
8773   reaching hidden services, and fixes a wide variety of other issues.
8775   o Major features:
8776     - Clients can now connect to private bridges over IPv6. Bridges
8777       still need at least one IPv4 address in order to connect to
8778       other relays. Note that we don't yet handle the case where the
8779       user has two bridge lines for the same bridge (one IPv4, one
8780       IPv6). Implements parts of proposal 186.
8781     - New "DisableNetwork" config option to prevent Tor from launching any
8782       connections or accepting any connections except on a control port.
8783       Bundles and controllers can set this option before letting Tor talk
8784       to the rest of the network, for example to prevent any connections
8785       to a non-bridge address. Packages like Orbot can also use this
8786       option to instruct Tor to save power when the network is off.
8787     - Clients and bridges can now be configured to use a separate
8788       "transport" proxy. This approach makes the censorship arms race
8789       easier by allowing bridges to use protocol obfuscation plugins. It
8790       implements the "managed proxy" part of proposal 180 (ticket 3472).
8791     - When using OpenSSL 1.0.0 or later, use OpenSSL's counter mode
8792       implementation. It makes AES_CTR about 7% faster than our old one
8793       (which was about 10% faster than the one OpenSSL used to provide).
8794       Resolves ticket 4526.
8795     - Add a "tor2web mode" for clients that want to connect to hidden
8796       services non-anonymously (and possibly more quickly). As a safety
8797       measure to try to keep users from turning this on without knowing
8798       what they are doing, tor2web mode must be explicitly enabled at
8799       compile time, and a copy of Tor compiled to run in tor2web mode
8800       cannot be used as a normal Tor client. Implements feature 2553.
8801     - Add experimental support for running on Windows with IOCP and no
8802       kernel-space socket buffers. This feature is controlled by a new
8803       "UserspaceIOCPBuffers" config option (off by default), which has
8804       no effect unless Tor has been built with support for bufferevents,
8805       is running on Windows, and has enabled IOCP. This may, in the long
8806       run, help solve or mitigate bug 98.
8807     - Use a more secure consensus parameter voting algorithm. Now at
8808       least three directory authorities or a majority of them must
8809       vote on a given parameter before it will be included in the
8810       consensus. Implements proposal 178.
8812   o Major bugfixes:
8813     - Hidden services now ignore the timestamps on INTRODUCE2 cells.
8814       They used to check that the timestamp was within 30 minutes
8815       of their system clock, so they could cap the size of their
8816       replay-detection cache, but that approach unnecessarily refused
8817       service to clients with wrong clocks. Bugfix on 0.2.1.6-alpha, when
8818       the v3 intro-point protocol (the first one which sent a timestamp
8819       field in the INTRODUCE2 cell) was introduced; fixes bug 3460.
8820     - Only use the EVP interface when AES acceleration is enabled,
8821       to avoid a 5-7% performance regression. Resolves issue 4525;
8822       bugfix on 0.2.3.8-alpha.
8824   o Privacy/anonymity features (bridge detection):
8825     - Make bridge SSL certificates a bit more stealthy by using random
8826       serial numbers, in the same fashion as OpenSSL when generating
8827       self-signed certificates. Implements ticket 4584.
8828     - Introduce a new config option "DynamicDHGroups", enabled by
8829       default, which provides each bridge with a unique prime DH modulus
8830       to be used during SSL handshakes. This option attempts to help
8831       against censors who might use the Apache DH modulus as a static
8832       identifier for bridges. Addresses ticket 4548.
8834   o Minor features (new/different config options):
8835     - New configuration option "DisableDebuggerAttachment" (on by default)
8836       to prevent basic debugging attachment attempts by other processes.
8837       Supports Mac OS X and Gnu/Linux. Resolves ticket 3313.
8838     - Allow MapAddress directives to specify matches against super-domains,
8839       as in "MapAddress *.torproject.org *.torproject.org.torserver.exit".
8840       Implements issue 933.
8841     - Slightly change behavior of "list" options (that is, config
8842       options that can appear more than once) when they appear both in
8843       torrc and on the command line. Previously, the command-line options
8844       would be appended to the ones from torrc. Now, the command-line
8845       options override the torrc options entirely. This new behavior
8846       allows the user to override list options (like exit policies and
8847       ports to listen on) from the command line, rather than simply
8848       appending to the list.
8849     - You can get the old (appending) command-line behavior for "list"
8850       options by prefixing the option name with a "+".
8851     - You can remove all the values for a "list" option from the command
8852       line without adding any new ones by prefixing the option name
8853       with a "/".
8854     - Add experimental support for a "defaults" torrc file to be parsed
8855       before the regular torrc. Torrc options override the defaults file's
8856       options in the same way that the command line overrides the torrc.
8857       The SAVECONF controller command saves only those options which
8858       differ between the current configuration and the defaults file. HUP
8859       reloads both files. (Note: This is an experimental feature; its
8860       behavior will probably be refined in future 0.2.3.x-alpha versions
8861       to better meet packagers' needs.) Implements task 4552.
8863   o Minor features:
8864     - Try to make the introductory warning message that Tor prints on
8865       startup more useful for actually finding help and information.
8866       Resolves ticket 2474.
8867     - Running "make version" now displays the version of Tor that
8868       we're about to build. Idea from katmagic; resolves issue 4400.
8869     - Expire old or over-used hidden service introduction points.
8870       Required by fix for bug 3460.
8871     - Move the replay-detection cache for the RSA-encrypted parts of
8872       INTRODUCE2 cells to the introduction point data structures.
8873       Previously, we would use one replay-detection cache per hidden
8874       service. Required by fix for bug 3460.
8875     - Reduce the lifetime of elements of hidden services' Diffie-Hellman
8876       public key replay-detection cache from 60 minutes to 5 minutes. This
8877       replay-detection cache is now used only to detect multiple
8878       INTRODUCE2 cells specifying the same rendezvous point, so we can
8879       avoid launching multiple simultaneous attempts to connect to it.
8881   o Minor bugfixes (on Tor 0.2.2.x and earlier):
8882     - Resolve an integer overflow bug in smartlist_ensure_capacity().
8883       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
8884       Mansour Moufid.
8885     - Fix a minor formatting issue in one of tor-gencert's error messages.
8886       Fixes bug 4574.
8887     - Prevent a false positive from the check-spaces script, by disabling
8888       the "whitespace between function name and (" check for functions
8889       named 'op()'.
8890     - Fix a log message suggesting that people contact a non-existent
8891       email address. Fixes bug 3448.
8892     - Fix null-pointer access that could occur if TLS allocation failed.
8893       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
8894     - Report a real bootstrap problem to the controller on router
8895       identity mismatch. Previously we just said "foo", which probably
8896       made a lot of sense at the time. Fixes bug 4169; bugfix on
8897       0.2.1.1-alpha.
8898     - If we had ever tried to call tor_addr_to_str() on an address of
8899       unknown type, we would have done a strdup() on an uninitialized
8900       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
8901       Reported by "troll_un".
8902     - Correctly detect and handle transient lookup failures from
8903       tor_addr_lookup(). Fixes bug 4530; bugfix on 0.2.1.5-alpha.
8904       Reported by "troll_un".
8905     - Use tor_socket_t type for listener argument to accept(). Fixes bug
8906       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
8907     - Initialize conn->addr to a valid state in spawn_cpuworker(). Fixes
8908       bug 4532; found by "troll_un".
8910   o Minor bugfixes (on Tor 0.2.3.x):
8911     - Fix a compile warning in tor_inet_pton(). Bugfix on 0.2.3.8-alpha;
8912       fixes bug 4554.
8913     - Don't send two ESTABLISH_RENDEZVOUS cells when opening a new
8914       circuit for use as a hidden service client's rendezvous point.
8915       Fixes bugs 4641 and 4171; bugfix on 0.2.3.3-alpha. Diagnosed
8916       with help from wanoskarnet.
8917     - Restore behavior of overriding SocksPort, ORPort, and similar
8918       options from the command line. Bugfix on 0.2.3.3-alpha.
8920   o Build fixes:
8921     - Properly handle the case where the build-tree is not the same
8922       as the source tree when generating src/common/common_sha1.i,
8923       src/or/micro-revision.i, and src/or/or_sha1.i. Fixes bug 3953;
8924       bugfix on 0.2.0.1-alpha.
8926   o Code simplifications, cleanups, and refactorings:
8927     - Remove the pure attribute from all functions that used it
8928       previously. In many cases we assigned it incorrectly, because the
8929       functions might assert or call impure functions, and we don't have
8930       evidence that keeping the pure attribute is worthwhile. Implements
8931       changes suggested in ticket 4421.
8932     - Remove some dead code spotted by coverity. Fixes cid 432.
8933       Bugfix on 0.2.3.1-alpha, closes bug 4637.
8936 Changes in version 0.2.3.8-alpha - 2011-11-22
8937   Tor 0.2.3.8-alpha fixes some crash and assert bugs, including a
8938   socketpair-related bug that has been bothering Windows users. It adds
8939   support to serve microdescriptors to controllers, so Vidalia's network
8940   map can resume listing relays (once Vidalia implements its side),
8941   and adds better support for hardware AES acceleration. Finally, it
8942   starts the process of adjusting the bandwidth cutoff for getting the
8943   "Fast" flag from 20KB to (currently) 32KB -- preliminary results show
8944   that tiny relays harm performance more than they help network capacity.
8946   o Major bugfixes:
8947     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
8948       that it doesn't attempt to allocate a socketpair. This could cause
8949       some problems on Windows systems with overzealous firewalls. Fix for
8950       bug 4457; workaround for Libevent versions 2.0.1-alpha through
8951       2.0.15-stable.
8952     - Correctly sanity-check that we don't underflow on a memory
8953       allocation (and then assert) for hidden service introduction
8954       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
8955       bugfix on 0.2.1.5-alpha.
8956     - Remove the artificially low cutoff of 20KB to guarantee the Fast
8957       flag. In the past few years the average relay speed has picked
8958       up, and while the "top 7/8 of the network get the Fast flag" and
8959       "all relays with 20KB or more of capacity get the Fast flag" rules
8960       used to have the same result, now the top 7/8 of the network has
8961       a capacity more like 32KB. Bugfix on 0.2.1.14-rc. Fixes bug 4489.
8962     - Fix a rare assertion failure when checking whether a v0 hidden
8963       service descriptor has any usable introduction points left, and
8964       we don't have enough information to build a circuit to the first
8965       intro point named in the descriptor. The HS client code in
8966       0.2.3.x no longer uses v0 HS descriptors, but this assertion can
8967       trigger on (and crash) v0 HS authorities. Fixes bug 4411.
8968       Bugfix on 0.2.3.1-alpha; diagnosed by frosty_un.
8969     - Make bridge authorities not crash when they are asked for their own
8970       descriptor. Bugfix on 0.2.3.7-alpha, reported by Lucky Green.
8971     - When running as a client, do not print a misleading (and plain
8972       wrong) log message that we're collecting "directory request"
8973       statistics: clients don't collect statistics. Also don't create a
8974       useless (because empty) stats file in the stats/ directory. Fixes
8975       bug 4353; bugfix on 0.2.2.34 and 0.2.3.7-alpha.
8977   o Major features:
8978     - Allow Tor controllers like Vidalia to obtain the microdescriptor
8979       for a relay by identity digest or nickname. Previously,
8980       microdescriptors were only available by their own digests, so a
8981       controller would have to ask for and parse the whole microdescriptor
8982       consensus in order to look up a single relay's microdesc. Fixes
8983       bug 3832; bugfix on 0.2.3.1-alpha.
8984     - Use OpenSSL's EVP interface for AES encryption, so that all AES
8985       operations can use hardware acceleration (if present). Resolves
8986       ticket 4442.
8988   o Minor bugfixes (on 0.2.2.x and earlier):
8989     - Detect failure to initialize Libevent. This fix provides better
8990       detection for future instances of bug 4457.
8991     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
8992       function. This was eating up hideously large amounts of time on some
8993       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
8994     - Don't warn about unused log_mutex in log.c when building with
8995       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
8996       0.1.0.6-rc which introduced --disable-threads.
8997     - Allow manual 'authenticate' commands to the controller interface
8998       from netcat (nc) as well as telnet. We were rejecting them because
8999       they didn't come with the expected whitespace at the end of the
9000       command. Bugfix on 0.1.1.1-alpha; fixes bug 2893.
9001     - Fix some (not actually triggerable) buffer size checks in usage of
9002       tor_inet_ntop. Fixes bug 4434; bugfix on Tor 0.2.0.1-alpha. Patch
9003       by Anders Sundman.
9004     - Fix parsing of some corner-cases with tor_inet_pton(). Fixes
9005       bug 4515; bugfix on 0.2.0.1-alpha; fix by Anders Sundman.
9006     - When configuring, starting, or stopping an NT service, stop
9007       immediately after the service configuration attempt has succeeded
9008       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
9009     - When sending a NETINFO cell, include the original address
9010       received for the other side, not its canonical address. Found
9011       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
9012     - Rename the bench_{aes,dmap} functions to test_*, so that tinytest
9013       can pick them up when the tests aren't disabled. Bugfix on
9014       0.2.2.4-alpha which introduced tinytest.
9015     - Fix a memory leak when we check whether a hidden service
9016       descriptor has any usable introduction points left. Fixes bug
9017       4424. Bugfix on 0.2.2.25-alpha.
9018     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
9019       occurred when a client tried to fetch a descriptor for a bridge
9020       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
9022   o Minor bugfixes (on 0.2.3.x):
9023     - Make util unit tests build correctly with MSVC. Bugfix on
9024       0.2.3.3-alpha. Patch by Gisle Vanem.
9025     - Successfully detect AUTH_CHALLENGE cells with no recognized
9026       authentication type listed. Fixes bug 4367; bugfix on 0.2.3.6-alpha.
9027       Found by frosty_un.
9028     - If a relay receives an AUTH_CHALLENGE cell it can't answer,
9029       it should still send a NETINFO cell to allow the connection to
9030       become open. Fixes bug 4368; fix on 0.2.3.6-alpha; bug found by
9031       "frosty".
9032     - Log less loudly when we get an invalid authentication certificate
9033       from a source other than a directory authority: it's not unusual
9034       to see invalid certs because of clock skew. Fixes bug 4370; bugfix
9035       on 0.2.3.6-alpha.
9036     - Tolerate servers with more clock skew in their authentication
9037       certificates than previously. Fixes bug 4371; bugfix on
9038       0.2.3.6-alpha.
9039     - Fix a couple of compile warnings on Windows. Fixes bug 4469; bugfix
9040       on 0.2.3.4-alpha and 0.2.3.6-alpha.
9042   o Minor features:
9043     - Add two new config options for directory authorities:
9044       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
9045       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
9046       that is always sufficient to satisfy the bandwidth requirement for
9047       the Guard flag. Now it will be easier for researchers to simulate
9048       Tor networks with different values. Resolves ticket 4484.
9049     - When Tor ignores a hidden service specified in its configuration,
9050       include the hidden service's directory in the warning message.
9051       Previously, we would only tell the user that some hidden service
9052       was ignored. Bugfix on 0.0.6; fixes bug 4426.
9053     - When we fail to initialize Libevent, retry with IOCP disabled so we
9054       don't need to turn on multi-threading support in Libevent, which in
9055       turn requires a working socketpair(). This is a workaround for bug
9056       4457, which affects Libevent versions from 2.0.1-alpha through
9057       2.0.15-stable.
9058     - Detect when we try to build on a platform that doesn't define
9059       AF_UNSPEC to 0. We don't work there, so refuse to compile.
9060     - Update to the November 1 2011 Maxmind GeoLite Country database.
9062   o Packaging changes:
9063     - Make it easier to automate expert package builds on Windows,
9064       by removing an absolute path from makensis.exe command.
9066   o Code simplifications and refactoring:
9067     - Remove some redundant #include directives throughout the code.
9068       Patch from Andrea Gelmini.
9069     - Unconditionally use OpenSSL's AES implementation instead of our
9070       old built-in one. OpenSSL's AES has been better for a while, and
9071       relatively few servers should still be on any version of OpenSSL
9072       that doesn't have good optimized assembly AES.
9073     - Use the name "CERTS" consistently to refer to the new cell type;
9074       we were calling it CERT in some places and CERTS in others.
9076   o Testing:
9077     - Numerous new unit tests for functions in util.c and address.c by
9078       Anders Sundman.
9079     - The long-disabled benchmark tests are now split into their own
9080       ./src/test/bench binary.
9081     - The benchmark tests can now use more accurate timers than
9082       gettimeofday() when such timers are available.
9085 Changes in version 0.2.3.7-alpha - 2011-10-30
9086   Tor 0.2.3.7-alpha fixes a crash bug in 0.2.3.6-alpha introduced by
9087   the new v3 handshake. It also resolves yet another bridge address
9088   enumeration issue.
9090   o Major bugfixes:
9091     - If we mark an OR connection for close based on a cell we process,
9092       don't process any further cells on it. We already avoid further
9093       reads on marked-for-close connections, but now we also discard the
9094       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
9095       which was the first version where we might mark a connection for
9096       close based on processing a cell on it.
9097     - Fix a double-free bug that would occur when we received an invalid
9098       certificate in a CERT cell in the new v3 handshake. Fixes bug 4343;
9099       bugfix on 0.2.3.6-alpha.
9100     - Bridges no longer include their address in NETINFO cells on outgoing
9101       OR connections, to allow them to blend in better with clients.
9102       Removes another avenue for enumerating bridges. Reported by
9103       "troll_un". Fixes bug 4348; bugfix on 0.2.0.10-alpha, when NETINFO
9104       cells were introduced.
9106   o Trivial fixes:
9107     - Fixed a typo in a hibernation-related log message. Fixes bug 4331;
9108       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
9111 Changes in version 0.2.3.6-alpha - 2011-10-26
9112   Tor 0.2.3.6-alpha includes the fix from 0.2.2.34 for a critical
9113   anonymity vulnerability where an attacker can deanonymize Tor
9114   users. Everybody should upgrade.
9116   This release also features support for a new v3 connection handshake
9117   protocol, and fixes to make hidden service connections more robust.
9119   o Major features:
9120     - Implement a new handshake protocol (v3) for authenticating Tors to
9121       each other over TLS. It should be more resistant to fingerprinting
9122       than previous protocols, and should require less TLS hacking for
9123       future Tor implementations. Implements proposal 176.
9124     - Allow variable-length padding cells to disguise the length of
9125       Tor's TLS records. Implements part of proposal 184.
9127   o Privacy/anonymity fixes (clients):
9128     - Clients and bridges no longer send TLS certificate chains on
9129       outgoing OR connections. Previously, each client or bridge would
9130       use the same cert chain for all outgoing OR connections until
9131       its IP address changes, which allowed any relay that the client
9132       or bridge contacted to determine which entry guards it is using.
9133       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
9134     - If a relay receives a CREATE_FAST cell on a TLS connection, it
9135       no longer considers that connection as suitable for satisfying a
9136       circuit EXTEND request. Now relays can protect clients from the
9137       CVE-2011-2768 issue even if the clients haven't upgraded yet.
9138     - Directory authorities no longer assign the Guard flag to relays
9139       that haven't upgraded to the above "refuse EXTEND requests
9140       to client connections" fix. Now directory authorities can
9141       protect clients from the CVE-2011-2768 issue even if neither
9142       the clients nor the relays have upgraded yet. There's a new
9143       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
9144       to let us transition smoothly, else tomorrow there would be no
9145       guard relays.
9147   o Major bugfixes (hidden services):
9148     - Improve hidden service robustness: when an attempt to connect to
9149       a hidden service ends, be willing to refetch its hidden service
9150       descriptors from each of the HSDir relays responsible for them
9151       immediately. Previously, we would not consider refetching the
9152       service's descriptors from each HSDir for 15 minutes after the last
9153       fetch, which was inconvenient if the hidden service was not running
9154       during the first attempt. Bugfix on 0.2.0.18-alpha; fixes bug 3335.
9155     - When one of a hidden service's introduction points appears to be
9156       unreachable, stop trying it. Previously, we would keep trying
9157       to build circuits to the introduction point until we lost the
9158       descriptor, usually because the user gave up and restarted Tor.
9159       Partly fixes bug 3825.
9160     - Don't launch a useless circuit after failing to use one of a
9161       hidden service's introduction points. Previously, we would
9162       launch a new introduction circuit, but not set the hidden service
9163       which that circuit was intended to connect to, so it would never
9164       actually be used. A different piece of code would then create a
9165       new introduction circuit correctly. Bug reported by katmagic and
9166       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
9168   o Major bugfixes (other):
9169     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
9170       that they initiated. Relays could distinguish incoming bridge
9171       connections from client connections, creating another avenue for
9172       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
9173       Found by "frosty_un".
9174     - Don't update the AccountingSoftLimitHitAt state file entry whenever
9175       tor gets started. This prevents a wrong average bandwidth
9176       estimate, which would cause relays to always start a new accounting
9177       interval at the earliest possible moment. Fixes bug 2003; bugfix
9178       on 0.2.2.7-alpha. Reported by BryonEldridge, who also helped
9179       immensely in tracking this bug down.
9180     - Fix a crash bug when changing node restrictions while a DNS lookup
9181       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
9182       by "Tey'".
9184   o Minor bugfixes (on 0.2.2.x and earlier):
9185     - When a hidden service turns an extra service-side introduction
9186       circuit into a general-purpose circuit, free the rend_data and
9187       intro_key fields first, so we won't leak memory if the circuit
9188       is cannibalized for use as another service-side introduction
9189       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
9190     - Rephrase the log message emitted if the TestSocks check is
9191       successful. Patch from Fabian Keil; fixes bug 4094.
9192     - Bridges now skip DNS self-tests, to act a little more stealthily.
9193       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
9194       bridges. Patch by "warms0x".
9195     - Remove a confusing dollar sign from the example fingerprint in the
9196       man page, and also make the example fingerprint a valid one. Fixes
9197       bug 4309; bugfix on 0.2.1.3-alpha.
9198     - Fix internal bug-checking logic that was supposed to catch
9199       failures in digest generation so that it will fail more robustly
9200       if we ask for a nonexistent algorithm. Found by Coverity Scan.
9201       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
9202     - Report any failure in init_keys() calls launched because our
9203       IP address has changed. Spotted by Coverity Scan. Bugfix on
9204       0.1.1.4-alpha; fixes CID 484.
9206   o Minor bugfixes (on 0.2.3.x):
9207     - Fix a bug in configure.in that kept it from building a configure
9208       script with autoconf versions earlier than 2.61. Fixes bug 2430;
9209       bugfix on 0.2.3.1-alpha.
9210     - Don't warn users that they are exposing a client port to the
9211       Internet if they have specified an RFC1918 address. Previously,
9212       we would warn if the user had specified any non-loopback
9213       address. Bugfix on 0.2.3.3-alpha. Fixes bug 4018; reported by Tas.
9214     - Fix memory leaks in the failing cases of the new SocksPort and
9215       ControlPort code. Found by Coverity Scan. Bugfix on 0.2.3.3-alpha;
9216       fixes coverity CIDs 485, 486, and 487.
9218   o Minor features:
9219     - When a hidden service's introduction point times out, consider
9220       trying it again during the next attempt to connect to the
9221       HS. Previously, we would not try it again unless a newly fetched
9222       descriptor contained it. Required by fixes for bugs 1297 and 3825.
9223     - The next version of Windows will be called Windows 8, and it has
9224       a major version of 6, minor version of 2. Correctly identify that
9225       version instead of calling it "Very recent version". Resolves
9226       ticket 4153; reported by funkstar.
9227     - The Bridge Authority now writes statistics on how many bridge
9228       descriptors it gave out in total, and how many unique descriptors
9229       it gave out. It also lists how often the most and least commonly
9230       fetched descriptors were given out, as well as the median and
9231       25th/75th percentile. Implements tickets 4200 and 4294.
9232     - Update to the October 4 2011 Maxmind GeoLite Country database.
9234   o Code simplifications and refactoring:
9235     - Remove some old code to remember statistics about which descriptors
9236       we've served as a directory mirror. The feature wasn't used and
9237       is outdated now that microdescriptors are around.
9238     - Rename Tor functions that turn strings into addresses, so that
9239       "parse" indicates that no hostname resolution occurs, and
9240       "lookup" indicates that hostname resolution may occur. This
9241       should help prevent mistakes in the future. Fixes bug 3512.
9244 Changes in version 0.2.2.34 - 2011-10-26
9245   Tor 0.2.2.34 fixes a critical anonymity vulnerability where an attacker
9246   can deanonymize Tor users. Everybody should upgrade.
9248   The attack relies on four components: 1) Clients reuse their TLS cert
9249   when talking to different relays, so relays can recognize a user by
9250   the identity key in her cert. 2) An attacker who knows the client's
9251   identity key can probe each guard relay to see if that identity key
9252   is connected to that guard relay right now. 3) A variety of active
9253   attacks in the literature (starting from "Low-Cost Traffic Analysis
9254   of Tor" by Murdoch and Danezis in 2005) allow a malicious website to
9255   discover the guard relays that a Tor user visiting the website is using.
9256   4) Clients typically pick three guards at random, so the set of guards
9257   for a given user could well be a unique fingerprint for her. This
9258   release fixes components #1 and #2, which is enough to block the attack;
9259   the other two remain as open research problems. Special thanks to
9260   "frosty_un" for reporting the issue to us!
9262   Clients should upgrade so they are no longer recognizable by the TLS
9263   certs they present. Relays should upgrade so they no longer allow a
9264   remote attacker to probe them to test whether unpatched clients are
9265   currently connected to them.
9267   This release also fixes several vulnerabilities that allow an attacker
9268   to enumerate bridge relays. Some bridge enumeration attacks still
9269   remain; see for example proposal 188.
9271   o Privacy/anonymity fixes (clients):
9272     - Clients and bridges no longer send TLS certificate chains on
9273       outgoing OR connections. Previously, each client or bridge would
9274       use the same cert chain for all outgoing OR connections until
9275       its IP address changes, which allowed any relay that the client
9276       or bridge contacted to determine which entry guards it is using.
9277       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
9278     - If a relay receives a CREATE_FAST cell on a TLS connection, it
9279       no longer considers that connection as suitable for satisfying a
9280       circuit EXTEND request. Now relays can protect clients from the
9281       CVE-2011-2768 issue even if the clients haven't upgraded yet.
9282     - Directory authorities no longer assign the Guard flag to relays
9283       that haven't upgraded to the above "refuse EXTEND requests
9284       to client connections" fix. Now directory authorities can
9285       protect clients from the CVE-2011-2768 issue even if neither
9286       the clients nor the relays have upgraded yet. There's a new
9287       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
9288       to let us transition smoothly, else tomorrow there would be no
9289       guard relays.
9291   o Privacy/anonymity fixes (bridge enumeration):
9292     - Bridge relays now do their directory fetches inside Tor TLS
9293       connections, like all the other clients do, rather than connecting
9294       directly to the DirPort like public relays do. Removes another
9295       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
9296     - Bridges relays now build circuits for themselves in a more similar
9297       way to how clients build them. Removes another avenue for
9298       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
9299       when bridges were introduced.
9300     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
9301       that they initiated. Relays could distinguish incoming bridge
9302       connections from client connections, creating another avenue for
9303       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
9304       Found by "frosty_un".
9306   o Major bugfixes:
9307     - Fix a crash bug when changing node restrictions while a DNS lookup
9308       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
9309       by "Tey'".
9310     - Don't launch a useless circuit after failing to use one of a
9311       hidden service's introduction points. Previously, we would
9312       launch a new introduction circuit, but not set the hidden service
9313       which that circuit was intended to connect to, so it would never
9314       actually be used. A different piece of code would then create a
9315       new introduction circuit correctly. Bug reported by katmagic and
9316       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
9318   o Minor bugfixes:
9319     - Change an integer overflow check in the OpenBSD_Malloc code so
9320       that GCC is less likely to eliminate it as impossible. Patch
9321       from Mansour Moufid. Fixes bug 4059.
9322     - When a hidden service turns an extra service-side introduction
9323       circuit into a general-purpose circuit, free the rend_data and
9324       intro_key fields first, so we won't leak memory if the circuit
9325       is cannibalized for use as another service-side introduction
9326       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
9327     - Bridges now skip DNS self-tests, to act a little more stealthily.
9328       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
9329       bridges. Patch by "warms0x".
9330     - Fix internal bug-checking logic that was supposed to catch
9331       failures in digest generation so that it will fail more robustly
9332       if we ask for a nonexistent algorithm. Found by Coverity Scan.
9333       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
9334     - Report any failure in init_keys() calls launched because our
9335       IP address has changed. Spotted by Coverity Scan. Bugfix on
9336       0.1.1.4-alpha; fixes CID 484.
9338   o Minor bugfixes (log messages and documentation):
9339     - Remove a confusing dollar sign from the example fingerprint in the
9340       man page, and also make the example fingerprint a valid one. Fixes
9341       bug 4309; bugfix on 0.2.1.3-alpha.
9342     - The next version of Windows will be called Windows 8, and it has
9343       a major version of 6, minor version of 2. Correctly identify that
9344       version instead of calling it "Very recent version". Resolves
9345       ticket 4153; reported by funkstar.
9346     - Downgrade log messages about circuit timeout calibration from
9347       "notice" to "info": they don't require or suggest any human
9348       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
9349       bugfix on 0.2.2.14-alpha.
9351   o Minor features:
9352     - Turn on directory request statistics by default and include them in
9353       extra-info descriptors. Don't break if we have no GeoIP database.
9354       Backported from 0.2.3.1-alpha; implements ticket 3951.
9355     - Update to the October 4 2011 Maxmind GeoLite Country database.
9358 Changes in version 0.2.1.31 - 2011-10-26
9359   Tor 0.2.1.31 backports important security and privacy fixes for
9360   oldstable. This release is intended only for package maintainers and
9361   others who cannot use the 0.2.2 stable series. All others should be
9362   using Tor 0.2.2.x or newer.
9364   o Security fixes (also included in 0.2.2.x):
9365     - Replace all potentially sensitive memory comparison operations
9366       with versions whose runtime does not depend on the data being
9367       compared. This will help resist a class of attacks where an
9368       adversary can use variations in timing information to learn
9369       sensitive data. Fix for one case of bug 3122. (Safe memcmp
9370       implementation by Robert Ransom based partially on code by DJB.)
9371     - Fix an assert in parsing router descriptors containing IPv6
9372       addresses. This one took down the directory authorities when
9373       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
9375   o Privacy/anonymity fixes (also included in 0.2.2.x):
9376     - Clients and bridges no longer send TLS certificate chains on
9377       outgoing OR connections. Previously, each client or bridge would
9378       use the same cert chain for all outgoing OR connections until
9379       its IP address changes, which allowed any relay that the client
9380       or bridge contacted to determine which entry guards it is using.
9381       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
9382     - If a relay receives a CREATE_FAST cell on a TLS connection, it
9383       no longer considers that connection as suitable for satisfying a
9384       circuit EXTEND request. Now relays can protect clients from the
9385       CVE-2011-2768 issue even if the clients haven't upgraded yet.
9386     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
9387       that they initiated. Relays could distinguish incoming bridge
9388       connections from client connections, creating another avenue for
9389       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
9390       Found by "frosty_un".
9391     - When receiving a hidden service descriptor, check that it is for
9392       the hidden service we wanted. Previously, Tor would store any
9393       hidden service descriptors that a directory gave it, whether it
9394       wanted them or not. This wouldn't have let an attacker impersonate
9395       a hidden service, but it did let directories pre-seed a client
9396       with descriptors that it didn't want. Bugfix on 0.0.6.
9397     - Avoid linkability based on cached hidden service descriptors: forget
9398       all hidden service descriptors cached as a client when processing a
9399       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
9400     - Make the bridge directory authority refuse to answer directory
9401       requests for "all" descriptors. It used to include bridge
9402       descriptors in its answer, which was a major information leak.
9403       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
9404     - Don't attach new streams to old rendezvous circuits after SIGNAL
9405       NEWNYM. Previously, we would keep using an existing rendezvous
9406       circuit if it remained open (i.e. if it were kept open by a
9407       long-lived stream, or if a new stream were attached to it before
9408       Tor could notice that it was old and no longer in use). Bugfix on
9409       0.1.1.15-rc; fixes bug 3375.
9411   o Minor bugfixes (also included in 0.2.2.x):
9412     - When we restart our relay, we might get a successful connection
9413       from the outside before we've started our reachability tests,
9414       triggering a warning: "ORPort found reachable, but I have no
9415       routerinfo yet. Failing to inform controller of success." This
9416       bug was harmless unless Tor is running under a controller
9417       like Vidalia, in which case the controller would never get a
9418       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
9419       fixes bug 1172.
9420     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
9421       enabled. Fixes bug 1526.
9422     - Remove undocumented option "-F" from tor-resolve: it hasn't done
9423       anything since 0.2.1.16-rc.
9424     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
9425       None of the cases where we did this before were wrong, but by making
9426       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
9427     - Fix a rare crash bug that could occur when a client was configured
9428       with a large number of bridges. Fixes bug 2629; bugfix on
9429       0.2.1.2-alpha. Bugfix by trac user "shitlei".
9430     - Correct the warning displayed when a rendezvous descriptor exceeds
9431       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
9432       John Brooks.
9433     - Fix an uncommon assertion failure when running with DNSPort under
9434       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
9435     - When warning about missing zlib development packages during compile,
9436       give the correct package names. Bugfix on 0.2.0.1-alpha.
9437     - Require that introduction point keys and onion keys have public
9438       exponent 65537. Bugfix on 0.2.0.10-alpha.
9439     - Do not crash when our configuration file becomes unreadable, for
9440       example due to a permissions change, between when we start up
9441       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
9442       on 0.0.9pre6.
9443     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
9444       Fixes bug 3208.
9445     - Always NUL-terminate the sun_path field of a sockaddr_un before
9446       passing it to the kernel. (Not a security issue: kernels are
9447       smart enough to reject bad sockaddr_uns.) Found by Coverity;
9448       CID #428. Bugfix on Tor 0.2.0.3-alpha.
9449     - Don't stack-allocate the list of supplementary GIDs when we're
9450       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
9451       could take up to 256K, which is way too much stack. Found by
9452       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
9454   o Minor bugfixes (only in 0.2.1.x):
9455     - Resume using micro-version numbers in 0.2.1.x: our Debian packages
9456       rely on them. Bugfix on 0.2.1.30.
9457     - Use git revisions instead of svn revisions when generating our
9458       micro-version numbers. Bugfix on 0.2.1.15-rc; fixes bug 2402.
9460   o Minor features (also included in 0.2.2.x):
9461     - Adjust the expiration time on our SSL session certificates to
9462       better match SSL certs seen in the wild. Resolves ticket 4014.
9463     - Allow nameservers with IPv6 address. Resolves bug 2574.
9464     - Update to the October 4 2011 Maxmind GeoLite Country database.
9467 Changes in version 0.2.3.5-alpha - 2011-09-28
9468   Tor 0.2.3.5-alpha fixes two bugs that make it possible to enumerate
9469   bridge relays; fixes an assertion error that many users started hitting
9470   today; and adds the ability to refill token buckets more often than
9471   once per second, allowing significant performance improvements.
9473   o Security fixes:
9474     - Bridge relays now do their directory fetches inside Tor TLS
9475       connections, like all the other clients do, rather than connecting
9476       directly to the DirPort like public relays do. Removes another
9477       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
9478     - Bridges relays now build circuits for themselves in a more similar
9479       way to how clients build them. Removes another avenue for
9480       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
9481       when bridges were introduced.
9483   o Major bugfixes:
9484     - Fix an "Assertion md->held_by_node == 1 failed" error that could
9485       occur when the same microdescriptor was referenced by two node_t
9486       objects at once. Fix for bug 4118; bugfix on Tor 0.2.3.1-alpha.
9488   o Major features (networking):
9489     - Add a new TokenBucketRefillInterval option to refill token buckets
9490       more frequently than once per second. This should improve network
9491       performance, alleviate queueing problems, and make traffic less
9492       bursty. Implements proposal 183; closes ticket 3630. Design by
9493       Florian Tschorsch and Björn Scheuermann; implementation by
9494       Florian Tschorsch.
9496   o Minor bugfixes:
9497     - Change an integer overflow check in the OpenBSD_Malloc code so
9498       that GCC is less likely to eliminate it as impossible. Patch
9499       from Mansour Moufid. Fixes bug 4059.
9501   o Minor bugfixes (usability):
9502     - Downgrade log messages about circuit timeout calibration from
9503       "notice" to "info": they don't require or suggest any human
9504       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
9505       bugfix on 0.2.2.14-alpha.
9507   o Minor features (diagnostics):
9508     - When the system call to create a listener socket fails, log the
9509       error message explaining why. This may help diagnose bug 4027.
9512 Changes in version 0.2.3.4-alpha - 2011-09-13
9513   Tor 0.2.3.4-alpha includes the fixes from 0.2.2.33, including a slight
9514   tweak to Tor's TLS handshake that makes relays and bridges that run
9515   this new version reachable from Iran again. It also fixes a few new
9516   bugs in 0.2.3.x, and teaches relays to recognize when they're not
9517   listed in the network consensus and republish.
9519   o Major bugfixes (also part of 0.2.2.33):
9520     - Avoid an assertion failure when reloading a configuration with
9521       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
9522       3923; bugfix on 0.2.2.25-alpha.
9524   o Minor features (security, also part of 0.2.2.33):
9525     - Check for replays of the public-key encrypted portion of an
9526       INTRODUCE1 cell, in addition to the current check for replays of
9527       the g^x value. This prevents a possible class of active attacks
9528       by an attacker who controls both an introduction point and a
9529       rendezvous point, and who uses the malleability of AES-CTR to
9530       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
9531       that these attacks are infeasible (requiring the attacker to send
9532       on the order of zettabytes of altered cells in a short interval),
9533       but we'd rather block them off in case there are any classes of
9534       this attack that we missed. Reported by Willem Pinckaers.
9536   o Minor features (also part of 0.2.2.33):
9537     - Adjust the expiration time on our SSL session certificates to
9538       better match SSL certs seen in the wild. Resolves ticket 4014.
9539     - Change the default required uptime for a relay to be accepted as
9540       a HSDir (hidden service directory) from 24 hours to 25 hours.
9541       Improves on 0.2.0.10-alpha; resolves ticket 2649.
9542     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
9543       authorities to abstain from voting on assignment of the HSDir
9544       consensus flag. Related to bug 2649.
9545     - Update to the September 6 2011 Maxmind GeoLite Country database.
9547   o Minor bugfixes (also part of 0.2.2.33):
9548     - Demote the 'replay detected' log message emitted when a hidden
9549       service receives the same Diffie-Hellman public key in two different
9550       INTRODUCE2 cells to info level. A normal Tor client can cause that
9551       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
9552       fixes part of bug 2442.
9553     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
9554       level. There is nothing that a hidden service's operator can do
9555       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
9556       of bug 2442.
9557     - Clarify a log message specifying the characters permitted in
9558       HiddenServiceAuthorizeClient client names. Previously, the log
9559       message said that "[A-Za-z0-9+-_]" were permitted; that could have
9560       given the impression that every ASCII character between "+" and "_"
9561       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
9563   o Build fixes (also part of 0.2.2.33):
9564     - Clean up some code issues that prevented Tor from building on older
9565       BSDs. Fixes bug 3894; reported by "grarpamp".
9566     - Search for a platform-specific version of "ar" when cross-compiling.
9567       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
9569   o Major bugfixes:
9570     - Fix a bug where the SocksPort option (for example) would get
9571       ignored and replaced by the default if a SocksListenAddress
9572       option was set. Bugfix on 0.2.3.3-alpha; fixes bug 3936. Fix by
9573       Fabian Keil.
9575   o Major features:
9576     - Relays now try regenerating and uploading their descriptor more
9577       frequently if they are not listed in the consensus, or if the
9578       version of their descriptor listed in the consensus is too
9579       old. This fix should prevent situations where a server declines
9580       to re-publish itself because it has done so too recently, even
9581       though the authorities decided not to list its recent-enough
9582       descriptor. Fix for bug 3327.
9584   o Minor features:
9585     - Relays now include a reason for regenerating their descriptors
9586       in an HTTP header when uploading to the authorities. This will
9587       make it easier to debug descriptor-upload issues in the future.
9588     - When starting as root and then changing our UID via the User
9589       control option, and we have a ControlSocket configured, make sure
9590       that the ControlSocket is owned by the same account that Tor will
9591       run under. Implements ticket 3421; fix by Jérémy Bobbio.
9593   o Minor bugfixes:
9594     - Abort if tor_vasprintf fails in connection_printf_to_buf (a
9595       utility function used in the control-port code). This shouldn't
9596       ever happen unless Tor is completely out of memory, but if it did
9597       happen and Tor somehow recovered from it, Tor could have sent a log
9598       message to a control port in the middle of a reply to a controller
9599       command. Fixes part of bug 3428; bugfix on 0.1.2.3-alpha.
9600     - Make 'FetchUselessDescriptors' cause all descriptor types and
9601       all consensus types (including microdescriptors) to get fetched.
9602       Fixes bug 3851; bugfix on 0.2.3.1-alpha.
9604   o Code refactoring:
9605     - Make a new "entry connection" struct as an internal subtype of "edge
9606       connection", to simplify the code and make exit connections smaller.
9609 Changes in version 0.2.2.33 - 2011-09-13
9610   Tor 0.2.2.33 fixes several bugs, and includes a slight tweak to Tor's
9611   TLS handshake that makes relays and bridges that run this new version
9612   reachable from Iran again.
9614   o Major bugfixes:
9615     - Avoid an assertion failure when reloading a configuration with
9616       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
9617       3923; bugfix on 0.2.2.25-alpha.
9619   o Minor features (security):
9620     - Check for replays of the public-key encrypted portion of an
9621       INTRODUCE1 cell, in addition to the current check for replays of
9622       the g^x value. This prevents a possible class of active attacks
9623       by an attacker who controls both an introduction point and a
9624       rendezvous point, and who uses the malleability of AES-CTR to
9625       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
9626       that these attacks are infeasible (requiring the attacker to send
9627       on the order of zettabytes of altered cells in a short interval),
9628       but we'd rather block them off in case there are any classes of
9629       this attack that we missed. Reported by Willem Pinckaers.
9631   o Minor features:
9632     - Adjust the expiration time on our SSL session certificates to
9633       better match SSL certs seen in the wild. Resolves ticket 4014.
9634     - Change the default required uptime for a relay to be accepted as
9635       a HSDir (hidden service directory) from 24 hours to 25 hours.
9636       Improves on 0.2.0.10-alpha; resolves ticket 2649.
9637     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
9638       authorities to abstain from voting on assignment of the HSDir
9639       consensus flag. Related to bug 2649.
9640     - Update to the September 6 2011 Maxmind GeoLite Country database.
9642   o Minor bugfixes (documentation and log messages):
9643     - Correct the man page to explain that HashedControlPassword and
9644       CookieAuthentication can both be set, in which case either method
9645       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
9646       when we decided to allow these config options to both be set. Issue
9647       raised by bug 3898.
9648     - Demote the 'replay detected' log message emitted when a hidden
9649       service receives the same Diffie-Hellman public key in two different
9650       INTRODUCE2 cells to info level. A normal Tor client can cause that
9651       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
9652       fixes part of bug 2442.
9653     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
9654       level. There is nothing that a hidden service's operator can do
9655       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
9656       of bug 2442.
9657     - Clarify a log message specifying the characters permitted in
9658       HiddenServiceAuthorizeClient client names. Previously, the log
9659       message said that "[A-Za-z0-9+-_]" were permitted; that could have
9660       given the impression that every ASCII character between "+" and "_"
9661       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
9663   o Build fixes:
9664     - Provide a substitute implementation of lround() for MSVC, which
9665       apparently lacks it. Patch from Gisle Vanem.
9666     - Clean up some code issues that prevented Tor from building on older
9667       BSDs. Fixes bug 3894; reported by "grarpamp".
9668     - Search for a platform-specific version of "ar" when cross-compiling.
9669       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
9672 Changes in version 0.2.3.3-alpha - 2011-09-01
9673   Tor 0.2.3.3-alpha adds a new "stream isolation" feature to improve Tor's
9674   security, and provides client-side support for the microdescriptor
9675   and optimistic data features introduced earlier in the 0.2.3.x
9676   series. It also includes numerous critical bugfixes in the (optional)
9677   bufferevent-based networking backend.
9679   o Major features (stream isolation):
9680     - You can now configure Tor so that streams from different
9681       applications are isolated on different circuits, to prevent an
9682       attacker who sees your streams as they leave an exit node from
9683       linking your sessions to one another. To do this, choose some way
9684       to distinguish the applications: have them connect to different
9685       SocksPorts, or have one of them use SOCKS4 while the other uses
9686       SOCKS5, or have them pass different authentication strings to the
9687       SOCKS proxy. Then, use the new SocksPort syntax to configure the
9688       degree of isolation you need. This implements Proposal 171.
9689     - There's a new syntax for specifying multiple client ports (such as
9690       SOCKSPort, TransPort, DNSPort, NATDPort): you can now just declare
9691       multiple *Port entries with full addr:port syntax on each.
9692       The old *ListenAddress format is still supported, but you can't
9693       mix it with the new *Port syntax.
9695   o Major features (other):
9696     - Enable microdescriptor fetching by default for clients. This allows
9697       clients to download a much smaller amount of directory information.
9698       To disable it (and go back to the old-style consensus and
9699       descriptors), set "UseMicrodescriptors 0" in your torrc file.
9700     - Tor's firewall-helper feature, introduced in 0.2.3.1-alpha (see the
9701       "PortForwarding" config option), now supports Windows.
9702     - When using an exit relay running 0.2.3.x, clients can now
9703       "optimistically" send data before the exit relay reports that
9704       the stream has opened. This saves a round trip when starting
9705       connections where the client speaks first (such as web browsing).
9706       This behavior is controlled by a consensus parameter (currently
9707       disabled). To turn it on or off manually, use the "OptimisticData"
9708       torrc option. Implements proposal 181; code by Ian Goldberg.
9710   o Major bugfixes (bufferevents, fixes on 0.2.3.1-alpha):
9711     - When using IOCP on Windows, we need to enable Libevent windows
9712       threading support.
9713     - The IOCP backend now works even when the user has not specified
9714       the (internal, debugging-only) _UseFilteringSSLBufferevents option.
9715       Fixes part of bug 3752.
9716     - Correctly record the bytes we've read and written when using
9717       bufferevents, so that we can include them in our bandwidth history
9718       and advertised bandwidth. Fixes bug 3803.
9719     - Apply rate-limiting only at the bottom of a chain of filtering
9720       bufferevents. This prevents us from filling up internal read
9721       buffers and violating rate-limits when filtering bufferevents
9722       are enabled. Fixes part of bug 3804.
9723     - Add high-watermarks to the output buffers for filtered
9724       bufferevents. This prevents us from filling up internal write
9725       buffers and wasting CPU cycles when filtering bufferevents are
9726       enabled. Fixes part of bug 3804.
9727     - Correctly notice when data has been written from a bufferevent
9728       without flushing it completely. Fixes bug 3805.
9729     - Fix a bug where server-side tunneled bufferevent-based directory
9730       streams would get closed prematurely. Fixes bug 3814.
9731     - Fix a use-after-free error with per-connection rate-limiting
9732       buckets. Fixes bug 3888.
9734   o Major bugfixes (also part of 0.2.2.31-rc):
9735     - If we're configured to write our ControlPorts to disk, only write
9736       them after switching UID and creating the data directory. This way,
9737       we don't fail when starting up with a nonexistent DataDirectory
9738       and a ControlPortWriteToFile setting based on that directory. Fixes
9739       bug 3747; bugfix on Tor 0.2.2.26-beta.
9741   o Minor features:
9742     - Added a new CONF_CHANGED event so that controllers can be notified
9743       of any configuration changes made by other controllers, or by the
9744       user. Implements ticket 1692.
9745     - Use evbuffer_copyout() in inspect_evbuffer(). This fixes a memory
9746       leak when using bufferevents, and lets Libevent worry about how to
9747       best copy data out of a buffer.
9748     - Replace files in stats/ rather than appending to them. Now that we
9749       include statistics in extra-info descriptors, it makes no sense to
9750       keep old statistics forever. Implements ticket 2930.
9752   o Minor features (build compatibility):
9753     - Limited, experimental support for building with nmake and MSVC.
9754     - Provide a substitute implementation of lround() for MSVC, which
9755       apparently lacks it. Patch from Gisle Vanem.
9757   o Minor features (also part of 0.2.2.31-rc):
9758     - Update to the August 2 2011 Maxmind GeoLite Country database.
9760   o Minor bugfixes (on 0.2.3.x-alpha):
9761     - Fix a spurious warning when parsing SOCKS requests with
9762       bufferevents enabled. Fixes bug 3615; bugfix on 0.2.3.2-alpha.
9763     - Get rid of a harmless warning that could happen on relays running
9764       with bufferevents. The warning was caused by someone doing an http
9765       request to a relay's orport. Also don't warn for a few related
9766       non-errors. Fixes bug 3700; bugfix on 0.2.3.1-alpha.
9768   o Minor bugfixes (on 2.2.x and earlier):
9769     - Correct the man page to explain that HashedControlPassword and
9770       CookieAuthentication can both be set, in which case either method
9771       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
9772       when we decided to allow these config options to both be set. Issue
9773       raised by bug 3898.
9774     - The "--quiet" and "--hush" options now apply not only to Tor's
9775       behavior before logs are configured, but also to Tor's behavior in
9776       the absense of configured logs. Fixes bug 3550; bugfix on
9777       0.2.0.10-alpha.
9779   o Minor bugfixes (also part of 0.2.2.31-rc):
9780     - Write several files in text mode, on OSes that distinguish text
9781       mode from binary mode (namely, Windows). These files are:
9782       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
9783       that collect those statistics; 'client_keys' and 'hostname' for
9784       hidden services that use authentication; and (in the tor-gencert
9785       utility) newly generated identity and signing keys. Previously,
9786       we wouldn't specify text mode or binary mode, leading to an
9787       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
9788       the DirRecordUsageByCountry option which would have triggered
9789       the assertion failure was added), although this assertion failure
9790       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
9791     - Selectively disable deprecation warnings on OS X because Lion
9792       started deprecating the shipped copy of openssl. Fixes bug 3643.
9793     - Remove an extra pair of quotation marks around the error
9794       message in control-port STATUS_GENERAL BUG events. Bugfix on
9795       0.1.2.6-alpha; fixes bug 3732.
9796     - When unable to format an address as a string, report its value
9797       as "???" rather than reusing the last formatted address. Bugfix
9798       on 0.2.1.5-alpha.
9800   o Code simplifications and refactoring:
9801     - Rewrite the listener-selection logic so that parsing which ports
9802       we want to listen on is now separate from binding to the ports
9803       we want.
9805   o Build changes:
9806     - Building Tor with bufferevent support now requires Libevent
9807       2.0.13-stable or later. Previous versions of Libevent had bugs in
9808       SSL-related bufferevents and related issues that would make Tor
9809       work badly with bufferevents. Requiring 2.0.13-stable also allows
9810       Tor with bufferevents to take advantage of Libevent APIs
9811       introduced after 2.0.8-rc.
9814 Changes in version 0.2.2.32 - 2011-08-27
9815   The Tor 0.2.2 release series is dedicated to the memory of Andreas
9816   Pfitzmann (1958-2010), a pioneer in anonymity and privacy research,
9817   a founder of the PETS community, a leader in our field, a mentor,
9818   and a friend. He left us with these words: "I had the possibility
9819   to contribute to this world that is not as it should be. I hope I
9820   could help in some areas to make the world a better place, and that
9821   I could also encourage other people to be engaged in improving the
9822   world. Please, stay engaged. This world needs you, your love, your
9823   initiative -- now I cannot be part of that anymore."
9825   Tor 0.2.2.32, the first stable release in the 0.2.2 branch, is finally
9826   ready. More than two years in the making, this release features improved
9827   client performance and hidden service reliability, better compatibility
9828   for Android, correct behavior for bridges that listen on more than
9829   one address, more extensible and flexible directory object handling,
9830   better reporting of network statistics, improved code security, and
9831   many many other features and bugfixes.
9834 Changes in version 0.2.2.31-rc - 2011-08-17
9835   Tor 0.2.2.31-rc is the second and hopefully final release candidate
9836   for the Tor 0.2.2.x series.
9838   o Major bugfixes:
9839     - Remove an extra pair of quotation marks around the error
9840       message in control-port STATUS_GENERAL BUG events. Bugfix on
9841       0.1.2.6-alpha; fixes bug 3732.
9842     - If we're configured to write our ControlPorts to disk, only write
9843       them after switching UID and creating the data directory. This way,
9844       we don't fail when starting up with a nonexistent DataDirectory
9845       and a ControlPortWriteToFile setting based on that directory. Fixes
9846       bug 3747; bugfix on Tor 0.2.2.26-beta.
9848   o Minor features:
9849     - Update to the August 2 2011 Maxmind GeoLite Country database.
9851   o Minor bugfixes:
9852     - Allow GETINFO fingerprint to return a fingerprint even when
9853       we have not yet built a router descriptor. Fixes bug 3577;
9854       bugfix on 0.2.0.1-alpha.
9855     - Write several files in text mode, on OSes that distinguish text
9856       mode from binary mode (namely, Windows). These files are:
9857       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
9858       that collect those statistics; 'client_keys' and 'hostname' for
9859       hidden services that use authentication; and (in the tor-gencert
9860       utility) newly generated identity and signing keys. Previously,
9861       we wouldn't specify text mode or binary mode, leading to an
9862       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
9863       the DirRecordUsageByCountry option which would have triggered
9864       the assertion failure was added), although this assertion failure
9865       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
9866     - Selectively disable deprecation warnings on OS X because Lion
9867       started deprecating the shipped copy of openssl. Fixes bug 3643.
9868     - When unable to format an address as a string, report its value
9869       as "???" rather than reusing the last formatted address. Bugfix
9870       on 0.2.1.5-alpha.
9873 Changes in version 0.2.3.2-alpha - 2011-07-18
9874   Tor 0.2.3.2-alpha introduces two new experimental features:
9875   microdescriptors and pluggable transports. It also continues cleaning
9876   up a variety of recently introduced features.
9878   o Major features:
9879     - Clients can now use microdescriptors instead of regular descriptors
9880       to build circuits. Microdescriptors are authority-generated
9881       summaries of regular descriptors' contents, designed to change
9882       very rarely (see proposal 158 for details). This feature is
9883       designed to save bandwidth, especially for clients on slow internet
9884       connections. It's off by default for now, since nearly no caches
9885       support it, but it will be on-by-default for clients in a future
9886       version. You can use the UseMicrodescriptors option to turn it on.
9887     - Tor clients using bridges can now be configured to use a separate
9888       'transport' proxy for each bridge. This approach helps to resist
9889       censorship by allowing bridges to use protocol obfuscation
9890       plugins. It implements part of proposal 180. Implements ticket 2841.
9891     - While we're trying to bootstrap, record how many TLS connections
9892       fail in each state, and report which states saw the most failures
9893       in response to any bootstrap failures. This feature may speed up
9894       diagnosis of censorship events. Implements ticket 3116.
9896   o Major bugfixes (on 0.2.3.1-alpha):
9897     - When configuring a large set of nodes in EntryNodes (as with
9898       'EntryNodes {cc}' or 'EntryNodes 1.1.1.1/16'), choose only a
9899       random subset to be guards, and choose them in random
9900       order. Fixes bug 2798.
9901     - Tor could crash when remembering a consensus in a non-used consensus
9902       flavor without having a current consensus set. Fixes bug 3361.
9903     - Comparing an unknown address to a microdescriptor's shortened exit
9904       policy would always give a "rejected" result. Fixes bug 3599.
9905     - Using microdescriptors as a client no longer prevents Tor from
9906       uploading and downloading hidden service descriptors. Fixes
9907       bug 3601.
9909   o Minor features:
9910     - Allow nameservers with IPv6 address. Resolves bug 2574.
9911     - Accept attempts to include a password authenticator in the
9912       handshake, as supported by SOCKS5. This handles SOCKS clients that
9913       don't know how to omit a password when authenticating. Resolves
9914       bug 1666.
9915     - When configuring a large set of nodes in EntryNodes, and there are
9916       enough of them listed as Guard so that we don't need to consider
9917       the non-guard entries, prefer the ones listed with the Guard flag.
9918     - Check for and recover from inconsistency in the microdescriptor
9919       cache. This will make it harder for us to accidentally free a
9920       microdescriptor without removing it from the appropriate data
9921       structures. Fixes issue 3135; issue noted by "wanoskarnet".
9922     - Log SSL state transitions at log level DEBUG, log domain
9923       HANDSHAKE. This can be useful for debugging censorship events.
9924       Implements ticket 3264.
9925     - Add port 6523 (Gobby) to LongLivedPorts. Patch by intrigeri;
9926       implements ticket 3439.
9928   o Minor bugfixes (on 0.2.3.1-alpha):
9929     - Do not free all general-purpose regular descriptors just
9930       because microdescriptor use is enabled. Fixes bug 3113.
9931     - Correctly link libevent_openssl when --enable-static-libevent
9932       is passed to configure. Fixes bug 3118.
9933     - Bridges should not complain during their heartbeat log messages that
9934       they are unlisted in the consensus: that's more or less the point
9935       of being a bridge. Fixes bug 3183.
9936     - Report a SIGNAL event to controllers when acting on a delayed
9937       SIGNAL NEWNYM command. Previously, we would report a SIGNAL
9938       event to the controller if we acted on a SIGNAL NEWNYM command
9939       immediately, and otherwise not report a SIGNAL event for the
9940       command at all. Fixes bug 3349.
9941     - Fix a crash when handling the SIGNAL controller command or
9942       reporting ERR-level status events with bufferevents enabled. Found
9943       by Robert Ransom. Fixes bug 3367.
9944     - Always ship the tor-fw-helper manpage in our release tarballs.
9945       Fixes bug 3389. Reported by Stephen Walker.
9946     - Fix a class of double-mark-for-close bugs when bufferevents
9947       are enabled. Fixes bug 3403.
9948     - Update tor-fw-helper to support libnatpmp-20110618. Fixes bug 3434.
9949     - Add SIGNAL to the list returned by the 'GETINFO events/names'
9950       control-port command. Fixes part of bug 3465.
9951     - Prevent using negative indices during unit test runs when read_all()
9952       fails. Spotted by coverity.
9953     - Fix a rare memory leak when checking the nodelist without it being
9954       present. Found by coverity.
9955     - Only try to download a microdescriptor-flavored consensus from
9956       a directory cache that provides them.
9958   o Minor bugfixes (on 0.2.2.x and earlier):
9959     - Assert that hidden-service-related operations are not performed
9960       using single-hop circuits. Previously, Tor would assert that
9961       client-side streams are not attached to single-hop circuits,
9962       but not that other sensitive operations on the client and service
9963       side are not performed using single-hop circuits. Fixes bug 3332;
9964       bugfix on 0.0.6.
9965     - Don't publish a new relay descriptor when we reload our onion key,
9966       unless the onion key has actually changed. Fixes bug 3263 and
9967       resolves another cause of bug 1810. Bugfix on 0.1.1.11-alpha.
9968     - Allow GETINFO fingerprint to return a fingerprint even when
9969       we have not yet built a router descriptor. Fixes bug 3577;
9970       bugfix on 0.2.0.1-alpha.
9971     - Make 'tor --digests' list hashes of all Tor source files. Bugfix
9972       on 0.2.2.4-alpha; fixes bug 3427.
9974   o Code simplification and refactoring:
9975     - Use tor_sscanf() in place of scanf() in more places through the
9976       code. This makes us a little more locale-independent, and
9977       should help shut up code-analysis tools that can't tell
9978       a safe sscanf string from a dangerous one.
9979     - Use tt_assert(), not tor_assert(), for checking for test failures.
9980       This makes the unit tests more able to go on in the event that
9981       one of them fails.
9982     - Split connection_about_to_close() into separate functions for each
9983       connection type.
9985   o Build changes:
9986     - On Windows, we now define the _WIN32_WINNT macros only if they
9987       are not already defined. This lets the person building Tor decide,
9988       if they want, to require a later version of Windows.
9991 Changes in version 0.2.2.30-rc - 2011-07-07
9992   Tor 0.2.2.30-rc is the first release candidate for the Tor 0.2.2.x
9993   series. It fixes a few smaller bugs, but generally appears stable.
9994   Please test it and let us know whether it is!
9996   o Minor bugfixes:
9997     - Send a SUCCEEDED stream event to the controller when a reverse
9998       resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue
9999       discovered by katmagic.
10000     - Always NUL-terminate the sun_path field of a sockaddr_un before
10001       passing it to the kernel. (Not a security issue: kernels are
10002       smart enough to reject bad sockaddr_uns.) Found by Coverity;
10003       CID #428. Bugfix on Tor 0.2.0.3-alpha.
10004     - Don't stack-allocate the list of supplementary GIDs when we're
10005       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
10006       could take up to 256K, which is way too much stack. Found by
10007       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
10008     - Add BUILDTIMEOUT_SET to the list returned by the 'GETINFO
10009       events/names' control-port command. Bugfix on 0.2.2.9-alpha;
10010       fixes part of bug 3465.
10011     - Fix a memory leak when receiving a descriptor for a hidden
10012       service we didn't ask for. Found by Coverity; CID #30. Bugfix
10013       on 0.2.2.26-beta.
10015   o Minor features:
10016     - Update to the July 1 2011 Maxmind GeoLite Country database.
10019 Changes in version 0.2.2.29-beta - 2011-06-20
10020   Tor 0.2.2.29-beta reverts an accidental behavior change for users who
10021   have bridge lines in their torrc but don't want to use them; gets
10022   us closer to having the control socket feature working on Debian;
10023   and fixes a variety of smaller bugs.
10025   o Major bugfixes:
10026     - Revert the UseBridges option to its behavior before 0.2.2.28-beta.
10027       When we changed the default behavior to "use bridges if any
10028       are listed in the torrc", we surprised users who had bridges
10029       in their torrc files but who didn't actually want to use them.
10030       Partial resolution for bug 3354.
10032   o Privacy fixes:
10033     - Don't attach new streams to old rendezvous circuits after SIGNAL
10034       NEWNYM. Previously, we would keep using an existing rendezvous
10035       circuit if it remained open (i.e. if it were kept open by a
10036       long-lived stream, or if a new stream were attached to it before
10037       Tor could notice that it was old and no longer in use). Bugfix on
10038       0.1.1.15-rc; fixes bug 3375.
10040   o Minor bugfixes:
10041     - Fix a bug when using ControlSocketsGroupWritable with User. The
10042       directory's group would be checked against the current group, not
10043       the configured group. Patch by Jérémy Bobbio. Fixes bug 3393;
10044       bugfix on 0.2.2.26-beta.
10045     - Make connection_printf_to_buf()'s behavior sane. Its callers
10046       expect it to emit a CRLF iff the format string ends with CRLF;
10047       it actually emitted a CRLF iff (a) the format string ended with
10048       CRLF or (b) the resulting string was over 1023 characters long or
10049       (c) the format string did not end with CRLF *and* the resulting
10050       string was 1021 characters long or longer. Bugfix on 0.1.1.9-alpha;
10051       fixes part of bug 3407.
10052     - Make send_control_event_impl()'s behavior sane. Its callers
10053       expect it to always emit a CRLF at the end of the string; it
10054       might have emitted extra control characters as well. Bugfix on
10055       0.1.1.9-alpha; fixes another part of bug 3407.
10056     - Make crypto_rand_int() check the value of its input correctly.
10057       Previously, it accepted values up to UINT_MAX, but could return a
10058       negative number if given a value above INT_MAX+1. Found by George
10059       Kadianakis. Fixes bug 3306; bugfix on 0.2.2pre14.
10060     - Avoid a segfault when reading a malformed circuit build state
10061       with more than INT_MAX entries. Found by wanoskarnet. Bugfix on
10062       0.2.2.4-alpha.
10063     - When asked about a DNS record type we don't support via a
10064       client DNSPort, reply with NOTIMPL rather than an empty
10065       reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha.
10066     - Fix a rare memory leak during stats writing. Found by coverity.
10068   o Minor features:
10069     - Update to the June 1 2011 Maxmind GeoLite Country database.
10071   o Code simplifications and refactoring:
10072     - Remove some dead code as indicated by coverity.
10073     - Remove a few dead assignments during router parsing. Found by
10074       coverity.
10075     - Add some forgotten return value checks during unit tests. Found
10076       by coverity.
10077     - Don't use 1-bit wide signed bit fields. Found by coverity.
10080 Changes in version 0.2.2.28-beta - 2011-06-04
10081   Tor 0.2.2.28-beta makes great progress towards a new stable release: we
10082   fixed a big bug in whether relays stay in the consensus consistently,
10083   we moved closer to handling bridges and hidden services correctly,
10084   and we started the process of better handling the dreaded "my Vidalia
10085   died, and now my Tor demands a password when I try to reconnect to it"
10086   usability issue.
10088   o Major bugfixes:
10089     - Don't decide to make a new descriptor when receiving a HUP signal.
10090       This bug has caused a lot of 0.2.2.x relays to disappear from the
10091       consensus periodically. Fixes the most common case of triggering
10092       bug 1810; bugfix on 0.2.2.7-alpha.
10093     - Actually allow nameservers with IPv6 addresses. Fixes bug 2574.
10094     - Don't try to build descriptors if "ORPort auto" is set and we
10095       don't know our actual ORPort yet. Fix for bug 3216; bugfix on
10096       0.2.2.26-beta.
10097     - Resolve a crash that occurred when setting BridgeRelay to 1 with
10098       accounting enabled. Fixes bug 3228; bugfix on 0.2.2.18-alpha.
10099     - Apply circuit timeouts to opened hidden-service-related circuits
10100       based on the correct start time. Previously, we would apply the
10101       circuit build timeout based on time since the circuit's creation;
10102       it was supposed to be applied based on time since the circuit
10103       entered its current state. Bugfix on 0.0.6; fixes part of bug 1297.
10104     - Use the same circuit timeout for client-side introduction
10105       circuits as for other four-hop circuits, rather than the timeout
10106       for single-hop directory-fetch circuits; the shorter timeout may
10107       have been appropriate with the static circuit build timeout in
10108       0.2.1.x and earlier, but caused many hidden service access attempts
10109       to fail with the adaptive CBT introduced in 0.2.2.2-alpha. Bugfix
10110       on 0.2.2.2-alpha; fixes another part of bug 1297.
10111     - In ticket 2511 we fixed a case where you could use an unconfigured
10112       bridge if you had configured it as a bridge the last time you ran
10113       Tor. Now fix another edge case: if you had configured it as a bridge
10114       but then switched to a different bridge via the controller, you
10115       would still be willing to use the old one. Bugfix on 0.2.0.1-alpha;
10116       fixes bug 3321.
10118   o Major features:
10119     - Add an __OwningControllerProcess configuration option and a
10120       TAKEOWNERSHIP control-port command. Now a Tor controller can ensure
10121       that when it exits, Tor will shut down. Implements feature 3049.
10122     - If "UseBridges 1" is set and no bridges are configured, Tor will
10123       now refuse to build any circuits until some bridges are set.
10124       If "UseBridges auto" is set, Tor will use bridges if they are
10125       configured and we are not running as a server, but otherwise will
10126       make circuits as usual. The new default is "auto". Patch by anonym,
10127       so the Tails LiveCD can stop automatically revealing you as a Tor
10128       user on startup.
10130   o Minor bugfixes:
10131     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
10132     - Remove a trailing asterisk from "exit-policy/default" in the
10133       output of the control port command "GETINFO info/names". Bugfix
10134       on 0.1.2.5-alpha.
10135     - Use a wide type to hold sockets when built for 64-bit Windows builds.
10136       Fixes bug 3270.
10137     - Warn when the user configures two HiddenServiceDir lines that point
10138       to the same directory. Bugfix on 0.0.6 (the version introducing
10139       HiddenServiceDir); fixes bug 3289.
10140     - Remove dead code from rend_cache_lookup_v2_desc_as_dir. Fixes
10141       part of bug 2748; bugfix on 0.2.0.10-alpha.
10142     - Log malformed requests for rendezvous descriptors as protocol
10143       warnings, not warnings. Also, use a more informative log message
10144       in case someone sees it at log level warning without prior
10145       info-level messages. Fixes the other part of bug 2748; bugfix
10146       on 0.2.0.10-alpha.
10147     - Clear the table recording the time of the last request for each
10148       hidden service descriptor from each HS directory on SIGNAL NEWNYM.
10149       Previously, we would clear our HS descriptor cache on SIGNAL
10150       NEWNYM, but if we had previously retrieved a descriptor (or tried
10151       to) from every directory responsible for it, we would refuse to
10152       fetch it again for up to 15 minutes. Bugfix on 0.2.2.25-alpha;
10153       fixes bug 3309.
10154     - Fix a log message that said "bits" while displaying a value in
10155       bytes. Found by wanoskarnet. Fixes bug 3318; bugfix on
10156       0.2.0.1-alpha.
10157     - When checking for 1024-bit keys, check for 1024 bits, not 128
10158       bytes. This allows Tor to correctly discard keys of length 1017
10159       through 1023. Bugfix on 0.0.9pre5.
10161   o Minor features:
10162     - Relays now log the reason for publishing a new relay descriptor,
10163       so we have a better chance of hunting down instances of bug 1810.
10164       Resolves ticket 3252.
10165     - Revise most log messages that refer to nodes by nickname to
10166       instead use the "$key=nickname at address" format. This should be
10167       more useful, especially since nicknames are less and less likely
10168       to be unique. Resolves ticket 3045.
10169     - Log (at info level) when purging pieces of hidden-service-client
10170       state because of SIGNAL NEWNYM.
10172   o Removed options:
10173     - Remove undocumented option "-F" from tor-resolve: it hasn't done
10174       anything since 0.2.1.16-rc.
10177 Changes in version 0.2.2.27-beta - 2011-05-18
10178   Tor 0.2.2.27-beta fixes a bridge-related stability bug in the previous
10179   release, and also adds a few more general bugfixes.
10181   o Major bugfixes:
10182     - Fix a crash bug when changing bridges in a running Tor process.
10183       Fixes bug 3213; bugfix on 0.2.2.26-beta.
10184     - When the controller configures a new bridge, don't wait 10 to 60
10185       seconds before trying to fetch its descriptor. Bugfix on
10186       0.2.0.3-alpha; fixes bug 3198 (suggested by 2355).
10188   o Minor bugfixes:
10189     - Require that onion keys have exponent 65537 in microdescriptors too.
10190       Fixes more of bug 3207; bugfix on 0.2.2.26-beta.
10191     - Tor used to limit HttpProxyAuthenticator values to 48 characters.
10192       Changed the limit to 512 characters by removing base64 newlines.
10193       Fixes bug 2752. Fix by Michael Yakubovich.
10194     - When a client starts or stops using bridges, never use a circuit
10195       that was built before the configuration change. This behavior could
10196       put at risk a user who uses bridges to ensure that her traffic
10197       only goes to the chosen addresses. Bugfix on 0.2.0.3-alpha; fixes
10198       bug 3200.
10201 Changes in version 0.2.2.26-beta - 2011-05-17
10202   Tor 0.2.2.26-beta fixes a variety of potential privacy problems. It
10203   also introduces a new "socksport auto" approach that should make it
10204   easier to run multiple Tors on the same system, and does a lot of
10205   cleanup to get us closer to a release candidate.
10207   o Security/privacy fixes:
10208     - Replace all potentially sensitive memory comparison operations
10209       with versions whose runtime does not depend on the data being
10210       compared. This will help resist a class of attacks where an
10211       adversary can use variations in timing information to learn
10212       sensitive data. Fix for one case of bug 3122. (Safe memcmp
10213       implementation by Robert Ransom based partially on code by DJB.)
10214     - When receiving a hidden service descriptor, check that it is for
10215       the hidden service we wanted. Previously, Tor would store any
10216       hidden service descriptors that a directory gave it, whether it
10217       wanted them or not. This wouldn't have let an attacker impersonate
10218       a hidden service, but it did let directories pre-seed a client
10219       with descriptors that it didn't want. Bugfix on 0.0.6.
10220     - On SIGHUP, do not clear out all TrackHostExits mappings, client
10221       DNS cache entries, and virtual address mappings: that's what
10222       NEWNYM is for. Fixes bug 1345; bugfix on 0.1.0.1-rc.
10224   o Major features:
10225     - The options SocksPort, ControlPort, and so on now all accept a
10226       value "auto" that opens a socket on an OS-selected port. A
10227       new ControlPortWriteToFile option tells Tor to write its
10228       actual control port or ports to a chosen file. If the option
10229       ControlPortFileGroupReadable is set, the file is created as
10230       group-readable. Now users can run two Tor clients on the same
10231       system without needing to manually mess with parameters. Resolves
10232       part of ticket 3076.
10233     - Set SO_REUSEADDR on all sockets, not just listeners. This should
10234       help busy exit nodes avoid running out of useable ports just
10235       because all the ports have been used in the near past. Resolves
10236       issue 2850.
10238   o Minor features:
10239     - New "GETINFO net/listeners/(type)" controller command to return
10240       a list of addresses and ports that are bound for listeners for a
10241       given connection type. This is useful when the user has configured
10242       "SocksPort auto" and the controller needs to know which port got
10243       chosen. Resolves another part of ticket 3076.
10244     - Add a new ControlSocketsGroupWritable configuration option: when
10245       it is turned on, ControlSockets are group-writeable by the default
10246       group of the current user. Patch by Jérémy Bobbio; implements
10247       ticket 2972.
10248     - Tor now refuses to create a ControlSocket in a directory that is
10249       world-readable (or group-readable if ControlSocketsGroupWritable
10250       is 0). This is necessary because some operating systems do not
10251       enforce permissions on an AF_UNIX sockets. Permissions on the
10252       directory holding the socket, however, seems to work everywhere.
10253     - Rate-limit a warning about failures to download v2 networkstatus
10254       documents. Resolves part of bug 1352.
10255     - Backport code from 0.2.3.x that allows directory authorities to
10256       clean their microdescriptor caches. Needed to resolve bug 2230.
10257     - When an HTTPS proxy reports "403 Forbidden", we now explain
10258       what it means rather than calling it an unexpected status code.
10259       Closes bug 2503. Patch from Michael Yakubovich.
10260     - Update to the May 1 2011 Maxmind GeoLite Country database.
10262   o Minor bugfixes:
10263     - Authorities now clean their microdesc cache periodically and when
10264       reading from disk initially, not only when adding new descriptors.
10265       This prevents a bug where we could lose microdescriptors. Bugfix
10266       on 0.2.2.6-alpha. Fixes bug 2230.
10267     - Do not crash when our configuration file becomes unreadable, for
10268       example due to a permissions change, between when we start up
10269       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
10270       on 0.0.9pre6.
10271     - Avoid a bug that would keep us from replacing a microdescriptor
10272       cache on Windows. (We would try to replace the file while still
10273       holding it open. That's fine on Unix, but Windows doesn't let us
10274       do that.) Bugfix on 0.2.2.6-alpha; bug found by wanoskarnet.
10275     - Add missing explanations for the authority-related torrc options
10276       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey in the
10277       man page. Resolves issue 2379.
10278     - As an authority, do not upload our own vote or signature set to
10279       ourself. It would tell us nothing new, and as of 0.2.2.24-alpha,
10280       it would get flagged as a duplicate. Resolves bug 3026.
10281     - Accept hidden service descriptors if we think we might be a hidden
10282       service directory, regardless of what our consensus says. This
10283       helps robustness, since clients and hidden services can sometimes
10284       have a more up-to-date view of the network consensus than we do,
10285       and if they think that the directory authorities list us a HSDir,
10286       we might actually be one. Related to bug 2732; bugfix on
10287       0.2.0.10-alpha.
10288     - When a controller changes TrackHostExits, remove mappings for
10289       hosts that should no longer have their exits tracked. Bugfix on
10290       0.1.0.1-rc.
10291     - When a controller changes VirtualAddrNetwork, remove any mappings
10292       for hosts that were automapped to the old network. Bugfix on
10293       0.1.1.19-rc.
10294     - When a controller changes one of the AutomapHosts* options, remove
10295       any mappings for hosts that should no longer be automapped. Bugfix
10296       on 0.2.0.1-alpha.
10297     - Do not reset the bridge descriptor download status every time we
10298       re-parse our configuration or get a configuration change. Fixes
10299       bug 3019; bugfix on 0.2.0.3-alpha.
10301   o Minor bugfixes (code cleanup):
10302     - When loading the microdesc journal, remember its current size.
10303       In 0.2.2, this helps prevent the microdesc journal from growing
10304       without limit on authorities (who are the only ones to use it in
10305       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
10306       Fix posted by "cypherpunks."
10307     - The microdesc journal is supposed to get rebuilt only if it is
10308       at least _half_ the length of the store, not _twice_ the length
10309       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
10310     - Fix a potential null-pointer dereference while computing a
10311       consensus. Bugfix on 0.2.0.3-alpha, found with the help of
10312       clang's analyzer.
10313     - Avoid a possible null-pointer dereference when rebuilding the mdesc
10314       cache without actually having any descriptors to cache. Bugfix on
10315       0.2.2.6-alpha. Issue discovered using clang's static analyzer.
10316     - If we fail to compute the identity digest of a v3 legacy keypair,
10317       warn, and don't use a buffer-full of junk instead. Bugfix on
10318       0.2.1.1-alpha; fixes bug 3106.
10319     - Resolve an untriggerable issue in smartlist_string_num_isin(),
10320       where if the function had ever in the future been used to check
10321       for the presence of a too-large number, it would have given an
10322       incorrect result. (Fortunately, we only used it for 16-bit
10323       values.) Fixes bug 3175; bugfix on 0.1.0.1-rc.
10324     - Require that introduction point keys and onion handshake keys
10325       have a public exponent of 65537. Starts to fix bug 3207; bugfix
10326       on 0.2.0.10-alpha.
10328   o Removed features:
10329     - Caches no longer download and serve v2 networkstatus documents
10330       unless FetchV2Networkstatus flag is set: these documents haven't
10331       haven't been used by clients or relays since 0.2.0.x. Resolves
10332       bug 3022.
10335 Changes in version 0.2.3.1-alpha - 2011-05-05
10336   Tor 0.2.3.1-alpha adds some new experimental features, including support
10337   for an improved network IO backend, IOCP networking on Windows,
10338   microdescriptor caching, "fast-start" support for streams, and automatic
10339   home router configuration. There are also numerous internal improvements
10340   to try to make the code easier for developers to work with.
10342   This is the first alpha release in a new series, so expect there to be
10343   bugs. Users who would rather test out a more stable branch should
10344   stay with 0.2.2.x for now.
10346   o Major features:
10347     - Tor can now optionally build with the "bufferevents" buffered IO
10348       backend provided by Libevent 2. To use this feature, make sure you
10349       have the latest possible version of Libevent, and pass the
10350       --enable-bufferevents flag to configure when building Tor from
10351       source. This feature will make our networking code more flexible,
10352       let us stack layers on each other, and let us use more efficient
10353       zero-copy transports where available.
10354     - As an experimental feature, Tor can use IOCP for networking on Windows.
10355       Once this code is tuned and optimized, it promises much better
10356       performance than the select-based backend we've used in the past. To
10357       try this feature, you must build Tor with Libevent 2, configure Tor
10358       with the "bufferevents" buffered IO backend, and add "DisableIOCP 0" to
10359       your torrc. There are known bugs here: only try this if you can help
10360       debug it as it breaks.
10361     - The EntryNodes option can now include country codes like {de} or IP
10362       addresses or network masks. Previously we had disallowed these options
10363       because we didn't have an efficient way to keep the list up to
10364       date. Fixes bug 1982, but see bug 2798 for an unresolved issue here.
10365     - Exit nodes now accept and queue data on not-yet-connected streams.
10366       Previously, the client wasn't allowed to send data until the stream was
10367       connected, which slowed down all connections. This change will enable
10368       clients to perform a "fast-start" on streams and send data without
10369       having to wait for a confirmation that the stream has opened. (Patch
10370       from Ian Goldberg; implements the server side of Proposal 174.)
10371     - Tor now has initial support for automatic port mapping on the many
10372       home routers that support NAT-PMP or UPnP. (Not yet supported on
10373       Windows). To build the support code, you'll need to have libnatpnp
10374       library and/or the libminiupnpc library, and you'll need to enable the
10375       feature specifically by passing "--enable-upnp" and/or
10376       "--enable-natpnp" to configure. To turn it on, use the new
10377       PortForwarding option.
10378     - Caches now download, cache, and serve multiple "flavors" of the
10379       consensus, including a flavor that describes microdescriptors.
10380     - Caches now download, cache, and serve microdescriptors -- small
10381       summaries of router descriptors that are authenticated by all of the
10382       directory authorities. Once enough caches are running this code,
10383       clients will be able to save significant amounts of directory bandwidth
10384       by downloading microdescriptors instead of router descriptors.
10386   o Minor features:
10387     - Make logging resolution configurable with a new LogTimeGranularity
10388       option, and change the default from 1 millisecond to 1 second.
10389       Implements enhancement 1668.
10390     - We log which torrc file we're using on startup. Implements ticket
10391       2444.
10392     - Ordinarily, Tor does not count traffic from private addresses (like
10393       127.0.0.1 or 10.0.0.1) when calculating rate limits or accounting.
10394       There is now a new option, CountPrivateBandwidth, to disable this
10395       behavior. Patch from Daniel Cagara.
10396     - New --enable-static-tor configure option for building Tor as
10397       statically as possible. Idea, general hackery and thoughts from
10398       Alexei Czeskis, John Gilmore, Jacob Appelbaum. Implements ticket
10399       2702.
10400     - If you set the NumCPUs option to 0, Tor will now try to detect how
10401       many CPUs you have. This is the new default behavior.
10402     - Turn on directory request statistics by default and include them in
10403       extra-info descriptors. Don't break if we have no GeoIP database.
10404     - Relays that set "ConnDirectionStatistics 1" write statistics on the
10405       bidirectional use of connections to disk every 24 hours.
10406     - Add a GeoIP file digest to the extra-info descriptor. Implements
10407       enhancement 1883.
10408     - The NodeFamily option -- which let you declare that you want to
10409       consider nodes to be part of a family whether they list themselves
10410       that way or not -- now allows IP address ranges and country codes.
10411     - Add a new 'Heartbeat' log message type to periodically log a message
10412       describing Tor's status at level Notice. This feature is meant for
10413       operators who log at notice, and want to make sure that their Tor
10414       server is still working. Implementation by George Kadianakis.
10416   o Minor bugfixes (on 0.2.2.25-alpha):
10417     - When loading the microdesc journal, remember its current size.
10418       In 0.2.2, this helps prevent the microdesc journal from growing
10419       without limit on authorities (who are the only ones to use it in
10420       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
10421       Fix posted by "cypherpunks."
10422     - The microdesc journal is supposed to get rebuilt only if it is
10423       at least _half_ the length of the store, not _twice_ the length
10424       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
10425     - If as an authority we fail to compute the identity digest of a v3
10426       legacy keypair, warn, and don't use a buffer-full of junk instead.
10427       Bugfix on 0.2.1.1-alpha; fixes bug 3106.
10428     - Authorities now clean their microdesc cache periodically and when
10429       reading from disk initially, not only when adding new descriptors.
10430       This prevents a bug where we could lose microdescriptors. Bugfix
10431       on 0.2.2.6-alpha.
10433   o Minor features (controller):
10434     - Add a new SIGNAL event to the controller interface so that
10435       controllers can be notified when Tor handles a signal. Resolves
10436       issue 1955. Patch by John Brooks.
10437     - Add a new GETINFO option to get total bytes read and written. Patch
10438       from pipe, revised by atagar. Resolves ticket 2345.
10439     - Implement some GETINFO controller fields to provide information about
10440       the Tor process's pid, euid, username, and resource limits.
10442   o Build changes:
10443     - Our build system requires automake 1.6 or later to create the
10444       Makefile.in files. Previously, you could have used 1.4.
10445       This only affects developers and people building Tor from git;
10446       people who build Tor from the source distribution without changing
10447       the Makefile.am files should be fine.
10448     - Our autogen.sh script uses autoreconf to launch autoconf, automake, and
10449       so on. This is more robust against some of the failure modes
10450       associated with running the autotools pieces on their own.
10452   o Minor packaging issues:
10453     - On OpenSUSE, create the /var/run/tor directory on startup if it is not
10454       already created. Patch from Andreas Stieger. Fixes bug 2573.
10456   o Code simplifications and refactoring:
10457     - A major revision to our internal node-selecting and listing logic.
10458       Tor already had at least two major ways to look at the question of
10459       "which Tor servers do we know about": a list of router descriptors,
10460       and a list of entries in the current consensus. With
10461       microdescriptors, we're adding a third. Having so many systems
10462       without an abstraction layer over them was hurting the codebase.
10463       Now, we have a new "node_t" abstraction that presents a consistent
10464       interface to a client's view of a Tor node, and holds (nearly) all
10465       of the mutable state formerly in routerinfo_t and routerstatus_t.
10466     - The helper programs tor-gencert, tor-resolve, and tor-checkkey
10467       no longer link against Libevent: they never used it, but
10468       our library structure used to force them to link it.
10470   o Removed features:
10471     - Remove some old code to work around even older versions of Tor that
10472       used forked processes to handle DNS requests. Such versions of Tor
10473       are no longer in use as servers.
10475   o Documentation fixes:
10476     - Correct a broken faq link in the INSTALL file. Fixes bug 2307.
10477     - Add missing documentation for the authority-related torrc options
10478       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey. Resolves
10479       issue 2379.
10482 Changes in version 0.2.2.25-alpha - 2011-04-29
10483   Tor 0.2.2.25-alpha fixes many bugs: hidden service clients are more
10484   robust, routers no longer overreport their bandwidth, Win7 should crash
10485   a little less, and NEWNYM (as used by Vidalia's "new identity" button)
10486   now prevents hidden service-related activity from being linkable. It
10487   provides more information to Vidalia so you can see if your bridge is
10488   working. Also, 0.2.2.25-alpha revamps the Entry/Exit/ExcludeNodes and
10489   StrictNodes configuration options to make them more reliable, more
10490   understandable, and more regularly applied. If you use those options,
10491   please see the revised documentation for them in the manual page.
10493   o Major bugfixes:
10494     - Relays were publishing grossly inflated bandwidth values because
10495       they were writing their state files wrong--now they write the
10496       correct value. Also, resume reading bandwidth history from the
10497       state file correctly. Fixes bug 2704; bugfix on 0.2.2.23-alpha.
10498     - Improve hidden service robustness: When we find that we have
10499       extended a hidden service's introduction circuit to a relay not
10500       listed as an introduction point in the HS descriptor we currently
10501       have, retry with an introduction point from the current
10502       descriptor. Previously we would just give up. Fixes bugs 1024 and
10503       1930; bugfix on 0.2.0.10-alpha.
10504     - Clients now stop trying to use an exit node associated with a given
10505       destination by TrackHostExits if they fail to reach that exit node.
10506       Fixes bug 2999. Bugfix on 0.2.0.20-rc.
10507     - Fix crash bug on platforms where gmtime and localtime can return
10508       NULL. Windows 7 users were running into this one. Fixes part of bug
10509       2077. Bugfix on all versions of Tor. Found by boboper.
10511   o Security and stability fixes:
10512     - Don't double-free a parsable, but invalid, microdescriptor, even if
10513       it is followed in the blob we're parsing by an unparsable
10514       microdescriptor. Fixes an issue reported in a comment on bug 2954.
10515       Bugfix on 0.2.2.6-alpha; fix by "cypherpunks".
10516     - If the Nickname configuration option isn't given, Tor would pick a
10517       nickname based on the local hostname as the nickname for a relay.
10518       Because nicknames are not very important in today's Tor and the
10519       "Unnamed" nickname has been implemented, this is now problematic
10520       behavior: It leaks information about the hostname without being
10521       useful at all. Fixes bug 2979; bugfix on 0.1.2.2-alpha, which
10522       introduced the Unnamed nickname. Reported by tagnaq.
10523     - Fix an uncommon assertion failure when running with DNSPort under
10524       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
10525     - Avoid linkability based on cached hidden service descriptors: forget
10526       all hidden service descriptors cached as a client when processing a
10527       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
10529   o Major features:
10530     - Export GeoIP information on bridge usage to controllers even if we
10531       have not yet been running for 24 hours. Now Vidalia bridge operators
10532       can get more accurate and immediate feedback about their
10533       contributions to the network.
10535   o Major features and bugfixes (node selection):
10536     - Revise and reconcile the meaning of the ExitNodes, EntryNodes,
10537       ExcludeEntryNodes, ExcludeExitNodes, ExcludeNodes, and StrictNodes
10538       options. Previously, we had been ambiguous in describing what
10539       counted as an "exit" node, and what operations exactly "StrictNodes
10540       0" would permit. This created confusion when people saw nodes built
10541       through unexpected circuits, and made it hard to tell real bugs from
10542       surprises. Now the intended behavior is:
10543         . "Exit", in the context of ExitNodes and ExcludeExitNodes, means
10544           a node that delivers user traffic outside the Tor network.
10545         . "Entry", in the context of EntryNodes, means a node used as the
10546           first hop of a multihop circuit. It doesn't include direct
10547           connections to directory servers.
10548         . "ExcludeNodes" applies to all nodes.
10549         . "StrictNodes" changes the behavior of ExcludeNodes only. When
10550           StrictNodes is set, Tor should avoid all nodes listed in
10551           ExcludeNodes, even when it will make user requests fail. When
10552           StrictNodes is *not* set, then Tor should follow ExcludeNodes
10553           whenever it can, except when it must use an excluded node to
10554           perform self-tests, connect to a hidden service, provide a
10555           hidden service, fulfill a .exit request, upload directory
10556           information, or fetch directory information.
10557       Collectively, the changes to implement the behavior fix bug 1090.
10558     - ExcludeNodes now takes precedence over EntryNodes and ExitNodes: if
10559       a node is listed in both, it's treated as excluded.
10560     - ExcludeNodes now applies to directory nodes -- as a preference if
10561       StrictNodes is 0, or an absolute requirement if StrictNodes is 1.
10562       Don't exclude all the directory authorities and set StrictNodes to 1
10563       unless you really want your Tor to break.
10564     - ExcludeNodes and ExcludeExitNodes now override exit enclaving.
10565     - ExcludeExitNodes now overrides .exit requests.
10566     - We don't use bridges listed in ExcludeNodes.
10567     - When StrictNodes is 1:
10568        . We now apply ExcludeNodes to hidden service introduction points
10569          and to rendezvous points selected by hidden service users. This
10570          can make your hidden service less reliable: use it with caution!
10571        . If we have used ExcludeNodes on ourself, do not try relay
10572          reachability self-tests.
10573        . If we have excluded all the directory authorities, we will not
10574          even try to upload our descriptor if we're a relay.
10575        . Do not honor .exit requests to an excluded node.
10576     - Remove a misfeature that caused us to ignore the Fast/Stable flags
10577       when ExitNodes is set. Bugfix on 0.2.2.7-alpha.
10578     - When the set of permitted nodes changes, we now remove any mappings
10579       introduced via TrackExitHosts to now-excluded nodes. Bugfix on
10580       0.1.0.1-rc.
10581     - We never cannibalize a circuit that had excluded nodes on it, even
10582       if StrictNodes is 0. Bugfix on 0.1.0.1-rc.
10583     - Revert a change where we would be laxer about attaching streams to
10584       circuits than when building the circuits. This was meant to prevent
10585       a set of bugs where streams were never attachable, but our improved
10586       code here should make this unnecessary. Bugfix on 0.2.2.7-alpha.
10587     - Keep track of how many times we launch a new circuit to handle a
10588       given stream. Too many launches could indicate an inconsistency
10589       between our "launch a circuit to handle this stream" logic and our
10590       "attach this stream to one of the available circuits" logic.
10591     - Improve log messages related to excluded nodes.
10593   o Minor bugfixes:
10594     - Fix a spurious warning when moving from a short month to a long
10595       month on relays with month-based BandwidthAccounting. Bugfix on
10596       0.2.2.17-alpha; fixes bug 3020.
10597     - When a client finds that an origin circuit has run out of 16-bit
10598       stream IDs, we now mark it as unusable for new streams. Previously,
10599       we would try to close the entire circuit. Bugfix on 0.0.6.
10600     - Add a forgotten cast that caused a compile warning on OS X 10.6.
10601       Bugfix on 0.2.2.24-alpha.
10602     - Be more careful about reporting the correct error from a failed
10603       connect() system call. Under some circumstances, it was possible to
10604       look at an incorrect value for errno when sending the end reason.
10605       Bugfix on 0.1.0.1-rc.
10606     - Correctly handle an "impossible" overflow cases in connection byte
10607       counting, where we write or read more than 4GB on an edge connection
10608       in a single second. Bugfix on 0.1.2.8-beta.
10609     - Correct the warning displayed when a rendezvous descriptor exceeds
10610       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
10611       John Brooks.
10612     - Clients and hidden services now use HSDir-flagged relays for hidden
10613       service descriptor downloads and uploads even if the relays have no
10614       DirPort set and the client has disabled TunnelDirConns. This will
10615       eventually allow us to give the HSDir flag to relays with no
10616       DirPort. Fixes bug 2722; bugfix on 0.2.1.6-alpha.
10617     - Downgrade "no current certificates known for authority" message from
10618       Notice to Info. Fixes bug 2899; bugfix on 0.2.0.10-alpha.
10619     - Make the SIGNAL DUMP control-port command work on FreeBSD. Fixes bug
10620       2917. Bugfix on 0.1.1.1-alpha.
10621     - Only limit the lengths of single HS descriptors, even when multiple
10622       HS descriptors are published to an HSDir relay in a single POST
10623       operation. Fixes bug 2948; bugfix on 0.2.1.5-alpha. Found by hsdir.
10624     - Write the current time into the LastWritten line in our state file,
10625       rather than the time from the previous write attempt. Also, stop
10626       trying to use a time of -1 in our log statements. Fixes bug 3039;
10627       bugfix on 0.2.2.14-alpha.
10628     - Be more consistent in our treatment of file system paths. "~" should
10629       get expanded to the user's home directory in the Log config option.
10630       Fixes bug 2971; bugfix on 0.2.0.1-alpha, which introduced the
10631       feature for the -f and --DataDirectory options.
10633   o Minor features:
10634     - Make sure every relay writes a state file at least every 12 hours.
10635       Previously, a relay could go for weeks without writing its state
10636       file, and on a crash could lose its bandwidth history, capacity
10637       estimates, client country statistics, and so on. Addresses bug 3012.
10638     - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors.
10639       Clients before 0.2.1.27 didn't handle NOROUTE correctly, but such
10640       clients are already deprecated because of security bugs.
10641     - Don't allow v0 hidden service authorities to act as clients.
10642       Required by fix for bug 3000.
10643     - Ignore SIGNAL NEWNYM commands on relay-only Tor instances. Required
10644       by fix for bug 3000.
10645     - Ensure that no empty [dirreq-](read|write)-history lines are added
10646       to an extrainfo document. Implements ticket 2497.
10648   o Code simplification and refactoring:
10649     - Remove workaround code to handle directory responses from servers
10650       that had bug 539 (they would send HTTP status 503 responses _and_
10651       send a body too). Since only server versions before
10652       0.2.0.16-alpha/0.1.2.19 were affected, there is no longer reason to
10653       keep the workaround in place.
10654     - Remove the old 'fuzzy time' logic. It was supposed to be used for
10655       handling calculations where we have a known amount of clock skew and
10656       an allowed amount of unknown skew. But we only used it in three
10657       places, and we never adjusted the known/unknown skew values. This is
10658       still something we might want to do someday, but if we do, we'll
10659       want to do it differently.
10660     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
10661       None of the cases where we did this before were wrong, but by making
10662       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
10663     - Use GetTempDir to find the proper temporary directory location on
10664       Windows when generating temporary files for the unit tests. Patch by
10665       Gisle Vanem.
10668 Changes in version 0.2.2.24-alpha - 2011-04-08
10669   Tor 0.2.2.24-alpha fixes a variety of bugs, including a big bug that
10670   prevented Tor clients from effectively using "multihomed" bridges,
10671   that is, bridges that listen on multiple ports or IP addresses so users
10672   can continue to use some of their addresses even if others get blocked.
10674   o Major bugfixes:
10675     - Fix a bug where bridge users who configure the non-canonical
10676       address of a bridge automatically switch to its canonical
10677       address. If a bridge listens at more than one address, it should be
10678       able to advertise those addresses independently and any non-blocked
10679       addresses should continue to work. Bugfix on Tor 0.2.0.x. Fixes
10680       bug 2510.
10681     - If you configured Tor to use bridge A, and then quit and
10682       configured Tor to use bridge B instead, it would happily continue
10683       to use bridge A if it's still reachable. While this behavior is
10684       a feature if your goal is connectivity, in some scenarios it's a
10685       dangerous bug. Bugfix on Tor 0.2.0.1-alpha; fixes bug 2511.
10686     - Directory authorities now use data collected from their own
10687       uptime observations when choosing whether to assign the HSDir flag
10688       to relays, instead of trusting the uptime value the relay reports in
10689       its descriptor. This change helps prevent an attack where a small
10690       set of nodes with frequently-changing identity keys can blackhole
10691       a hidden service. (Only authorities need upgrade; others will be
10692       fine once they do.) Bugfix on 0.2.0.10-alpha; fixes bug 2709.
10694   o Minor bugfixes:
10695     - When we restart our relay, we might get a successful connection
10696       from the outside before we've started our reachability tests,
10697       triggering a warning: "ORPort found reachable, but I have no
10698       routerinfo yet. Failing to inform controller of success." This
10699       bug was harmless unless Tor is running under a controller
10700       like Vidalia, in which case the controller would never get a
10701       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
10702       fixes bug 1172.
10703     - Make directory authorities more accurate at recording when
10704       relays that have failed several reachability tests became
10705       unreachable, so we can provide more accuracy at assigning Stable,
10706       Guard, HSDir, etc flags. Bugfix on 0.2.0.6-alpha. Resolves bug 2716.
10707     - Fix an issue that prevented static linking of libevent on
10708       some platforms (notably Linux). Fixes bug 2698; bugfix on
10709       versions 0.2.1.23/0.2.2.8-alpha (the versions introducing
10710       the --with-static-libevent configure option).
10711     - We now ask the other side of a stream (the client or the exit)
10712       for more data on that stream when the amount of queued data on
10713       that stream dips low enough. Previously, we wouldn't ask the
10714       other side for more data until either it sent us more data (which
10715       it wasn't supposed to do if it had exhausted its window!) or we
10716       had completely flushed all our queued data. This flow control fix
10717       should improve throughput. Fixes bug 2756; bugfix on the earliest
10718       released versions of Tor (svn commit r152).
10719     - Avoid a double-mark-for-free warning when failing to attach a
10720       transparent proxy connection. (We thought we had fixed this in
10721       0.2.2.23-alpha, but it turns out our fix was checking the wrong
10722       connection.) Fixes bug 2757; bugfix on 0.1.2.1-alpha (the original
10723       bug) and 0.2.2.23-alpha (the incorrect fix).
10724     - When warning about missing zlib development packages during compile,
10725       give the correct package names. Bugfix on 0.2.0.1-alpha.
10727   o Minor features:
10728     - Directory authorities now log the source of a rejected POSTed v3
10729       networkstatus vote.
10730     - Make compilation with clang possible when using
10731       --enable-gcc-warnings by removing two warning options that clang
10732       hasn't implemented yet and by fixing a few warnings. Implements
10733       ticket 2696.
10734     - When expiring circuits, use microsecond timers rather than
10735       one-second timers. This can avoid an unpleasant situation where a
10736       circuit is launched near the end of one second and expired right
10737       near the beginning of the next, and prevent fluctuations in circuit
10738       timeout values.
10739     - Use computed circuit-build timeouts to decide when to launch
10740       parallel introduction circuits for hidden services. (Previously,
10741       we would retry after 15 seconds.)
10742     - Update to the April 1 2011 Maxmind GeoLite Country database.
10744   o Packaging fixes:
10745     - Create the /var/run/tor directory on startup on OpenSUSE if it is
10746       not already created. Patch from Andreas Stieger. Fixes bug 2573.
10748   o Documentation changes:
10749     - Modernize the doxygen configuration file slightly. Fixes bug 2707.
10750     - Resolve all doxygen warnings except those for missing documentation.
10751       Fixes bug 2705.
10752     - Add doxygen documentation for more functions, fields, and types.
10755 Changes in version 0.2.2.23-alpha - 2011-03-08
10756   Tor 0.2.2.23-alpha lets relays record their bandwidth history so when
10757   they restart they don't lose their bandwidth capacity estimate. This
10758   release also fixes a diverse set of user-facing bugs, ranging from
10759   relays overrunning their rate limiting to clients falsely warning about
10760   clock skew to bridge descriptor leaks by our bridge directory authority.
10762   o Major bugfixes:
10763     - Stop sending a CLOCK_SKEW controller status event whenever
10764       we fetch directory information from a relay that has a wrong clock.
10765       Instead, only inform the controller when it's a trusted authority
10766       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
10767       the rest of bug 1074.
10768     - Fix an assert in parsing router descriptors containing IPv6
10769       addresses. This one took down the directory authorities when
10770       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
10771     - Make the bridge directory authority refuse to answer directory
10772       requests for "all" descriptors. It used to include bridge
10773       descriptors in its answer, which was a major information leak.
10774       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
10775     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
10776       Tor would ignore their RelayBandwidthBurst setting,
10777       potentially using more bandwidth than expected. Bugfix on
10778       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
10779     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
10780       hidserv" in her torrc. The 'hidserv' argument never controlled
10781       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
10783   o Major features:
10784     - Relays now save observed peak bandwidth throughput rates to their
10785       state file (along with total usage, which was already saved)
10786       so that they can determine their correct estimated bandwidth on
10787       restart. Resolves bug 1863, where Tor relays would reset their
10788       estimated bandwidth to 0 after restarting.
10789     - Directory authorities now take changes in router IP address and
10790       ORPort into account when determining router stability. Previously,
10791       if a router changed its IP or ORPort, the authorities would not
10792       treat it as having any downtime for the purposes of stability
10793       calculation, whereas clients would experience downtime since the
10794       change could take a while to propagate to them. Resolves issue 1035.
10795     - Enable Address Space Layout Randomization (ASLR) and Data Execution
10796       Prevention (DEP) by default on Windows to make it harder for
10797       attackers to exploit vulnerabilities. Patch from John Brooks.
10799   o Minor bugfixes (on 0.2.1.x and earlier):
10800     - Fix a rare crash bug that could occur when a client was configured
10801       with a large number of bridges. Fixes bug 2629; bugfix on
10802       0.2.1.2-alpha. Bugfix by trac user "shitlei".
10803     - Avoid a double mark-for-free warning when failing to attach a
10804       transparent proxy connection. Bugfix on 0.1.2.1-alpha. Fixes
10805       bug 2279.
10806     - Correctly detect failure to allocate an OpenSSL BIO. Fixes bug 2378;
10807       found by "cypherpunks". This bug was introduced before the first
10808       Tor release, in svn commit r110.
10809     - Country codes aren't supported in EntryNodes until 0.2.3.x, so
10810       don't mention them in the manpage. Fixes bug 2450; issue
10811       spotted by keb and G-Lo.
10812     - Fix a bug in bandwidth history state parsing that could have been
10813       triggered if a future version of Tor ever changed the timing
10814       granularity at which bandwidth history is measured. Bugfix on
10815       Tor 0.1.1.11-alpha.
10816     - When a relay decides that its DNS is too broken for it to serve
10817       as an exit server, it advertised itself as a non-exit, but
10818       continued to act as an exit. This could create accidental
10819       partitioning opportunities for users. Instead, if a relay is
10820       going to advertise reject *:* as its exit policy, it should
10821       really act with exit policy "reject *:*". Fixes bug 2366.
10822       Bugfix on Tor 0.1.2.5-alpha. Bugfix by user "postman" on trac.
10823     - In the special case where you configure a public exit relay as your
10824       bridge, Tor would be willing to use that exit relay as the last
10825       hop in your circuit as well. Now we fail that circuit instead.
10826       Bugfix on 0.2.0.12-alpha. Fixes bug 2403. Reported by "piebeer".
10827     - Fix a bug with our locking implementation on Windows that couldn't
10828       correctly detect when a file was already locked. Fixes bug 2504,
10829       bugfix on 0.2.1.6-alpha.
10830     - Fix IPv6-related connect() failures on some platforms (BSD, OS X).
10831       Bugfix on 0.2.0.3-alpha; fixes first part of bug 2660. Patch by
10832       "piebeer".
10833     - Set target port in get_interface_address6() correctly. Bugfix
10834       on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug 2660.
10835     - Directory authorities are now more robust to hops back in time
10836       when calculating router stability. Previously, if a run of uptime
10837       or downtime appeared to be negative, the calculation could give
10838       incorrect results. Bugfix on 0.2.0.6-alpha; noticed when fixing
10839       bug 1035.
10840     - Fix an assert that got triggered when using the TestingTorNetwork
10841       configuration option and then issuing a GETINFO config-text control
10842       command. Fixes bug 2250; bugfix on 0.2.1.2-alpha.
10844   o Minor bugfixes (on 0.2.2.x):
10845     - Clients should not weight BadExit nodes as Exits in their node
10846       selection. Similarly, directory authorities should not count BadExit
10847       bandwidth as Exit bandwidth when computing bandwidth-weights.
10848       Bugfix on 0.2.2.10-alpha; fixes bug 2203.
10849     - Correctly clear our dir_read/dir_write history when there is an
10850       error parsing any bw history value from the state file. Bugfix on
10851       Tor 0.2.2.15-alpha.
10852     - Resolve a bug in verifying signatures of directory objects
10853       with digests longer than SHA1. Bugfix on 0.2.2.20-alpha.
10854       Fixes bug 2409. Found by "piebeer".
10855     - Bridge authorities no longer crash on SIGHUP when they try to
10856       publish their relay descriptor to themselves. Fixes bug 2572. Bugfix
10857       on 0.2.2.22-alpha.
10859   o Minor features:
10860     - Log less aggressively about circuit timeout changes, and improve
10861       some other circuit timeout messages. Resolves bug 2004.
10862     - Log a little more clearly about the times at which we're no longer
10863       accepting new connections. Resolves bug 2181.
10864     - Reject attempts at the client side to open connections to private
10865       IP addresses (like 127.0.0.1, 10.0.0.1, and so on) with
10866       a randomly chosen exit node. Attempts to do so are always
10867       ill-defined, generally prevented by exit policies, and usually
10868       in error. This will also help to detect loops in transparent
10869       proxy configurations. You can disable this feature by setting
10870       "ClientRejectInternalAddresses 0" in your torrc.
10871     - Always treat failure to allocate an RSA key as an unrecoverable
10872       allocation error.
10873     - Update to the March 1 2011 Maxmind GeoLite Country database.
10875   o Minor features (log subsystem):
10876     - Add documentation for configuring logging at different severities in
10877       different log domains. We've had this feature since 0.2.1.1-alpha,
10878       but for some reason it never made it into the manpage. Fixes
10879       bug 2215.
10880     - Make it simpler to specify "All log domains except for A and B".
10881       Previously you needed to say "[*,~A,~B]". Now you can just say
10882       "[~A,~B]".
10883     - Add a "LogMessageDomains 1" option to include the domains of log
10884       messages along with the messages. Without this, there's no way
10885       to use log domains without reading the source or doing a lot
10886       of guessing.
10888   o Packaging changes:
10889     - Stop shipping the Tor specs files and development proposal documents
10890       in the tarball. They are now in a separate git repository at
10891       git://git.torproject.org/torspec.git
10894 Changes in version 0.2.1.30 - 2011-02-23
10895   Tor 0.2.1.30 fixes a variety of less critical bugs. The main other
10896   change is a slight tweak to Tor's TLS handshake that makes relays
10897   and bridges that run this new version reachable from Iran again.
10898   We don't expect this tweak will win the arms race long-term, but it
10899   buys us time until we roll out a better solution.
10901   o Major bugfixes:
10902     - Stop sending a CLOCK_SKEW controller status event whenever
10903       we fetch directory information from a relay that has a wrong clock.
10904       Instead, only inform the controller when it's a trusted authority
10905       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
10906       the rest of bug 1074.
10907     - Fix a bounds-checking error that could allow an attacker to
10908       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
10909       Found by "piebeer".
10910     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
10911       Tor would ignore their RelayBandwidthBurst setting,
10912       potentially using more bandwidth than expected. Bugfix on
10913       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
10914     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
10915       hidserv" in her torrc. The 'hidserv' argument never controlled
10916       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
10918   o Minor features:
10919     - Adjust our TLS Diffie-Hellman parameters to match those used by
10920       Apache's mod_ssl.
10921     - Update to the February 1 2011 Maxmind GeoLite Country database.
10923   o Minor bugfixes:
10924     - Check for and reject overly long directory certificates and
10925       directory tokens before they have a chance to hit any assertions.
10926       Bugfix on 0.2.1.28. Found by "doorss".
10927     - Bring the logic that gathers routerinfos and assesses the
10928       acceptability of circuits into line. This prevents a Tor OP from
10929       getting locked in a cycle of choosing its local OR as an exit for a
10930       path (due to a .exit request) and then rejecting the circuit because
10931       its OR is not listed yet. It also prevents Tor clients from using an
10932       OR running in the same instance as an exit (due to a .exit request)
10933       if the OR does not meet the same requirements expected of an OR
10934       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
10936   o Packaging changes:
10937     - Stop shipping the Tor specs files and development proposal documents
10938       in the tarball. They are now in a separate git repository at
10939       git://git.torproject.org/torspec.git
10940     - Do not include Git version tags as though they are SVN tags when
10941       generating a tarball from inside a repository that has switched
10942       between branches. Bugfix on 0.2.1.15-rc; fixes bug 2402.
10945 Changes in version 0.2.2.22-alpha - 2011-01-25
10946   Tor 0.2.2.22-alpha fixes a few more less-critical security issues. The
10947   main other change is a slight tweak to Tor's TLS handshake that makes
10948   relays and bridges that run this new version reachable from Iran again.
10949   We don't expect this tweak will win the arms race long-term, but it
10950   will buy us a bit more time until we roll out a better solution.
10952   o Major bugfixes:
10953     - Fix a bounds-checking error that could allow an attacker to
10954       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
10955       Found by "piebeer".
10956     - Don't assert when changing from bridge to relay or vice versa
10957       via the controller. The assert happened because we didn't properly
10958       initialize our keys in this case. Bugfix on 0.2.2.18-alpha; fixes
10959       bug 2433. Reported by bastik.
10961   o Minor features:
10962     - Adjust our TLS Diffie-Hellman parameters to match those used by
10963       Apache's mod_ssl.
10964     - Provide a log message stating which geoip file we're parsing
10965       instead of just stating that we're parsing the geoip file.
10966       Implements ticket 2432.
10968   o Minor bugfixes:
10969     - Check for and reject overly long directory certificates and
10970       directory tokens before they have a chance to hit any assertions.
10971       Bugfix on 0.2.1.28 / 0.2.2.20-alpha. Found by "doorss".
10974 Changes in version 0.2.2.21-alpha - 2011-01-15
10975   Tor 0.2.2.21-alpha includes all the patches from Tor 0.2.1.29, which
10976   continues our recent code security audit work. The main fix resolves
10977   a remote heap overflow vulnerability that can allow remote code
10978   execution (CVE-2011-0427). Other fixes address a variety of assert
10979   and crash bugs, most of which we think are hard to exploit remotely.
10981   o Major bugfixes (security), also included in 0.2.1.29:
10982     - Fix a heap overflow bug where an adversary could cause heap
10983       corruption. This bug probably allows remote code execution
10984       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
10985       0.1.2.10-rc.
10986     - Prevent a denial-of-service attack by disallowing any
10987       zlib-compressed data whose compression factor is implausibly
10988       high. Fixes part of bug 2324; reported by "doorss".
10989     - Zero out a few more keys in memory before freeing them. Fixes
10990       bug 2384 and part of bug 2385. These key instances found by
10991       "cypherpunks", based on Andrew Case's report about being able
10992       to find sensitive data in Tor's memory space if you have enough
10993       permissions. Bugfix on 0.0.2pre9.
10995   o Major bugfixes (crashes), also included in 0.2.1.29:
10996     - Prevent calls to Libevent from inside Libevent log handlers.
10997       This had potential to cause a nasty set of crashes, especially
10998       if running Libevent with debug logging enabled, and running
10999       Tor with a controller watching for low-severity log messages.
11000       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
11001     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
11002       underflow errors there too. Fixes the other part of bug 2324.
11003     - Fix a bug where we would assert if we ever had a
11004       cached-descriptors.new file (or another file read directly into
11005       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
11006       on 0.2.1.25. Found by doorss.
11007     - Fix some potential asserts and parsing issues with grossly
11008       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
11009       Found by doorss.
11011   o Minor bugfixes (other), also included in 0.2.1.29:
11012     - Fix a bug with handling misformed replies to reverse DNS lookup
11013       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
11014       bug reported by doorss.
11015     - Fix compilation on mingw when a pthreads compatibility library
11016       has been installed. (We don't want to use it, so we shouldn't
11017       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
11018     - Fix a bug where we would declare that we had run out of virtual
11019       addresses when the address space was only half-exhausted. Bugfix
11020       on 0.1.2.1-alpha.
11021     - Correctly handle the case where AutomapHostsOnResolve is set but
11022       no virtual addresses are available. Fixes bug 2328; bugfix on
11023       0.1.2.1-alpha. Bug found by doorss.
11024     - Correctly handle wrapping around when we run out of virtual
11025       address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha.
11027   o Minor features, also included in 0.2.1.29:
11028     - Update to the January 1 2011 Maxmind GeoLite Country database.
11029     - Introduce output size checks on all of our decryption functions.
11031   o Build changes, also included in 0.2.1.29:
11032     - Tor does not build packages correctly with Automake 1.6 and earlier;
11033       added a check to Makefile.am to make sure that we're building with
11034       Automake 1.7 or later.
11035     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
11036       because we built it with a too-old version of automake. Thus that
11037       release broke ./configure --enable-openbsd-malloc, which is popular
11038       among really fast exit relays on Linux.
11040   o Major bugfixes, new in 0.2.2.21-alpha:
11041     - Prevent crash/heap corruption when the cbtnummodes consensus
11042       parameter is set to 0 or large values. Fixes bug 2317; bugfix
11043       on 0.2.2.14-alpha.
11045   o Major features, new in 0.2.2.21-alpha:
11046     - Introduce minimum/maximum values that clients will believe
11047       from the consensus. Now we'll have a better chance to avoid crashes
11048       or worse when a consensus param has a weird value.
11050   o Minor features, new in 0.2.2.21-alpha:
11051     - Make sure to disable DirPort if running as a bridge. DirPorts aren't
11052       used on bridges, and it makes bridge scanning somewhat easier.
11053     - If writing the state file to disk fails, wait up to an hour before
11054       retrying again, rather than trying again each second. Fixes bug
11055       2346; bugfix on Tor 0.1.1.3-alpha.
11056     - Make Libevent log messages get delivered to controllers later,
11057       and not from inside the Libevent log handler. This prevents unsafe
11058       reentrant Libevent calls while still letting the log messages
11059       get through.
11060     - Detect platforms that brokenly use a signed size_t, and refuse to
11061       build there. Found and analyzed by doorss and rransom.
11062     - Fix a bunch of compile warnings revealed by mingw with gcc 4.5.
11063       Resolves bug 2314.
11065   o Minor bugfixes, new in 0.2.2.21-alpha:
11066     - Handle SOCKS messages longer than 128 bytes long correctly, rather
11067       than waiting forever for them to finish. Fixes bug 2330; bugfix
11068       on 0.2.0.16-alpha. Found by doorss.
11069     - Add assertions to check for overflow in arguments to
11070       base32_encode() and base32_decode(); fix a signed-unsigned
11071       comparison there too. These bugs are not actually reachable in Tor,
11072       but it's good to prevent future errors too. Found by doorss.
11073     - Correctly detect failures to create DNS requests when using Libevent
11074       versions before v2. (Before Libevent 2, we used our own evdns
11075       implementation. Its return values for Libevent's evdns_resolve_*()
11076       functions are not consistent with those from Libevent.) Fixes bug
11077       2363; bugfix on 0.2.2.6-alpha. Found by "lodger".
11079   o Documentation, new in 0.2.2.21-alpha:
11080     - Document the default socks host and port (127.0.0.1:9050) for
11081       tor-resolve.
11084 Changes in version 0.2.1.29 - 2011-01-15
11085   Tor 0.2.1.29 continues our recent code security audit work. The main
11086   fix resolves a remote heap overflow vulnerability that can allow remote
11087   code execution. Other fixes address a variety of assert and crash bugs,
11088   most of which we think are hard to exploit remotely.
11090   o Major bugfixes (security):
11091     - Fix a heap overflow bug where an adversary could cause heap
11092       corruption. This bug probably allows remote code execution
11093       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
11094       0.1.2.10-rc.
11095     - Prevent a denial-of-service attack by disallowing any
11096       zlib-compressed data whose compression factor is implausibly
11097       high. Fixes part of bug 2324; reported by "doorss".
11098     - Zero out a few more keys in memory before freeing them. Fixes
11099       bug 2384 and part of bug 2385. These key instances found by
11100       "cypherpunks", based on Andrew Case's report about being able
11101       to find sensitive data in Tor's memory space if you have enough
11102       permissions. Bugfix on 0.0.2pre9.
11104   o Major bugfixes (crashes):
11105     - Prevent calls to Libevent from inside Libevent log handlers.
11106       This had potential to cause a nasty set of crashes, especially
11107       if running Libevent with debug logging enabled, and running
11108       Tor with a controller watching for low-severity log messages.
11109       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
11110     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
11111       underflow errors there too. Fixes the other part of bug 2324.
11112     - Fix a bug where we would assert if we ever had a
11113       cached-descriptors.new file (or another file read directly into
11114       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
11115       on 0.2.1.25. Found by doorss.
11116     - Fix some potential asserts and parsing issues with grossly
11117       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
11118       Found by doorss.
11120   o Minor bugfixes (other):
11121     - Fix a bug with handling misformed replies to reverse DNS lookup
11122       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
11123       bug reported by doorss.
11124     - Fix compilation on mingw when a pthreads compatibility library
11125       has been installed. (We don't want to use it, so we shouldn't
11126       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
11127     - Fix a bug where we would declare that we had run out of virtual
11128       addresses when the address space was only half-exhausted. Bugfix
11129       on 0.1.2.1-alpha.
11130     - Correctly handle the case where AutomapHostsOnResolve is set but
11131       no virtual addresses are available. Fixes bug 2328; bugfix on
11132       0.1.2.1-alpha. Bug found by doorss.
11133     - Correctly handle wrapping around to when we run out of virtual
11134       address space. Found by cypherpunks, bugfix on 0.2.0.5-alpha.
11135     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
11136       because we built it with a too-old version of automake. Thus that
11137       release broke ./configure --enable-openbsd-malloc, which is popular
11138       among really fast exit relays on Linux.
11140   o Minor features:
11141     - Update to the January 1 2011 Maxmind GeoLite Country database.
11142     - Introduce output size checks on all of our decryption functions.
11144   o Build changes:
11145     - Tor does not build packages correctly with Automake 1.6 and earlier;
11146       added a check to Makefile.am to make sure that we're building with
11147       Automake 1.7 or later.
11150 Changes in version 0.2.2.20-alpha - 2010-12-17
11151   Tor 0.2.2.20-alpha does some code cleanup to reduce the risk of remotely
11152   exploitable bugs. We also fix a variety of other significant bugs,
11153   change the IP address for one of our directory authorities, and update
11154   the minimum version that Tor relays must run to join the network.
11156   o Major bugfixes:
11157     - Fix a remotely exploitable bug that could be used to crash instances
11158       of Tor remotely by overflowing on the heap. Remote-code execution
11159       hasn't been confirmed, but can't be ruled out. Everyone should
11160       upgrade. Bugfix on the 0.1.1 series and later.
11161     - Fix a bug that could break accounting on 64-bit systems with large
11162       time_t values, making them hibernate for impossibly long intervals.
11163       Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper.
11164     - Fix a logic error in directory_fetches_from_authorities() that
11165       would cause all _non_-exits refusing single-hop-like circuits
11166       to fetch from authorities, when we wanted to have _exits_ fetch
11167       from authorities. Fixes more of 2097. Bugfix on 0.2.2.16-alpha;
11168       fix by boboper.
11169     - Fix a stream fairness bug that would cause newer streams on a given
11170       circuit to get preference when reading bytes from the origin or
11171       destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was
11172       introduced before the first Tor release, in svn revision r152.
11174   o Directory authority changes:
11175     - Change IP address and ports for gabelmoo (v3 directory authority).
11177   o Minor bugfixes:
11178     - Avoid crashes when AccountingMax is set on clients. Fixes bug 2235.
11179       Bugfix on 0.2.2.18-alpha. Diagnosed by boboper.
11180     - Fix an off-by-one error in calculating some controller command
11181       argument lengths. Fortunately, this mistake is harmless since
11182       the controller code does redundant NUL termination too. Found by
11183       boboper. Bugfix on 0.1.1.1-alpha.
11184     - Do not dereference NULL if a bridge fails to build its
11185       extra-info descriptor. Found by an anonymous commenter on
11186       Trac. Bugfix on 0.2.2.19-alpha.
11188   o Minor features:
11189     - Update to the December 1 2010 Maxmind GeoLite Country database.
11190     - Directory authorities now reject relays running any versions of
11191       Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
11192       known bugs that keep RELAY_EARLY cells from working on rendezvous
11193       circuits. Followup to fix for bug 2081.
11194     - Directory authorities now reject relays running any version of Tor
11195       older than 0.2.0.26-rc. That version is the earliest that fetches
11196       current directory information correctly. Fixes bug 2156.
11197     - Report only the top 10 ports in exit-port stats in order not to
11198       exceed the maximum extra-info descriptor length of 50 KB. Implements
11199       task 2196.
11202 Changes in version 0.2.1.28 - 2010-12-17
11203   Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely
11204   exploitable bugs. We also took this opportunity to change the IP address
11205   for one of our directory authorities, and to update the geoip database
11206   we ship.
11208   o Major bugfixes:
11209     - Fix a remotely exploitable bug that could be used to crash instances
11210       of Tor remotely by overflowing on the heap. Remote-code execution
11211       hasn't been confirmed, but can't be ruled out. Everyone should
11212       upgrade. Bugfix on the 0.1.1 series and later.
11214   o Directory authority changes:
11215     - Change IP address and ports for gabelmoo (v3 directory authority).
11217   o Minor features:
11218     - Update to the December 1 2010 Maxmind GeoLite Country database.
11221 Changes in version 0.2.1.27 - 2010-11-23
11222   Yet another OpenSSL security patch broke its compatibility with Tor:
11223   Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We
11224   also took this opportunity to fix several crash bugs, integrate a new
11225   directory authority, and update the bundled GeoIP database.
11227   o Major bugfixes:
11228     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
11229       No longer set the tlsext_host_name extension on server SSL objects;
11230       but continue to set it on client SSL objects. Our goal in setting
11231       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
11232       bugfix on 0.2.1.1-alpha.
11233     - Do not log messages to the controller while shrinking buffer
11234       freelists. Doing so would sometimes make the controller connection
11235       try to allocate a buffer chunk, which would mess up the internals
11236       of the freelist and cause an assertion failure. Fixes bug 1125;
11237       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
11238     - Learn our external IP address when we're a relay or bridge, even if
11239       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
11240       where we introduced bridge relays that don't need to publish to
11241       be useful. Fixes bug 2050.
11242     - Do even more to reject (and not just ignore) annotations on
11243       router descriptors received anywhere but from the cache. Previously
11244       we would ignore such annotations at first, but cache them to disk
11245       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
11246     - When you're using bridges and your network goes away and your
11247       bridges get marked as down, recover when you attempt a new socks
11248       connection (if the network is back), rather than waiting up to an
11249       hour to try fetching new descriptors for your bridges. Bugfix on
11250       0.2.0.3-alpha; fixes bug 1981.
11252   o Major features:
11253     - Move to the November 2010 Maxmind GeoLite country db (rather
11254       than the June 2009 ip-to-country GeoIP db) for our statistics that
11255       count how many users relays are seeing from each country. Now we'll
11256       have more accurate data, especially for many African countries.
11258   o New directory authorities:
11259     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
11260       authority.
11262   o Minor bugfixes:
11263     - Fix an assertion failure that could occur in directory caches or
11264       bridge users when using a very short voting interval on a testing
11265       network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on
11266       0.2.0.8-alpha.
11267     - Enforce multiplicity rules when parsing annotations. Bugfix on
11268       0.2.0.8-alpha. Found by piebeer.
11269     - Allow handshaking OR connections to take a full KeepalivePeriod
11270       seconds to handshake. Previously, we would close them after
11271       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
11272       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
11273       for analysis help.
11274     - When building with --enable-gcc-warnings on OpenBSD, disable
11275       warnings in system headers. This makes --enable-gcc-warnings
11276       pass on OpenBSD 4.8.
11278   o Minor features:
11279     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
11280       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
11281       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
11282       Servers can start sending this code when enough clients recognize
11283       it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793.
11284     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
11285       Patch from mingw-san.
11287   o Removed files:
11288     - Remove the old debian/ directory from the main Tor distribution.
11289       The official Tor-for-debian git repository lives at the URL
11290       https://git.torproject.org/debian/tor.git
11291     - Stop shipping the old doc/website/ directory in the tarball. We
11292       changed the website format in late 2010, and what we shipped in
11293       0.2.1.26 really wasn't that useful anyway.
11296 Changes in version 0.2.2.19-alpha - 2010-11-22
11297   Yet another OpenSSL security patch broke its compatibility with Tor:
11298   Tor 0.2.2.19-alpha makes relays work with OpenSSL 0.9.8p and 1.0.0.b.
11300   o Major bugfixes:
11301     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
11302       No longer set the tlsext_host_name extension on server SSL objects;
11303       but continue to set it on client SSL objects. Our goal in setting
11304       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
11305       bugfix on 0.2.1.1-alpha.
11307   o Minor bugfixes:
11308     - Try harder not to exceed the maximum length of 50 KB when writing
11309       statistics to extra-info descriptors. This bug was triggered by very
11310       fast relays reporting exit-port, entry, and dirreq statistics.
11311       Reported by Olaf Selke. Bugfix on 0.2.2.1-alpha. Fixes bug 2183.
11312     - Publish a router descriptor even if generating an extra-info
11313       descriptor fails. Previously we would not publish a router
11314       descriptor without an extra-info descriptor; this can cause fast
11315       exit relays collecting exit-port statistics to drop from the
11316       consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195.
11319 Changes in version 0.2.2.18-alpha - 2010-11-16
11320   Tor 0.2.2.18-alpha fixes several crash bugs that have been nagging
11321   us lately, makes unpublished bridge relays able to detect their IP
11322   address, and fixes a wide variety of other bugs to get us much closer
11323   to a stable release.
11325   o Major bugfixes:
11326     - Do even more to reject (and not just ignore) annotations on
11327       router descriptors received anywhere but from the cache. Previously
11328       we would ignore such annotations at first, but cache them to disk
11329       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
11330     - Do not log messages to the controller while shrinking buffer
11331       freelists. Doing so would sometimes make the controller connection
11332       try to allocate a buffer chunk, which would mess up the internals
11333       of the freelist and cause an assertion failure. Fixes bug 1125;
11334       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
11335     - Learn our external IP address when we're a relay or bridge, even if
11336       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
11337       where we introduced bridge relays that don't need to publish to
11338       be useful. Fixes bug 2050.
11339     - Maintain separate TLS contexts and certificates for incoming and
11340       outgoing connections in bridge relays. Previously we would use the
11341       same TLS contexts and certs for incoming and outgoing connections.
11342       Bugfix on 0.2.0.3-alpha; addresses bug 988.
11343     - Maintain separate identity keys for incoming and outgoing TLS
11344       contexts in bridge relays. Previously we would use the same
11345       identity keys for incoming and outgoing TLS contexts. Bugfix on
11346       0.2.0.3-alpha; addresses the other half of bug 988.
11347     - Avoid an assertion failure when we as an authority receive a
11348       duplicate upload of a router descriptor that we already have,
11349       but which we previously considered an obsolete descriptor.
11350       Fixes another case of bug 1776. Bugfix on 0.2.2.16-alpha.
11351     - Avoid a crash bug triggered by looking at a dangling pointer while
11352       setting the network status consensus. Found by Robert Ransom.
11353       Bugfix on 0.2.2.17-alpha. Fixes bug 2097.
11354     - Fix a logic error where servers that _didn't_ act as exits would
11355       try to keep their server lists more aggressively up to date than
11356       exits, when it was supposed to be the other way around. Bugfix
11357       on 0.2.2.17-alpha.
11359   o Minor bugfixes (on Tor 0.2.1.x and earlier):
11360     - When we're trying to guess whether we know our IP address as
11361       a relay, we would log various ways that we failed to guess
11362       our address, but never log that we ended up guessing it
11363       successfully. Now add a log line to help confused and anxious
11364       relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534.
11365     - Bring the logic that gathers routerinfos and assesses the
11366       acceptability of circuits into line. This prevents a Tor OP from
11367       getting locked in a cycle of choosing its local OR as an exit for a
11368       path (due to a .exit request) and then rejecting the circuit because
11369       its OR is not listed yet. It also prevents Tor clients from using an
11370       OR running in the same instance as an exit (due to a .exit request)
11371       if the OR does not meet the same requirements expected of an OR
11372       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
11373     - Correctly describe errors that occur when generating a TLS object.
11374       Previously we would attribute them to a failure while generating a
11375       TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes
11376       bug 1994.
11377     - Enforce multiplicity rules when parsing annotations. Bugfix on
11378       0.2.0.8-alpha. Found by piebeer.
11379     - Fix warnings that newer versions of autoconf produced during
11380       ./autogen.sh. These warnings appear to be harmless in our case,
11381       but they were extremely verbose. Fixes bug 2020.
11383   o Minor bugfixes (on Tor 0.2.2.x):
11384     - Enable protection of small arrays whenever we build with gcc
11385       hardening features, not only when also building with warnings
11386       enabled. Fixes bug 2031; bugfix on 0.2.2.14-alpha. Reported by keb.
11388   o Minor features:
11389     - Make hidden services work better in private Tor networks by not
11390       requiring any uptime to join the hidden service descriptor
11391       DHT. Implements ticket 2088.
11392     - Rate-limit the "your application is giving Tor only an IP address"
11393       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
11394     - When AllowSingleHopExits is set, print a warning to explain to the
11395       relay operator why most clients are avoiding her relay.
11396     - Update to the November 1 2010 Maxmind GeoLite Country database.
11398   o Code simplifications and refactoring:
11399     - When we fixed bug 1038 we had to put in a restriction not to send
11400       RELAY_EARLY cells on rend circuits. This was necessary as long
11401       as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
11402       active. Now remove this obsolete check. Resolves bug 2081.
11403     - Some options used different conventions for uppercasing of acronyms
11404       when comparing manpage and source. Fix those in favor of the
11405       manpage, as it makes sense to capitalize acronyms.
11406     - Remove the torrc.complete file. It hasn't been kept up to date
11407       and users will have better luck checking out the manpage.
11408     - Remove the obsolete "NoPublish" option; it has been flagged
11409       as obsolete and has produced a warning since 0.1.1.18-rc.
11410     - Remove everything related to building the expert bundle for OS X.
11411       It has confused many users, doesn't work right on OS X 10.6,
11412       and is hard to get rid of once installed. Resolves bug 1274.
11415 Changes in version 0.2.2.17-alpha - 2010-09-30
11416   Tor 0.2.2.17-alpha introduces a feature to make it harder for clients
11417   to use one-hop circuits (which can put the exit relays at higher risk,
11418   plus unbalance the network); fixes a big bug in bandwidth accounting
11419   for relays that want to limit their monthly bandwidth use; fixes a
11420   big pile of bugs in how clients tolerate temporary network failure;
11421   and makes our adaptive circuit build timeout feature (which improves
11422   client performance if your network is fast while not breaking things
11423   if your network is slow) better handle bad networks.
11425   o Major features:
11426     - Exit relays now try harder to block exit attempts from unknown
11427       relays, to make it harder for people to use them as one-hop proxies
11428       a la tortunnel. Controlled by the refuseunknownexits consensus
11429       parameter (currently enabled), or you can override it on your
11430       relay with the RefuseUnknownExits torrc option. Resolves bug 1751.
11432   o Major bugfixes (0.2.1.x and earlier):
11433     - Fix a bug in bandwidth accounting that could make us use twice
11434       the intended bandwidth when our interval start changes due to
11435       daylight saving time. Now we tolerate skew in stored vs computed
11436       interval starts: if the start of the period changes by no more than
11437       50% of the period's duration, we remember bytes that we transferred
11438       in the old period. Fixes bug 1511; bugfix on 0.0.9pre5.
11439     - Always search the Windows system directory for system DLLs, and
11440       nowhere else. Bugfix on 0.1.1.23; fixes bug 1954.
11441     - When you're using bridges and your network goes away and your
11442       bridges get marked as down, recover when you attempt a new socks
11443       connection (if the network is back), rather than waiting up to an
11444       hour to try fetching new descriptors for your bridges. Bugfix on
11445       0.2.0.3-alpha; fixes bug 1981.
11447   o Major bugfixes (on 0.2.2.x):
11448     - Fix compilation on Windows. Bugfix on 0.2.2.16-alpha; related to
11449       bug 1797.
11450     - Fix a segfault that could happen when operating a bridge relay with
11451       no GeoIP database set. Fixes bug 1964; bugfix on 0.2.2.15-alpha.
11452     - The consensus bandwidth-weights (used by clients to choose fast
11453       relays) entered an unexpected edge case in September where
11454       Exits were much scarcer than Guards, resulting in bad weight
11455       recommendations. Now we compute them using new constraints that
11456       should succeed in all cases. Also alter directory authorities to
11457       not include the bandwidth-weights line if they fail to produce
11458       valid values. Fixes bug 1952; bugfix on 0.2.2.10-alpha.
11459     - When weighting bridges during path selection, we used to trust
11460       the bandwidths they provided in their descriptor, only capping them
11461       at 10MB/s. This turned out to be problematic for two reasons:
11462       Bridges could claim to handle a lot more traffic then they
11463       actually would, thus making more clients pick them and have a
11464       pretty effective DoS attack. The other issue is that new bridges
11465       that might not have a good estimate for their bw capacity yet
11466       would not get used at all unless no other bridges are available
11467       to a client. Fixes bug 1912; bugfix on 0.2.2.7-alpha.
11469   o Major bugfixes (on the circuit build timeout feature, 0.2.2.x):
11470     - Ignore cannibalized circuits when recording circuit build times.
11471       This should provide for a minor performance improvement for hidden
11472       service users using 0.2.2.14-alpha, and should remove two spurious
11473       notice log messages. Bugfix on 0.2.2.14-alpha; fixes bug 1740.
11474     - Simplify the logic that causes us to decide if the network is
11475       unavailable for purposes of recording circuit build times. If we
11476       receive no cells whatsoever for the entire duration of a circuit's
11477       full measured lifetime, the network is probably down. Also ignore
11478       one-hop directory fetching circuit timeouts when calculating our
11479       circuit build times. These changes should hopefully reduce the
11480       cases where we see ridiculous circuit build timeouts for people
11481       with spotty wireless connections. Fixes part of bug 1772; bugfix
11482       on 0.2.2.2-alpha.
11483     - Prevent the circuit build timeout from becoming larger than
11484       the maximum build time we have ever seen. Also, prevent the time
11485       period for measurement circuits from becoming larger than twice that
11486       value. Fixes the other part of bug 1772; bugfix on 0.2.2.2-alpha.
11488   o Minor features:
11489     - When we run out of directory information such that we can't build
11490       circuits, but then get enough that we can build circuits, log when
11491       we actually construct a circuit, so the user has a better chance of
11492       knowing what's going on. Fixes bug 1362.
11493     - Be more generous with how much bandwidth we'd use up (with
11494       accounting enabled) before entering "soft hibernation". Previously,
11495       we'd refuse new connections and circuits once we'd used up 95% of
11496       our allotment. Now, we use up 95% of our allotment, AND make sure
11497       that we have no more than 500MB (or 3 hours of expected traffic,
11498       whichever is lower) remaining before we enter soft hibernation.
11499     - If we've configured EntryNodes and our network goes away and/or all
11500       our entrynodes get marked down, optimistically retry them all when
11501       a new socks application request appears. Fixes bug 1882.
11502     - Add some more defensive programming for architectures that can't
11503       handle unaligned integer accesses. We don't know of any actual bugs
11504       right now, but that's the best time to fix them. Fixes bug 1943.
11505     - Support line continuations in the torrc config file. If a line
11506       ends with a single backslash character, the newline is ignored, and
11507       the configuration value is treated as continuing on the next line.
11508       Resolves bug 1929.
11510   o Minor bugfixes (on 0.2.1.x and earlier):
11511     - For bandwidth accounting, calculate our expected bandwidth rate
11512       based on the time during which we were active and not in
11513       soft-hibernation during the last interval. Previously, we were
11514       also considering the time spent in soft-hibernation. If this
11515       was a long time, we would wind up underestimating our bandwidth
11516       by a lot, and skewing our wakeup time towards the start of the
11517       accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.
11519   o Minor bugfixes (on 0.2.2.x):
11520     - Resume generating CIRC FAILED REASON=TIMEOUT control port messages,
11521       which were disabled by the circuit build timeout changes in
11522       0.2.2.14-alpha. Bugfix on 0.2.2.14-alpha; fixes bug 1739.
11523     - Make sure we don't warn about missing bandwidth weights when
11524       choosing bridges or other relays not in the consensus. Bugfix on
11525       0.2.2.10-alpha; fixes bug 1805.
11526     - In our logs, do not double-report signatures from unrecognized
11527       authorities both as "from unknown authority" and "not
11528       present". Fixes bug 1956, bugfix on 0.2.2.16-alpha.
11531 Changes in version 0.2.2.16-alpha - 2010-09-17
11532   Tor 0.2.2.16-alpha fixes a variety of old stream fairness bugs (most
11533   evident at exit relays), and also continues to resolve all the little
11534   bugs that have been filling up trac lately.
11536   o Major bugfixes (stream-level fairness):
11537     - When receiving a circuit-level SENDME for a blocked circuit, try
11538       to package cells fairly from all the streams that had previously
11539       been blocked on that circuit. Previously, we had started with the
11540       oldest stream, and allowed each stream to potentially exhaust
11541       the circuit's package window. This gave older streams on any
11542       given circuit priority over newer ones. Fixes bug 1937. Detected
11543       originally by Camilo Viecco. This bug was introduced before the
11544       first Tor release, in svn commit r152: it is the new winner of
11545       the longest-lived bug prize.
11546     - When the exit relay got a circuit-level sendme cell, it started
11547       reading on the exit streams, even if had 500 cells queued in the
11548       circuit queue already, so the circuit queue just grew and grew in
11549       some cases. We fix this by not re-enabling reading on receipt of a
11550       sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix
11551       on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by
11552       "yetonetime".
11553     - Newly created streams were allowed to read cells onto circuits,
11554       even if the circuit's cell queue was blocked and waiting to drain.
11555       This created potential unfairness, as older streams would be
11556       blocked, but newer streams would gladly fill the queue completely.
11557       We add code to detect this situation and prevent any stream from
11558       getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially
11559       fixes bug 1298.
11561   o Minor features:
11562     - Update to the September 1 2010 Maxmind GeoLite Country database.
11563     - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is
11564       not. This would lead to a cookie that is still not group readable.
11565       Closes bug 1843. Suggested by katmagic.
11566     - When logging a rate-limited warning, we now mention how many messages
11567       got suppressed since the last warning.
11568     - Add new "perconnbwrate" and "perconnbwburst" consensus params to
11569       do individual connection-level rate limiting of clients. The torrc
11570       config options with the same names trump the consensus params, if
11571       both are present. Replaces the old "bwconnrate" and "bwconnburst"
11572       consensus params which were broken from 0.2.2.7-alpha through
11573       0.2.2.14-alpha. Closes bug 1947.
11574     - When a router changes IP address or port, authorities now launch
11575       a new reachability test for it. Implements ticket 1899.
11576     - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad,
11577       2 no signature, 4 required" messages about consensus signatures
11578       easier to read, and make sure they get logged at the same severity
11579       as the messages explaining which keys are which. Fixes bug 1290.
11580     - Don't warn when we have a consensus that we can't verify because
11581       of missing certificates, unless those certificates are ones
11582       that we have been trying and failing to download. Fixes bug 1145.
11583     - If you configure your bridge with a known identity fingerprint,
11584       and the bridge authority is unreachable (as it is in at least
11585       one country now), fall back to directly requesting the descriptor
11586       from the bridge. Finishes the feature started in 0.2.0.10-alpha;
11587       closes bug 1138.
11588     - When building with --enable-gcc-warnings on OpenBSD, disable
11589       warnings in system headers. This makes --enable-gcc-warnings
11590       pass on OpenBSD 4.8.
11592   o Minor bugfixes (on 0.2.1.x and earlier):
11593     - Authorities will now attempt to download consensuses if their
11594       own efforts to make a live consensus have failed. This change
11595       means authorities that restart will fetch a valid consensus, and
11596       it means authorities that didn't agree with the current consensus
11597       will still fetch and serve it if it has enough signatures. Bugfix
11598       on 0.2.0.9-alpha; fixes bug 1300.
11599     - Ensure DNS requests launched by "RESOLVE" commands from the
11600       controller respect the __LeaveStreamsUnattached setconf options. The
11601       same goes for requests launched via DNSPort or transparent
11602       proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525.
11603     - Allow handshaking OR connections to take a full KeepalivePeriod
11604       seconds to handshake. Previously, we would close them after
11605       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
11606       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
11607       for analysis help.
11608     - Rate-limit "Failed to hand off onionskin" warnings.
11609     - Never relay a cell for a circuit we have already destroyed.
11610       Between marking a circuit as closeable and finally closing it,
11611       it may have been possible for a few queued cells to get relayed,
11612       even though they would have been immediately dropped by the next
11613       OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha.
11614     - Never queue a cell for a circuit that's already been marked
11615       for close.
11616     - Never vote for a server as "Running" if we have a descriptor for
11617       it claiming to be hibernating, and that descriptor was published
11618       more recently than our last contact with the server. Bugfix on
11619       0.2.0.3-alpha; fixes bug 911.
11620     - Squash a compile warning on OpenBSD. Reported by Tas; fixes
11621       bug 1848.
11623   o Minor bugfixes (on 0.2.2.x):
11624     - Fix a regression introduced in 0.2.2.7-alpha that marked relays
11625       down if a directory fetch fails and you've configured either
11626       bridges or EntryNodes. The intent was to mark the relay as down
11627       _unless_ you're using bridges or EntryNodes, since if you are
11628       then you could quickly run out of entry points.
11629     - Fix the Windows directory-listing code. A bug introduced in
11630       0.2.2.14-alpha could make Windows directory servers forget to load
11631       some of their cached v2 networkstatus files.
11632     - Really allow clients to use relays as bridges. Fixes bug 1776;
11633       bugfix on 0.2.2.15-alpha.
11634     - Demote a warn to info that happens when the CellStatistics option
11635       was just enabled. Bugfix on 0.2.2.15-alpha; fixes bug 1921.
11636       Reported by Moritz Bartl.
11637     - On Windows, build correctly either with or without Unicode support.
11638       This is necessary so that Tor can support fringe platforms like
11639       Windows 98 (which has no Unicode), or Windows CE (which has no
11640       non-Unicode). Bugfix on 0.2.2.14-alpha; fixes bug 1797.
11642   o Testing
11643     - Add a unit test for cross-platform directory-listing code.
11646 Changes in version 0.2.2.15-alpha - 2010-08-18
11647   Tor 0.2.2.15-alpha fixes a big bug in hidden service availability,
11648   fixes a variety of other bugs that were preventing performance
11649   experiments from moving forward, fixes several bothersome memory leaks,
11650   and generally closes a lot of smaller bugs that have been filling up
11651   trac lately.
11653   o Major bugfixes:
11654     - Stop assigning the HSDir flag to relays that disable their
11655       DirPort (and thus will refuse to answer directory requests). This
11656       fix should dramatically improve the reachability of hidden services:
11657       hidden services and hidden service clients pick six HSDir relays
11658       to store and retrieve the hidden service descriptor, and currently
11659       about half of the HSDir relays will refuse to work. Bugfix on
11660       0.2.0.10-alpha; fixes part of bug 1693.
11661     - The PerConnBWRate and Burst config options, along with the
11662       bwconnrate and bwconnburst consensus params, initialized each conn's
11663       token bucket values only when the connection is established. Now we
11664       update them if the config options change, and update them every time
11665       we get a new consensus. Otherwise we can encounter an ugly edge
11666       case where we initialize an OR conn to client-level bandwidth,
11667       but then later the relay joins the consensus and we leave it
11668       throttled. Bugfix on 0.2.2.7-alpha; fixes bug 1830.
11669     - Fix a regression that caused Tor to rebind its ports if it receives
11670       SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919.
11672   o Major features:
11673     - Lower the maximum weighted-fractional-uptime cutoff to 98%. This
11674       should give us approximately 40-50% more Guard-flagged nodes,
11675       improving the anonymity the Tor network can provide and also
11676       decreasing the dropoff in throughput that relays experience when
11677       they first get the Guard flag.
11678     - Allow enabling or disabling the *Statistics config options while
11679       Tor is running.
11681   o Minor features:
11682     - Update to the August 1 2010 Maxmind GeoLite Country database.
11683     - Have the controller interface give a more useful message than
11684       "Internal Error" in response to failed GETINFO requests.
11685     - Warn when the same option is provided more than once in a torrc
11686       file, on the command line, or in a single SETCONF statement, and
11687       the option is one that only accepts a single line. Closes bug 1384.
11688     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
11689       Patch from mingw-san.
11690     - Add support for the country code "{??}" in torrc options like
11691       ExcludeNodes, to indicate all routers of unknown country. Closes
11692       bug 1094.
11693     - Relays report the number of bytes spent on answering directory
11694       requests in extra-info descriptors similar to {read,write}-history.
11695       Implements enhancement 1790.
11697   o Minor bugfixes (on 0.2.1.x and earlier):
11698     - Complain if PublishServerDescriptor is given multiple arguments that
11699       include 0 or 1. This configuration will be rejected in the future.
11700       Bugfix on 0.2.0.1-alpha; closes bug 1107.
11701     - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration.
11702       Bugfix on 0.2.0.13-alpha; closes bug 928.
11703     - Change "Application request when we're believed to be offline."
11704       notice to "Application request when we haven't used client
11705       functionality lately.", to clarify that it's not an error. Bugfix
11706       on 0.0.9.3; fixes bug 1222.
11707     - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl"
11708       would return "551 Internal error" rather than "552 Unrecognized key
11709       ns/asdaskljkl". Bugfix on 0.1.2.3-alpha.
11710     - Users can't configure a regular relay to be their bridge. It didn't
11711       work because when Tor fetched the bridge descriptor, it found
11712       that it already had it, and didn't realize that the purpose of the
11713       descriptor had changed. Now we replace routers with a purpose other
11714       than bridge with bridge descriptors when fetching them. Bugfix on
11715       0.1.1.9-alpha. Bug 1776 not yet fixed because now we immediately
11716       refetch the descriptor with router purpose 'general', disabling
11717       it as a bridge.
11718     - Fix a rare bug in rend_fn unit tests: we would fail a test when
11719       a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix
11720       on 0.2.0.10-alpha; fixes bug 1808.
11721     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
11722       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
11723       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
11724       Servers can start sending this code when enough clients recognize
11725       it. Also update the spec to reflect this new reason. Bugfix on
11726       0.1.0.1-rc; fixes part of bug 1793.
11727     - Delay geoip stats collection by bridges for 6 hours, not 2 hours,
11728       when we switch from being a public relay to a bridge. Otherwise
11729       there will still be clients that see the relay in their consensus,
11730       and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes bug
11731       932 even more.
11732     - Instead of giving an assertion failure on an internal mismatch
11733       on estimated freelist size, just log a BUG warning and try later.
11734       Mitigates but does not fix bug 1125.
11735     - Fix an assertion failure that could occur in caches or bridge users
11736       when using a very short voting interval on a testing network.
11737       Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 0.2.0.8-alpha.
11739   o Minor bugfixes (on 0.2.2.x):
11740     - Alter directory authorities to always consider Exit-flagged nodes
11741       as potential Guard nodes in their votes. The actual decision to
11742       use Exits as Guards is done in the consensus bandwidth weights.
11743       Fixes bug 1294; bugfix on 0.2.2.10-alpha.
11744     - When the controller is reporting the purpose of circuits that
11745       didn't finish building before the circuit build timeout, it was
11746       printing UNKNOWN_13. Now print EXPIRED. Bugfix on 0.2.2.14-alpha.
11747     - Our libevent version parsing code couldn't handle versions like
11748       1.4.14b-stable and incorrectly warned the user about using an
11749       old and broken version of libevent. Treat 1.4.14b-stable like
11750       1.4.14-stable when parsing the version. Fixes bug 1731; bugfix
11751       on 0.2.2.1-alpha.
11752     - Don't use substitution references like $(VAR:MOD) when
11753       $(asciidoc_files) is empty -- make(1) on NetBSD transforms
11754       '$(:x)' to 'x' rather than the empty string. This bites us in
11755       doc/ when configured with --disable-asciidoc. Bugfix on
11756       0.2.2.9-alpha; fixes bug 1773.
11757     - Remove a spurious hidden service server-side log notice about
11758       "Ancient non-dirty circuits". Bugfix on 0.2.2.14-alpha; fixes
11759       bug 1741.
11760     - Fix compilation with --with-dmalloc set. Bugfix on 0.2.2.6-alpha;
11761       fixes bug 1832.
11762     - Correctly report written bytes on linked connections. Found while
11763       implementing 1790. Bugfix on 0.2.2.4-alpha.
11764     - Fix three memory leaks: one in circuit_build_times_parse_state(),
11765       one in dirvote_add_signatures_to_pending_consensus(), and one every
11766       time we parse a v3 network consensus. Bugfixes on 0.2.2.14-alpha,
11767       0.2.2.6-alpha, and 0.2.2.10-alpha respectively; fixes bug 1831.
11769   o Code simplifications and refactoring:
11770     - Take a first step towards making or.h smaller by splitting out
11771       function definitions for all source files in src/or/. Leave
11772       structures and defines in or.h for now.
11773     - Remove a bunch of unused function declarations as well as a block of
11774       #if 0'd code from the unit tests. Closes bug 1824.
11775     - New unit tests for exit-port history statistics; refactored exit
11776       statistics code to be more easily tested.
11777     - Remove the old debian/ directory from the main Tor distribution.
11778       The official Tor-for-debian git repository lives at the URL
11779       https://git.torproject.org/debian/tor.git
11782 Changes in version 0.2.2.14-alpha - 2010-07-12
11783   Tor 0.2.2.14-alpha greatly improves client-side handling of
11784   circuit build timeouts, which are used to estimate speed and improve
11785   performance. We also move to a much better GeoIP database, port Tor to
11786   Windows CE, introduce new compile flags that improve code security,
11787   add an eighth v3 directory authority, and address a lot of more
11788   minor issues.
11790   o Major bugfixes:
11791     - Tor directory authorities no longer crash when started with a
11792       cached-microdesc-consensus file in their data directory. Bugfix
11793       on 0.2.2.6-alpha; fixes bug 1532.
11794     - Treat an unset $HOME like an empty $HOME rather than triggering an
11795       assert. Bugfix on 0.0.8pre1; fixes bug 1522.
11796     - Ignore negative and large circuit build timeout values that can
11797       happen during a suspend or hibernate. These values caused various
11798       asserts to fire. Bugfix on 0.2.2.2-alpha; fixes bug 1245.
11799     - Alter calculation of Pareto distribution parameter 'Xm' for
11800       Circuit Build Timeout learning to use the weighted average of the
11801       top N=3 modes (because we have three entry guards). Considering
11802       multiple modes should improve the timeout calculation in some cases,
11803       and prevent extremely high timeout values. Bugfix on 0.2.2.2-alpha;
11804       fixes bug 1335.
11805     - Alter calculation of Pareto distribution parameter 'Alpha' to use a
11806       right censored distribution model. This approach improves over the
11807       synthetic timeout generation approach that was producing insanely
11808       high timeout values. Now we calculate build timeouts using truncated
11809       times. Bugfix on 0.2.2.2-alpha; fixes bugs 1245 and 1335.
11810     - Do not close circuits that are under construction when they reach
11811       the circuit build timeout. Instead, leave them building (but do not
11812       use them) for up until the time corresponding to the 95th percentile
11813       on the Pareto CDF or 60 seconds, whichever is greater. This is done
11814       to provide better data for the new Pareto model. This percentile
11815       can be controlled by the consensus.
11817   o Major features:
11818     - Move to the June 2010 Maxmind GeoLite country db (rather than the
11819       June 2009 ip-to-country GeoIP db) for our statistics that count
11820       how many users relays are seeing from each country. Now we have
11821       more accurate data for many African countries.
11822     - Port Tor to build and run correctly on Windows CE systems, using
11823       the wcecompat library. Contributed by Valerio Lupi.
11824     - New "--enable-gcc-hardening" ./configure flag (off by default)
11825       to turn on gcc compile time hardening options. It ensures
11826       that signed ints have defined behavior (-fwrapv), enables
11827       -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
11828       with canaries (-fstack-protector-all), turns on ASLR protection if
11829       supported by the kernel (-fPIE, -pie), and adds additional security
11830       related warnings. Verified to work on Mac OS X and Debian Lenny.
11831     - New "--enable-linker-hardening" ./configure flag (off by default)
11832       to turn on ELF specific hardening features (relro, now). This does
11833       not work with Mac OS X or any other non-ELF binary format.
11835   o New directory authorities:
11836     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
11837       authority.
11839   o Minor features:
11840     - New config option "WarnUnsafeSocks 0" disables the warning that
11841       occurs whenever Tor receives a socks handshake using a version of
11842       the socks protocol that can only provide an IP address (rather
11843       than a hostname). Setups that do DNS locally over Tor are fine,
11844       and we shouldn't spam the logs in that case.
11845     - Convert the HACKING file to asciidoc, and add a few new sections
11846       to it, explaining how we use Git, how we make changelogs, and
11847       what should go in a patch.
11848     - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port
11849       event, to give information on the current rate of circuit timeouts
11850       over our stored history.
11851     - Add ability to disable circuit build time learning via consensus
11852       parameter and via a LearnCircuitBuildTimeout config option. Also
11853       automatically disable circuit build time calculation if we are
11854       either a AuthoritativeDirectory, or if we fail to write our state
11855       file. Fixes bug 1296.
11856     - More gracefully handle corrupt state files, removing asserts
11857       in favor of saving a backup and resetting state.
11858     - Rename the "log.h" header to "torlog.h" so as to conflict with fewer
11859       system headers.
11861   o Minor bugfixes:
11862     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
11863       enabled.
11864     - When a2x fails, mention that the user could disable manpages instead
11865       of trying to fix their asciidoc installation.
11866     - Where available, use Libevent 2.0's periodic timers so that our
11867       once-per-second cleanup code gets called even more closely to
11868       once per second than it would otherwise. Fixes bug 943.
11869     - If you run a bridge that listens on multiple IP addresses, and
11870       some user configures a bridge address that uses a different IP
11871       address than your bridge writes in its router descriptor, and the
11872       user doesn't specify an identity key, their Tor would discard the
11873       descriptor because "it isn't one of our configured bridges", and
11874       fail to bootstrap. Now believe the descriptor and bootstrap anyway.
11875       Bugfix on 0.2.0.3-alpha.
11876     - If OpenSSL fails to make a duplicate of a private or public key, log
11877       an error message and try to exit cleanly. May help with debugging
11878       if bug 1209 ever remanifests.
11879     - Save a couple bytes in memory allocation every time we escape
11880       certain characters in a string. Patch from Florian Zumbiehl.
11881     - Make it explicit that we don't cannibalize one-hop circuits. This
11882       happens in the wild, but doesn't turn out to be a problem because
11883       we fortunately don't use those circuits. Many thanks to outofwords
11884       for the initial analysis and to swissknife who confirmed that
11885       two-hop circuits are actually created.
11886     - Make directory mirrors report non-zero dirreq-v[23]-shares again.
11887       Fixes bug 1564; bugfix on 0.2.2.9-alpha.
11888     - Eliminate a case where a circuit build time warning was displayed
11889       after network connectivity resumed. Bugfix on 0.2.2.2-alpha.
11892 Changes in version 0.2.1.26 - 2010-05-02
11893   Tor 0.2.1.26 addresses the recent connection and memory overload
11894   problems we've been seeing on relays, especially relays with their
11895   DirPort open. If your relay has been crashing, or you turned it off
11896   because it used too many resources, give this release a try.
11898   This release also fixes yet another instance of broken OpenSSL libraries
11899   that was causing some relays to drop out of the consensus.
11901   o Major bugfixes:
11902     - Teach relays to defend themselves from connection overload. Relays
11903       now close idle circuits early if it looks like they were intended
11904       for directory fetches. Relays are also more aggressive about closing
11905       TLS connections that have no circuits on them. Such circuits are
11906       unlikely to be re-used, and tens of thousands of them were piling
11907       up at the fast relays, causing the relays to run out of sockets
11908       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
11909       their directory fetches over TLS).
11910     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
11911       that claim to be earlier than 0.9.8m, but which have in reality
11912       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
11913       behavior. Possible fix for some cases of bug 1346.
11914     - Directory mirrors were fetching relay descriptors only from v2
11915       directory authorities, rather than v3 authorities like they should.
11916       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
11917       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
11919   o Minor bugfixes:
11920     - Finally get rid of the deprecated and now harmful notion of "clique
11921       mode", where directory authorities maintain TLS connections to
11922       every other relay.
11924   o Testsuite fixes:
11925     - In the util/threads test, no longer free the test_mutex before all
11926       worker threads have finished. Bugfix on 0.2.1.6-alpha.
11927     - The master thread could starve the worker threads quite badly on
11928       certain systems, causing them to run only partially in the allowed
11929       window. This resulted in test failures. Now the master thread sleeps
11930       occasionally for a few microseconds while the two worker-threads
11931       compete for the mutex. Bugfix on 0.2.0.1-alpha.
11934 Changes in version 0.2.2.13-alpha - 2010-04-24
11935   Tor 0.2.2.13-alpha addresses the recent connection and memory overload
11936   problems we've been seeing on relays, especially relays with their
11937   DirPort open. If your relay has been crashing, or you turned it off
11938   because it used too many resources, give this release a try.
11940   o Major bugfixes:
11941     - Teach relays to defend themselves from connection overload. Relays
11942       now close idle circuits early if it looks like they were intended
11943       for directory fetches. Relays are also more aggressive about closing
11944       TLS connections that have no circuits on them. Such circuits are
11945       unlikely to be re-used, and tens of thousands of them were piling
11946       up at the fast relays, causing the relays to run out of sockets
11947       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
11948       their directory fetches over TLS).
11950   o Minor features:
11951     - Finally get rid of the deprecated and now harmful notion of "clique
11952       mode", where directory authorities maintain TLS connections to
11953       every other relay.
11954     - Directory authorities now do an immediate reachability check as soon
11955       as they hear about a new relay. This change should slightly reduce
11956       the time between setting up a relay and getting listed as running
11957       in the consensus. It should also improve the time between setting
11958       up a bridge and seeing use by bridge users.
11959     - Directory authorities no longer launch a TLS connection to every
11960       relay as they startup. Now that we have 2k+ descriptors cached,
11961       the resulting network hiccup is becoming a burden. Besides,
11962       authorities already avoid voting about Running for the first half
11963       hour of their uptime.
11966 Changes in version 0.2.2.12-alpha - 2010-04-20
11967   Tor 0.2.2.12-alpha fixes a critical bug in how directory authorities
11968   handle and vote on descriptors. It was causing relays to drop out of
11969   the consensus.
11971   o Major bugfixes:
11972     - Many relays have been falling out of the consensus lately because
11973       not enough authorities know about their descriptor for them to get
11974       a majority of votes. When we deprecated the v2 directory protocol,
11975       we got rid of the only way that v3 authorities can hear from each
11976       other about other descriptors. Now authorities examine every v3
11977       vote for new descriptors, and fetch them from that authority. Bugfix
11978       on 0.2.1.23.
11979     - Fix two typos in tor_vasprintf() that broke the compile on Windows,
11980       and a warning in or.h related to bandwidth_weight_rule_t that
11981       prevented clean compile on OS X. Fixes bug 1363; bugfix on
11982       0.2.2.11-alpha.
11983     - Fix a segfault on relays when DirReqStatistics is enabled
11984       and 24 hours pass. Bug found by keb. Fixes bug 1365; bugfix on
11985       0.2.2.11-alpha.
11987   o Minor bugfixes:
11988     - Demote a confusing TLS warning that relay operators might get when
11989       someone tries to talk to their OrPort. It is neither the operator's
11990       fault nor can they do anything about it. Fixes bug 1364; bugfix
11991       on 0.2.0.14-alpha.
11994 Changes in version 0.2.2.11-alpha - 2010-04-15
11995   Tor 0.2.2.11-alpha fixes yet another instance of broken OpenSSL
11996   libraries that was causing some relays to drop out of the consensus.
11998   o Major bugfixes:
11999     - Directory mirrors were fetching relay descriptors only from v2
12000       directory authorities, rather than v3 authorities like they should.
12001       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
12002       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
12003     - Fix a parsing error that made every possible value of
12004       CircPriorityHalflifeMsec get treated as "1 msec". Bugfix
12005       on 0.2.2.7-alpha. Rename CircPriorityHalflifeMsec to
12006       CircuitPriorityHalflifeMsec, so authorities can tell newer relays
12007       about the option without breaking older ones.
12008     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
12009       that claim to be earlier than 0.9.8m, but which have in reality
12010       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
12011       behavior. Possible fix for some cases of bug 1346.
12013   o Minor features:
12014     - Experiment with a more aggressive approach to preventing clients
12015       from making one-hop exit streams. Exit relays who want to try it
12016       out can set "RefuseUnknownExits 1" in their torrc, and then look
12017       for "Attempt by %s to open a stream" log messages. Let us know
12018       how it goes!
12019     - Add support for statically linking zlib by specifying
12020       --enable-static-zlib, to go with our support for statically linking
12021       openssl and libevent. Resolves bug 1358.
12023   o Minor bugfixes:
12024     - Fix a segfault that happens whenever a Tor client that is using
12025       libevent2's bufferevents gets a hup signal. Bugfix on 0.2.2.5-alpha;
12026       fixes bug 1341.
12027     - When we cleaned up the contrib/tor-exit-notice.html file, we left
12028       out the first line. Fixes bug 1295.
12029     - When building the manpage from a tarball, we required asciidoc, but
12030       the asciidoc -> roff/html conversion was already done for the
12031       tarball. Make 'make' complain only when we need asciidoc (either
12032       because we're compiling directly from git, or because we altered
12033       the asciidoc manpage in the tarball). Bugfix on 0.2.2.9-alpha.
12034     - When none of the directory authorities vote on any params, Tor
12035       segfaulted when trying to make the consensus from the votes. We
12036       didn't trigger the bug in practice, because authorities do include
12037       params in their votes. Bugfix on 0.2.2.10-alpha; fixes bug 1322.
12039   o Testsuite fixes:
12040     - In the util/threads test, no longer free the test_mutex before all
12041       worker threads have finished. Bugfix on 0.2.1.6-alpha.
12042     - The master thread could starve the worker threads quite badly on
12043       certain systems, causing them to run only partially in the allowed
12044       window. This resulted in test failures. Now the master thread sleeps
12045       occasionally for a few microseconds while the two worker-threads
12046       compete for the mutex. Bugfix on 0.2.0.1-alpha.
12049 Changes in version 0.2.2.10-alpha - 2010-03-07
12050   Tor 0.2.2.10-alpha fixes a regression introduced in 0.2.2.9-alpha that
12051   could prevent relays from guessing their IP address correctly. It also
12052   starts the groundwork for another client-side performance boost, since
12053   currently we're not making efficient use of relays that have both the
12054   Guard flag and the Exit flag.
12056   o Major bugfixes:
12057     - Fix a regression from our patch for bug 1244 that caused relays
12058       to guess their IP address incorrectly if they didn't set Address
12059       in their torrc and/or their address fails to resolve. Bugfix on
12060       0.2.2.9-alpha; fixes bug 1269.
12062   o Major features (performance):
12063     - Directory authorities now compute consensus weightings that instruct
12064       clients how to weight relays flagged as Guard, Exit, Guard+Exit,
12065       and no flag. Clients that use these weightings will distribute
12066       network load more evenly across these different relay types. The
12067       weightings are in the consensus so we can change them globally in
12068       the future. Extra thanks to "outofwords" for finding some nasty
12069       security bugs in the first implementation of this feature.
12071   o Minor features (performance):
12072     - Always perform router selections using weighted relay bandwidth,
12073       even if we don't need a high capacity circuit at the time. Non-fast
12074       circuits now only differ from fast ones in that they can use relays
12075       not marked with the Fast flag. This "feature" could turn out to
12076       be a horrible bug; we should investigate more before it goes into
12077       a stable release.
12079   o Minor features:
12080     - Allow disabling building of the manpages. Skipping the manpage
12081       speeds up the build considerably.
12083   o Minor bugfixes (on 0.2.2.x):
12084     - Fix a memleak in the EXTENDCIRCUIT logic. Spotted by coverity.
12085       Bugfix on 0.2.2.9-alpha.
12086     - Disallow values larger than INT32_MAX for PerConnBWRate|Burst
12087       config option. Bugfix on 0.2.2.7-alpha.
12088     - Ship the asciidoc-helper file in the tarball, so that people can
12089       build from source if they want to, and touching the .1.txt files
12090       doesn't break the build. Bugfix on 0.2.2.9-alpha.
12092   o Minor bugfixes (on 0.2.1.x or earlier):
12093     - Fix a dereference-then-NULL-check sequence when publishing
12094       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
12095       bug 1255.
12096     - Fix another dereference-then-NULL-check sequence. Bugfix on
12097       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
12098     - Make sure we treat potentially not NUL-terminated strings correctly.
12099       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
12101   o Code simplifications and refactoring:
12102     - Fix some urls in the exit notice file and make it XHTML1.1 strict
12103       compliant. Based on a patch from Christian Kujau.
12104     - Don't use sed in asciidoc-helper anymore.
12105     - Make the build process fail if asciidoc cannot be found and
12106       building with asciidoc isn't disabled.
12109 Changes in version 0.2.2.9-alpha - 2010-02-22
12110   Tor 0.2.2.9-alpha makes Tor work again on the latest OS X, updates the
12111   location of a directory authority, and cleans up a bunch of small bugs.
12113   o Directory authority changes:
12114     - Change IP address for dannenberg (v3 directory authority), and
12115       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
12116       service directory authority) from the list.
12118   o Major bugfixes:
12119     - Make Tor work again on the latest OS X: when deciding whether to
12120       use strange flags to turn TLS renegotiation on, detect the OpenSSL
12121       version at run-time, not compile time. We need to do this because
12122       Apple doesn't update its dev-tools headers when it updates its
12123       libraries in a security patch.
12124     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
12125       that could happen on 32-bit platforms with 64-bit time_t. Also fix
12126       a memory leak when requesting a hidden service descriptor we've
12127       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
12128       by aakova.
12129     - Authorities could be tricked into giving out the Exit flag to relays
12130       that didn't allow exiting to any ports. This bug could screw
12131       with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug
12132       1238. Bug discovered by Martin Kowalczyk.
12133     - When freeing a session key, zero it out completely. We only zeroed
12134       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
12135       patched by ekir. Fixes bug 1254.
12137   o Minor bugfixes:
12138     - Fix static compilation by listing the openssl libraries in the right
12139       order. Bugfix on Tor 0.2.2.8-alpha; fixes bug 1237.
12140     - Resume handling .exit hostnames in a special way: originally we
12141       stripped the .exit part and used the requested exit relay. In
12142       0.2.2.1-alpha we stopped treating them in any special way, meaning
12143       if you use a .exit address then Tor will pass it on to the exit
12144       relay. Now we reject the .exit stream outright, since that behavior
12145       might be more expected by the user. Found and diagnosed by Scott
12146       Bennett and Downie on or-talk.
12147     - Don't spam the controller with events when we have no file
12148       descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting
12149       for log messages was already solved from bug 748.)
12150     - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by
12151       "memcpyfail".
12152     - Make the DNSPort option work with libevent 2.x. Don't alter the
12153       behavior for libevent 1.x. Fixes bug 1143. Found by SwissTorExit.
12154     - Emit a GUARD DROPPED controller event for a case we missed.
12155     - Make more fields in the controller protocol case-insensitive, since
12156       control-spec.txt said they were.
12157     - Refactor resolve_my_address() to not use gethostbyname() anymore.
12158       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
12159     - Fix a spec conformance issue: the network-status-version token
12160       must be the first token in a v3 consensus or vote. Discovered by
12161       parakeep. Bugfix on 0.2.0.3-alpha.
12163   o Code simplifications and refactoring:
12164     - Generate our manpage and HTML documentation using Asciidoc. This
12165       change should make it easier to maintain the documentation, and
12166       produce nicer HTML.
12167     - Remove the --enable-iphone option. According to reports from Marco
12168       Bonetti, Tor builds fine without any special tweaking on recent
12169       iPhone SDK versions.
12170     - Removed some unnecessary files from the source distribution. The
12171       AUTHORS file has now been merged into the people page on the
12172       website. The roadmaps and design doc can now be found in the
12173       projects directory in svn.
12174     - Enabled various circuit build timeout constants to be controlled
12175       by consensus parameters. Also set better defaults for these
12176       parameters based on experimentation on broadband and simulated
12177       high latency links.
12179   o Minor features:
12180     - The 'EXTENDCIRCUIT' control port command can now be used with
12181       a circ id of 0 and no path. This feature will cause Tor to build
12182       a new 'fast' general purpose circuit using its own path selection
12183       algorithms.
12184     - Added a BUILDTIMEOUT_SET controller event to describe changes
12185       to the circuit build timeout.
12186     - Future-proof the controller protocol a bit by ignoring keyword
12187       arguments we do not recognize.
12188     - Expand homedirs passed to tor-checkkey. This should silence a
12189       coverity complaint about passing a user-supplied string into
12190       open() without checking it.
12193 Changes in version 0.2.1.25 - 2010-03-16
12194   Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could
12195   prevent relays from guessing their IP address correctly. It also fixes
12196   several minor potential security bugs.
12198   o Major bugfixes:
12199     - Fix a regression from our patch for bug 1244 that caused relays
12200       to guess their IP address incorrectly if they didn't set Address
12201       in their torrc and/or their address fails to resolve. Bugfix on
12202       0.2.1.23; fixes bug 1269.
12203     - When freeing a session key, zero it out completely. We only zeroed
12204       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
12205       patched by ekir. Fixes bug 1254.
12207   o Minor bugfixes:
12208     - Fix a dereference-then-NULL-check sequence when publishing
12209       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
12210       bug 1255.
12211     - Fix another dereference-then-NULL-check sequence. Bugfix on
12212       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
12213     - Make sure we treat potentially not NUL-terminated strings correctly.
12214       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
12218 Changes in version 0.2.1.24 - 2010-02-21
12219   Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time
12220   for sure!
12222   o Minor bugfixes:
12223     - Work correctly out-of-the-box with even more vendor-patched versions
12224       of OpenSSL. In particular, make it so Debian and OS X don't need
12225       customized patches to run/build.
12228 Changes in version 0.2.1.23 - 2010-02-13
12229   Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work
12230   again on the latest OS X, and updates the location of a directory
12231   authority.
12233   o Major bugfixes (performance):
12234     - We were selecting our guards uniformly at random, and then weighting
12235       which of our guards we'd use uniformly at random. This imbalance
12236       meant that Tor clients were severely limited on throughput (and
12237       probably latency too) by the first hop in their circuit. Now we
12238       select guards weighted by currently advertised bandwidth. We also
12239       automatically discard guards picked using the old algorithm. Fixes
12240       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
12242   o Major bugfixes:
12243     - Make Tor work again on the latest OS X: when deciding whether to
12244       use strange flags to turn TLS renegotiation on, detect the OpenSSL
12245       version at run-time, not compile time. We need to do this because
12246       Apple doesn't update its dev-tools headers when it updates its
12247       libraries in a security patch.
12248     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
12249       that could happen on 32-bit platforms with 64-bit time_t. Also fix
12250       a memory leak when requesting a hidden service descriptor we've
12251       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
12252       by aakova.
12254   o Directory authority changes:
12255     - Change IP address for dannenberg (v3 directory authority), and
12256       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
12257       service directory authority) from the list.
12259   o Minor bugfixes:
12260     - Refactor resolve_my_address() to not use gethostbyname() anymore.
12261       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
12263   o Minor features:
12264     - Avoid a mad rush at the beginning of each month when each client
12265       rotates half of its guards. Instead we spread the rotation out
12266       throughout the month, but we still avoid leaving a precise timestamp
12267       in the state file about when we first picked the guard. Improves
12268       over the behavior introduced in 0.1.2.17.
12271 Changes in version 0.2.2.8-alpha - 2010-01-26
12272   Tor 0.2.2.8-alpha fixes a crash bug in 0.2.2.7-alpha that has been
12273   causing bridge relays to disappear. If you're running a bridge,
12274   please upgrade.
12276   o Major bugfixes:
12277     - Fix a memory corruption bug on bridges that occured during the
12278       inclusion of stats data in extra-info descriptors. Also fix the
12279       interface for geoip_get_bridge_stats* to prevent similar bugs in
12280       the future. Diagnosis by Tas, patch by Karsten and Sebastian.
12281       Fixes bug 1208; bugfix on 0.2.2.7-alpha.
12283   o Minor bugfixes:
12284     - Ignore OutboundBindAddress when connecting to localhost.
12285       Connections to localhost need to come _from_ localhost, or else
12286       local servers (like DNS and outgoing HTTP/SOCKS proxies) will often
12287       refuse to listen.
12290 Changes in version 0.2.2.7-alpha - 2010-01-19
12291   Tor 0.2.2.7-alpha fixes a huge client-side performance bug, as well
12292   as laying the groundwork for further relay-side performance fixes. It
12293   also starts cleaning up client behavior with respect to the EntryNodes,
12294   ExitNodes, and StrictNodes config options.
12296   This release also rotates two directory authority keys, due to a
12297   security breach of some of the Torproject servers.
12299   o Directory authority changes:
12300     - Rotate keys (both v3 identity and relay identity) for moria1
12301       and gabelmoo.
12303   o Major features (performance):
12304     - We were selecting our guards uniformly at random, and then weighting
12305       which of our guards we'd use uniformly at random. This imbalance
12306       meant that Tor clients were severely limited on throughput (and
12307       probably latency too) by the first hop in their circuit. Now we
12308       select guards weighted by currently advertised bandwidth. We also
12309       automatically discard guards picked using the old algorithm. Fixes
12310       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
12311     - When choosing which cells to relay first, relays can now favor
12312       circuits that have been quiet recently, to provide lower latency
12313       for low-volume circuits. By default, relays enable or disable this
12314       feature based on a setting in the consensus. You can override
12315       this default by using the new "CircuitPriorityHalflife" config
12316       option. Design and code by Ian Goldberg, Can Tang, and Chris
12317       Alexander.
12318     - Add separate per-conn write limiting to go with the per-conn read
12319       limiting. We added a global write limit in Tor 0.1.2.5-alpha,
12320       but never per-conn write limits.
12321     - New consensus params "bwconnrate" and "bwconnburst" to let us
12322       rate-limit client connections as they enter the network. It's
12323       controlled in the consensus so we can turn it on and off for
12324       experiments. It's starting out off. Based on proposal 163.
12326   o Major features (relay selection options):
12327     - Switch to a StrictNodes config option, rather than the previous
12328       "StrictEntryNodes" / "StrictExitNodes" separation that was missing a
12329       "StrictExcludeNodes" option.
12330     - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes
12331       change during a config reload, mark and discard all our origin
12332       circuits. This fix should address edge cases where we change the
12333       config options and but then choose a circuit that we created before
12334       the change.
12335     - If EntryNodes or ExitNodes are set, be more willing to use an
12336       unsuitable (e.g. slow or unstable) circuit. The user asked for it,
12337       they get it.
12338     - Make EntryNodes config option much more aggressive even when
12339       StrictNodes is not set. Before it would prepend your requested
12340       entrynodes to your list of guard nodes, but feel free to use others
12341       after that. Now it chooses only from your EntryNodes if any of
12342       those are available, and only falls back to others if a) they're
12343       all down and b) StrictNodes is not set.
12344     - Now we refresh your entry guards from EntryNodes at each consensus
12345       fetch -- rather than just at startup and then they slowly rot as
12346       the network changes.
12348   o Major bugfixes:
12349     - Stop bridge directory authorities from answering dbg-stability.txt
12350       directory queries, which would let people fetch a list of all
12351       bridge identities they track. Bugfix on 0.2.1.6-alpha.
12353   o Minor features:
12354     - Log a notice when we get a new control connection. Now it's easier
12355       for security-conscious users to recognize when a local application
12356       is knocking on their controller door. Suggested by bug 1196.
12357     - New config option "CircuitStreamTimeout" to override our internal
12358       timeout schedule for how many seconds until we detach a stream from
12359       a circuit and try a new circuit. If your network is particularly
12360       slow, you might want to set this to a number like 60.
12361     - New controller command "getinfo config-text". It returns the
12362       contents that Tor would write if you send it a SAVECONF command,
12363       so the controller can write the file to disk itself.
12364     - New options for SafeLogging to allow scrubbing only log messages
12365       generated while acting as a relay.
12366     - Ship the bridges spec file in the tarball too.
12367     - Avoid a mad rush at the beginning of each month when each client
12368       rotates half of its guards. Instead we spread the rotation out
12369       throughout the month, but we still avoid leaving a precise timestamp
12370       in the state file about when we first picked the guard. Improves
12371       over the behavior introduced in 0.1.2.17.
12373   o Minor bugfixes (compiling):
12374     - Fix compilation on OS X 10.3, which has a stub mlockall() but
12375       hides it. Bugfix on 0.2.2.6-alpha.
12376     - Fix compilation on Solaris by removing support for the
12377       DisableAllSwap config option. Solaris doesn't have an rlimit for
12378       mlockall, so we cannot use it safely. Fixes bug 1198; bugfix on
12379       0.2.2.6-alpha.
12381   o Minor bugfixes (crashes):
12382     - Do not segfault when writing buffer stats when we haven't observed
12383       a single circuit to report about. Found by Fabian Lanze. Bugfix on
12384       0.2.2.1-alpha.
12385     - If we're in the pathological case where there's no exit bandwidth
12386       but there is non-exit bandwidth, or no guard bandwidth but there
12387       is non-guard bandwidth, don't crash during path selection. Bugfix
12388       on 0.2.0.3-alpha.
12389     - Fix an impossible-to-actually-trigger buffer overflow in relay
12390       descriptor generation. Bugfix on 0.1.0.15.
12392   o Minor bugfixes (privacy):
12393     - Fix an instance where a Tor directory mirror might accidentally
12394       log the IP address of a misbehaving Tor client. Bugfix on
12395       0.1.0.1-rc.
12396     - Don't list Windows capabilities in relay descriptors. We never made
12397       use of them, and maybe it's a bad idea to publish them. Bugfix
12398       on 0.1.1.8-alpha.
12400   o Minor bugfixes (other):
12401     - Resolve an edge case in path weighting that could make us misweight
12402       our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1.
12403     - Fix statistics on client numbers by country as seen by bridges that
12404       were broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour
12405       intervals instead of variable 12-to-48-hour intervals.
12406     - After we free an internal connection structure, overwrite it
12407       with a different memory value than we use for overwriting a freed
12408       internal circuit structure. Should help with debugging. Suggested
12409       by bug 1055.
12410     - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m
12411       too.
12413   o Removed features:
12414     - Remove the HSAuthorityRecordStats option that version 0 hidden
12415       service authorities could have used to track statistics of overall
12416       hidden service usage.
12419 Changes in version 0.2.1.22 - 2010-01-19
12420   Tor 0.2.1.22 fixes a critical privacy problem in bridge directory
12421   authorities -- it would tell you its whole history of bridge descriptors
12422   if you make the right directory request. This stable update also
12423   rotates two of the seven v3 directory authority keys and locations.
12425   o Directory authority changes:
12426     - Rotate keys (both v3 identity and relay identity) for moria1
12427       and gabelmoo.
12429   o Major bugfixes:
12430     - Stop bridge directory authorities from answering dbg-stability.txt
12431       directory queries, which would let people fetch a list of all
12432       bridge identities they track. Bugfix on 0.2.1.6-alpha.
12435 Changes in version 0.2.1.21 - 2009-12-21
12436   Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL
12437   library. If you use Tor on Linux / Unix and you're getting SSL
12438   renegotiation errors, upgrading should help. We also recommend an
12439   upgrade if you're an exit relay.
12441   o Major bugfixes:
12442     - Work around a security feature in OpenSSL 0.9.8l that prevents our
12443       handshake from working unless we explicitly tell OpenSSL that we
12444       are using SSL renegotiation safely. We are, of course, but OpenSSL
12445       0.9.8l won't work unless we say we are.
12446     - Avoid crashing if the client is trying to upload many bytes and the
12447       circuit gets torn down at the same time, or if the flip side
12448       happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150.
12450   o Minor bugfixes:
12451     - Do not refuse to learn about authority certs and v2 networkstatus
12452       documents that are older than the latest consensus. This bug might
12453       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
12454       Spotted and fixed by xmux.
12455     - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to-
12456       trigger platform-specific option misparsing case found by Coverity
12457       Scan.
12458     - Fix a compilation warning on Fedora 12 by removing an impossible-to-
12459       trigger assert. Fixes bug 1173.
12462 Changes in version 0.2.2.6-alpha - 2009-11-19
12463   Tor 0.2.2.6-alpha lays the groundwork for many upcoming features:
12464   support for the new lower-footprint "microdescriptor" directory design,
12465   future-proofing our consensus format against new hash functions or
12466   other changes, and an Android port. It also makes Tor compatible with
12467   the upcoming OpenSSL 0.9.8l release, and fixes a variety of bugs.
12469   o Major features:
12470     - Directory authorities can now create, vote on, and serve multiple
12471       parallel formats of directory data as part of their voting process.
12472       Partially implements Proposal 162: "Publish the consensus in
12473       multiple flavors".
12474     - Directory authorities can now agree on and publish small summaries
12475       of router information that clients can use in place of regular
12476       server descriptors. This transition will eventually allow clients
12477       to use far less bandwidth for downloading information about the
12478       network. Begins the implementation of Proposal 158: "Clients
12479       download consensus + microdescriptors".
12480     - The directory voting system is now extensible to use multiple hash
12481       algorithms for signatures and resource selection. Newer formats
12482       are signed with SHA256, with a possibility for moving to a better
12483       hash algorithm in the future.
12484     - New DisableAllSwap option. If set to 1, Tor will attempt to lock all
12485       current and future memory pages via mlockall(). On supported
12486       platforms (modern Linux and probably BSD but not Windows or OS X),
12487       this should effectively disable any and all attempts to page out
12488       memory. This option requires that you start your Tor as root --
12489       if you use DisableAllSwap, please consider using the User option
12490       to properly reduce the privileges of your Tor.
12491     - Numerous changes, bugfixes, and workarounds from Nathan Freitas
12492       to help Tor build correctly for Android phones.
12494   o Major bugfixes:
12495     - Work around a security feature in OpenSSL 0.9.8l that prevents our
12496       handshake from working unless we explicitly tell OpenSSL that we
12497       are using SSL renegotiation safely. We are, but OpenSSL 0.9.8l
12498       won't work unless we say we are.
12500   o Minor bugfixes:
12501     - Fix a crash bug when trying to initialize the evdns module in
12502       Libevent 2. Bugfix on 0.2.1.16-rc.
12503     - Stop logging at severity 'warn' when some other Tor client tries
12504       to establish a circuit with us using weak DH keys. It's a protocol
12505       violation, but that doesn't mean ordinary users need to hear about
12506       it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13.
12507     - Do not refuse to learn about authority certs and v2 networkstatus
12508       documents that are older than the latest consensus. This bug might
12509       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
12510       Spotted and fixed by xmux.
12511     - Fix numerous small code-flaws found by Coverity Scan Rung 3.
12512     - If all authorities restart at once right before a consensus vote,
12513       nobody will vote about "Running", and clients will get a consensus
12514       with no usable relays. Instead, authorities refuse to build a
12515       consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066.
12516     - If your relay can't keep up with the number of incoming create
12517       cells, it would log one warning per failure into your logs. Limit
12518       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
12519     - Bridges now use "reject *:*" as their default exit policy. Bugfix
12520       on 0.2.0.3-alpha; fixes bug 1113.
12521     - Fix a memory leak on directory authorities during voting that was
12522       introduced in 0.2.2.1-alpha. Found via valgrind.
12525 Changes in version 0.2.1.20 - 2009-10-15
12526   Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden
12527   services at once, prepares for more performance improvements, and
12528   fixes a bunch of smaller bugs.
12530   The Windows and OS X bundles also include a more recent Vidalia,
12531   and switch from Privoxy to Polipo.
12533   The OS X installers are now drag and drop. It's best to un-install
12534   Tor/Vidalia and then install this new bundle, rather than upgrade. If
12535   you want to upgrade, you'll need to update the paths for Tor and Polipo
12536   in the Vidalia Settings window.
12538   o Major bugfixes:
12539     - Send circuit or stream sendme cells when our window has decreased
12540       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
12541       by Karsten when testing the "reduce circuit window" performance
12542       patch. Bugfix on the 54th commit on Tor -- from July 2002,
12543       before the release of Tor 0.0.0. This is the new winner of the
12544       oldest-bug prize.
12545     - Fix a remotely triggerable memory leak when a consensus document
12546       contains more than one signature from the same voter. Bugfix on
12547       0.2.0.3-alpha.
12548     - Avoid segfault in rare cases when finishing an introduction circuit
12549       as a client and finding out that we don't have an introduction key
12550       for it. Fixes bug 1073. Reported by Aaron Swartz.
12552   o Major features:
12553     - Tor now reads the "circwindow" parameter out of the consensus,
12554       and uses that value for its circuit package window rather than the
12555       default of 1000 cells. Begins the implementation of proposal 168.
12557   o New directory authorities:
12558     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
12559       authority.
12560     - Move moria1 and tonga to alternate IP addresses.
12562   o Minor bugfixes:
12563     - Fix a signed/unsigned compile warning in 0.2.1.19.
12564     - Fix possible segmentation fault on directory authorities. Bugfix on
12565       0.2.1.14-rc.
12566     - Fix an extremely rare infinite recursion bug that could occur if
12567       we tried to log a message after shutting down the log subsystem.
12568       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
12569     - Fix an obscure bug where hidden services on 64-bit big-endian
12570       systems might mis-read the timestamp in v3 introduce cells, and
12571       refuse to connect back to the client. Discovered by "rotor".
12572       Bugfix on 0.2.1.6-alpha.
12573     - We were triggering a CLOCK_SKEW controller status event whenever
12574       we connect via the v2 connection protocol to any relay that has
12575       a wrong clock. Instead, we should only inform the controller when
12576       it's a trusted authority that claims our clock is wrong. Bugfix
12577       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
12578     - We were telling the controller about CHECKING_REACHABILITY and
12579       REACHABILITY_FAILED status events whenever we launch a testing
12580       circuit or notice that one has failed. Instead, only tell the
12581       controller when we want to inform the user of overall success or
12582       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
12583       by SwissTorExit.
12584     - Don't warn when we're using a circuit that ends with a node
12585       excluded in ExcludeExitNodes, but the circuit is not used to access
12586       the outside world. This should help fix bug 1090. Bugfix on
12587       0.2.1.6-alpha.
12588     - Work around a small memory leak in some versions of OpenSSL that
12589       stopped the memory used by the hostname TLS extension from being
12590       freed.
12592   o Minor features:
12593     - Add a "getinfo status/accepted-server-descriptor" controller
12594       command, which is the recommended way for controllers to learn
12595       whether our server descriptor has been successfully received by at
12596       least on directory authority. Un-recommend good-server-descriptor
12597       getinfo and status events until we have a better design for them.
12600 Changes in version 0.2.2.5-alpha - 2009-10-11
12601   Tor 0.2.2.5-alpha fixes a few compile problems in 0.2.2.4-alpha.
12603   o Major bugfixes:
12604     - Make the tarball compile again. Oops. Bugfix on 0.2.2.4-alpha.
12606   o Directory authorities:
12607     - Temporarily (just for this release) move dizum to an alternate
12608       IP address.
12611 Changes in version 0.2.2.4-alpha - 2009-10-10
12612   Tor 0.2.2.4-alpha fixes more crash bugs in 0.2.2.2-alpha. It also
12613   introduces a new unit test framework, shifts directry authority
12614   addresses around to reduce the impact from recent blocking events,
12615   and fixes a few smaller bugs.
12617   o Major bugfixes:
12618     - Fix several more asserts in the circuit_build_times code, for
12619       example one that causes Tor to fail to start once we have
12620       accumulated 5000 build times in the state file. Bugfixes on
12621       0.2.2.2-alpha; fixes bug 1108.
12623   o New directory authorities:
12624     - Move moria1 and Tonga to alternate IP addresses.
12626   o Minor features:
12627     - Log SSL state transitions at debug level during handshake, and
12628       include SSL states in error messages. This may help debug future
12629       SSL handshake issues.
12630     - Add a new "Handshake" log domain for activities that happen
12631       during the TLS handshake.
12632     - Revert to the "June 3 2009" ip-to-country file. The September one
12633       seems to have removed most US IP addresses.
12634     - Directory authorities now reject Tor relays with versions less than
12635       0.1.2.14. This step cuts out four relays from the current network,
12636       none of which are very big.
12638   o Minor bugfixes:
12639     - Fix a couple of smaller issues with gathering statistics. Bugfixes
12640       on 0.2.2.1-alpha.
12641     - Fix two memory leaks in the error case of
12642       circuit_build_times_parse_state(). Bugfix on 0.2.2.2-alpha.
12643     - Don't count one-hop circuits when we're estimating how long it
12644       takes circuits to build on average. Otherwise we'll set our circuit
12645       build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
12646     - Directory authorities no longer change their opinion of, or vote on,
12647       whether a router is Running, unless they have themselves been
12648       online long enough to have some idea. Bugfix on 0.2.0.6-alpha.
12649       Fixes bug 1023.
12651   o Code simplifications and refactoring:
12652     - Revise our unit tests to use the "tinytest" framework, so we
12653       can run tests in their own processes, have smarter setup/teardown
12654       code, and so on. The unit test code has moved to its own
12655       subdirectory, and has been split into multiple modules.
12658 Changes in version 0.2.2.3-alpha - 2009-09-23
12659   Tor 0.2.2.3-alpha fixes a few crash bugs in 0.2.2.2-alpha.
12661   o Major bugfixes:
12662     - Fix an overzealous assert in our new circuit build timeout code.
12663       Bugfix on 0.2.2.2-alpha; fixes bug 1103.
12665   o Minor bugfixes:
12666     - If the networkstatus consensus tells us that we should use a
12667       negative circuit package window, ignore it. Otherwise we'll
12668       believe it and then trigger an assert. Bugfix on 0.2.2.2-alpha.
12671 Changes in version 0.2.2.2-alpha - 2009-09-21
12672   Tor 0.2.2.2-alpha introduces our latest performance improvement for
12673   clients: Tor tracks the average time it takes to build a circuit, and
12674   avoids using circuits that take too long to build. For fast connections,
12675   this feature can cut your expected latency in half. For slow or flaky
12676   connections, it could ruin your Tor experience. Let us know if it does!
12678   o Major features:
12679     - Tor now tracks how long it takes to build client-side circuits
12680       over time, and adapts its timeout to local network performance.
12681       Since a circuit that takes a long time to build will also provide
12682       bad performance, we get significant latency improvements by
12683       discarding the slowest 20% of circuits. Specifically, Tor creates
12684       circuits more aggressively than usual until it has enough data
12685       points for a good timeout estimate. Implements proposal 151.
12686       We are especially looking for reports (good and bad) from users with
12687       both EDGE and broadband connections that can move from broadband
12688       to EDGE and find out if the build-time data in the .tor/state gets
12689       reset without loss of Tor usability. You should also see a notice
12690       log message telling you that Tor has reset its timeout.
12691     - Directory authorities can now vote on arbitary integer values as
12692       part of the consensus process. This is designed to help set
12693       network-wide parameters. Implements proposal 167.
12694     - Tor now reads the "circwindow" parameter out of the consensus,
12695       and uses that value for its circuit package window rather than the
12696       default of 1000 cells. Begins the implementation of proposal 168.
12698   o Major bugfixes:
12699     - Fix a remotely triggerable memory leak when a consensus document
12700       contains more than one signature from the same voter. Bugfix on
12701       0.2.0.3-alpha.
12703   o Minor bugfixes:
12704     - Fix an extremely rare infinite recursion bug that could occur if
12705       we tried to log a message after shutting down the log subsystem.
12706       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
12707     - Fix parsing for memory or time units given without a space between
12708       the number and the unit. Bugfix on 0.2.2.1-alpha; fixes bug 1076.
12709     - A networkstatus vote must contain exactly one signature. Spec
12710       conformance issue. Bugfix on 0.2.0.3-alpha.
12711     - Fix an obscure bug where hidden services on 64-bit big-endian
12712       systems might mis-read the timestamp in v3 introduce cells, and
12713       refuse to connect back to the client. Discovered by "rotor".
12714       Bugfix on 0.2.1.6-alpha.
12715     - We were triggering a CLOCK_SKEW controller status event whenever
12716       we connect via the v2 connection protocol to any relay that has
12717       a wrong clock. Instead, we should only inform the controller when
12718       it's a trusted authority that claims our clock is wrong. Bugfix
12719       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
12720     - We were telling the controller about CHECKING_REACHABILITY and
12721       REACHABILITY_FAILED status events whenever we launch a testing
12722       circuit or notice that one has failed. Instead, only tell the
12723       controller when we want to inform the user of overall success or
12724       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
12725       by SwissTorExit.
12726     - Don't warn when we're using a circuit that ends with a node
12727       excluded in ExcludeExitNodes, but the circuit is not used to access
12728       the outside world. This should help fix bug 1090, but more problems
12729       remain. Bugfix on 0.2.1.6-alpha.
12730     - Work around a small memory leak in some versions of OpenSSL that
12731       stopped the memory used by the hostname TLS extension from being
12732       freed.
12733     - Make our 'torify' script more portable; if we have only one of
12734       'torsocks' or 'tsocks' installed, don't complain to the user;
12735       and explain our warning about tsocks better.
12737   o Minor features:
12738     - Add a "getinfo status/accepted-server-descriptor" controller
12739       command, which is the recommended way for controllers to learn
12740       whether our server descriptor has been successfully received by at
12741       least on directory authority. Un-recommend good-server-descriptor
12742       getinfo and status events until we have a better design for them.
12743     - Update to the "September 4 2009" ip-to-country file.
12746 Changes in version 0.2.2.1-alpha - 2009-08-26
12747   Tor 0.2.2.1-alpha disables ".exit" address notation by default, allows
12748   Tor clients to bootstrap on networks where only port 80 is reachable,
12749   makes it more straightforward to support hardware crypto accelerators,
12750   and starts the groundwork for gathering stats safely at relays.
12752   o Security fixes:
12753     - Start the process of disabling ".exit" address notation, since it
12754       can be used for a variety of esoteric application-level attacks
12755       on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix
12756       on 0.0.9rc5.
12758   o New directory authorities:
12759     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
12760       authority.
12762   o Major features:
12763     - New AccelName and AccelDir options add support for dynamic OpenSSL
12764       hardware crypto acceleration engines.
12765     - Tor now supports tunneling all of its outgoing connections over
12766       a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy
12767       configuration options. Code by Christopher Davis.
12769   o Major bugfixes:
12770     - Send circuit or stream sendme cells when our window has decreased
12771       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
12772       by Karsten when testing the "reduce circuit window" performance
12773       patch. Bugfix on the 54th commit on Tor -- from July 2002,
12774       before the release of Tor 0.0.0. This is the new winner of the
12775       oldest-bug prize.
12777   o New options for gathering stats safely:
12778     - Directory mirrors that set "DirReqStatistics 1" write statistics
12779       about directory requests to disk every 24 hours. As compared to the
12780       --enable-geoip-stats flag in 0.2.1.x, there are a few improvements:
12781       1) stats are written to disk exactly every 24 hours; 2) estimated
12782       shares of v2 and v3 requests are determined as mean values, not at
12783       the end of a measurement period; 3) unresolved requests are listed
12784       with country code '??'; 4) directories also measure download times.
12785     - Exit nodes that set "ExitPortStatistics 1" write statistics on the
12786       number of exit streams and transferred bytes per port to disk every
12787       24 hours.
12788     - Relays that set "CellStatistics 1" write statistics on how long
12789       cells spend in their circuit queues to disk every 24 hours.
12790     - Entry nodes that set "EntryStatistics 1" write statistics on the
12791       rough number and origins of connecting clients to disk every 24
12792       hours.
12793     - Relays that write any of the above statistics to disk and set
12794       "ExtraInfoStatistics 1" include the past 24 hours of statistics in
12795       their extra-info documents.
12797   o Minor features:
12798     - New --digests command-line switch to output the digests of the
12799       source files Tor was built with.
12800     - The "torify" script now uses torsocks where available.
12801     - The memarea code now uses a sentinel value at the end of each area
12802       to make sure nothing writes beyond the end of an area. This might
12803       help debug some conceivable causes of bug 930.
12804     - Time and memory units in the configuration file can now be set to
12805       fractional units. For example, "2.5 GB" is now a valid value for
12806       AccountingMax.
12807     - Certain Tor clients (such as those behind check.torproject.org) may
12808       want to fetch the consensus in an extra early manner. To enable this
12809       a user may now set FetchDirInfoExtraEarly to 1. This also depends on
12810       setting FetchDirInfoEarly to 1. Previous behavior will stay the same
12811       as only certain clients who must have this information sooner should
12812       set this option.
12813     - Instead of adding the svn revision to the Tor version string, report
12814       the git commit (when we're building from a git checkout).
12816   o Minor bugfixes:
12817     - If any of the v3 certs we download are unparseable, we should
12818       actually notice the failure so we don't retry indefinitely. Bugfix
12819       on 0.2.0.x; reported by "rotator".
12820     - If the cached cert file is unparseable, warn but don't exit.
12821     - Fix possible segmentation fault on directory authorities. Bugfix on
12822       0.2.1.14-rc.
12823     - When Tor fails to parse a descriptor of any kind, dump it to disk.
12824       Might help diagnosing bug 1051.
12826   o Deprecated and removed features:
12827     - The controller no longer accepts the old obsolete "addr-mappings/"
12828       or "unregistered-servers-" GETINFO values.
12829     - Hidden services no longer publish version 0 descriptors, and clients
12830       do not request or use version 0 descriptors. However, the old hidden
12831       service authorities still accept and serve version 0 descriptors
12832       when contacted by older hidden services/clients.
12833     - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now
12834       always on; using them is necessary for correct forward-compatible
12835       controllers.
12836     - Remove support for .noconnect style addresses. Nobody was using
12837       them, and they provided another avenue for detecting Tor users
12838       via application-level web tricks.
12840   o Packaging changes:
12841     - Upgrade Vidalia from 0.1.15 to 0.2.3 in the Windows and OS X
12842       installer bundles. See
12843       https://trac.vidalia-project.net/browser/vidalia/tags/vidalia-0.2.3/CHANGELOG
12844       for details of what's new in Vidalia 0.2.3.
12845     - Windows Vidalia Bundle: update Privoxy from 3.0.6 to 3.0.14-beta.
12846     - OS X Vidalia Bundle: move to Polipo 1.0.4 with Tor specific
12847       configuration file, rather than the old Privoxy.
12848     - OS X Vidalia Bundle: Vidalia, Tor, and Polipo are compiled as
12849       x86-only for better compatibility with OS X 10.6, aka Snow Leopard.
12850     - OS X Tor Expert Bundle: Tor is compiled as x86-only for
12851       better compatibility with OS X 10.6, aka Snow Leopard.
12852     - OS X Vidalia Bundle: The multi-package installer is now replaced
12853       by a simple drag and drop to the /Applications folder. This change
12854       occurred with the upgrade to Vidalia 0.2.3.
12857 Changes in version 0.2.1.19 - 2009-07-28
12858   Tor 0.2.1.19 fixes a major bug with accessing and providing hidden
12859   services on Tor 0.2.1.3-alpha through 0.2.1.18.
12861   o Major bugfixes:
12862     - Make accessing hidden services on 0.2.1.x work right again.
12863       Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and
12864       part of patch provided by "optimist".
12866   o Minor features:
12867     - When a relay/bridge is writing out its identity key fingerprint to
12868       the "fingerprint" file and to its logs, write it without spaces. Now
12869       it will look like the fingerprints in our bridges documentation,
12870       and confuse fewer users.
12872   o Minor bugfixes:
12873     - Relays no longer publish a new server descriptor if they change
12874       their MaxAdvertisedBandwidth config option but it doesn't end up
12875       changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc;
12876       fixes bug 1026. Patch from Sebastian.
12877     - Avoid leaking memory every time we get a create cell but we have
12878       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
12879       fixes bug 1034. Reported by BarkerJr.
12882 Changes in version 0.2.1.18 - 2009-07-24
12883   Tor 0.2.1.18 lays the foundations for performance improvements,
12884   adds status events to help users diagnose bootstrap problems, adds
12885   optional authentication/authorization for hidden services, fixes a
12886   variety of potential anonymity problems, and includes a huge pile of
12887   other features and bug fixes.
12889   o Build fixes:
12890     - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent.
12893 Changes in version 0.2.1.17-rc - 2009-07-07
12894   Tor 0.2.1.17-rc marks the fourth -- and hopefully last -- release
12895   candidate for the 0.2.1.x series. It lays the groundwork for further
12896   client performance improvements, and also fixes a big bug with directory
12897   authorities that were causing them to assign Guard and Stable flags
12898   poorly.
12900   The Windows bundles also finally include the geoip database that we
12901   thought we'd been shipping since 0.2.0.x (oops), and the OS X bundles
12902   should actually install Torbutton rather than giving you a cryptic
12903   failure message (oops).
12905   o Major features:
12906     - Clients now use the bandwidth values in the consensus, rather than
12907       the bandwidth values in each relay descriptor. This approach opens
12908       the door to more accurate bandwidth estimates once the directory
12909       authorities start doing active measurements. Implements more of
12910       proposal 141.
12912   o Major bugfixes:
12913     - When Tor clients restart after 1-5 days, they discard all their
12914       cached descriptors as too old, but they still use the cached
12915       consensus document. This approach is good for robustness, but
12916       bad for performance: since they don't know any bandwidths, they
12917       end up choosing at random rather than weighting their choice by
12918       speed. Fixed by the above feature of putting bandwidths in the
12919       consensus. Bugfix on 0.2.0.x.
12920     - Directory authorities were neglecting to mark relays down in their
12921       internal histories if the relays fall off the routerlist without
12922       ever being found unreachable. So there were relays in the histories
12923       that haven't been seen for eight months, and are listed as being
12924       up for eight months. This wreaked havoc on the "median wfu"
12925       and "median mtbf" calculations, in turn making Guard and Stable
12926       flags very wrong, hurting network performance. Fixes bugs 696 and
12927       969. Bugfix on 0.2.0.6-alpha.
12929   o Minor bugfixes:
12930     - Serve the DirPortFrontPage page even when we have been approaching
12931       our quotas recently. Fixes bug 1013; bugfix on 0.2.1.8-alpha.
12932     - The control port would close the connection before flushing long
12933       replies, such as the network consensus, if a QUIT command was issued
12934       before the reply had completed. Now, the control port flushes all
12935       pending replies before closing the connection. Also fixed a spurious
12936       warning when a QUIT command is issued after a malformed or rejected
12937       AUTHENTICATE command, but before the connection was closed. Patch
12938       by Marcus Griep. Bugfix on 0.2.0.x; fixes bugs 1015 and 1016.
12939     - When we can't find an intro key for a v2 hidden service descriptor,
12940       fall back to the v0 hidden service descriptor and log a bug message.
12941       Workaround for bug 1024.
12942     - Fix a log message that did not respect the SafeLogging option.
12943       Resolves bug 1027.
12945   o Minor features:
12946     - If we're a relay and we change our IP address, be more verbose
12947       about the reason that made us change. Should help track down
12948       further bugs for relays on dynamic IP addresses.
12951 Changes in version 0.2.0.35 - 2009-06-24
12952   o Security fix:
12953     - Avoid crashing in the presence of certain malformed descriptors.
12954       Found by lark, and by automated fuzzing.
12955     - Fix an edge case where a malicious exit relay could convince a
12956       controller that the client's DNS question resolves to an internal IP
12957       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
12959   o Major bugfixes:
12960     - Finally fix the bug where dynamic-IP relays disappear when their
12961       IP address changes: directory mirrors were mistakenly telling
12962       them their old address if they asked via begin_dir, so they
12963       never got an accurate answer about their new address, so they
12964       just vanished after a day. For belt-and-suspenders, relays that
12965       don't set Address in their config now avoid using begin_dir for
12966       all direct connections. Should fix bugs 827, 883, and 900.
12967     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
12968       that would occur on some exit nodes when DNS failures and timeouts
12969       occurred in certain patterns. Fix for bug 957.
12971   o Minor bugfixes:
12972     - When starting with a cache over a few days old, do not leak
12973       memory for the obsolete router descriptors in it. Bugfix on
12974       0.2.0.33; fixes bug 672.
12975     - Hidden service clients didn't use a cached service descriptor that
12976       was older than 15 minutes, but wouldn't fetch a new one either,
12977       because there was already one in the cache. Now, fetch a v2
12978       descriptor unless the same descriptor was added to the cache within
12979       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
12982 Changes in version 0.2.1.16-rc - 2009-06-20
12983   Tor 0.2.1.16-rc speeds up performance for fast exit relays, and fixes
12984   a bunch of minor bugs.
12986   o Security fixes:
12987     - Fix an edge case where a malicious exit relay could convince a
12988       controller that the client's DNS question resolves to an internal IP
12989       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
12991   o Major performance improvements (on 0.2.0.x):
12992     - Disable and refactor some debugging checks that forced a linear scan
12993       over the whole server-side DNS cache. These accounted for over 50%
12994       of CPU time on a relatively busy exit node's gprof profile. Found
12995       by Jacob.
12996     - Disable some debugging checks that appeared in exit node profile
12997       data.
12999   o Minor features:
13000     - Update to the "June 3 2009" ip-to-country file.
13001     - Do not have tor-resolve automatically refuse all .onion addresses;
13002       if AutomapHostsOnResolve is set in your torrc, this will work fine.
13004   o Minor bugfixes (on 0.2.0.x):
13005     - Log correct error messages for DNS-related network errors on
13006       Windows.
13007     - Fix a race condition that could cause crashes or memory corruption
13008       when running as a server with a controller listening for log
13009       messages.
13010     - Avoid crashing when we have a policy specified in a DirPolicy or
13011       SocksPolicy or ReachableAddresses option with ports set on it,
13012       and we re-load the policy. May fix bug 996.
13013     - Hidden service clients didn't use a cached service descriptor that
13014       was older than 15 minutes, but wouldn't fetch a new one either,
13015       because there was already one in the cache. Now, fetch a v2
13016       descriptor unless the same descriptor was added to the cache within
13017       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
13019   o Minor bugfixes (on 0.2.1.x):
13020     - Don't warn users about low port and hibernation mix when they
13021       provide a *ListenAddress directive to fix that. Bugfix on
13022       0.2.1.15-rc.
13023     - When switching back and forth between bridge mode, do not start
13024       gathering GeoIP data until two hours have passed.
13025     - Do not complain that the user has requested an excluded node as
13026       an exit when the node is not really an exit. This could happen
13027       because the circuit was for testing, or an introduction point.
13028       Fix for bug 984.
13031 Changes in version 0.2.1.15-rc - 2009-05-25
13032   Tor 0.2.1.15-rc marks the second release candidate for the 0.2.1.x
13033   series. It fixes a major bug on fast exit relays, as well as a variety
13034   of more minor bugs.
13036   o Major bugfixes (on 0.2.0.x):
13037     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
13038       that would occur on some exit nodes when DNS failures and timeouts
13039       occurred in certain patterns. Fix for bug 957.
13041   o Minor bugfixes (on 0.2.0.x):
13042     - Actually return -1 in the error case for read_bandwidth_usage().
13043       Harmless bug, since we currently don't care about the return value
13044       anywhere. Bugfix on 0.2.0.9-alpha.
13045     - Provide a more useful log message if bug 977 (related to buffer
13046       freelists) ever reappears, and do not crash right away.
13047     - Fix an assertion failure on 64-bit platforms when we allocated
13048       memory right up to the end of a memarea, then realigned the memory
13049       one step beyond the end. Fixes a possible cause of bug 930.
13050     - Protect the count of open sockets with a mutex, so we can't
13051       corrupt it when two threads are closing or opening sockets at once.
13052       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
13053     - Don't allow a bridge to publish its router descriptor to a
13054       non-bridge directory authority. Fixes part of bug 932.
13055     - When we change to or from being a bridge, reset our counts of
13056       client usage by country. Fixes bug 932.
13057     - Fix a bug that made stream bandwidth get misreported to the
13058       controller.
13059     - Stop using malloc_usable_size() to use more area than we had
13060       actually allocated: it was safe, but made valgrind really unhappy.
13061     - Fix a memory leak when v3 directory authorities load their keys
13062       and cert from disk. Bugfix on 0.2.0.1-alpha.
13064   o Minor bugfixes (on 0.2.1.x):
13065     - Fix use of freed memory when deciding to mark a non-addable
13066       descriptor as never-downloadable. Bugfix on 0.2.1.9-alpha.
13069 Changes in version 0.2.1.14-rc - 2009-04-12
13070   Tor 0.2.1.14-rc marks the first release candidate for the 0.2.1.x
13071   series. It begins fixing some major performance problems, and also
13072   finally addresses the bug that was causing relays on dynamic IP
13073   addresses to fall out of the directory.
13075   o Major features:
13076     - Clients replace entry guards that were chosen more than a few months
13077       ago. This change should significantly improve client performance,
13078       especially once more people upgrade, since relays that have been
13079       a guard for a long time are currently overloaded.
13081   o Major bugfixes (on 0.2.0):
13082     - Finally fix the bug where dynamic-IP relays disappear when their
13083       IP address changes: directory mirrors were mistakenly telling
13084       them their old address if they asked via begin_dir, so they
13085       never got an accurate answer about their new address, so they
13086       just vanished after a day. For belt-and-suspenders, relays that
13087       don't set Address in their config now avoid using begin_dir for
13088       all direct connections. Should fix bugs 827, 883, and 900.
13089     - Relays were falling out of the networkstatus consensus for
13090       part of a day if they changed their local config but the
13091       authorities discarded their new descriptor as "not sufficiently
13092       different". Now directory authorities accept a descriptor as changed
13093       if bandwidthrate or bandwidthburst changed. Partial fix for bug 962;
13094       patch by Sebastian.
13095     - Avoid crashing in the presence of certain malformed descriptors.
13096       Found by lark, and by automated fuzzing.
13098   o Minor features:
13099     - When generating circuit events with verbose nicknames for
13100       controllers, try harder to look up nicknames for routers on a
13101       circuit. (Previously, we would look in the router descriptors we had
13102       for nicknames, but not in the consensus.) Partial fix for bug 941.
13103     - If the bridge config line doesn't specify a port, assume 443.
13104       This makes bridge lines a bit smaller and easier for users to
13105       understand.
13106     - Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
13107       bytes (aka 20KB/s), to match our documentation. Also update
13108       directory authorities so they always assign the Fast flag to relays
13109       with 20KB/s of capacity. Now people running relays won't suddenly
13110       find themselves not seeing any use, if the network gets faster
13111       on average.
13112     - Update to the "April 3 2009" ip-to-country file.
13114   o Minor bugfixes:
13115     - Avoid trying to print raw memory to the logs when we decide to
13116       give up on downloading a given relay descriptor. Bugfix on
13117       0.2.1.9-alpha.
13118     - In tor-resolve, when the Tor client to use is specified by
13119       <hostname>:<port>, actually use the specified port rather than
13120       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
13121     - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
13122     - When starting with a cache over a few days old, do not leak
13123       memory for the obsolete router descriptors in it. Bugfix on
13124       0.2.0.33.
13125     - Avoid double-free on list of successfully uploaded hidden
13126       service discriptors. Fix for bug 948. Bugfix on 0.2.1.6-alpha.
13127     - Change memarea_strndup() implementation to work even when
13128       duplicating a string at the end of a page. This bug was
13129       harmless for now, but could have meant crashes later. Fix by
13130       lark. Bugfix on 0.2.1.1-alpha.
13131     - Limit uploaded directory documents to be 16M rather than 500K.
13132       The directory authorities were refusing v3 consensus votes from
13133       other authorities, since the votes are now 504K. Fixes bug 959;
13134       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
13135     - Directory authorities should never send a 503 "busy" response to
13136       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
13137       bug 959.
13140 Changes in version 0.2.1.13-alpha - 2009-03-09
13141   Tor 0.2.1.13-alpha includes another big pile of minor bugfixes and
13142   cleanups. We're finally getting close to a release candidate.
13144   o Major bugfixes:
13145     - Correctly update the list of which countries we exclude as
13146       exits, when the GeoIP file is loaded or reloaded. Diagnosed by
13147       lark. Bugfix on 0.2.1.6-alpha.
13149   o Minor bugfixes (on 0.2.0.x and earlier):
13150     - Automatically detect MacOSX versions earlier than 10.4.0, and
13151       disable kqueue from inside Tor when running with these versions.
13152       We previously did this from the startup script, but that was no
13153       help to people who didn't use the startup script. Resolves bug 863.
13154     - When we had picked an exit node for a connection, but marked it as
13155       "optional", and it turned out we had no onion key for the exit,
13156       stop wanting that exit and try again. This situation may not
13157       be possible now, but will probably become feasible with proposal
13158       158. Spotted by rovv. Fixes another case of bug 752.
13159     - Clients no longer cache certificates for authorities they do not
13160       recognize. Bugfix on 0.2.0.9-alpha.
13161     - When we can't transmit a DNS request due to a network error, retry
13162       it after a while, and eventually transmit a failing response to
13163       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
13164     - If the controller claimed responsibility for a stream, but that
13165       stream never finished making its connection, it would live
13166       forever in circuit_wait state. Now we close it after SocksTimeout
13167       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
13168     - Drop begin cells to a hidden service if they come from the middle
13169       of a circuit. Patch from lark.
13170     - When we erroneously receive two EXTEND cells for the same circuit
13171       ID on the same connection, drop the second. Patch from lark.
13172     - Fix a crash that occurs on exit nodes when a nameserver request
13173       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
13174       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
13175       bug 929.
13176     - Do not assume that a stack-allocated character array will be
13177       64-bit aligned on platforms that demand that uint64_t access is
13178       aligned. Possible fix for bug 604.
13179     - Parse dates and IPv4 addresses in a locale- and libc-independent
13180       manner, to avoid platform-dependent behavior on malformed input.
13181     - Build correctly when configured to build outside the main source
13182       path. Patch from Michael Gold.
13183     - We were already rejecting relay begin cells with destination port
13184       of 0. Now also reject extend cells with destination port or address
13185       of 0. Suggested by lark.
13187   o Minor bugfixes (on 0.2.1.x):
13188     - Don't re-extend introduction circuits if we ran out of RELAY_EARLY
13189       cells. Bugfix on 0.2.1.3-alpha. Fixes more of bug 878.
13190     - If we're an exit node, scrub the IP address to which we are exiting
13191       in the logs. Bugfix on 0.2.1.8-alpha.
13193   o Minor features:
13194     - On Linux, use the prctl call to re-enable core dumps when the user
13195       is option is set.
13196     - New controller event NEWCONSENSUS that lists the networkstatus
13197       lines for every recommended relay. Now controllers like Torflow
13198       can keep up-to-date on which relays they should be using.
13199     - Update to the "February 26 2009" ip-to-country file.
13202 Changes in version 0.2.0.34 - 2009-02-08
13203   Tor 0.2.0.34 features several more security-related fixes. You should
13204   upgrade, especially if you run an exit relay (remote crash) or a
13205   directory authority (remote infinite loop), or you're on an older
13206   (pre-XP) or not-recently-patched Windows (remote exploit).
13208   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
13209   have many known flaws, and nobody should be using them. You should
13210   upgrade. If you're using a Linux or BSD and its packages are obsolete,
13211   stop using those packages and upgrade anyway.
13213   o Security fixes:
13214     - Fix an infinite-loop bug on handling corrupt votes under certain
13215       circumstances. Bugfix on 0.2.0.8-alpha.
13216     - Fix a temporary DoS vulnerability that could be performed by
13217       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
13218     - Avoid a potential crash on exit nodes when processing malformed
13219       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
13220     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
13221       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
13223   o Minor bugfixes:
13224     - Fix compilation on systems where time_t is a 64-bit integer.
13225       Patch from Matthias Drochner.
13226     - Don't consider expiring already-closed client connections. Fixes
13227       bug 893. Bugfix on 0.0.2pre20.
13230 Changes in version 0.2.1.12-alpha - 2009-02-08
13231   Tor 0.2.1.12-alpha features several more security-related fixes. You
13232   should upgrade, especially if you run an exit relay (remote crash) or
13233   a directory authority (remote infinite loop), or you're on an older
13234   (pre-XP) or not-recently-patched Windows (remote exploit). It also
13235   includes a big pile of minor bugfixes and cleanups.
13237   o Security fixes:
13238     - Fix an infinite-loop bug on handling corrupt votes under certain
13239       circumstances. Bugfix on 0.2.0.8-alpha.
13240     - Fix a temporary DoS vulnerability that could be performed by
13241       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
13242     - Avoid a potential crash on exit nodes when processing malformed
13243       input. Remote DoS opportunity. Bugfix on 0.2.1.7-alpha.
13245   o Minor bugfixes:
13246     - Let controllers actually ask for the "clients_seen" event for
13247       getting usage summaries on bridge relays. Bugfix on 0.2.1.10-alpha;
13248       reported by Matt Edman.
13249     - Fix a compile warning on OSX Panther. Fixes bug 913; bugfix against
13250       0.2.1.11-alpha.
13251     - Fix a bug in address parsing that was preventing bridges or hidden
13252       service targets from being at IPv6 addresses.
13253     - Solve a bug that kept hardware crypto acceleration from getting
13254       enabled when accounting was turned on. Fixes bug 907. Bugfix on
13255       0.0.9pre6.
13256     - Remove a bash-ism from configure.in to build properly on non-Linux
13257       platforms. Bugfix on 0.2.1.1-alpha.
13258     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
13259       headers. Bugfix on 0.2.0.10-alpha.
13260     - Don't consider expiring already-closed client connections. Fixes
13261       bug 893. Bugfix on 0.0.2pre20.
13262     - Fix another interesting corner-case of bug 891 spotted by rovv:
13263       Previously, if two hosts had different amounts of clock drift, and
13264       one of them created a new connection with just the wrong timing,
13265       the other might decide to deprecate the new connection erroneously.
13266       Bugfix on 0.1.1.13-alpha.
13267     - Resolve a very rare crash bug that could occur when the user forced
13268       a nameserver reconfiguration during the middle of a nameserver
13269       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
13270     - Support changing value of ServerDNSRandomizeCase during SIGHUP.
13271       Bugfix on 0.2.1.7-alpha.
13272     - If we're using bridges and our network goes away, be more willing
13273       to forgive our bridges and try again when we get an application
13274       request. Bugfix on 0.2.0.x.
13276   o Minor features:
13277     - Support platforms where time_t is 64 bits long. (Congratulations,
13278       NetBSD!) Patch from Matthias Drochner.
13279     - Add a 'getinfo status/clients-seen' controller command, in case
13280       controllers want to hear clients_seen events but connect late.
13282   o Build changes:
13283     - Disable GCC's strict alias optimization by default, to avoid the
13284       likelihood of its introducing subtle bugs whenever our code violates
13285       the letter of C99's alias rules.
13288 Changes in version 0.2.0.33 - 2009-01-21
13289   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
13290   useful to users. It also finally fixes a bug where a relay or client
13291   that's been off for many days would take a long time to bootstrap.
13293   This update also fixes an important security-related bug reported by
13294   Ilja van Sprundel. You should upgrade. (We'll send out more details
13295   about the bug once people have had some time to upgrade.)
13297   o Security fixes:
13298     - Fix a heap-corruption bug that may be remotely triggerable on
13299       some platforms. Reported by Ilja van Sprundel.
13301   o Major bugfixes:
13302     - When a stream at an exit relay is in state "resolving" or
13303       "connecting" and it receives an "end" relay cell, the exit relay
13304       would silently ignore the end cell and not close the stream. If
13305       the client never closes the circuit, then the exit relay never
13306       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
13307       reported by "wood".
13308     - When sending CREATED cells back for a given circuit, use a 64-bit
13309       connection ID to find the right connection, rather than an addr:port
13310       combination. Now that we can have multiple OR connections between
13311       the same ORs, it is no longer possible to use addr:port to uniquely
13312       identify a connection.
13313     - Bridge relays that had DirPort set to 0 would stop fetching
13314       descriptors shortly after startup, and then briefly resume
13315       after a new bandwidth test and/or after publishing a new bridge
13316       descriptor. Bridge users that try to bootstrap from them would
13317       get a recent networkstatus but would get descriptors from up to
13318       18 hours earlier, meaning most of the descriptors were obsolete
13319       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
13320     - Prevent bridge relays from serving their 'extrainfo' document
13321       to anybody who asks, now that extrainfo docs include potentially
13322       sensitive aggregated client geoip summaries. Bugfix on
13323       0.2.0.13-alpha.
13324     - If the cached networkstatus consensus is more than five days old,
13325       discard it rather than trying to use it. In theory it could be
13326       useful because it lists alternate directory mirrors, but in practice
13327       it just means we spend many minutes trying directory mirrors that
13328       are long gone from the network. Also discard router descriptors as
13329       we load them if they are more than five days old, since the onion
13330       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
13332   o Minor bugfixes:
13333     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
13334       could make gcc generate non-functional binary search code. Bugfix
13335       on 0.2.0.10-alpha.
13336     - Build correctly on platforms without socklen_t.
13337     - Compile without warnings on solaris.
13338     - Avoid potential crash on internal error during signature collection.
13339       Fixes bug 864. Patch from rovv.
13340     - Correct handling of possible malformed authority signing key
13341       certificates with internal signature types. Fixes bug 880.
13342       Bugfix on 0.2.0.3-alpha.
13343     - Fix a hard-to-trigger resource leak when logging credential status.
13344       CID 349.
13345     - When we can't initialize DNS because the network is down, do not
13346       automatically stop Tor from starting. Instead, we retry failed
13347       dns_init() every 10 minutes, and change the exit policy to reject
13348       *:* until one succeeds. Fixes bug 691.
13349     - Use 64 bits instead of 32 bits for connection identifiers used with
13350       the controller protocol, to greatly reduce risk of identifier reuse.
13351     - When we're choosing an exit node for a circuit, and we have
13352       no pending streams, choose a good general exit rather than one that
13353       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
13354     - Fix another case of assuming, when a specific exit is requested,
13355       that we know more than the user about what hosts it allows.
13356       Fixes one case of bug 752. Patch from rovv.
13357     - Clip the MaxCircuitDirtiness config option to a minimum of 10
13358       seconds. Warn the user if lower values are given in the
13359       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
13360     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
13361       user if lower values are given in the configuration. Bugfix on
13362       0.1.1.17-rc. Patch by Sebastian.
13363     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
13364       the cache because we already had a v0 descriptor with the same ID.
13365       Bugfix on 0.2.0.18-alpha.
13366     - Fix a race condition when freeing keys shared between main thread
13367       and CPU workers that could result in a memory leak. Bugfix on
13368       0.1.0.1-rc. Fixes bug 889.
13369     - Send a valid END cell back when a client tries to connect to a
13370       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
13371       840. Patch from rovv.
13372     - Check which hops rendezvous stream cells are associated with to
13373       prevent possible guess-the-streamid injection attacks from
13374       intermediate hops. Fixes another case of bug 446. Based on patch
13375       from rovv.
13376     - If a broken client asks a non-exit router to connect somewhere,
13377       do not even do the DNS lookup before rejecting the connection.
13378       Fixes another case of bug 619. Patch from rovv.
13379     - When a relay gets a create cell it can't decrypt (e.g. because it's
13380       using the wrong onion key), we were dropping it and letting the
13381       client time out. Now actually answer with a destroy cell. Fixes
13382       bug 904. Bugfix on 0.0.2pre8.
13384   o Minor bugfixes (hidden services):
13385     - Do not throw away existing introduction points on SIGHUP. Bugfix on
13386       0.0.6pre1. Patch by Karsten. Fixes bug 874.
13388   o Minor features:
13389     - Report the case where all signatures in a detached set are rejected
13390       differently than the case where there is an error handling the
13391       detached set.
13392     - When we realize that another process has modified our cached
13393       descriptors, print out a more useful error message rather than
13394       triggering an assertion. Fixes bug 885. Patch from Karsten.
13395     - Implement the 0x20 hack to better resist DNS poisoning: set the
13396       case on outgoing DNS requests randomly, and reject responses that do
13397       not match the case correctly. This logic can be disabled with the
13398       ServerDNSRamdomizeCase setting, if you are using one of the 0.3%
13399       of servers that do not reliably preserve case in replies. See
13400       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
13401       for more info.
13402     - Check DNS replies for more matching fields to better resist DNS
13403       poisoning.
13404     - Never use OpenSSL compression: it wastes RAM and CPU trying to
13405       compress cells, which are basically all encrypted, compressed, or
13406       both.
13409 Changes in version 0.2.1.11-alpha - 2009-01-20
13410   Tor 0.2.1.11-alpha finishes fixing the "if your Tor is off for a
13411   week it will take a long time to bootstrap again" bug. It also fixes
13412   an important security-related bug reported by Ilja van Sprundel. You
13413   should upgrade. (We'll send out more details about the bug once people
13414   have had some time to upgrade.)
13416   o Security fixes:
13417     - Fix a heap-corruption bug that may be remotely triggerable on
13418       some platforms. Reported by Ilja van Sprundel.
13420   o Major bugfixes:
13421     - Discard router descriptors as we load them if they are more than
13422       five days old. Otherwise if Tor is off for a long time and then
13423       starts with cached descriptors, it will try to use the onion
13424       keys in those obsolete descriptors when building circuits. Bugfix
13425       on 0.2.0.x. Fixes bug 887.
13427   o Minor features:
13428     - Try to make sure that the version of Libevent we're running with
13429       is binary-compatible with the one we built with. May address bug
13430       897 and others.
13431     - Make setting ServerDNSRandomizeCase to 0 actually work. Bugfix
13432       for bug 905. Bugfix on 0.2.1.7-alpha.
13433     - Add a new --enable-local-appdata configuration switch to change
13434       the default location of the datadir on win32 from APPDATA to
13435       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
13436       entirely. Patch from coderman.
13438   o Minor bugfixes:
13439     - Make outbound DNS packets respect the OutboundBindAddress setting.
13440       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
13441     - When our circuit fails at the first hop (e.g. we get a destroy
13442       cell back), avoid using that OR connection anymore, and also
13443       tell all the one-hop directory requests waiting for it that they
13444       should fail. Bugfix on 0.2.1.3-alpha.
13445     - In the torify(1) manpage, mention that tsocks will leak your
13446       DNS requests.
13449 Changes in version 0.2.1.10-alpha - 2009-01-06
13450   Tor 0.2.1.10-alpha fixes two major bugs in bridge relays (one that
13451   would make the bridge relay not so useful if it had DirPort set to 0,
13452   and one that could let an attacker learn a little bit of information
13453   about the bridge's users), and a bug that would cause your Tor relay
13454   to ignore a circuit create request it can't decrypt (rather than reply
13455   with an error). It also fixes a wide variety of other bugs.
13457   o Major bugfixes:
13458     - If the cached networkstatus consensus is more than five days old,
13459       discard it rather than trying to use it. In theory it could
13460       be useful because it lists alternate directory mirrors, but in
13461       practice it just means we spend many minutes trying directory
13462       mirrors that are long gone from the network. Helps bug 887 a bit;
13463       bugfix on 0.2.0.x.
13464     - Bridge relays that had DirPort set to 0 would stop fetching
13465       descriptors shortly after startup, and then briefly resume
13466       after a new bandwidth test and/or after publishing a new bridge
13467       descriptor. Bridge users that try to bootstrap from them would
13468       get a recent networkstatus but would get descriptors from up to
13469       18 hours earlier, meaning most of the descriptors were obsolete
13470       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
13471     - Prevent bridge relays from serving their 'extrainfo' document
13472       to anybody who asks, now that extrainfo docs include potentially
13473       sensitive aggregated client geoip summaries. Bugfix on
13474       0.2.0.13-alpha.
13476   o Minor features:
13477     - New controller event "clients_seen" to report a geoip-based summary
13478       of which countries we've seen clients from recently. Now controllers
13479       like Vidalia can show bridge operators that they're actually making
13480       a difference.
13481     - Build correctly against versions of OpenSSL 0.9.8 or later built
13482       without support for deprecated functions.
13483     - Update to the "December 19 2008" ip-to-country file.
13485   o Minor bugfixes (on 0.2.0.x):
13486     - Authorities now vote for the Stable flag for any router whose
13487       weighted MTBF is at least 5 days, regardless of the mean MTBF.
13488     - Do not remove routers as too old if we do not have any consensus
13489       document. Bugfix on 0.2.0.7-alpha.
13490     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
13491       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
13492     - When an exit relay resolves a stream address to a local IP address,
13493       do not just keep retrying that same exit relay over and
13494       over. Instead, just close the stream. Addresses bug 872. Bugfix
13495       on 0.2.0.32. Patch from rovv.
13496     - If a hidden service sends us an END cell, do not consider
13497       retrying the connection; just close it. Patch from rovv.
13498     - When we made bridge authorities stop serving bridge descriptors over
13499       unencrypted links, we also broke DirPort reachability testing for
13500       bridges. So bridges with a non-zero DirPort were printing spurious
13501       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
13502     - When a relay gets a create cell it can't decrypt (e.g. because it's
13503       using the wrong onion key), we were dropping it and letting the
13504       client time out. Now actually answer with a destroy cell. Fixes
13505       bug 904. Bugfix on 0.0.2pre8.
13506     - Squeeze 2-5% out of client performance (according to oprofile) by
13507       improving the implementation of some policy-manipulation functions.
13509   o Minor bugfixes (on 0.2.1.x):
13510     - Make get_interface_address() function work properly again; stop
13511       guessing the wrong parts of our address as our address.
13512     - Do not cannibalize a circuit if we're out of RELAY_EARLY cells to
13513       send on that circuit. Otherwise we might violate the proposal-110
13514       limit. Bugfix on 0.2.1.3-alpha. Partial fix for bug 878. Diagnosis
13515       thanks to Karsten.
13516     - When we're sending non-EXTEND cells to the first hop in a circuit,
13517       for example to use an encrypted directory connection, we don't need
13518       to use RELAY_EARLY cells: the first hop knows what kind of cell
13519       it is, and nobody else can even see the cell type. Conserving
13520       RELAY_EARLY cells makes it easier to cannibalize circuits like
13521       this later.
13522     - Stop logging nameserver addresses in reverse order.
13523     - If we are retrying a directory download slowly over and over, do
13524       not automatically give up after the 254th failure. Bugfix on
13525       0.2.1.9-alpha.
13526     - Resume reporting accurate "stream end" reasons to the local control
13527       port. They were lost in the changes for Proposal 148. Bugfix on
13528       0.2.1.9-alpha.
13530   o Deprecated and removed features:
13531     - The old "tor --version --version" command, which would print out
13532       the subversion "Id" of most of the source files, is now removed. It
13533       turned out to be less useful than we'd expected, and harder to
13534       maintain.
13536   o Code simplifications and refactoring:
13537     - Change our header file guard macros to be less likely to conflict
13538       with system headers. Adam Langley noticed that we were conflicting
13539       with log.h on Android.
13540     - Tool-assisted documentation cleanup. Nearly every function or
13541       static variable in Tor should have its own documentation now.
13544 Changes in version 0.2.1.9-alpha - 2008-12-25
13545   Tor 0.2.1.9-alpha fixes many more bugs, some of them security-related.
13547   o New directory authorities:
13548     - gabelmoo (the authority run by Karsten Loesing) now has a new
13549       IP address.
13551   o Security fixes:
13552     - Never use a connection with a mismatched address to extend a
13553       circuit, unless that connection is canonical. A canonical
13554       connection is one whose address is authenticated by the router's
13555       identity key, either in a NETINFO cell or in a router descriptor.
13556     - Avoid a possible memory corruption bug when receiving hidden service
13557       descriptors. Bugfix on 0.2.1.6-alpha.
13559   o Major bugfixes:
13560     - Fix a logic error that would automatically reject all but the first
13561       configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for
13562       part of bug 813/868. Bug spotted by coderman.
13563     - When a stream at an exit relay is in state "resolving" or
13564       "connecting" and it receives an "end" relay cell, the exit relay
13565       would silently ignore the end cell and not close the stream. If
13566       the client never closes the circuit, then the exit relay never
13567       closes the TCP connection. Bug introduced in 0.1.2.1-alpha;
13568       reported by "wood".
13569     - When we can't initialize DNS because the network is down, do not
13570       automatically stop Tor from starting. Instead, retry failed
13571       dns_init() every 10 minutes, and change the exit policy to reject
13572       *:* until one succeeds. Fixes bug 691.
13574   o Minor features:
13575     - Give a better error message when an overzealous init script says
13576       "sudo -u username tor --user username". Makes Bug 882 easier for
13577       users to diagnose.
13578     - When a directory authority gives us a new guess for our IP address,
13579       log which authority we used. Hopefully this will help us debug
13580       the recent complaints about bad IP address guesses.
13581     - Detect svn revision properly when we're using git-svn.
13582     - Try not to open more than one descriptor-downloading connection
13583       to an authority at once. This should reduce load on directory
13584       authorities. Fixes bug 366.
13585     - Add cross-certification to newly generated certificates, so that
13586       a signing key is enough information to look up a certificate.
13587       Partial implementation of proposal 157.
13588     - Start serving certificates by <identity digest, signing key digest>
13589       pairs. Partial implementation of proposal 157.
13590     - Clients now never report any stream end reason except 'MISC'.
13591       Implements proposal 148.
13592     - On platforms with a maximum syslog string length, truncate syslog
13593       messages to that length ourselves, rather than relying on the
13594       system to do it for us.
13595     - Optimize out calls to time(NULL) that occur for every IO operation,
13596       or for every cell. On systems where time() is a slow syscall,
13597       this fix will be slightly helpful.
13598     - Exit servers can now answer resolve requests for ip6.arpa addresses.
13599     - When we download a descriptor that we then immediately (as
13600       a directory authority) reject, do not retry downloading it right
13601       away. Should save some bandwidth on authorities. Fix for bug
13602       888. Patch by Sebastian Hahn.
13603     - When a download gets us zero good descriptors, do not notify
13604       Tor that new directory information has arrived.
13605     - Avoid some nasty corner cases in the logic for marking connections
13606       as too old or obsolete or noncanonical for circuits. Partial
13607       bugfix on bug 891.
13609   o Minor features (controller):
13610     - New CONSENSUS_ARRIVED event to note when a new consensus has
13611       been fetched and validated.
13612     - When we realize that another process has modified our cached
13613       descriptors file, print out a more useful error message rather
13614       than triggering an assertion. Fixes bug 885. Patch from Karsten.
13615     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
13616       controllers to prevent SIGHUP from reloading the
13617       configuration. Fixes bug 856.
13619   o Minor bugfixes:
13620     - Resume using the correct "REASON=" stream when telling the
13621       controller why we closed a stream. Bugfix in 0.2.1.1-alpha.
13622     - When a canonical connection appears later in our internal list
13623       than a noncanonical one for a given OR ID, always use the
13624       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
13625       Spotted by rovv.
13626     - Clip the MaxCircuitDirtiness config option to a minimum of 10
13627       seconds. Warn the user if lower values are given in the
13628       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
13629     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
13630       user if lower values are given in the configuration. Bugfix on
13631       0.1.1.17-rc. Patch by Sebastian.
13632     - Fix a race condition when freeing keys shared between main thread
13633       and CPU workers that could result in a memory leak. Bugfix on
13634       0.1.0.1-rc. Fixes bug 889.
13636   o Minor bugfixes (hidden services):
13637     - Do not throw away existing introduction points on SIGHUP (bugfix on
13638       0.0.6pre1); also, do not stall hidden services because we're
13639       throwing away introduction points; bugfix on 0.2.1.7-alpha. Spotted
13640       by John Brooks. Patch by Karsten. Fixes bug 874.
13641     - Fix a memory leak when we decline to add a v2 rendezvous
13642       descriptor to the cache because we already had a v0 descriptor
13643       with the same ID. Bugfix on 0.2.0.18-alpha.
13645   o Deprecated and removed features:
13646     - RedirectExits has been removed. It was deprecated since
13647       0.2.0.3-alpha.
13648     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
13649       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
13650     - Cell pools are now always enabled; --disable-cell-pools is ignored.
13652   o Code simplifications and refactoring:
13653     - Rename the confusing or_is_obsolete field to the more appropriate
13654       is_bad_for_new_circs, and move it to or_connection_t where it
13655       belongs.
13656     - Move edge-only flags from connection_t to edge_connection_t: not
13657       only is this better coding, but on machines of plausible alignment,
13658       it should save 4-8 bytes per connection_t. "Every little bit helps."
13659     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
13660       for consistency; keep old option working for backward compatibility.
13661     - Simplify the code for finding connections to use for a circuit.
13664 Changes in version 0.2.1.8-alpha - 2008-12-08
13665   Tor 0.2.1.8-alpha fixes some crash bugs in earlier alpha releases,
13666   builds better on unusual platforms like Solaris and old OS X, and
13667   fixes a variety of other issues.
13669   o Major features:
13670     - New DirPortFrontPage option that takes an html file and publishes
13671       it as "/" on the DirPort. Now relay operators can provide a
13672       disclaimer without needing to set up a separate webserver. There's
13673       a sample disclaimer in contrib/tor-exit-notice.html.
13675   o Security fixes:
13676     - When the client is choosing entry guards, now it selects at most
13677       one guard from a given relay family. Otherwise we could end up with
13678       all of our entry points into the network run by the same operator.
13679       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
13681   o Major bugfixes:
13682     - Fix a DOS opportunity during the voting signature collection process
13683       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
13684     - Fix a possible segfault when establishing an exit connection. Bugfix
13685       on 0.2.1.5-alpha.
13687   o Minor bugfixes:
13688     - Get file locking working on win32. Bugfix on 0.2.1.6-alpha. Fixes
13689       bug 859.
13690     - Made Tor a little less aggressive about deleting expired
13691       certificates. Partial fix for bug 854.
13692     - Stop doing unaligned memory access that generated bus errors on
13693       sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
13694     - Fix a crash bug when changing EntryNodes from the controller. Bugfix
13695       on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
13696     - Make USR2 log-level switch take effect immediately. Bugfix on
13697       0.1.2.8-beta.
13698     - If one win32 nameserver fails to get added, continue adding the
13699       rest, and don't automatically fail.
13700     - Use fcntl() for locking when flock() is not available. Should fix
13701       compilation on Solaris. Should fix Bug 873. Bugfix on 0.2.1.6-alpha.
13702     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
13703       could make gcc generate non-functional binary search code. Bugfix
13704       on 0.2.0.10-alpha.
13705     - Build correctly on platforms without socklen_t.
13706     - Avoid potential crash on internal error during signature collection.
13707       Fixes bug 864. Patch from rovv.
13708     - Do not use C's stdio library for writing to log files. This will
13709       improve logging performance by a minute amount, and will stop
13710       leaking fds when our disk is full. Fixes bug 861.
13711     - Stop erroneous use of O_APPEND in cases where we did not in fact
13712       want to re-seek to the end of a file before every last write().
13713     - Correct handling of possible malformed authority signing key
13714       certificates with internal signature types. Fixes bug 880. Bugfix
13715       on 0.2.0.3-alpha.
13716     - Fix a hard-to-trigger resource leak when logging credential status.
13717       CID 349.
13719   o Minor features:
13720     - Directory mirrors no longer fetch the v1 directory or
13721       running-routers files. They are obsolete, and nobody asks for them
13722       anymore. This is the first step to making v1 authorities obsolete.
13724   o Minor features (controller):
13725     - Return circuit purposes in response to GETINFO circuit-status. Fixes
13726       bug 858.
13729 Changes in version 0.2.0.32 - 2008-11-20
13730   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
13731   packages (and maybe other packages) noticed by Theo de Raadt, fixes
13732   a smaller security flaw that might allow an attacker to access local
13733   services, further improves hidden service performance, and fixes a
13734   variety of other issues.
13736   o Security fixes:
13737     - The "User" and "Group" config options did not clear the
13738       supplementary group entries for the Tor process. The "User" option
13739       is now more robust, and we now set the groups to the specified
13740       user's primary group. The "Group" option is now ignored. For more
13741       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
13742       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
13743       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
13744     - The "ClientDNSRejectInternalAddresses" config option wasn't being
13745       consistently obeyed: if an exit relay refuses a stream because its
13746       exit policy doesn't allow it, we would remember what IP address
13747       the relay said the destination address resolves to, even if it's
13748       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
13750   o Major bugfixes:
13751     - Fix a DOS opportunity during the voting signature collection process
13752       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
13754   o Major bugfixes (hidden services):
13755     - When fetching v0 and v2 rendezvous service descriptors in parallel,
13756       we were failing the whole hidden service request when the v0
13757       descriptor fetch fails, even if the v2 fetch is still pending and
13758       might succeed. Similarly, if the last v2 fetch fails, we were
13759       failing the whole hidden service request even if a v0 fetch is
13760       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
13761     - When extending a circuit to a hidden service directory to upload a
13762       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
13763       requests failed, because the router descriptor has not been
13764       downloaded yet. In these cases, do not attempt to upload the
13765       rendezvous descriptor, but wait until the router descriptor is
13766       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
13767       descriptor from a hidden service directory for which the router
13768       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
13769       on 0.2.0.10-alpha.
13771   o Minor bugfixes:
13772     - Fix several infrequent memory leaks spotted by Coverity.
13773     - When testing for libevent functions, set the LDFLAGS variable
13774       correctly. Found by Riastradh.
13775     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
13776       bootstrapping with tunneled directory connections. Bugfix on
13777       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
13778     - When asked to connect to A.B.exit:80, if we don't know the IP for A
13779       and we know that server B rejects most-but-not all connections to
13780       port 80, we would previously reject the connection. Now, we assume
13781       the user knows what they were asking for. Fixes bug 752. Bugfix
13782       on 0.0.9rc5. Diagnosed by BarkerJr.
13783     - If we overrun our per-second write limits a little, count this as
13784       having used up our write allocation for the second, and choke
13785       outgoing directory writes. Previously, we had only counted this when
13786       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
13787       Bugfix on 0.2.0.x (??).
13788     - Remove the old v2 directory authority 'lefkada' from the default
13789       list. It has been gone for many months.
13790     - Stop doing unaligned memory access that generated bus errors on
13791       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
13792     - Make USR2 log-level switch take effect immediately. Bugfix on
13793       0.1.2.8-beta.
13795   o Minor bugfixes (controller):
13796     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
13797       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
13800 Changes in version 0.2.1.7-alpha - 2008-11-08
13801   Tor 0.2.1.7-alpha fixes a major security problem in Debian and Ubuntu
13802   packages (and maybe other packages) noticed by Theo de Raadt, fixes
13803   a smaller security flaw that might allow an attacker to access local
13804   services, adds better defense against DNS poisoning attacks on exit
13805   relays, further improves hidden service performance, and fixes a
13806   variety of other issues.
13808   o Security fixes:
13809     - The "ClientDNSRejectInternalAddresses" config option wasn't being
13810       consistently obeyed: if an exit relay refuses a stream because its
13811       exit policy doesn't allow it, we would remember what IP address
13812       the relay said the destination address resolves to, even if it's
13813       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
13814     - The "User" and "Group" config options did not clear the
13815       supplementary group entries for the Tor process. The "User" option
13816       is now more robust, and we now set the groups to the specified
13817       user's primary group. The "Group" option is now ignored. For more
13818       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
13819       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
13820       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848.
13821     - Do not use or believe expired v3 authority certificates. Patch
13822       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
13824   o Minor features:
13825     - Now NodeFamily and MyFamily config options allow spaces in
13826       identity fingerprints, so it's easier to paste them in.
13827       Suggested by Lucky Green.
13828     - Implement the 0x20 hack to better resist DNS poisoning: set the
13829       case on outgoing DNS requests randomly, and reject responses that do
13830       not match the case correctly. This logic can be disabled with the
13831       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
13832       of servers that do not reliably preserve case in replies. See
13833       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
13834       for more info.
13835     - Preserve case in replies to DNSPort requests in order to support
13836       the 0x20 hack for resisting DNS poisoning attacks.
13838   o Hidden service performance improvements:
13839     - When the client launches an introduction circuit, retry with a
13840       new circuit after 30 seconds rather than 60 seconds.
13841     - Launch a second client-side introduction circuit in parallel
13842       after a delay of 15 seconds (based on work by Christian Wilms).
13843     - Hidden services start out building five intro circuits rather
13844       than three, and when the first three finish they publish a service
13845       descriptor using those. Now we publish our service descriptor much
13846       faster after restart.
13848   o Minor bugfixes:
13849     - Minor fix in the warning messages when you're having problems
13850       bootstrapping; also, be more forgiving of bootstrap problems when
13851       we're still making incremental progress on a given bootstrap phase.
13852     - When we're choosing an exit node for a circuit, and we have
13853       no pending streams, choose a good general exit rather than one that
13854       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
13855     - Send a valid END cell back when a client tries to connect to a
13856       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
13857       840. Patch from rovv.
13858     - If a broken client asks a non-exit router to connect somewhere,
13859       do not even do the DNS lookup before rejecting the connection.
13860       Fixes another case of bug 619. Patch from rovv.
13861     - Fix another case of assuming, when a specific exit is requested,
13862       that we know more than the user about what hosts it allows.
13863       Fixes another case of bug 752. Patch from rovv.
13864     - Check which hops rendezvous stream cells are associated with to
13865       prevent possible guess-the-streamid injection attacks from
13866       intermediate hops. Fixes another case of bug 446. Based on patch
13867       from rovv.
13868     - Avoid using a negative right-shift when comparing 32-bit
13869       addresses. Possible fix for bug 845 and bug 811.
13870     - Make the assert_circuit_ok() function work correctly on circuits that
13871       have already been marked for close.
13872     - Fix read-off-the-end-of-string error in unit tests when decoding
13873       introduction points.
13874     - Fix uninitialized size field for memory area allocation: may improve
13875       memory performance during directory parsing.
13876     - Treat duplicate certificate fetches as failures, so that we do
13877       not try to re-fetch an expired certificate over and over and over.
13878     - Do not say we're fetching a certificate when we'll in fact skip it
13879       because of a pending download.
13882 Changes in version 0.2.1.6-alpha - 2008-09-30
13883   Tor 0.2.1.6-alpha further improves performance and robustness of
13884   hidden services, starts work on supporting per-country relay selection,
13885   and fixes a variety of smaller issues.
13887   o Major features:
13888     - Implement proposal 121: make it possible to build hidden services
13889       that only certain clients are allowed to connect to. This is
13890       enforced at several points, so that unauthorized clients are unable
13891       to send INTRODUCE cells to the service, or even (depending on the
13892       type of authentication) to learn introduction points. This feature
13893       raises the bar for certain kinds of active attacks against hidden
13894       services. Code by Karsten Loesing.
13895     - Relays now store and serve v2 hidden service descriptors by default,
13896       i.e., the new default value for HidServDirectoryV2 is 1. This is
13897       the last step in proposal 114, which aims to make hidden service
13898       lookups more reliable.
13899     - Start work to allow node restrictions to include country codes. The
13900       syntax to exclude nodes in a country with country code XX is
13901       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
13902       refinement to decide what config options should take priority if
13903       you ask to both use a particular node and exclude it.
13904     - Allow ExitNodes list to include IP ranges and country codes, just
13905       like the Exclude*Nodes lists. Patch from Robert Hogan.
13907   o Major bugfixes:
13908     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
13909       Tor to fail to start if you had it configured to use a bridge
13910       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
13911     - When extending a circuit to a hidden service directory to upload a
13912       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
13913       requests failed, because the router descriptor had not been
13914       downloaded yet. In these cases, we now wait until the router
13915       descriptor is downloaded, and then retry. Likewise, clients
13916       now skip over a hidden service directory if they don't yet have
13917       its router descriptor, rather than futilely requesting it and
13918       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
13919       on 0.2.0.10-alpha.
13920     - When fetching v0 and v2 rendezvous service descriptors in parallel,
13921       we were failing the whole hidden service request when the v0
13922       descriptor fetch fails, even if the v2 fetch is still pending and
13923       might succeed. Similarly, if the last v2 fetch fails, we were
13924       failing the whole hidden service request even if a v0 fetch is
13925       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
13926     - DNS replies need to have names matching their requests, but
13927       these names should be in the questions section, not necessarily
13928       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
13930   o Minor features:
13931     - Update to the "September 1 2008" ip-to-country file.
13932     - Allow ports 465 and 587 in the default exit policy again. We had
13933       rejected them in 0.1.0.15, because back in 2005 they were commonly
13934       misconfigured and ended up as spam targets. We hear they are better
13935       locked down these days.
13936     - Use a lockfile to make sure that two Tor processes are not
13937       simultaneously running with the same datadir.
13938     - Serve the latest v3 networkstatus consensus via the control
13939       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
13940     - Better logging about stability/reliability calculations on directory
13941       servers.
13942     - Drop the requirement to have an open dir port for storing and
13943       serving v2 hidden service descriptors.
13944     - Directory authorities now serve a /tor/dbg-stability.txt URL to
13945       help debug WFU and MTBF calculations.
13946     - Implement most of Proposal 152: allow specialized servers to permit
13947       single-hop circuits, and clients to use those servers to build
13948       single-hop circuits when using a specialized controller. Patch
13949       from Josh Albrecht. Resolves feature request 768.
13950     - Add a -p option to tor-resolve for specifying the SOCKS port: some
13951       people find host:port too confusing.
13952     - Make TrackHostExit mappings expire a while after their last use, not
13953       after their creation. Patch from Robert Hogan.
13954     - Provide circuit purposes along with circuit events to the controller.
13956   o Minor bugfixes:
13957     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
13958       Reported by Tas.
13959     - Fixed some memory leaks -- some quite frequent, some almost
13960       impossible to trigger -- based on results from Coverity.
13961     - When testing for libevent functions, set the LDFLAGS variable
13962       correctly. Found by Riastradh.
13963     - Fix an assertion bug in parsing policy-related options; possible fix
13964       for bug 811.
13965     - Catch and report a few more bootstrapping failure cases when Tor
13966       fails to establish a TCP connection. Cleanup on 0.2.1.x.
13967     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
13968       bootstrapping with tunneled directory connections. Bugfix on
13969       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
13970     - When asked to connect to A.B.exit:80, if we don't know the IP for A
13971       and we know that server B rejects most-but-not all connections to
13972       port 80, we would previously reject the connection. Now, we assume
13973       the user knows what they were asking for. Fixes bug 752. Bugfix
13974       on 0.0.9rc5. Diagnosed by BarkerJr.
13975     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
13976       service directories if they have no advertised dir port. Bugfix
13977       on 0.2.0.10-alpha.
13978     - If we overrun our per-second write limits a little, count this as
13979       having used up our write allocation for the second, and choke
13980       outgoing directory writes. Previously, we had only counted this when
13981       we had met our limits precisely. Fixes bug 824. Patch by rovv.
13982       Bugfix on 0.2.0.x (??).
13983     - Avoid a "0 divided by 0" calculation when calculating router uptime
13984       at directory authorities. Bugfix on 0.2.0.8-alpha.
13985     - Make DNS resolved controller events into "CLOSED", not
13986       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
13987       bug 807.
13988     - Fix a bug where an unreachable relay would establish enough
13989       reachability testing circuits to do a bandwidth test -- if
13990       we already have a connection to the middle hop of the testing
13991       circuit, then it could establish the last hop by using the existing
13992       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
13993       circuits no longer use entry guards in 0.2.1.3-alpha.
13994     - If we have correct permissions on $datadir, we complain to stdout
13995       and fail to start. But dangerous permissions on
13996       $datadir/cached-status/ would cause us to open a log and complain
13997       there. Now complain to stdout and fail to start in both cases. Fixes
13998       bug 820, reported by seeess.
13999     - Remove the old v2 directory authority 'lefkada' from the default
14000       list. It has been gone for many months.
14002   o Code simplifications and refactoring:
14003     - Revise the connection_new functions so that a more typesafe variant
14004       exists. This will work better with Coverity, and let us find any
14005       actual mistakes we're making here.
14006     - Refactor unit testing logic so that dmalloc can be used sensibly
14007       with unit tests to check for memory leaks.
14008     - Move all hidden-service related fields from connection and circuit
14009       structure to substructures: this way they won't eat so much memory.
14012 Changes in version 0.2.0.31 - 2008-09-03
14013   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
14014   a big bug we're seeing where in rare cases traffic from one Tor stream
14015   gets mixed into another stream, and fixes a variety of smaller issues.
14017   o Major bugfixes:
14018     - Make sure that two circuits can never exist on the same connection
14019       with the same circuit ID, even if one is marked for close. This
14020       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
14021     - Relays now reject risky extend cells: if the extend cell includes
14022       a digest of all zeroes, or asks to extend back to the relay that
14023       sent the extend cell, tear down the circuit. Ideas suggested
14024       by rovv.
14025     - If not enough of our entry guards are available so we add a new
14026       one, we might use the new one even if it overlapped with the
14027       current circuit's exit relay (or its family). Anonymity bugfix
14028       pointed out by rovv.
14030   o Minor bugfixes:
14031     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
14032       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
14033     - Correctly detect the presence of the linux/netfilter_ipv4.h header
14034       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
14035     - Pick size of default geoip filename string correctly on windows.
14036       Fixes bug 806. Bugfix on 0.2.0.30.
14037     - Make the autoconf script accept the obsolete --with-ssl-dir
14038       option as an alias for the actually-working --with-openssl-dir
14039       option. Fix the help documentation to recommend --with-openssl-dir.
14040       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
14041     - When using the TransPort option on OpenBSD, and using the User
14042       option to change UID and drop privileges, make sure to open
14043       /dev/pf before dropping privileges. Fixes bug 782. Patch from
14044       Christopher Davis. Bugfix on 0.1.2.1-alpha.
14045     - Try to attach connections immediately upon receiving a RENDEZVOUS2
14046       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
14047       on the client side when connecting to a hidden service. Bugfix
14048       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
14049     - When closing an application-side connection because its circuit is
14050       getting torn down, generate the stream event correctly. Bugfix on
14051       0.1.2.x. Anonymous patch.
14054 Changes in version 0.2.1.5-alpha - 2008-08-31
14055   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
14056   in a lot of the infrastructure for adding authorization to hidden
14057   services, lays the groundwork for having clients read their load
14058   balancing information out of the networkstatus consensus rather than
14059   the individual router descriptors, addresses two potential anonymity
14060   issues, and fixes a variety of smaller issues.
14062   o Major features:
14063     - Convert many internal address representations to optionally hold
14064       IPv6 addresses.
14065     - Generate and accept IPv6 addresses in many protocol elements.
14066     - Make resolver code handle nameservers located at ipv6 addresses.
14067     - Begin implementation of proposal 121 ("Client authorization for
14068       hidden services"): configure hidden services with client
14069       authorization, publish descriptors for them, and configure
14070       authorization data for hidden services at clients. The next
14071       step is to actually access hidden services that perform client
14072       authorization.
14073     - More progress toward proposal 141: Network status consensus
14074       documents and votes now contain bandwidth information for each
14075       router and a summary of that router's exit policy. Eventually this
14076       will be used by clients so that they do not have to download every
14077       known descriptor before building circuits.
14079   o Major bugfixes (on 0.2.0.x and before):
14080     - When sending CREATED cells back for a given circuit, use a 64-bit
14081       connection ID to find the right connection, rather than an addr:port
14082       combination. Now that we can have multiple OR connections between
14083       the same ORs, it is no longer possible to use addr:port to uniquely
14084       identify a connection.
14085     - Relays now reject risky extend cells: if the extend cell includes
14086       a digest of all zeroes, or asks to extend back to the relay that
14087       sent the extend cell, tear down the circuit. Ideas suggested
14088       by rovv.
14089     - If not enough of our entry guards are available so we add a new
14090       one, we might use the new one even if it overlapped with the
14091       current circuit's exit relay (or its family). Anonymity bugfix
14092       pointed out by rovv.
14094   o Minor bugfixes:
14095     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
14096       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
14097     - When using the TransPort option on OpenBSD, and using the User
14098       option to change UID and drop privileges, make sure to open /dev/pf
14099       before dropping privileges. Fixes bug 782. Patch from Christopher
14100       Davis. Bugfix on 0.1.2.1-alpha.
14101     - Correctly detect the presence of the linux/netfilter_ipv4.h header
14102       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
14103     - Add a missing safe_str() call for a debug log message.
14104     - Use 64 bits instead of 32 bits for connection identifiers used with
14105       the controller protocol, to greatly reduce risk of identifier reuse.
14106     - Make the autoconf script accept the obsolete --with-ssl-dir
14107       option as an alias for the actually-working --with-openssl-dir
14108       option. Fix the help documentation to recommend --with-openssl-dir.
14109       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
14111   o Minor features:
14112     - Rate-limit too-many-sockets messages: when they happen, they happen
14113       a lot. Resolves bug 748.
14114     - Resist DNS poisoning a little better by making sure that names in
14115       answer sections match.
14116     - Print the SOCKS5 error message string as well as the error code
14117       when a tor-resolve request fails. Patch from Jacob.
14120 Changes in version 0.2.1.4-alpha - 2008-08-04
14121   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
14123   o Major bugfixes:
14124     - The address part of exit policies was not correctly written
14125       to router descriptors. This generated router descriptors that failed
14126       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
14127       on 0.2.1.3-alpha.
14128     - Tor triggered a false assert when extending a circuit to a relay
14129       but we already have a connection open to that relay. Noticed by
14130       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
14132   o Minor bugfixes:
14133     - Fix a hidden service logging bug: in some edge cases, the router
14134       descriptor of a previously picked introduction point becomes
14135       obsolete and we need to give up on it rather than continually
14136       complaining that it has become obsolete. Observed by xiando. Bugfix
14137       on 0.2.1.3-alpha.
14139   o Removed features:
14140     - Take out the TestVia config option, since it was a workaround for
14141       a bug that was fixed in Tor 0.1.1.21.
14144 Changes in version 0.2.1.3-alpha - 2008-08-03
14145   Tor 0.2.1.3-alpha implements most of the pieces to prevent
14146   infinite-length circuit attacks (see proposal 110); fixes a bug that
14147   might cause exit relays to corrupt streams they send back; allows
14148   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
14149   ExcludeExitNodes config options; and fixes a big pile of bugs.
14151   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
14152     - Send a bootstrap problem "warn" event on the first problem if the
14153       reason is NO_ROUTE (that is, our network is down).
14155   o Major features:
14156     - Implement most of proposal 110: The first K cells to be sent
14157       along a circuit are marked as special "early" cells; only K "early"
14158       cells will be allowed. Once this code is universal, we can block
14159       certain kinds of DOS attack by requiring that EXTEND commands must
14160       be sent using an "early" cell.
14162   o Major bugfixes:
14163     - Try to attach connections immediately upon receiving a RENDEZVOUS2
14164       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
14165       on the client side when connecting to a hidden service. Bugfix
14166       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
14167     - Ensure that two circuits can never exist on the same connection
14168       with the same circuit ID, even if one is marked for close. This
14169       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
14171   o Minor features:
14172     - When relays do their initial bandwidth measurement, don't limit
14173       to just our entry guards for the test circuits. Otherwise we tend
14174       to have multiple test circuits going through a single entry guard,
14175       which makes our bandwidth test less accurate. Fixes part of bug 654;
14176       patch contributed by Josh Albrecht.
14177     - Add an ExcludeExitNodes option so users can list a set of nodes
14178       that should be be excluded from the exit node position, but
14179       allowed elsewhere. Implements proposal 151.
14180     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
14181       ExcludeNodes and ExcludeExitNodes lists.
14182     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
14183       be more efficient. Formerly it was quadratic in the number of
14184       servers; now it should be linear. Fixes bug 509.
14185     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
14186       and n_conn_id_digest fields into a separate structure that's
14187       only needed when the circuit has not yet attached to an n_conn.
14189   o Minor bugfixes:
14190     - Change the contrib/tor.logrotate script so it makes the new
14191       logs as "_tor:_tor" rather than the default, which is generally
14192       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
14193     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
14194       warnings (occasionally), but it can also cause the compiler to
14195       eliminate error-checking code. Suggested by Peter Gutmann.
14196     - When a hidden service is giving up on an introduction point candidate
14197       that was not included in the last published rendezvous descriptor,
14198       don't reschedule publication of the next descriptor. Fixes bug 763.
14199       Bugfix on 0.0.9.3.
14200     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
14201       HiddenServiceExcludeNodes as obsolete: they never worked properly,
14202       and nobody claims to be using them. Fixes bug 754. Bugfix on
14203       0.1.0.1-rc. Patch from Christian Wilms.
14204     - Fix a small alignment and memory-wasting bug on buffer chunks.
14205       Spotted by rovv.
14207   o Minor bugfixes (controller):
14208     - When closing an application-side connection because its circuit
14209       is getting torn down, generate the stream event correctly.
14210       Bugfix on 0.1.2.x. Anonymous patch.
14212   o Removed features:
14213     - Remove all backward-compatibility code to support relays running
14214       versions of Tor so old that they no longer work at all on the
14215       Tor network.
14218 Changes in version 0.2.0.30 - 2008-07-15
14219   o Minor bugfixes:
14220     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
14221       warnings (occasionally), but it can also cause the compiler to
14222       eliminate error-checking code. Suggested by Peter Gutmann.
14225 Changes in version 0.2.0.29-rc - 2008-07-08
14226   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
14227   hidden-service performance bugs, and fixes a bunch of smaller bugs.
14229   o Major bugfixes:
14230     - If you have more than one bridge but don't know their keys,
14231       you would only launch a request for the descriptor of the first one
14232       on your list. (Tor considered launching requests for the others, but
14233       found that it already had a connection on the way for $0000...0000
14234       so it didn't open another.) Bugfix on 0.2.0.x.
14235     - If you have more than one bridge but don't know their keys, and the
14236       connection to one of the bridges failed, you would cancel all
14237       pending bridge connections. (After all, they all have the same
14238       digest.) Bugfix on 0.2.0.x.
14239     - When a hidden service was trying to establish an introduction point,
14240       and Tor had built circuits preemptively for such purposes, we
14241       were ignoring all the preemptive circuits and launching a new one
14242       instead. Bugfix on 0.2.0.14-alpha.
14243     - When a hidden service was trying to establish an introduction point,
14244       and Tor *did* manage to reuse one of the preemptively built
14245       circuits, it didn't correctly remember which one it used,
14246       so it asked for another one soon after, until there were no
14247       more preemptive circuits, at which point it launched one from
14248       scratch. Bugfix on 0.0.9.x.
14249     - Make directory servers include the X-Your-Address-Is: http header in
14250       their responses even for begin_dir conns. Now clients who only
14251       ever use begin_dir connections still have a way to learn their IP
14252       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
14254   o Minor bugfixes:
14255     - Fix a macro/CPP interaction that was confusing some compilers:
14256       some GCCs don't like #if/#endif pairs inside macro arguments.
14257       Fixes bug 707.
14258     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
14259       Fixes bug 704; fix from Steven Murdoch.
14260     - When opening /dev/null in finish_daemonize(), do not pass the
14261       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
14262       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
14263     - Correctly detect transparent proxy support on Linux hosts that
14264       require in.h to be included before netfilter_ipv4.h. Patch
14265       from coderman.
14266     - Disallow session resumption attempts during the renegotiation
14267       stage of the v2 handshake protocol. Clients should never be trying
14268       session resumption at this point, but apparently some did, in
14269       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
14270       found by Geoff Goodell.
14273 Changes in version 0.2.1.2-alpha - 2008-06-20
14274   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
14275   make it easier to set up your own private Tor network; fixes several
14276   big bugs with using more than one bridge relay; fixes a big bug with
14277   offering hidden services quickly after Tor starts; and uses a better
14278   API for reporting potential bootstrapping problems to the controller.
14280   o Major features:
14281     - New TestingTorNetwork config option to allow adjustment of
14282       previously constant values that, while reasonable, could slow
14283       bootstrapping. Implements proposal 135. Patch from Karsten.
14285   o Major bugfixes:
14286     - If you have more than one bridge but don't know their digests,
14287       you would only learn a request for the descriptor of the first one
14288       on your list. (Tor considered launching requests for the others, but
14289       found that it already had a connection on the way for $0000...0000
14290       so it didn't open another.) Bugfix on 0.2.0.x.
14291     - If you have more than one bridge but don't know their digests,
14292       and the connection to one of the bridges failed, you would cancel
14293       all pending bridge connections. (After all, they all have the
14294       same digest.) Bugfix on 0.2.0.x.
14295     - When establishing a hidden service, introduction points that
14296       originate from cannibalized circuits are completely ignored and not
14297       included in rendezvous service descriptors. This might be another
14298       reason for delay in making a hidden service available. Bugfix
14299       from long ago (0.0.9.x?)
14301   o Minor features:
14302     - Allow OpenSSL to use dynamic locks if it wants.
14303     - When building a consensus, do not include routers that are down.
14304       This will cut down 30% to 40% on consensus size. Implements
14305       proposal 138.
14306     - In directory authorities' approved-routers files, allow
14307       fingerprints with or without space.
14308     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
14309       controller can query our current bootstrap state in case it attaches
14310       partway through and wants to catch up.
14311     - Send an initial "Starting" bootstrap status event, so we have a
14312       state to start out in.
14314   o Minor bugfixes:
14315     - Asking for a conditional consensus at .../consensus/<fingerprints>
14316       would crash a dirserver if it did not already have a
14317       consensus. Bugfix on 0.2.1.1-alpha.
14318     - Clean up some macro/CPP interactions: some GCC versions don't like
14319       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
14320       0.2.0.x.
14322   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
14323     - Directory authorities shouldn't complain about bootstrapping
14324       problems just because they do a lot of reachability testing and
14325       some of the connection attempts fail.
14326     - Start sending "count" and "recommendation" key/value pairs in
14327       bootstrap problem status events, so the controller can hear about
14328       problems even before Tor decides they're worth reporting for sure.
14329     - If you're using bridges, generate "bootstrap problem" warnings
14330       as soon as you run out of working bridges, rather than waiting
14331       for ten failures -- which will never happen if you have less than
14332       ten bridges.
14333     - If we close our OR connection because there's been a circuit
14334       pending on it for too long, we were telling our bootstrap status
14335       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
14338 Changes in version 0.2.1.1-alpha - 2008-06-13
14339   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
14340   were making the Tor process bloat especially on Linux; makes our TLS
14341   handshake blend in better; sends "bootstrap phase" status events to
14342   the controller, so it can keep the user informed of progress (and
14343   problems) fetching directory information and establishing circuits;
14344   and adds a variety of smaller features.
14346   o Major features:
14347     - More work on making our TLS handshake blend in: modify the list
14348       of ciphers advertised by OpenSSL in client mode to even more
14349       closely resemble a common web browser. We cheat a little so that
14350       we can advertise ciphers that the locally installed OpenSSL doesn't
14351       know about.
14352     - Start sending "bootstrap phase" status events to the controller,
14353       so it can keep the user informed of progress fetching directory
14354       information and establishing circuits. Also inform the controller
14355       if we think we're stuck at a particular bootstrap phase. Implements
14356       proposal 137.
14357     - Resume using OpenSSL's RAND_poll() for better (and more portable)
14358       cross-platform entropy collection again. We used to use it, then
14359       stopped using it because of a bug that could crash systems that
14360       called RAND_poll when they had a lot of fds open. It looks like the
14361       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
14362       at startup, and to call RAND_poll() when we reseed later only if
14363       we have a non-buggy OpenSSL version.
14365   o Major bugfixes:
14366     - When we choose to abandon a new entry guard because we think our
14367       older ones might be better, close any circuits pending on that
14368       new entry guard connection. This fix should make us recover much
14369       faster when our network is down and then comes back. Bugfix on
14370       0.1.2.8-beta; found by lodger.
14372   o Memory fixes and improvements:
14373     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
14374       to avoid unused RAM in buffer chunks and memory pools.
14375     - Speed up parsing and cut down on memory fragmentation by using
14376       stack-style allocations for parsing directory objects. Previously,
14377       this accounted for over 40% of allocations from within Tor's code
14378       on a typical directory cache.
14379     - Use a Bloom filter rather than a digest-based set to track which
14380       descriptors we need to keep around when we're cleaning out old
14381       router descriptors. This speeds up the computation significantly,
14382       and may reduce fragmentation.
14383     - Reduce the default smartlist size from 32 to 16; it turns out that
14384       most smartlists hold around 8-12 elements tops.
14385     - Make dumpstats() log the fullness and size of openssl-internal
14386       buffers.
14387     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
14388       patch to their OpenSSL, turn it on to save memory on servers. This
14389       patch will (with any luck) get included in a mainline distribution
14390       before too long.
14391     - Never use OpenSSL compression: it wastes RAM and CPU trying to
14392       compress cells, which are basically all encrypted, compressed,
14393       or both.
14395   o Minor bugfixes:
14396     - Stop reloading the router list from disk for no reason when we
14397       run out of reachable directory mirrors. Once upon a time reloading
14398       it would set the 'is_running' flag back to 1 for them. It hasn't
14399       done that for a long time.
14400     - In very rare situations new hidden service descriptors were
14401       published earlier than 30 seconds after the last change to the
14402       service. (We currently think that a hidden service descriptor
14403       that's been stable for 30 seconds is worth publishing.)
14405   o Minor features:
14406     - Allow separate log levels to be configured for different logging
14407       domains. For example, this allows one to log all notices, warnings,
14408       or errors, plus all memory management messages of level debug or
14409       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
14410     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
14411       and stop using a warning that had become unfixably verbose under
14412       GCC 4.3.
14413     - New --hush command-line option similar to --quiet. While --quiet
14414       disables all logging to the console on startup, --hush limits the
14415       output to messages of warning and error severity.
14416     - Servers support a new URL scheme for consensus downloads that
14417       allows the client to specify which authorities are trusted.
14418       The server then only sends the consensus if the client will trust
14419       it. Otherwise a 404 error is sent back. Clients use this
14420       new scheme when the server supports it (meaning it's running
14421       0.2.1.1-alpha or later). Implements proposal 134.
14422     - New configure/torrc options (--enable-geoip-stats,
14423       DirRecordUsageByCountry) to record how many IPs we've served
14424       directory info to in each country code, how many status documents
14425       total we've sent to each country code, and what share of the total
14426       directory requests we should expect to see.
14427     - Use the TLS1 hostname extension to more closely resemble browser
14428       behavior.
14429     - Lots of new unit tests.
14430     - Add a macro to implement the common pattern of iterating through
14431       two parallel lists in lockstep.
14434 Changes in version 0.2.0.28-rc - 2008-06-13
14435   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
14436   performance bug, and fixes a bunch of smaller bugs.
14438   o Anonymity fixes:
14439     - Fix a bug where, when we were choosing the 'end stream reason' to
14440       put in our relay end cell that we send to the exit relay, Tor
14441       clients on Windows were sometimes sending the wrong 'reason'. The
14442       anonymity problem is that exit relays may be able to guess whether
14443       the client is running Windows, thus helping partition the anonymity
14444       set. Down the road we should stop sending reasons to exit relays,
14445       or otherwise prevent future versions of this bug.
14447   o Major bugfixes:
14448     - While setting up a hidden service, some valid introduction circuits
14449       were overlooked and abandoned. This might be the reason for
14450       the long delay in making a hidden service available. Bugfix on
14451       0.2.0.14-alpha.
14453   o Minor features:
14454     - Update to the "June 9 2008" ip-to-country file.
14455     - Run 'make test' as part of 'make dist', so we stop releasing so
14456       many development snapshots that fail their unit tests.
14458   o Minor bugfixes:
14459     - When we're checking if we have enough dir info for each relay
14460       to begin establishing circuits, make sure that we actually have
14461       the descriptor listed in the consensus, not just any descriptor.
14462       Bugfix on 0.1.2.x.
14463     - Bridge relays no longer print "xx=0" in their extrainfo document
14464       for every single country code in the geoip db. Bugfix on
14465       0.2.0.27-rc.
14466     - Only warn when we fail to load the geoip file if we were planning to
14467       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
14468     - If we change our MaxAdvertisedBandwidth and then reload torrc,
14469       Tor won't realize it should publish a new relay descriptor. Fixes
14470       bug 688, reported by mfr. Bugfix on 0.1.2.x.
14471     - When we haven't had any application requests lately, don't bother
14472       logging that we have expired a bunch of descriptors. Bugfix
14473       on 0.1.2.x.
14474     - Make relay cells written on a connection count as non-padding when
14475       tracking how long a connection has been in use. Bugfix on
14476       0.2.0.1-alpha. Spotted by lodger.
14477     - Fix unit tests in 0.2.0.27-rc.
14478     - Fix compile on Windows.
14481 Changes in version 0.2.0.27-rc - 2008-06-03
14482   Tor 0.2.0.27-rc adds a few features we left out of the earlier
14483   release candidates. In particular, we now include an IP-to-country
14484   GeoIP database, so controllers can easily look up what country a
14485   given relay is in, and so bridge relays can give us some sanitized
14486   summaries about which countries are making use of bridges. (See proposal
14487   126-geoip-fetching.txt for details.)
14489   o Major features:
14490     - Include an IP-to-country GeoIP file in the tarball, so bridge
14491       relays can report sanitized summaries of the usage they're seeing.
14493   o Minor features:
14494     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
14495       Robert Hogan. Fixes the first part of bug 681.
14496     - Make bridge authorities never serve extrainfo docs.
14497     - Add support to detect Libevent versions in the 1.4.x series
14498       on mingw.
14499     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
14500     - Include a new contrib/tor-exit-notice.html file that exit relay
14501       operators can put on their website to help reduce abuse queries.
14503   o Minor bugfixes:
14504     - When tunneling an encrypted directory connection, and its first
14505       circuit fails, do not leave it unattached and ask the controller
14506       to deal. Fixes the second part of bug 681.
14507     - Make bridge authorities correctly expire old extrainfo documents
14508       from time to time.
14511 Changes in version 0.2.0.26-rc - 2008-05-13
14512   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
14513   in Debian's OpenSSL packages. All users running any 0.2.0.x version
14514   should upgrade, whether they're running Debian or not.
14516   o Major security fixes:
14517     - Use new V3 directory authority keys on the tor26, gabelmoo, and
14518       moria1 V3 directory authorities. The old keys were generated with
14519       a vulnerable version of Debian's OpenSSL package, and must be
14520       considered compromised. Other authorities' keys were not generated
14521       with an affected version of OpenSSL.
14523   o Major bugfixes:
14524     - List authority signatures as "unrecognized" based on DirServer
14525       lines, not on cert cache. Bugfix on 0.2.0.x.
14527   o Minor features:
14528     - Add a new V3AuthUseLegacyKey option to make it easier for
14529       authorities to change their identity keys if they have to.
14532 Changes in version 0.2.0.25-rc - 2008-04-23
14533   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
14535   o Major bugfixes:
14536     - Remember to initialize threading before initializing logging.
14537       Otherwise, many BSD-family implementations will crash hard on
14538       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
14540   o Minor bugfixes:
14541     - Authorities correctly free policies on bad servers on
14542       exit. Fixes bug 672. Bugfix on 0.2.0.x.
14545 Changes in version 0.2.0.24-rc - 2008-04-22
14546   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
14547   v3 directory authority, makes relays with dynamic IP addresses and no
14548   DirPort notice more quickly when their IP address changes, fixes a few
14549   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
14551   o New directory authorities:
14552     - Take lefkada out of the list of v3 directory authorities, since
14553       it has been down for months.
14554     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
14555       authority.
14557   o Major bugfixes:
14558     - Detect address changes more quickly on non-directory mirror
14559       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
14561   o Minor features (security):
14562     - Reject requests for reverse-dns lookup of names that are in
14563       a private address space. Patch from lodger.
14564     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
14565       from lodger.
14567   o Minor bugfixes (crashes):
14568     - Avoid a rare assert that can trigger when Tor doesn't have much
14569       directory information yet and it tries to fetch a v2 hidden
14570       service descriptor. Fixes bug 651, reported by nwf.
14571     - Initialize log mutex before initializing dmalloc. Otherwise,
14572       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
14573     - Use recursive pthread mutexes in order to avoid deadlock when
14574       logging debug-level messages to a controller. Bug spotted by nwf,
14575       bugfix on 0.2.0.16-alpha.
14577   o Minor bugfixes (resource management):
14578     - Keep address policies from leaking memory: start their refcount
14579       at 1, not 2. Bugfix on 0.2.0.16-alpha.
14580     - Free authority certificates on exit, so they don't look like memory
14581       leaks. Bugfix on 0.2.0.19-alpha.
14582     - Free static hashtables for policy maps and for TLS connections on
14583       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
14584     - Avoid allocating extra space when computing consensuses on 64-bit
14585       platforms. Bug spotted by aakova.
14587   o Minor bugfixes (misc):
14588     - Do not read the configuration file when we've only been told to
14589       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
14590       based on patch from Sebastian Hahn.
14591     - Exit relays that are used as a client can now reach themselves
14592       using the .exit notation, rather than just launching an infinite
14593       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
14594     - When attempting to open a logfile fails, tell us why.
14595     - Fix a dumb bug that was preventing us from knowing that we should
14596       preemptively build circuits to handle expected directory requests.
14597       Fixes bug 660. Bugfix on 0.1.2.x.
14598     - Warn less verbosely about clock skew from netinfo cells from
14599       untrusted sources. Fixes bug 663.
14600     - Make controller stream events for DNS requests more consistent,
14601       by adding "new stream" events for DNS requests, and removing
14602       spurious "stream closed" events" for cached reverse resolves.
14603       Patch from mwenge. Fixes bug 646.
14604     - Correctly notify one-hop connections when a circuit build has
14605       failed. Possible fix for bug 669. Found by lodger.
14608 Changes in version 0.2.0.23-rc - 2008-03-24
14609   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
14610   makes bootstrapping faster if the first directory mirror you contact
14611   is down. The bundles also include the new Vidalia 0.1.2 release.
14613   o Major bugfixes:
14614     - When a tunneled directory request is made to a directory server
14615       that's down, notice after 30 seconds rather than 120 seconds. Also,
14616       fail any begindir streams that are pending on it, so they can
14617       retry elsewhere. This was causing multi-minute delays on bootstrap.
14620 Changes in version 0.2.0.22-rc - 2008-03-18
14621   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
14622   enables encrypted directory connections by default for non-relays, fixes
14623   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
14624   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
14626   o Major features:
14627     - Enable encrypted directory connections by default for non-relays,
14628       so censor tools that block Tor directory connections based on their
14629       plaintext patterns will no longer work. This means Tor works in
14630       certain censored countries by default again.
14632   o Major bugfixes:
14633     - Make sure servers always request certificates from clients during
14634       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
14635     - Do not enter a CPU-eating loop when a connection is closed in
14636       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
14637       diagnosed by lodger; bugfix on 0.2.0.20-rc.
14638     - Fix assertion failure that could occur when a blocked circuit
14639       became unblocked, and it had pending client DNS requests. Bugfix
14640       on 0.2.0.1-alpha. Fixes bug 632.
14642   o Minor bugfixes (on 0.1.2.x):
14643     - Generate "STATUS_SERVER" events rather than misspelled
14644       "STATUS_SEVER" events. Caught by mwenge.
14645     - When counting the number of bytes written on a TLS connection,
14646       look at the BIO actually used for writing to the network, not
14647       at the BIO used (sometimes) to buffer data for the network.
14648       Looking at different BIOs could result in write counts on the
14649       order of ULONG_MAX. Fixes bug 614.
14650     - On Windows, correctly detect errors when listing the contents of
14651       a directory. Fix from lodger.
14653   o Minor bugfixes (on 0.2.0.x):
14654     - Downgrade "sslv3 alert handshake failure" message to INFO.
14655     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
14656       left BandwidthRate and BandwidthBurst at the default, we would be
14657       silently limited by those defaults. Now raise them to match the
14658       RelayBandwidth* values.
14659     - Fix the SVK version detection logic to work correctly on a branch.
14660     - Make --enable-openbsd-malloc work correctly on Linux with alpha
14661       CPUs. Fixes bug 625.
14662     - Logging functions now check that the passed severity is sane.
14663     - Use proper log levels in the testsuite call of
14664       get_interface_address6().
14665     - When using a nonstandard malloc, do not use the platform values for
14666       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
14667     - Make the openbsd malloc code use 8k pages on alpha CPUs and
14668       16k pages on ia64.
14669     - Detect mismatched page sizes when using --enable-openbsd-malloc.
14670     - Avoid double-marked-for-close warning when certain kinds of invalid
14671       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
14672       for bug 617. Bugfix on 0.2.0.1-alpha.
14673     - Make sure that the "NULL-means-reject *:*" convention is followed by
14674       all the policy manipulation functions, avoiding some possible crash
14675       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
14676     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
14677       actually works, and doesn't warn about every single reverse lookup.
14678       Fixes the other part of bug 617. Bugfix on 0.2.0.1-alpha.
14680   o Minor features:
14681     - Only log guard node status when guard node status has changed.
14682     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
14683       make "INFO" 75% less verbose.
14686 Changes in version 0.2.0.21-rc - 2008-03-02
14687   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
14688   makes Tor work well with Vidalia again, fixes a rare assert bug,
14689   and fixes a pair of more minor bugs. The bundles also include Vidalia
14690   0.1.0 and Torbutton 1.1.16.
14692   o Major bugfixes:
14693     - The control port should declare that it requires password auth
14694       when HashedControlSessionPassword is set too. Patch from Matt Edman;
14695       bugfix on 0.2.0.20-rc. Fixes bug 615.
14696     - Downgrade assert in connection_buckets_decrement() to a log message.
14697       This may help us solve bug 614, and in any case will make its
14698       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
14699     - We were sometimes miscounting the number of bytes read from the
14700       network, causing our rate limiting to not be followed exactly.
14701       Bugfix on 0.2.0.16-alpha. Reported by lodger.
14703   o Minor bugfixes:
14704     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a. All other supported
14705       OpenSSL versions should have been working fine. Diagnosis and patch
14706       from lodger, Karsten Loesing, and Sebastian Hahn. Fixes bug 616.
14707       Bugfix on 0.2.0.20-rc.
14710 Changes in version 0.2.0.20-rc - 2008-02-24
14711   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
14712   makes more progress towards normalizing Tor's TLS handshake, makes
14713   hidden services work better again, helps relays bootstrap if they don't
14714   know their IP address, adds optional support for linking in openbsd's
14715   allocator or tcmalloc, allows really fast relays to scale past 15000
14716   sockets, and fixes a bunch of minor bugs reported by Veracode.
14718   o Major features:
14719     - Enable the revised TLS handshake based on the one designed by
14720       Steven Murdoch in proposal 124, as revised in proposal 130. It
14721       includes version negotiation for OR connections as described in
14722       proposal 105. The new handshake is meant to be harder for censors
14723       to fingerprint, and it adds the ability to detect certain kinds of
14724       man-in-the-middle traffic analysis attacks. The version negotiation
14725       feature will allow us to improve Tor's link protocol more safely
14726       in the future.
14727     - Choose which bridge to use proportional to its advertised bandwidth,
14728       rather than uniformly at random. This should speed up Tor for
14729       bridge users. Also do this for people who set StrictEntryNodes.
14730     - When a TrackHostExits-chosen exit fails too many times in a row,
14731       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
14733   o Major bugfixes:
14734     - Resolved problems with (re-)fetching hidden service descriptors.
14735       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
14736       and 0.2.0.19-alpha.
14737     - If we only ever used Tor for hidden service lookups or posts, we
14738       would stop building circuits and start refusing connections after
14739       24 hours, since we falsely believed that Tor was dormant. Reported
14740       by nwf; bugfix on 0.1.2.x.
14741     - Servers that don't know their own IP address should go to the
14742       authorities for their first directory fetch, even if their DirPort
14743       is off or if they don't know they're reachable yet. This will help
14744       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
14745     - When counting the number of open sockets, count not only the number
14746       of sockets we have received from the socket() call, but also
14747       the number we've gotten from accept() and socketpair(). This bug
14748       made us fail to count all sockets that we were using for incoming
14749       connections. Bugfix on 0.2.0.x.
14750     - Fix code used to find strings within buffers, when those strings
14751       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
14752     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
14753     - Add a new __HashedControlSessionPassword option for controllers
14754       to use for one-off session password hashes that shouldn't get
14755       saved to disk by SAVECONF --- Vidalia users were accumulating a
14756       pile of HashedControlPassword lines in their torrc files, one for
14757       each time they had restarted Tor and then clicked Save. Make Tor
14758       automatically convert "HashedControlPassword" to this new option but
14759       only when it's given on the command line. Partial fix for bug 586.
14761   o Minor features (performance):
14762     - Tune parameters for cell pool allocation to minimize amount of
14763       RAM overhead used.
14764     - Add OpenBSD malloc code from phk as an optional malloc
14765       replacement on Linux: some glibc libraries do very poorly
14766       with Tor's memory allocation patterns. Pass
14767       --enable-openbsd-malloc to get the replacement malloc code.
14768     - Add a --with-tcmalloc option to the configure script to link
14769       against tcmalloc (if present). Does not yet search for
14770       non-system include paths.
14771     - Stop imposing an arbitrary maximum on the number of file descriptors
14772       used for busy servers. Bug reported by Olaf Selke; patch from
14773       Sebastian Hahn.
14775   o Minor features (other):
14776     - When SafeLogging is disabled, log addresses along with all TLS
14777       errors.
14778     - When building with --enable-gcc-warnings, check for whether Apple's
14779       warning "-Wshorten-64-to-32" is available.
14780     - Add a --passphrase-fd argument to the tor-gencert command for
14781       scriptability.
14783   o Minor bugfixes (memory leaks and code problems):
14784     - We were leaking a file descriptor if Tor started with a zero-length
14785       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
14786     - Detect size overflow in zlib code. Reported by Justin Ferguson and
14787       Dan Kaminsky.
14788     - We were comparing the raw BridgePassword entry with a base64'ed
14789       version of it, when handling a "/tor/networkstatus-bridges"
14790       directory request. Now compare correctly. Noticed by Veracode.
14791     - Recover from bad tracked-since value in MTBF-history file.
14792       Should fix bug 537.
14793     - Alter the code that tries to recover from unhandled write
14794       errors, to not try to flush onto a socket that's given us
14795       unhandled errors. Bugfix on 0.1.2.x.
14796     - Make Unix controlsockets work correctly on OpenBSD. Patch from
14797       tup. Bugfix on 0.2.0.3-alpha.
14799   o Minor bugfixes (other):
14800     - If we have an extra-info document for our server, always make
14801       it available on the control port, even if we haven't gotten
14802       a copy of it from an authority yet. Patch from mwenge.
14803     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
14804     - Directory mirrors no longer include a guess at the client's IP
14805       address if the connection appears to be coming from the same /24
14806       network; it was producing too many wrong guesses.
14807     - Make the new hidden service code respect the SafeLogging setting.
14808       Bugfix on 0.2.0.x. Patch from Karsten.
14809     - When starting as an authority, do not overwrite all certificates
14810       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
14811     - If we're trying to flush the last bytes on a connection (for
14812       example, when answering a directory request), reset the
14813       time-to-give-up timeout every time we manage to write something
14814       on the socket. Bugfix on 0.1.2.x.
14815     - Change the behavior of "getinfo status/good-server-descriptor"
14816       so it doesn't return failure when any authority disappears.
14817     - Even though the man page said that "TrackHostExits ." should
14818       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
14819     - Report TLS "zero return" case as a "clean close" and "IO error"
14820       as a "close". Stop calling closes "unexpected closes": existing
14821       Tors don't use SSL_close(), so having a connection close without
14822       the TLS shutdown handshake is hardly unexpected.
14823     - Send NAMESERVER_STATUS messages for a single failed nameserver
14824       correctly.
14826   o Code simplifications and refactoring:
14827     - Remove the tor_strpartition function: its logic was confused,
14828       and it was only used for one thing that could be implemented far
14829       more easily.
14832 Changes in version 0.2.0.19-alpha - 2008-02-09
14833   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
14834   handshake, makes path selection for relays more secure and IP address
14835   guessing more robust, and generally fixes a lot of bugs in preparation
14836   for calling the 0.2.0 branch stable.
14838   o Major features:
14839     - Do not include recognizeable strings in the commonname part of
14840       Tor's x509 certificates.
14842   o Major bugfixes:
14843     - If we're a relay, avoid picking ourselves as an introduction point,
14844       a rendezvous point, or as the final hop for internal circuits. Bug
14845       reported by taranis and lodger. Bugfix on 0.1.2.x.
14846     - Patch from "Andrew S. Lists" to catch when we contact a directory
14847       mirror at IP address X and he says we look like we're coming from
14848       IP address X. Bugfix on 0.1.2.x.
14850   o Minor features (security):
14851     - Be more paranoid about overwriting sensitive memory on free(),
14852       as a defensive programming tactic to ensure forward secrecy.
14854   o Minor features (directory authority):
14855     - Actually validate the options passed to AuthDirReject,
14856       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
14857     - Reject router descriptors with out-of-range bandwidthcapacity or
14858       bandwidthburst values.
14860   o Minor features (controller):
14861     - Reject controller commands over 1MB in length. This keeps rogue
14862       processes from running us out of memory.
14864   o Minor features (misc):
14865     - Give more descriptive well-formedness errors for out-of-range
14866       hidden service descriptor/protocol versions.
14867     - Make memory debugging information describe more about history
14868       of cell allocation, so we can help reduce our memory use.
14870   o Deprecated features (controller):
14871     - The status/version/num-versioning and status/version/num-concurring
14872       GETINFO options are no longer useful in the v3 directory protocol:
14873       treat them as deprecated, and warn when they're used.
14875   o Minor bugfixes:
14876     - When our consensus networkstatus has been expired for a while, stop
14877       being willing to build circuits using it. Fixes bug 401. Bugfix
14878       on 0.1.2.x.
14879     - Directory caches now fetch certificates from all authorities
14880       listed in a networkstatus consensus, even when they do not
14881       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
14882     - When connecting to a bridge without specifying its key, insert
14883       the connection into the identity-to-connection map as soon as
14884       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
14885     - Detect versions of OS X where malloc_good_size() is present in the
14886       library but never actually declared. Resolves bug 587. Bugfix
14887       on 0.2.0.x.
14888     - Stop incorrectly truncating zlib responses to directory authority
14889       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
14890     - Stop recommending that every server operator send mail to tor-ops.
14891       Resolves bug 597. Bugfix on 0.1.2.x.
14892     - Don't trigger an assert if we start a directory authority with a
14893       private IP address (like 127.0.0.1).
14894     - Avoid possible failures when generating a directory with routers
14895       with over-long versions strings, or too many flags set. Bugfix
14896       on 0.1.2.x.
14897     - If an attempt to launch a DNS resolve request over the control
14898       port fails because we have overrun the limit on the number of
14899       connections, tell the controller that the request has failed.
14900     - Avoid using too little bandwidth when our clock skips a few
14901       seconds. Bugfix on 0.1.2.x.
14902     - Fix shell error when warning about missing packages in configure
14903       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
14904     - Do not become confused when receiving a spurious VERSIONS-like
14905       cell from a confused v1 client. Bugfix on 0.2.0.x.
14906     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
14907       introduction points for a hidden service have failed. Patch from
14908       Karsten Loesing. Bugfix on 0.2.0.x.
14910   o Code simplifications and refactoring:
14911     - Remove some needless generality from cpuworker code, for improved
14912       type-safety.
14913     - Stop overloading the circuit_t.onionskin field for both "onionskin
14914       from a CREATE cell that we are waiting for a cpuworker to be
14915       assigned" and "onionskin from an EXTEND cell that we are going to
14916       send to an OR as soon as we are connected". Might help with bug 600.
14917     - Add an in-place version of aes_crypt() so that we can avoid doing a
14918       needless memcpy() call on each cell payload.
14921 Changes in version 0.2.0.18-alpha - 2008-01-25
14922   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
14923   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
14924   that can warn or reject connections to ports generally associated with
14925   vulnerable-plaintext protocols.
14927   o New directory authorities:
14928     - Set up dannenberg (run by CCC) as the sixth v3 directory
14929       authority.
14931   o Major bugfixes:
14932     - Fix a major memory leak when attempting to use the v2 TLS
14933       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
14934     - We accidentally enabled the under-development v2 TLS handshake
14935       code, which was causing log entries like "TLS error while
14936       renegotiating handshake". Disable it again. Resolves bug 590.
14937     - We were computing the wrong Content-Length: header for directory
14938       responses that need to be compressed on the fly, causing clients
14939       asking for those items to always fail. Bugfix on 0.2.0.x; partially
14940       fixes bug 593.
14942   o Major features:
14943     - Avoid going directly to the directory authorities even if you're a
14944       relay, if you haven't found yourself reachable yet or if you've
14945       decided not to advertise your dirport yet. Addresses bug 556.
14946     - If we've gone 12 hours since our last bandwidth check, and we
14947       estimate we have less than 50KB bandwidth capacity but we could
14948       handle more, do another bandwidth test.
14949     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
14950       Tor can warn and/or refuse connections to ports commonly used with
14951       vulnerable-plaintext protocols. Currently we warn on ports 23,
14952       109, 110, and 143, but we don't reject any.
14954   o Minor bugfixes:
14955     - When we setconf ClientOnly to 1, close any current OR and Dir
14956       listeners. Reported by mwenge.
14957     - When we get a consensus that's been signed by more people than
14958       we expect, don't log about it; it's not a big deal. Reported
14959       by Kyle Williams.
14961   o Minor features:
14962     - Don't answer "/tor/networkstatus-bridges" directory requests if
14963       the request isn't encrypted.
14964     - Make "ClientOnly 1" config option disable directory ports too.
14965     - Patches from Karsten Loesing to make v2 hidden services more
14966       robust: work even when there aren't enough HSDir relays available;
14967       retry when a v2 rend desc fetch fails; but don't retry if we
14968       already have a usable v0 rend desc.
14971 Changes in version 0.2.0.17-alpha - 2008-01-17
14972   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
14974   o Compile fixes:
14975     - Make the tor-gencert man page get included correctly in the tarball.
14978 Changes in version 0.2.0.16-alpha - 2008-01-17
14979   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
14980   Loesing, and generally cleans up a lot of features and minor bugs.
14982   o New directory authorities:
14983     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
14984       authority.
14986   o Major performance improvements:
14987     - Switch our old ring buffer implementation for one more like that
14988       used by free Unix kernels. The wasted space in a buffer with 1mb
14989       of data will now be more like 8k than 1mb. The new implementation
14990       also avoids realloc();realloc(); patterns that can contribute to
14991       memory fragmentation.
14993   o Minor features:
14994     - Configuration files now accept C-style strings as values. This
14995       helps encode characters not allowed in the current configuration
14996       file format, such as newline or #. Addresses bug 557.
14997     - Although we fixed bug 539 (where servers would send HTTP status 503
14998       responses _and_ send a body too), there are still servers out
14999       there that haven't upgraded. Therefore, make clients parse such
15000       bodies when they receive them.
15001     - When we're not serving v2 directory information, there is no reason
15002       to actually keep any around. Remove the obsolete files and directory
15003       on startup if they are very old and we aren't going to serve them.
15005   o Minor performance improvements:
15006     - Reference-count and share copies of address policy entries; only 5%
15007       of them were actually distinct.
15008     - Never walk through the list of logs if we know that no log is
15009       interested in a given message.
15011   o Minor bugfixes:
15012     - When an authority has not signed a consensus, do not try to
15013       download a nonexistent "certificate with key 00000000". Bugfix
15014       on 0.2.0.x. Fixes bug 569.
15015     - Fix a rare assert error when we're closing one of our threads:
15016       use a mutex to protect the list of logs, so we never write to the
15017       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
15018       bug 575, which is kind of the revenge of bug 222.
15019     - Patch from Karsten Loesing to complain less at both the client
15020       and the relay when a relay used to have the HSDir flag but doesn't
15021       anymore, and we try to upload a hidden service descriptor.
15022     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
15023       0.2.0.15-alpha.
15024     - Do not try to download missing certificates until we have tried
15025       to check our fallback consensus. Fixes bug 583.
15026     - Make bridges round reported GeoIP stats info up to the nearest
15027       estimate, not down. Now we can distinguish between "0 people from
15028       this country" and "1 person from this country".
15029     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
15030     - Avoid possible segfault if key generation fails in
15031       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
15032     - Avoid segfault in the case where a badly behaved v2 versioning
15033       directory sends a signed networkstatus with missing client-versions.
15034       Bugfix on 0.1.2.
15035     - Avoid segfaults on certain complex invocations of
15036       router_get_by_hexdigest(). Bugfix on 0.1.2.
15037     - Correct bad index on array access in parse_http_time(). Bugfix
15038       on 0.2.0.
15039     - Fix possible bug in vote generation when server versions are present
15040       but client versions are not.
15041     - Fix rare bug on REDIRECTSTREAM control command when called with no
15042       port set: it could erroneously report an error when none had
15043       happened.
15044     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
15045       compressing large objects and find ourselves with more than 4k
15046       left over. Bugfix on 0.2.0.
15047     - Fix a small memory leak when setting up a hidden service.
15048     - Fix a few memory leaks that could in theory happen under bizarre
15049       error conditions.
15050     - Fix an assert if we post a general-purpose descriptor via the
15051       control port but that descriptor isn't mentioned in our current
15052       network consensus. Bug reported by Jon McLachlan; bugfix on
15053       0.2.0.9-alpha.
15055   o Minor features (controller):
15056     - Get NS events working again. Patch from tup.
15057     - The GETCONF command now escapes and quotes configuration values
15058       that don't otherwise fit into the torrc file.
15059     - The SETCONF command now handles quoted values correctly.
15061   o Minor features (directory authorities):
15062     - New configuration options to override default maximum number of
15063       servers allowed on a single IP address. This is important for
15064       running a test network on a single host.
15065     - Actually implement the -s option to tor-gencert.
15066     - Add a manual page for tor-gencert.
15068   o Minor features (bridges):
15069     - Bridge authorities no longer serve bridge descriptors over
15070       unencrypted connections.
15072   o Minor features (other):
15073     - Add hidden services and DNSPorts to the list of things that make
15074       Tor accept that it has running ports. Change starting Tor with no
15075       ports from a fatal error to a warning; we might change it back if
15076       this turns out to confuse anybody. Fixes bug 579.
15079 Changes in version 0.1.2.19 - 2008-01-17
15080   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
15081   exit policy a little bit more conservative so it's safer to run an
15082   exit relay on a home system, and fixes a variety of smaller issues.
15084   o Security fixes:
15085     - Exit policies now reject connections that are addressed to a
15086       relay's public (external) IP address too, unless
15087       ExitPolicyRejectPrivate is turned off. We do this because too
15088       many relays are running nearby to services that trust them based
15089       on network address.
15091   o Major bugfixes:
15092     - When the clock jumps forward a lot, do not allow the bandwidth
15093       buckets to become negative. Fixes bug 544.
15094     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
15095       on every successful resolve. Reported by Mike Perry.
15096     - Purge old entries from the "rephist" database and the hidden
15097       service descriptor database even when DirPort is zero.
15098     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
15099       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
15100       crashing or mis-answering these requests.
15101     - When we decide to send a 503 response to a request for servers, do
15102       not then also send the server descriptors: this defeats the whole
15103       purpose. Fixes bug 539.
15105   o Minor bugfixes:
15106     - Changing the ExitPolicyRejectPrivate setting should cause us to
15107       rebuild our server descriptor.
15108     - Fix handling of hex nicknames when answering controller requests for
15109       networkstatus by name, or when deciding whether to warn about
15110       unknown routers in a config option. (Patch from mwenge.)
15111     - Fix a couple of hard-to-trigger autoconf problems that could result
15112       in really weird results on platforms whose sys/types.h files define
15113       nonstandard integer types.
15114     - Don't try to create the datadir when running --verify-config or
15115       --hash-password. Resolves bug 540.
15116     - If we were having problems getting a particular descriptor from the
15117       directory caches, and then we learned about a new descriptor for
15118       that router, we weren't resetting our failure count. Reported
15119       by lodger.
15120     - Although we fixed bug 539 (where servers would send HTTP status 503
15121       responses _and_ send a body too), there are still servers out there
15122       that haven't upgraded. Therefore, make clients parse such bodies
15123       when they receive them.
15124     - Run correctly on systems where rlim_t is larger than unsigned long.
15125       This includes some 64-bit systems.
15126     - Run correctly on platforms (like some versions of OS X 10.5) where
15127       the real limit for number of open files is OPEN_FILES, not rlim_max
15128       from getrlimit(RLIMIT_NOFILES).
15129     - Avoid a spurious free on base64 failure.
15130     - Avoid segfaults on certain complex invocations of
15131       router_get_by_hexdigest().
15132     - Fix rare bug on REDIRECTSTREAM control command when called with no
15133       port set: it could erroneously report an error when none had
15134       happened.
15137 Changes in version 0.2.0.15-alpha - 2007-12-25
15138   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
15139   features added in 0.2.0.13-alpha.
15141   o Major bugfixes:
15142     - Fix several remotely triggerable asserts based on DirPort requests
15143       for a v2 or v3 networkstatus object before we were prepared. This
15144       was particularly bad for 0.2.0.13 and later bridge relays, who
15145       would never have a v2 networkstatus and would thus always crash
15146       when used. Bugfixes on 0.2.0.x.
15147     - Estimate the v3 networkstatus size more accurately, rather than
15148       estimating it at zero bytes and giving it artificially high priority
15149       compared to other directory requests. Bugfix on 0.2.0.x.
15151   o Minor bugfixes:
15152     - Fix configure.in logic for cross-compilation.
15153     - When we load a bridge descriptor from the cache, and it was
15154       previously unreachable, mark it as retriable so we won't just
15155       ignore it. Also, try fetching a new copy immediately. Bugfixes
15156       on 0.2.0.13-alpha.
15157     - The bridge GeoIP stats were counting other relays, for example
15158       self-reachability and authority-reachability tests.
15160   o Minor features:
15161     - Support compilation to target iPhone; patch from cjacker huang.
15162       To build for iPhone, pass the --enable-iphone option to configure.
15165 Changes in version 0.2.0.14-alpha - 2007-12-23
15166   o Major bugfixes:
15167     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
15168       without a datadirectory from a previous Tor install. Reported
15169       by Zax.
15170     - Fix a crash when we fetch a descriptor that turns out to be
15171       unexpected (it used to be in our networkstatus when we started
15172       fetching it, but it isn't in our current networkstatus), and we
15173       aren't using bridges. Bugfix on 0.2.0.x.
15174     - Fix a crash when accessing hidden services: it would work the first
15175       time you use a given introduction point for your service, but
15176       on subsequent requests we'd be using garbage memory. Fixed by
15177       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
15178     - Fix a crash when we load a bridge descriptor from disk but we don't
15179       currently have a Bridge line for it in our torrc. Bugfix on
15180       0.2.0.13-alpha.
15182   o Major features:
15183     - If bridge authorities set BridgePassword, they will serve a
15184       snapshot of known bridge routerstatuses from their DirPort to
15185       anybody who knows that password. Unset by default.
15187   o Minor bugfixes:
15188     - Make the unit tests build again.
15189     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
15190     - Make PublishServerDescriptor default to 1, so the default doesn't
15191       have to change as we invent new directory protocol versions.
15192     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
15193       be included unless sys/time.h is already included. Fixes
15194       bug 553. Bugfix on 0.2.0.x.
15195     - If we receive a general-purpose descriptor and then receive an
15196       identical bridge-purpose descriptor soon after, don't discard
15197       the next one as a duplicate.
15199   o Minor features:
15200     - If BridgeRelay is set to 1, then the default for
15201       PublishServerDescriptor is now "bridge" rather than "v2,v3".
15202     - If the user sets RelayBandwidthRate but doesn't set
15203       RelayBandwidthBurst, then make them equal rather than erroring out.
15206 Changes in version 0.2.0.13-alpha - 2007-12-21
15207   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
15208   Goodell, fixes many more bugs, and adds a lot of infrastructure for
15209   upcoming features.
15211   o New directory authorities:
15212     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
15213       authority.
15215   o Major bugfixes:
15216     - Only update guard status (usable / not usable) once we have
15217       enough directory information. This was causing us to always pick
15218       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
15219       causing us to discard all our guards on startup if we hadn't been
15220       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
15221     - Purge old entries from the "rephist" database and the hidden
15222       service descriptor databases even when DirPort is zero. Bugfix
15223       on 0.1.2.x.
15224     - We were ignoring our RelayBandwidthRate for the first 30 seconds
15225       after opening a circuit -- even a relayed circuit. Bugfix on
15226       0.2.0.3-alpha.
15227     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
15228       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
15229       crashing or mis-answering these types of requests.
15230     - Relays were publishing their server descriptor to v1 and v2
15231       directory authorities, but they didn't try publishing to v3-only
15232       authorities. Fix this; and also stop publishing to v1 authorities.
15233       Bugfix on 0.2.0.x.
15234     - When we were reading router descriptors from cache, we were ignoring
15235       the annotations -- so for example we were reading in bridge-purpose
15236       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
15237     - When we decided to send a 503 response to a request for servers, we
15238       were then also sending the server descriptors: this defeats the
15239       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
15241   o Major features:
15242     - Bridge relays now behave like clients with respect to time
15243       intervals for downloading new consensus documents -- otherwise they
15244       stand out. Bridge users now wait until the end of the interval,
15245       so their bridge relay will be sure to have a new consensus document.
15246     - Three new config options (AlternateDirAuthority,
15247       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
15248       user selectively replace the default directory authorities by type,
15249       rather than the all-or-nothing replacement that DirServer offers.
15250     - Tor can now be configured to read a GeoIP file from disk in one
15251       of two formats. This can be used by controllers to map IP addresses
15252       to countries. Eventually, it may support exit-by-country.
15253     - When possible, bridge relays remember which countries users
15254       are coming from, and report aggregate information in their
15255       extra-info documents, so that the bridge authorities can learn
15256       where Tor is blocked.
15257     - Bridge directory authorities now do reachability testing on the
15258       bridges they know. They provide router status summaries to the
15259       controller via "getinfo ns/purpose/bridge", and also dump summaries
15260       to a file periodically.
15261     - Stop fetching directory info so aggressively if your DirPort is
15262       on but your ORPort is off; stop fetching v2 dir info entirely.
15263       You can override these choices with the new FetchDirInfoEarly
15264       config option.
15266   o Minor bugfixes:
15267     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
15268       consensus documents when there are too many relays at a single
15269       IP address. Now clear it in v2 network status documents too, and
15270       also clear it in routerinfo_t when the relay is no longer listed
15271       in the relevant networkstatus document.
15272     - Don't crash if we get an unexpected value for the
15273       PublishServerDescriptor config option. Reported by Matt Edman;
15274       bugfix on 0.2.0.9-alpha.
15275     - Our new v2 hidden service descriptor format allows descriptors
15276       that have no introduction points. But Tor crashed when we tried
15277       to build a descriptor with no intro points (and it would have
15278       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
15279       by Karsten Loesing.
15280     - Fix building with dmalloc 5.5.2 with glibc.
15281     - Reject uploaded descriptors and extrainfo documents if they're
15282       huge. Otherwise we'll cache them all over the network and it'll
15283       clog everything up. Reported by Aljosha Judmayer.
15284     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
15285       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
15286     - When the DANGEROUS_VERSION controller status event told us we're
15287       running an obsolete version, it used the string "OLD" to describe
15288       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
15289       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
15290     - If we can't expand our list of entry guards (e.g. because we're
15291       using bridges or we have StrictEntryNodes set), don't mark relays
15292       down when they fail a directory request. Otherwise we're too quick
15293       to mark all our entry points down. Bugfix on 0.1.2.x.
15294     - Fix handling of hex nicknames when answering controller requests for
15295       networkstatus by name, or when deciding whether to warn about unknown
15296       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
15297     - Fix a couple of hard-to-trigger autoconf problems that could result
15298       in really weird results on platforms whose sys/types.h files define
15299       nonstandard integer types. Bugfix on 0.1.2.x.
15300     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
15301     - Don't crash on name lookup when we have no current consensus. Fixes
15302       bug 538; bugfix on 0.2.0.x.
15303     - Only Tors that want to mirror the v2 directory info should
15304       create the "cached-status" directory in their datadir. (All Tors
15305       used to create it.) Bugfix on 0.2.0.9-alpha.
15306     - Directory authorities should only automatically download Extra Info
15307       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
15309   o Minor features:
15310     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
15311       consumers. (We already do this on HUP.)
15312     - Authorities and caches fetch the v2 networkstatus documents
15313       less often, now that v3 is encouraged.
15314     - Add a new config option BridgeRelay that specifies you want to
15315       be a bridge relay. Right now the only difference is that it makes
15316       you answer begin_dir requests, and it makes you cache dir info,
15317       even if your DirPort isn't on.
15318     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
15319       ask about source, timestamp of arrival, purpose, etc. We need
15320       something like this to help Vidalia not do GeoIP lookups on bridge
15321       addresses.
15322     - Allow multiple HashedControlPassword config lines, to support
15323       multiple controller passwords.
15324     - Authorities now decide whether they're authoritative for a given
15325       router based on the router's purpose.
15326     - New config options AuthDirBadDir and AuthDirListBadDirs for
15327       authorities to mark certain relays as "bad directories" in the
15328       networkstatus documents. Also supports the "!baddir" directive in
15329       the approved-routers file.
15332 Changes in version 0.2.0.12-alpha - 2007-11-16
15333   This twelfth development snapshot fixes some more build problems as
15334   well as a few minor bugs.
15336   o Compile fixes:
15337     - Make it build on OpenBSD again. Patch from tup.
15338     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
15339       package-building for Red Hat, OS X, etc.
15341   o Minor bugfixes (on 0.1.2.x):
15342     - Changing the ExitPolicyRejectPrivate setting should cause us to
15343       rebuild our server descriptor.
15345   o Minor bugfixes (on 0.2.0.x):
15346     - When we're lacking a consensus, don't try to perform rendezvous
15347       operations. Reported by Karsten Loesing.
15348     - Fix a small memory leak whenever we decide against using a
15349       newly picked entry guard. Reported by Mike Perry.
15350     - When authorities detected more than two relays running on the same
15351       IP address, they were clearing all the status flags but forgetting
15352       to clear the "hsdir" flag. So clients were being told that a
15353       given relay was the right choice for a v2 hsdir lookup, yet they
15354       never had its descriptor because it was marked as 'not running'
15355       in the consensus.
15356     - If we're trying to fetch a bridge descriptor and there's no way
15357       the bridge authority could help us (for example, we don't know
15358       a digest, or there is no bridge authority), don't be so eager to
15359       fall back to asking the bridge authority.
15360     - If we're using bridges or have strictentrynodes set, and our
15361       chosen exit is in the same family as all our bridges/entry guards,
15362       then be flexible about families.
15364   o Minor features:
15365     - When we negotiate a v2 link-layer connection (not yet implemented),
15366       accept RELAY_EARLY cells and turn them into RELAY cells if we've
15367       negotiated a v1 connection for their next step. Initial code for
15368       proposal 110.
15371 Changes in version 0.2.0.11-alpha - 2007-11-12
15372   This eleventh development snapshot fixes some build problems with
15373   the previous snapshot. It also includes a more secure-by-default exit
15374   policy for relays, fixes an enormous memory leak for exit relays, and
15375   fixes another bug where servers were falling out of the directory list.
15377   o Security fixes:
15378     - Exit policies now reject connections that are addressed to a
15379       relay's public (external) IP address too, unless
15380       ExitPolicyRejectPrivate is turned off. We do this because too
15381       many relays are running nearby to services that trust them based
15382       on network address. Bugfix on 0.1.2.x.
15384   o Major bugfixes:
15385     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
15386       on every successful resolve. Reported by Mike Perry; bugfix
15387       on 0.1.2.x.
15388     - On authorities, never downgrade to old router descriptors simply
15389       because they're listed in the consensus. This created a catch-22
15390       where we wouldn't list a new descriptor because there was an
15391       old one in the consensus, and we couldn't get the new one in the
15392       consensus because we wouldn't list it. Possible fix for bug 548.
15393       Also, this might cause bug 543 to appear on authorities; if so,
15394       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
15396   o Packaging fixes on 0.2.0.10-alpha:
15397     - We were including instructions about what to do with the
15398       src/config/fallback-consensus file, but we weren't actually
15399       including it in the tarball. Disable all of that for now.
15401   o Minor features:
15402     - Allow people to say PreferTunnelledDirConns rather than
15403       PreferTunneledDirConns, for those alternate-spellers out there.
15405   o Minor bugfixes:
15406     - Don't reevaluate all the information from our consensus document
15407       just because we've downloaded a v2 networkstatus that we intend
15408       to cache. Fixes bug 545; bugfix on 0.2.0.x.
15411 Changes in version 0.2.0.10-alpha - 2007-11-10
15412   This tenth development snapshot adds a third v3 directory authority
15413   run by Mike Perry, adds most of Karsten Loesing's new hidden service
15414   descriptor format, fixes a bad crash bug and new bridge bugs introduced
15415   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
15416   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
15417   addresses many more minor issues.
15419   o New directory authorities:
15420     - Set up ides (run by Mike Perry) as the third v3 directory authority.
15422   o Major features:
15423     - Allow tunnelled directory connections to ask for an encrypted
15424       "begin_dir" connection or an anonymized "uses a full Tor circuit"
15425       connection independently. Now we can make anonymized begin_dir
15426       connections for (e.g.) more secure hidden service posting and
15427       fetching.
15428     - More progress on proposal 114: code from Karsten Loesing to
15429       implement new hidden service descriptor format.
15430     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
15431       accommodate the growing number of servers that use the default
15432       and are reaching it.
15433     - Directory authorities use a new formula for selecting which nodes
15434       to advertise as Guards: they must be in the top 7/8 in terms of
15435       how long we have known about them, and above the median of those
15436       nodes in terms of weighted fractional uptime.
15437     - Make "not enough dir info yet" warnings describe *why* Tor feels
15438       it doesn't have enough directory info yet.
15440   o Major bugfixes:
15441     - Stop servers from crashing if they set a Family option (or
15442       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
15443       by Fabian Keil.
15444     - Make bridge users work again -- the move to v3 directories in
15445       0.2.0.9-alpha had introduced a number of bugs that made bridges
15446       no longer work for clients.
15447     - When the clock jumps forward a lot, do not allow the bandwidth
15448       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
15450   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
15451     - When the consensus lists a router descriptor that we previously were
15452       mirroring, but that we considered non-canonical, reload the
15453       descriptor as canonical. This fixes bug 543 where Tor servers
15454       would start complaining after a few days that they don't have
15455       enough directory information to build a circuit.
15456     - Consider replacing the current consensus when certificates arrive
15457       that make the pending consensus valid. Previously, we were only
15458       considering replacement when the new certs _didn't_ help.
15459     - Fix an assert error on startup if we didn't already have the
15460       consensus and certs cached in our datadirectory: we were caching
15461       the consensus in consensus_waiting_for_certs but then free'ing it
15462       right after.
15463     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
15464       Request) if we need more v3 certs but we've already got pending
15465       requests for all of them.
15466     - Correctly back off from failing certificate downloads. Fixes
15467       bug 546.
15468     - Authorities don't vote on the Running flag if they have been running
15469       for less than 30 minutes themselves. Fixes bug 547, where a newly
15470       started authority would vote that everyone was down.
15472   o New requirements:
15473     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
15474       it, it had no AES, and it hasn't seen any security patches since
15475       2004.
15477   o Minor features:
15478     - Clients now hold circuitless TLS connections open for 1.5 times
15479       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
15480       rebuild a new circuit over them within that timeframe. Previously,
15481       they held them open only for KeepalivePeriod (5 minutes).
15482     - Use "If-Modified-Since" to avoid retrieving consensus
15483       networkstatuses that we already have.
15484     - When we have no consensus, check FallbackNetworkstatusFile (defaults
15485       to $PREFIX/share/tor/fallback-consensus) for a consensus. This way
15486       we start knowing some directory caches.
15487     - When we receive a consensus from the future, warn about skew.
15488     - Improve skew reporting: try to give the user a better log message
15489       about how skewed they are, and how much this matters.
15490     - When we have a certificate for an authority, believe that
15491       certificate's claims about the authority's IP address.
15492     - New --quiet command-line option to suppress the default console log.
15493       Good in combination with --hash-password.
15494     - Authorities send back an X-Descriptor-Not-New header in response to
15495       an accepted-but-discarded descriptor upload. Partially implements
15496       fix for bug 535.
15497     - Make the log message for "tls error. breaking." more useful.
15498     - Better log messages about certificate downloads, to attempt to
15499       track down the second incarnation of bug 546.
15501   o Minor features (bridges):
15502     - If bridge users set UpdateBridgesFromAuthority, but the digest
15503       they ask for is a 404 from the bridge authority, they now fall
15504       back to trying the bridge directly.
15505     - Bridges now use begin_dir to publish their server descriptor to
15506       the bridge authority, even when they haven't set TunnelDirConns.
15508   o Minor features (controller):
15509     - When reporting clock skew, and we know that the clock is _at least
15510       as skewed_ as some value, but we don't know the actual value,
15511       report the value as a "minimum skew."
15513   o Utilities:
15514     - Update linux-tor-prio.sh script to allow QoS based on the uid of
15515       the Tor process. Patch from Marco Bonetti with tweaks from Mike
15516       Perry.
15518   o Minor bugfixes:
15519     - Refuse to start if both ORPort and UseBridges are set. Bugfix
15520       on 0.2.0.x, suggested by Matt Edman.
15521     - Don't stop fetching descriptors when FetchUselessDescriptors is
15522       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
15523       reported by tup and ioerror.
15524     - Better log message on vote from unknown authority.
15525     - Don't log "Launching 0 request for 0 router" message.
15527   o Minor bugfixes (memory leaks):
15528     - Stop leaking memory every time we parse a v3 certificate. Bugfix
15529       on 0.2.0.1-alpha.
15530     - Stop leaking memory every time we load a v3 certificate. Bugfix
15531       on 0.2.0.1-alpha. Fixes bug 536.
15532     - Stop leaking a cached networkstatus on exit. Bugfix on
15533       0.2.0.3-alpha.
15534     - Stop leaking voter information every time we free a consensus.
15535       Bugfix on 0.2.0.3-alpha.
15536     - Stop leaking signed data every time we check a voter signature.
15537       Bugfix on 0.2.0.3-alpha.
15538     - Stop leaking a signature every time we fail to parse a consensus or
15539       a vote. Bugfix on 0.2.0.3-alpha.
15540     - Stop leaking v2_download_status_map on shutdown. Bugfix on
15541       0.2.0.9-alpha.
15542     - Stop leaking conn->nickname every time we make a connection to a
15543       Tor relay without knowing its expected identity digest (e.g. when
15544       using bridges). Bugfix on 0.2.0.3-alpha.
15546   - Minor bugfixes (portability):
15547     - Run correctly on platforms where rlim_t is larger than unsigned
15548       long, and/or where the real limit for number of open files is
15549       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
15550       particular, these may be needed for OS X 10.5.
15553 Changes in version 0.1.2.18 - 2007-10-28
15554   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
15555   hidden service introduction that were causing huge delays, and a big
15556   bug that was causing some servers to disappear from the network status
15557   lists for a few hours each day.
15559   o Major bugfixes (crashes):
15560     - If a connection is shut down abruptly because of something that
15561       happened inside connection_flushed_some(), do not call
15562       connection_finished_flushing(). Should fix bug 451:
15563       "connection_stop_writing: Assertion conn->write_event failed"
15564       Bugfix on 0.1.2.7-alpha.
15565     - Fix possible segfaults in functions called from
15566       rend_process_relay_cell().
15568   o Major bugfixes (hidden services):
15569     - Hidden services were choosing introduction points uniquely by
15570       hexdigest, but when constructing the hidden service descriptor
15571       they merely wrote the (potentially ambiguous) nickname.
15572     - Clients now use the v2 intro format for hidden service
15573       connections: they specify their chosen rendezvous point by identity
15574       digest rather than by (potentially ambiguous) nickname. These
15575       changes could speed up hidden service connections dramatically.
15577   o Major bugfixes (other):
15578     - Stop publishing a new server descriptor just because we get a
15579       HUP signal. This led (in a roundabout way) to some servers getting
15580       dropped from the networkstatus lists for a few hours each day.
15581     - When looking for a circuit to cannibalize, consider family as well
15582       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
15583       circuit cannibalization).
15584     - When a router wasn't listed in a new networkstatus, we were leaving
15585       the flags for that router alone -- meaning it remained Named,
15586       Running, etc -- even though absence from the networkstatus means
15587       that it shouldn't be considered to exist at all anymore. Now we
15588       clear all the flags for routers that fall out of the networkstatus
15589       consensus. Fixes bug 529.
15591   o Minor bugfixes:
15592     - Don't try to access (or alter) the state file when running
15593       --list-fingerprint or --verify-config or --hash-password. Resolves
15594       bug 499.
15595     - When generating information telling us how to extend to a given
15596       router, do not try to include the nickname if it is
15597       absent. Resolves bug 467.
15598     - Fix a user-triggerable segfault in expand_filename(). (There isn't
15599       a way to trigger this remotely.)
15600     - When sending a status event to the controller telling it that an
15601       OR address is reachable, set the port correctly. (Previously we
15602       were reporting the dir port.)
15603     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
15604       command. Bugfix on 0.1.2.17.
15605     - When loading bandwidth history, do not believe any information in
15606       the future. Fixes bug 434.
15607     - When loading entry guard information, do not believe any information
15608       in the future.
15609     - When we have our clock set far in the future and generate an
15610       onion key, then re-set our clock to be correct, we should not stop
15611       the onion key from getting rotated.
15612     - On some platforms, accept() can return a broken address. Detect
15613       this more quietly, and deal accordingly. Fixes bug 483.
15614     - It's not actually an error to find a non-pending entry in the DNS
15615       cache when canceling a pending resolve. Don't log unless stuff
15616       is fishy. Resolves bug 463.
15617     - Don't reset trusted dir server list when we set a configuration
15618       option. Patch from Robert Hogan.
15619     - Don't try to create the datadir when running --verify-config or
15620       --hash-password. Resolves bug 540.
15623 Changes in version 0.2.0.9-alpha - 2007-10-24
15624   This ninth development snapshot switches clients to the new v3 directory
15625   system; allows servers to be listed in the network status even when they
15626   have the same nickname as a registered server; and fixes many other
15627   bugs including a big one that was causing some servers to disappear
15628   from the network status lists for a few hours each day.
15630   o Major features (directory system):
15631     - Clients now download v3 consensus networkstatus documents instead
15632       of v2 networkstatus documents. Clients and caches now base their
15633       opinions about routers on these consensus documents. Clients only
15634       download router descriptors listed in the consensus.
15635     - Authorities now list servers who have the same nickname as
15636       a different named server, but list them with a new flag,
15637       "Unnamed". Now we can list servers that happen to pick the same
15638       nickname as a server that registered two years ago and then
15639       disappeared. Partially implements proposal 122.
15640     - If the consensus lists a router as "Unnamed", the name is assigned
15641       to a different router: do not identify the router by that name.
15642       Partially implements proposal 122.
15643     - Authorities can now come to a consensus on which method to use to
15644       compute the consensus. This gives us forward compatibility.
15646   o Major bugfixes:
15647     - Stop publishing a new server descriptor just because we HUP or
15648       when we find our DirPort to be reachable but won't actually publish
15649       it. New descriptors without any real changes are dropped by the
15650       authorities, and can screw up our "publish every 18 hours" schedule.
15651       Bugfix on 0.1.2.x.
15652     - When a router wasn't listed in a new networkstatus, we were leaving
15653       the flags for that router alone -- meaning it remained Named,
15654       Running, etc -- even though absence from the networkstatus means
15655       that it shouldn't be considered to exist at all anymore. Now we
15656       clear all the flags for routers that fall out of the networkstatus
15657       consensus. Fixes bug 529; bugfix on 0.1.2.x.
15658     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
15659       extrainfo documents and then discard them immediately for not
15660       matching the latest router. Bugfix on 0.2.0.1-alpha.
15662   o Minor features (v3 directory protocol):
15663     - Allow tor-gencert to generate a new certificate without replacing
15664       the signing key.
15665     - Allow certificates to include an address.
15666     - When we change our directory-cache settings, reschedule all voting
15667       and download operations.
15668     - Reattempt certificate downloads immediately on failure, as long as
15669       we haven't failed a threshold number of times yet.
15670     - Delay retrying consensus downloads while we're downloading
15671       certificates to verify the one we just got. Also, count getting a
15672       consensus that we already have (or one that isn't valid) as a failure,
15673       and count failing to get the certificates after 20 minutes as a
15674       failure.
15675     - Build circuits and download descriptors even if our consensus is a
15676       little expired. (This feature will go away once authorities are
15677       more reliable.)
15679   o Minor features (router descriptor cache):
15680     - If we find a cached-routers file that's been sitting around for more
15681       than 28 days unmodified, then most likely it's a leftover from
15682       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
15683       routers anyway.
15684     - When we (as a cache) download a descriptor because it was listed
15685       in a consensus, remember when the consensus was supposed to expire,
15686       and don't expire the descriptor until then.
15688   o Minor features (performance):
15689     - Call routerlist_remove_old_routers() much less often. This should
15690       speed startup, especially on directory caches.
15691     - Don't try to launch new descriptor downloads quite so often when we
15692       already have enough directory information to build circuits.
15693     - Base64 decoding was actually showing up on our profile when parsing
15694       the initial descriptor file; switch to an in-process all-at-once
15695       implementation that's about 3.5x times faster than calling out to
15696       OpenSSL.
15698   o Minor features (compilation):
15699     - Detect non-ASCII platforms (if any still exist) and refuse to
15700       build there: some of our code assumes that 'A' is 65 and so on.
15702   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
15703     - Make the "next period" votes into "current period" votes immediately
15704       after publishing the consensus; avoid a heisenbug that made them
15705       stick around indefinitely.
15706     - When we discard a vote as a duplicate, do not report this as
15707       an error.
15708     - Treat missing v3 keys or certificates as an error when running as a
15709       v3 directory authority.
15710     - When we're configured to be a v3 authority, but we're only listed
15711       as a non-v3 authority in our DirServer line for ourself, correct
15712       the listing.
15713     - If an authority doesn't have a qualified hostname, just put
15714       its address in the vote. This fixes the problem where we referred to
15715       "moria on moria:9031."
15716     - Distinguish between detached signatures for the wrong period, and
15717       detached signatures for a divergent vote.
15718     - Fix a small memory leak when computing a consensus.
15719     - When there's no concensus, we were forming a vote every 30
15720       minutes, but writing the "valid-after" line in our vote based
15721       on our configured V3AuthVotingInterval: so unless the intervals
15722       matched up, we immediately rejected our own vote because it didn't
15723       start at the voting interval that caused us to construct a vote.
15725   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
15726     - Delete unverified-consensus when the real consensus is set.
15727     - Consider retrying a consensus networkstatus fetch immediately
15728       after one fails: don't wait 60 seconds to notice.
15729     - When fetching a consensus as a cache, wait until a newer consensus
15730       should exist before trying to replace the current one.
15731     - Use a more forgiving schedule for retrying failed consensus
15732       downloads than for other types.
15734   o Minor bugfixes (other directory issues):
15735     - Correct the implementation of "download votes by digest." Bugfix on
15736       0.2.0.8-alpha.
15737     - Authorities no longer send back "400 you're unreachable please fix
15738       it" errors to Tor servers that aren't online all the time. We're
15739       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
15741   o Minor bugfixes (controller):
15742     - Don't reset trusted dir server list when we set a configuration
15743       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
15744     - Respond to INT and TERM SIGNAL commands before we execute the
15745       signal, in case the signal shuts us down. We had a patch in
15746       0.1.2.1-alpha that tried to do this by queueing the response on
15747       the connection's buffer before shutting down, but that really
15748       isn't the same thing at all. Bug located by Matt Edman.
15750   o Minor bugfixes (misc):
15751     - Correctly check for bad options to the "PublishServerDescriptor"
15752       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
15753     - Stop leaking memory on failing case of base32_decode, and make
15754       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
15755     - Don't try to download extrainfo documents when we're trying to
15756       fetch enough directory info to build a circuit: having enough
15757       info should get priority. Bugfix on 0.2.0.x.
15758     - Don't complain that "your server has not managed to confirm that its
15759       ports are reachable" if we haven't been able to build any circuits
15760       yet. Bug found by spending four hours without a v3 consensus. Bugfix
15761       on 0.1.2.x.
15762     - Detect the reason for failing to mmap a descriptor file we just
15763       wrote, and give a more useful log message. Fixes bug 533. Bugfix
15764       on 0.1.2.x.
15766   o Code simplifications and refactoring:
15767     - Remove support for the old bw_accounting file: we've been storing
15768       bandwidth accounting information in the state file since
15769       0.1.2.5-alpha. This may result in bandwidth accounting errors
15770       if you try to upgrade from 0.1.1.x or earlier, or if you try to
15771       downgrade to 0.1.1.x or earlier.
15772     - New convenience code to locate a file within the DataDirectory.
15773     - Move non-authority functionality out of dirvote.c.
15774     - Refactor the arguments for router_pick_{directory_|trusteddir}server
15775       so that they all take the same named flags.
15777   o Utilities
15778     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
15779       Unix users an easy way to script their Tor process (e.g. by
15780       adjusting bandwidth based on the time of the day).
15783 Changes in version 0.2.0.8-alpha - 2007-10-12
15784   This eighth development snapshot fixes a crash bug that's been bothering
15785   us since February 2007, lets bridge authorities store a list of bridge
15786   descriptors they've seen, gets v3 directory voting closer to working,
15787   starts caching v3 directory consensus documents on directory mirrors,
15788   and fixes a variety of smaller issues including some minor memory leaks.
15790   o Major features (router descriptor cache):
15791     - Store routers in a file called cached-descriptors instead of in
15792       cached-routers. Initialize cached-descriptors from cached-routers
15793       if the old format is around. The new format allows us to store
15794       annotations along with descriptors.
15795     - Use annotations to record the time we received each descriptor, its
15796       source, and its purpose.
15797     - Disable the SETROUTERPURPOSE controller command: it is now
15798       obsolete.
15799     - Controllers should now specify cache=no or cache=yes when using
15800       the +POSTDESCRIPTOR command.
15801     - Bridge authorities now write bridge descriptors to disk, meaning
15802       we can export them to other programs and begin distributing them
15803       to blocked users.
15805   o Major features (directory authorities):
15806     - When a v3 authority is missing votes or signatures, it now tries
15807       to fetch them.
15808     - Directory authorities track weighted fractional uptime as well as
15809       weighted mean-time-between failures. WFU is suitable for deciding
15810       whether a node is "usually up", while MTBF is suitable for deciding
15811       whether a node is "likely to stay up." We need both, because
15812       "usually up" is a good requirement for guards, while "likely to
15813       stay up" is a good requirement for long-lived connections.
15815   o Major features (v3 directory system):
15816     - Caches now download v3 network status documents as needed,
15817       and download the descriptors listed in them.
15818     - All hosts now attempt to download and keep fresh v3 authority
15819       certificates, and re-attempt after failures.
15820     - More internal-consistency checks for vote parsing.
15822   o Major bugfixes (crashes):
15823     - If a connection is shut down abruptly because of something that
15824       happened inside connection_flushed_some(), do not call
15825       connection_finished_flushing(). Should fix bug 451. Bugfix on
15826       0.1.2.7-alpha.
15828   o Major bugfixes (performance):
15829     - Fix really bad O(n^2) performance when parsing a long list of
15830       routers: Instead of searching the entire list for an "extra-info "
15831       string which usually wasn't there, once for every routerinfo
15832       we read, just scan lines forward until we find one we like.
15833       Bugfix on 0.2.0.1.
15834     - When we add data to a write buffer in response to the data on that
15835       write buffer getting low because of a flush, do not consider the
15836       newly added data as a candidate for immediate flushing, but rather
15837       make it wait until the next round of writing. Otherwise, we flush
15838       and refill recursively, and a single greedy TLS connection can
15839       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
15841   o Minor features (v3 authority system):
15842     - Add more ways for tools to download the votes that lead to the
15843       current consensus.
15844     - Send a 503 when low on bandwidth and a vote, consensus, or
15845       certificate is requested.
15846     - If-modified-since is now implemented properly for all kinds of
15847       certificate requests.
15849   o Minor bugfixes (network statuses):
15850     - Tweak the implementation of proposal 109 slightly: allow at most
15851       two Tor servers on the same IP address, except if it's the location
15852       of a directory authority, in which case allow five. Bugfix on
15853       0.2.0.3-alpha.
15855   o Minor bugfixes (controller):
15856     - When sending a status event to the controller telling it that an
15857       OR address is reachable, set the port correctly. (Previously we
15858       were reporting the dir port.) Bugfix on 0.1.2.x.
15860   o Minor bugfixes (v3 directory system):
15861     - Fix logic to look up a cert by its signing key digest. Bugfix on
15862       0.2.0.7-alpha.
15863     - Only change the reply to a vote to "OK" if it's not already
15864       set. This gets rid of annoying "400 OK" log messages, which may
15865       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
15866     - When we get a valid consensus, recompute the voting schedule.
15867     - Base the valid-after time of a vote on the consensus voting
15868       schedule, not on our preferred schedule.
15869     - Make the return values and messages from signature uploads and
15870       downloads more sensible.
15871     - Fix a memory leak when serving votes and consensus documents, and
15872       another when serving certificates.
15874   o Minor bugfixes (performance):
15875     - Use a slightly simpler string hashing algorithm (copying Python's
15876       instead of Java's) and optimize our digest hashing algorithm to take
15877       advantage of 64-bit platforms and to remove some possibly-costly
15878       voodoo.
15879     - Fix a minor memory leak whenever we parse guards from our state
15880       file. Bugfix on 0.2.0.7-alpha.
15881     - Fix a minor memory leak whenever we write out a file. Bugfix on
15882       0.2.0.7-alpha.
15883     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
15884       command. Bugfix on 0.2.0.5-alpha.
15886   o Minor bugfixes (portability):
15887     - On some platforms, accept() can return a broken address. Detect
15888       this more quietly, and deal accordingly. Fixes bug 483.
15889     - Stop calling tor_strlower() on uninitialized memory in some cases.
15890       Bugfix in 0.2.0.7-alpha.
15892   o Minor bugfixes (usability):
15893     - Treat some 403 responses from directory servers as INFO rather than
15894       WARN-severity events.
15895     - It's not actually an error to find a non-pending entry in the DNS
15896       cache when canceling a pending resolve. Don't log unless stuff is
15897       fishy. Resolves bug 463.
15899   o Minor bugfixes (anonymity):
15900     - Never report that we've used more bandwidth than we're willing to
15901       relay: it leaks how much non-relay traffic we're using. Resolves
15902       bug 516.
15903     - When looking for a circuit to cannibalize, consider family as well
15904       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
15905       circuit cannibalization).
15907   o Code simplifications and refactoring:
15908     - Make a bunch of functions static. Remove some dead code.
15909     - Pull out about a third of the really big routerlist.c; put it in a
15910       new module, networkstatus.c.
15911     - Merge the extra fields in local_routerstatus_t back into
15912       routerstatus_t: we used to need one routerstatus_t for each
15913       authority's opinion, plus a local_routerstatus_t for the locally
15914       computed consensus opinion. To save space, we put the locally
15915       modified fields into local_routerstatus_t, and only the common
15916       stuff into routerstatus_t. But once v3 directories are in use,
15917       clients and caches will no longer need to hold authority opinions;
15918       thus, the rationale for keeping the types separate is now gone.
15919     - Make the code used to reschedule and reattempt downloads more
15920       uniform.
15921     - Turn all 'Are we a directory server/mirror?' logic into a call to
15922       dirserver_mode().
15923     - Remove the code to generate the oldest (v1) directory format.
15924       The code has been disabled since 0.2.0.5-alpha.
15927 Changes in version 0.2.0.7-alpha - 2007-09-21
15928   This seventh development snapshot makes bridges work again, makes bridge
15929   authorities work for the first time, fixes two huge performance flaws
15930   in hidden services, and fixes a variety of minor issues.
15932   o New directory authorities:
15933     - Set up moria1 and tor26 as the first v3 directory authorities. See
15934       doc/spec/dir-spec.txt for details on the new directory design.
15936   o Major bugfixes (crashes):
15937     - Fix possible segfaults in functions called from
15938       rend_process_relay_cell(). Bugfix on 0.1.2.x.
15940   o Major bugfixes (bridges):
15941     - Fix a bug that made servers send a "404 Not found" in response to
15942       attempts to fetch their server descriptor. This caused Tor servers
15943       to take many minutes to establish reachability for their DirPort,
15944       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
15945     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
15946       users configure that and specify a bridge with an identity
15947       fingerprint, now they will lookup the bridge descriptor at the
15948       default bridge authority via a one-hop tunnel, but once circuits
15949       are established they will switch to a three-hop tunnel for later
15950       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
15952   o Major bugfixes (hidden services):
15953     - Hidden services were choosing introduction points uniquely by
15954       hexdigest, but when constructing the hidden service descriptor
15955       they merely wrote the (potentially ambiguous) nickname.
15956     - Clients now use the v2 intro format for hidden service
15957       connections: they specify their chosen rendezvous point by identity
15958       digest rather than by (potentially ambiguous) nickname. Both
15959       are bugfixes on 0.1.2.x, and they could speed up hidden service
15960       connections dramatically. Thanks to Karsten Loesing.
15962   o Minor features (security):
15963     - As a client, do not believe any server that tells us that an
15964       address maps to an internal address space.
15965     - Make it possible to enable HashedControlPassword and
15966       CookieAuthentication at the same time.
15968   o Minor features (guard nodes):
15969     - Tag every guard node in our state file with the version that
15970       we believe added it, or with our own version if we add it. This way,
15971       if a user temporarily runs an old version of Tor and then switches
15972       back to a new one, she doesn't automatically lose her guards.
15974   o Minor features (speed):
15975     - When implementing AES counter mode, update only the portions of the
15976       counter buffer that need to change, and don't keep separate
15977       network-order and host-order counters when they are the same (i.e.,
15978       on big-endian hosts.)
15980   o Minor features (controller):
15981     - Accept LF instead of CRLF on controller, since some software has a
15982       hard time generating real Internet newlines.
15983     - Add GETINFO values for the server status events
15984       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
15985       Robert Hogan.
15987   o Removed features:
15988      - Routers no longer include bandwidth-history lines in their
15989        descriptors; this information is already available in extra-info
15990        documents, and including it in router descriptors took up 60%
15991        (!) of compressed router descriptor downloads. Completes
15992        implementation of proposal 104.
15993      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
15994        and TorControl.py, as they use the old v0 controller protocol,
15995        and are obsoleted by TorFlow anyway.
15996      - Drop support for v1 rendezvous descriptors, since we never used
15997        them anyway, and the code has probably rotted by now. Based on
15998        patch from Karsten Loesing.
15999      - On OSX, stop warning the user that kqueue support in libevent is
16000       "experimental", since it seems to have worked fine for ages.
16002   o Minor bugfixes:
16003     - When generating information telling us how to extend to a given
16004       router, do not try to include the nickname if it is absent. Fixes
16005       bug 467. Bugfix on 0.2.0.3-alpha.
16006     - Fix a user-triggerable (but not remotely-triggerable) segfault
16007       in expand_filename(). Bugfix on 0.1.2.x.
16008     - Fix a memory leak when freeing incomplete requests from DNSPort.
16009       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
16010     - Don't try to access (or alter) the state file when running
16011       --list-fingerprint or --verify-config or --hash-password. (Resolves
16012       bug 499.) Bugfix on 0.1.2.x.
16013     - Servers used to decline to publish their DirPort if their
16014       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
16015       were below a threshold. Now they only look at BandwidthRate and
16016       RelayBandwidthRate. Bugfix on 0.1.2.x.
16017     - Remove an optimization in the AES counter-mode code that assumed
16018       that the counter never exceeded 2^68. When the counter can be set
16019       arbitrarily as an IV (as it is by Karsten's new hidden services
16020       code), this assumption no longer holds. Bugfix on 0.1.2.x.
16021     - Resume listing "AUTHORITY" flag for authorities in network status.
16022       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
16024   o Code simplifications and refactoring:
16025     - Revamp file-writing logic so we don't need to have the entire
16026       contents of a file in memory at once before we write to disk. Tor,
16027       meet stdio.
16028     - Turn "descriptor store" into a full-fledged type.
16029     - Move all NT services code into a separate source file.
16030     - Unify all code that computes medians, percentile elements, etc.
16031     - Get rid of a needless malloc when parsing address policies.
16034 Changes in version 0.1.2.17 - 2007-08-30
16035   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
16036   X bundles. Vidalia 0.0.14 makes authentication required for the
16037   ControlPort in the default configuration, which addresses important
16038   security risks. Everybody who uses Vidalia (or another controller)
16039   should upgrade.
16041   In addition, this Tor update fixes major load balancing problems with
16042   path selection, which should speed things up a lot once many people
16043   have upgraded.
16045   o Major bugfixes (security):
16046     - We removed support for the old (v0) control protocol. It has been
16047       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
16048       become more of a headache than it's worth.
16050   o Major bugfixes (load balancing):
16051     - When choosing nodes for non-guard positions, weight guards
16052       proportionally less, since they already have enough load. Patch
16053       from Mike Perry.
16054     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
16055       will allow fast Tor servers to get more attention.
16056     - When we're upgrading from an old Tor version, forget our current
16057       guards and pick new ones according to the new weightings. These
16058       three load balancing patches could raise effective network capacity
16059       by a factor of four. Thanks to Mike Perry for measurements.
16061   o Major bugfixes (stream expiration):
16062     - Expire not-yet-successful application streams in all cases if
16063       they've been around longer than SocksTimeout. Right now there are
16064       some cases where the stream will live forever, demanding a new
16065       circuit every 15 seconds. Fixes bug 454; reported by lodger.
16067   o Minor features (controller):
16068     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
16069       is valid before any authentication has been received. It tells
16070       a controller what kind of authentication is expected, and what
16071       protocol is spoken. Implements proposal 119.
16073   o Minor bugfixes (performance):
16074     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
16075       greatly speeding up loading cached-routers from disk on startup.
16076     - Disable sentinel-based debugging for buffer code: we squashed all
16077       the bugs that this was supposed to detect a long time ago, and now
16078       its only effect is to change our buffer sizes from nice powers of
16079       two (which platform mallocs tend to like) to values slightly over
16080       powers of two (which make some platform mallocs sad).
16082   o Minor bugfixes (misc):
16083     - If exit bandwidth ever exceeds one third of total bandwidth, then
16084       use the correct formula to weight exit nodes when choosing paths.
16085       Based on patch from Mike Perry.
16086     - Choose perfectly fairly among routers when choosing by bandwidth and
16087       weighting by fraction of bandwidth provided by exits. Previously, we
16088       would choose with only approximate fairness, and correct ourselves
16089       if we ran off the end of the list.
16090     - If we require CookieAuthentication but we fail to write the
16091       cookie file, we would warn but not exit, and end up in a state
16092       where no controller could authenticate. Now we exit.
16093     - If we require CookieAuthentication, stop generating a new cookie
16094       every time we change any piece of our config.
16095     - Refuse to start with certain directory authority keys, and
16096       encourage people using them to stop.
16097     - Terminate multi-line control events properly. Original patch
16098       from tup.
16099     - Fix a minor memory leak when we fail to find enough suitable
16100       servers to choose a circuit.
16101     - Stop leaking part of the descriptor when we run into a particularly
16102       unparseable piece of it.
16105 Changes in version 0.2.0.6-alpha - 2007-08-26
16106   This sixth development snapshot features a new Vidalia version in the
16107   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
16108   the ControlPort in the default configuration, which addresses important
16109   security risks.
16111   In addition, this snapshot fixes major load balancing problems
16112   with path selection, which should speed things up a lot once many
16113   people have upgraded. The directory authorities also use a new
16114   mean-time-between-failure approach to tracking which servers are stable,
16115   rather than just looking at the most recent uptime.
16117   o New directory authorities:
16118     - Set up Tonga as the default bridge directory authority.
16120   o Major features:
16121     - Directory authorities now track servers by weighted
16122       mean-times-between-failures. When we have 4 or more days of data,
16123       use measured MTBF rather than declared uptime to decide whether
16124       to call a router Stable. Implements proposal 108.
16126   o Major bugfixes (load balancing):
16127     - When choosing nodes for non-guard positions, weight guards
16128       proportionally less, since they already have enough load. Patch
16129       from Mike Perry.
16130     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
16131       will allow fast Tor servers to get more attention.
16132     - When we're upgrading from an old Tor version, forget our current
16133       guards and pick new ones according to the new weightings. These
16134       three load balancing patches could raise effective network capacity
16135       by a factor of four. Thanks to Mike Perry for measurements.
16137   o Major bugfixes (descriptor parsing):
16138     - Handle unexpected whitespace better in malformed descriptors. Bug
16139       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
16141   o Minor features:
16142     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
16143       GETINFO for Torstat to use until it can switch to using extrainfos.
16144     - Optionally (if built with -DEXPORTMALLINFO) export the output
16145       of mallinfo via http, as tor/mallinfo.txt. Only accessible
16146       from localhost.
16148   o Minor bugfixes:
16149     - Do not intermix bridge routers with controller-added
16150       routers. (Bugfix on 0.2.0.x)
16151     - Do not fail with an assert when accept() returns an unexpected
16152       address family. Addresses but does not wholly fix bug 483. (Bugfix
16153       on 0.2.0.x)
16154     - Let directory authorities startup even when they can't generate
16155       a descriptor immediately, e.g. because they don't know their
16156       address.
16157     - Stop putting the authentication cookie in a file called "0"
16158       in your working directory if you don't specify anything for the
16159       new CookieAuthFile option. Reported by Matt Edman.
16160     - Make it possible to read the PROTOCOLINFO response in a way that
16161       conforms to our control-spec. Reported by Matt Edman.
16162     - Fix a minor memory leak when we fail to find enough suitable
16163       servers to choose a circuit. Bugfix on 0.1.2.x.
16164     - Stop leaking part of the descriptor when we run into a particularly
16165       unparseable piece of it. Bugfix on 0.1.2.x.
16166     - Unmap the extrainfo cache file on exit.
16169 Changes in version 0.2.0.5-alpha - 2007-08-19
16170   This fifth development snapshot fixes compilation on Windows again;
16171   fixes an obnoxious client-side bug that slowed things down and put
16172   extra load on the network; gets us closer to using the v3 directory
16173   voting scheme; makes it easier for Tor controllers to use cookie-based
16174   authentication; and fixes a variety of other bugs.
16176   o Removed features:
16177     - Version 1 directories are no longer generated in full. Instead,
16178       authorities generate and serve "stub" v1 directories that list
16179       no servers. This will stop Tor versions 0.1.0.x and earlier from
16180       working, but (for security reasons) nobody should be running those
16181       versions anyway.
16183   o Major bugfixes (compilation, 0.2.0.x):
16184     - Try to fix Win32 compilation again: improve checking for IPv6 types.
16185     - Try to fix MSVC compilation: build correctly on platforms that do
16186       not define s6_addr16 or s6_addr32.
16187     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
16188       Zhou.
16190   o Major bugfixes (stream expiration):
16191     - Expire not-yet-successful application streams in all cases if
16192       they've been around longer than SocksTimeout. Right now there are
16193       some cases where the stream will live forever, demanding a new
16194       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
16195       reported by lodger.
16197   o Minor features (directory servers):
16198     - When somebody requests a list of statuses or servers, and we have
16199       none of those, return a 404 rather than an empty 200.
16201   o Minor features (directory voting):
16202     - Store v3 consensus status consensuses on disk, and reload them
16203       on startup.
16205   o Minor features (security):
16206     - Warn about unsafe ControlPort configurations.
16207     - Refuse to start with certain directory authority keys, and
16208       encourage people using them to stop.
16210   o Minor features (controller):
16211     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
16212       is valid before any authentication has been received. It tells
16213       a controller what kind of authentication is expected, and what
16214       protocol is spoken. Implements proposal 119.
16215     - New config option CookieAuthFile to choose a new location for the
16216       cookie authentication file, and config option
16217       CookieAuthFileGroupReadable to make it group-readable.
16219   o Minor features (unit testing):
16220     - Add command-line arguments to unit-test executable so that we can
16221       invoke any chosen test from the command line rather than having
16222       to run the whole test suite at once; and so that we can turn on
16223       logging for the unit tests.
16225   o Minor bugfixes (on 0.1.2.x):
16226     - If we require CookieAuthentication but we fail to write the
16227       cookie file, we would warn but not exit, and end up in a state
16228       where no controller could authenticate. Now we exit.
16229     - If we require CookieAuthentication, stop generating a new cookie
16230       every time we change any piece of our config.
16231     - When loading bandwidth history, do not believe any information in
16232       the future. Fixes bug 434.
16233     - When loading entry guard information, do not believe any information
16234       in the future.
16235     - When we have our clock set far in the future and generate an
16236       onion key, then re-set our clock to be correct, we should not stop
16237       the onion key from getting rotated.
16238     - Clean up torrc sample config file.
16239     - Do not automatically run configure from autogen.sh. This
16240       non-standard behavior tended to annoy people who have built other
16241       programs.
16243   o Minor bugfixes (on 0.2.0.x):
16244     - Fix a bug with AutomapHostsOnResolve that would always cause
16245       the second request to fail. Bug reported by Kate. Bugfix on
16246       0.2.0.3-alpha.
16247     - Fix a bug in ADDRMAP controller replies that would sometimes
16248       try to print a NULL. Patch from tup.
16249     - Read v3 directory authority keys from the right location.
16250     - Numerous bugfixes to directory voting code.
16253 Changes in version 0.1.2.16 - 2007-08-01
16254   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
16255   remote attacker in certain situations to rewrite the user's torrc
16256   configuration file. This can completely compromise anonymity of users
16257   in most configurations, including those running the Vidalia bundles,
16258   TorK, etc. Or worse.
16260   o Major security fixes:
16261     - Close immediately after missing authentication on control port;
16262       do not allow multiple authentication attempts.
16265 Changes in version 0.2.0.4-alpha - 2007-08-01
16266   This fourth development snapshot fixes a critical security vulnerability
16267   for most users, specifically those running Vidalia, TorK, etc. Everybody
16268   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
16270   o Major security fixes:
16271     - Close immediately after missing authentication on control port;
16272       do not allow multiple authentication attempts.
16274   o Major bugfixes (compilation):
16275     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
16276       defined there.
16278   o Minor features (performance):
16279     - Be even more aggressive about releasing RAM from small
16280       empty buffers. Thanks to our free-list code, this shouldn't be too
16281       performance-intensive.
16282     - Disable sentinel-based debugging for buffer code: we squashed all
16283       the bugs that this was supposed to detect a long time ago, and
16284       now its only effect is to change our buffer sizes from nice
16285       powers of two (which platform mallocs tend to like) to values
16286       slightly over powers of two (which make some platform mallocs sad).
16287     - Log malloc statistics from mallinfo() on platforms where it
16288       exists.
16291 Changes in version 0.2.0.3-alpha - 2007-07-29
16292   This third development snapshot introduces new experimental
16293   blocking-resistance features and a preliminary version of the v3
16294   directory voting design, and includes many other smaller features
16295   and bugfixes.
16297   o Major features:
16298     - The first pieces of our "bridge" design for blocking-resistance
16299       are implemented. People can run bridge directory authorities;
16300       people can run bridges; and people can configure their Tor clients
16301       with a set of bridges to use as the first hop into the Tor network.
16302       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
16303       details.
16304     - Create listener connections before we setuid to the configured
16305       User and Group. Now non-Windows users can choose port values
16306       under 1024, start Tor as root, and have Tor bind those ports
16307       before it changes to another UID. (Windows users could already
16308       pick these ports.)
16309     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
16310       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
16311       on "vserver" accounts. (Patch from coderman.)
16312     - Be even more aggressive about separating local traffic from relayed
16313       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
16315   o Major features (experimental):
16316     - First cut of code for "v3 dir voting": directory authorities will
16317       vote on a common network status document rather than each publishing
16318       their own opinion. This code needs more testing and more corner-case
16319       handling before it's ready for use.
16321   o Security fixes:
16322     - Directory authorities now call routers Fast if their bandwidth is
16323       at least 100KB/s, and consider their bandwidth adequate to be a
16324       Guard if it is at least 250KB/s, no matter the medians. This fix
16325       complements proposal 107. [Bugfix on 0.1.2.x]
16326     - Directory authorities now never mark more than 3 servers per IP as
16327       Valid and Running. (Implements proposal 109, by Kevin Bauer and
16328       Damon McCoy.)
16329     - Minor change to organizationName and commonName generation
16330       procedures in TLS certificates during Tor handshakes, to invalidate
16331       some earlier censorware approaches. This is not a long-term
16332       solution, but applying it will give us a bit of time to look into
16333       the epidemiology of countermeasures as they spread.
16335   o Major bugfixes (directory):
16336     - Rewrite directory tokenization code to never run off the end of
16337       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
16339   o Minor features (controller):
16340     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
16341       match requests to applications. (Patch from Robert Hogan.)
16342     - Report address and port correctly on connections to DNSPort. (Patch
16343       from Robert Hogan.)
16344     - Add a RESOLVE command to launch hostname lookups. (Original patch
16345       from Robert Hogan.)
16346     - Add GETINFO status/enough-dir-info to let controllers tell whether
16347       Tor has downloaded sufficient directory information. (Patch
16348       from Tup.)
16349     - You can now use the ControlSocket option to tell Tor to listen for
16350       controller connections on Unix domain sockets on systems that
16351       support them. (Patch from Peter Palfrader.)
16352     - STREAM NEW events are generated for DNSPort requests and for
16353       tunneled directory connections. (Patch from Robert Hogan.)
16354     - New "GETINFO address-mappings/*" command to get address mappings
16355       with expiry information. "addr-mappings/*" is now deprecated.
16356       (Patch from Tup.)
16358   o Minor features (misc):
16359     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
16360       from croup.)
16361     - The tor-gencert tool for v3 directory authorities now creates all
16362       files as readable to the file creator only, and write-protects
16363       the authority identity key.
16364     - When dumping memory usage, list bytes used in buffer memory
16365       free-lists.
16366     - When running with dmalloc, dump more stats on hup and on exit.
16367     - Directory authorities now fail quickly and (relatively) harmlessly
16368       if they generate a network status document that is somehow
16369       malformed.
16371   o Traffic load balancing improvements:
16372     - If exit bandwidth ever exceeds one third of total bandwidth, then
16373       use the correct formula to weight exit nodes when choosing paths.
16374       (Based on patch from Mike Perry.)
16375     - Choose perfectly fairly among routers when choosing by bandwidth and
16376       weighting by fraction of bandwidth provided by exits. Previously, we
16377       would choose with only approximate fairness, and correct ourselves
16378       if we ran off the end of the list. [Bugfix on 0.1.2.x]
16380   o Performance improvements:
16381     - Be more aggressive with freeing buffer RAM or putting it on the
16382       memory free lists.
16383     - Use Critical Sections rather than Mutexes for synchronizing threads
16384       on win32; Mutexes are heavier-weight, and designed for synchronizing
16385       between processes.
16387   o Deprecated and removed features:
16388     - RedirectExits is now deprecated.
16389     - Stop allowing address masks that do not correspond to bit prefixes.
16390       We have warned about these for a really long time; now it's time
16391       to reject them. (Patch from croup.)
16393   o Minor bugfixes (directory):
16394     - Fix another crash bug related to extra-info caching. (Bug found by
16395       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
16396     - Directories no longer return a "304 not modified" when they don't
16397       have the networkstatus the client asked for. Also fix a memory
16398       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
16399     - We had accidentally labelled 0.1.2.x directory servers as not
16400       suitable for begin_dir requests, and had labelled no directory
16401       servers as suitable for uploading extra-info documents. [Bugfix
16402       on 0.2.0.1-alpha]
16404   o Minor bugfixes (dns):
16405     - Fix a crash when DNSPort is set more than once. (Patch from Robert
16406       Hogan.) [Bugfix on 0.2.0.2-alpha]
16407     - Add DNSPort connections to the global connection list, so that we
16408       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
16409       on 0.2.0.2-alpha]
16410     - Fix a dangling reference that could lead to a crash when DNSPort is
16411       changed or closed (Patch from Robert Hogan.) [Bugfix on
16412       0.2.0.2-alpha]
16414   o Minor bugfixes (controller):
16415     - Provide DNS expiry times in GMT, not in local time. For backward
16416       compatibility, ADDRMAP events only provide GMT expiry in an extended
16417       field. "GETINFO address-mappings" always does the right thing.
16418     - Use CRLF line endings properly in NS events.
16419     - Terminate multi-line control events properly. (Original patch
16420       from tup.) [Bugfix on 0.1.2.x-alpha]
16421     - Do not include spaces in SOURCE_ADDR fields in STREAM
16422       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
16425 Changes in version 0.1.2.15 - 2007-07-17
16426   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
16427   problems, fixes compilation on BSD, and fixes a variety of other
16428   bugs. Everybody should upgrade.
16430   o Major bugfixes (compilation):
16431     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
16433   o Major bugfixes (crashes):
16434     - Try even harder not to dereference the first character after
16435       an mmap(). Reported by lodger.
16436     - Fix a crash bug in directory authorities when we re-number the
16437       routerlist while inserting a new router.
16438     - When the cached-routers file is an even multiple of the page size,
16439       don't run off the end and crash. (Fixes bug 455; based on idea
16440       from croup.)
16441     - Fix eventdns.c behavior on Solaris: It is critical to include
16442       orconfig.h _before_ sys/types.h, so that we can get the expected
16443       definition of _FILE_OFFSET_BITS.
16445   o Major bugfixes (security):
16446     - Fix a possible buffer overrun when using BSD natd support. Bug
16447       found by croup.
16448     - When sending destroy cells from a circuit's origin, don't include
16449       the reason for tearing down the circuit. The spec says we didn't,
16450       and now we actually don't. Reported by lodger.
16451     - Keep streamids from different exits on a circuit separate. This
16452       bug may have allowed other routers on a given circuit to inject
16453       cells into streams. Reported by lodger; fixes bug 446.
16454     - If there's a never-before-connected-to guard node in our list,
16455       never choose any guards past it. This way we don't expand our
16456       guard list unless we need to.
16458   o Minor bugfixes (guard nodes):
16459     - Weight guard selection by bandwidth, so that low-bandwidth nodes
16460       don't get overused as guards.
16462   o Minor bugfixes (directory):
16463     - Correctly count the number of authorities that recommend each
16464       version. Previously, we were under-counting by 1.
16465     - Fix a potential crash bug when we load many server descriptors at
16466       once and some of them make others of them obsolete. Fixes bug 458.
16468   o Minor bugfixes (hidden services):
16469     - Stop tearing down the whole circuit when the user asks for a
16470       connection to a port that the hidden service didn't configure.
16471       Resolves bug 444.
16473   o Minor bugfixes (misc):
16474     - On Windows, we were preventing other processes from reading
16475       cached-routers while Tor was running. Reported by janbar.
16476     - Fix a possible (but very unlikely) bug in picking routers by
16477       bandwidth. Add a log message to confirm that it is in fact
16478       unlikely. Patch from lodger.
16479     - Backport a couple of memory leak fixes.
16480     - Backport miscellaneous cosmetic bugfixes.
16483 Changes in version 0.2.0.2-alpha - 2007-06-02
16484   o Major bugfixes on 0.2.0.1-alpha:
16485     - Fix an assertion failure related to servers without extra-info digests.
16486       Resolves bugs 441 and 442.
16488   o Minor features (directory):
16489     - Support "If-Modified-Since" when answering HTTP requests for
16490       directories, running-routers documents, and network-status documents.
16491       (There's no need to support it for router descriptors, since those
16492       are downloaded by descriptor digest.)
16494   o Minor build issues:
16495     - Clear up some MIPSPro compiler warnings.
16496     - When building from a tarball on a machine that happens to have SVK
16497       installed, report the micro-revision as whatever version existed
16498       in the tarball, not as "x".
16501 Changes in version 0.2.0.1-alpha - 2007-06-01
16502   This early development snapshot provides new features for people running
16503   Tor as both a client and a server (check out the new RelayBandwidth
16504   config options); lets Tor run as a DNS proxy; and generally moves us
16505   forward on a lot of fronts.
16507   o Major features, server usability:
16508     - New config options RelayBandwidthRate and RelayBandwidthBurst:
16509       a separate set of token buckets for relayed traffic. Right now
16510       relayed traffic is defined as answers to directory requests, and
16511       OR connections that don't have any local circuits on them.
16513   o Major features, client usability:
16514     - A client-side DNS proxy feature to replace the need for
16515       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
16516       for DNS requests on port 9999, use the Tor network to resolve them
16517       anonymously, and send the reply back like a regular DNS server.
16518       The code still only implements a subset of DNS.
16519     - Make PreferTunneledDirConns and TunnelDirConns work even when
16520       we have no cached directory info. This means Tor clients can now
16521       do all of their connections protected by TLS.
16523   o Major features, performance and efficiency:
16524     - Directory authorities accept and serve "extra info" documents for
16525       routers. These documents contain fields from router descriptors
16526       that aren't usually needed, and that use a lot of excess
16527       bandwidth. Once these fields are removed from router descriptors,
16528       the bandwidth savings should be about 60%. [Partially implements
16529       proposal 104.]
16530     - Servers upload extra-info documents to any authority that accepts
16531       them. Authorities (and caches that have been configured to download
16532       extra-info documents) download them as needed. [Partially implements
16533       proposal 104.]
16534     - Change the way that Tor buffers data that it is waiting to write.
16535       Instead of queueing data cells in an enormous ring buffer for each
16536       client->OR or OR->OR connection, we now queue cells on a separate
16537       queue for each circuit. This lets us use less slack memory, and
16538       will eventually let us be smarter about prioritizing different kinds
16539       of traffic.
16540     - Use memory pools to allocate cells with better speed and memory
16541       efficiency, especially on platforms where malloc() is inefficient.
16542     - Stop reading on edge connections when their corresponding circuit
16543       buffers are full; start again as the circuits empty out.
16545   o Major features, other:
16546     - Add an HSAuthorityRecordStats option that hidden service authorities
16547       can use to track statistics of overall hidden service usage without
16548       logging information that would be very useful to an attacker.
16549     - Start work implementing multi-level keys for directory authorities:
16550       Add a standalone tool to generate key certificates. (Proposal 103.)
16552   o Security fixes:
16553     - Directory authorities now call routers Stable if they have an
16554       uptime of at least 30 days, even if that's not the median uptime
16555       in the network. Implements proposal 107, suggested by Kevin Bauer
16556       and Damon McCoy.
16558   o Minor fixes (resource management):
16559     - Count the number of open sockets separately from the number
16560       of active connection_t objects. This will let us avoid underusing
16561       our allocated connection limit.
16562     - We no longer use socket pairs to link an edge connection to an
16563       anonymous directory connection or a DirPort test connection.
16564       Instead, we track the link internally and transfer the data
16565       in-process. This saves two sockets per "linked" connection (at the
16566       client and at the server), and avoids the nasty Windows socketpair()
16567       workaround.
16568     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
16569       for every single inactive connection_t. Free items from the
16570       4k/16k-buffer free lists when they haven't been used for a while.
16572   o Minor features (build):
16573     - Make autoconf search for libevent, openssl, and zlib consistently.
16574     - Update deprecated macros in configure.in.
16575     - When warning about missing headers, tell the user to let us
16576       know if the compile succeeds anyway, so we can downgrade the
16577       warning.
16578     - Include the current subversion revision as part of the version
16579       string: either fetch it directly if we're in an SVN checkout, do
16580       some magic to guess it if we're in an SVK checkout, or use
16581       the last-detected version if we're building from a .tar.gz.
16582       Use this version consistently in log messages.
16584   o Minor features (logging):
16585     - Always prepend "Bug: " to any log message about a bug.
16586     - Put a platform string (e.g. "Linux i686") in the startup log
16587       message, so when people paste just their logs, we know if it's
16588       OpenBSD or Windows or what.
16589     - When logging memory usage, break down memory used in buffers by
16590       buffer type.
16592   o Minor features (directory system):
16593     - New config option V2AuthoritativeDirectory that all directory
16594       authorities should set. This will let future authorities choose
16595       not to serve V2 directory information.
16596     - Directory authorities allow multiple router descriptors and/or extra
16597       info documents to be uploaded in a single go. This will make
16598       implementing proposal 104 simpler.
16600   o Minor features (controller):
16601     - Add a new config option __DisablePredictedCircuits designed for
16602       use by the controller, when we don't want Tor to build any circuits
16603       preemptively.
16604     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
16605       so we can exit from the middle of the circuit.
16606     - Implement "getinfo status/circuit-established".
16607     - Implement "getinfo status/version/..." so a controller can tell
16608       whether the current version is recommended, and whether any versions
16609       are good, and how many authorities agree. (Patch from shibz.)
16611   o Minor features (hidden services):
16612     - Allow multiple HiddenServicePort directives with the same virtual
16613       port; when they occur, the user is sent round-robin to one
16614       of the target ports chosen at random. Partially fixes bug 393 by
16615       adding limited ad-hoc round-robining.
16617   o Minor features (other):
16618     - More unit tests.
16619     - Add a new AutomapHostsOnResolve option: when it is enabled, any
16620       resolve request for hosts matching a given pattern causes Tor to
16621       generate an internal virtual address mapping for that host. This
16622       allows DNSPort to work sensibly with hidden service users. By
16623       default, .exit and .onion addresses are remapped; the list of
16624       patterns can be reconfigured with AutomapHostsSuffixes.
16625     - Add an "-F" option to tor-resolve to force a resolve for a .onion
16626       address. Thanks to the AutomapHostsOnResolve option, this is no
16627       longer a completely silly thing to do.
16628     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
16629       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
16630     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
16631       minus 1 byte: the actual maximum declared bandwidth.
16633   o Removed features:
16634     - Removed support for the old binary "version 0" controller protocol.
16635       This has been deprecated since 0.1.1, and warnings have been issued
16636       since 0.1.2. When we encounter a v0 control message, we now send
16637       back an error and close the connection.
16638     - Remove the old "dns worker" server DNS code: it hasn't been default
16639       since 0.1.2.2-alpha, and all the servers seem to be using the new
16640       eventdns code.
16642   o Minor bugfixes (portability):
16643     - Even though Windows is equally happy with / and \ as path separators,
16644       try to use \ consistently on Windows and / consistently on Unix: it
16645       makes the log messages nicer.
16646     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
16647     - Read resolv.conf files correctly on platforms where read() returns
16648       partial results on small file reads.
16650   o Minor bugfixes (directory):
16651     - Correctly enforce that elements of directory objects do not appear
16652       more often than they are allowed to appear.
16653     - When we are reporting the DirServer line we just parsed, we were
16654       logging the second stanza of the key fingerprint, not the first.
16656   o Minor bugfixes (logging):
16657     - When we hit an EOF on a log (probably because we're shutting down),
16658       don't try to remove the log from the list: just mark it as
16659       unusable. (Bulletproofs against bug 222.)
16661   o Minor bugfixes (other):
16662     - In the exitlist script, only consider the most recently published
16663       server descriptor for each server. Also, when the user requests
16664       a list of servers that _reject_ connections to a given address,
16665       explicitly exclude the IPs that also have servers that accept
16666       connections to that address. (Resolves bug 405.)
16667     - Stop allowing hibernating servers to be "stable" or "fast".
16668     - On Windows, we were preventing other processes from reading
16669       cached-routers while Tor was running. (Reported by janbar)
16670     - Make the NodeFamilies config option work. (Reported by
16671       lodger -- it has never actually worked, even though we added it
16672       in Oct 2004.)
16673     - Check return values from pthread_mutex functions.
16674     - Don't save non-general-purpose router descriptors to the disk cache,
16675       because we have no way of remembering what their purpose was when
16676       we restart.
16677     - Add even more asserts to hunt down bug 417.
16678     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
16679     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
16680       Add a log message to confirm that it is in fact unlikely.
16682   o Minor bugfixes (controller):
16683     - Make 'getinfo fingerprint' return a 551 error if we're not a
16684       server, so we match what the control spec claims we do. Reported
16685       by daejees.
16686     - Fix a typo in an error message when extendcircuit fails that
16687       caused us to not follow the \r\n-based delimiter protocol. Reported
16688       by daejees.
16690   o Code simplifications and refactoring:
16691     - Stop passing around circuit_t and crypt_path_t pointers that are
16692       implicit in other procedure arguments.
16693     - Drop the old code to choke directory connections when the
16694       corresponding OR connections got full: thanks to the cell queue
16695       feature, OR conns don't get full any more.
16696     - Make dns_resolve() handle attaching connections to circuits
16697       properly, so the caller doesn't have to.
16698     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
16699     - Keep the connection array as a dynamic smartlist_t, rather than as
16700       a fixed-sized array. This is important, as the number of connections
16701       is becoming increasingly decoupled from the number of sockets.
16704 Changes in version 0.1.2.14 - 2007-05-25
16705   Tor 0.1.2.14 changes the addresses of two directory authorities (this
16706   change especially affects those who serve or use hidden services),
16707   and fixes several other crash- and security-related bugs.
16709   o Directory authority changes:
16710     - Two directory authorities (moria1 and moria2) just moved to new
16711       IP addresses. This change will particularly affect those who serve
16712       or use hidden services.
16714   o Major bugfixes (crashes):
16715     - If a directory server runs out of space in the connection table
16716       as it's processing a begin_dir request, it will free the exit stream
16717       but leave it attached to the circuit, leading to unpredictable
16718       behavior. (Reported by seeess, fixes bug 425.)
16719     - Fix a bug in dirserv_remove_invalid() that would cause authorities
16720       to corrupt memory under some really unlikely scenarios.
16721     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
16722     - Avoid segfaults when reading from mmaped descriptor file. (Reported
16723       by lodger.)
16725   o Major bugfixes (security):
16726     - When choosing an entry guard for a circuit, avoid using guards
16727       that are in the same family as the chosen exit -- not just guards
16728       that are exactly the chosen exit. (Reported by lodger.)
16730   o Major bugfixes (resource management):
16731     - If a directory authority is down, skip it when deciding where to get
16732       networkstatus objects or descriptors. Otherwise we keep asking
16733       every 10 seconds forever. Fixes bug 384.
16734     - Count it as a failure if we fetch a valid network-status but we
16735       don't want to keep it. Otherwise we'll keep fetching it and keep
16736       not wanting to keep it. Fixes part of bug 422.
16737     - If all of our dirservers have given us bad or no networkstatuses
16738       lately, then stop hammering them once per minute even when we
16739       think they're failed. Fixes another part of bug 422.
16741   o Minor bugfixes:
16742     - Actually set the purpose correctly for descriptors inserted with
16743       purpose=controller.
16744     - When we have k non-v2 authorities in our DirServer config,
16745       we ignored the last k authorities in the list when updating our
16746       network-statuses.
16747     - Correctly back-off from requesting router descriptors that we are
16748       having a hard time downloading.
16749     - Read resolv.conf files correctly on platforms where read() returns
16750       partial results on small file reads.
16751     - Don't rebuild the entire router store every time we get 32K of
16752       routers: rebuild it when the journal gets very large, or when
16753       the gaps in the store get very large.
16755   o Minor features:
16756     - When routers publish SVN revisions in their router descriptors,
16757       authorities now include those versions correctly in networkstatus
16758       documents.
16759     - Warn when using a version of libevent before 1.3b to run a server on
16760       OSX or BSD: these versions interact badly with userspace threads.
16763 Changes in version 0.1.2.13 - 2007-04-24
16764   This release features some major anonymity fixes, such as safer path
16765   selection; better client performance; faster bootstrapping, better
16766   address detection, and better DNS support for servers; write limiting as
16767   well as read limiting to make servers easier to run; and a huge pile of
16768   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
16770   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
16771   of the Freenode IRC network, remembering his patience and vision for
16772   free speech on the Internet.
16774   o Minor fixes:
16775     - Fix a memory leak when we ask for "all" networkstatuses and we
16776       get one we don't recognize.
16777     - Add more asserts to hunt down bug 417.
16778     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
16781 Changes in version 0.1.2.12-rc - 2007-03-16
16782   o Major bugfixes:
16783     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
16784       directory information requested inside Tor connections (i.e. via
16785       begin_dir cells). It only triggered when the same connection was
16786       serving other data at the same time. Reported by seeess.
16788   o Minor bugfixes:
16789     - When creating a circuit via the controller, send a 'launched'
16790       event when we're done, so we follow the spec better.
16793 Changes in version 0.1.2.11-rc - 2007-03-15
16794   o Minor bugfixes (controller), reported by daejees:
16795     - Correct the control spec to match how the code actually responds
16796       to 'getinfo addr-mappings/*'.
16797     - The control spec described a GUARDS event, but the code
16798       implemented a GUARD event. Standardize on GUARD, but let people
16799       ask for GUARDS too.
16802 Changes in version 0.1.2.10-rc - 2007-03-07
16803   o Major bugfixes (Windows):
16804     - Do not load the NT services library functions (which may not exist)
16805       just to detect if we're a service trying to shut down. Now we run
16806       on Win98 and friends again.
16808   o Minor bugfixes (other):
16809     - Clarify a couple of log messages.
16810     - Fix a misleading socks5 error number.
16813 Changes in version 0.1.2.9-rc - 2007-03-02
16814   o Major bugfixes (Windows):
16815     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
16816       of the usual GCC "%llu". This prevents a bug when saving 64-bit
16817       int configuration values: the high-order 32 bits would get
16818       truncated. In particular, we were being bitten by the default
16819       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
16820       and maybe also bug 397.)
16822   o Minor bugfixes (performance):
16823     - Use OpenSSL's AES implementation on platforms where it's faster.
16824       This could save us as much as 10% CPU usage.
16826   o Minor bugfixes (server):
16827     - Do not rotate onion key immediately after setting it for the first
16828       time.
16830   o Minor bugfixes (directory authorities):
16831     - Stop calling servers that have been hibernating for a long time
16832       "stable". Also, stop letting hibernating or obsolete servers affect
16833       uptime and bandwidth cutoffs.
16834     - Stop listing hibernating servers in the v1 directory.
16836   o Minor bugfixes (hidden services):
16837     - Upload hidden service descriptors slightly less often, to reduce
16838       load on authorities.
16840   o Minor bugfixes (other):
16841     - Fix an assert that could trigger if a controller quickly set then
16842       cleared EntryNodes. Bug found by Udo van den Heuvel.
16843     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
16844       to INT32_MAX.
16845     - Fix a potential race condition in the rpm installer. Found by
16846       Stefan Nordhausen.
16847     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
16848       of 2 as indicating that the server is completely bad; it sometimes
16849       means that the server is just bad for the request in question. (may fix
16850       the last of bug 326.)
16851     - Disable encrypted directory connections when we don't have a server
16852       descriptor for the destination. We'll get this working again in
16853       the 0.2.0 branch.
16856 Changes in version 0.1.2.8-beta - 2007-02-26
16857   o Major bugfixes (crashes):
16858     - Stop crashing when the controller asks us to resetconf more than
16859       one config option at once. (Vidalia 0.0.11 does this.)
16860     - Fix a crash that happened on Win98 when we're given command-line
16861       arguments: don't try to load NT service functions from advapi32.dll
16862       except when we need them. (Bug introduced in 0.1.2.7-alpha;
16863       resolves bug 389.)
16864     - Fix a longstanding obscure crash bug that could occur when
16865       we run out of DNS worker processes. (Resolves bug 390.)
16867   o Major bugfixes (hidden services):
16868     - Correctly detect whether hidden service descriptor downloads are
16869       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
16871   o Major bugfixes (accounting):
16872     - When we start during an accounting interval before it's time to wake
16873       up, remember to wake up at the correct time. (May fix bug 342.)
16875   o Minor bugfixes (controller):
16876     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
16877       clear the corresponding on_circuit variable, and remember later
16878       that we don't need to send a redundant CLOSED event. Resolves part
16879       3 of bug 367.
16880     - Report events where a resolve succeeded or where we got a socks
16881       protocol error correctly, rather than calling both of them
16882       "INTERNAL".
16883     - Change reported stream target addresses to IP consistently when
16884       we finally get the IP from an exit node.
16885     - Send log messages to the controller even if they happen to be very
16886       long.
16888   o Minor bugfixes (other):
16889     - Display correct results when reporting which versions are
16890       recommended, and how recommended they are. (Resolves bug 383.)
16891     - Improve our estimates for directory bandwidth to be less random:
16892       guess that an unrecognized directory will have the average bandwidth
16893       from all known directories, not that it will have the average
16894       bandwidth from those directories earlier than it on the list.
16895     - If we start a server with ClientOnly 1, then set ClientOnly to 0
16896       and hup, stop triggering an assert based on an empty onion_key.
16897     - On platforms with no working mmap() equivalent, don't warn the
16898       user when cached-routers doesn't exist.
16899     - Warn the user when mmap() [or its equivalent] fails for some reason
16900       other than file-not-found.
16901     - Don't warn the user when cached-routers.new doesn't exist: that's
16902       perfectly fine when starting up for the first time.
16903     - When EntryNodes are configured, rebuild the guard list to contain,
16904       in order: the EntryNodes that were guards before; the rest of the
16905       EntryNodes; the nodes that were guards before.
16906     - Mask out all signals in sub-threads; only the libevent signal
16907       handler should be processing them. This should prevent some crashes
16908       on some machines using pthreads. (Patch from coderman.)
16909     - Fix switched arguments on memset in the implementation of
16910       tor_munmap() for systems with no mmap() call.
16911     - When Tor receives a router descriptor that it asked for, but
16912       no longer wants (because it has received fresh networkstatuses
16913       in the meantime), do not warn the user. Cache the descriptor if
16914       we're a cache; drop it if we aren't.
16915     - Make earlier entry guards _really_ get retried when the network
16916       comes back online.
16917     - On a malformed DNS reply, always give an error to the corresponding
16918       DNS request.
16919     - Build with recent libevents on platforms that do not define the
16920       nonstandard types "u_int8_t" and friends.
16922   o Minor features (controller):
16923     - Warn the user when an application uses the obsolete binary v0
16924       control protocol. We're planning to remove support for it during
16925       the next development series, so it's good to give people some
16926       advance warning.
16927     - Add STREAM_BW events to report per-entry-stream bandwidth
16928       use. (Patch from Robert Hogan.)
16929     - Rate-limit SIGNEWNYM signals in response to controllers that
16930       impolitely generate them for every single stream. (Patch from
16931       mwenge; closes bug 394.)
16932     - Make REMAP stream events have a SOURCE (cache or exit), and
16933       make them generated in every case where we get a successful
16934       connected or resolved cell.
16936   o Minor bugfixes (performance):
16937     - Call router_have_min_dir_info half as often. (This is showing up in
16938       some profiles, but not others.)
16939     - When using GCC, make log_debug never get called at all, and its
16940       arguments never get evaluated, when no debug logs are configured.
16941       (This is showing up in some profiles, but not others.)
16943   o Minor features:
16944     - Remove some never-implemented options. Mark PathlenCoinWeight as
16945       obsolete.
16946     - Implement proposal 106: Stop requiring clients to have well-formed
16947       certificates; stop checking nicknames in certificates. (Clients
16948       have certificates so that they can look like Tor servers, but in
16949       the future we might want to allow them to look like regular TLS
16950       clients instead. Nicknames in certificates serve no purpose other
16951       than making our protocol easier to recognize on the wire.)
16952     - Revise messages on handshake failure again to be even more clear about
16953       which are incoming connections and which are outgoing.
16954     - Discard any v1 directory info that's over 1 month old (for
16955       directories) or over 1 week old (for running-routers lists).
16956     - Do not warn when individual nodes in the configuration's EntryNodes,
16957       ExitNodes, etc are down: warn only when all possible nodes
16958       are down. (Fixes bug 348.)
16959     - Always remove expired routers and networkstatus docs before checking
16960       whether we have enough information to build circuits. (Fixes
16961       bug 373.)
16962     - Put a lower-bound on MaxAdvertisedBandwidth.
16965 Changes in version 0.1.2.7-alpha - 2007-02-06
16966   o Major bugfixes (rate limiting):
16967     - Servers decline directory requests much more aggressively when
16968       they're low on bandwidth. Otherwise they end up queueing more and
16969       more directory responses, which can't be good for latency.
16970     - But never refuse directory requests from local addresses.
16971     - Fix a memory leak when sending a 503 response for a networkstatus
16972       request.
16973     - Be willing to read or write on local connections (e.g. controller
16974       connections) even when the global rate limiting buckets are empty.
16975     - If our system clock jumps back in time, don't publish a negative
16976       uptime in the descriptor. Also, don't let the global rate limiting
16977       buckets go absurdly negative.
16978     - Flush local controller connection buffers periodically as we're
16979       writing to them, so we avoid queueing 4+ megabytes of data before
16980       trying to flush.
16982   o Major bugfixes (NT services):
16983     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
16984       command-line flag so that admins can override the default by saying
16985       "tor --service install --user "SomeUser"". This will not affect
16986       existing installed services. Also, warn the user that the service
16987       will look for its configuration file in the service user's
16988       %appdata% directory. (We can't do the 'hardwire the user's appdata
16989       directory' trick any more, since we may not have read access to that
16990       directory.)
16992   o Major bugfixes (other):
16993     - Previously, we would cache up to 16 old networkstatus documents
16994       indefinitely, if they came from nontrusted authorities. Now we
16995       discard them if they are more than 10 days old.
16996     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
16997       Del Vecchio).
16998     - Detect and reject malformed DNS responses containing circular
16999       pointer loops.
17000     - If exits are rare enough that we're not marking exits as guards,
17001       ignore exit bandwidth when we're deciding the required bandwidth
17002       to become a guard.
17003     - When we're handling a directory connection tunneled over Tor,
17004       don't fill up internal memory buffers with all the data we want
17005       to tunnel; instead, only add it if the OR connection that will
17006       eventually receive it has some room for it. (This can lead to
17007       slowdowns in tunneled dir connections; a better solution will have
17008       to wait for 0.2.0.)
17010   o Minor bugfixes (dns):
17011     - Add some defensive programming to eventdns.c in an attempt to catch
17012       possible memory-stomping bugs.
17013     - Detect and reject DNS replies containing IPv4 or IPv6 records with
17014       an incorrect number of bytes. (Previously, we would ignore the
17015       extra bytes.)
17016     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
17017       in the correct order, and doesn't crash.
17018     - Free memory held in recently-completed DNS lookup attempts on exit.
17019       This was not a memory leak, but may have been hiding memory leaks.
17020     - Handle TTL values correctly on reverse DNS lookups.
17021     - Treat failure to parse resolv.conf as an error.
17023   o Minor bugfixes (other):
17024     - Fix crash with "tor --list-fingerprint" (reported by seeess).
17025     - When computing clock skew from directory HTTP headers, consider what
17026       time it was when we finished asking for the directory, not what
17027       time it is now.
17028     - Expire socks connections if they spend too long waiting for the
17029       handshake to finish. Previously we would let them sit around for
17030       days, if the connecting application didn't close them either.
17031     - And if the socks handshake hasn't started, don't send a
17032       "DNS resolve socks failed" handshake reply; just close it.
17033     - Stop using C functions that OpenBSD's linker doesn't like.
17034     - Don't launch requests for descriptors unless we have networkstatuses
17035       from at least half of the authorities. This delays the first
17036       download slightly under pathological circumstances, but can prevent
17037       us from downloading a bunch of descriptors we don't need.
17038     - Do not log IPs with TLS failures for incoming TLS
17039       connections. (Fixes bug 382.)
17040     - If the user asks to use invalid exit nodes, be willing to use
17041       unstable ones.
17042     - Stop using the reserved ac_cv namespace in our configure script.
17043     - Call stat() slightly less often; use fstat() when possible.
17044     - Refactor the way we handle pending circuits when an OR connection
17045       completes or fails, in an attempt to fix a rare crash bug.
17046     - Only rewrite a conn's address based on X-Forwarded-For: headers
17047       if it's a parseable public IP address; and stop adding extra quotes
17048       to the resulting address.
17050   o Major features:
17051     - Weight directory requests by advertised bandwidth. Now we can
17052       let servers enable write limiting but still allow most clients to
17053       succeed at their directory requests. (We still ignore weights when
17054       choosing a directory authority; I hope this is a feature.)
17056   o Minor features:
17057     - Create a new file ReleaseNotes which was the old ChangeLog. The
17058       new ChangeLog file now includes the summaries for all development
17059       versions too.
17060     - Check for addresses with invalid characters at the exit as well
17061       as at the client, and warn less verbosely when they fail. You can
17062       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
17063     - Adapt a patch from goodell to let the contrib/exitlist script
17064       take arguments rather than require direct editing.
17065     - Inform the server operator when we decide not to advertise a
17066       DirPort due to AccountingMax enabled or a low BandwidthRate. It
17067       was confusing Zax, so now we're hopefully more helpful.
17068     - Bring us one step closer to being able to establish an encrypted
17069       directory tunnel without knowing a descriptor first. Still not
17070       ready yet. As part of the change, now assume we can use a
17071       create_fast cell if we don't know anything about a router.
17072     - Allow exit nodes to use nameservers running on ports other than 53.
17073     - Servers now cache reverse DNS replies.
17074     - Add an --ignore-missing-torrc command-line option so that we can
17075       get the "use sensible defaults if the configuration file doesn't
17076       exist" behavior even when specifying a torrc location on the command
17077       line.
17079   o Minor features (controller):
17080     - Track reasons for OR connection failure; make these reasons
17081       available via the controller interface. (Patch from Mike Perry.)
17082     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
17083       can learn when clients are sending malformed hostnames to Tor.
17084     - Clean up documentation for controller status events.
17085     - Add a REMAP status to stream events to note that a stream's
17086       address has changed because of a cached address or a MapAddress
17087       directive.
17090 Changes in version 0.1.2.6-alpha - 2007-01-09
17091   o Major bugfixes:
17092     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
17093       connection handles more than 4 gigs in either direction, we crash.
17094     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
17095       advertised exit node, somebody might try to exit from us when
17096       we're bootstrapping and before we've built our descriptor yet.
17097       Refuse the connection rather than crashing.
17099   o Minor bugfixes:
17100     - Warn if we (as a server) find that we've resolved an address that we
17101       weren't planning to resolve.
17102     - Warn that using select() on any libevent version before 1.1 will be
17103       unnecessarily slow (even for select()).
17104     - Flush ERR-level controller status events just like we currently
17105       flush ERR-level log events, so that a Tor shutdown doesn't prevent
17106       the controller from learning about current events.
17108   o Minor features (more controller status events):
17109     - Implement EXTERNAL_ADDRESS server status event so controllers can
17110       learn when our address changes.
17111     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
17112       can learn when directories reject our descriptor.
17113     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
17114       can learn when a client application is speaking a non-socks protocol
17115       to our SocksPort.
17116     - Implement DANGEROUS_SOCKS client status event so controllers
17117       can learn when a client application is leaking DNS addresses.
17118     - Implement BUG general status event so controllers can learn when
17119       Tor is unhappy about its internal invariants.
17120     - Implement CLOCK_SKEW general status event so controllers can learn
17121       when Tor thinks the system clock is set incorrectly.
17122     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
17123       server status events so controllers can learn when their descriptors
17124       are accepted by a directory.
17125     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
17126       server status events so controllers can learn about Tor's progress in
17127       deciding whether it's reachable from the outside.
17128     - Implement BAD_LIBEVENT general status event so controllers can learn
17129       when we have a version/method combination in libevent that needs to
17130       be changed.
17131     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
17132       and DNS_USELESS server status events so controllers can learn
17133       about changes to DNS server status.
17135   o Minor features (directory):
17136     - Authorities no longer recommend exits as guards if this would shift
17137       too much load to the exit nodes.
17140 Changes in version 0.1.2.5-alpha - 2007-01-06
17141   o Major features:
17142     - Enable write limiting as well as read limiting. Now we sacrifice
17143       capacity if we're pushing out lots of directory traffic, rather
17144       than overrunning the user's intended bandwidth limits.
17145     - Include TLS overhead when counting bandwidth usage; previously, we
17146       would count only the bytes sent over TLS, but not the bytes used
17147       to send them.
17148     - Support running the Tor service with a torrc not in the same
17149       directory as tor.exe and default to using the torrc located in
17150       the %appdata%\Tor\ of the user who installed the service. Patch
17151       from Matt Edman.
17152     - Servers now check for the case when common DNS requests are going to
17153       wildcarded addresses (i.e. all getting the same answer), and change
17154       their exit policy to reject *:* if it's happening.
17155     - Implement BEGIN_DIR cells, so we can connect to the directory
17156       server via TLS to do encrypted directory requests rather than
17157       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
17158       config options if you like.
17160   o Minor features (config and docs):
17161     - Start using the state file to store bandwidth accounting data:
17162       the bw_accounting file is now obsolete. We'll keep generating it
17163       for a while for people who are still using 0.1.2.4-alpha.
17164     - Try to batch changes to the state file so that we do as few
17165       disk writes as possible while still storing important things in
17166       a timely fashion.
17167     - The state file and the bw_accounting file get saved less often when
17168       the AvoidDiskWrites config option is set.
17169     - Make PIDFile work on Windows (untested).
17170     - Add internal descriptions for a bunch of configuration options:
17171       accessible via controller interface and in comments in saved
17172       options files.
17173     - Reject *:563 (NNTPS) in the default exit policy. We already reject
17174       NNTP by default, so this seems like a sensible addition.
17175     - Clients now reject hostnames with invalid characters. This should
17176       avoid some inadvertent info leaks. Add an option
17177       AllowNonRFC953Hostnames to disable this behavior, in case somebody
17178       is running a private network with hosts called @, !, and #.
17179     - Add a maintainer script to tell us which options are missing
17180       documentation: "make check-docs".
17181     - Add a new address-spec.txt document to describe our special-case
17182       addresses: .exit, .onion, and .noconnnect.
17184   o Minor features (DNS):
17185     - Ongoing work on eventdns infrastructure: now it has dns server
17186       and ipv6 support. One day Tor will make use of it.
17187     - Add client-side caching for reverse DNS lookups.
17188     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
17189     - When we change nameservers or IP addresses, reset and re-launch
17190       our tests for DNS hijacking.
17192   o Minor features (directory):
17193     - Authorities now specify server versions in networkstatus. This adds
17194       about 2% to the size of compressed networkstatus docs, and allows
17195       clients to tell which servers support BEGIN_DIR and which don't.
17196       The implementation is forward-compatible with a proposed future
17197       protocol version scheme not tied to Tor versions.
17198     - DirServer configuration lines now have an orport= option so
17199       clients can open encrypted tunnels to the authorities without
17200       having downloaded their descriptors yet. Enabled for moria1,
17201       moria2, tor26, and lefkada now in the default configuration.
17202     - Directory servers are more willing to send a 503 "busy" if they
17203       are near their write limit, especially for v1 directory requests.
17204       Now they can use their limited bandwidth for actual Tor traffic.
17205     - Clients track responses with status 503 from dirservers. After a
17206       dirserver has given us a 503, we try not to use it until an hour has
17207       gone by, or until we have no dirservers that haven't given us a 503.
17208     - When we get a 503 from a directory, and we're not a server, we don't
17209       count the failure against the total number of failures allowed
17210       for the thing we're trying to download.
17211     - Report X-Your-Address-Is correctly from tunneled directory
17212       connections; don't report X-Your-Address-Is when it's an internal
17213       address; and never believe reported remote addresses when they're
17214       internal.
17215     - Protect against an unlikely DoS attack on directory servers.
17216     - Add a BadDirectory flag to network status docs so that authorities
17217       can (eventually) tell clients about caches they believe to be
17218       broken.
17220   o Minor features (controller):
17221     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
17222     - Reimplement GETINFO so that info/names stays in sync with the
17223       actual keys.
17224     - Implement "GETINFO fingerprint".
17225     - Implement "SETEVENTS GUARD" so controllers can get updates on
17226       entry guard status as it changes.
17228   o Minor features (clean up obsolete pieces):
17229     - Remove some options that have been deprecated since at least
17230       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
17231       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
17232       to set log options.
17233     - We no longer look for identity and onion keys in "identity.key" and
17234       "onion.key" -- these were replaced by secret_id_key and
17235       secret_onion_key in 0.0.8pre1.
17236     - We no longer require unrecognized directory entries to be
17237       preceded by "opt".
17239   o Major bugfixes (security):
17240     - Stop sending the HttpProxyAuthenticator string to directory
17241       servers when directory connections are tunnelled through Tor.
17242     - Clients no longer store bandwidth history in the state file.
17243     - Do not log introduction points for hidden services if SafeLogging
17244       is set.
17245     - When generating bandwidth history, round down to the nearest
17246       1k. When storing accounting data, round up to the nearest 1k.
17247     - When we're running as a server, remember when we last rotated onion
17248       keys, so that we will rotate keys once they're a week old even if
17249       we never stay up for a week ourselves.
17251   o Major bugfixes (other):
17252     - Fix a longstanding bug in eventdns that prevented the count of
17253       timed-out resolves from ever being reset. This bug caused us to
17254       give up on a nameserver the third time it timed out, and try it
17255       10 seconds later... and to give up on it every time it timed out
17256       after that.
17257     - Take out the '5 second' timeout from the connection retry
17258       schedule. Now the first connect attempt will wait a full 10
17259       seconds before switching to a new circuit. Perhaps this will help
17260       a lot. Based on observations from Mike Perry.
17261     - Fix a bug on the Windows implementation of tor_mmap_file() that
17262       would prevent the cached-routers file from ever loading. Reported
17263       by John Kimble.
17265   o Minor bugfixes:
17266     - Fix an assert failure when a directory authority sets
17267       AuthDirRejectUnlisted and then receives a descriptor from an
17268       unlisted router. Reported by seeess.
17269     - Avoid a double-free when parsing malformed DirServer lines.
17270     - Fix a bug when a BSD-style PF socket is first used. Patch from
17271       Fabian Keil.
17272     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
17273       to resolve an address at a given exit node even when they ask for
17274       it by name.
17275     - Servers no longer ever list themselves in their "family" line,
17276       even if configured to do so. This makes it easier to configure
17277       family lists conveniently.
17278     - When running as a server, don't fall back to 127.0.0.1 when no
17279       nameservers are configured in /etc/resolv.conf; instead, make the
17280       user fix resolv.conf or specify nameservers explicitly. (Resolves
17281       bug 363.)
17282     - Stop accepting certain malformed ports in configured exit policies.
17283     - Don't re-write the fingerprint file every restart, unless it has
17284       changed.
17285     - Stop warning when a single nameserver fails: only warn when _all_ of
17286       our nameservers have failed. Also, when we only have one nameserver,
17287       raise the threshold for deciding that the nameserver is dead.
17288     - Directory authorities now only decide that routers are reachable
17289       if their identity keys are as expected.
17290     - When the user uses bad syntax in the Log config line, stop
17291       suggesting other bad syntax as a replacement.
17292     - Correctly detect ipv6 DNS capability on OpenBSD.
17294   o Minor bugfixes (controller):
17295     - Report the circuit number correctly in STREAM CLOSED events. Bug
17296       reported by Mike Perry.
17297     - Do not report bizarre values for results of accounting GETINFOs
17298       when the last second's write or read exceeds the allotted bandwidth.
17299     - Report "unrecognized key" rather than an empty string when the
17300       controller tries to fetch a networkstatus that doesn't exist.
17303 Changes in version 0.1.1.26 - 2006-12-14
17304   o Security bugfixes:
17305     - Stop sending the HttpProxyAuthenticator string to directory
17306       servers when directory connections are tunnelled through Tor.
17307     - Clients no longer store bandwidth history in the state file.
17308     - Do not log introduction points for hidden services if SafeLogging
17309       is set.
17311   o Minor bugfixes:
17312     - Fix an assert failure when a directory authority sets
17313       AuthDirRejectUnlisted and then receives a descriptor from an
17314       unlisted router (reported by seeess).
17317 Changes in version 0.1.2.4-alpha - 2006-12-03
17318   o Major features:
17319     - Add support for using natd; this allows FreeBSDs earlier than
17320       5.1.2 to have ipfw send connections through Tor without using
17321       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
17323   o Minor features:
17324     - Make all connections to addresses of the form ".noconnect"
17325       immediately get closed. This lets application/controller combos
17326       successfully test whether they're talking to the same Tor by
17327       watching for STREAM events.
17328     - Make cross.sh cross-compilation script work even when autogen.sh
17329       hasn't been run. (Patch from Michael Mohr.)
17330     - Statistics dumped by -USR2 now include a breakdown of public key
17331       operations, for profiling.
17333   o Major bugfixes:
17334     - Fix a major leak when directory authorities parse their
17335       approved-routers list, a minor memory leak when we fail to pick
17336       an exit node, and a few rare leaks on errors.
17337     - Handle TransPort connections even when the server sends data before
17338       the client sends data. Previously, the connection would just hang
17339       until the client sent data. (Patch from tup based on patch from
17340       Zajcev Evgeny.)
17341     - Avoid assert failure when our cached-routers file is empty on
17342       startup.
17344   o Minor bugfixes:
17345     - Don't log spurious warnings when we see a circuit close reason we
17346       don't recognize; it's probably just from a newer version of Tor.
17347     - Have directory authorities allow larger amounts of drift in uptime
17348       without replacing the server descriptor: previously, a server that
17349       restarted every 30 minutes could have 48 "interesting" descriptors
17350       per day.
17351     - Start linking to the Tor specification and Tor reference manual
17352       correctly in the Windows installer.
17353     - Add Vidalia to the OS X uninstaller script, so when we uninstall
17354       Tor/Privoxy we also uninstall Vidalia.
17355     - Resume building on Irix64, and fix a lot of warnings from its
17356       MIPSpro C compiler.
17357     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
17358       when we're running as a client.
17361 Changes in version 0.1.1.25 - 2006-11-04
17362   o Major bugfixes:
17363     - When a client asks us to resolve (rather than connect to)
17364       an address, and we have a cached answer, give them the cached
17365       answer. Previously, we would give them no answer at all.
17366     - We were building exactly the wrong circuits when we predict
17367       hidden service requirements, meaning Tor would have to build all
17368       its circuits on demand.
17369     - If none of our live entry guards have a high uptime, but we
17370       require a guard with a high uptime, try adding a new guard before
17371       we give up on the requirement. This patch should make long-lived
17372       connections more stable on average.
17373     - When testing reachability of our DirPort, don't launch new
17374       tests when there's already one in progress -- unreachable
17375       servers were stacking up dozens of testing streams.
17377   o Security bugfixes:
17378     - When the user sends a NEWNYM signal, clear the client-side DNS
17379       cache too. Otherwise we continue to act on previous information.
17381   o Minor bugfixes:
17382     - Avoid a memory corruption bug when creating a hash table for
17383       the first time.
17384     - Avoid possibility of controller-triggered crash when misusing
17385       certain commands from a v0 controller on platforms that do not
17386       handle printf("%s",NULL) gracefully.
17387     - Avoid infinite loop on unexpected controller input.
17388     - Don't log spurious warnings when we see a circuit close reason we
17389       don't recognize; it's probably just from a newer version of Tor.
17390     - Add Vidalia to the OS X uninstaller script, so when we uninstall
17391       Tor/Privoxy we also uninstall Vidalia.
17394 Changes in version 0.1.2.3-alpha - 2006-10-29
17395   o Minor features:
17396     - Prepare for servers to publish descriptors less often: never
17397       discard a descriptor simply for being too old until either it is
17398       recommended by no authorities, or until we get a better one for
17399       the same router. Make caches consider retaining old recommended
17400       routers for even longer.
17401     - If most authorities set a BadExit flag for a server, clients
17402       don't think of it as a general-purpose exit. Clients only consider
17403       authorities that advertise themselves as listing bad exits.
17404     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
17405       headers for content, so that we can work better in the presence of
17406       caching HTTP proxies.
17407     - Allow authorities to list nodes as bad exits by fingerprint or by
17408       address.
17410   o Minor features, controller:
17411     - Add a REASON field to CIRC events; for backward compatibility, this
17412       field is sent only to controllers that have enabled the extended
17413       event format. Also, add additional reason codes to explain why
17414       a given circuit has been destroyed or truncated. (Patches from
17415       Mike Perry)
17416     - Add a REMOTE_REASON field to extended CIRC events to tell the
17417       controller about why a remote OR told us to close a circuit.
17418     - Stream events also now have REASON and REMOTE_REASON fields,
17419       working much like those for circuit events.
17420     - There's now a GETINFO ns/... field so that controllers can ask Tor
17421       about the current status of a router.
17422     - A new event type "NS" to inform a controller when our opinion of
17423       a router's status has changed.
17424     - Add a GETINFO events/names and GETINFO features/names so controllers
17425       can tell which events and features are supported.
17426     - A new CLEARDNSCACHE signal to allow controllers to clear the
17427       client-side DNS cache without expiring circuits.
17429   o Security bugfixes:
17430     - When the user sends a NEWNYM signal, clear the client-side DNS
17431       cache too. Otherwise we continue to act on previous information.
17433   o Minor bugfixes:
17434     - Avoid sending junk to controllers or segfaulting when a controller
17435       uses EVENT_NEW_DESC with verbose nicknames.
17436     - Stop triggering asserts if the controller tries to extend hidden
17437       service circuits (reported by mwenge).
17438     - Avoid infinite loop on unexpected controller input.
17439     - When the controller does a "GETINFO network-status", tell it
17440       about even those routers whose descriptors are very old, and use
17441       long nicknames where appropriate.
17442     - Change NT service functions to be loaded on demand. This lets us
17443       build with MinGW without breaking Tor for Windows 98 users.
17444     - Do DirPort reachability tests less often, since a single test
17445       chews through many circuits before giving up.
17446     - In the hidden service example in torrc.sample, stop recommending
17447       esoteric and discouraged hidden service options.
17448     - When stopping an NT service, wait up to 10 sec for it to actually
17449       stop. Patch from Matt Edman; resolves bug 295.
17450     - Fix handling of verbose nicknames with ORCONN controller events:
17451       make them show up exactly when requested, rather than exactly when
17452       not requested.
17453     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
17454       printing a duplicate "$" in the keys we send (reported by mwenge).
17455     - Correctly set maximum connection limit on Cygwin. (This time
17456       for sure!)
17457     - Try to detect Windows correctly when cross-compiling.
17458     - Detect the size of the routers file correctly even if it is
17459       corrupted (on systems without mmap) or not page-aligned (on systems
17460       with mmap). This bug was harmless.
17461     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
17462       to open a stream fails; now we do in more cases. This should
17463       make clients able to find a good exit faster in some cases, since
17464       unhandleable requests will now get an error rather than timing out.
17465     - Resolve two memory leaks when rebuilding the on-disk router cache
17466       (reported by fookoowa).
17467     - Clean up minor code warnings suggested by the MIPSpro C compiler,
17468       and reported by some Centos users.
17469     - Controller signals now work on non-Unix platforms that don't define
17470       SIGUSR1 and SIGUSR2 the way we expect.
17471     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
17472       values before failing, and always enables eventdns.
17473     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
17474       Try to fix this in configure.in by checking for most functions
17475       before we check for libevent.
17478 Changes in version 0.1.2.2-alpha - 2006-10-07
17479   o Major features:
17480     - Make our async eventdns library on-by-default for Tor servers,
17481       and plan to deprecate the separate dnsworker threads.
17482     - Add server-side support for "reverse" DNS lookups (using PTR
17483       records so clients can determine the canonical hostname for a given
17484       IPv4 address). Only supported by servers using eventdns; servers
17485       now announce in their descriptors whether they support eventdns.
17486     - Specify and implement client-side SOCKS5 interface for reverse DNS
17487       lookups (see doc/socks-extensions.txt).
17488     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
17489       connect to directory servers through Tor. Previously, clients needed
17490       to find Tor exits to make private connections to directory servers.
17491     - Avoid choosing Exit nodes for entry or middle hops when the
17492       total bandwidth available from non-Exit nodes is much higher than
17493       the total bandwidth available from Exit nodes.
17494     - Workaround for name servers (like Earthlink's) that hijack failing
17495       DNS requests and replace the no-such-server answer with a "helpful"
17496       redirect to an advertising-driven search portal. Also work around
17497       DNS hijackers who "helpfully" decline to hijack known-invalid
17498       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
17499       lets you turn it off.
17500     - Send out a burst of long-range padding cells once we've established
17501       that we're reachable. Spread them over 4 circuits, so hopefully
17502       a few will be fast. This exercises our bandwidth and bootstraps
17503       us into the directory more quickly.
17505   o New/improved config options:
17506     - Add new config option "ResolvConf" to let the server operator
17507       choose an alternate resolve.conf file when using eventdns.
17508     - Add an "EnforceDistinctSubnets" option to control our "exclude
17509       servers on the same /16" behavior. It's still on by default; this
17510       is mostly for people who want to operate private test networks with
17511       all the machines on the same subnet.
17512     - If one of our entry guards is on the ExcludeNodes list, or the
17513       directory authorities don't think it's a good guard, treat it as
17514       if it were unlisted: stop using it as a guard, and throw it off
17515       the guards list if it stays that way for a long time.
17516     - Allow directory authorities to be marked separately as authorities
17517       for the v1 directory protocol, the v2 directory protocol, and
17518       as hidden service directories, to make it easier to retire old
17519       authorities. V1 authorities should set "HSAuthoritativeDir 1"
17520       to continue being hidden service authorities too.
17521     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
17523   o Minor features, controller:
17524     - Fix CIRC controller events so that controllers can learn the
17525       identity digests of non-Named servers used in circuit paths.
17526     - Let controllers ask for more useful identifiers for servers. Instead
17527       of learning identity digests for un-Named servers and nicknames
17528       for Named servers, the new identifiers include digest, nickname,
17529       and indication of Named status. Off by default; see control-spec.txt
17530       for more information.
17531     - Add a "getinfo address" controller command so it can display Tor's
17532       best guess to the user.
17533     - New controller event to alert the controller when our server
17534       descriptor has changed.
17535     - Give more meaningful errors on controller authentication failure.
17537   o Minor features, other:
17538     - When asked to resolve a hostname, don't use non-exit servers unless
17539       requested to do so. This allows servers with broken DNS to be
17540       useful to the network.
17541     - Divide eventdns log messages into warn and info messages.
17542     - Reserve the nickname "Unnamed" for routers that can't pick
17543       a hostname: any router can call itself Unnamed; directory
17544       authorities will never allocate Unnamed to any particular router;
17545       clients won't believe that any router is the canonical Unnamed.
17546     - Only include function names in log messages for info/debug messages.
17547       For notice/warn/err, the content of the message should be clear on
17548       its own, and printing the function name only confuses users.
17549     - Avoid some false positives during reachability testing: don't try
17550       to test via a server that's on the same /24 as us.
17551     - If we fail to build a circuit to an intended enclave, and it's
17552       not mandatory that we use that enclave, stop wanting it.
17553     - When eventdns is enabled, allow multithreaded builds on NetBSD and
17554       OpenBSD. (We had previously disabled threads on these platforms
17555       because they didn't have working thread-safe resolver functions.)
17557   o Major bugfixes, anonymity/security:
17558     - If a client asked for a server by name, and there's a named server
17559       in our network-status but we don't have its descriptor yet, we
17560       could return an unnamed server instead.
17561     - Fix NetBSD bug that could allow someone to force uninitialized RAM
17562       to be sent to a server's DNS resolver. This only affects NetBSD
17563       and other platforms that do not bounds-check tolower().
17564     - Reject (most) attempts to use Tor circuits with length one. (If
17565       many people start using Tor as a one-hop proxy, exit nodes become
17566       a more attractive target for compromise.)
17567     - Just because your DirPort is open doesn't mean people should be
17568       able to remotely teach you about hidden service descriptors. Now
17569       only accept rendezvous posts if you've got HSAuthoritativeDir set.
17571   o Major bugfixes, other:
17572     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
17573     - When a client asks the server to resolve (not connect to)
17574       an address, and it has a cached answer, give them the cached answer.
17575       Previously, the server would give them no answer at all.
17576     - Allow really slow clients to not hang up five minutes into their
17577       directory downloads (suggested by Adam J. Richter).
17578     - We were building exactly the wrong circuits when we anticipated
17579       hidden service requirements, meaning Tor would have to build all
17580       its circuits on demand.
17581     - Avoid crashing when we mmap a router cache file of size 0.
17582     - When testing reachability of our DirPort, don't launch new
17583       tests when there's already one in progress -- unreachable
17584       servers were stacking up dozens of testing streams.
17586   o Minor bugfixes, correctness:
17587     - If we're a directory mirror and we ask for "all" network status
17588       documents, we would discard status documents from authorities
17589       we don't recognize.
17590     - Avoid a memory corruption bug when creating a hash table for
17591       the first time.
17592     - Avoid controller-triggered crash when misusing certain commands
17593       from a v0 controller on platforms that do not handle
17594       printf("%s",NULL) gracefully.
17595     - Don't crash when a controller sends a third argument to an
17596       "extendcircuit" request.
17597     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
17598       response; fix error code when "getinfo dir/status/" fails.
17599     - Avoid crash when telling controller stream-status and a stream
17600       is detached.
17601     - Patch from Adam Langley to fix assert() in eventdns.c.
17602     - Fix a debug log message in eventdns to say "X resolved to Y"
17603       instead of "X resolved to X".
17604     - Make eventdns give strings for DNS errors, not just error numbers.
17605     - Track unreachable entry guards correctly: don't conflate
17606       'unreachable by us right now' with 'listed as down by the directory
17607       authorities'. With the old code, if a guard was unreachable by
17608       us but listed as running, it would clog our guard list forever.
17609     - Behave correctly in case we ever have a network with more than
17610       2GB/s total advertised capacity.
17611     - Make TrackExitHosts case-insensitive, and fix the behavior of
17612       ".suffix" TrackExitHosts items to avoid matching in the middle of
17613       an address.
17614     - Finally fix the openssl warnings from newer gccs that believe that
17615       ignoring a return value is okay, but casting a return value and
17616       then ignoring it is a sign of madness.
17617     - Prevent the contrib/exitlist script from printing the same
17618       result more than once.
17619     - Patch from Steve Hildrey: Generate network status correctly on
17620       non-versioning dirservers.
17621     - Don't listen to the X-Your-Address-Is hint if you did the lookup
17622       via Tor; otherwise you'll think you're the exit node's IP address.
17624   o Minor bugfixes, performance:
17625     - Two small performance improvements on parsing descriptors.
17626     - Major performance improvement on inserting descriptors: change
17627       algorithm from O(n^2) to O(n).
17628     - Make the common memory allocation path faster on machines where
17629       malloc(0) returns a pointer.
17630     - Start remembering X-Your-Address-Is directory hints even if you're
17631       a client, so you can become a server more smoothly.
17632     - Avoid duplicate entries on MyFamily line in server descriptor.
17634   o Packaging, features:
17635     - Remove architecture from OS X builds. The official builds are
17636       now universal binaries.
17637     - The Debian package now uses --verify-config when (re)starting,
17638       to distinguish configuration errors from other errors.
17639     - Update RPMs to require libevent 1.1b.
17641   o Packaging, bugfixes:
17642     - Patches so Tor builds with MinGW on Windows.
17643     - Patches so Tor might run on Cygwin again.
17644     - Resume building on non-gcc compilers and ancient gcc. Resume
17645       building with the -O0 compile flag. Resume building cleanly on
17646       Debian woody.
17647     - Run correctly on OS X platforms with case-sensitive filesystems.
17648     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
17649     - Add autoconf checks so Tor can build on Solaris x86 again.
17651   o Documentation
17652     - Documented (and renamed) ServerDNSSearchDomains and
17653       ServerDNSResolvConfFile options.
17654     - Be clearer that the *ListenAddress directives can be repeated
17655       multiple times.
17658 Changes in version 0.1.1.24 - 2006-09-29
17659   o Major bugfixes:
17660     - Allow really slow clients to not hang up five minutes into their
17661       directory downloads (suggested by Adam J. Richter).
17662     - Fix major performance regression from 0.1.0.x: instead of checking
17663       whether we have enough directory information every time we want to
17664       do something, only check when the directory information has changed.
17665       This should improve client CPU usage by 25-50%.
17666     - Don't crash if, after a server has been running for a while,
17667       it can't resolve its hostname.
17669   o Minor bugfixes:
17670     - Allow Tor to start when RunAsDaemon is set but no logs are set.
17671     - Don't crash when the controller receives a third argument to an
17672       "extendcircuit" request.
17673     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
17674       response; fix error code when "getinfo dir/status/" fails.
17675     - Fix configure.in to not produce broken configure files with
17676       more recent versions of autoconf. Thanks to Clint for his auto*
17677       voodoo.
17678     - Fix security bug on NetBSD that could allow someone to force
17679       uninitialized RAM to be sent to a server's DNS resolver. This
17680       only affects NetBSD and other platforms that do not bounds-check
17681       tolower().
17682     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
17683       methods: these are known to be buggy.
17684     - If we're a directory mirror and we ask for "all" network status
17685       documents, we would discard status documents from authorities
17686       we don't recognize.
17689 Changes in version 0.1.2.1-alpha - 2006-08-27
17690   o Major features:
17691     - Add "eventdns" async dns library from Adam Langley, tweaked to
17692       build on OSX and Windows. Only enabled if you pass the
17693       --enable-eventdns argument to configure.
17694     - Allow servers with no hostname or IP address to learn their
17695       IP address by asking the directory authorities. This code only
17696       kicks in when you would normally have exited with a "no address"
17697       error. Nothing's authenticated, so use with care.
17698     - Rather than waiting a fixed amount of time between retrying
17699       application connections, we wait only 5 seconds for the first,
17700       10 seconds for the second, and 15 seconds for each retry after
17701       that. Hopefully this will improve the expected user experience.
17702     - Patch from Tup to add support for transparent AP connections:
17703       this basically bundles the functionality of trans-proxy-tor
17704       into the Tor mainline. Now hosts with compliant pf/netfilter
17705       implementations can redirect TCP connections straight to Tor
17706       without diverting through SOCKS. Needs docs.
17707     - Busy directory servers save lots of memory by spooling server
17708       descriptors, v1 directories, and v2 networkstatus docs to buffers
17709       as needed rather than en masse. Also mmap the cached-routers
17710       files, so we don't need to keep the whole thing in memory too.
17711     - Automatically avoid picking more than one node from the same
17712       /16 network when constructing a circuit.
17713     - Revise and clean up the torrc.sample that we ship with; add
17714       a section for BandwidthRate and BandwidthBurst.
17716   o Minor features:
17717     - Split circuit_t into origin_circuit_t and or_circuit_t, and
17718       split connection_t into edge, or, dir, control, and base structs.
17719       These will save quite a bit of memory on busy servers, and they'll
17720       also help us track down bugs in the code and bugs in the spec.
17721     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
17722       or later. Log when we are doing this, so we can diagnose it when
17723       it fails. (Also, recommend libevent 1.1b for kqueue and
17724       win32 methods; deprecate libevent 1.0b harder; make libevent
17725       recommendation system saner.)
17726     - Start being able to build universal binaries on OS X (thanks
17727       to Phobos).
17728     - Export the default exit policy via the control port, so controllers
17729       don't need to guess what it is / will be later.
17730     - Add a man page entry for ProtocolWarnings.
17731     - Add TestVia config option to the man page.
17732     - Remove even more protocol-related warnings from Tor server logs,
17733       such as bad TLS handshakes and malformed begin cells.
17734     - Stop fetching descriptors if you're not a dir mirror and you
17735       haven't tried to establish any circuits lately. [This currently
17736       causes some dangerous behavior, because when you start up again
17737       you'll use your ancient server descriptors.]
17738     - New DirPort behavior: if you have your dirport set, you download
17739       descriptors aggressively like a directory mirror, whether or not
17740       your ORPort is set.
17741     - Get rid of the router_retry_connections notion. Now routers
17742       no longer try to rebuild long-term connections to directory
17743       authorities, and directory authorities no longer try to rebuild
17744       long-term connections to all servers. We still don't hang up
17745       connections in these two cases though -- we need to look at it
17746       more carefully to avoid flapping, and we likely need to wait til
17747       0.1.1.x is obsolete.
17748     - Drop compatibility with obsolete Tors that permit create cells
17749       to have the wrong circ_id_type.
17750     - Re-enable per-connection rate limiting. Get rid of the "OP
17751       bandwidth" concept. Lay groundwork for "bandwidth classes" --
17752       separate global buckets that apply depending on what sort of conn
17753       it is.
17754     - Start publishing one minute or so after we find our ORPort
17755       to be reachable. This will help reduce the number of descriptors
17756       we have for ourselves floating around, since it's quite likely
17757       other things (e.g. DirPort) will change during that minute too.
17758     - Fork the v1 directory protocol into its own spec document,
17759       and mark dir-spec.txt as the currently correct (v2) spec.
17761   o Major bugfixes:
17762     - When we find our DirPort to be reachable, publish a new descriptor
17763       so we'll tell the world (reported by pnx).
17764     - Publish a new descriptor after we hup/reload. This is important
17765       if our config has changed such that we'll want to start advertising
17766       our DirPort now, etc.
17767     - Allow Tor to start when RunAsDaemon is set but no logs are set.
17768     - When we have a state file we cannot parse, tell the user and
17769       move it aside. Now we avoid situations where the user starts
17770       Tor in 1904, Tor writes a state file with that timestamp in it,
17771       the user fixes her clock, and Tor refuses to start.
17772     - Fix configure.in to not produce broken configure files with
17773       more recent versions of autoconf. Thanks to Clint for his auto*
17774       voodoo.
17775     - "tor --verify-config" now exits with -1(255) or 0 depending on
17776       whether the config options are bad or good.
17777     - Resolve bug 321 when using dnsworkers: append a period to every
17778       address we resolve at the exit node, so that we do not accidentally
17779       pick up local addresses, and so that failing searches are retried
17780       in the resolver search domains. (This is already solved for
17781       eventdns.) (This breaks Blossom servers for now.)
17782     - If we are using an exit enclave and we can't connect, e.g. because
17783       its webserver is misconfigured to not listen on localhost, then
17784       back off and try connecting from somewhere else before we fail.
17786   o Minor bugfixes:
17787     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
17788     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
17789     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
17790       when the IP address is mapped through MapAddress to a hostname.
17791     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
17792       useless IPv6 DNS resolves.
17793     - Patch suggested by Karsten Loesing: respond to SIGNAL command
17794       before we execute the signal, in case the signal shuts us down.
17795     - Clean up AllowInvalidNodes man page entry.
17796     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
17797     - Add more asserts to track down an assert error on a windows Tor
17798       server with connection_add being called with socket == -1.
17799     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
17800     - Fix misleading log messages: an entry guard that is "unlisted",
17801       as well as not known to be "down" (because we've never heard
17802       of it), is not therefore "up".
17803     - Remove code to special-case "-cvs" ending, since it has not
17804       actually mattered since 0.0.9.
17805     - Make our socks5 handling more robust to broken socks clients:
17806       throw out everything waiting on the buffer in between socks
17807       handshake phases, since they can't possibly (so the theory
17808       goes) have predicted what we plan to respond to them.
17811 Changes in version 0.1.1.23 - 2006-07-30
17812   o Major bugfixes:
17813     - Fast Tor servers, especially exit nodes, were triggering asserts
17814       due to a bug in handling the list of pending DNS resolves. Some
17815       bugs still remain here; we're hunting them.
17816     - Entry guards could crash clients by sending unexpected input.
17817     - More fixes on reachability testing: if you find yourself reachable,
17818       then don't ever make any client requests (so you stop predicting
17819       circuits), then hup or have your clock jump, then later your IP
17820       changes, you won't think circuits are working, so you won't try to
17821       test reachability, so you won't publish.
17823   o Minor bugfixes:
17824     - Avoid a crash if the controller does a resetconf firewallports
17825       and then a setconf fascistfirewall=1.
17826     - Avoid an integer underflow when the dir authority decides whether
17827       a router is stable: we might wrongly label it stable, and compute
17828       a slightly wrong median stability, when a descriptor is published
17829       later than now.
17830     - Fix a place where we might trigger an assert if we can't build our
17831       own server descriptor yet.
17834 Changes in version 0.1.1.22 - 2006-07-05
17835   o Major bugfixes:
17836     - Fix a big bug that was causing servers to not find themselves
17837       reachable if they changed IP addresses. Since only 0.1.1.22+
17838       servers can do reachability testing correctly, now we automatically
17839       make sure to test via one of these.
17840     - Fix to allow clients and mirrors to learn directory info from
17841       descriptor downloads that get cut off partway through.
17842     - Directory authorities had a bug in deciding if a newly published
17843       descriptor was novel enough to make everybody want a copy -- a few
17844       servers seem to be publishing new descriptors many times a minute.
17845   o Minor bugfixes:
17846     - Fix a rare bug that was causing some servers to complain about
17847       "closing wedged cpuworkers" and skip some circuit create requests.
17848     - Make the Exit flag in directory status documents actually work.
17851 Changes in version 0.1.1.21 - 2006-06-10
17852   o Crash and assert fixes from 0.1.1.20:
17853     - Fix a rare crash on Tor servers that have enabled hibernation.
17854     - Fix a seg fault on startup for Tor networks that use only one
17855       directory authority.
17856     - Fix an assert from a race condition that occurs on Tor servers
17857       while exiting, where various threads are trying to log that they're
17858       exiting, and delete the logs, at the same time.
17859     - Make our unit tests pass again on certain obscure platforms.
17861   o Other fixes:
17862     - Add support for building SUSE RPM packages.
17863     - Speed up initial bootstrapping for clients: if we are making our
17864       first ever connection to any entry guard, then don't mark it down
17865       right after that.
17866     - When only one Tor server in the network is labelled as a guard,
17867       and we've already picked him, we would cycle endlessly picking him
17868       again, being unhappy about it, etc. Now we specifically exclude
17869       current guards when picking a new guard.
17870     - Servers send create cells more reliably after the TLS connection
17871       is established: we were sometimes forgetting to send half of them
17872       when we had more than one pending.
17873     - If we get a create cell that asks us to extend somewhere, but the
17874       Tor server there doesn't match the expected digest, we now send
17875       a destroy cell back, rather than silently doing nothing.
17876     - Make options->RedirectExit work again.
17877     - Make cookie authentication for the controller work again.
17878     - Stop being picky about unusual characters in the arguments to
17879       mapaddress. It's none of our business.
17880     - Add a new config option "TestVia" that lets you specify preferred
17881       middle hops to use for test circuits. Perhaps this will let me
17882       debug the reachability problems better.
17884   o Log / documentation fixes:
17885     - If we're a server and some peer has a broken TLS certificate, don't
17886       log about it unless ProtocolWarnings is set, i.e., we want to hear
17887       about protocol violations by others.
17888     - Fix spelling of VirtualAddrNetwork in man page.
17889     - Add a better explanation at the top of the autogenerated torrc file
17890       about what happened to our old torrc.
17893 Changes in version 0.1.1.20 - 2006-05-23
17894   o Bugfixes:
17895     - Downgrade a log severity where servers complain that they're
17896       invalid.
17897     - Avoid a compile warning on FreeBSD.
17898     - Remove string size limit on NEWDESC messages; solve bug 291.
17899     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
17900       more thoroughly when we're running on windows.
17903 Changes in version 0.1.1.19-rc - 2006-05-03
17904   o Minor bugs:
17905     - Regenerate our local descriptor if it's dirty and we try to use
17906       it locally (e.g. if it changes during reachability detection).
17907     - If we setconf our ORPort to 0, we continued to listen on the
17908       old ORPort and receive connections.
17909     - Avoid a second warning about machine/limits.h on Debian
17910       GNU/kFreeBSD.
17911     - Be willing to add our own routerinfo into the routerlist.
17912       Now authorities will include themselves in their directories
17913       and network-statuses.
17914     - Stop trying to upload rendezvous descriptors to every
17915       directory authority: only try the v1 authorities.
17916     - Servers no longer complain when they think they're not
17917       registered with the directory authorities. There were too many
17918       false positives.
17919     - Backport dist-rpm changes so rpms can be built without errors.
17921   o Features:
17922     - Implement an option, VirtualAddrMask, to set which addresses
17923       get handed out in response to mapaddress requests. This works
17924       around a bug in tsocks where 127.0.0.0/8 is never socksified.
17927 Changes in version 0.1.1.18-rc - 2006-04-10
17928   o Major fixes:
17929     - Work harder to download live network-statuses from all the
17930       directory authorities we know about. Improve the threshold
17931       decision logic so we're more robust to edge cases.
17932     - When fetching rendezvous descriptors, we were willing to ask
17933       v2 authorities too, which would always return 404.
17935   o Minor fixes:
17936     - Stop listing down or invalid nodes in the v1 directory. This will
17937       reduce its bulk by about 1/3, and reduce load on directory
17938       mirrors.
17939     - When deciding whether a router is Fast or Guard-worthy, consider
17940       his advertised BandwidthRate and not just the BandwidthCapacity.
17941     - No longer ship INSTALL and README files -- they are useless now.
17942     - Force rpmbuild to behave and honor target_cpu.
17943     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
17944     - Start to include translated versions of the tor-doc-*.html
17945       files, along with the screenshots. Still needs more work.
17946     - Start sending back 512 and 451 errors if mapaddress fails,
17947       rather than not sending anything back at all.
17948     - When we fail to bind or listen on an incoming or outgoing
17949       socket, we should close it before failing. otherwise we just
17950       leak it. (thanks to weasel for finding.)
17951     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
17952       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
17953     - Make NoPublish (even though deprecated) work again.
17954     - Fix a minor security flaw where a versioning auth dirserver
17955       could list a recommended version many times in a row to make
17956       clients more convinced that it's recommended.
17957     - Fix crash bug if there are two unregistered servers running
17958       with the same nickname, one of them is down, and you ask for
17959       them by nickname in your EntryNodes or ExitNodes. Also, try
17960       to pick the one that's running rather than an arbitrary one.
17961     - Fix an infinite loop we could hit if we go offline for too long.
17962     - Complain when we hit WSAENOBUFS on recv() or write() too.
17963       Perhaps this will help us hunt the bug.
17964     - If you're not a versioning dirserver, don't put the string
17965       "client-versions \nserver-versions \n" in your network-status.
17966     - Lower the minimum required number of file descriptors to 1000,
17967       so we can have some overhead for Valgrind on Linux, where the
17968       default ulimit -n is 1024.
17970   o New features:
17971     - Add tor.dizum.com as the fifth authoritative directory server.
17972     - Add a new config option FetchUselessDescriptors, off by default,
17973       for when you plan to run "exitlist" on your client and you want
17974       to know about even the non-running descriptors.
17977 Changes in version 0.1.1.17-rc - 2006-03-28
17978   o Major fixes:
17979     - Clients and servers since 0.1.1.10-alpha have been expiring
17980       connections whenever they are idle for 5 minutes and they *do*
17981       have circuits on them. Oops. With this new version, clients will
17982       discard their previous entry guard choices and avoid choosing
17983       entry guards running these flawed versions.
17984     - Fix memory leak when uncompressing concatenated zlib streams. This
17985       was causing substantial leaks over time on Tor servers.
17986     - The v1 directory was including servers as much as 48 hours old,
17987       because that's how the new routerlist->routers works. Now only
17988       include them if they're 20 hours old or less.
17990   o Minor fixes:
17991     - Resume building on irix64, netbsd 2.0, etc.
17992     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
17993       "-Wall -g -O2".
17994     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
17995       and it is confusing some users.
17996     - Mirrors stop caching the v1 directory so often.
17997     - Make the max number of old descriptors that a cache will hold
17998       rise with the number of directory authorities, so we can scale.
17999     - Change our win32 uname() hack to be more forgiving about what
18000       win32 versions it thinks it's found.
18002   o New features:
18003     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
18004       server.
18005     - When the controller's *setconf commands fail, collect an error
18006       message in a string and hand it back to the controller.
18007     - Make the v2 dir's "Fast" flag based on relative capacity, just
18008       like "Stable" is based on median uptime. Name everything in the
18009       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
18010     - Log server fingerprint on startup, so new server operators don't
18011       have to go hunting around their filesystem for it.
18012     - Return a robots.txt on our dirport to discourage google indexing.
18013     - Let the controller ask for GETINFO dir/status/foo so it can ask
18014       directly rather than connecting to the dir port. Only works when
18015       dirport is set for now.
18017   o New config options rather than constants in the code:
18018     - SocksTimeout: How long do we let a socks connection wait
18019       unattached before we fail it?
18020     - CircuitBuildTimeout: Cull non-open circuits that were born
18021       at least this many seconds ago.
18022     - CircuitIdleTimeout: Cull open clean circuits that were born
18023       at least this many seconds ago.
18026 Changes in version 0.1.1.16-rc - 2006-03-18
18027   o Bugfixes on 0.1.1.15-rc:
18028     - Fix assert when the controller asks to attachstream a connect-wait
18029       or resolve-wait stream.
18030     - Now do address rewriting when the controller asks us to attach
18031       to a particular circuit too. This will let Blossom specify
18032       "moria2.exit" without having to learn what moria2's IP address is.
18033     - Make the "tor --verify-config" command-line work again, so people
18034       can automatically check if their torrc will parse.
18035     - Authoritative dirservers no longer require an open connection from
18036       a server to consider him "reachable". We need this change because
18037       when we add new auth dirservers, old servers won't know not to
18038       hang up on them.
18039     - Let Tor build on Sun CC again.
18040     - Fix an off-by-one buffer size in dirserv.c that magically never
18041       hit our three authorities but broke sjmurdoch's own tor network.
18042     - If we as a directory mirror don't know of any v1 directory
18043       authorities, then don't try to cache any v1 directories.
18044     - Stop warning about unknown servers in our family when they are
18045       given as hex digests.
18046     - Stop complaining as quickly to the server operator that he
18047       hasn't registered his nickname/key binding.
18048     - Various cleanups so we can add new V2 Auth Dirservers.
18049     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
18050       reflect the updated flags in our v2 dir protocol.
18051     - Resume allowing non-printable characters for exit streams (both
18052       for connecting and for resolving). Now we tolerate applications
18053       that don't follow the RFCs. But continue to block malformed names
18054       at the socks side.
18056   o Bugfixes on 0.1.0.x:
18057     - Fix assert bug in close_logs(): when we close and delete logs,
18058       remove them all from the global "logfiles" list.
18059     - Fix minor integer overflow in calculating when we expect to use up
18060       our bandwidth allocation before hibernating.
18061     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
18062       there are multiple SSLs installed with different versions.
18063     - When we try to be a server and Address is not explicitly set and
18064       our hostname resolves to a private IP address, try to use an
18065       interface address if it has a public address. Now Windows machines
18066       that think of themselves as localhost can work by default.
18068   o New features:
18069     - Let the controller ask for GETINFO dir/server/foo so it can ask
18070       directly rather than connecting to the dir port.
18071     - Let the controller tell us about certain router descriptors
18072       that it doesn't want Tor to use in circuits. Implement
18073       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
18074     - New config option SafeSocks to reject all application connections
18075       using unsafe socks protocols. Defaults to off.
18078 Changes in version 0.1.1.15-rc - 2006-03-11
18079   o Bugfixes and cleanups:
18080     - When we're printing strings from the network, don't try to print
18081       non-printable characters. This protects us against shell escape
18082       sequence exploits, and also against attacks to fool humans into
18083       misreading their logs.
18084     - Fix a bug where Tor would fail to establish any connections if you
18085       left it off for 24 hours and then started it: we were happy with
18086       the obsolete network statuses, but they all referred to router
18087       descriptors that were too old to fetch, so we ended up with no
18088       valid router descriptors.
18089     - Fix a seg fault in the controller's "getinfo orconn-status"
18090       command while listing status on incoming handshaking connections.
18091       Introduce a status name "NEW" for these connections.
18092     - If we get a linelist or linelist_s config option from the torrc
18093       (e.g. ExitPolicy) and it has no value, warn and skip rather than
18094       silently resetting it to its default.
18095     - Don't abandon entry guards until they've been down or gone for
18096       a whole month.
18097     - Cleaner and quieter log messages.
18099   o New features:
18100     - New controller signal NEWNYM that makes new application requests
18101       use clean circuits.
18102     - Add a new circuit purpose 'controller' to let the controller ask
18103       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
18104       controller command to let you specify the purpose if you're
18105       starting a new circuit. Add a new SETCIRCUITPURPOSE controller
18106       command to let you change a circuit's purpose after it's been
18107       created.
18108     - Accept "private:*" in routerdesc exit policies; not generated yet
18109       because older Tors do not understand it.
18110     - Add BSD-style contributed startup script "rc.subr" from Peter
18111       Thoenen.
18114 Changes in version 0.1.1.14-alpha - 2006-02-20
18115   o Bugfixes on 0.1.1.x:
18116     - Don't die if we ask for a stdout or stderr log (even implicitly)
18117       and we're set to RunAsDaemon -- just warn.
18118     - We still had a few bugs in the OR connection rotation code that
18119       caused directory servers to slowly aggregate connections to other
18120       fast Tor servers. This time for sure!
18121     - Make log entries on Win32 include the name of the function again.
18122     - We were treating a pair of exit policies if they were equal even
18123       if one said accept and the other said reject -- causing us to
18124       not always publish a new descriptor since we thought nothing
18125       had changed.
18126     - Retry pending server downloads as well as pending networkstatus
18127       downloads when we unexpectedly get a socks request.
18128     - We were ignoring the IS_FAST flag in the directory status,
18129       meaning we were willing to pick trivial-bandwidth nodes for "fast"
18130       connections.
18131     - If the controller's SAVECONF command fails (e.g. due to file
18132       permissions), let the controller know that it failed.
18134   o Features:
18135     - If we're trying to be a Tor server and running Windows 95/98/ME
18136       as a server, explain that we'll likely crash.
18137     - When we're a server, a client asks for an old-style directory,
18138       and our write bucket is empty, don't give it to him. This way
18139       small servers can continue to serve the directory *sometimes*,
18140       without getting overloaded.
18141     - Compress exit policies even more -- look for duplicate lines
18142       and remove them.
18143     - Clients now honor the "guard" flag in the router status when
18144       picking entry guards, rather than looking at is_fast or is_stable.
18145     - Retain unrecognized lines in $DATADIR/state file, so that we can
18146       be forward-compatible.
18147     - Generate 18.0.0.0/8 address policy format in descs when we can;
18148       warn when the mask is not reducible to a bit-prefix.
18149     - Let the user set ControlListenAddress in the torrc. This can be
18150       dangerous, but there are some cases (like a secured LAN) where it
18151       makes sense.
18152     - Split ReachableAddresses into ReachableDirAddresses and
18153       ReachableORAddresses, so we can restrict Dir conns to port 80
18154       and OR conns to port 443.
18155     - Now we can target arch and OS in rpm builds (contributed by
18156       Phobos). Also make the resulting dist-rpm filename match the
18157       target arch.
18158     - New config options to help controllers: FetchServerDescriptors
18159       and FetchHidServDescriptors for whether to fetch server
18160       info and hidserv info or let the controller do it, and
18161       PublishServerDescriptor and PublishHidServDescriptors.
18162     - Also let the controller set the __AllDirActionsPrivate config
18163       option if you want all directory fetches/publishes to happen via
18164       Tor (it assumes your controller bootstraps your circuits).
18167 Changes in version 0.1.0.17 - 2006-02-17
18168   o Crash bugfixes on 0.1.0.x:
18169     - When servers with a non-zero DirPort came out of hibernation,
18170       sometimes they would trigger an assert.
18172   o Other important bugfixes:
18173     - On platforms that don't have getrlimit (like Windows), we were
18174       artificially constraining ourselves to a max of 1024
18175       connections. Now just assume that we can handle as many as 15000
18176       connections. Hopefully this won't cause other problems.
18178   o Backported features:
18179     - When we're a server, a client asks for an old-style directory,
18180       and our write bucket is empty, don't give it to him. This way
18181       small servers can continue to serve the directory *sometimes*,
18182       without getting overloaded.
18183     - Whenever you get a 503 in response to a directory fetch, try
18184       once more. This will become important once servers start sending
18185       503's whenever they feel busy.
18186     - Fetch a new directory every 120 minutes, not every 40 minutes.
18187       Now that we have hundreds of thousands of users running the old
18188       directory algorithm, it's starting to hurt a lot.
18189     - Bump up the period for forcing a hidden service descriptor upload
18190       from 20 minutes to 1 hour.
18193 Changes in version 0.1.1.13-alpha - 2006-02-09
18194   o Crashes in 0.1.1.x:
18195     - When you tried to setconf ORPort via the controller, Tor would
18196       crash. So people using TorCP to become a server were sad.
18197     - Solve (I hope) the stack-smashing bug that we were seeing on fast
18198       servers. The problem appears to be something do with OpenSSL's
18199       random number generation, or how we call it, or something. Let me
18200       know if the crashes continue.
18201     - Turn crypto hardware acceleration off by default, until we find
18202       somebody smart who can test it for us. (It appears to produce
18203       seg faults in at least some cases.)
18204     - Fix a rare assert error when we've tried all intro points for
18205       a hidden service and we try fetching the service descriptor again:
18206       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
18208   o Major fixes:
18209     - Fix a major load balance bug: we were round-robining in 16 KB
18210       chunks, and servers with bandwidthrate of 20 KB, while downloading
18211       a 600 KB directory, would starve their other connections. Now we
18212       try to be a bit more fair.
18213     - Dir authorities and mirrors were never expiring the newest
18214       descriptor for each server, causing memory and directory bloat.
18215     - Fix memory-bloating and connection-bloating bug on servers: We
18216       were never closing any connection that had ever had a circuit on
18217       it, because we were checking conn->n_circuits == 0, yet we had a
18218       bug that let it go negative.
18219     - Make Tor work using squid as your http proxy again -- squid
18220       returns an error if you ask for a URL that's too long, and it uses
18221       a really generic error message. Plus, many people are behind a
18222       transparent squid so they don't even realize it.
18223     - On platforms that don't have getrlimit (like Windows), we were
18224       artificially constraining ourselves to a max of 1024
18225       connections. Now just assume that we can handle as many as 15000
18226       connections. Hopefully this won't cause other problems.
18227     - Add a new config option ExitPolicyRejectPrivate which defaults to
18228       1. This means all exit policies will begin with rejecting private
18229       addresses, unless the server operator explicitly turns it off.
18231   o Major features:
18232     - Clients no longer download descriptors for non-running
18233       descriptors.
18234     - Before we add new directory authorities, we should make it
18235       clear that only v1 authorities should receive/publish hidden
18236       service descriptors.
18238   o Minor features:
18239     - As soon as we've fetched some more directory info, immediately
18240       try to download more server descriptors. This way we don't have
18241       a 10 second pause during initial bootstrapping.
18242     - Remove even more loud log messages that the server operator can't
18243       do anything about.
18244     - When we're running an obsolete or un-recommended version, make
18245       the log message more clear about what the problem is and what
18246       versions *are* still recommended.
18247     - Provide a more useful warn message when our onion queue gets full:
18248       the CPU is too slow or the exit policy is too liberal.
18249     - Don't warn when we receive a 503 from a dirserver/cache -- this
18250       will pave the way for them being able to refuse if they're busy.
18251     - When we fail to bind a listener, try to provide a more useful
18252       log message: e.g., "Is Tor already running?"
18253     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
18254       Goldberg can prove things about our handshake protocol more
18255       easily.
18256     - MaxConn has been obsolete for a while now. Document the ConnLimit
18257       config option, which is a *minimum* number of file descriptors
18258       that must be available else Tor refuses to start.
18259     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
18260       if you log to syslog and want something other than LOG_DAEMON.
18261     - Make dirservers generate a separate "guard" flag to mean,
18262       "would make a good entry guard". Make clients parse it and vote
18263       on it. Not used by clients yet.
18264     - Implement --with-libevent-dir option to ./configure. Also, improve
18265       search techniques to find libevent, and use those for openssl too.
18266     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
18267     - Only start testing reachability once we've established a
18268       circuit. This will make startup on dirservers less noisy.
18269     - Don't try to upload hidden service descriptors until we have
18270       established a circuit.
18271     - Fix the controller's "attachstream 0" command to treat conn like
18272       it just connected, doing address remapping, handling .exit and
18273       .onion idioms, and so on. Now we're more uniform in making sure
18274       that the controller hears about new and closing connections.
18277 Changes in version 0.1.1.12-alpha - 2006-01-11
18278   o Bugfixes on 0.1.1.x:
18279     - The fix to close duplicate server connections was closing all
18280       Tor client connections if they didn't establish a circuit
18281       quickly enough. Oops.
18282     - Fix minor memory issue (double-free) that happened on exit.
18284   o Bugfixes on 0.1.0.x:
18285     - Tor didn't warn when it failed to open a log file.
18288 Changes in version 0.1.1.11-alpha - 2006-01-10
18289   o Crashes in 0.1.1.x:
18290     - Include all the assert/crash fixes from 0.1.0.16.
18291     - If you start Tor and then quit very quickly, there were some
18292       races that tried to free things that weren't allocated yet.
18293     - Fix a rare memory stomp if you're running hidden services.
18294     - Fix segfault when specifying DirServer in config without nickname.
18295     - Fix a seg fault when you finish connecting to a server but at
18296       that moment you dump his server descriptor.
18297     - Extendcircuit and Attachstream controller commands would
18298       assert/crash if you don't give them enough arguments.
18299     - Fix an assert error when we're out of space in the connection_list
18300       and we try to post a hidden service descriptor (reported by weasel).
18301     - If you specify a relative torrc path and you set RunAsDaemon in
18302       your torrc, then it chdir()'s to the new directory. If you HUP,
18303       it tries to load the new torrc location, fails, and exits.
18304       The fix: no longer allow a relative path to torrc using -f.
18306   o Major features:
18307     - Implement "entry guards": automatically choose a handful of entry
18308       nodes and stick with them for all circuits. Only pick new guards
18309       when the ones you have are unsuitable, and if the old guards
18310       become suitable again, switch back. This will increase security
18311       dramatically against certain end-point attacks. The EntryNodes
18312       config option now provides some hints about which entry guards you
18313       want to use most; and StrictEntryNodes means to only use those.
18314     - New directory logic: download by descriptor digest, not by
18315       fingerprint. Caches try to download all listed digests from
18316       authorities; clients try to download "best" digests from caches.
18317       This avoids partitioning and isolating attacks better.
18318     - Make the "stable" router flag in network-status be the median of
18319       the uptimes of running valid servers, and make clients pay
18320       attention to the network-status flags. Thus the cutoff adapts
18321       to the stability of the network as a whole, making IRC, IM, etc
18322       connections more reliable.
18324   o Major fixes:
18325     - Tor servers with dynamic IP addresses were needing to wait 18
18326       hours before they could start doing reachability testing using
18327       the new IP address and ports. This is because they were using
18328       the internal descriptor to learn what to test, yet they were only
18329       rebuilding the descriptor once they decided they were reachable.
18330     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
18331       to download certain server descriptors, throw them away, and then
18332       fetch them again after 30 minutes. Now mirrors throw away these
18333       server descriptors so clients can't get them.
18334     - We were leaving duplicate connections to other ORs open for a week,
18335       rather than closing them once we detect a duplicate. This only
18336       really affected authdirservers, but it affected them a lot.
18337     - Spread the authdirservers' reachability testing over the entire
18338       testing interval, so we don't try to do 500 TLS's at once every
18339       20 minutes.
18341   o Minor fixes:
18342     - If the network is down, and we try to connect to a conn because
18343       we have a circuit in mind, and we timeout (30 seconds) because the
18344       network never answers, we were expiring the circuit, but we weren't
18345       obsoleting the connection or telling the entry_guards functions.
18346     - Some Tor servers process billions of cells per day. These statistics
18347       need to be uint64_t's.
18348     - Check for integer overflows in more places, when adding elements
18349       to smartlists. This could possibly prevent a buffer overflow
18350       on malicious huge inputs. I don't see any, but I haven't looked
18351       carefully.
18352     - ReachableAddresses kept growing new "reject *:*" lines on every
18353       setconf/reload.
18354     - When you "setconf log" via the controller, it should remove all
18355       logs. We were automatically adding back in a "log notice stdout".
18356     - Newly bootstrapped Tor networks couldn't establish hidden service
18357       circuits until they had nodes with high uptime. Be more tolerant.
18358     - We were marking servers down when they could not answer every piece
18359       of the directory request we sent them. This was far too harsh.
18360     - Fix the torify (tsocks) config file to not use Tor for localhost
18361       connections.
18362     - Directory authorities now go to the proper authority when asking for
18363       a networkstatus, even when they want a compressed one.
18364     - Fix a harmless bug that was causing Tor servers to log
18365       "Got an end because of misc error, but we're not an AP. Closing."
18366     - Authorities were treating their own descriptor changes as cosmetic,
18367       meaning the descriptor available in the network-status and the
18368       descriptor that clients downloaded were different.
18369     - The OS X installer was adding a symlink for tor_resolve but
18370       the binary was called tor-resolve (reported by Thomas Hardly).
18371     - Workaround a problem with some http proxies where they refuse GET
18372       requests that specify "Content-Length: 0" (reported by Adrian).
18373     - Fix wrong log message when you add a "HiddenServiceNodes" config
18374       line without any HiddenServiceDir line (reported by Chris Thomas).
18376   o Minor features:
18377     - Write the TorVersion into the state file so we have a prayer of
18378       keeping forward and backward compatibility.
18379     - Revive the FascistFirewall config option rather than eliminating it:
18380       now it's a synonym for ReachableAddresses *:80,*:443.
18381     - Clients choose directory servers from the network status lists,
18382       not from their internal list of router descriptors. Now they can
18383       go to caches directly rather than needing to go to authorities
18384       to bootstrap.
18385     - Directory authorities ignore router descriptors that have only
18386       cosmetic differences: do this for 0.1.0.x servers now too.
18387     - Add a new flag to network-status indicating whether the server
18388       can answer v2 directory requests too.
18389     - Authdirs now stop whining so loudly about bad descriptors that
18390       they fetch from other dirservers. So when there's a log complaint,
18391       it's for sure from a freshly uploaded descriptor.
18392     - Reduce memory requirements in our structs by changing the order
18393       of fields.
18394     - There used to be two ways to specify your listening ports in a
18395       server descriptor: on the "router" line and with a separate "ports"
18396       line. Remove support for the "ports" line.
18397     - New config option "AuthDirRejectUnlisted" for auth dirservers as
18398       a panic button: if we get flooded with unusable servers we can
18399       revert to only listing servers in the approved-routers file.
18400     - Auth dir servers can now mark a fingerprint as "!reject" or
18401       "!invalid" in the approved-routers file (as its nickname), to
18402       refuse descriptors outright or include them but marked as invalid.
18403     - Servers store bandwidth history across restarts/crashes.
18404     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
18405       get a better idea of why their circuits failed. Not used yet.
18406     - Directory mirrors now cache up to 16 unrecognized network-status
18407       docs. Now we can add new authdirservers and they'll be cached too.
18408     - When picking a random directory, prefer non-authorities if any
18409       are known.
18410     - New controller option "getinfo desc/all-recent" to fetch the
18411       latest server descriptor for every router that Tor knows about.
18414 Changes in version 0.1.0.16 - 2006-01-02
18415   o Crash bugfixes on 0.1.0.x:
18416     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
18417       corrupting the heap, losing FDs, or crashing when we need to resize
18418       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
18419     - It turns out sparc64 platforms crash on unaligned memory access
18420       too -- so detect and avoid this.
18421     - Handle truncated compressed data correctly (by detecting it and
18422       giving an error).
18423     - Fix possible-but-unlikely free(NULL) in control.c.
18424     - When we were closing connections, there was a rare case that
18425       stomped on memory, triggering seg faults and asserts.
18426     - Avoid potential infinite recursion when building a descriptor. (We
18427       don't know that it ever happened, but better to fix it anyway.)
18428     - We were neglecting to unlink marked circuits from soon-to-close OR
18429       connections, which caused some rare scribbling on freed memory.
18430     - Fix a memory stomping race bug when closing the joining point of two
18431       rendezvous circuits.
18432     - Fix an assert in time parsing found by Steven Murdoch.
18434   o Other bugfixes on 0.1.0.x:
18435     - When we're doing reachability testing, provide more useful log
18436       messages so the operator knows what to expect.
18437     - Do not check whether DirPort is reachable when we are suppressing
18438       advertising it because of hibernation.
18439     - When building with -static or on Solaris, we sometimes needed -ldl.
18440     - When we're deciding whether a stream has enough circuits around
18441       that can handle it, count the freshly dirty ones and not the ones
18442       that are so dirty they won't be able to handle it.
18443     - When we're expiring old circuits, we had a logic error that caused
18444       us to close new rendezvous circuits rather than old ones.
18445     - Give a more helpful log message when you try to change ORPort via
18446       the controller: you should upgrade Tor if you want that to work.
18447     - We were failing to parse Tor versions that start with "Tor ".
18448     - Tolerate faulty streams better: when a stream fails for reason
18449       exitpolicy, stop assuming that the router is lying about his exit
18450       policy. When a stream fails for reason misc, allow it to retry just
18451       as if it was resolvefailed. When a stream has failed three times,
18452       reset its failure count so we can try again and get all three tries.
18455 Changes in version 0.1.1.10-alpha - 2005-12-11
18456   o Correctness bugfixes on 0.1.0.x:
18457     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
18458       corrupting the heap, losing FDs, or crashing when we need to resize
18459       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
18460     - Stop doing the complex voodoo overkill checking for insecure
18461       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
18462     - When we were closing connections, there was a rare case that
18463       stomped on memory, triggering seg faults and asserts.
18464     - We were neglecting to unlink marked circuits from soon-to-close OR
18465       connections, which caused some rare scribbling on freed memory.
18466     - When we're deciding whether a stream has enough circuits around
18467       that can handle it, count the freshly dirty ones and not the ones
18468       that are so dirty they won't be able to handle it.
18469     - Recover better from TCP connections to Tor servers that are
18470       broken but don't tell you (it happens!); and rotate TLS
18471       connections once a week.
18472     - When we're expiring old circuits, we had a logic error that caused
18473       us to close new rendezvous circuits rather than old ones.
18474     - Fix a scary-looking but apparently harmless bug where circuits
18475       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
18476       servers, and never switch to state CIRCUIT_STATE_OPEN.
18477     - When building with -static or on Solaris, we sometimes needed to
18478       build with -ldl.
18479     - Give a useful message when people run Tor as the wrong user,
18480       rather than telling them to start chowning random directories.
18481     - We were failing to inform the controller about new .onion streams.
18483   o Security bugfixes on 0.1.0.x:
18484     - Refuse server descriptors if the fingerprint line doesn't match
18485       the included identity key. Tor doesn't care, but other apps (and
18486       humans) might actually be trusting the fingerprint line.
18487     - We used to kill the circuit when we receive a relay command we
18488       don't recognize. Now we just drop it.
18489     - Start obeying our firewall options more rigorously:
18490       . If we can't get to a dirserver directly, try going via Tor.
18491       . Don't ever try to connect (as a client) to a place our
18492         firewall options forbid.
18493       . If we specify a proxy and also firewall options, obey the
18494         firewall options even when we're using the proxy: some proxies
18495         can only proxy to certain destinations.
18496     - Fix a bug found by Lasse Overlier: when we were making internal
18497       circuits (intended to be cannibalized later for rendezvous and
18498       introduction circuits), we were picking them so that they had
18499       useful exit nodes. There was no need for this, and it actually
18500       aids some statistical attacks.
18501     - Start treating internal circuits and exit circuits separately.
18502       It's important to keep them separate because internal circuits
18503       have their last hops picked like middle hops, rather than like
18504       exit hops. So exiting on them will break the user's expectations.
18506   o Bugfixes on 0.1.1.x:
18507     - Take out the mis-feature where we tried to detect IP address
18508       flapping for people with DynDNS, and chose not to upload a new
18509       server descriptor sometimes.
18510     - Try to be compatible with OpenSSL 0.9.6 again.
18511     - Log fix: when the controller is logging about .onion addresses,
18512       sometimes it didn't include the ".onion" part of the address.
18513     - Don't try to modify options->DirServers internally -- if the
18514       user didn't specify any, just add the default ones directly to
18515       the trusted dirserver list. This fixes a bug where people running
18516       controllers would use SETCONF on some totally unrelated config
18517       option, and Tor would start yelling at them about changing their
18518       DirServer lines.
18519     - Let the controller's redirectstream command specify a port, in
18520       case the controller wants to change that too.
18521     - When we requested a pile of server descriptors, we sometimes
18522       accidentally launched a duplicate request for the first one.
18523     - Bugfix for trackhostexits: write down the fingerprint of the
18524       chosen exit, not its nickname, because the chosen exit might not
18525       be verified.
18526     - When parsing foo.exit, if foo is unknown, and we are leaving
18527       circuits unattached, set the chosen_exit field and leave the
18528       address empty. This matters because controllers got confused
18529       otherwise.
18530     - Directory authorities no longer try to download server
18531       descriptors that they know they will reject.
18533   o Features and updates:
18534     - Replace balanced trees with hash tables: this should make stuff
18535       significantly faster.
18536     - Resume using the AES counter-mode implementation that we ship,
18537       rather than OpenSSL's. Ours is significantly faster.
18538     - Many other CPU and memory improvements.
18539     - Add a new config option FastFirstHopPK (on by default) so clients
18540       do a trivial crypto handshake for their first hop, since TLS has
18541       already taken care of confidentiality and authentication.
18542     - Add a new config option TestSocks so people can see if their
18543       applications are using socks4, socks4a, socks5-with-ip, or
18544       socks5-with-hostname. This way they don't have to keep mucking
18545       with tcpdump and wondering if something got cached somewhere.
18546     - Warn when listening on a public address for socks. I suspect a
18547       lot of people are setting themselves up as open socks proxies,
18548       and they have no idea that jerks on the Internet are using them,
18549       since they simply proxy the traffic into the Tor network.
18550     - Add "private:*" as an alias in configuration for policies. Now
18551       you can simplify your exit policy rather than needing to list
18552       every single internal or nonroutable network space.
18553     - Add a new controller event type that allows controllers to get
18554       all server descriptors that were uploaded to a router in its role
18555       as authoritative dirserver.
18556     - Start shipping socks-extensions.txt, tor-doc-unix.html,
18557       tor-doc-server.html, and stylesheet.css in the tarball.
18558     - Stop shipping tor-doc.html in the tarball.
18561 Changes in version 0.1.1.9-alpha - 2005-11-15
18562   o Usability improvements:
18563     - Start calling it FooListenAddress rather than FooBindAddress,
18564       since few of our users know what it means to bind an address
18565       or port.
18566     - Reduce clutter in server logs. We're going to try to make
18567       them actually usable now. New config option ProtocolWarnings that
18568       lets you hear about how _other Tors_ are breaking the protocol. Off
18569       by default.
18570     - Divide log messages into logging domains. Once we put some sort
18571       of interface on this, it will let people looking at more verbose
18572       log levels specify the topics they want to hear more about.
18573     - Make directory servers return better http 404 error messages
18574       instead of a generic "Servers unavailable".
18575     - Check for even more Windows version flags when writing the platform
18576       string in server descriptors, and note any we don't recognize.
18577     - Clean up more of the OpenSSL memory when exiting, so we can detect
18578       memory leaks better.
18579     - Make directory authorities be non-versioning, non-naming by
18580       default. Now we can add new directory servers without requiring
18581       their operators to pay close attention.
18582     - When logging via syslog, include the pid whenever we provide
18583       a log entry. Suggested by Todd Fries.
18585   o Performance improvements:
18586     - Directory servers now silently throw away new descriptors that
18587       haven't changed much if the timestamps are similar. We do this to
18588       tolerate older Tor servers that upload a new descriptor every 15
18589       minutes. (It seemed like a good idea at the time.)
18590     - Inline bottleneck smartlist functions; use fast versions by default.
18591     - Add a "Map from digest to void*" abstraction digestmap_t so we
18592       can do less hex encoding/decoding. Use it in router_get_by_digest()
18593       to resolve a performance bottleneck.
18594     - Allow tor_gzip_uncompress to extract as much as possible from
18595       truncated compressed data. Try to extract as many
18596       descriptors as possible from truncated http responses (when
18597       DIR_PURPOSE_FETCH_ROUTERDESC).
18598     - Make circ->onionskin a pointer, not a static array. moria2 was using
18599       125000 circuit_t's after it had been up for a few weeks, which
18600       translates to 20+ megs of wasted space.
18601     - The private half of our EDH handshake keys are now chosen out
18602       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
18604   o Security improvements:
18605     - Start making directory caches retain old routerinfos, so soon
18606       clients can start asking by digest of descriptor rather than by
18607       fingerprint of server.
18608     - Add half our entropy from RAND_poll in OpenSSL. This knows how
18609       to use egd (if present), openbsd weirdness (if present), vms/os2
18610       weirdness (if we ever port there), and more in the future.
18612   o Bugfixes on 0.1.0.x:
18613     - Do round-robin writes of at most 16 kB per write. This might be
18614       more fair on loaded Tor servers, and it might resolve our Windows
18615       crash bug. It might also slow things down.
18616     - Our TLS handshakes were generating a single public/private
18617       keypair for the TLS context, rather than making a new one for
18618       each new connections. Oops. (But we were still rotating them
18619       periodically, so it's not so bad.)
18620     - When we were cannibalizing a circuit with a particular exit
18621       node in mind, we weren't checking to see if that exit node was
18622       already present earlier in the circuit. Oops.
18623     - When a Tor server's IP changes (e.g. from a dyndns address),
18624       upload a new descriptor so clients will learn too.
18625     - Really busy servers were keeping enough circuits open on stable
18626       connections that they were wrapping around the circuit_id
18627       space. (It's only two bytes.) This exposed a bug where we would
18628       feel free to reuse a circuit_id even if it still exists but has
18629       been marked for close. Try to fix this bug. Some bug remains.
18630     - If we would close a stream early (e.g. it asks for a .exit that
18631       we know would refuse it) but the LeaveStreamsUnattached config
18632       option is set by the controller, then don't close it.
18634   o Bugfixes on 0.1.1.8-alpha:
18635     - Fix a big pile of memory leaks, some of them serious.
18636     - Do not try to download a routerdesc if we would immediately reject
18637       it as obsolete.
18638     - Resume inserting a newline between all router descriptors when
18639       generating (old style) signed directories, since our spec says
18640       we do.
18641     - When providing content-type application/octet-stream for
18642       server descriptors using .z, we were leaving out the
18643       content-encoding header. Oops. (Everything tolerated this just
18644       fine, but that doesn't mean we need to be part of the problem.)
18645     - Fix a potential seg fault in getconf and getinfo using version 1
18646       of the controller protocol.
18647     - Avoid crash: do not check whether DirPort is reachable when we
18648       are suppressing it because of hibernation.
18649     - Make --hash-password not crash on exit.
18652 Changes in version 0.1.1.8-alpha - 2005-10-07
18653   o New features (major):
18654     - Clients don't download or use the directory anymore. Now they
18655       download and use network-statuses from the trusted dirservers,
18656       and fetch individual server descriptors as needed from mirrors.
18657       See dir-spec.txt for all the gory details.
18658     - Be more conservative about whether to advertise our DirPort.
18659       The main change is to not advertise if we're running at capacity
18660       and either a) we could hibernate or b) our capacity is low and
18661       we're using a default DirPort.
18662     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
18664   o New features (minor):
18665     - Try to be smart about when to retry network-status and
18666       server-descriptor fetches. Still needs some tuning.
18667     - Stop parsing, storing, or using running-routers output (but
18668       mirrors still cache and serve it).
18669     - Consider a threshold of versioning dirservers (dirservers who have
18670       an opinion about which Tor versions are still recommended) before
18671       deciding whether to warn the user that he's obsolete.
18672     - Dirservers can now reject/invalidate by key and IP, with the
18673       config options "AuthDirInvalid" and "AuthDirReject". This is
18674       useful since currently we automatically list servers as running
18675       and usable even if we know they're jerks.
18676     - Provide dire warnings to any users who set DirServer; move it out
18677       of torrc.sample and into torrc.complete.
18678     - Add MyFamily to torrc.sample in the server section.
18679     - Add nicknames to the DirServer line, so we can refer to them
18680       without requiring all our users to memorize their IP addresses.
18681     - When we get an EOF or a timeout on a directory connection, note
18682       how many bytes of serverdesc we are dropping. This will help
18683       us determine whether it is smart to parse incomplete serverdesc
18684       responses.
18685     - Add a new function to "change pseudonyms" -- that is, to stop
18686       using any currently-dirty circuits for new streams, so we don't
18687       link new actions to old actions. Currently it's only called on
18688       HUP (or SIGNAL RELOAD).
18689     - On sighup, if UseHelperNodes changed to 1, use new circuits.
18690     - Start using RAND_bytes rather than RAND_pseudo_bytes from
18691       OpenSSL. Also, reseed our entropy every hour, not just at
18692       startup. And entropy in 512-bit chunks, not 160-bit chunks.
18694   o Fixes on 0.1.1.7-alpha:
18695     - Nobody ever implemented EVENT_ADDRMAP for control protocol
18696       version 0, so don't let version 0 controllers ask for it.
18697     - If you requested something with too many newlines via the
18698       v1 controller protocol, you could crash tor.
18699     - Fix a number of memory leaks, including some pretty serious ones.
18700     - Re-enable DirPort testing again, so Tor servers will be willing
18701       to advertise their DirPort if it's reachable.
18702     - On TLS handshake, only check the other router's nickname against
18703       its expected nickname if is_named is set.
18705   o Fixes forward-ported from 0.1.0.15:
18706     - Don't crash when we don't have any spare file descriptors and we
18707       try to spawn a dns or cpu worker.
18708     - Make the numbers in read-history and write-history into uint64s,
18709       so they don't overflow and publish negatives in the descriptor.
18711   o Fixes on 0.1.0.x:
18712     - For the OS X package's modified privoxy config file, comment
18713       out the "logfile" line so we don't log everything passed
18714       through privoxy.
18715     - We were whining about using socks4 or socks5-with-local-lookup
18716       even when it's an IP in the "virtual" range we designed exactly
18717       for this case.
18718     - We were leaking some memory every time the client changes IPs.
18719     - Never call free() on tor_malloc()d memory. This will help us
18720       use dmalloc to detect memory leaks.
18721     - Check for named servers when looking them up by nickname;
18722       warn when we'recalling a non-named server by its nickname;
18723       don't warn twice about the same name.
18724     - Try to list MyFamily elements by key, not by nickname, and warn
18725       if we've not heard of the server.
18726     - Make windows platform detection (uname equivalent) smarter.
18727     - It turns out sparc64 doesn't like unaligned access either.
18730 Changes in version 0.1.0.15 - 2005-09-23
18731   o Bugfixes on 0.1.0.x:
18732     - Reject ports 465 and 587 (spam targets) in default exit policy.
18733     - Don't crash when we don't have any spare file descriptors and we
18734       try to spawn a dns or cpu worker.
18735     - Get rid of IgnoreVersion undocumented config option, and make us
18736       only warn, never exit, when we're running an obsolete version.
18737     - Don't try to print a null string when your server finds itself to
18738       be unreachable and the Address config option is empty.
18739     - Make the numbers in read-history and write-history into uint64s,
18740       so they don't overflow and publish negatives in the descriptor.
18741     - Fix a minor memory leak in smartlist_string_remove().
18742     - We were only allowing ourselves to upload a server descriptor at
18743       most every 20 minutes, even if it changed earlier than that.
18744     - Clean up log entries that pointed to old URLs.
18747 Changes in version 0.1.1.7-alpha - 2005-09-14
18748   o Fixes on 0.1.1.6-alpha:
18749     - Exit servers were crashing when people asked them to make a
18750       connection to an address not in their exit policy.
18751     - Looking up a non-existent stream for a v1 control connection would
18752       cause a segfault.
18753     - Fix a seg fault if we ask a dirserver for a descriptor by
18754       fingerprint but he doesn't know about him.
18755     - SETCONF was appending items to linelists, not clearing them.
18756     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
18757       out and refuse the setconf if it would fail.
18758     - Downgrade the dirserver log messages when whining about
18759       unreachability.
18761   o New features:
18762     - Add Peter Palfrader's check-tor script to tor/contrib/
18763       It lets you easily check whether a given server (referenced by
18764       nickname) is reachable by you.
18765     - Numerous changes to move towards client-side v2 directories. Not
18766       enabled yet.
18768   o Fixes on 0.1.0.x:
18769     - If the user gave tor an odd number of command-line arguments,
18770       we were silently ignoring the last one. Now we complain and fail.
18771       [This wins the oldest-bug prize -- this bug has been present since
18772        November 2002, as released in Tor 0.0.0.]
18773     - Do not use unaligned memory access on alpha, mips, or mipsel.
18774       It *works*, but is very slow, so we treat them as if it doesn't.
18775     - Retry directory requests if we fail to get an answer we like
18776       from a given dirserver (we were retrying before, but only if
18777       we fail to connect).
18778     - When writing the RecommendedVersions line, sort them first.
18779     - When the client asked for a rendezvous port that the hidden
18780       service didn't want to provide, we were sending an IP address
18781       back along with the end cell. Fortunately, it was zero. But stop
18782       that anyway.
18783     - Correct "your server is reachable" log entries to indicate that
18784       it was self-testing that told us so.
18787 Changes in version 0.1.1.6-alpha - 2005-09-09
18788   o Fixes on 0.1.1.5-alpha:
18789     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
18790     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
18791     - Fix bug with tor_memmem finding a match at the end of the string.
18792     - Make unit tests run without segfaulting.
18793     - Resolve some solaris x86 compile warnings.
18794     - Handle duplicate lines in approved-routers files without warning.
18795     - Fix bug where as soon as a server refused any requests due to his
18796       exit policy (e.g. when we ask for localhost and he tells us that's
18797       127.0.0.1 and he won't do it), we decided he wasn't obeying his
18798       exit policy using him for any exits.
18799     - Only do openssl hardware accelerator stuff if openssl version is
18800       at least 0.9.7.
18802   o New controller features/fixes:
18803     - Add a "RESETCONF" command so you can set config options like
18804       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
18805       a config option in the torrc with no value, then it clears it
18806       entirely (rather than setting it to its default).
18807     - Add a "GETINFO config-file" to tell us where torrc is.
18808     - Avoid sending blank lines when GETINFO replies should be empty.
18809     - Add a QUIT command for the controller (for using it manually).
18810     - Fix a bug in SAVECONF that was adding default dirservers and
18811       other redundant entries to the torrc file.
18813   o Start on the new directory design:
18814     - Generate, publish, cache, serve new network-status format.
18815     - Publish individual descriptors (by fingerprint, by "all", and by
18816       "tell me yours").
18817     - Publish client and server recommended versions separately.
18818     - Allow tor_gzip_uncompress() to handle multiple concatenated
18819       compressed strings. Serve compressed groups of router
18820       descriptors. The compression logic here could be more
18821       memory-efficient.
18822     - Distinguish v1 authorities (all currently trusted directories)
18823       from v2 authorities (all trusted directories).
18824     - Change DirServers config line to note which dirs are v1 authorities.
18825     - Add configuration option "V1AuthoritativeDirectory 1" which
18826       moria1, moria2, and tor26 should set.
18827     - Remove option when getting directory cache to see whether they
18828       support running-routers; they all do now. Replace it with one
18829       to see whether caches support v2 stuff.
18831   o New features:
18832     - Dirservers now do their own external reachability testing of each
18833       Tor server, and only list them as running if they've been found to
18834       be reachable. We also send back warnings to the server's logs if
18835       it uploads a descriptor that we already believe is unreachable.
18836     - Implement exit enclaves: if we know an IP address for the
18837       destination, and there's a running Tor server at that address
18838       which allows exit to the destination, then extend the circuit to
18839       that exit first. This provides end-to-end encryption and end-to-end
18840       authentication. Also, if the user wants a .exit address or enclave,
18841       use 4 hops rather than 3, and cannibalize a general circ for it
18842       if you can.
18843     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
18844       controller. Also, rotate dns and cpu workers if the controller
18845       changes options that will affect them; and initialize the dns
18846       worker cache tree whether or not we start out as a server.
18847     - Only upload a new server descriptor when options change, 18
18848       hours have passed, uptime is reset, or bandwidth changes a lot.
18849     - Check [X-]Forwarded-For headers in HTTP requests when generating
18850       log messages. This lets people run dirservers (and caches) behind
18851       Apache but still know which IP addresses are causing warnings.
18853   o Config option changes:
18854     - Replace (Fascist)Firewall* config options with a new
18855       ReachableAddresses option that understands address policies.
18856       For example, "ReachableAddresses *:80,*:443"
18857     - Get rid of IgnoreVersion undocumented config option, and make us
18858       only warn, never exit, when we're running an obsolete version.
18859     - Make MonthlyAccountingStart config option truly obsolete now.
18861   o Fixes on 0.1.0.x:
18862     - Reject ports 465 and 587 in the default exit policy, since
18863       people have started using them for spam too.
18864     - It turns out we couldn't bootstrap a network since we added
18865       reachability detection in 0.1.0.1-rc. Good thing the Tor network
18866       has never gone down. Add an AssumeReachable config option to let
18867       servers and dirservers bootstrap. When we're trying to build a
18868       high-uptime or high-bandwidth circuit but there aren't enough
18869       suitable servers, try being less picky rather than simply failing.
18870     - Our logic to decide if the OR we connected to was the right guy
18871       was brittle and maybe open to a mitm for unverified routers.
18872     - We weren't cannibalizing circuits correctly for
18873       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
18874       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
18875       build those from scratch. This should make hidden services faster.
18876     - Predict required circuits better, with an eye toward making hidden
18877       services faster on the service end.
18878     - Retry streams if the exit node sends back a 'misc' failure. This
18879       should result in fewer random failures. Also, after failing
18880       from resolve failed or misc, reset the num failures, so we give
18881       it a fair shake next time we try.
18882     - Clean up the rendezvous warn log msgs, and downgrade some to info.
18883     - Reduce severity on logs about dns worker spawning and culling.
18884     - When we're shutting down and we do something like try to post a
18885       server descriptor or rendezvous descriptor, don't complain that
18886       we seem to be unreachable. Of course we are, we're shutting down.
18887     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
18888       We don't use them yet, but maybe one day our DNS resolver will be
18889       able to discover them.
18890     - Make ContactInfo mandatory for authoritative directory servers.
18891     - Require server descriptors to list IPv4 addresses -- hostnames
18892       are no longer allowed. This also fixes some potential security
18893       problems with people providing hostnames as their address and then
18894       preferentially resolving them to partition users.
18895     - Change log line for unreachability to explicitly suggest /etc/hosts
18896       as the culprit. Also make it clearer what IP address and ports we're
18897       testing for reachability.
18898     - Put quotes around user-supplied strings when logging so users are
18899       more likely to realize if they add bad characters (like quotes)
18900       to the torrc.
18901     - Let auth dir servers start without specifying an Address config
18902       option.
18903     - Make unit tests (and other invocations that aren't the real Tor)
18904       run without launching listeners, creating subdirectories, and so on.
18907 Changes in version 0.1.1.5-alpha - 2005-08-08
18908   o Bugfixes included in 0.1.0.14.
18910   o Bugfixes on 0.1.0.x:
18911     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
18912       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
18913       it would silently using ignore the 6668.
18916 Changes in version 0.1.0.14 - 2005-08-08
18917   o Bugfixes on 0.1.0.x:
18918       - Fix the other half of the bug with crypto handshakes
18919         (CVE-2005-2643).
18920       - Fix an assert trigger if you send a 'signal term' via the
18921         controller when it's listening for 'event info' messages.
18924 Changes in version 0.1.1.4-alpha - 2005-08-04
18925   o Bugfixes included in 0.1.0.13.
18927   o Features:
18928     - Improve tor_gettimeofday() granularity on windows.
18929     - Make clients regenerate their keys when their IP address changes.
18930     - Implement some more GETINFO goodness: expose helper nodes, config
18931       options, getinfo keys.
18934 Changes in version 0.1.0.13 - 2005-08-04
18935   o Bugfixes on 0.1.0.x:
18936     - Fix a critical bug in the security of our crypto handshakes.
18937     - Fix a size_t underflow in smartlist_join_strings2() that made
18938       it do bad things when you hand it an empty smartlist.
18939     - Fix Windows installer to ship Tor license (thanks to Aphex for
18940       pointing out this oversight) and put a link to the doc directory
18941       in the start menu.
18942     - Explicitly set no-unaligned-access for sparc: it turns out the
18943       new gcc's let you compile broken code, but that doesn't make it
18944       not-broken.
18947 Changes in version 0.1.1.3-alpha - 2005-07-23
18948   o Bugfixes on 0.1.1.2-alpha:
18949     - Fix a bug in handling the controller's "post descriptor"
18950       function.
18951     - Fix several bugs in handling the controller's "extend circuit"
18952       function.
18953     - Fix a bug in handling the controller's "stream status" event.
18954     - Fix an assert failure if we have a controller listening for
18955       circuit events and we go offline.
18956     - Re-allow hidden service descriptors to publish 0 intro points.
18957     - Fix a crash when generating your hidden service descriptor if
18958       you don't have enough intro points already.
18960   o New features on 0.1.1.2-alpha:
18961     - New controller function "getinfo accounting", to ask how
18962       many bytes we've used in this time period.
18963     - Experimental support for helper nodes: a lot of the risk from
18964       a small static adversary comes because users pick new random
18965       nodes every time they rebuild a circuit. Now users will try to
18966       stick to the same small set of entry nodes if they can. Not
18967       enabled by default yet.
18969   o Bugfixes on 0.1.0.12:
18970     - If you're an auth dir server, always publish your dirport,
18971       even if you haven't yet found yourself to be reachable.
18972     - Fix a size_t underflow in smartlist_join_strings2() that made
18973       it do bad things when you hand it an empty smartlist.
18976 Changes in version 0.1.0.12 - 2005-07-18
18977   o New directory servers:
18978       - tor26 has changed IP address.
18980   o Bugfixes on 0.1.0.x:
18981     - Fix a possible double-free in tor_gzip_uncompress().
18982     - When --disable-threads is set, do not search for or link against
18983       pthreads libraries.
18984     - Don't trigger an assert if an authoritative directory server
18985       claims its dirport is 0.
18986     - Fix bug with removing Tor as an NT service: some people were
18987       getting "The service did not return an error." Thanks to Matt
18988       Edman for the fix.
18991 Changes in version 0.1.1.2-alpha - 2005-07-15
18992   o New directory servers:
18993     - tor26 has changed IP address.
18995   o Bugfixes on 0.1.0.x, crashes/leaks:
18996     - Port the servers-not-obeying-their-exit-policies fix from
18997       0.1.0.11.
18998     - Fix an fd leak in start_daemon().
18999     - On Windows, you can't always reopen a port right after you've
19000       closed it. So change retry_listeners() to only close and re-open
19001       ports that have changed.
19002     - Fix a possible double-free in tor_gzip_uncompress().
19004   o Bugfixes on 0.1.0.x, usability:
19005     - When tor_socketpair() fails in Windows, give a reasonable
19006       Windows-style errno back.
19007     - Let people type "tor --install" as well as "tor -install" when
19008       they
19009       want to make it an NT service.
19010     - NT service patch from Matt Edman to improve error messages.
19011     - When the controller asks for a config option with an abbreviated
19012       name, give the full name in our response.
19013     - Correct the man page entry on TrackHostExitsExpire.
19014     - Looks like we were never delivering deflated (i.e. compressed)
19015       running-routers lists, even when asked. Oops.
19016     - When --disable-threads is set, do not search for or link against
19017       pthreads libraries.
19019   o Bugfixes on 0.1.1.x:
19020     - Fix a seg fault with autodetecting which controller version is
19021       being used.
19023   o Features:
19024     - New hidden service descriptor format: put a version in it, and
19025       let people specify introduction/rendezvous points that aren't
19026       in "the directory" (which is subjective anyway).
19027     - Allow the DEBUG controller event to work again. Mark certain log
19028       entries as "don't tell this to controllers", so we avoid cycles.
19031 Changes in version 0.1.0.11 - 2005-06-30
19032   o Bugfixes on 0.1.0.x:
19033     - Fix major security bug: servers were disregarding their
19034       exit policies if clients behaved unexpectedly.
19035     - Make OS X init script check for missing argument, so we don't
19036       confuse users who invoke it incorrectly.
19037     - Fix a seg fault in "tor --hash-password foo".
19038     - The MAPADDRESS control command was broken.
19041 Changes in version 0.1.1.1-alpha - 2005-06-29
19042   o Bugfixes:
19043     - Make OS X init script check for missing argument, so we don't
19044       confuse users who invoke it incorrectly.
19045     - Fix a seg fault in "tor --hash-password foo".
19046     - Fix a possible way to DoS dirservers.
19047     - When we complain that your exit policy implicitly allows local or
19048       private address spaces, name them explicitly so operators can
19049       fix it.
19050     - Make the log message less scary when all the dirservers are
19051       temporarily unreachable.
19052     - We were printing the number of idle dns workers incorrectly when
19053       culling them.
19055   o Features:
19056     - Revised controller protocol (version 1) that uses ascii rather
19057       than binary. Add supporting libraries in python and java so you
19058       can use the controller from your applications without caring how
19059       our protocol works.
19060     - Spiffy new support for crypto hardware accelerators. Can somebody
19061       test this?
19064 Changes in version 0.0.9.10 - 2005-06-16
19065   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
19066     - Refuse relay cells that claim to have a length larger than the
19067       maximum allowed. This prevents a potential attack that could read
19068       arbitrary memory (e.g. keys) from an exit server's process
19069       (CVE-2005-2050).
19072 Changes in version 0.1.0.10 - 2005-06-14
19073   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
19074     libevent before 1.1a.
19077 Changes in version 0.1.0.9-rc - 2005-06-09
19078   o Bugfixes:
19079     - Reset buf->highwater every time buf_shrink() is called, not just on
19080       a successful shrink. This was causing significant memory bloat.
19081     - Fix buffer overflow when checking hashed passwords.
19082     - Security fix: if seeding the RNG on Win32 fails, quit.
19083     - Allow seeding the RNG on Win32 even when you're not running as
19084       Administrator.
19085     - Disable threading on Solaris too. Something is wonky with it,
19086       cpuworkers, and reentrant libs.
19087     - Reenable the part of the code that tries to flush as soon as an
19088       OR outbuf has a full TLS record available. Perhaps this will make
19089       OR outbufs not grow as huge except in rare cases, thus saving lots
19090       of CPU time plus memory.
19091     - Reject malformed .onion addresses rather then passing them on as
19092       normal web requests.
19093     - Adapt patch from Adam Langley: fix possible memory leak in
19094       tor_lookup_hostname().
19095     - Initialize libevent later in the startup process, so the logs are
19096       already established by the time we start logging libevent warns.
19097     - Use correct errno on win32 if libevent fails.
19098     - Check and warn about known-bad/slow libevent versions.
19099     - Pay more attention to the ClientOnly config option.
19100     - Have torctl.in/tor.sh.in check for location of su binary (needed
19101       on FreeBSD)
19102     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
19103       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
19104       HttpProxyAuthenticator
19105     - Stop warning about sigpipes in the logs. We're going to
19106       pretend that getting these occassionally is normal and fine.
19107     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
19108       certain
19109       installer screens; and don't put stuff into StartupItems unless
19110       the user asks you to.
19111     - Require servers that use the default dirservers to have public IP
19112       addresses. We have too many servers that are configured with private
19113       IPs and their admins never notice the log entries complaining that
19114       their descriptors are being rejected.
19115     - Add OSX uninstall instructions. An actual uninstall script will
19116       come later.
19119 Changes in version 0.1.0.8-rc - 2005-05-23
19120   o Bugfixes:
19121     - It turns out that kqueue on OS X 10.3.9 was causing kernel
19122       panics. Disable kqueue on all OS X Tors.
19123     - Fix RPM: remove duplicate line accidentally added to the rpm
19124       spec file.
19125     - Disable threads on openbsd too, since its gethostaddr is not
19126       reentrant either.
19127     - Tolerate libevent 0.8 since it still works, even though it's
19128       ancient.
19129     - Enable building on Red Hat 9.0 again.
19130     - Allow the middle hop of the testing circuit to be running any
19131       version, now that most of them have the bugfix to let them connect
19132       to unknown servers. This will allow reachability testing to work
19133       even when 0.0.9.7-0.0.9.9 become obsolete.
19134     - Handle relay cells with rh.length too large. This prevents
19135       a potential attack that could read arbitrary memory (maybe even
19136       keys) from the exit server's process.
19137     - We screwed up the dirport reachability testing when we don't yet
19138       have a cached version of the directory. Hopefully now fixed.
19139     - Clean up router_load_single_router() (used by the controller),
19140       so it doesn't seg fault on error.
19141     - Fix a minor memory leak when somebody establishes an introduction
19142       point at your Tor server.
19143     - If a socks connection ends because read fails, don't warn that
19144       you're not sending a socks reply back.
19146   o Features:
19147     - Add HttpProxyAuthenticator config option too, that works like
19148       the HttpsProxyAuthenticator config option.
19149     - Encode hashed controller passwords in hex instead of base64,
19150       to make it easier to write controllers.
19153 Changes in version 0.1.0.7-rc - 2005-05-17
19154   o Bugfixes:
19155     - Fix a bug in the OS X package installer that prevented it from
19156       installing on Tiger.
19157     - Fix a script bug in the OS X package installer that made it
19158       complain during installation.
19159     - Find libevent even if it's hiding in /usr/local/ and your
19160       CFLAGS and LDFLAGS don't tell you to look there.
19161     - Be able to link with libevent as a shared library (the default
19162       after 1.0d), even if it's hiding in /usr/local/lib and even
19163       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
19164       assuming you're running gcc. Otherwise fail and give a useful
19165       error message.
19166     - Fix a bug in the RPM packager: set home directory for _tor to
19167       something more reasonable when first installing.
19168     - Free a minor amount of memory that is still reachable on exit.
19171 Changes in version 0.1.0.6-rc - 2005-05-14
19172   o Bugfixes:
19173     - Implement --disable-threads configure option. Disable threads on
19174       netbsd by default, because it appears to have no reentrant resolver
19175       functions.
19176     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
19177       release (1.1) detects and disables kqueue if it's broken.
19178     - Append default exit policy before checking for implicit internal
19179       addresses. Now we don't log a bunch of complaints on startup
19180       when using the default exit policy.
19181     - Some people were putting "Address  " in their torrc, and they had
19182       a buggy resolver that resolved " " to 0.0.0.0. Oops.
19183     - If DataDir is ~/.tor, and that expands to /.tor, then default to
19184       LOCALSTATEDIR/tor instead.
19185     - Fix fragmented-message bug in TorControl.py.
19186     - Resolve a minor bug which would prevent unreachable dirports
19187       from getting suppressed in the published descriptor.
19188     - When the controller gave us a new descriptor, we weren't resolving
19189       it immediately, so Tor would think its address was 0.0.0.0 until
19190       we fetched a new directory.
19191     - Fix an uppercase/lowercase case error in suppressing a bogus
19192       libevent warning on some Linuxes.
19194   o Features:
19195     - Begin scrubbing sensitive strings from logs by default. Turn off
19196       the config option SafeLogging if you need to do debugging.
19197     - Switch to a new buffer management algorithm, which tries to avoid
19198       reallocing and copying quite as much. In first tests it looks like
19199       it uses *more* memory on average, but less cpu.
19200     - First cut at support for "create-fast" cells. Clients can use
19201       these when extending to their first hop, since the TLS already
19202       provides forward secrecy and authentication. Not enabled on
19203       clients yet.
19204     - When dirservers refuse a router descriptor, we now log its
19205       contactinfo, platform, and the poster's IP address.
19206     - Call tor_free_all instead of connections_free_all after forking, to
19207       save memory on systems that need to fork.
19208     - Whine at you if you're a server and you don't set your contactinfo.
19209     - Implement --verify-config command-line option to check if your torrc
19210       is valid without actually launching Tor.
19211     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
19212       rather than just rejecting it.
19215 Changes in version 0.1.0.5-rc - 2005-04-27
19216   o Bugfixes:
19217     - Stop trying to print a null pointer if an OR conn fails because
19218       we didn't like its cert.
19219   o Features:
19220     - Switch our internal buffers implementation to use a ring buffer,
19221       to hopefully improve performance for fast servers a lot.
19222     - Add HttpsProxyAuthenticator support (basic auth only), based
19223       on patch from Adam Langley.
19224     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
19225       the fast servers that have been joining lately.
19226     - Give hidden service accesses extra time on the first attempt,
19227       since 60 seconds is often only barely enough. This might improve
19228       robustness more.
19229     - Improve performance for dirservers: stop re-parsing the whole
19230       directory every time you regenerate it.
19231     - Add more debugging info to help us find the weird dns freebsd
19232       pthreads bug; cleaner debug messages to help track future issues.
19235 Changes in version 0.0.9.9 - 2005-04-23
19236   o Bugfixes on 0.0.9.x:
19237     - If unofficial Tor clients connect and send weird TLS certs, our
19238       Tor server triggers an assert. This release contains a minimal
19239       backport from the broader fix that we put into 0.1.0.4-rc.
19242 Changes in version 0.1.0.4-rc - 2005-04-23
19243   o Bugfixes:
19244     - If unofficial Tor clients connect and send weird TLS certs, our
19245       Tor server triggers an assert. Stop asserting, and start handling
19246       TLS errors better in other situations too.
19247     - When the controller asks us to tell it about all the debug-level
19248       logs, it turns out we were generating debug-level logs while
19249       telling it about them, which turns into a bad loop. Now keep
19250       track of whether you're sending a debug log to the controller,
19251       and don't log when you are.
19252     - Fix the "postdescriptor" feature of the controller interface: on
19253       non-complete success, only say "done" once.
19254   o Features:
19255     - Clients are now willing to load balance over up to 2mB, not 1mB,
19256       of advertised bandwidth capacity.
19257     - Add a NoPublish config option, so you can be a server (e.g. for
19258       testing running Tor servers in other Tor networks) without
19259       publishing your descriptor to the primary dirservers.
19262 Changes in version 0.1.0.3-rc - 2005-04-08
19263   o Improvements on 0.1.0.2-rc:
19264     - Client now retries when streams end early for 'hibernating' or
19265       'resource limit' reasons, rather than failing them.
19266     - More automated handling for dirserver operators:
19267       - Automatically approve nodes running 0.1.0.2-rc or later,
19268         now that the the reachability detection stuff is working.
19269       - Now we allow two unverified servers with the same nickname
19270         but different keys. But if a nickname is verified, only that
19271         nickname+key are allowed.
19272       - If you're an authdirserver connecting to an address:port,
19273         and it's not the OR you were expecting, forget about that
19274         descriptor. If he *was* the one you were expecting, then forget
19275         about all other descriptors for that address:port.
19276       - Allow servers to publish descriptors from 12 hours in the future.
19277         Corollary: only whine about clock skew from the dirserver if
19278         he's a trusted dirserver (since now even verified servers could
19279         have quite wrong clocks).
19280     - Adjust maximum skew and age for rendezvous descriptors: let skew
19281       be 48 hours rather than 90 minutes.
19282     - Efficiency improvements:
19283       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
19284         it much faster to look up a circuit for each relay cell.
19285       - Remove most calls to assert_all_pending_dns_resolves_ok(),
19286         since they're eating our cpu on exit nodes.
19287       - Stop wasting time doing a case insensitive comparison for every
19288         dns name every time we do any lookup. Canonicalize the names to
19289         lowercase and be done with it.
19290     - Start sending 'truncated' cells back rather than destroy cells,
19291       if the circuit closes in front of you. This means we won't have
19292       to abandon partially built circuits.
19293     - Only warn once per nickname from add_nickname_list_to_smartlist
19294       per failure, so an entrynode or exitnode choice that's down won't
19295       yell so much.
19296     - Put a note in the torrc about abuse potential with the default
19297       exit policy.
19298     - Revise control spec and implementation to allow all log messages to
19299       be sent to controller with their severities intact (suggested by
19300       Matt Edman). Update TorControl to handle new log event types.
19301     - Provide better explanation messages when controller's POSTDESCRIPTOR
19302       fails.
19303     - Stop putting nodename in the Platform string in server descriptors.
19304       It doesn't actually help, and it is confusing/upsetting some people.
19306   o Bugfixes on 0.1.0.2-rc:
19307     - We were printing the host mask wrong in exit policies in server
19308       descriptors. This isn't a critical bug though, since we were still
19309       obeying the exit policy internally.
19310     - Fix Tor when compiled with libevent but without pthreads: move
19311       connection_unregister() from _connection_free() to
19312       connection_free().
19313     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
19314       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
19315       when we look through the connection array, we'll find any of the
19316       cpu/dnsworkers. This is no good.
19318   o Bugfixes on 0.0.9.8:
19319     - Fix possible bug on threading platforms (e.g. win32) which was
19320       leaking a file descriptor whenever a cpuworker or dnsworker died.
19321     - When using preferred entry or exit nodes, ignore whether the
19322       circuit wants uptime or capacity. They asked for the nodes, they
19323       get the nodes.
19324     - chdir() to your datadirectory at the *end* of the daemonize process,
19325       not the beginning. This was a problem because the first time you
19326       run tor, if your datadir isn't there, and you have runasdaemon set
19327       to 1, it will try to chdir to it before it tries to create it. Oops.
19328     - Handle changed router status correctly when dirserver reloads
19329       fingerprint file. We used to be dropping all unverified descriptors
19330       right then. The bug was hidden because we would immediately
19331       fetch a directory from another dirserver, which would include the
19332       descriptors we just dropped.
19333     - When we're connecting to an OR and he's got a different nickname/key
19334       than we were expecting, only complain loudly if we're an OP or a
19335       dirserver. Complaining loudly to the OR admins just confuses them.
19336     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
19337       artificially capped at 500kB.
19340 Changes in version 0.0.9.8 - 2005-04-07
19341   o Bugfixes on 0.0.9.x:
19342     - We have a bug that I haven't found yet. Sometimes, very rarely,
19343       cpuworkers get stuck in the 'busy' state, even though the cpuworker
19344       thinks of itself as idle. This meant that no new circuits ever got
19345       established. Here's a workaround to kill any cpuworker that's been
19346       busy for more than 100 seconds.
19349 Changes in version 0.1.0.2-rc - 2005-04-01
19350   o Bugfixes on 0.1.0.1-rc:
19351     - Fixes on reachability detection:
19352       - Don't check for reachability while hibernating.
19353       - If ORPort is reachable but DirPort isn't, still publish the
19354         descriptor, but zero out DirPort until it's found reachable.
19355       - When building testing circs for ORPort testing, use only
19356         high-bandwidth nodes, so fewer circuits fail.
19357       - Complain about unreachable ORPort separately from unreachable
19358         DirPort, so the user knows what's going on.
19359       - Make sure we only conclude ORPort reachability if we didn't
19360         initiate the conn. Otherwise we could falsely conclude that
19361         we're reachable just because we connected to the guy earlier
19362         and he used that same pipe to extend to us.
19363       - Authdirservers shouldn't do ORPort reachability detection,
19364         since they're in clique mode, so it will be rare to find a
19365         server not already connected to them.
19366       - When building testing circuits, always pick middle hops running
19367         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
19368         bug. (This is a kludge; it will go away when 0.0.9.x becomes
19369         obsolete.)
19370       - When we decide we're reachable, actually publish our descriptor
19371         right then.
19372     - Fix bug in redirectstream in the controller.
19373     - Fix the state descriptor strings so logs don't claim edge streams
19374       are in a different state than they actually are.
19375     - Use recent libevent features when possible (this only really affects
19376       win32 and osx right now, because the new libevent with these
19377       features hasn't been released yet). Add code to suppress spurious
19378       libevent log msgs.
19379     - Prevent possible segfault in connection_close_unattached_ap().
19380     - Fix newlines on torrc in win32.
19381     - Improve error msgs when tor-resolve fails.
19383   o Improvements on 0.0.9.x:
19384     - New experimental script tor/contrib/ExerciseServer.py (needs more
19385       work) that uses the controller interface to build circuits and
19386       fetch pages over them. This will help us bootstrap servers that
19387       have lots of capacity but haven't noticed it yet.
19388     - New experimental script tor/contrib/PathDemo.py (needs more work)
19389       that uses the controller interface to let you choose whole paths
19390       via addresses like
19391       "<hostname>.<path,separated by dots>.<length of path>.path"
19392     - When we've connected to an OR and handshaked but didn't like
19393       the result, we were closing the conn without sending destroy
19394       cells back for pending circuits. Now send those destroys.
19397 Changes in version 0.0.9.7 - 2005-04-01
19398   o Bugfixes on 0.0.9.x:
19399     - Fix another race crash bug (thanks to Glenn Fink for reporting).
19400     - Compare identity to identity, not to nickname, when extending to
19401       a router not already in the directory. This was preventing us from
19402       extending to unknown routers. Oops.
19403     - Make sure to create OS X Tor user in <500 range, so we aren't
19404       creating actual system users.
19405     - Note where connection-that-hasn't-sent-end was marked, and fix
19406       a few really loud instances of this harmless bug (it's fixed more
19407       in 0.1.0.x).
19410 Changes in version 0.1.0.1-rc - 2005-03-28
19411   o New features:
19412     - Add reachability testing. Your Tor server will automatically try
19413       to see if its ORPort and DirPort are reachable from the outside,
19414       and it won't upload its descriptor until it decides they are.
19415     - Handle unavailable hidden services better. Handle slow or busy
19416       hidden services better.
19417     - Add support for CONNECTing through https proxies, with "HttpsProxy"
19418       config option.
19419     - New exit policy: accept most low-numbered ports, rather than
19420       rejecting most low-numbered ports.
19421     - More Tor controller support (still experimental). See
19422       http://tor.eff.org/doc/control-spec.txt for all the new features,
19423       including signals to emulate unix signals from any platform;
19424       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
19425       closestream; closecircuit; etc.
19426     - Make nt services work and start on startup on win32 (based on
19427       patch by Matt Edman).
19428     - Add a new AddressMap config directive to rewrite incoming socks
19429       addresses. This lets you, for example, declare an implicit
19430       required exit node for certain sites.
19431     - Add a new TrackHostExits config directive to trigger addressmaps
19432       for certain incoming socks addresses -- for sites that break when
19433       your exit keeps changing (based on patch by Mike Perry).
19434     - Redo the client-side dns cache so it's just an addressmap too.
19435     - Notice when our IP changes, and reset stats/uptime/reachability.
19436     - When an application is using socks5, give him the whole variety of
19437       potential socks5 responses (connect refused, host unreachable, etc),
19438       rather than just "success" or "failure".
19439     - A more sane version numbering system. See
19440       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
19441     - New contributed script "exitlist": a simple python script to
19442       parse directories and find Tor nodes that exit to listed
19443       addresses/ports.
19444     - New contributed script "privoxy-tor-toggle" to toggle whether
19445       Privoxy uses Tor. Seems to be configured for Debian by default.
19446     - Report HTTP reasons to client when getting a response from directory
19447       servers -- so you can actually know what went wrong.
19448     - New config option MaxAdvertisedBandwidth which lets you advertise
19449       a low bandwidthrate (to not attract as many circuits) while still
19450       allowing a higher bandwidthrate in reality.
19452   o Robustness/stability fixes:
19453     - Make Tor use Niels Provos's libevent instead of its current
19454       poll-but-sometimes-select mess. This will let us use faster async
19455       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
19456       on Windows too.
19457     - pthread support now too. This was forced because when we forked,
19458       we ended up wasting a lot of duplicate ram over time. Also switch
19459       to foo_r versions of some library calls to allow reentry and
19460       threadsafeness.
19461     - Better handling for heterogeneous / unreliable nodes:
19462       - Annotate circuits w/ whether they aim to contain high uptime nodes
19463         and/or high capacity nodes. When building circuits, choose
19464         appropriate nodes.
19465       - This means that every single node in an intro rend circuit,
19466         not just the last one, will have a minimum uptime.
19467       - New config option LongLivedPorts to indicate application streams
19468         that will want high uptime circuits.
19469       - Servers reset uptime when a dir fetch entirely fails. This
19470         hopefully reflects stability of the server's network connectivity.
19471       - If somebody starts his tor server in Jan 2004 and then fixes his
19472         clock, don't make his published uptime be a year.
19473       - Reset published uptime when you wake up from hibernation.
19474     - Introduce a notion of 'internal' circs, which are chosen without
19475       regard to the exit policy of the last hop. Intro and rendezvous
19476       circs must be internal circs, to avoid leaking information. Resolve
19477       and connect streams can use internal circs if they want.
19478     - New circuit pooling algorithm: make sure to have enough circs around
19479       to satisfy any predicted ports, and also make sure to have 2 internal
19480       circs around if we've required internal circs lately (and with high
19481       uptime if we've seen that lately too).
19482     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
19483       which describes how often we retry making new circuits if current
19484       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
19485       how long we're willing to make use of an already-dirty circuit.
19486     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
19487       circ as necessary, if there are any completed ones lying around
19488       when we try to launch one.
19489     - Make hidden services try to establish a rendezvous for 30 seconds,
19490       rather than for n (where n=3) attempts to build a circuit.
19491     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
19492       "ShutdownWaitLength".
19493     - Try to be more zealous about calling connection_edge_end when
19494       things go bad with edge conns in connection.c.
19495     - Revise tor-spec to add more/better stream end reasons.
19496     - Revise all calls to connection_edge_end to avoid sending "misc",
19497       and to take errno into account where possible.
19499   o Bug fixes:
19500     - Fix a race condition that can trigger an assert, when we have a
19501       pending create cell and an OR connection fails right then.
19502     - Fix several double-mark-for-close bugs, e.g. where we were finding
19503       a conn for a cell even if that conn is already marked for close.
19504     - Make sequence of log messages when starting on win32 with no config
19505       file more reasonable.
19506     - When choosing an exit node for a new non-internal circ, don't take
19507       into account whether it'll be useful for any pending x.onion
19508       addresses -- it won't.
19509     - Turn addr_policy_compare from a tristate to a quadstate; this should
19510       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
19511       for google.com" problem.
19512     - Make "platform" string in descriptor more accurate for Win32 servers,
19513       so it's not just "unknown platform".
19514     - Fix an edge case in parsing config options (thanks weasel).
19515       If they say "--" on the commandline, it's not an option.
19516     - Reject odd-looking addresses at the client (e.g. addresses that
19517       contain a colon), rather than having the server drop them because
19518       they're malformed.
19519     - tor-resolve requests were ignoring .exit if there was a working circuit
19520       they could use instead.
19521     - REUSEADDR on normal platforms means you can rebind to the port
19522       right after somebody else has let it go. But REUSEADDR on win32
19523       means to let you bind to the port _even when somebody else
19524       already has it bound_! So, don't do that on Win32.
19525     - Change version parsing logic: a version is "obsolete" if it is not
19526       recommended and (1) there is a newer recommended version in the
19527       same series, or (2) there are no recommended versions in the same
19528       series, but there are some recommended versions in a newer series.
19529       A version is "new" if it is newer than any recommended version in
19530       the same series.
19531     - Stop most cases of hanging up on a socks connection without sending
19532       the socks reject.
19534   o Helpful fixes:
19535     - Require BandwidthRate to be at least 20kB/s for servers.
19536     - When a dirserver causes you to give a warn, mention which dirserver
19537       it was.
19538     - New config option DirAllowPrivateAddresses for authdirservers.
19539       Now by default they refuse router descriptors that have non-IP or
19540       private-IP addresses.
19541     - Stop publishing socksport in the directory, since it's not
19542       actually meant to be public. For compatibility, publish a 0 there
19543       for now.
19544     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
19545       smart" value, that is low for servers and high for clients.
19546     - If our clock jumps forward by 100 seconds or more, assume something
19547       has gone wrong with our network and abandon all not-yet-used circs.
19548     - Warn when exit policy implicitly allows local addresses.
19549     - If we get an incredibly skewed timestamp from a dirserver mirror
19550       that isn't a verified OR, don't warn -- it's probably him that's
19551       wrong.
19552     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
19553       cookies to disk and doesn't log each web request to disk. (Thanks
19554       to Brett Carrington for pointing this out.)
19555     - When a client asks us for a dir mirror and we don't have one,
19556       launch an attempt to get a fresh one.
19557     - If we're hibernating and we get a SIGINT, exit immediately.
19558     - Add --with-dmalloc ./configure option, to track memory leaks.
19559     - And try to free all memory on closing, so we can detect what
19560       we're leaking.
19561     - Cache local dns resolves correctly even when they're .exit
19562       addresses.
19563     - Give a better warning when some other server advertises an
19564       ORPort that is actually an apache running ssl.
19565     - Add "opt hibernating 1" to server descriptor to make it clearer
19566       whether the server is hibernating.
19569 Changes in version 0.0.9.6 - 2005-03-24
19570   o Bugfixes on 0.0.9.x (crashes and asserts):
19571     - Add new end stream reasons to maintainance branch. Fix bug where
19572       reason (8) could trigger an assert. Prevent bug from recurring.
19573     - Apparently win32 stat wants paths to not end with a slash.
19574     - Fix assert triggers in assert_cpath_layer_ok(), where we were
19575       blowing away the circuit that conn->cpath_layer points to, then
19576       checking to see if the circ is well-formed. Backport check to make
19577       sure we dont use the cpath on a closed connection.
19578     - Prevent circuit_resume_edge_reading_helper() from trying to package
19579       inbufs for marked-for-close streams.
19580     - Don't crash on hup if your options->address has become unresolvable.
19581     - Some systems (like OS X) sometimes accept() a connection and tell
19582       you the remote host is 0.0.0.0:0. If this happens, due to some
19583       other mis-features, we get confused; so refuse the conn for now.
19585   o Bugfixes on 0.0.9.x (other):
19586     - Fix harmless but scary "Unrecognized content encoding" warn message.
19587     - Add new stream error reason: TORPROTOCOL reason means "you are not
19588       speaking a version of Tor I understand; say bye-bye to your stream."
19589     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
19590       into the future, now that we are more tolerant of skew. This
19591       resolves a bug where a Tor server would refuse to cache a directory
19592       because all the directories it gets are too far in the future;
19593       yet the Tor server never logs any complaints about clock skew.
19594     - Mac packaging magic: make man pages useable, and do not overwrite
19595       existing torrc files.
19596     - Make OS X log happily to /var/log/tor/tor.log
19599 Changes in version 0.0.9.5 - 2005-02-22
19600   o Bugfixes on 0.0.9.x:
19601     - Fix an assert race at exit nodes when resolve requests fail.
19602     - Stop picking unverified dir mirrors--it only leads to misery.
19603     - Patch from Matt Edman to make NT services work better. Service
19604       support is still not compiled into the executable by default.
19605     - Patch from Dmitri Bely so the Tor service runs better under
19606       the win32 SYSTEM account.
19607     - Make tor-resolve actually work (?) on Win32.
19608     - Fix a sign bug when getrlimit claims to have 4+ billion
19609       file descriptors available.
19610     - Stop refusing to start when bandwidthburst == bandwidthrate.
19611     - When create cells have been on the onion queue more than five
19612       seconds, just send back a destroy and take them off the list.
19615 Changes in version 0.0.9.4 - 2005-02-03
19616   o Bugfixes on 0.0.9:
19617     - Fix an assert bug that took down most of our servers: when
19618       a server claims to have 1 GB of bandwidthburst, don't
19619       freak out.
19620     - Don't crash as badly if we have spawned the max allowed number
19621       of dnsworkers, or we're out of file descriptors.
19622     - Block more file-sharing ports in the default exit policy.
19623     - MaxConn is now automatically set to the hard limit of max
19624       file descriptors we're allowed (ulimit -n), minus a few for
19625       logs, etc.
19626     - Give a clearer message when servers need to raise their
19627       ulimit -n when they start running out of file descriptors.
19628     - SGI Compatibility patches from Jan Schaumann.
19629     - Tolerate a corrupt cached directory better.
19630     - When a dirserver hasn't approved your server, list which one.
19631     - Go into soft hibernation after 95% of the bandwidth is used,
19632       not 99%. This is especially important for daily hibernators who
19633       have a small accounting max. Hopefully it will result in fewer
19634       cut connections when the hard hibernation starts.
19635     - Load-balance better when using servers that claim more than
19636       800kB/s of capacity.
19637     - Make NT services work (experimental, only used if compiled in).
19640 Changes in version 0.0.9.3 - 2005-01-21
19641   o Bugfixes on 0.0.9:
19642     - Backport the cpu use fixes from main branch, so busy servers won't
19643       need as much processor time.
19644     - Work better when we go offline and then come back, or when we
19645       run Tor at boot before the network is up. We do this by
19646       optimistically trying to fetch a new directory whenever an
19647       application request comes in and we think we're offline -- the
19648       human is hopefully a good measure of when the network is back.
19649     - Backport some minimal hidserv bugfixes: keep rend circuits open as
19650       long as you keep using them; actually publish hidserv descriptors
19651       shortly after they change, rather than waiting 20-40 minutes.
19652     - Enable Mac startup script by default.
19653     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
19654     - When you update AllowUnverifiedNodes or FirewallPorts via the
19655       controller's setconf feature, we were always appending, never
19656       resetting.
19657     - When you update HiddenServiceDir via setconf, it was screwing up
19658       the order of reading the lines, making it fail.
19659     - Do not rewrite a cached directory back to the cache; otherwise we
19660       will think it is recent and not fetch a newer one on startup.
19661     - Workaround for webservers that lie about Content-Encoding: Tor
19662       now tries to autodetect compressed directories and compression
19663       itself. This lets us Proxypass dir fetches through apache.
19666 Changes in version 0.0.9.2 - 2005-01-04
19667   o Bugfixes on 0.0.9 (crashes and asserts):
19668     - Fix an assert on startup when the disk is full and you're logging
19669       to a file.
19670     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
19671       style address, then we'd crash.
19672     - Fix an assert trigger when the running-routers string we get from
19673       a dirserver is broken.
19674     - Make worker threads start and run on win32. Now win32 servers
19675       may work better.
19676     - Bandaid (not actually fix, but now it doesn't crash) an assert
19677       where the dns worker dies mysteriously and the main Tor process
19678       doesn't remember anything about the address it was resolving.
19680   o Bugfixes on 0.0.9 (Win32):
19681     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
19682       name out of the warning/assert messages.
19683     - Fix a superficial "unhandled error on read" bug on win32.
19684     - The win32 installer no longer requires a click-through for our
19685       license, since our Free Software license grants rights but does not
19686       take any away.
19687     - Win32: When connecting to a dirserver fails, try another one
19688       immediately. (This was already working for non-win32 Tors.)
19689     - Stop trying to parse $HOME on win32 when hunting for default
19690       DataDirectory.
19691     - Make tor-resolve.c work on win32 by calling network_init().
19693   o Bugfixes on 0.0.9 (other):
19694     - Make 0.0.9.x build on Solaris again.
19695     - Due to a fencepost error, we were blowing away the \n when reporting
19696       confvalue items in the controller. So asking for multiple config
19697       values at once couldn't work.
19698     - When listing circuits that are pending on an opening OR connection,
19699       if we're an OR we were listing circuits that *end* at us as
19700       being pending on every listener, dns/cpu worker, etc. Stop that.
19701     - Dirservers were failing to create 'running-routers' or 'directory'
19702       strings if we had more than some threshold of routers. Fix them so
19703       they can handle any number of routers.
19704     - Fix a superficial "Duplicate mark for close" bug.
19705     - Stop checking for clock skew for OR connections, even for servers.
19706     - Fix a fencepost error that was chopping off the last letter of any
19707       nickname that is the maximum allowed nickname length.
19708     - Update URLs in log messages so they point to the new website.
19709     - Fix a potential problem in mangling server private keys while
19710       writing to disk (not triggered yet, as far as we know).
19711     - Include the licenses for other free software we include in Tor,
19712       now that we're shipping binary distributions more regularly.
19715 Changes in version 0.0.9.1 - 2004-12-15
19716   o Bugfixes on 0.0.9:
19717     - Make hibernation actually work.
19718     - Make HashedControlPassword config option work.
19719     - When we're reporting event circuit status to a controller,
19720       don't use the stream status code.
19723 Changes in version 0.0.9 - 2004-12-12
19724   o Cleanups:
19725     - Clean up manpage and torrc.sample file.
19726     - Clean up severities and text of log warnings.
19727   o Mistakes:
19728     - Make servers trigger an assert when they enter hibernation.
19731 Changes in version 0.0.9rc7 - 2004-12-08
19732   o Bugfixes on 0.0.9rc:
19733     - Fix a stack-trashing crash when an exit node begins hibernating.
19734     - Avoid looking at unallocated memory while considering which
19735       ports we need to build circuits to cover.
19736     - Stop a sigpipe: when an 'end' cell races with eof from the app,
19737       we shouldn't hold-open-until-flush if the eof arrived first.
19738     - Fix a bug with init_cookie_authentication() in the controller.
19739     - When recommending new-format log lines, if the upper bound is
19740       LOG_ERR, leave it implicit.
19742   o Bugfixes on 0.0.8.1:
19743     - Fix a whole slew of memory leaks.
19744     - Fix isspace() and friends so they still make Solaris happy
19745       but also so they don't trigger asserts on win32.
19746     - Fix parse_iso_time on platforms without strptime (eg win32).
19747     - win32: tolerate extra "readable" events better.
19748     - win32: when being multithreaded, leave parent fdarray open.
19749     - Make unit tests work on win32.
19752 Changes in version 0.0.9rc6 - 2004-12-06
19753   o Bugfixes on 0.0.9pre:
19754     - Clean up some more integer underflow opportunities (not exploitable
19755       we think).
19756     - While hibernating, hup should not regrow our listeners.
19757     - Send an end to the streams we close when we hibernate, rather
19758       than just chopping them off.
19759     - React to eof immediately on non-open edge connections.
19761   o Bugfixes on 0.0.8.1:
19762     - Calculate timeout for waiting for a connected cell from the time
19763       we sent the begin cell, not from the time the stream started. If
19764       it took a long time to establish the circuit, we would time out
19765       right after sending the begin cell.
19766     - Fix router_compare_addr_to_addr_policy: it was not treating a port
19767       of * as always matching, so we were picking reject *:* nodes as
19768       exit nodes too. Oops.
19770   o Features:
19771     - New circuit building strategy: keep a list of ports that we've
19772       used in the past 6 hours, and always try to have 2 circuits open
19773       or on the way that will handle each such port. Seed us with port
19774       80 so web users won't complain that Tor is "slow to start up".
19775     - Make kill -USR1 dump more useful stats about circuits.
19776     - When warning about retrying or giving up, print the address, so
19777       the user knows which one it's talking about.
19778     - If you haven't used a clean circuit in an hour, throw it away,
19779       just to be on the safe side. (This means after 6 hours a totally
19780       unused Tor client will have no circuits open.)
19783 Changes in version 0.0.9rc5 - 2004-12-01
19784   o Bugfixes on 0.0.8.1:
19785     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
19786     - Let resolve conns retry/expire also, rather than sticking around
19787       forever.
19788     - If we are using select, make sure we stay within FD_SETSIZE.
19790   o Bugfixes on 0.0.9pre:
19791     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
19792       but doesn't seem to be currently; thanks to Ilja van Sprundel for
19793       finding it.
19794     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
19795       instead. Impose minima and maxima for all *Period options; impose
19796       even tighter maxima for fetching if we are a caching dirserver.
19797       Clip rather than rejecting.
19798     - Fetch cached running-routers from servers that serve it (that is,
19799       authdirservers and servers running 0.0.9rc5-cvs or later.)
19801   o Features:
19802     - Accept *:706 (silc) in default exit policy.
19803     - Implement new versioning format for post 0.1.
19804     - Support "foo.nickname.exit" addresses, to let Alice request the
19805       address "foo" as viewed by exit node "nickname". Based on a patch
19806       by Geoff Goodell.
19807     - Make tor --version --version dump the cvs Id of every file.
19810 Changes in version 0.0.9rc4 - 2004-11-28
19811   o Bugfixes on 0.0.8.1:
19812     - Make windows sockets actually non-blocking (oops), and handle
19813       win32 socket errors better.
19815   o Bugfixes on 0.0.9rc1:
19816     - Actually catch the -USR2 signal.
19819 Changes in version 0.0.9rc3 - 2004-11-25
19820   o Bugfixes on 0.0.8.1:
19821     - Flush the log file descriptor after we print "Tor opening log file",
19822       so we don't see those messages days later.
19824   o Bugfixes on 0.0.9rc1:
19825     - Make tor-resolve work again.
19826     - Avoid infinite loop in tor-resolve if tor hangs up on it.
19827     - Fix an assert trigger for clients/servers handling resolves.
19830 Changes in version 0.0.9rc2 - 2004-11-24
19831   o Bugfixes on 0.0.9rc1:
19832     - I broke socks5 support while fixing the eof bug.
19833     - Allow unitless bandwidths and intervals; they default to bytes
19834       and seconds.
19835     - New servers don't start out hibernating; they are active until
19836       they run out of bytes, so they have a better estimate of how
19837       long it takes, and so their operators can know they're working.
19840 Changes in version 0.0.9rc1 - 2004-11-23
19841   o Bugfixes on 0.0.8.1:
19842     - Finally fix a bug that's been plaguing us for a year:
19843       With high load, circuit package window was reaching 0. Whenever
19844       we got a circuit-level sendme, we were reading a lot on each
19845       socket, but only writing out a bit. So we would eventually reach
19846       eof. This would be noticed and acted on even when there were still
19847       bytes sitting in the inbuf.
19848     - When poll() is interrupted, we shouldn't believe the revents values.
19850   o Bugfixes on 0.0.9pre6:
19851     - Fix hibernate bug that caused pre6 to be broken.
19852     - Don't keep rephist info for routers that haven't had activity for
19853       24 hours. (This matters now that clients have keys, since we track
19854       them too.)
19855     - Never call close_temp_logs while validating log options.
19856     - Fix backslash-escaping on tor.sh.in and torctl.in.
19858   o Features:
19859     - Implement weekly/monthly/daily accounting: now you specify your
19860       hibernation properties by
19861       AccountingMax N bytes|KB|MB|GB|TB
19862       AccountingStart day|week|month [day] HH:MM
19863         Defaults to "month 1 0:00".
19864     - Let bandwidth and interval config options be specified as 5 bytes,
19865       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
19866     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
19867       get back to normal.)
19868     - If your requested entry or exit node has advertised bandwidth 0,
19869       pick it anyway.
19870     - Be more greedy about filling up relay cells -- we try reading again
19871       once we've processed the stuff we read, in case enough has arrived
19872       to fill the last cell completely.
19873     - Apply NT service patch from Osamu Fujino. Still needs more work.
19876 Changes in version 0.0.9pre6 - 2004-11-15
19877   o Bugfixes on 0.0.8.1:
19878     - Fix assert failure on malformed socks4a requests.
19879     - Use identity comparison, not nickname comparison, to choose which
19880       half of circuit-ID-space each side gets to use. This is needed
19881       because sometimes we think of a router as a nickname, and sometimes
19882       as a hex ID, and we can't predict what the other side will do.
19883     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
19884       write() call will fail and we handle it there.
19885     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
19886       and smartlist_len, which are two major profiling offenders.
19888   o Bugfixes on 0.0.9pre5:
19889     - Fix a bug in read_all that was corrupting config files on windows.
19890     - When we're raising the max number of open file descriptors to
19891       'unlimited', don't log that we just raised it to '-1'.
19892     - Include event code with events, as required by control-spec.txt.
19893     - Don't give a fingerprint when clients do --list-fingerprint:
19894       it's misleading, because it will never be the same again.
19895     - Stop using strlcpy in tor_strndup, since it was slowing us
19896       down a lot.
19897     - Remove warn on startup about missing cached-directory file.
19898     - Make kill -USR1 work again.
19899     - Hibernate if we start tor during the "wait for wakeup-time" phase
19900       of an accounting interval. Log our hibernation plans better.
19901     - Authoritative dirservers now also cache their directory, so they
19902       have it on start-up.
19904   o Features:
19905     - Fetch running-routers; cache running-routers; compress
19906       running-routers; serve compressed running-routers.z
19907     - Add NSI installer script contributed by J Doe.
19908     - Commit VC6 and VC7 workspace/project files.
19909     - Commit a tor.spec for making RPM files, with help from jbash.
19910     - Add contrib/torctl.in contributed by Glenn Fink.
19911     - Implement the control-spec's SAVECONF command, to write your
19912       configuration to torrc.
19913     - Get cookie authentication for the controller closer to working.
19914     - Include control-spec.txt in the tarball.
19915     - When set_conf changes our server descriptor, upload a new copy.
19916       But don't upload it too often if there are frequent changes.
19917     - Document authentication config in man page, and document signals
19918       we catch.
19919     - Clean up confusing parts of man page and torrc.sample.
19920     - Make expand_filename handle ~ and ~username.
19921     - Use autoconf to enable largefile support where necessary. Use
19922       ftello where available, since ftell can fail at 2GB.
19923     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
19924       log more informatively.
19925     - Give a slightly more useful output for "tor -h".
19926     - Refuse application socks connections to port 0.
19927     - Check clock skew for verified servers, but allow unverified
19928       servers and clients to have any clock skew.
19929     - Break DirFetchPostPeriod into:
19930       - DirFetchPeriod for fetching full directory,
19931       - StatusFetchPeriod for fetching running-routers,
19932       - DirPostPeriod for posting server descriptor,
19933       - RendPostPeriod for posting hidden service descriptors.
19934     - Make sure the hidden service descriptors are at a random offset
19935       from each other, to hinder linkability.
19938 Changes in version 0.0.9pre5 - 2004-11-09
19939   o Bugfixes on 0.0.9pre4:
19940     - Fix a seg fault in unit tests (doesn't affect main program).
19941     - Fix an assert bug where a hidden service provider would fail if
19942       the first hop of his rendezvous circuit was down.
19943     - Hidden service operators now correctly handle version 1 style
19944       INTRODUCE1 cells (nobody generates them still, so not a critical
19945       bug).
19946     - If do_hup fails, actually notice.
19947     - Handle more errnos from accept() without closing the listener.
19948       Some OpenBSD machines were closing their listeners because
19949       they ran out of file descriptors.
19950     - Send resolve cells to exit routers that are running a new
19951       enough version of the resolve code to work right.
19952     - Better handling of winsock includes on non-MSV win32 compilers.
19953     - Some people had wrapped their tor client/server in a script
19954       that would restart it whenever it died. This did not play well
19955       with our "shut down if your version is obsolete" code. Now people
19956       don't fetch a new directory if their local cached version is
19957       recent enough.
19958     - Make our autogen.sh work on ksh as well as bash.
19960   o Major Features:
19961     - Hibernation: New config option "AccountingMaxKB" lets you
19962       set how many KBytes per month you want to allow your server to
19963       consume. Rather than spreading those bytes out evenly over the
19964       month, we instead hibernate for some of the month and pop up
19965       at a deterministic time, work until the bytes are consumed, then
19966       hibernate again. Config option "MonthlyAccountingStart" lets you
19967       specify which day of the month your billing cycle starts on.
19968     - Control interface: a separate program can now talk to your
19969       client/server over a socket, and get/set config options, receive
19970       notifications of circuits and streams starting/finishing/dying,
19971       bandwidth used, etc. The next step is to get some GUIs working.
19972       Let us know if you want to help out. See doc/control-spec.txt .
19973     - Ship a contrib/tor-control.py as an example script to interact
19974       with the control port.
19975     - "tor --hash-password zzyxz" will output a salted password for
19976       use in authenticating to the control interface.
19977     - New log format in config:
19978       "Log minsev[-maxsev] stdout|stderr|syslog" or
19979       "Log minsev[-maxsev] file /var/foo"
19981   o Minor Features:
19982     - DirPolicy config option, to let people reject incoming addresses
19983       from their dirserver.
19984     - "tor --list-fingerprint" will list your identity key fingerprint
19985       and then exit.
19986     - Add "pass" target for RedirectExit, to make it easier to break
19987       out of a sequence of RedirectExit rules.
19988     - Clients now generate a TLS cert too, in preparation for having
19989       them act more like real nodes.
19990     - Ship src/win32/ in the tarball, so people can use it to build.
19991     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
19992       is broken.
19993     - New "router-status" line in directory, to better bind each verified
19994       nickname to its identity key.
19995     - Deprecate unofficial config option abbreviations, and abbreviations
19996       not on the command line.
19997     - Add a pure-C tor-resolve implementation.
19998     - Use getrlimit and friends to ensure we can reach MaxConn (currently
19999       1024) file descriptors.
20001   o Code security improvements, inspired by Ilja:
20002     - Replace sprintf with snprintf. (I think they were all safe, but
20003       hey.)
20004     - Replace strcpy/strncpy with strlcpy in more places.
20005     - Avoid strcat; use snprintf or strlcat instead.
20006     - snprintf wrapper with consistent (though not C99) overflow behavior.
20009 Changes in version 0.0.9pre4 - 2004-10-17
20010   o Bugfixes on 0.0.9pre3:
20011     - If the server doesn't specify an exit policy, use the real default
20012       exit policy, not reject *:*.
20013     - Ignore fascistfirewall when uploading/downloading hidden service
20014       descriptors, since we go through Tor for those; and when using
20015       an HttpProxy, since we assume it can reach them all.
20016     - When looking for an authoritative dirserver, use only the ones
20017       configured at boot. Don't bother looking in the directory.
20018     - The rest of the fix for get_default_conf_file() on older win32.
20019     - Make 'Routerfile' config option obsolete.
20021   o Features:
20022     - New 'MyFamily nick1,...' config option for a server to
20023       specify other servers that shouldn't be used in the same circuit
20024       with it. Only believed if nick1 also specifies us.
20025     - New 'NodeFamily nick1,nick2,...' config option for a client to
20026       specify nodes that it doesn't want to use in the same circuit.
20027     - New 'Redirectexit pattern address:port' config option for a
20028       server to redirect exit connections, e.g. to a local squid.
20031 Changes in version 0.0.9pre3 - 2004-10-13
20032   o Bugfixes on 0.0.8.1:
20033     - Better torrc example lines for dirbindaddress and orbindaddress.
20034     - Improved bounds checking on parsed ints (e.g. config options and
20035       the ones we find in directories.)
20036     - Better handling of size_t vs int, so we're more robust on 64
20037       bit platforms.
20038     - Fix the rest of the bug where a newly started OR would appear
20039       as unverified even after we've added his fingerprint and hupped
20040       the dirserver.
20041     - Fix a bug from 0.0.7: when read() failed on a stream, we would
20042       close it without sending back an end. So 'connection refused'
20043       would simply be ignored and the user would get no response.
20045   o Bugfixes on 0.0.9pre2:
20046     - Serving the cached-on-disk directory to people is bad. We now
20047       provide no directory until we've fetched a fresh one.
20048     - Workaround for bug on windows where cached-directories get crlf
20049       corruption.
20050     - Make get_default_conf_file() work on older windows too.
20051     - If we write a *:* exit policy line in the descriptor, don't write
20052       any more exit policy lines.
20054   o Features:
20055     - Use only 0.0.9pre1 and later servers for resolve cells.
20056     - Make the dirservers file obsolete.
20057       - Include a dir-signing-key token in directories to tell the
20058         parsing entity which key is being used to sign.
20059       - Remove the built-in bulky default dirservers string.
20060       - New config option "Dirserver %s:%d [fingerprint]", which can be
20061         repeated as many times as needed. If no dirservers specified,
20062         default to moria1,moria2,tor26.
20063     - Make moria2 advertise a dirport of 80, so people behind firewalls
20064       will be able to get a directory.
20065     - Http proxy support
20066       - Dirservers translate requests for http://%s:%d/x to /x
20067       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
20068         be routed through this host.
20069       - Clients ask for /tor/x rather than /x for new enough dirservers.
20070         This way we can one day coexist peacefully with apache.
20071       - Clients specify a "Host: %s%d" http header, to be compatible
20072         with more proxies, and so running squid on an exit node can work.
20075 Changes in version 0.0.8.1 - 2004-10-13
20076   o Bugfixes:
20077     - Fix a seg fault that can be triggered remotely for Tor
20078       clients/servers with an open dirport.
20079     - Fix a rare assert trigger, where routerinfos for entries in
20080       our cpath would expire while we're building the path.
20081     - Fix a bug in OutboundBindAddress so it (hopefully) works.
20082     - Fix a rare seg fault for people running hidden services on
20083       intermittent connections.
20084     - Fix a bug in parsing opt keywords with objects.
20085     - Fix a stale pointer assert bug when a stream detaches and
20086       reattaches.
20087     - Fix a string format vulnerability (probably not exploitable)
20088       in reporting stats locally.
20089     - Fix an assert trigger: sometimes launching circuits can fail
20090       immediately, e.g. because too many circuits have failed recently.
20091     - Fix a compile warning on 64 bit platforms.
20094 Changes in version 0.0.9pre2 - 2004-10-03
20095   o Bugfixes:
20096     - Make fetching a cached directory work for 64-bit platforms too.
20097     - Make zlib.h a required header, not an optional header.
20100 Changes in version 0.0.9pre1 - 2004-10-01
20101   o Bugfixes:
20102     - Stop using separate defaults for no-config-file and
20103       empty-config-file. Now you have to explicitly turn off SocksPort,
20104       if you don't want it open.
20105     - Fix a bug in OutboundBindAddress so it (hopefully) works.
20106     - Improve man page to mention more of the 0.0.8 features.
20107     - Fix a rare seg fault for people running hidden services on
20108       intermittent connections.
20109     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
20110       happier.
20111     - Fix more dns related bugs: send back resolve_failed and end cells
20112       more reliably when the resolve fails, rather than closing the
20113       circuit and then trying to send the cell. Also attach dummy resolve
20114       connections to a circuit *before* calling dns_resolve(), to fix
20115       a bug where cached answers would never be sent in RESOLVED cells.
20116     - When we run out of disk space, or other log writing error, don't
20117       crash. Just stop logging to that log and continue.
20118     - We were starting to daemonize before we opened our logs, so if
20119       there were any problems opening logs, we would complain to stderr,
20120       which wouldn't work, and then mysteriously exit.
20121     - Fix a rare bug where sometimes a verified OR would connect to us
20122       before he'd uploaded his descriptor, which would cause us to
20123       assign conn->nickname as though he's unverified. Now we look through
20124       the fingerprint list to see if he's there.
20125     - Fix a rare assert trigger, where routerinfos for entries in
20126       our cpath would expire while we're building the path.
20128   o Features:
20129     - Clients can ask dirservers for /dir.z to get a compressed version
20130       of the directory. Only works for servers running 0.0.9, of course.
20131     - Make clients cache directories and use them to seed their router
20132       lists at startup. This means clients have a datadir again.
20133     - Configuration infrastructure support for warning on obsolete
20134       options.
20135     - Respond to content-encoding headers by trying to uncompress as
20136       appropriate.
20137     - Reply with a deflated directory when a client asks for "dir.z".
20138       We could use allow-encodings instead, but allow-encodings isn't
20139       specified in HTTP 1.0.
20140     - Raise the max dns workers from 50 to 100.
20141     - Discourage people from setting their dirfetchpostperiod more often
20142       than once per minute.
20143     - Protect dirservers from overzealous descriptor uploading -- wait
20144       10 seconds after directory gets dirty, before regenerating.
20147 Changes in version 0.0.8 - 2004-08-25
20148   o Port it to SunOS 5.9 / Athena
20151 Changes in version 0.0.8rc2 - 2004-08-20
20152   o Make it compile on cygwin again.
20153   o When picking unverified routers, skip those with low uptime and/or
20154     low bandwidth, depending on what properties you care about.
20157 Changes in version 0.0.8rc1 - 2004-08-18
20158   o Changes from 0.0.7.3:
20159     - Bugfixes:
20160       - Fix assert triggers: if the other side returns an address 0.0.0.0,
20161         don't put it into the client dns cache.
20162       - If a begin failed due to exit policy, but we believe the IP address
20163         should have been allowed, switch that router to exitpolicy reject *:*
20164         until we get our next directory.
20165     - Features:
20166       - Clients choose nodes proportional to advertised bandwidth.
20167       - Avoid using nodes with low uptime as introduction points.
20168       - Handle servers with dynamic IP addresses: don't replace
20169         options->Address with the resolved one at startup, and
20170         detect our address right before we make a routerinfo each time.
20171       - 'FascistFirewall' option to pick dirservers and ORs on specific
20172         ports; plus 'FirewallPorts' config option to tell FascistFirewall
20173         which ports are open. (Defaults to 80,443)
20174       - Be more aggressive about trying to make circuits when the network
20175         has changed (e.g. when you unsuspend your laptop).
20176       - Check for time skew on http headers; report date in response to
20177         "GET /".
20178       - If the entrynode config line has only one node, don't pick it as
20179         an exitnode.
20180       - Add strict{entry|exit}nodes config options. If set to 1, then
20181         we refuse to build circuits that don't include the specified entry
20182         or exit nodes.
20183       - OutboundBindAddress config option, to bind to a specific
20184         IP address for outgoing connect()s.
20185       - End truncated log entries (e.g. directories) with "[truncated]".
20187   o Patches to 0.0.8preX:
20188     - Bugfixes:
20189       - Patches to compile and run on win32 again (maybe)?
20190       - Fix crash when looking for ~/.torrc with no $HOME set.
20191       - Fix a race bug in the unit tests.
20192       - Handle verified/unverified name collisions better when new
20193         routerinfo's arrive in a directory.
20194       - Sometimes routers were getting entered into the stats before
20195         we'd assigned their identity_digest. Oops.
20196       - Only pick and establish intro points after we've gotten a
20197         directory.
20198     - Features:
20199       - AllowUnverifiedNodes config option to let circuits choose no-name
20200         routers in entry,middle,exit,introduction,rendezvous positions.
20201         Allow middle and rendezvous positions by default.
20202       - Add a man page for tor-resolve.
20205 Changes in version 0.0.7.3 - 2004-08-12
20206   o Stop dnsworkers from triggering an assert failure when you
20207     ask them to resolve the host "".
20210 Changes in version 0.0.8pre3 - 2004-08-09
20211   o Changes from 0.0.7.2:
20212     - Allow multiple ORs with same nickname in routerlist -- now when
20213       people give us one identity key for a nickname, then later
20214       another, we don't constantly complain until the first expires.
20215     - Remember used bandwidth (both in and out), and publish 15-minute
20216       snapshots for the past day into our descriptor.
20217     - You can now fetch $DIRURL/running-routers to get just the
20218       running-routers line, not the whole descriptor list. (But
20219       clients don't use this yet.)
20220     - When people mistakenly use Tor as an http proxy, point them
20221       at the tor-doc.html rather than the INSTALL.
20222     - Remove our mostly unused -- and broken -- hex_encode()
20223       function. Use base16_encode() instead. (Thanks to Timo Lindfors
20224       for pointing out this bug.)
20225     - Rotate onion keys every 12 hours, not every 2 hours, so we have
20226       fewer problems with people using the wrong key.
20227     - Change the default exit policy to reject the default edonkey,
20228       kazaa, gnutella ports.
20229     - Add replace_file() to util.[ch] to handle win32's rename().
20231   o Changes from 0.0.8preX:
20232     - Fix two bugs in saving onion keys to disk when rotating, so
20233       hopefully we'll get fewer people using old onion keys.
20234     - Fix an assert error that was making SocksPolicy not work.
20235     - Be willing to expire routers that have an open dirport -- it's
20236       just the authoritative dirservers we want to not forget.
20237     - Reject tor-resolve requests for .onion addresses early, so we
20238       don't build a whole rendezvous circuit and then fail.
20239     - When you're warning a server that he's unverified, don't cry
20240       wolf unpredictably.
20241     - Fix a race condition: don't try to extend onto a connection
20242       that's still handshaking.
20243     - For servers in clique mode, require the conn to be open before
20244       you'll choose it for your path.
20245     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
20246       end relay cell, etc.
20247     - Measure bandwidth capacity over the last 24 hours, not just 12
20248     - Bugfix: authoritative dirservers were making and signing a new
20249       directory for each client, rather than reusing the cached one.
20252 Changes in version 0.0.8pre2 - 2004-08-04
20253   o Changes from 0.0.7.2:
20254     - Security fixes:
20255       - Check directory signature _before_ you decide whether you're
20256         you're running an obsolete version and should exit.
20257       - Check directory signature _before_ you parse the running-routers
20258         list to decide who's running or verified.
20259     - Bugfixes and features:
20260       - Check return value of fclose while writing to disk, so we don't
20261         end up with broken files when servers run out of disk space.
20262       - Log a warning if the user uses an unsafe socks variant, so people
20263         are more likely to learn about privoxy or socat.
20264       - Dirservers now include RFC1123-style dates in the HTTP headers,
20265         which one day we will use to better detect clock skew.
20267   o Changes from 0.0.8pre1:
20268     - Make it compile without warnings again on win32.
20269     - Log a warning if you're running an unverified server, to let you
20270       know you might want to get it verified.
20271     - Only pick a default nickname if you plan to be a server.
20274 Changes in version 0.0.8pre1 - 2004-07-23
20275   o Bugfixes:
20276     - Made our unit tests compile again on OpenBSD 3.5, and tor
20277       itself compile again on OpenBSD on a sparc64.
20278     - We were neglecting milliseconds when logging on win32, so
20279       everything appeared to happen at the beginning of each second.
20281   o Protocol changes:
20282     - 'Extend' relay cell payloads now include the digest of the
20283       intended next hop's identity key. Now we can verify that we're
20284       extending to the right router, and also extend to routers we
20285       hadn't heard of before.
20287   o Features:
20288     - Tor nodes can now act as relays (with an advertised ORPort)
20289       without being manually verified by the dirserver operators.
20290       - Uploaded descriptors of unverified routers are now accepted
20291         by the dirservers, and included in the directory.
20292       - Verified routers are listed by nickname in the running-routers
20293         list; unverified routers are listed as "$<fingerprint>".
20294       - We now use hash-of-identity-key in most places rather than
20295         nickname or addr:port, for improved security/flexibility.
20296       - To avoid Sybil attacks, paths still use only verified servers.
20297         But now we have a chance to play around with hybrid approaches.
20298       - Nodes track bandwidth usage to estimate capacity (not used yet).
20299       - ClientOnly option for nodes that never want to become servers.
20300     - Directory caching.
20301       - "AuthoritativeDir 1" option for the official dirservers.
20302       - Now other nodes (clients and servers) will cache the latest
20303         directory they've pulled down.
20304       - They can enable their DirPort to serve it to others.
20305       - Clients will pull down a directory from any node with an open
20306         DirPort, and check the signature/timestamp correctly.
20307       - Authoritative dirservers now fetch directories from other
20308         authdirservers, to stay better synced.
20309       - Running-routers list tells who's down also, along with noting
20310         if they're verified (listed by nickname) or unverified (listed
20311         by hash-of-key).
20312       - Allow dirservers to serve running-router list separately.
20313         This isn't used yet.
20314     - ORs connect-on-demand to other ORs
20315       - If you get an extend cell to an OR you're not connected to,
20316         connect, handshake, and forward the create cell.
20317       - The authoritative dirservers stay connected to everybody,
20318         and everybody stays connected to 0.0.7 servers, but otherwise
20319         clients/servers expire unused connections after 5 minutes.
20320     - When servers get a sigint, they delay 30 seconds (refusing new
20321       connections) then exit. A second sigint causes immediate exit.
20322     - File and name management:
20323       - Look for .torrc if no CONFDIR "torrc" is found.
20324       - If no datadir is defined, then choose, make, and secure ~/.tor
20325         as datadir.
20326       - If torrc not found, exitpolicy reject *:*.
20327       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
20328       - If no nickname is defined, derive default from hostname.
20329       - Rename secret key files, e.g. identity.key -> secret_id_key,
20330         to discourage people from mailing their identity key to tor-ops.
20331     - Refuse to build a circuit before the directory has arrived --
20332       it won't work anyway, since you won't know the right onion keys
20333       to use.
20334     - Try other dirservers immediately if the one you try is down. This
20335       should tolerate down dirservers better now.
20336     - Parse tor version numbers so we can do an is-newer-than check
20337       rather than an is-in-the-list check.
20338     - New socks command 'resolve', to let us shim gethostbyname()
20339       locally.
20340       - A 'tor_resolve' script to access the socks resolve functionality.
20341       - A new socks-extensions.txt doc file to describe our
20342         interpretation and extensions to the socks protocols.
20343     - Add a ContactInfo option, which gets published in descriptor.
20344     - Publish OR uptime in descriptor (and thus in directory) too.
20345     - Write tor version at the top of each log file
20346     - New docs in the tarball:
20347       - tor-doc.html.
20348       - Document that you should proxy your SSL traffic too.
20351 Changes in version 0.0.7.2 - 2004-07-07
20352   o A better fix for the 0.0.0.0 problem, that will hopefully
20353     eliminate the remaining related assertion failures.
20356 Changes in version 0.0.7.1 - 2004-07-04
20357   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
20358     since internally we use 0.0.0.0 to signify "not yet resolved".
20361 Changes in version 0.0.7 - 2004-06-07
20362   o Updated the man page to reflect the new features.
20365 Changes in version 0.0.7rc2 - 2004-06-06
20366   o Changes from 0.0.7rc1:
20367     - Make it build on Win32 again.
20368   o Changes from 0.0.6.2:
20369     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
20370       settings too.
20373 Changes in version 0.0.7rc1 - 2004-06-02
20374   o Bugfixes:
20375     - On sighup, we were adding another log without removing the first
20376       one. So log messages would get duplicated n times for n sighups.
20377     - Several cases of using a connection after we'd freed it. The
20378       problem was that connections that are pending resolve are in both
20379       the pending_resolve tree, and also the circuit's resolving_streams
20380       list. When you want to remove one, you must remove it from both.
20381     - Fix a double-mark-for-close where an end cell arrived for a
20382       resolving stream, and then the resolve failed.
20383     - Check directory signatures based on name of signer, not on whom
20384       we got the directory from. This will let us cache directories more
20385       easily.
20386   o Features:
20387     - Crank up some of our constants to handle more users.
20390 Changes in version 0.0.7pre1 - 2004-06-02
20391   o Fixes for crashes and other obnoxious bugs:
20392     - Fix an epipe bug: sometimes when directory connections failed
20393       to connect, we would give them a chance to flush before closing
20394       them.
20395     - When we detached from a circuit because of resolvefailed, we
20396       would immediately try the same circuit twice more, and then
20397       give up on the resolve thinking we'd tried three different
20398       exit nodes.
20399     - Limit the number of intro circuits we'll attempt to build for a
20400       hidden service per 15-minute period.
20401     - Check recommended-software string *early*, before actually parsing
20402       the directory. Thus we can detect an obsolete version and exit,
20403       even if the new directory format doesn't parse.
20404   o Fixes for security bugs:
20405     - Remember which nodes are dirservers when you startup, and if a
20406       random OR enables his dirport, don't automatically assume he's
20407       a trusted dirserver.
20408   o Other bugfixes:
20409     - Directory connections were asking the wrong poll socket to
20410       start writing, and not asking themselves to start writing.
20411     - When we detached from a circuit because we sent a begin but
20412       didn't get a connected, we would use it again the first time;
20413       but after that we would correctly switch to a different one.
20414     - Stop warning when the first onion decrypt attempt fails; they
20415       will sometimes legitimately fail now that we rotate keys.
20416     - Override unaligned-access-ok check when $host_cpu is ia64 or
20417       arm. Apparently they allow it but the kernel whines.
20418     - Dirservers try to reconnect periodically too, in case connections
20419       have failed.
20420     - Fix some memory leaks in directory servers.
20421     - Allow backslash in Win32 filenames.
20422     - Made Tor build complain-free on FreeBSD, hopefully without
20423       breaking other BSD builds. We'll see.
20424   o Features:
20425     - Doxygen markup on all functions and global variables.
20426     - Make directory functions update routerlist, not replace it. So
20427       now directory disagreements are not so critical a problem.
20428     - Remove the upper limit on number of descriptors in a dirserver's
20429       directory (not that we were anywhere close).
20430     - Allow multiple logfiles at different severity ranges.
20431     - Allow *BindAddress to specify ":port" rather than setting *Port
20432       separately. Allow multiple instances of each BindAddress config
20433       option, so you can bind to multiple interfaces if you want.
20434     - Allow multiple exit policy lines, which are processed in order.
20435       Now we don't need that huge line with all the commas in it.
20436     - Enable accept/reject policies on SOCKS connections, so you can bind
20437       to 0.0.0.0 but still control who can use your OP.
20440 Changes in version 0.0.6.2 - 2004-05-16
20441   o Our integrity-checking digest was checking only the most recent cell,
20442     not the previous cells like we'd thought.
20443     Thanks to Stefan Mark for finding the flaw!
20446 Changes in version 0.0.6.1 - 2004-05-06
20447   o Fix two bugs in our AES counter-mode implementation (this affected
20448     onion-level stream encryption, but not TLS-level). It turns
20449     out we were doing something much more akin to a 16-character
20450     polyalphabetic cipher. Oops.
20451     Thanks to Stefan Mark for finding the flaw!
20452   o Retire moria3 as a directory server, and add tor26 as a directory
20453     server.
20456 Changes in version 0.0.6 - 2004-05-02
20457   [version bump only]
20460 Changes in version 0.0.6rc4 - 2004-05-01
20461   o Update the built-in dirservers list to use the new directory format
20462   o Fix a rare seg fault: if a node offering a hidden service attempts
20463     to build a circuit to Alice's rendezvous point and fails before it
20464     reaches the last hop, it retries with a different circuit, but
20465     then dies.
20466   o Handle windows socket errors correctly.
20469 Changes in version 0.0.6rc3 - 2004-04-28
20470   o Don't expire non-general excess circuits (if we had enough
20471     circuits open, we were expiring rendezvous circuits -- even
20472     when they had a stream attached. oops.)
20473   o Fetch randomness from /dev/urandom better (not via fopen/fread)
20474   o Better debugging for tls errors
20475   o Some versions of openssl have an SSL_pending function that erroneously
20476     returns bytes when there is a non-application record pending.
20477   o Set Content-Type on the directory and hidserv descriptor.
20478   o Remove IVs from cipher code, since AES-ctr has none.
20479   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
20480     o We were using an array of length zero in a few places.
20481     o win32's gethostbyname can't resolve an IP to an IP.
20482     o win32's close can't close a socket.
20485 Changes in version 0.0.6rc2 - 2004-04-26
20486   o Fix a bug where we were closing tls connections intermittently.
20487     It turns out openssl keeps its errors around -- so if an error
20488     happens, and you don't ask about it, and then another openssl
20489     operation happens and succeeds, and you ask if there was an error,
20490     it tells you about the first error. Fun fun.
20491   o Fix a bug that's been lurking since 27 may 03 (!)
20492     When passing back a destroy cell, we would use the wrong circ id.
20493     'Mostly harmless', but still worth fixing.
20494   o Since we don't support truncateds much, don't bother sending them;
20495     just close the circ.
20496   o check for <machine/limits.h> so we build on NetBSD again (I hope).
20497   o don't crash if a conn that sent a begin has suddenly lost its circuit
20498     (this was quite rare).
20501 Changes in version 0.0.6rc1 - 2004-04-25
20502   o We now rotate link (tls context) keys and onion keys.
20503   o CREATE cells now include oaep padding, so you can tell
20504     if you decrypted them correctly.
20505   o Add bandwidthburst to server descriptor.
20506   o Directories now say which dirserver signed them.
20507   o Use a tor_assert macro that logs failed assertions too.
20510 Changes in version 0.0.6pre5 - 2004-04-18
20511   o changes from 0.0.6pre4:
20512     - make tor build on broken freebsd 5.2 installs
20513     - fix a failed assert when you try an intro point, get a nack, and try
20514       a second one and it works.
20515     - when alice uses a port that the hidden service doesn't accept,
20516       it now sends back an end cell (denied by exit policy). otherwise
20517       alice would just have to wait to time out.
20518     - fix another rare bug: when we had tried all the intro
20519       points for a hidden service, we fetched the descriptor
20520       again, but we left our introcirc thinking it had already
20521       sent an intro, so it kept waiting for a response...
20522     - bugfix: when you sleep your hidden-service laptop, as soon
20523       as it wakes up it tries to upload a service descriptor, but
20524       socketpair fails for some reason (localhost not up yet?).
20525       now we simply give up on that upload, and we'll try again later.
20526       i'd still like to find the bug though.
20527     - if an intro circ waiting for an ack dies before getting one, then
20528       count it as a nack
20529     - we were reusing stale service descriptors and refetching usable
20530       ones. oops.
20533 Changes in version 0.0.6pre4 - 2004-04-14
20534   o changes from 0.0.6pre3:
20535     - when bob fails to connect to the rendezvous point, and his
20536       circ didn't fail because of the rendezvous point itself, then
20537       he retries a couple of times
20538     - we expire introduction and rendezvous circs more thoroughly
20539       (sometimes they were hanging around forever)
20540     - we expire unattached rendezvous streams that have been around
20541       too long (they were sticking around forever).
20542     - fix a measly fencepost error that was crashing everybody with
20543       a strict glibc.
20546 Changes in version 0.0.6pre3 - 2004-04-14
20547   o changes from 0.0.6pre2:
20548     - make hup work again
20549     - fix some memory leaks for dirservers
20550     - allow more skew in rendezvous descriptor timestamps, to help
20551       handle people like blanu who don't know what time it is
20552     - normal circs are 3 hops, but some rend/intro circs are 4, if
20553       the initiator doesn't get to choose the last hop
20554     - send acks for introductions, so alice can know whether to try
20555       again
20556     - bob publishes intro points more correctly
20557   o changes from 0.0.5:
20558     - fix an assert trigger that's been plaguing us since the days
20559       of 0.0.2prexx (thanks weasel!)
20560     - retry stream correctly when we fail to connect because of
20561       exit-policy-reject (should try another) or can't-resolve-address
20562       (also should try another, because dns on random internet servers
20563       is flaky).
20564     - when we hup a dirserver and we've *removed* a server from the
20565       approved-routers list, now we remove that server from the
20566       in-memory directories too
20569 Changes in version 0.0.6pre2 - 2004-04-08
20570   o We fixed our base32 implementation. Now it works on all architectures.
20573 Changes in version 0.0.6pre1 - 2004-04-08
20574   o Features:
20575     - Hidden services and rendezvous points are implemented. Go to
20576       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
20577       hidden services. (This only works via a socks4a proxy such as
20578       Privoxy, and currently it's quite slow.)
20581 Changes in version 0.0.5 - 2004-03-30
20582   [version bump only]
20585 Changes in version 0.0.5rc3 - 2004-03-29
20586   o Install torrc as torrc.sample -- we no longer clobber your
20587     torrc. (Woo!)
20588   o Re-enable recommendedversion checking (we broke it in rc2, oops)
20589   o Add in a 'notice' log level for things the operator should hear
20590     but that aren't warnings
20593 Changes in version 0.0.5rc2 - 2004-03-29
20594   o Hold socks connection open until reply is flushed (if possible)
20595   o Make exit nodes resolve IPs to IPs immediately, rather than asking
20596     the dns farm to do it.
20597   o Fix c99 aliasing warnings in rephist.c
20598   o Don't include server descriptors that are older than 24 hours in the
20599     directory.
20600   o Give socks 'reject' replies their whole 15s to attempt to flush,
20601     rather than seeing the 60s timeout and assuming the flush had failed.
20602   o Clean automake droppings from the cvs repository
20605 Changes in version 0.0.5rc1 - 2004-03-28
20606   o Fix mangled-state bug in directory fetching (was causing sigpipes).
20607   o Only build circuits after we've fetched the directory: clients were
20608     using only the directory servers before they'd fetched a directory.
20609     This also means longer startup time; so it goes.
20610   o Fix an assert trigger where an OP would fail to handshake, and we'd
20611     expect it to have a nickname.
20612   o Work around a tsocks bug: do a socks reject when AP connection dies
20613     early, else tsocks goes into an infinite loop.
20616 Changes in version 0.0.4 - 2004-03-26
20617   o When connecting to a dirserver or OR and the network is down,
20618     we would crash.
20621 Changes in version 0.0.3 - 2004-03-26
20622   o Warn and fail if server chose a nickname with illegal characters
20623   o Port to Solaris and Sparc:
20624     - include missing header fcntl.h
20625     - have autoconf find -lsocket -lnsl automatically
20626     - deal with hardware word alignment
20627     - make uname() work (solaris has a different return convention)
20628     - switch from using signal() to sigaction()
20629   o Preliminary work on reputation system:
20630     - Keep statistics on success/fail of connect attempts; they're published
20631       by kill -USR1 currently.
20632     - Add a RunTesting option to try to learn link state by creating test
20633       circuits, even when SocksPort is off.
20634     - Remove unused open circuits when there are too many.
20637 Changes in version 0.0.2 - 2004-03-19
20638     - Include strlcpy and strlcat for safer string ops
20639     - define INADDR_NONE so we compile (but still not run) on solaris
20642 Changes in version 0.0.2pre27 - 2004-03-14
20643   o Bugfixes:
20644     - Allow internal tor networks (we were rejecting internal IPs,
20645       now we allow them if they're set explicitly).
20646     - And fix a few endian issues.
20649 Changes in version 0.0.2pre26 - 2004-03-14
20650   o New features:
20651     - If a stream times out after 15s without a connected cell, don't
20652       try that circuit again: try a new one.
20653     - Retry streams at most 4 times. Then give up.
20654     - When a dirserver gets a descriptor from an unknown router, it
20655       logs its fingerprint (so the dirserver operator can choose to
20656       accept it even without mail from the server operator).
20657     - Inform unapproved servers when we reject their descriptors.
20658     - Make tor build on Windows again. It works as a client, who knows
20659       about as a server.
20660     - Clearer instructions in the torrc for how to set up a server.
20661     - Be more efficient about reading fd's when our global token bucket
20662       (used for rate limiting) becomes empty.
20663   o Bugfixes:
20664     - Stop asserting that computers always go forward in time. It's
20665       simply not true.
20666     - When we sent a cell (e.g. destroy) and then marked an OR connection
20667       expired, we might close it before finishing a flush if the other
20668       side isn't reading right then.
20669     - Don't allow dirservers to start if they haven't defined
20670       RecommendedVersions
20671     - We were caching transient dns failures. Oops.
20672     - Prevent servers from publishing an internal IP as their address.
20673     - Address a strcat vulnerability in circuit.c
20676 Changes in version 0.0.2pre25 - 2004-03-04
20677   o New features:
20678     - Put the OR's IP in its router descriptor, not its fqdn. That way
20679       we'll stop being stalled by gethostbyname for nodes with flaky dns,
20680       e.g. poblano.
20681   o Bugfixes:
20682     - If the user typed in an address that didn't resolve, the server
20683       crashed.
20686 Changes in version 0.0.2pre24 - 2004-03-03
20687   o Bugfixes:
20688     - Fix an assertion failure in dns.c, where we were trying to dequeue
20689       a pending dns resolve even if it wasn't pending
20690     - Fix a spurious socks5 warning about still trying to write after the
20691       connection is finished.
20692     - Hold certain marked_for_close connections open until they're finished
20693       flushing, rather than losing bytes by closing them too early.
20694     - Correctly report the reason for ending a stream
20695     - Remove some duplicate calls to connection_mark_for_close
20696     - Put switch_id and start_daemon earlier in the boot sequence, so it
20697       will actually try to chdir() to options.DataDirectory
20698     - Make 'make test' exit(1) if a test fails; fix some unit tests
20699     - Make tor fail when you use a config option it doesn't know about,
20700       rather than warn and continue.
20701     - Make --version work
20702     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
20705 Changes in version 0.0.2pre23 - 2004-02-29
20706   o New features:
20707     - Print a statement when the first circ is finished, so the user
20708       knows it's working.
20709     - If a relay cell is unrecognized at the end of the circuit,
20710       send back a destroy. (So attacks to mutate cells are more
20711       clearly thwarted.)
20712     - New config option 'excludenodes' to avoid certain nodes for circuits.
20713     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
20714       so you can collect coredumps there.
20715  o Bugfixes:
20716     - Fix a bug in tls flushing where sometimes data got wedged and
20717       didn't flush until more data got sent. Hopefully this bug was
20718       a big factor in the random delays we were seeing.
20719     - Make 'connected' cells include the resolved IP, so the client
20720       dns cache actually gets populated.
20721     - Disallow changing from ORPort=0 to ORPort>0 on hup.
20722     - When we time-out on a stream and detach from the circuit, send an
20723       end cell down it first.
20724     - Only warn about an unknown router (in exitnodes, entrynodes,
20725       excludenodes) after we've fetched a directory.
20728 Changes in version 0.0.2pre22 - 2004-02-26
20729   o New features:
20730     - Servers publish less revealing uname information in descriptors.
20731     - More memory tracking and assertions, to crash more usefully when
20732       errors happen.
20733     - If the default torrc isn't there, just use some default defaults.
20734       Plus provide an internal dirservers file if they don't have one.
20735     - When the user tries to use Tor as an http proxy, give them an http
20736       501 failure explaining that we're a socks proxy.
20737     - Dump a new router.desc on hup, to help confused people who change
20738       their exit policies and then wonder why router.desc doesn't reflect
20739       it.
20740     - Clean up the generic tor.sh init script that we ship with.
20741   o Bugfixes:
20742     - If the exit stream is pending on the resolve, and a destroy arrives,
20743       then the stream wasn't getting removed from the pending list. I
20744       think this was the one causing recent server crashes.
20745     - Use a more robust poll on OSX 10.3, since their poll is flaky.
20746     - When it couldn't resolve any dirservers, it was useless from then on.
20747       Now it reloads the RouterFile (or default dirservers) if it has no
20748       dirservers.
20749     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
20750       many users don't even *have* a /usr/local/sbin/.
20753 Changes in version 0.0.2pre21 - 2004-02-18
20754   o New features:
20755     - There's a ChangeLog file that actually reflects the changelog.
20756     - There's a 'torify' wrapper script, with an accompanying
20757       tor-tsocks.conf, that simplifies the process of using tsocks for
20758       tor. It even has a man page.
20759     - The tor binary gets installed to sbin rather than bin now.
20760     - Retry streams where the connected cell hasn't arrived in 15 seconds
20761     - Clean up exit policy handling -- get the default out of the torrc,
20762       so we can update it without forcing each server operator to fix
20763       his/her torrc.
20764     - Allow imaps and pop3s in default exit policy
20765   o Bugfixes:
20766     - Prevent picking middleman nodes as the last node in the circuit
20769 Changes in version 0.0.2pre20 - 2004-01-30
20770   o New features:
20771     - We now have a deb package, and it's in debian unstable. Go to
20772       it, apt-getters. :)
20773     - I've split the TotalBandwidth option into BandwidthRate (how many
20774       bytes per second you want to allow, long-term) and
20775       BandwidthBurst (how many bytes you will allow at once before the cap
20776       kicks in). This better token bucket approach lets you, say, set
20777       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
20778       performance while not exceeding your monthly bandwidth quota.
20779     - Push out a tls record's worth of data once you've got it, rather
20780       than waiting until you've read everything waiting to be read. This
20781       may improve performance by pipelining better. We'll see.
20782     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
20783       from failed circuits (if they haven't been connected yet) and attach
20784       to new ones.
20785     - Expire old streams that haven't managed to connect. Some day we'll
20786       have them reattach to new circuits instead.
20788   o Bugfixes:
20789     - Fix several memory leaks that were causing servers to become bloated
20790       after a while.
20791     - Fix a few very rare assert triggers. A few more remain.
20792     - Setuid to User _before_ complaining about running as root.
20795 Changes in version 0.0.2pre19 - 2004-01-07
20796   o Bugfixes:
20797     - Fix deadlock condition in dns farm. We were telling a child to die by
20798       closing the parent's file descriptor to him. But newer children were
20799       inheriting the open file descriptor from the parent, and since they
20800       weren't closing it, the socket never closed, so the child never read
20801       eof, so he never knew to exit. Similarly, dns workers were holding
20802       open other sockets, leading to all sorts of chaos.
20803     - New cleaner daemon() code for forking and backgrounding.
20804     - If you log to a file, it now prints an entry at the top of the
20805       logfile so you know it's working.
20806     - The onionskin challenge length was 30 bytes longer than necessary.
20807     - Started to patch up the spec so it's not quite so out of date.
20810 Changes in version 0.0.2pre18 - 2004-01-02
20811   o Bugfixes:
20812     - Fix endian issues with the 'integrity' field in the relay header.
20813     - Fix a potential bug where connections in state
20814       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
20817 Changes in version 0.0.2pre17 - 2003-12-30
20818   o Bugfixes:
20819     - Made --debuglogfile (or any second log file, actually) work.
20820     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
20821       adversary could force us into an infinite loop.
20823   o Features:
20824     - Each onionskin handshake now includes a hash of the computed key,
20825       to prove the server's identity and help perfect forward secrecy.
20826     - Changed cell size from 256 to 512 bytes (working toward compatibility
20827       with MorphMix).
20828     - Changed cell length to 2 bytes, and moved it to the relay header.
20829     - Implemented end-to-end integrity checking for the payloads of
20830       relay cells.
20831     - Separated streamid from 'recognized' (otherwise circuits will get
20832       messed up when we try to have streams exit from the middle). We
20833       use the integrity-checking to confirm that a cell is addressed to
20834       this hop.
20835     - Randomize the initial circid and streamid values, so an adversary who
20836       breaks into a node can't learn how many circuits or streams have
20837       been made so far.
20840 Changes in version 0.0.2pre16 - 2003-12-14
20841   o Bugfixes:
20842     - Fixed a bug that made HUP trigger an assert
20843     - Fixed a bug where a circuit that immediately failed wasn't being
20844       counted as a failed circuit in counting retries.
20846   o Features:
20847     - Now we close the circuit when we get a truncated cell: otherwise we're
20848       open to an anonymity attack where a bad node in the path truncates
20849       the circuit and then we open streams at him.
20850     - Add port ranges to exit policies
20851     - Add a conservative default exit policy
20852     - Warn if you're running tor as root
20853     - on HUP, retry OR connections and close/rebind listeners
20854     - options.EntryNodes: try these nodes first when picking the first node
20855     - options.ExitNodes: if your best choices happen to include any of
20856       your preferred exit nodes, you choose among just those preferred
20857       exit nodes.
20858     - options.ExcludedNodes: nodes that are never picked in path building
20861 Changes in version 0.0.2pre15 - 2003-12-03
20862   o Robustness and bugfixes:
20863     - Sometimes clients would cache incorrect DNS resolves, which would
20864       really screw things up.
20865     - An OP that goes offline would slowly leak all its sockets and stop
20866       working.
20867     - A wide variety of bugfixes in exit node selection, exit policy
20868       handling, and processing pending streams when a new circuit is
20869       established.
20870     - Pick nodes for a path only from those the directory says are up
20871     - Choose randomly from all running dirservers, not always the first one
20872     - Increase allowed http header size for directory fetch.
20873     - Stop writing to stderr (if we're daemonized it will be closed).
20874     - Enable -g always, so cores will be more useful to me.
20875     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
20877   o Documentation:
20878     - Wrote a man page. It lists commonly used options.
20880   o Configuration:
20881     - Change default loglevel to warn.
20882     - Make PidFile default to null rather than littering in your CWD.
20883     - OnionRouter config option is now obsolete. Instead it just checks
20884       ORPort>0.
20885     - Moved to a single unified torrc file for both clients and servers.
20888 Changes in version 0.0.2pre14 - 2003-11-29
20889   o Robustness and bugfixes:
20890     - Force the admin to make the DataDirectory himself
20891       - to get ownership/permissions right
20892       - so clients no longer make a DataDirectory and then never use it
20893     - fix bug where a client who was offline for 45 minutes would never
20894       pull down a directory again
20895     - fix (or at least hide really well) the dns assert bug that was
20896       causing server crashes
20897     - warnings and improved robustness wrt clockskew for certs
20898     - use the native daemon(3) to daemonize, when available
20899     - exit if bind() fails
20900     - exit if neither socksport nor orport is defined
20901     - include our own tor_timegm (Win32 doesn't have its own)
20902     - bugfix for win32 with lots of connections
20903     - fix minor bias in PRNG
20904     - make dirserver more robust to corrupt cached directory
20906   o Documentation:
20907     - Wrote the design document (woo)
20909   o Circuit building and exit policies:
20910     - Circuits no longer try to use nodes that the directory has told them
20911       are down.
20912     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
20913       bitcounts (18.0.0.0/8).
20914     - Make AP connections standby for a circuit if no suitable circuit
20915       exists, rather than failing
20916     - Circuits choose exit node based on addr/port, exit policies, and
20917       which AP connections are standing by
20918     - Bump min pathlen from 2 to 3
20919     - Relay end cells have a payload to describe why the stream ended.
20920     - If the stream failed because of exit policy, try again with a new
20921       circuit.
20922     - Clients have a dns cache to remember resolved addresses.
20923     - Notice more quickly when we have no working circuits
20925   o Configuration:
20926     - APPort is now called SocksPort
20927     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
20928       where to bind
20929     - RecommendedVersions is now a config variable rather than
20930       hardcoded (for dirservers)
20931     - Reloads config on HUP
20932     - Usage info on -h or --help
20933     - If you set User and Group config vars, it'll setu/gid to them.
20936 Changes in version 0.0.2pre13 - 2003-10-19
20937   o General stability:
20938     - SSL_write no longer fails when it returns WANTWRITE and the number
20939       of bytes in the buf has changed by the next SSL_write call.
20940     - Fix segfault fetching directory when network is down
20941     - Fix a variety of minor memory leaks
20942     - Dirservers reload the fingerprints file on HUP, so I don't have
20943       to take down the network when I approve a new router
20944     - Default server config file has explicit Address line to specify fqdn
20946   o Buffers:
20947     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
20948     - Make listener connections not ever alloc bufs
20950   o Autoconf improvements:
20951     - don't clobber an external CFLAGS in ./configure
20952     - Make install now works
20953     - create var/lib/tor on make install
20954     - autocreate a tor.sh initscript to help distribs
20955     - autocreate the torrc and sample-server-torrc with correct paths
20957   o Log files and Daemonizing now work:
20958     - If --DebugLogFile is specified, log to it at -l debug
20959     - If --LogFile is specified, use it instead of commandline
20960     - If --RunAsDaemon is set, tor forks and backgrounds on startup