Fix spacing in if statement in port_parse_config()
[tor.git] / ChangeLog
blob1efcbcf00f8bb87891c7b801ce6b77254a65fd97
1 Changes in version 0.4.3.4-rc - 2020-04-13
2   Tor 0.4.3.4-rc is the first release candidate in its series. It fixes
3   several bugs from earlier versions, including one affecting DoS
4   defenses on bridges using pluggable transports.
6   o Major bugfixes (DoS defenses, bridges, pluggable transport):
7     - Fix a bug that was preventing DoS defenses from running on bridges
8       with a pluggable transport. Previously, the DoS subsystem was not
9       given the transport name of the client connection, thus failed to
10       find the GeoIP cache entry for that client address. Fixes bug
11       33491; bugfix on 0.3.3.2-alpha.
13   o Minor feature (sendme, flow control):
14     - Default to sending SENDME version 1 cells. (Clients are already
15       sending these, because of a consensus parameter telling them to do
16       so: this change only affects what clients would do if the
17       consensus didn't contain a recommendation.) Closes ticket 33623.
19   o Minor features (testing):
20     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
21       variable to specify a list of space-separated test cases that
22       should not be executed. We will use this to disable certain tests
23       that are failing on Appveyor because of mismatched OpenSSL
24       libraries. Part of ticket 33643.
26   o Minor bugfixes (--disable-module-relay):
27     - Fix an assertion failure when Tor is built without the relay
28       module, and then invoked with the "User" option. Fixes bug 33668;
29       bugfix on 0.4.3.1-alpha.
31   o Minor bugfixes (--disable-module-relay,--disable-module-dirauth):
32     - Set some output arguments in the relay and dirauth module stubs,
33       to guard against future stub argument handling bugs like 33668.
34       Fixes bug 33674; bugfix on 0.4.3.1-alpha.
36   o Minor bugfixes (build system):
37     - Correctly output the enabled module in the configure summary.
38       Before that, the list shown was just plain wrong. Fixes bug 33646;
39       bugfix on 0.4.3.2-alpha.
41   o Minor bugfixes (client, IPv6):
42     - Stop forcing all non-SocksPorts to prefer IPv6 exit connections.
43       Instead, prefer IPv6 connections by default, but allow users to
44       change their configs using the "NoPreferIPv6" port flag. Fixes bug
45       33608; bugfix on 0.4.3.1-alpha.
46     - Revert PreferIPv6 set by default on the SocksPort because it broke
47       the torsocks use case. Tor doesn't have a way for an application
48       to request the hostname to be resolved for a specific IP version,
49       but torsocks requires that. Up until now, IPv4 was used by default
50       so torsocks is expecting that, and can't handle a possible IPv6
51       being returned. Fixes bug 33804; bugfix on 0.4.3.1-alpha.
53   o Minor bugfixes (key portability):
54     - When reading PEM-encoded key data, tolerate CRLF line-endings even
55       if we are not running on Windows. Previously, non-Windows hosts
56       would reject these line-endings in certain positions, making
57       certain key files hard to move from one host to another. Fixes bug
58       33032; bugfix on 0.3.5.1-alpha.
60   o Minor bugfixes (logging):
61     - Flush stderr, stdout, and file logs during shutdown, if supported
62       by the OS. This change helps make sure that any final logs are
63       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
64     - Stop closing stderr and stdout during shutdown. Closing these file
65       descriptors can hide sanitiser logs. Fixes bug 33087; bugfix
66       on 0.4.1.6.
68   o Minor bugfixes (onion services v3):
69     - Relax severity of a log message that can appear naturally when
70       decoding onion service descriptors as a relay. Also add some
71       diagnostics to debug any future bugs in that area. Fixes bug
72       31669; bugfix on 0.3.0.1-alpha.
73     - Block a client-side assertion by disallowing the registration of
74       an x25519 client auth key that's all zeroes. Fixes bug 33545;
75       bugfix on 0.4.3.1-alpha. Based on patch from "cypherpunks".
77   o Code simplification and refactoring:
78     - Disable our coding standards best practices tracker in our git
79       hooks. (0.4.3 branches only.) Closes ticket 33678.
81   o Testing:
82     - Avoid conflicts between the fake sockets in tor's unit tests, and
83       real file descriptors. Resolves issues running unit tests with
84       GitHub Actions, where the process that embeds or launches the
85       tests has already opened a large number of file descriptors. Fixes
86       bug 33782; bugfix on 0.2.8.1-alpha. Found and fixed by
87       Putta Khunchalee.
89   o Testing (CI):
90     - In our Appveyor Windows CI, copy required DLLs to test and app
91       directories, before running tor's tests. This ensures that tor.exe
92       and test*.exe use the correct version of each DLL. This fix is not
93       required, but we hope it will avoid DLL search issues in future.
94       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
95     - On Appveyor, skip the crypto/openssl_version test, which is
96       failing because of a mismatched library installation. Fix
97       for 33643.
100 Changes in version 0.4.3.3-alpha - 2020-03-18
101   Tor 0.4.3.3-alpha fixes several bugs in previous releases, including
102   TROVE-2020-002, a major denial-of-service vulnerability that affected
103   all released Tor instances since 0.2.1.5-alpha. Using this
104   vulnerability, an attacker could cause Tor instances to consume a huge
105   amount of CPU, disrupting their operations for several seconds or
106   minutes. This attack could be launched by anybody against a relay, or
107   by a directory cache against any client that had connected to it. The
108   attacker could launch this attack as much as they wanted, thereby
109   disrupting service or creating patterns that could aid in traffic
110   analysis. This issue was found by OSS-Fuzz, and is also tracked
111   as CVE-2020-10592.
113   We do not have reason to believe that this attack is currently being
114   exploited in the wild, but nonetheless we advise everyone to upgrade
115   as soon as packages are available.
117   o Major bugfixes (security, denial-of-service):
118     - Fix a denial-of-service bug that could be used by anyone to
119       consume a bunch of CPU on any Tor relay or authority, or by
120       directories to consume a bunch of CPU on clients or hidden
121       services. Because of the potential for CPU consumption to
122       introduce observable timing patterns, we are treating this as a
123       high-severity security issue. Fixes bug 33119; bugfix on
124       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
125       as TROVE-2020-002 and CVE-2020-10592.
127   o Major bugfixes (circuit padding, memory leak):
128     - Avoid a remotely triggered memory leak in the case that a circuit
129       padding machine is somehow negotiated twice on the same circuit.
130       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
131       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
133   o Major bugfixes (directory authority):
134     - Directory authorities will now send a 503 (not enough bandwidth)
135       code to clients when under bandwidth pressure. Known relays and
136       other authorities will always be answered regardless of the
137       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
139   o Minor features (diagnostic):
140     - Improve assertions and add some memory-poisoning code to try to
141       track down possible causes of a rare crash (32564) in the EWMA
142       code. Closes ticket 33290.
144   o Minor features (directory authorities):
145     - Directory authorities now reject descriptors from relays running
146       Tor versions from the 0.2.9 and 0.4.0 series. The 0.3.5 series is
147       still allowed. Resolves ticket 32672. Patch by Neel Chauhan.
149   o Minor features (usability):
150     - Include more information when failing to parse a configuration
151       value. This should make it easier to tell what's going wrong when
152       a configuration file doesn't parse. Closes ticket 33460.
154   o Minor bugfix (relay, configuration):
155     - Warn if the ContactInfo field is not set, and tell the relay
156       operator that not having a ContactInfo field set might cause their
157       relay to get rejected in the future. Fixes bug 33361; bugfix
158       on 0.1.1.10-alpha.
160   o Minor bugfixes (coding best practices checks):
161     - Allow the "practracker" script to read unicode files when using
162       Python 2. We made the script use unicode literals in 0.4.3.1-alpha,
163       but didn't change the codec for opening files. Fixes bug 33374;
164       bugfix on 0.4.3.1-alpha.
166   o Minor bugfixes (continuous integration):
167     - Remove the buggy and unused mirroring job. Fixes bug 33213; bugfix
168       on 0.3.2.2-alpha.
170   o Minor bugfixes (onion service v3, client):
171     - Remove a BUG() warning that would cause a stack trace if an onion
172       service descriptor was freed while we were waiting for a
173       rendezvous circuit to complete. Fixes bug 28992; bugfix
174       on 0.3.2.1-alpha.
176   o Minor bugfixes (onion services v3):
177     - Fix an assertion failure that could result from a corrupted
178       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
179       bugfix on 0.3.3.1-alpha. This issue is also tracked
180       as TROVE-2020-003.
182   o Documentation (manpage):
183     - Alphabetize the Server and Directory server sections of the tor
184       manpage. Also split Statistics options into their own section of
185       the manpage. Closes ticket 33188. Work by Swati Thacker as part of
186       Google Season of Docs.
187     - Document the __OwningControllerProcess torrc option and specify
188       its polling interval. Resolves issue 32971.
190   o Testing (Travis CI):
191     - Remove a redundant distcheck job. Closes ticket 33194.
192     - Sort the Travis jobs in order of speed: putting the slowest jobs
193       first takes full advantage of Travis job concurrency. Closes
194       ticket 33194.
195     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
196       previously configured to fast_finish (which requires
197       allow_failure), to speed up the build. Closes ticket 33195.
198     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
199       tool to produce detailed diagnostic output. Closes ticket 32792.
202 Changes in version 0.4.2.7 - 2020-03-18
203   This is the third stable release in the 0.4.2.x series. It backports
204   numerous fixes from later releases, including a fix for TROVE-2020-
205   002, a major denial-of-service vulnerability that affected all
206   released Tor instances since 0.2.1.5-alpha. Using this vulnerability,
207   an attacker could cause Tor instances to consume a huge amount of CPU,
208   disrupting their operations for several seconds or minutes. This
209   attack could be launched by anybody against a relay, or by a directory
210   cache against any client that had connected to it. The attacker could
211   launch this attack as much as they wanted, thereby disrupting service
212   or creating patterns that could aid in traffic analysis. This issue
213   was found by OSS-Fuzz, and is also tracked as CVE-2020-10592.
215   We do not have reason to believe that this attack is currently being
216   exploited in the wild, but nonetheless we advise everyone to upgrade
217   as soon as packages are available.
219   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
220     - Fix a denial-of-service bug that could be used by anyone to
221       consume a bunch of CPU on any Tor relay or authority, or by
222       directories to consume a bunch of CPU on clients or hidden
223       services. Because of the potential for CPU consumption to
224       introduce observable timing patterns, we are treating this as a
225       high-severity security issue. Fixes bug 33119; bugfix on
226       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
227       as TROVE-2020-002 and CVE-2020-10592.
229   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
230     - Avoid a remotely triggered memory leak in the case that a circuit
231       padding machine is somehow negotiated twice on the same circuit.
232       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
233       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
235   o Major bugfixes (directory authority, backport from 0.4.3.3-alpha):
236     - Directory authorities will now send a 503 (not enough bandwidth)
237       code to clients when under bandwidth pressure. Known relays and
238       other authorities will always be answered regardless of the
239       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
241   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
242     - Stop allowing failures on the Travis CI stem tests job. It looks
243       like all the stem hangs we were seeing before are now fixed.
244       Closes ticket 33075.
246   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
247     - Lowercase the configured value of BridgeDistribution before adding
248       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
250   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
251     - If we encounter a bug when flushing a buffer to a TLS connection,
252       only log the bug once per invocation of the Tor process.
253       Previously we would log with every occurrence, which could cause
254       us to run out of disk space. Fixes bug 33093; bugfix
255       on 0.3.2.2-alpha.
257   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
258     - Fix an assertion failure that could result from a corrupted
259       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
260       bugfix on 0.3.3.1-alpha. This issue is also tracked
261       as TROVE-2020-003.
263   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
264     - Fix a syntax warning given by newer versions of Rust that was
265       creating problems for our continuous integration. Fixes bug 33212;
266       bugfix on 0.3.5.1-alpha.
268   o Testing (Travis CI, backport from 0.4.3.3-alpha):
269     - Remove a redundant distcheck job. Closes ticket 33194.
270     - Sort the Travis jobs in order of speed: putting the slowest jobs
271       first takes full advantage of Travis job concurrency. Closes
272       ticket 33194.
273     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
274       previously configured to fast_finish (which requires
275       allow_failure), to speed up the build. Closes ticket 33195.
276     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
277       tool to produce detailed diagnostic output. Closes ticket 32792.
280 Changes in version 0.4.1.9 - 2020-03-18
281   Tor 0.4.1.9 backports important fixes from later Tor releases,
282   including a fix for TROVE-2020-002, a major denial-of-service
283   vulnerability that affected all released Tor instances since
284   0.2.1.5-alpha. Using this vulnerability, an attacker could cause Tor
285   instances to consume a huge amount of CPU, disrupting their operations
286   for several seconds or minutes. This attack could be launched by
287   anybody against a relay, or by a directory cache against any client
288   that had connected to it. The attacker could launch this attack as
289   much as they wanted, thereby disrupting service or creating patterns
290   that could aid in traffic analysis. This issue was found by OSS-Fuzz,
291   and is also tracked as CVE-2020-10592.
293   We do not have reason to believe that this attack is currently being
294   exploited in the wild, but nonetheless we advise everyone to upgrade
295   as soon as packages are available.
297   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
298     - Fix a denial-of-service bug that could be used by anyone to
299       consume a bunch of CPU on any Tor relay or authority, or by
300       directories to consume a bunch of CPU on clients or hidden
301       services. Because of the potential for CPU consumption to
302       introduce observable timing patterns, we are treating this as a
303       high-severity security issue. Fixes bug 33119; bugfix on
304       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
305       as TROVE-2020-002 and CVE-2020-10592.
307   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
308     - Avoid a remotely triggered memory leak in the case that a circuit
309       padding machine is somehow negotiated twice on the same circuit.
310       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
311       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
313   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
314     - Lowercase the configured value of BridgeDistribution before adding
315       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
317   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
318     - If we encounter a bug when flushing a buffer to a TLS connection,
319       only log the bug once per invocation of the Tor process.
320       Previously we would log with every occurrence, which could cause
321       us to run out of disk space. Fixes bug 33093; bugfix
322       on 0.3.2.2-alpha.
324   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
325     - Fix an assertion failure that could result from a corrupted
326       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
327       bugfix on 0.3.3.1-alpha. This issue is also tracked
328       as TROVE-2020-003.
330   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
331     - Fix a syntax warning given by newer versions of Rust that was
332       creating problems for our continuous integration. Fixes bug 33212;
333       bugfix on 0.3.5.1-alpha.
335   o Testing (Travis CI, backport from 0.4.3.3-alpha):
336     - Remove a redundant distcheck job. Closes ticket 33194.
337     - Sort the Travis jobs in order of speed: putting the slowest jobs
338       first takes full advantage of Travis job concurrency. Closes
339       ticket 33194.
340     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
341       previously configured to fast_finish (which requires
342       allow_failure), to speed up the build. Closes ticket 33195.
343     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
344       tool to produce detailed diagnostic output. Closes ticket 32792.
347 Changes in version 0.3.5.10 - 2020-03-18
348   Tor 0.3.5.10 backports many fixes from later Tor releases, including a
349   fix for TROVE-2020-002, a major denial-of-service vulnerability that
350   affected all released Tor instances since 0.2.1.5-alpha. Using this
351   vulnerability, an attacker could cause Tor instances to consume a huge
352   amount of CPU, disrupting their operations for several seconds or
353   minutes. This attack could be launched by anybody against a relay, or
354   by a directory cache against any client that had connected to it. The
355   attacker could launch this attack as much as they wanted, thereby
356   disrupting service or creating patterns that could aid in traffic
357   analysis. This issue was found by OSS-Fuzz, and is also tracked
358   as CVE-2020-10592.
360   We do not have reason to believe that this attack is currently being
361   exploited in the wild, but nonetheless we advise everyone to upgrade
362   as soon as packages are available.
364   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
365     - Fix a denial-of-service bug that could be used by anyone to
366       consume a bunch of CPU on any Tor relay or authority, or by
367       directories to consume a bunch of CPU on clients or hidden
368       services. Because of the potential for CPU consumption to
369       introduce observable timing patterns, we are treating this as a
370       high-severity security issue. Fixes bug 33119; bugfix on
371       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
372       as TROVE-2020-002 and CVE-2020-10592.
374   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
375     - Correct how we use libseccomp. Particularly, stop assuming that
376       rules are applied in a particular order or that more rules are
377       processed after the first match. Neither is the case! In
378       libseccomp <2.4.0 this lead to some rules having no effect.
379       libseccomp 2.4.0 changed how rules are generated, leading to a
380       different ordering, which in turn led to a fatal crash during
381       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
382       Peter Gerber.
384   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
385     - Stop allowing failures on the Travis CI stem tests job. It looks
386       like all the stem hangs we were seeing before are now fixed.
387       Closes ticket 33075.
389   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
390     - Lowercase the configured value of BridgeDistribution before adding
391       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
393   o Minor bugfixes (crash, backport from 0.4.2.4-rc):
394     - When running Tor with an option like --verify-config or
395       --dump-config that does not start the event loop, avoid crashing
396       if we try to exit early because of an error. Fixes bug 32407;
397       bugfix on 0.3.3.1-alpha.
399   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
400     - If we encounter a bug when flushing a buffer to a TLS connection,
401       only log the bug once per invocation of the Tor process.
402       Previously we would log with every occurrence, which could cause
403       us to run out of disk space. Fixes bug 33093; bugfix
404       on 0.3.2.2-alpha.
406   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
407     - Fix an assertion failure that could result from a corrupted
408       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
409       bugfix on 0.3.3.1-alpha. This issue is also tracked
410       as TROVE-2020-003.
412   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
413     - Fix a syntax warning given by newer versions of Rust that was
414       creating problems for our continuous integration. Fixes bug 33212;
415       bugfix on 0.3.5.1-alpha.
417   o Testing (backport from 0.4.3.1-alpha):
418     - Re-enable the Travis CI macOS Chutney build, but don't let it
419       prevent the Travis job from finishing. (The Travis macOS jobs are
420       slow, so we don't want to have it delay the whole CI process.)
421       Closes ticket 32629.
422     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
423       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
424       fix the sandbox errors in 32722. Closes ticket 32240.
426   o Testing (continuous integration, backport from 0.4.3.1-alpha):
427     - Use zstd in our Travis Linux builds. Closes ticket 32242.
429   o Testing (Travis CI, backport from 0.4.3.3-alpha):
430     - Remove a redundant distcheck job. Closes ticket 33194.
431     - Sort the Travis jobs in order of speed: putting the slowest jobs
432       first takes full advantage of Travis job concurrency. Closes
433       ticket 33194.
434     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
435       previously configured to fast_finish (which requires
436     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
437       tool to produce detailed diagnostic output. Closes ticket 32792.
440 Changes in version 0.4.3.2-alpha - 2020-02-10
441   This is the second stable alpha release in the Tor 0.4.3.x series. It
442   fixes several bugs present in the previous alpha release. Anybody
443   running the previous alpha should upgrade, and look for bugs in this
444   one instead.
446   o Major bugfixes (onion service client, authorization):
447     - On a NEWNYM signal, purge entries from the ephemeral client
448       authorization cache. The permanent ones are kept. Fixes bug 33139;
449       bugfix on 0.4.3.1-alpha.
451   o Minor features (best practices tracker):
452     - Practracker now supports a --regen-overbroad option to regenerate
453       the exceptions file, but only to revise exceptions to be _less_
454       tolerant of best-practices violations. Closes ticket 32372.
456   o Minor features (continuous integration):
457     - Run Doxygen Makefile target on Travis, so we can learn about
458       regressions in our internal documentation. Closes ticket 32455.
459     - Stop allowing failures on the Travis CI stem tests job. It looks
460       like all the stem hangs we were seeing before are now fixed.
461       Closes ticket 33075.
463   o Minor bugfixes (build system):
464     - Revise configure options that were either missing or incorrect in
465       the configure summary. Fixes bug 32230; bugfix on 0.4.3.1-alpha.
467   o Minor bugfixes (controller protocol):
468     - Fix a memory leak introduced by refactoring of control reply
469       formatting code. Fixes bug 33039; bugfix on 0.4.3.1-alpha.
470     - Fix a memory leak in GETINFO responses. Fixes bug 33103; bugfix
471       on 0.4.3.1-alpha.
472     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
473       report them as SIGNAL events. Previously we would log a bug
474       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
476   o Minor bugfixes (logging):
477     - If we encounter a bug when flushing a buffer to a TLS connection,
478       only log the bug once per invocation of the Tor process.
479       Previously we would log with every occurrence, which could cause
480       us to run out of disk space. Fixes bug 33093; bugfix
481       on 0.3.2.2-alpha.
482     - When logging a bug, do not say "Future instances of this warning
483       will be silenced" unless we are actually going to silence them.
484       Previously we would say this whenever a BUG() check failed in the
485       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
487   o Minor bugfixes (onion service v2):
488     - Move a series of v2 onion service warnings to protocol-warning
489       level because they can all be triggered remotely by a malformed
490       request. Fixes bug 32706; bugfix on 0.1.1.14-alpha.
492   o Minor bugfixes (onion service v3, client authorization):
493     - When removing client authorization credentials using the control
494       port, also remove the associated descriptor, so the onion service
495       can no longer be contacted. Fixes bug 33148; bugfix
496       on 0.4.3.1-alpha.
498   o Minor bugfixes (pluggable transports):
499     - When receiving a message on standard error from a pluggable
500       transport, log it at info level, rather than as a warning. Fixes
501       bug 33005; bugfix on 0.4.0.1-alpha.
503   o Minor bugfixes (rust, build):
504     - Fix a syntax warning given by newer versions of Rust that was
505       creating problems for our continuous integration. Fixes bug 33212;
506       bugfix on 0.3.5.1-alpha.
508   o Minor bugfixes (TLS bug handling):
509     - When encountering a bug in buf_read_from_tls(), return a "MISC"
510       error code rather than "WANTWRITE". This change might help avoid
511       some CPU-wasting loops if the bug is ever triggered. Bug reported
512       by opara. Fixes bug 32673; bugfix on 0.3.0.4-alpha.
514   o Code simplification and refactoring (mainloop):
515     - Simplify the ip_address_changed() function by removing redundant
516       checks. Closes ticket 33091.
518   o Documentation (manpage):
519     - Split "Circuit Timeout" options and "Node Selection" options into
520       their own sections of the tor manpage. Closes tickets 32928 and
521       32929. Work by Swati Thacker as part of Google Season of Docs.
524 Changes in version 0.4.2.6 - 2020-01-30
525   This is the second stable release in the 0.4.2.x series. It backports
526   several bugfixes from 0.4.3.1-alpha, including some that had affected
527   the Linux seccomp2 sandbox or Windows services. If you're running with
528   one of those configurations, you'll probably want to upgrade;
529   otherwise, you should be fine with 0.4.2.5.
531   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
532     - Correct how we use libseccomp. Particularly, stop assuming that
533       rules are applied in a particular order or that more rules are
534       processed after the first match. Neither is the case! In
535       libseccomp <2.4.0 this led to some rules having no effect.
536       libseccomp 2.4.0 changed how rules are generated, leading to a
537       different ordering, which in turn led to a fatal crash during
538       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
539       Peter Gerber.
540     - Fix crash when reloading logging configuration while the
541       experimental sandbox is enabled. Fixes bug 32841; bugfix on
542       0.4.1.7. Patch by Peter Gerber.
544   o Minor bugfixes (correctness checks, backport from 0.4.3.1-alpha):
545     - Use GCC/Clang's printf-checking feature to make sure that
546       tor_assertf() arguments are correctly typed. Fixes bug 32765;
547       bugfix on 0.4.1.1-alpha.
549   o Minor bugfixes (logging, crash, backport from 0.4.3.1-alpha):
550     - Avoid a possible crash when trying to log a (fatal) assertion
551       failure about mismatched magic numbers in configuration objects.
552       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
554   o Minor bugfixes (testing, backport from 0.4.3.1-alpha):
555     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
556       test_practracker.sh script. Doing so caused a test failure. Fixes
557       bug 32705; bugfix on 0.4.2.1-alpha.
558     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
559       skipping practracker checks. Fixes bug 32705; bugfix
560       on 0.4.2.1-alpha.
562   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
563     - Initialize the publish/subscribe system when running as a windows
564       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
566   o Testing (backport from 0.4.3.1-alpha):
567     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
568       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
569       fix the sandbox errors in 32722. Closes ticket 32240.
570     - Re-enable the Travis CI macOS Chutney build, but don't let it
571       prevent the Travis job from finishing. (The Travis macOS jobs are
572       slow, so we don't want to have it delay the whole CI process.)
573       Closes ticket 32629.
575   o Testing (continuous integration, backport from 0.4.3.1-alpha):
576     - Use zstd in our Travis Linux builds. Closes ticket 32242.
579 Changes in version 0.4.1.8 - 2020-01-30
580   This release backports several bugfixes from later release series,
581   including some that had affected the Linux seccomp2 sandbox or Windows
582   services. If you're running with one of those configurations, you'll
583   probably want to upgrade; otherwise, you should be fine with your
584   current version of 0.4.1.x.
586   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
587     - Correct how we use libseccomp. Particularly, stop assuming that
588       rules are applied in a particular order or that more rules are
589       processed after the first match. Neither is the case! In
590       libseccomp <2.4.0 this led to some rules having no effect.
591       libseccomp 2.4.0 changed how rules are generated, leading to a
592       different ordering, which in turn led to a fatal crash during
593       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
594       Peter Gerber.
595     - Fix crash when reloading logging configuration while the
596       experimental sandbox is enabled. Fixes bug 32841; bugfix on
597       0.4.1.7. Patch by Peter Gerber.
599   o Minor bugfixes (crash, backport form 0.4.2.4-rc):
600     - When running Tor with an option like --verify-config or
601       --dump-config that does not start the event loop, avoid crashing
602       if we try to exit early because of an error. Fixes bug 32407;
603       bugfix on 0.3.3.1-alpha.
605   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
606     - Initialize the publish/subscribe system when running as a windows
607       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
609   o Testing (backport from 0.4.3.1-alpha):
610     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
611       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
612       fix the sandbox errors in 32722. Closes ticket 32240.
613     - Re-enable the Travis CI macOS Chutney build, but don't let it
614       prevent the Travis job from finishing. (The Travis macOS jobs are
615       slow, so we don't want to have it delay the whole CI process.)
616       Closes ticket 32629.
618   o Testing (continuous integration, backport from 0.4.3.1-alpha):
619     - Use zstd in our Travis Linux builds. Closes ticket 32242.
622 Changes in version 0.4.3.1-alpha - 2020-01-22
623   This is the first alpha release in the 0.4.3.x series. It includes
624   improved support for application integration of onion services, support
625   for building in a client-only mode, and newly improved internal
626   documentation (online at https://src-ref.docs.torproject.org/tor/). It
627   also has numerous other small bugfixes and features, as well as
628   improvements to our code's internal organization that should help us
629   write better code in the future.
631   o New system requirements:
632     - When building Tor, you now need to have Python 3 in order to run
633       the integration tests. (Python 2 is officially unsupported
634       upstream, as of 1 Jan 2020.) Closes ticket 32608.
636   o Major features (build system):
637     - The relay code can now be disabled using the --disable-module-relay
638       configure option. When this option is set, we also disable the
639       dirauth module. Closes ticket 32123.
640     - When Tor is compiled --disable-module-relay, we also omit the code
641       used to act as a directory cache. Closes ticket 32487.
643   o Major features (directory authority, ed25519):
644     - Add support for banning a relay's ed25519 keys in the approved-
645       routers file. This will help us migrate away from RSA keys in the
646       future. Previously, only RSA keys could be banned in approved-
647       routers. Resolves ticket 22029. Patch by Neel Chauhan.
649   o Major features (onion service, controller):
650     - New control port commands to manage client-side onion service
651       authorization credentials. The ONION_CLIENT_AUTH_ADD command adds
652       a credential, ONION_CLIENT_AUTH_REMOVE deletes a credential, and
653       ONION_CLIENT_AUTH_VIEW lists the credentials. Closes ticket 30381.
655   o Major features (onion service, SOCKS5):
656     - Introduce a new SocksPort flag, ExtendedErrors, to support more
657       detailed error codes in information for applications that support
658       them. Closes ticket 30382; implements proposal 304.
660   o Major features (proxy):
661     - In addition to its current supported proxy types (HTTP CONNECT,
662       SOCKS4, and SOCKS5), Tor can now make its OR connections through a
663       HAProxy server. A new torrc option was added to specify the
664       address/port of the server: TCPProxy <protocol> <host>:<port>.
665       Currently the only supported protocol for the option is haproxy.
666       Closes ticket 31518. Patch done by Suphanat Chunhapanya (haxxpop).
668   o Major bugfixes (linux seccomp sandbox):
669     - Correct how we use libseccomp. Particularly, stop assuming that
670       rules are applied in a particular order or that more rules are
671       processed after the first match. Neither is the case! In
672       libseccomp <2.4.0 this led to some rules having no effect.
673       libseccomp 2.4.0 changed how rules are generated, leading to a
674       different ordering, which in turn led to a fatal crash during
675       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
676       Peter Gerber.
677     - Fix crash when reloading logging configuration while the
678       experimental sandbox is enabled. Fixes bug 32841; bugfix on
679       0.4.1.7. Patch by Peter Gerber.
681   o Major bugfixes (networking):
682     - Correctly handle IPv6 addresses in SOCKS5 RESOLVE_PTR requests,
683       and accept strings as well as binary addresses. Fixes bug 32315;
684       bugfix on 0.3.5.1-alpha.
686   o Major bugfixes (onion service):
687     - Report HS circuit failure back into the HS subsystem so we take
688       appropriate action with regards to the client introduction point
689       failure cache. This improves reachability of onion services, since
690       now clients notice failing introduction circuits properly. Fixes
691       bug 32020; bugfix on 0.3.2.1-alpha.
693   o Minor feature (configure, build system):
694     - Output a list of enabled/disabled features at the end of the
695       configure process in a pleasing way. Closes ticket 31373.
697   o Minor feature (heartbeat, onion service):
698     - Add the DoS INTRODUCE2 defenses counter to the heartbeat DoS
699       message. Closes ticket 31371.
701   o Minor features (configuration validation):
702     - Configuration validation can now be done by per-module callbacks,
703       rather than a global validation function. This will let us reduce
704       the size of config.c and some of its more cumbersome functions.
705       Closes ticket 31241.
707   o Minor features (configuration):
708     - If a configured hardware crypto accelerator in AccelName is
709       prefixed with "!", Tor now exits when it cannot be found. Closes
710       ticket 32406.
711     - We now use flag-driven logic to warn about obsolete configuration
712       fields, so that we can include their names. In 0.4.2, we used a
713       special type, which prevented us from generating good warnings.
714       Implements ticket 32404.
716   o Minor features (controller):
717     - Add stream isolation data to STREAM event. Closes ticket 19859.
718     - Implement a new GETINFO command to fetch microdescriptor
719       consensus. Closes ticket 31684.
721   o Minor features (debugging, directory system):
722     - Don't crash when we find a non-guard with a guard-fraction value
723       set. Instead, log a bug warning, in an attempt to figure out how
724       this happened. Diagnostic for ticket 32868.
726   o Minor features (defense in depth):
727     - Add additional checks around tor_vasprintf() usage, in case the
728       function returns an error. Patch by Tobias Stoeckmann. Fixes
729       ticket 31147.
731   o Minor features (developer tooling):
732     - Remove the 0.2.9.x series branches from git scripts (git-merge-
733       forward.sh, git-pull-all.sh, git-push-all.sh, git-setup-dirs.sh).
734       Closes ticket 32772.
736   o Minor features (developer tools):
737     - Add a check_cocci_parse.sh script that checks that new code is
738       parseable by Coccinelle. Add an exceptions file for unparseable
739       files, and run the script from travis CI. Closes ticket 31919.
740     - Call the check_cocci_parse.sh script from a 'check-cocci' Makefile
741       target. Closes ticket 31919.
742     - Add a rename_c_identifiers.py tool to rename a bunch of C
743       identifiers at once, and generate a well-formed commit message
744       describing the change. This should help with refactoring. Closes
745       ticket 32237.
746     - Add some scripts in "scripts/coccinelle" to invoke the Coccinelle
747       semantic patching tool with the correct flags. These flags are
748       fairly easy to forget, and these scripts should help us use
749       Coccinelle more effectively in the future. Closes ticket 31705.
751   o Minor features (Doxygen):
752     - Update Doxygen configuration file to a more recent template (from
753       1.8.15). Closes ticket 32110.
754     - "make doxygen" now works with out-of-tree builds. Closes
755       ticket 32113.
756     - Make sure that doxygen outputs documentation for all of our C
757       files. Previously, some were missing @file declarations, causing
758       them to be ignored. Closes ticket 32307.
759     - Our "make doxygen" target now respects --enable-fatal-warnings by
760       default, and does not warn about items that are missing
761       documentation. To warn about missing documentation, run configure
762       with the "--enable-missing-doc-warnings" flag: doing so suspends
763       fatal warnings for doxygen. Closes ticket 32385.
765   o Minor features (git scripts):
766     - Add TOR_EXTRA_CLONE_ARGS to git-setup-dirs.sh for git clone
767       customisation. Closes ticket 32347.
768     - Add git-setup-dirs.sh, which sets up an upstream git repository
769       and worktrees for tor maintainers. Closes ticket 29603.
770     - Add TOR_EXTRA_REMOTE_* to git-setup-dirs.sh for a custom extra
771       remote. Closes ticket 32347.
772     - Call the check_cocci_parse.sh script from the git commit and push
773       hooks. Closes ticket 31919.
774     - Make git-push-all.sh skip unchanged branches when pushing to
775       upstream. The script already skipped unchanged test branches.
776       Closes ticket 32216.
777     - Make git-setup-dirs.sh create a master symlink in the worktree
778       directory. Closes ticket 32347.
779     - Skip unmodified source files when doing some existing git hook
780       checks. Related to ticket 31919.
782   o Minor features (IPv6, client):
783     - Make Tor clients tell dual-stack exits that they prefer IPv6
784       connections. This change is equivalent to setting the PreferIPv6
785       flag on SOCKSPorts (and most other listener ports). Tor Browser
786       has been setting this flag for some time, and we want to remove a
787       client distinguisher at exits. Closes ticket 32637.
789   o Minor features (portability, android):
790     - When building for Android, disable some tests that depend on $HOME
791       and/or pwdb, which Android doesn't have. Closes ticket 32825.
792       Patch from Hans-Christoph Steiner.
794   o Minor features (relay modularity):
795     - Split the relay and server pluggable transport config code into
796       separate files in the relay module. Disable this code when the
797       relay module is disabled. Closes part of ticket 32213.
798     - When the relay module is disabled, reject attempts to set the
799       ORPort, DirPort, DirCache, BridgeRelay, ExtORPort, or
800       ServerTransport* options, rather than ignoring the values of these
801       options. Closes part of ticket 32213.
803   o Minor features (relay):
804     - When the relay module is disabled, change the default config so
805       that DirCache is 0, and ClientOnly is 1. Closes ticket 32410.
807   o Minor features (release tools):
808     - Port our ChangeLog formatting and sorting tools to Python 3.
809       Closes ticket 32704.
811   o Minor features (testing):
812     - Detect some common failure cases for test_parseconf.sh in
813       src/test/conf_failures. Closes ticket 32451.
814     - Allow test_parseconf.sh to test expected log outputs for successful
815       configs, as well as failed configs. Closes ticket 32451.
816     - The test_parseconf.sh script now supports result variants for any
817       combination of the optional libraries lzma, nss, and zstd. Closes
818       ticket 32397.
820   o Minor features (tests, Android):
821     - When running the unit tests on Android, create temporary files in
822       a subdirectory of /data/local/tmp. Closes ticket 32172. Based on a
823       patch from Hans-Christoph Steiner.
825   o Minor bugfixes (bridges):
826     - Lowercase the configured value of BridgeDistribution before adding
827       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
829   o Minor bugfixes (build system):
830     - Fix "make autostyle" for out-of-tree builds. Fixes bug 32370;
831       bugfix on 0.4.1.2-alpha.
833   o Minor bugfixes (configuration handling):
834     - Make control_event_conf_changed() take in a config_line_t instead
835       of a smartlist of alternating key/value entries. Fixes bug 31531;
836       bugfix on 0.2.3.3-alpha. Patch by Neel Chauhan.
838   o Minor bugfixes (configuration):
839     - Check for multiplication overflow when parsing memory units inside
840       configuration. Fixes bug 30920; bugfix on 0.0.9rc1.
841     - When dumping the configuration, stop adding a trailing space after
842       the option name when there is no option value. This issue only
843       affects options that accept an empty value or list. (Most options
844       reject empty values, or delete the entire line from the dumped
845       options.) Fixes bug 32352; bugfix on 0.0.9pre6.
846     - Avoid changing the user's value of HardwareAccel as stored by
847       SAVECONF, when AccelName is set but HardwareAccel is not. Fixes
848       bug 32382; bugfix on 0.2.2.1-alpha.
849     - When creating a KeyDirectory with the same location as the
850       DataDirectory (not recommended), respect the DataDirectory's
851       group-readable setting if one has not been set for the
852       KeyDirectory. Fixes bug 27992; bugfix on 0.3.3.1-alpha.
854   o Minor bugfixes (controller):
855     - In routerstatus_has_changed(), check all the fields that are
856       output over the control port. Fixes bug 20218; bugfix
857       on 0.1.1.11-alpha
859   o Minor bugfixes (correctness checks):
860     - Use GCC/Clang's printf-checking feature to make sure that
861       tor_assertf() arguments are correctly typed. Fixes bug 32765;
862       bugfix on 0.4.1.1-alpha.
864   o Minor bugfixes (developer tools):
865     - Allow paths starting with ./ in scripts/add_c_file.py. Fixes bug
866       31336; bugfix on 0.4.1.2-alpha.
868   o Minor bugfixes (dirauth module):
869     - Split the dirauth config code into a separate file in the dirauth
870       module. Disable this code when the dirauth module is disabled.
871       Closes ticket 32213.
872     - When the dirauth module is disabled, reject attempts to set the
873       AuthoritativeDir option, rather than ignoring the value of the
874       option. Fixes bug 32213; bugfix on 0.3.4.1-alpha.
876   o Minor bugfixes (embedded Tor):
877     - When starting Tor any time after the first time in a process,
878       register the thread in which it is running as the main thread.
879       Previously, we only did this on Windows, which could lead to bugs
880       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
881       on 0.3.3.1-alpha.
883   o Minor bugfixes (git scripts):
884     - Avoid sleeping before the last push in git-push-all.sh. Closes
885       ticket 32216.
886     - Forward all unrecognised arguments in git-push-all.sh to git push.
887       Closes ticket 32216.
889   o Minor bugfixes (hidden service v3):
890     - Do not rely on a "circuit established" flag for intro circuits but
891       instead always query the HS circuit map. This is to avoid sync
892       issue with that flag and the map. Fixes bug 32094; bugfix
893       on 0.3.2.1-alpha.
895   o Minor bugfixes (logging, crash):
896     - Avoid a possible crash when trying to log a (fatal) assertion
897       failure about mismatched magic numbers in configuration objects.
898       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
900   o Minor bugfixes (onion service v2):
901     - When sending the INTRO cell for a v2 Onion Service, look at the
902       failure cache alongside timeout values to check if the intro point
903       is marked as failed. Previously, we only looked at the relay
904       timeout values. Fixes bug 25568; bugfix on 0.2.7.3-rc. Patch by
905       Neel Chauhan.
907   o Minor bugfixes (onion services v3, client):
908     - Properly handle the client rendezvous circuit timeout. Previously
909       Tor would sometimes timeout a rendezvous circuit awaiting the
910       introduction ACK, and find itself unable to re-establish all
911       circuits because the rendezvous circuit timed out too early. Fixes
912       bug 32021; bugfix on 0.3.2.1-alpha.
914   o Minor bugfixes (onion services):
915     - In cancel_descriptor_fetches(), use
916       connection_list_by_type_purpose() instead of
917       connection_list_by_type_state(). Fixes bug 32639; bugfix on
918       0.3.2.1-alpha. Patch by Neel Chauhan.
920   o Minor bugfixes (scripts):
921     - Fix update_versions.py for out-of-tree builds. Fixes bug 32371;
922       bugfix on 0.4.0.1-alpha.
924   o Minor bugfixes (test):
925     - Use the same code to find the tor binary in all of our test
926       scripts. This change makes sure we are always using the coverage
927       binary when coverage is enabled. Fixes bug 32368; bugfix
928       on 0.2.7.3-rc.
930   o Minor bugfixes (testing):
931     - Stop ignoring "tor --dump-config" errors in test_parseconf.sh.
932       Fixes bug 32468; bugfix on 0.4.2.1-alpha.
933     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
934       test_practracker.sh script. Doing so caused a test failure. Fixes
935       bug 32705; bugfix on 0.4.2.1-alpha.
936     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
937       skipping practracker checks. Fixes bug 32705; bugfix
938       on 0.4.2.1-alpha.
940   o Minor bugfixes (tests):
941     - Our option-validation tests no longer depend on specially
942       configured non-default, non-passing sets of options. Previously,
943       the tests had been written to assume that options would _not_ be
944       set to their defaults, which led to needless complexity and
945       verbosity. Fixes bug 32175; bugfix on 0.2.8.1-alpha.
947   o Minor bugfixes (windows service):
948     - Initialize the publish/subscribe system when running as a windows
949       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
951   o Deprecated features:
952     - Deprecate the ClientAutoIPv6ORPort option. This option was not
953       true "Happy Eyeballs", and often failed on connections that
954       weren't reliably dual-stack. Closes ticket 32942. Patch by
955       Neel Chauhan.
957   o Documentation:
958     - Provide a quickstart guide for a Circuit Padding Framework, and
959       documentation for researchers to implement and study circuit
960       padding machines. Closes ticket 28804.
961     - Add documentation in 'HelpfulTools.md' to describe how to build a
962       tag file. Closes ticket 32779.
963     - Create a high-level description of the long-term software
964       architecture goals. Closes ticket 32206.
965     - Describe the --dump-config command in the manual page. Closes
966       ticket 32467.
967     - Unite coding advice from this_not_that.md in torguts repo into our
968       coding standards document. Resolves ticket 31853.
970   o Removed features:
971     - Our Doxygen configuration no longer generates LaTeX output. The
972       reference manual produced by doing this was over 4000 pages long,
973       and generally unusable. Closes ticket 32099.
974     - The option "TestingEstimatedDescriptorPropagationTime" is now
975       marked as obsolete. It has had no effect since 0.3.0.7, when
976       clients stopped rejecting consensuses "from the future". Closes
977       ticket 32807.
978     - We no longer support consensus methods before method 28; these
979       methods were only used by authorities running versions of Tor that
980       are now at end-of-life. In effect, this means that clients,
981       relays, and authorities now assume that authorities will be
982       running version 0.3.5.x or later. Closes ticket 32695.
984   o Testing:
985     - Add more test cases for tor's UTF-8 validation function. Also,
986       check the arguments passed to the function for consistency. Closes
987       ticket 32845.
988     - Improve test coverage for relay and dirauth config code, focusing
989       on option validation and normalization. Closes ticket 32213.
990     - Improve the consistency of test_parseconf.sh output, and run all
991       the tests, even if one fails. Closes ticket 32213.
992     - Re-enable the Travis CI macOS Chutney build, but don't let it
993       prevent the Travis job from finishing. (The Travis macOS jobs are
994       slow, so we don't want to have it delay the whole CI process.)
995       Closes ticket 32629.
996     - Run the practracker unit tests in the pre-commit git hook. Closes
997       ticket 32609.
998     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
999       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
1000       fix the sandbox errors in 32722. Closes ticket 32240.
1002   o Code simplification and refactoring (channel):
1003     - Channel layer had a variable length cell handler that was not used
1004       and thus removed. Closes ticket 32892.
1006   o Code simplification and refactoring (configuration):
1007     - Immutability is now implemented as a flag on individual
1008       configuration options rather than as part of the option-transition
1009       checking code. Closes ticket 32344.
1010     - Instead of keeping a list of configuration options to check for
1011       relative paths, check all the options whose type is "FILENAME".
1012       Solves part of ticket 32339.
1013     - Our default log (which ordinarily sends NOTICE-level messages to
1014       standard output) is now handled in a more logical manner.
1015       Previously, we replaced the configured log options if they were
1016       empty. Now, we interpret an empty set of log options as meaning
1017       "use the default log". Closes ticket 31999.
1018     - Remove some unused arguments from the options_validate() function,
1019       to simplify our code and tests. Closes ticket 32187.
1020     - Simplify the options_validate() code so that it looks at the
1021       default options directly, rather than taking default options as an
1022       argument. This change lets us simplify its interface. Closes
1023       ticket 32185.
1024     - Use our new configuration architecture to move most authority-
1025       related options to the directory authority module. Closes
1026       ticket 32806.
1027     - When parsing the command line, handle options that determine our
1028       "quiet level" and our mode of operation (e.g., --dump-config and
1029       so on) all in one table. Closes ticket 32003.
1031   o Code simplification and refactoring (controller):
1032     - Create a new abstraction for formatting control protocol reply
1033       lines based on key-value pairs. Refactor some existing control
1034       protocol code to take advantage of this. Closes ticket 30984.
1035     - Create a helper function that can fetch network status or
1036       microdesc consensuses. Closes ticket 31684.
1038   o Code simplification and refactoring (dirauth modularization):
1039     - Remove the last remaining HAVE_MODULE_DIRAUTH inside a function.
1040       Closes ticket 32163.
1041     - Replace some confusing identifiers in process_descs.c. Closes
1042       ticket 29826.
1043     - Simplify some relay and dirauth config code. Closes ticket 32213.
1045   o Code simplification and refactoring (misc):
1046     - Make all the structs we declare follow the same naming convention
1047       of ending with "_t". Closes ticket 32415.
1048     - Move and rename some configuration-related code for clarity.
1049       Closes ticket 32304.
1050     - Our include.am files are now broken up by subdirectory.
1051       Previously, src/core/include.am covered all of the subdirectories
1052       in "core", "feature", and "app". Closes ticket 32137.
1053     - Remove underused NS*() macros from test code: they make our tests
1054       more confusing, especially for code-formatting tools. Closes
1055       ticket 32887.
1057   o Code simplification and refactoring (relay modularization):
1058     - Disable relay_periodic when the relay module is disabled. Closes
1059       ticket 32244.
1060     - Disable relay_sys when the relay module is disabled. Closes
1061       ticket 32245.
1063   o Code simplification and refactoring (tool support):
1064     - Add numerous missing dependencies to our include files, so that
1065       they can be included in different reasonable orders and still
1066       compile. Addresses part of ticket 32764.
1067     - Fix some parts of our code that were difficult for Coccinelle to
1068       parse. Related to ticket 31705.
1069     - Fix some small issues in our code that prevented automatic
1070       formatting tools from working. Addresses part of ticket 32764.
1072   o Documentation (manpage):
1073     - Alphabetize the Client Options section of the tor manpage. Closes
1074       ticket 32846.
1075     - Alphabetize the General Options section of the tor manpage. Closes
1076       ticket 32708.
1077     - In the tor(1) manpage, reword and improve formatting of the
1078       COMMAND-LINE OPTIONS and DESCRIPTION sections. Closes ticket
1079       32277. Based on work by Swati Thacker as part of Google Season
1080       of Docs.
1081     - In the tor(1) manpage, reword and improve formatting of the FILES,
1082       SEE ALSO, and BUGS sections. Closes ticket 32176. Based on work by
1083       Swati Thacker as part of Google Season of Docs.
1085   o Testing (circuit, EWMA):
1086     - Add unit tests for circuitmux and EWMA subsystems. Closes
1087       ticket 32196.
1089   o Testing (continuous integration):
1090     - Use zstd in our Travis Linux builds. Closes ticket 32242.
1093 Changes in version 0.4.2.5 - 2019-12-09
1094   This is the first stable release in the 0.4.2.x series. This series
1095   improves reliability and stability, and includes several stability and
1096   correctness improvements for onion services. It also fixes many smaller
1097   bugs present in previous series.
1099   Per our support policy, we will support the 0.4.2.x series for nine
1100   months, or until three months after the release of a stable 0.4.3.x:
1101   whichever is longer. If you need longer-term support, please stick
1102   with 0.3.5.x, which will we plan to support until Feb 2022.
1104   Per our support policy, we will support the 0.4.2.x series for nine
1105   months, or until three months after the release of a stable 0.4.3.x:
1106   whichever is longer. If you need longer-term support, please stick
1107   with 0.3.5.x, which will we plan to support until Feb 2022.
1109   Below are the changes since 0.4.1.4-rc. For a complete list of changes
1110   since 0.4.1.5, see the ReleaseNotes file.
1112   o Minor features (geoip):
1113     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
1114       Country database. Closes ticket 32685.
1116   o Testing:
1117     - Require C99 standards-conforming code in Travis CI, but allow GNU
1118       gcc extensions. Also activates clang's -Wtypedef-redefinition
1119       warnings. Build some jobs with -std=gnu99, and some jobs without.
1120       Closes ticket 32500.
1123 Changes in version 0.4.1.7 - 2019-12-09
1124   This release backports several bugfixes to improve stability and
1125   correctness.  Anyone experiencing build problems or crashes with 0.4.1.6,
1126   including all relays relying on AccountingMax, should upgrade.
1128   o Major features (directory authorities, backport from 0.4.2.2-alpha):
1129     - Directory authorities now reject relays running all currently
1130       deprecated release series. The currently supported release series
1131       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
1133   o Major bugfixes (embedded Tor, backport from 0.4.2.2-alpha):
1134     - Avoid a possible crash when restarting Tor in embedded mode and
1135       enabling a different set of publish/subscribe messages. Fixes bug
1136       31898; bugfix on 0.4.1.1-alpha.
1138   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
1139     - Relays now respect their AccountingMax bandwidth again. When
1140       relays entered "soft" hibernation (which typically starts when
1141       we've hit 90% of our AccountingMax), we had stopped checking
1142       whether we should enter hard hibernation. Soft hibernation refuses
1143       new connections and new circuits, but the existing circuits can
1144       continue, meaning that relays could have exceeded their configured
1145       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
1147   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
1148     - Stop ignoring torrc options after an %include directive, when the
1149       included directory ends with a file that does not contain any
1150       config options (but does contain comments or whitespace). Fixes
1151       bug 31408; bugfix on 0.3.1.1-alpha.
1153   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
1154     - Onion services now always use the exact number of intro points
1155       configured with the HiddenServiceNumIntroductionPoints option (or
1156       fewer if nodes are excluded). Before, a service could sometimes
1157       pick more intro points than configured. Fixes bug 31548; bugfix
1158       on 0.3.2.1-alpha.
1160   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
1161     - When building on Appveyor and Travis, pass the "-k" flag to make,
1162       so that we are informed of all compilation failures, not just the
1163       first one or two. Closes ticket 31372.
1165   o Minor features (geoip, backport from 0.4.2.5):
1166     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
1167       Country database. Closes ticket 32685.
1169   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
1170     - Avoid spurious errors when Appveyor CI fails before the install step.
1171       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
1173   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
1174     - Fix a BUG() assertion that occurs within a very small race window
1175       between when a client intro circuit opens and when its descriptor
1176       gets cleaned up from the cache. The circuit is now closed early,
1177       which will trigger a re-fetch of the descriptor and continue the
1178       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
1180   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
1181     - Avoid trying to read data from closed connections, which can cause
1182       needless loops in Libevent and infinite loops in Shadow. Fixes bug
1183       30344; bugfix on 0.1.1.1-alpha.
1185   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
1186     - On abort, try harder to flush the output buffers of log messages.
1187       On some platforms (macOS), log messages could be discarded when
1188       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
1189     - Report the tor version whenever an assertion fails. Previously, we
1190       only reported the Tor version on some crashes, and some non-fatal
1191       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
1192     - When tor aborts due to an error, close log file descriptors before
1193       aborting. Closing the logs makes some OSes flush log file buffers,
1194       rather than deleting buffered log lines. Fixes bug 31594; bugfix
1195       on 0.2.5.2-alpha.
1197   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
1198     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
1199       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
1200     - Disable backtrace signal handlers when shutting down tor. Fixes
1201       bug 31614; bugfix on 0.2.5.2-alpha.
1202     - Rate-limit our the logging message about the obsolete .exit
1203       notation. Previously, there was no limit on this warning, which
1204       could potentially be triggered many times by a hostile website.
1205       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
1207   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
1208     - Do not log a nonfatal assertion failure when receiving a VERSIONS
1209       cell on a connection using the obsolete v1 link protocol. Log a
1210       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
1212   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
1213     - Reset the periodic events' "enabled" flag when Tor is shut down
1214       cleanly. Previously, this flag was left on, which caused periodic
1215       events not to be re-enabled when Tor was relaunched in-process
1216       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
1217       on 0.3.3.1-alpha.
1219   o Minor bugfixes (multithreading, backport from 0.4.2.2-alpha):
1220     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
1221       31736; bugfix on 0.0.7.
1223   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
1224     - Remove overly strict assertions that triggered when a pluggable
1225       transport failed to launch. Fixes bug 31091; bugfix
1226       on 0.4.0.1-alpha.
1227     - Remove an assertion in the Unix process backend. This assertion
1228       would trigger when we failed to find the executable for a child
1229       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
1231   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
1232     - Avoid crashing when starting with a corrupt keys directory where
1233       the old ntor key and the new ntor key are identical. Fixes bug
1234       30916; bugfix on 0.2.4.8-alpha.
1236   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
1237     - When testing port rebinding, don't busy-wait for tor to log.
1238       Instead, actually sleep for a short time before polling again.
1239       Also improve the formatting of control commands and log messages.
1240       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
1242   o Minor bugfixes (tests, SunOS, backport from 0.4.2.2-alpha):
1243     - Avoid a map_anon_nofork test failure due to a signed/unsigned
1244       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
1246   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
1247     - Log bugs about the TLS read buffer's length only once, rather than
1248       filling the logs with similar warnings. Fixes bug 31939; bugfix
1249       on 0.3.0.4-rc.
1251   o Documentation (backport from 0.4.2.2-alpha):
1252     - Explain why we can't destroy the backtrace buffer mutex. Explain
1253       why we don't need to destroy the log mutex. Closes ticket 31736.
1255   o Testing (continuous integration, backport from 0.4.2.3-alpha):
1256     - Disable all but one Travis CI macOS build, to mitigate slow
1257       scheduling of Travis macOS jobs. Closes ticket 32177.
1258     - Run the chutney IPv6 networks as part of Travis CI. Closes
1259       ticket 30860.
1260     - Simplify the Travis CI build matrix, and optimise for build time.
1261       Closes ticket 31859.
1262     - Use Windows Server 2019 instead of Windows Server 2016 in our
1263       Appveyor builds. Closes ticket 32086.
1265   o Testing (continuous integration, backport from 0.4.2.4-rc):
1266     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
1267     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
1268       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
1269       until we can fix some Bionic permissions issues (see ticket
1270       32240). Related to ticket 31919.
1271     - Install the mingw OpenSSL package in Appveyor. This makes sure
1272       that the OpenSSL headers and libraries match in Tor's Appveyor
1273       builds. (This bug was triggered by an Appveyor image update.)
1274       Fixes bug 32449; bugfix on 0.3.5.6-rc.
1276   o Testing (continuous integration, backport from 0.4.2.5):
1277     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
1278       extensions. Also activates clang's -Wtypedef-redefinition warnings.
1279       Build some jobs with -std=gnu99, and some jobs without.
1280       Closes ticket 32500.
1283 Changes in version 0.4.0.6 - 2019-12-09
1284   This is the second stable release in the 0.4.0.x series. This release
1285   backports several bugfixes to improve stability and correctness.  Anyone
1286   experiencing build problems or crashes with 0.4.0.5, including all relays
1287   relying on AccountingMax, should upgrade.
1289   Note that, per our support policy, support for the 0.4.0.x series will end
1290   on 2 Feb 2020.  Anyone still running 0.4.0.x should plan to upgrade to the
1291   latest stable release, or downgrade to 0.3.5.x, which will get long-term
1292   support until 1 Feb 2022.
1294   o Directory authority changes (backport from 0.4.1.5):
1295     - The directory authority "dizum" has a new IP address. Closes
1296       ticket 31406.
1298   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
1299     - Consider our directory information to have changed when our list
1300       of bridges changes. Previously, Tor would not re-compute the
1301       status of its directory information when bridges changed, and
1302       therefore would not realize that it was no longer able to build
1303       circuits. Fixes part of bug 29875.
1304     - Do not count previously configured working bridges towards our
1305       total of working bridges. Previously, when Tor's list of bridges
1306       changed, it would think that the old bridges were still usable,
1307       and delay fetching router descriptors for the new ones. Fixes part
1308       of bug 29875; bugfix on 0.3.0.1-alpha.
1310   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
1311     - When considering upgrading circuits from "waiting for guard" to
1312       "open", always ignore circuits that are marked for close. Otherwise,
1313       we can end up in the situation where a subsystem is notified that
1314       a closing circuit has just opened, leading to undesirable
1315       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
1317   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
1318     - Properly clean up the introduction point map when circuits change
1319       purpose from onion service circuits to pathbias, measurement, or
1320       other circuit types. This should fix some service-side instances
1321       of introduction point failure. Fixes bug 29034; bugfix
1322       on 0.3.2.1-alpha.
1324   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
1325     - Fix an unreachable bug in which an introduction point could try to
1326       send an INTRODUCE_ACK with a status code that Trunnel would refuse
1327       to encode, leading the relay to assert(). We've consolidated the
1328       ABI values into Trunnel now. Fixes bug 30454; bugfix
1329       on 0.3.0.1-alpha.
1330     - Clients can now handle unknown status codes from INTRODUCE_ACK
1331       cells. (The NACK behavior will stay the same.) This will allow us
1332       to extend status codes in the future without breaking the normal
1333       client behavior. Fixes another part of bug 30454; bugfix
1334       on 0.3.0.1-alpha.
1336   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
1337     - Relays now respect their AccountingMax bandwidth again. When
1338       relays entered "soft" hibernation (which typically starts when
1339       we've hit 90% of our AccountingMax), we had stopped checking
1340       whether we should enter hard hibernation. Soft hibernation refuses
1341       new connections and new circuits, but the existing circuits can
1342       continue, meaning that relays could have exceeded their configured
1343       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
1345   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
1346     - Stop ignoring torrc options after an %include directive, when the
1347       included directory ends with a file that does not contain any
1348       config options (but does contain comments or whitespace). Fixes
1349       bug 31408; bugfix on 0.3.1.1-alpha.
1351   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
1352     - Onion services now always use the exact number of intro points
1353       configured with the HiddenServiceNumIntroductionPoints option (or
1354       fewer if nodes are excluded). Before, a service could sometimes
1355       pick more intro points than configured. Fixes bug 31548; bugfix
1356       on 0.3.2.1-alpha.
1358   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
1359     - Add a "--list-modules" command to print a list of which compile-
1360       time modules are enabled. Closes ticket 30452.
1362   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
1363     - Remove sudo configuration lines from .travis.yml as they are no
1364       longer needed with current Travis build environment. Resolves
1365       issue 30213.
1367   o Minor features (continuous integration, backport from 0.4.1.4-rc):
1368     - Our Travis configuration now uses Chutney to run some network
1369       integration tests automatically. Closes ticket 29280.
1371   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
1372     - When building on Appveyor and Travis, pass the "-k" flag to make,
1373       so that we are informed of all compilation failures, not just the
1374       first one or two. Closes ticket 31372.
1376   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
1377     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
1378       in December 2018 (of which ~122 were still functional), with a
1379       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
1380       in June 2019. Closes ticket 28795.
1382   o Minor features (geoip, backport from 0.4.2.5):
1383     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
1384       Country database. Closes ticket 32685.
1386   o Minor features (stem tests, backport from 0.4.2.1-alpha):
1387     - Change "make test-stem" so it only runs the stem tests that use
1388       tor. This change makes test-stem faster and more reliable. Closes
1389       ticket 31554.
1391   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
1392     - Avoid spurious errors when Appveyor CI fails before the install step.
1393       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
1395   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
1396     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
1397       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
1399   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
1400     - Fix a logic error that prevented the SessionGroup sub-option from
1401       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
1403   o Minor bugfixes (circuit padding, backport from 0.4.1.4-rc):
1404     - On relays, properly check that a padding machine is absent before
1405       logging a warning about it being absent. Fixes bug 30649; bugfix
1406       on 0.4.0.1-alpha.
1408   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
1409     - Fix a BUG() assertion that occurs within a very small race window
1410       between when a client intro circuit opens and when its descriptor
1411       gets cleaned up from the cache. The circuit is now closed early,
1412       which will trigger a re-fetch of the descriptor and continue the
1413       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
1415   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
1416     - Don't believe clock skew results from NETINFO cells that appear to
1417       arrive before we sent the VERSIONS cells they are responding to.
1418       Previously, we would accept them up to 3 minutes "in the past".
1419       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
1421   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
1422     - Fix a compilation warning on Windows about casting a function
1423       pointer for GetTickCount64(). Fixes bug 31374; bugfix
1424       on 0.2.9.1-alpha.
1426   o Minor bugfixes (compilation, backport from 0.4.1.5):
1427     - Avoid using labs() on time_t, which can cause compilation warnings
1428       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
1430   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
1431     - Suppress spurious float-conversion warnings from GCC when calling
1432       floating-point classifier functions on FreeBSD. Fixes part of bug
1433       31687; bugfix on 0.3.1.5-alpha.
1435   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
1436     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
1437       due to missing declarations of abort(), and prevent other such
1438       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
1440   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
1441     - Fix a bug that prevented us from supporting SOCKS5 proxies that
1442       want authentication along with configured (but unused!)
1443       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
1445   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
1446     - Avoid trying to read data from closed connections, which can cause
1447       needless loops in Libevent and infinite loops in Shadow. Fixes bug
1448       30344; bugfix on 0.1.1.1-alpha.
1450   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
1451     - Allow the test-stem job to fail in Travis, because it sometimes
1452       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
1453     - Skip test_rebind on macOS in Travis, because it is unreliable on
1454       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
1455     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
1456       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
1458   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
1459     - Avoid a set of possible code paths that could try to use freed
1460       memory in routerlist_free() while Tor was exiting. Fixes bug
1461       31003; bugfix on 0.1.2.2-alpha.
1463   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
1464     - Stop crashing after parsing an unknown descriptor purpose
1465       annotation. We think this bug can only be triggered by modifying a
1466       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
1468   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
1469     - Move the "bandwidth-file-headers" line in directory authority
1470       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
1471       on 0.3.5.1-alpha.
1473   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
1474     - On abort, try harder to flush the output buffers of log messages.
1475       On some platforms (macOS), log messages could be discarded when
1476       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
1477     - Report the tor version whenever an assertion fails. Previously, we
1478       only reported the Tor version on some crashes, and some non-fatal
1479       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
1481   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
1482     - When extracting an IPv6 address from a PF-based proxy, verify that
1483       we are actually configured to receive an IPv6 address, and log an
1484       internal error if not. Fixes part of bug 31687; bugfix
1485       on 0.2.3.4-alpha.
1487   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
1488     - When tor is missing descriptors for some primary entry guards,
1489       make the log message less alarming. It's normal for descriptors to
1490       expire, as long as tor fetches new ones soon after. Fixes bug
1491       31657; bugfix on 0.3.3.1-alpha.
1493   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
1494     - Do not log a warning when running with an OpenSSL version other
1495       than the one Tor was compiled with, if the two versions should be
1496       compatible. Previously, we would warn whenever the version was
1497       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
1499   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
1500     - Change log level of message "Hash of session info was not as
1501       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
1502       on 0.1.1.10-alpha.
1504   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
1505     - Rate-limit our the logging message about the obsolete .exit
1506       notation. Previously, there was no limit on this warning, which
1507       could potentially be triggered many times by a hostile website.
1508       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
1510   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
1511     - Do not log a nonfatal assertion failure when receiving a VERSIONS
1512       cell on a connection using the obsolete v1 link protocol. Log a
1513       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
1515   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
1516     - Reset the periodic events' "enabled" flag when Tor is shut down
1517       cleanly. Previously, this flag was left on, which caused periodic
1518       events not to be re-enabled when Tor was relaunched in-process
1519       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
1520       on 0.3.3.1-alpha.
1522   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
1523     - Avoid a minor memory leak that could occur on relays when failing
1524       to create a "keys" directory. Fixes bug 30148; bugfix
1525       on 0.3.3.1-alpha.
1527   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
1528     - Fix a trivial memory leak when parsing an invalid value
1529       from a download schedule in the configuration. Fixes bug
1530       30894; bugfix on 0.3.4.1-alpha.
1532   o Minor bugfixes (NetBSD, backport from 0.4.1.2-alpha):
1533     - Fix usage of minherit() on NetBSD and other platforms that define
1534       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
1535       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
1537   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
1538     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
1539       implemenation) when failing to load an onion service client
1540       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
1542   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
1543     - When purging the DNS cache because of an out-of-memory condition,
1544       try purging just the older entries at first. Previously, we would
1545       always purge the whole thing. Fixes bug 29617; bugfix
1546       on 0.3.5.1-alpha.
1548   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
1549     - Avoid crashing in our tor_vasprintf() implementation on systems
1550       that define neither vasprintf() nor _vscprintf(). (This bug has
1551       been here long enough that we question whether people are running
1552       Tor on such systems, but we're applying the fix out of caution.)
1553       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
1554       Tobias Stoeckmann.
1556   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
1557     - Remove overly strict assertions that triggered when a pluggable
1558       transport failed to launch. Fixes bug 31091; bugfix
1559       on 0.4.0.1-alpha.
1560     - Remove an assertion in the Unix process backend. This assertion
1561       would trigger when we failed to find the executable for a child
1562       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
1564   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
1565     - Avoid crashing when starting with a corrupt keys directory where
1566       the old ntor key and the new ntor key are identical. Fixes bug
1567       30916; bugfix on 0.2.4.8-alpha.
1569   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
1570     - Correctly exclude a redundant rust build job in Travis. Fixes bug
1571       31463; bugfix on 0.3.5.4-alpha.
1573   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
1574     - When testing port rebinding, don't busy-wait for tor to log.
1575       Instead, actually sleep for a short time before polling again.
1576       Also improve the formatting of control commands and log messages.
1577       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
1579   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
1580     - Log bugs about the TLS read buffer's length only once, rather than
1581       filling the logs with similar warnings. Fixes bug 31939; bugfix
1582       on 0.3.0.4-rc.
1584   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
1585     - Always retry v2 single onion service intro and rend circuits with
1586       a 3-hop path. Previously, v2 single onion services used a 3-hop
1587       path when rendezvous circuits were retried after a remote or
1588       delayed failure, but a 1-hop path for immediate retries. Fixes bug
1589       23818; bugfix on 0.2.9.3-alpha.
1590     - Make v3 single onion services fall back to a 3-hop intro, when all
1591       intro points are unreachable via a 1-hop path. Previously, v3
1592       single onion services failed when all intro nodes were unreachable
1593       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
1595   o Documentation (backport from 0.4.2.1-alpha):
1596     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
1597       notice.html so that operators no longer have to host it
1598       themselves. Closes ticket 31089.
1600   o Testing (backport from 0.4.1.2-alpha):
1601     - Specify torrc paths (with empty files) when launching tor in
1602       integration tests; refrain from reading user and system torrcs.
1603       Resolves issue 29702.
1605   o Testing (continuous integration, backport from 0.4.1.1-alpha):
1606     - In Travis, show stem's tor log after failure. Closes ticket 30234.
1608   o Testing (continuous integration, backport from 0.4.1.5):
1609     - In Travis, make stem log a controller trace to the console, and
1610       tail stem's tor log after failure. Closes ticket 30591.
1611     - In Travis, only run the stem tests that use a tor binary. Closes
1612       ticket 30694.
1614   o Testing (continuous integration, backport from 0.4.2.3-alpha):
1615     - Disable all but one Travis CI macOS build, to mitigate slow
1616       scheduling of Travis macOS jobs. Closes ticket 32177.
1617     - Run the chutney IPv6 networks as part of Travis CI. Closes
1618       ticket 30860.
1619     - Simplify the Travis CI build matrix, and optimise for build time.
1620       Closes ticket 31859.
1621     - Use Windows Server 2019 instead of Windows Server 2016 in our
1622       Appveyor builds. Closes ticket 32086.
1624   o Testing (continuous integration, backport from 0.4.2.4-rc):
1625     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
1626       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
1627       until we can fix some Bionic permissions issues (see ticket
1628       32240). Related to ticket 31919.
1629     - Install the mingw OpenSSL package in Appveyor. This makes sure
1630       that the OpenSSL headers and libraries match in Tor's Appveyor
1631       builds. (This bug was triggered by an Appveyor image update.)
1632       Fixes bug 32449; bugfix on 0.3.5.6-rc.
1633     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
1635   o Testing (continuous integration, backport from 0.4.2.5):
1636     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
1637       extensions. Also activates clang's -Wtypedef-redefinition warnings.
1638       Build some jobs with -std=gnu99, and some jobs without.
1639       Closes ticket 32500.
1641 Changes in version 0.3.5.9 - 2019-12-09
1642   Tor 0.3.5.9 backports serveral fixes from later releases, including
1643   several that affect bridge users, relay stability, onion services,
1644   and much more.
1646   o Directory authority changes (backport from 0.4.1.5):
1647     - The directory authority "dizum" has a new IP address. Closes
1648       ticket 31406.
1650   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
1651     - Consider our directory information to have changed when our list
1652       of bridges changes. Previously, Tor would not re-compute the
1653       status of its directory information when bridges changed, and
1654       therefore would not realize that it was no longer able to build
1655       circuits. Fixes part of bug 29875.
1656     - Do not count previously configured working bridges towards our
1657       total of working bridges. Previously, when Tor's list of bridges
1658       changed, it would think that the old bridges were still usable,
1659       and delay fetching router descriptors for the new ones. Fixes part
1660       of bug 29875; bugfix on 0.3.0.1-alpha.
1662   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
1663     - When considering upgrading circuits from "waiting for guard" to
1664       "open", always ignore circuits that are marked for close. Otherwise,
1665       we can end up in the situation where a subsystem is notified that
1666       a closing circuit has just opened, leading to undesirable
1667       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
1669   o Major bugfixes (NSS, relay, backport from 0.4.0.4-rc):
1670     - When running with NSS, disable TLS 1.2 ciphersuites that use
1671       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
1672       these ciphersuites don't work -- which caused relays to fail to
1673       handshake with one another when these ciphersuites were enabled.
1674       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
1676   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
1677     - Properly clean up the introduction point map when circuits change
1678       purpose from onion service circuits to pathbias, measurement, or
1679       other circuit types. This should fix some service-side instances
1680       of introduction point failure. Fixes bug 29034; bugfix
1681       on 0.3.2.1-alpha.
1683   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
1684     - Fix an unreachable bug in which an introduction point could try to
1685       send an INTRODUCE_ACK with a status code that Trunnel would refuse
1686       to encode, leading the relay to assert(). We've consolidated the
1687       ABI values into Trunnel now. Fixes bug 30454; bugfix
1688       on 0.3.0.1-alpha.
1689     - Clients can now handle unknown status codes from INTRODUCE_ACK
1690       cells. (The NACK behavior will stay the same.) This will allow us
1691       to extend status codes in the future without breaking the normal
1692       client behavior. Fixes another part of bug 30454; bugfix
1693       on 0.3.0.1-alpha.
1695   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
1696     - Stop ignoring torrc options after an %include directive, when the
1697       included directory ends with a file that does not contain any
1698       config options (but does contain comments or whitespace). Fixes
1699       bug 31408; bugfix on 0.3.1.1-alpha.
1701   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
1702     - Onion services now always use the exact number of intro points
1703       configured with the HiddenServiceNumIntroductionPoints option (or
1704       fewer if nodes are excluded). Before, a service could sometimes
1705       pick more intro points than configured. Fixes bug 31548; bugfix
1706       on 0.3.2.1-alpha.
1708   o Minor features (address selection, backport from 0.4.0.3-alpha):
1709     - Treat the subnet 100.64.0.0/10 as public for some purposes;
1710       private for others. This subnet is the RFC 6598 (Carrier Grade
1711       NAT) IP range, and is deployed by many ISPs as an alternative to
1712       RFC 1918 that does not break existing internal networks. Tor now
1713       blocks SOCKS and control ports on these addresses and warns users
1714       if client ports or ExtORPorts are listening on a RFC 6598 address.
1715       Closes ticket 28525. Patch by Neel Chauhan.
1717   o Minor features (bandwidth authority, backport from 0.4.0.4-rc):
1718     - Make bandwidth authorities ignore relays that are reported in the
1719       bandwidth file with the flag "vote=0". This change allows us to
1720       report unmeasured relays for diagnostic reasons without including
1721       their bandwidth in the bandwidth authorities' vote. Closes
1722       ticket 29806.
1724   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
1725     - Add a "--list-modules" command to print a list of which compile-
1726       time modules are enabled. Closes ticket 30452.
1728   o Minor features (continuous integration, backport from 0.4.0.4-rc):
1729     - On Travis Rust builds, cleanup Rust registry and refrain from
1730       caching the "target/" directory to speed up builds. Resolves
1731       issue 29962.
1733   o Minor features (continuous integration, backport from 0.4.0.5):
1734     - In Travis, tell timelimit to use stem's backtrace signals, and
1735       launch python directly from timelimit, so python receives the
1736       signals from timelimit, rather than make. Closes ticket 30117.
1738   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
1739     - Remove sudo configuration lines from .travis.yml as they are no
1740       longer needed with current Travis build environment. Resolves
1741       issue 30213.
1743   o Minor features (continuous integration, backport from 0.4.1.4-rc):
1744     - Our Travis configuration now uses Chutney to run some network
1745       integration tests automatically. Closes ticket 29280.
1747   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
1748     - When building on Appveyor and Travis, pass the "-k" flag to make,
1749       so that we are informed of all compilation failures, not just the
1750       first one or two. Closes ticket 31372.
1752   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
1753     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
1754       in December 2018 (of which ~122 were still functional), with a
1755       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
1756       in June 2019. Closes ticket 28795.
1758   o Minor features (geoip, backport from 0.4.2.5):
1759     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
1760       Country database. Closes ticket 32685.
1762   o Minor features (NSS, diagnostic, backport from 0.4.0.4-rc):
1763     - Try to log an error from NSS (if there is any) and a more useful
1764       description of our situation if we are using NSS and a call to
1765       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
1767   o Minor features (stem tests, backport from 0.4.2.1-alpha):
1768     - Change "make test-stem" so it only runs the stem tests that use
1769       tor. This change makes test-stem faster and more reliable. Closes
1770       ticket 31554.
1772   o Minor bugfixes (security, backport from 0.4.0.4-rc):
1773     - Verify in more places that we are not about to create a buffer
1774       with more than INT_MAX bytes, to avoid possible OOB access in the
1775       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
1776       fixed by Tobias Stoeckmann.
1777     - Fix a potential double free bug when reading huge bandwidth files.
1778       The issue is not exploitable in the current Tor network because
1779       the vulnerable code is only reached when directory authorities
1780       read bandwidth files, but bandwidth files come from a trusted
1781       source (usually the authorities themselves). Furthermore, the
1782       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
1783       which are not used by any of the current authorities. Fixes bug
1784       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
1785       Tobias Stoeckmann.
1787   o Minor bugfix (continuous integration, backport from 0.4.0.4-rc):
1788     - Reset coverage state on disk after Travis CI has finished. This
1789       should prevent future coverage merge errors from causing the test
1790       suite for the "process" subsystem to fail. The process subsystem
1791       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
1792       on 0.2.9.15.
1793     - Terminate test-stem if it takes more than 9.5 minutes to run.
1794       (Travis terminates the job after 10 minutes of no output.)
1795       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
1797   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
1798     - Avoid spurious errors when Appveyor CI fails before the install step.
1799       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
1801   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
1802     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
1803       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
1805   o Minor bugfixes (C correctness, backport from 0.4.0.4-rc):
1806     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
1807       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
1808       CID 1444119.
1810   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
1811     - Fix a logic error that prevented the SessionGroup sub-option from
1812       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
1814   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
1815     - Fix a BUG() assertion that occurs within a very small race window
1816       between when a client intro circuit opens and when its descriptor
1817       gets cleaned up from the cache. The circuit is now closed early,
1818       which will trigger a re-fetch of the descriptor and continue the
1819       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
1821   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
1822     - Don't believe clock skew results from NETINFO cells that appear to
1823       arrive before we sent the VERSIONS cells they are responding to.
1824       Previously, we would accept them up to 3 minutes "in the past".
1825       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
1827   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
1828     - Fix a compilation warning on Windows about casting a function
1829       pointer for GetTickCount64(). Fixes bug 31374; bugfix
1830       on 0.2.9.1-alpha.
1832   o Minor bugfixes (compilation, backport from 0.4.0.2-alpha):
1833     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
1834       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
1836   o Minor bugfixes (compilation, backport from 0.4.1.5):
1837     - Avoid using labs() on time_t, which can cause compilation warnings
1838       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
1840   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
1841     - Suppress spurious float-conversion warnings from GCC when calling
1842       floating-point classifier functions on FreeBSD. Fixes part of bug
1843       31687; bugfix on 0.3.1.5-alpha.
1845   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
1846     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
1847       due to missing declarations of abort(), and prevent other such
1848       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
1850   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
1851     - Fix a bug that prevented us from supporting SOCKS5 proxies that
1852       want authentication along with configured (but unused!)
1853       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
1855   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
1856     - Avoid trying to read data from closed connections, which can cause
1857       needless loops in Libevent and infinite loops in Shadow. Fixes bug
1858       30344; bugfix on 0.1.1.1-alpha.
1860   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
1861     - Allow the test-stem job to fail in Travis, because it sometimes
1862       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
1863     - Skip test_rebind on macOS in Travis, because it is unreliable on
1864       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
1865     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
1866       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
1868   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
1869     - Avoid a set of possible code paths that could try to use freed
1870       memory in routerlist_free() while Tor was exiting. Fixes bug
1871       31003; bugfix on 0.1.2.2-alpha.
1873   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
1874     - Stop crashing after parsing an unknown descriptor purpose
1875       annotation. We think this bug can only be triggered by modifying a
1876       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
1878   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
1879     - Move the "bandwidth-file-headers" line in directory authority
1880       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
1881       on 0.3.5.1-alpha.
1883   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
1884     - On abort, try harder to flush the output buffers of log messages.
1885       On some platforms (macOS), log messages could be discarded when
1886       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
1887     - Report the tor version whenever an assertion fails. Previously, we
1888       only reported the Tor version on some crashes, and some non-fatal
1889       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
1891   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
1892     - When extracting an IPv6 address from a PF-based proxy, verify that
1893       we are actually configured to receive an IPv6 address, and log an
1894       internal error if not. Fixes part of bug 31687; bugfix
1895       on 0.2.3.4-alpha.
1897   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
1898     - When tor is missing descriptors for some primary entry guards,
1899       make the log message less alarming. It's normal for descriptors to
1900       expire, as long as tor fetches new ones soon after. Fixes bug
1901       31657; bugfix on 0.3.3.1-alpha.
1903   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
1904     - Avoid logging that we are relaxing a circuit timeout when that
1905       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
1907   o Minor bugfixes (logging, backport from 0.4.0.3-alpha):
1908     - Correct a misleading error message when IPv4Only or IPv6Only is
1909       used but the resolved address can not be interpreted as an address
1910       of the specified IP version. Fixes bug 13221; bugfix on
1911       0.2.3.9-alpha. Patch from Kris Katterjohn.
1912     - Log the correct port number for listening sockets when "auto" is
1913       used to let Tor pick the port number. Previously, port 0 was
1914       logged instead of the actual port number. Fixes bug 29144; bugfix
1915       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
1916     - Stop logging a BUG() warning when Tor is waiting for exit
1917       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
1919   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
1920     - Do not log a warning when running with an OpenSSL version other
1921       than the one Tor was compiled with, if the two versions should be
1922       compatible. Previously, we would warn whenever the version was
1923       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
1925   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
1926     - Change log level of message "Hash of session info was not as
1927       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
1928       on 0.1.1.10-alpha.
1930   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
1931     - Rate-limit our the logging message about the obsolete .exit
1932       notation. Previously, there was no limit on this warning, which
1933       could potentially be triggered many times by a hostile website.
1934       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
1936   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
1937     - Do not log a nonfatal assertion failure when receiving a VERSIONS
1938       cell on a connection using the obsolete v1 link protocol. Log a
1939       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
1941   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
1942     - Reset the periodic events' "enabled" flag when Tor is shut down
1943       cleanly. Previously, this flag was left on, which caused periodic
1944       events not to be re-enabled when Tor was relaunched in-process
1945       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
1946       on 0.3.3.1-alpha.
1948   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
1949     - Avoid a minor memory leak that could occur on relays when failing
1950       to create a "keys" directory. Fixes bug 30148; bugfix
1951       on 0.3.3.1-alpha.
1953   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
1954     - Fix a trivial memory leak when parsing an invalid value
1955       from a download schedule in the configuration. Fixes bug
1956       30894; bugfix on 0.3.4.1-alpha.
1958   o Minor bugfixes (memory management, backport from 0.4.0.3-alpha):
1959     - Refactor the shared random state's memory management so that it
1960       actually takes ownership of the shared random value pointers.
1961       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
1963   o Minor bugfixes (memory management, testing, backport from 0.4.0.3-alpha):
1964     - Stop leaking parts of the shared random state in the shared-random
1965       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
1967   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
1968     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
1969       implemenation) when failing to load an onion service client
1970       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
1972   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
1973     - When purging the DNS cache because of an out-of-memory condition,
1974       try purging just the older entries at first. Previously, we would
1975       always purge the whole thing. Fixes bug 29617; bugfix
1976       on 0.3.5.1-alpha.
1978   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
1979     - Avoid crashing in our tor_vasprintf() implementation on systems
1980       that define neither vasprintf() nor _vscprintf(). (This bug has
1981       been here long enough that we question whether people are running
1982       Tor on such systems, but we're applying the fix out of caution.)
1983       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
1984       Tobias Stoeckmann.
1986   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
1987     - Avoid crashing when starting with a corrupt keys directory where
1988       the old ntor key and the new ntor key are identical. Fixes bug
1989       30916; bugfix on 0.2.4.8-alpha.
1991   o Minor bugfixes (rust, backport from 0.4.0.5):
1992     - Abort on panic in all build profiles, instead of potentially
1993       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
1995   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
1996     - Correctly exclude a redundant rust build job in Travis. Fixes bug
1997       31463; bugfix on 0.3.5.4-alpha.
1999   o Minor bugfixes (single onion services, backport from 0.4.0.3-alpha):
2000     - Allow connections to single onion services to remain idle without
2001       being disconnected. Previously, relays acting as rendezvous points
2002       for single onion services were mistakenly closing idle rendezvous
2003       circuits after 60 seconds, thinking that they were unused
2004       directory-fetching circuits that had served their purpose. Fixes
2005       bug 29665; bugfix on 0.2.1.26.
2007   o Minor bugfixes (stats, backport from 0.4.0.3-alpha):
2008     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
2009       relay and bridge extra-info documents. Fixes bug 29017; bugfix
2010       on 0.3.1.1-alpha.
2012   o Minor bugfixes (testing, backport from 0.4.0.3-alpha):
2013     - Downgrade some LOG_ERR messages in the address/* tests to
2014       warnings. The LOG_ERR messages were occurring when we had no
2015       configured network. We were failing the unit tests, because we
2016       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
2017       29530; bugfix on 0.3.5.8.
2018     - Fix our gcov wrapper script to look for object files at the
2019       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
2021   o Minor bugfixes (testing, backport from 0.4.0.4-rc):
2022     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
2023       recent test-network.sh to use new chutney features in CI. Fixes
2024       bug 29703; bugfix on 0.2.9.1-alpha.
2025     - Fix a test failure on Windows caused by an unexpected "BUG"
2026       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
2027       on 0.2.9.3-alpha.
2029   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
2030     - When testing port rebinding, don't busy-wait for tor to log.
2031       Instead, actually sleep for a short time before polling again.
2032       Also improve the formatting of control commands and log messages.
2033       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
2035   o Minor bugfixes (TLS protocol, backport form 0.4.0.4-rc):
2036     - When classifying a client's selection of TLS ciphers, if the
2037       client ciphers are not yet available, do not cache the result.
2038       Previously, we had cached the unavailability of the cipher list
2039       and never looked again, which in turn led us to assume that the
2040       client only supported the ancient V1 link protocol. This, in turn,
2041       was causing Stem integration tests to stall in some cases. Fixes
2042       bug 30021; bugfix on 0.2.4.8-alpha.
2044   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
2045     - Log bugs about the TLS read buffer's length only once, rather than
2046       filling the logs with similar warnings. Fixes bug 31939; bugfix
2047       on 0.3.0.4-rc.
2049   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
2050     - Always retry v2 single onion service intro and rend circuits with
2051       a 3-hop path. Previously, v2 single onion services used a 3-hop
2052       path when rendezvous circuits were retried after a remote or
2053       delayed failure, but a 1-hop path for immediate retries. Fixes bug
2054       23818; bugfix on 0.2.9.3-alpha.
2055     - Make v3 single onion services fall back to a 3-hop intro, when all
2056       intro points are unreachable via a 1-hop path. Previously, v3
2057       single onion services failed when all intro nodes were unreachable
2058       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
2060   o Minor bugfixes (Windows, CI, backport from 0.4.0.3-alpha):
2061     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
2062       Windows Server 2012 R2 job. The remaining 2 jobs still provide
2063       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
2064       fast_finish, so failed jobs terminate the build immediately. Fixes
2065       bug 29601; bugfix on 0.3.5.4-alpha.
2067   o Documentation (backport from 0.4.2.1-alpha):
2068     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
2069       notice.html so that operators no longer have to host it
2070       themselves. Closes ticket 31089.
2072   o Testing (backport from 0.4.1.2-alpha):
2073     - Specify torrc paths (with empty files) when launching tor in
2074       integration tests; refrain from reading user and system torrcs.
2075       Resolves issue 29702.
2077   o Testing (continuous integration, backport from 0.4.1.1-alpha):
2078     - In Travis, show stem's tor log after failure. Closes ticket 30234.
2080   o Testing (continuous integration, backport from 0.4.1.5):
2081     - In Travis, make stem log a controller trace to the console, and
2082       tail stem's tor log after failure. Closes ticket 30591.
2083     - In Travis, only run the stem tests that use a tor binary. Closes
2084       ticket 30694.
2086   o Testing (continuous integration, backport from 0.4.2.3-alpha):
2087     - Disable all but one Travis CI macOS build, to mitigate slow
2088       scheduling of Travis macOS jobs. Closes ticket 32177.
2089     - Run the chutney IPv6 networks as part of Travis CI. Closes
2090       ticket 30860.
2091     - Simplify the Travis CI build matrix, and optimise for build time.
2092       Closes ticket 31859.
2093     - Use Windows Server 2019 instead of Windows Server 2016 in our
2094       Appveyor builds. Closes ticket 32086.
2096   o Testing (continuous integration, backport from 0.4.2.4-rc):
2097     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
2098       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
2099       until we can fix some Bionic permissions issues (see ticket
2100       32240). Related to ticket 31919.
2101     - Install the mingw OpenSSL package in Appveyor. This makes sure
2102       that the OpenSSL headers and libraries match in Tor's Appveyor
2103       builds. (This bug was triggered by an Appveyor image update.)
2104       Fixes bug 32449; bugfix on 0.3.5.6-rc.
2105     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
2107   o Testing (continuous integration, backport from 0.4.2.5):
2108     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
2109       extensions. Also activates clang's -Wtypedef-redefinition warnings.
2110       Build some jobs with -std=gnu99, and some jobs without.
2111       Closes ticket 32500.
2113 Changes in version 0.4.2.4-rc - 2019-11-15
2114   Tor 0.4.2.4-rc is the first release candidate in its series. It fixes
2115   several bugs from earlier versions, including a few that would result in
2116   stack traces or incorrect behavior.
2118   o Minor features (build system):
2119     - Make pkg-config use --prefix when cross-compiling, if
2120       PKG_CONFIG_PATH is not set. Closes ticket 32191.
2122   o Minor features (geoip):
2123     - Update geoip and geoip6 to the November 6 2019 Maxmind GeoLite2
2124       Country database. Closes ticket 32440.
2126   o Minor bugfixes (client, onion service v3):
2127     - Fix a BUG() assertion that occurs within a very small race window
2128       between when a client intro circuit opens and when its descriptor
2129       gets cleaned up from the cache. The circuit is now closed early,
2130       which will trigger a re-fetch of the descriptor and continue the
2131       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
2133   o Minor bugfixes (code quality):
2134     - Fix "make check-includes" so it runs correctly on out-of-tree
2135       builds. Fixes bug 31335; bugfix on 0.3.5.1-alpha.
2137   o Minor bugfixes (configuration):
2138     - Log the option name when skipping an obsolete option. Fixes bug
2139       32295; bugfix on 0.4.2.1-alpha.
2141   o Minor bugfixes (crash):
2142     - When running Tor with an option like --verify-config or
2143       --dump-config that does not start the event loop, avoid crashing
2144       if we try to exit early because of an error. Fixes bug 32407;
2145       bugfix on 0.3.3.1-alpha.
2147   o Minor bugfixes (directory):
2148     - When checking if a directory connection is anonymous, test if the
2149       circuit was marked for close before looking at its channel. This
2150       avoids a BUG() stacktrace if the circuit was previously closed.
2151       Fixes bug 31958; bugfix on 0.4.2.1-alpha.
2153   o Minor bugfixes (shellcheck):
2154     - Fix minor shellcheck errors in the git-*.sh scripts. Fixes bug
2155       32402; bugfix on 0.4.2.1-alpha.
2156     - Start checking most scripts for shellcheck errors again. Fixes bug
2157       32402; bugfix on 0.4.2.1-alpha.
2159   o Testing (continuous integration):
2160     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
2161       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
2162       until we can fix some Bionic permissions issues (see ticket
2163       32240). Related to ticket 31919.
2164     - Install the mingw OpenSSL package in Appveyor. This makes sure
2165       that the OpenSSL headers and libraries match in Tor's Appveyor
2166       builds. (This bug was triggered by an Appveyor image update.)
2167       Fixes bug 32449; bugfix on 0.3.5.6-rc.
2168     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
2171 Changes in version 0.4.2.3-alpha - 2019-10-24
2172   This release fixes several bugs from the previous alpha release, and
2173   from earlier versions of Tor.
2175   o Major bugfixes (relay):
2176     - Relays now respect their AccountingMax bandwidth again. When
2177       relays entered "soft" hibernation (which typically starts when
2178       we've hit 90% of our AccountingMax), we had stopped checking
2179       whether we should enter hard hibernation. Soft hibernation refuses
2180       new connections and new circuits, but the existing circuits can
2181       continue, meaning that relays could have exceeded their configured
2182       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
2184   o Major bugfixes (v3 onion services):
2185     - Onion services now always use the exact number of intro points
2186       configured with the HiddenServiceNumIntroductionPoints option (or
2187       fewer if nodes are excluded). Before, a service could sometimes
2188       pick more intro points than configured. Fixes bug 31548; bugfix
2189       on 0.3.2.1-alpha.
2191   o Minor feature (onion services, control port):
2192     - The ADD_ONION command's keyword "BEST" now defaults to ED25519-V3
2193       (v3) onion services. Previously it defaulted to RSA1024 (v2).
2194       Closes ticket 29669.
2196   o Minor features (testing):
2197     - When running tests that attempt to look up hostnames, replace the
2198       libc name lookup functions with ones that do not actually touch
2199       the network. This way, the tests complete more quickly in the
2200       presence of a slow or missing DNS resolver. Closes ticket 31841.
2202   o Minor features (testing, continuous integration):
2203     - Disable all but one Travis CI macOS build, to mitigate slow
2204       scheduling of Travis macOS jobs. Closes ticket 32177.
2205     - Run the chutney IPv6 networks as part of Travis CI. Closes
2206       ticket 30860.
2207     - Simplify the Travis CI build matrix, and optimise for build time.
2208       Closes ticket 31859.
2209     - Use Windows Server 2019 instead of Windows Server 2016 in our
2210       Appveyor builds. Closes ticket 32086.
2212   o Minor bugfixes (build system):
2213     - Interpret "--disable-module-dirauth=no" correctly. Fixes bug
2214       32124; bugfix on 0.3.4.1-alpha.
2215     - Interpret "--with-tcmalloc=no" correctly. Fixes bug 32124; bugfix
2216       on 0.2.0.20-rc.
2217     - Stop failing when jemalloc is requested, but tcmalloc is not
2218       found. Fixes bug 32124; bugfix on 0.3.5.1-alpha.
2219     - When pkg-config is not installed, or a library that depends on
2220       pkg-config is not found, tell the user what to do to fix the
2221       problem. Fixes bug 31922; bugfix on 0.3.1.1-alpha.
2223   o Minor bugfixes (connections):
2224     - Avoid trying to read data from closed connections, which can cause
2225       needless loops in Libevent and infinite loops in Shadow. Fixes bug
2226       30344; bugfix on 0.1.1.1-alpha.
2228   o Minor bugfixes (error handling):
2229     - Always lock the backtrace buffer before it is used. Fixes bug
2230       31734; bugfix on 0.2.5.3-alpha.
2232   o Minor bugfixes (mainloop, periodic events, in-process API):
2233     - Reset the periodic events' "enabled" flag when Tor is shut down
2234       cleanly. Previously, this flag was left on, which caused periodic
2235       events not to be re-enabled when Tor was relaunched in-process
2236       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
2237       on 0.3.3.1-alpha.
2239   o Minor bugfixes (process management):
2240     - Remove overly strict assertions that triggered when a pluggable
2241       transport failed to launch. Fixes bug 31091; bugfix
2242       on 0.4.0.1-alpha.
2243     - Remove an assertion in the Unix process backend. This assertion
2244       would trigger when we failed to find the executable for a child
2245       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
2247   o Minor bugfixes (testing):
2248     - Avoid intermittent test failures due to a test that had relied on
2249       inconsistent timing sources. Fixes bug 31995; bugfix
2250       on 0.3.1.3-alpha.
2251     - When testing port rebinding, don't busy-wait for tor to log.
2252       Instead, actually sleep for a short time before polling again.
2253       Also improve the formatting of control commands and log messages.
2254       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
2256   o Minor bugfixes (tls, logging):
2257     - Log bugs about the TLS read buffer's length only once, rather than
2258       filling the logs with similar warnings. Fixes bug 31939; bugfix
2259       on 0.3.0.4-rc.
2261   o Minor bugfixes (v3 onion services):
2262     - Fix an implicit conversion from ssize_t to size_t discovered by
2263       Coverity. Fixes bug 31682; bugfix on 0.4.2.1-alpha.
2264     - Fix a memory leak in an unlikely error code path when encoding HS
2265       DoS establish intro extension cell. Fixes bug 32063; bugfix
2266       on 0.4.2.1-alpha.
2267     - When cleaning up intro circuits for a v3 onion service, don't
2268       remove circuits that have an established or pending circuit, even
2269       if they ran out of retries. This way, we don't remove a circuit on
2270       its last retry. Fixes bug 31652; bugfix on 0.3.2.1-alpha.
2272   o Documentation:
2273     - Correct the description of "GuardLifetime". Fixes bug 31189;
2274       bugfix on 0.3.0.1-alpha.
2275     - Make clear in the man page, in both the bandwidth section and the
2276       AccountingMax section, that Tor counts in powers of two, not
2277       powers of ten: 1 GByte is 1024*1024*1024 bytes, not one billion
2278       bytes. Resolves ticket 32106.
2281 Changes in version 0.4.2.2-alpha - 2019-10-07
2282   This release fixes several bugs from the previous alpha release, and
2283   from earlier versions. It also includes a change in authorities, so
2284   that they begin to reject the currently unsupported release series.
2286   o Major features (directory authorities):
2287     - Directory authorities now reject relays running all currently
2288       deprecated release series. The currently supported release series
2289       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
2291   o Major bugfixes (embedded Tor):
2292     - Avoid a possible crash when restarting Tor in embedded mode and
2293       enabling a different set of publish/subscribe messages. Fixes bug
2294       31898; bugfix on 0.4.1.1-alpha.
2296   o Major bugfixes (torrc parsing):
2297     - Stop ignoring torrc options after an %include directive, when the
2298       included directory ends with a file that does not contain any
2299       config options (but does contain comments or whitespace). Fixes
2300       bug 31408; bugfix on 0.3.1.1-alpha.
2302   o Minor features (auto-formatting scripts):
2303     - When annotating C macros, never generate a line that our check-
2304       spaces script would reject. Closes ticket 31759.
2305     - When annotating C macros, try to remove cases of double-negation.
2306       Closes ticket 31779.
2308   o Minor features (continuous integration):
2309     - When building on Appveyor and Travis, pass the "-k" flag to make,
2310       so that we are informed of all compilation failures, not just the
2311       first one or two. Closes ticket 31372.
2313   o Minor features (geoip):
2314     - Update geoip and geoip6 to the October 1 2019 Maxmind GeoLite2
2315       Country database. Closes ticket 31931.
2317   o Minor features (maintenance scripts):
2318     - Add a Coccinelle script to detect bugs caused by incrementing or
2319       decrementing a variable inside a call to log_debug(). Since
2320       log_debug() is a macro whose arguments are conditionally
2321       evaluated, it is usually an error to do this. One such bug was
2322       30628, in which SENDME cells were miscounted by a decrement
2323       operator inside a log_debug() call. Closes ticket 30743.
2325   o Minor features (onion services v3):
2326     - Assist users who try to setup v2 client authorization in v3 onion
2327       services by pointing them to the right documentation. Closes
2328       ticket 28966.
2330   o Minor bugfixes (Appveyor continuous integration):
2331     - Avoid spurious errors when Appveyor CI fails before the install
2332       step. Fixes bug 31884; bugfix on 0.3.4.2-alpha.
2334   o Minor bugfixes (best practices tracker):
2335     - When listing overbroad exceptions, do not also list problems, and
2336       do not list insufficiently broad exceptions. Fixes bug 31338;
2337       bugfix on 0.4.2.1-alpha.
2339   o Minor bugfixes (controller protocol):
2340     - Fix the MAPADDRESS controller command to accept one or more
2341       arguments. Previously, it required two or more arguments, and
2342       ignored the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
2344   o Minor bugfixes (logging):
2345     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
2346       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
2347     - Disable backtrace signal handlers when shutting down tor. Fixes
2348       bug 31614; bugfix on 0.2.5.2-alpha.
2349     - Rate-limit our the logging message about the obsolete .exit
2350       notation. Previously, there was no limit on this warning, which
2351       could potentially be triggered many times by a hostile website.
2352       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
2353     - When initialising log domain masks, only set known log domains.
2354       Fixes bug 31854; bugfix on 0.2.1.1-alpha.
2356   o Minor bugfixes (logging, protocol violations):
2357     - Do not log a nonfatal assertion failure when receiving a VERSIONS
2358       cell on a connection using the obsolete v1 link protocol. Log a
2359       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
2361   o Minor bugfixes (modules):
2362     - Explain what the optional Directory Authority module is, and what
2363       happens when it is disabled. Fixes bug 31825; bugfix
2364       on 0.3.4.1-alpha.
2366   o Minor bugfixes (multithreading):
2367     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
2368       31736; bugfix on 0.0.7.
2370   o Minor bugfixes (relay):
2371     - Avoid crashing when starting with a corrupt keys directory where
2372       the old ntor key and the new ntor key are identical. Fixes bug
2373       30916; bugfix on 0.2.4.8-alpha.
2375   o Minor bugfixes (tests, SunOS):
2376     - Avoid a map_anon_nofork test failure due to a signed/unsigned
2377       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
2379   o Code simplification and refactoring:
2380     - Refactor connection_control_process_inbuf() to reduce the size of
2381       a practracker exception. Closes ticket 31840.
2382     - Refactor the microdescs_parse_from_string() function into smaller
2383       pieces, for better comprehensibility. Closes ticket 31675.
2384     - Use SEVERITY_MASK_IDX() to find the LOG_* mask indexes in the unit
2385       tests and fuzzers, rather than using hard-coded values. Closes
2386       ticket 31334.
2387     - Interface for function `decrypt_desc_layer` cleaned up. Closes
2388       ticket 31589.
2390   o Documentation:
2391     - Document the signal-safe logging behaviour in the tor man page.
2392       Also add some comments to the relevant functions. Closes
2393       ticket 31839.
2394     - Explain why we can't destroy the backtrace buffer mutex. Explain
2395       why we don't need to destroy the log mutex. Closes ticket 31736.
2396     - The Tor source code repository now includes a (somewhat dated)
2397       description of Tor's modular architecture, in doc/HACKING/design.
2398       This is based on the old "tor-guts.git" repository, which we are
2399       adopting and superseding. Closes ticket 31849.
2402 Changes in version 0.4.1.6 - 2019-09-19
2403   This release backports several bugfixes to improve stability and
2404   correctness.  Anyone experiencing build problems or crashes with 0.4.1.5,
2405   or experiencing reliability issues with single onion services, should
2406   upgrade.
2408   o Major bugfixes (crash, Linux, Android, backport from 0.4.2.1-alpha):
2409     - Tolerate systems (including some Android installations) where
2410       madvise and MADV_DONTDUMP are available at build-time, but not at
2411       run time. Previously, these systems would notice a failed syscall
2412       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
2413     - Tolerate systems (including some Linux installations) where
2414       madvise and/or MADV_DONTFORK are available at build-time, but not
2415       at run time. Previously, these systems would notice a failed
2416       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
2418   o Minor features (stem tests, backport from 0.4.2.1-alpha):
2419     - Change "make test-stem" so it only runs the stem tests that use
2420       tor. This change makes test-stem faster and more reliable. Closes
2421       ticket 31554.
2423   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
2424     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
2425       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
2427   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
2428     - Add more stub functions to fix compilation on Android with link-
2429       time optimization when --disable-module-dirauth is used.
2430       Previously, these compilation settings would make the compiler
2431       look for functions that didn't exist. Fixes bug 31552; bugfix
2432       on 0.4.1.1-alpha.
2433     - Suppress spurious float-conversion warnings from GCC when calling
2434       floating-point classifier functions on FreeBSD. Fixes part of bug
2435       31687; bugfix on 0.3.1.5-alpha.
2437   o Minor bugfixes (controller protocol):
2438     - Fix the MAPADDRESS controller command to accept one or more
2439       arguments. Previously, it required two or more arguments, and ignored
2440       the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
2442   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
2443     - When extracting an IPv6 address from a PF-based proxy, verify that
2444       we are actually configured to receive an IPv6 address, and log an
2445       internal error if not. Fixes part of bug 31687; bugfix
2446       on 0.2.3.4-alpha.
2448   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
2449     - When tor is missing descriptors for some primary entry guards,
2450       make the log message less alarming. It's normal for descriptors to
2451       expire, as long as tor fetches new ones soon after. Fixes bug
2452       31657; bugfix on 0.3.3.1-alpha.
2454   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
2455     - Change log level of message "Hash of session info was not as
2456       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
2457       on 0.1.1.10-alpha.
2459   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
2460     - Correctly exclude a redundant rust build job in Travis. Fixes bug
2461       31463; bugfix on 0.3.5.4-alpha.
2463   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
2464     - Always retry v2 single onion service intro and rend circuits with
2465       a 3-hop path. Previously, v2 single onion services used a 3-hop
2466       path when rendezvous circuits were retried after a remote or
2467       delayed failure, but a 1-hop path for immediate retries. Fixes bug
2468       23818; bugfix on 0.2.9.3-alpha.
2470   o Minor bugfixes (v3 single onion services, backport from 0.4.2.1-alpha):
2471     - Always retry v3 single onion service intro and rend circuits with
2472       a 3-hop path. Previously, v3 single onion services used a 3-hop
2473       path when rend circuits were retried after a remote or delayed
2474       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
2475       bugfix on 0.3.2.1-alpha.
2476     - Make v3 single onion services fall back to a 3-hop intro, when all
2477       intro points are unreachable via a 1-hop path. Previously, v3
2478       single onion services failed when all intro nodes were unreachable
2479       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
2481   o Documentation (backport from 0.4.2.1-alpha):
2482     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
2483       notice.html so that operators no longer have to host it
2484       themselves. Closes ticket 31089.
2487 Changes in version 0.4.2.1-alpha - 2019-09-17
2488   This is the first alpha release in the 0.4.2.x series. It adds new
2489   defenses for denial-of-service attacks against onion services. It also
2490   includes numerous kinds of bugfixes and refactoring to help improve
2491   Tor's stability and ease of development.
2493   o Major features (onion service v3, denial of service):
2494     - Add onion service introduction denial of service defenses. Intro
2495       points can now rate-limit client introduction requests, using
2496       parameters that can be sent by the service within the
2497       ESTABLISH_INTRO cell. If the cell extension for this is not used,
2498       the intro point will honor the consensus parameters. Closes
2499       ticket 30924.
2501   o Major bugfixes (circuit build, guard):
2502     - When considering upgrading circuits from "waiting for guard" to
2503       "open", always ignore circuits that are marked for close.
2504       Previously we could end up in the situation where a subsystem is
2505       notified of a circuit opening, but the circuit is still marked for
2506       close, leading to undesirable behavior. Fixes bug 30871; bugfix
2507       on 0.3.0.1-alpha.
2509   o Major bugfixes (crash, Linux, Android):
2510     - Tolerate systems (including some Android installations) where
2511       madvise and MADV_DONTDUMP are available at build-time, but not at
2512       run time. Previously, these systems would notice a failed syscall
2513       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
2514     - Tolerate systems (including some Linux installations) where
2515       madvise and/or MADV_DONTFORK are available at build-time, but not
2516       at run time. Previously, these systems would notice a failed
2517       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
2519   o Minor features (best practices tracker):
2520     - Our best-practices tracker now integrates with our include-checker
2521       tool to keep track of how many layering violations we have not yet
2522       fixed. We hope to reduce this number over time to improve Tor's
2523       modularity. Closes ticket 31176.
2524     - Add a TOR_PRACTRACKER_OPTIONS variable for passing arguments to
2525       practracker from the environment. We may want this for continuous
2526       integration. Closes ticket 31309.
2527     - Give a warning rather than an error when a practracker exception
2528       is violated by a small amount, add a --list-overbroad option to
2529       practracker that lists exceptions that are stricter than they need
2530       to be, and provide an environment variable for disabling
2531       practracker. Closes ticket 30752.
2532     - Our best-practices tracker now looks at headers as well as C
2533       files. Closes ticket 31175.
2535   o Minor features (build system):
2536     - Add --disable-manpage and --disable-html-manual options to
2537       configure script. This will enable shortening build times by not
2538       building documentation. Resolves issue 19381.
2540   o Minor features (compilation):
2541     - Log a more useful error message when we are compiling and one of
2542       the compile-time hardening options we have selected can be linked
2543       but not executed. Closes ticket 27530.
2545   o Minor features (configuration):
2546     - The configuration code has been extended to allow splitting
2547       configuration data across multiple objects. Previously, all
2548       configuration data needed to be kept in a single object, which
2549       tended to become bloated. Closes ticket 31240.
2551   o Minor features (continuous integration):
2552     - When running CI builds on Travis, put some random data in
2553       ~/.torrc, to make sure no tests are reading the Tor configuration
2554       file from its default location. Resolves issue 30102.
2556   o Minor features (debugging):
2557     - Log a nonfatal assertion failure if we encounter a configuration
2558       line whose command is "CLEAR" but which has a nonempty value. This
2559       should be impossible, according to the rules of our configuration
2560       line parsing. Closes ticket 31529.
2562   o Minor features (git hooks):
2563     - Our pre-commit git hook now checks for a special file before
2564       running practracker, so that practracker only runs on branches
2565       that are based on master. Since the pre-push hook calls the pre-
2566       commit hook, practracker will also only run before pushes of
2567       branches based on master. Closes ticket 30979.
2569   o Minor features (git scripts):
2570     - Add a "--" command-line argument, to separate git-push-all.sh
2571       script arguments from arguments that are passed through to git
2572       push. Closes ticket 31314.
2573     - Add a -r <remote-name> argument to git-push-all.sh, so the script
2574       can push test branches to a personal remote. Closes ticket 31314.
2575     - Add a -t <test-branch-prefix> argument to git-merge-forward.sh and
2576       git-push-all.sh, which makes these scripts create, merge forward,
2577       and push test branches. Closes ticket 31314.
2578     - Add a -u argument to git-merge-forward.sh, so that the script can
2579       re-use existing test branches after a merge failure and fix.
2580       Closes ticket 31314.
2581     - Add a TOR_GIT_PUSH env var, which sets the default git push
2582       command and arguments for git-push-all.sh. Closes ticket 31314.
2583     - Add a TOR_PUSH_DELAY variable to git-push-all.sh, which makes the
2584       script push master and maint branches with a delay between each
2585       branch. These delays trigger the CI jobs in a set order, which
2586       should show the most likely failures first. Also make pushes
2587       atomic by default, and make the script pass any command-line
2588       arguments to git push. Closes ticket 29879.
2589     - Call the shellcheck script from the pre-commit hook. Closes
2590       ticket 30967.
2591     - Skip pushing test branches that are the same as a remote
2592       maint/release/master branch in git-push-all.sh by default. Add a
2593       -s argument, so git-push-all.sh can push all test branches. Closes
2594       ticket 31314.
2596   o Minor features (IPv6, logging):
2597     - Log IPv6 addresses as well as IPv4 addresses when describing
2598       routerinfos, routerstatuses, and nodes. Closes ticket 21003.
2600   o Minor features (onion service v3):
2601     - Do not allow single hop clients to fetch or post an HS descriptor
2602       from an HSDir. Closes ticket 24964.
2604   o Minor features (onion service):
2605     - Disallow single-hop clients at the introduction point. We've
2606       removed Tor2web support a while back and single-hop rendezvous
2607       attempts are blocked at the relays. This change should remove load
2608       off the network from spammy clients. Close ticket 24963.
2610   o Minor features (stem tests):
2611     - Change "make test-stem" so it only runs the stem tests that use
2612       tor. This change makes test-stem faster and more reliable. Closes
2613       ticket 31554.
2615   o Minor features (testing):
2616     - Add a script to invoke "tor --dump-config" and "tor
2617       --verify-config" with various configuration options, and see
2618       whether tor's resulting configuration or error messages are what
2619       we expect. Use it for integration testing of our +Option and
2620       /Option flags. Closes ticket 31637.
2621     - Improve test coverage for our existing configuration parsing and
2622       management API. Closes ticket 30893.
2623     - Add integration tests to make sure that practracker gives the
2624       outputs we expect. Closes ticket 31477.
2625     - The practracker self-tests are now run as part of the Tor test
2626       suite. Closes ticket 31304.
2628   o Minor features (token bucket):
2629     - Implement a generic token bucket that uses a single counter, for
2630       use in anti-DoS onion service work. Closes ticket 30687.
2632   o Minor bugfixes (best practices tracker):
2633     - Fix a few issues in the best-practices script, including tests,
2634       tab tolerance, error reporting, and directory-exclusion logic.
2635       Fixes bug 29746; bugfix on 0.4.1.1-alpha.
2636     - When running check-best-practices, only consider files in the src
2637       subdirectory. Previously we had recursively considered all
2638       subdirectories, which made us get confused by the temporary
2639       directories made by "make distcheck". Fixes bug 31578; bugfix
2640       on 0.4.1.1-alpha.
2642   o Minor bugfixes (build system):
2643     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
2644       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
2646   o Minor bugfixes (chutney, makefiles, documentation):
2647     - "make test-network-all" now shows the warnings from each test-
2648       network.sh run on the console, so developers see new warnings
2649       early. We've also improved the documentation for this feature, and
2650       renamed a Makefile variable so the code is self-documenting. Fixes
2651       bug 30455; bugfix on 0.3.0.4-rc.
2653   o Minor bugfixes (compilation):
2654     - Add more stub functions to fix compilation on Android with link-
2655       time optimization when --disable-module-dirauth is used.
2656       Previously, these compilation settings would make the compiler
2657       look for functions that didn't exist. Fixes bug 31552; bugfix
2658       on 0.4.1.1-alpha.
2659     - Suppress spurious float-conversion warnings from GCC when calling
2660       floating-point classifier functions on FreeBSD. Fixes part of bug
2661       31687; bugfix on 0.3.1.5-alpha.
2663   o Minor bugfixes (configuration):
2664     - Invalid floating-point values in the configuration file are now
2665       treated as errors in the configuration. Previously, they were
2666       ignored and treated as zero. Fixes bug 31475; bugfix on 0.0.1.
2668   o Minor bugfixes (coverity):
2669     - Add an assertion when parsing a BEGIN cell so that coverity can be
2670       sure that we are not about to dereference a NULL address. Fixes
2671       bug 31026; bugfix on 0.2.4.7-alpha. This is CID 1447296.
2672     - In our siphash implementation, when building for coverity, use
2673       memcpy in place of a switch statement, so that coverity can tell
2674       we are not accessing out-of-bounds memory. Fixes bug 31025; bugfix
2675       on 0.2.8.1-alpha. This is tracked as CID 1447293 and 1447295.
2676     - Fix several coverity warnings from our unit tests. Fixes bug
2677       31030; bugfix on 0.2.4.1-alpha, 0.3.2.1-alpha, and 0.4.0.1-alpha.
2679   o Minor bugfixes (developer tooling):
2680     - Only log git script changes in the post-merge script when the
2681       merge was to the master branch. Fixes bug 31040; bugfix
2682       on 0.4.1.1-alpha.
2684   o Minor bugfixes (directory authorities):
2685     - Return a distinct status when formatting annotations fails. Fixes
2686       bug 30780; bugfix on 0.2.0.8-alpha.
2688   o Minor bugfixes (error handling):
2689     - On abort, try harder to flush the output buffers of log messages.
2690       On some platforms (macOS), log messages could be discarded when
2691       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
2692     - Report the tor version whenever an assertion fails. Previously, we
2693       only reported the Tor version on some crashes, and some non-fatal
2694       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
2695     - When tor aborts due to an error, close log file descriptors before
2696       aborting. Closing the logs makes some OSes flush log file buffers,
2697       rather than deleting buffered log lines. Fixes bug 31594; bugfix
2698       on 0.2.5.2-alpha.
2700   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6):
2701     - When extracting an IPv6 address from a PF-based proxy, verify that
2702       we are actually configured to receive an IPv6 address, and log an
2703       internal error if not. Fixes part of bug 31687; bugfix
2704       on 0.2.3.4-alpha.
2706   o Minor bugfixes (git hooks):
2707     - Remove a duplicate call to practracker from the pre-push hook. The
2708       pre-push hook already calls the pre-commit hook, which calls
2709       practracker. Fixes bug 31462; bugfix on 0.4.1.1-alpha.
2711   o Minor bugfixes (git scripts):
2712     - Stop hard-coding the bash path in the git scripts. Some OSes don't
2713       have bash in /usr/bin, others have an ancient bash at this path.
2714       Fixes bug 30840; bugfix on 0.4.0.1-alpha.
2715     - Stop hard-coding the tor master branch name and worktree path in
2716       the git scripts. Fixes bug 30841; bugfix on 0.4.0.1-alpha.
2717     - Allow git-push-all.sh to be run from any directory. Previously,
2718       the script only worked if run from an upstream worktree directory.
2719       Closes ticket 31678.
2721   o Minor bugfixes (guards):
2722     - When tor is missing descriptors for some primary entry guards,
2723       make the log message less alarming. It's normal for descriptors to
2724       expire, as long as tor fetches new ones soon after. Fixes bug
2725       31657; bugfix on 0.3.3.1-alpha.
2727   o Minor bugfixes (ipv6):
2728     - Check for private IPv6 addresses alongside their IPv4 equivalents
2729       when authorities check descriptors. Previously, we only checked
2730       for private IPv4 addresses. Fixes bug 31088; bugfix on
2731       0.2.3.21-rc. Patch by Neel Chauhan.
2732     - When parsing microdescriptors, we should check the IPv6 exit
2733       policy alongside IPv4. Previously, we checked both exit policies
2734       for only router info structures, while microdescriptors were
2735       IPv4-only. Fixes bug 27284; bugfix on 0.2.3.1-alpha. Patch by
2736       Neel Chauhan.
2738   o Minor bugfixes (logging):
2739     - Change log level of message "Hash of session info was not as
2740       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
2741       on 0.1.1.10-alpha.
2742     - Fix a code issue that would have broken our parsing of log domains
2743       as soon as we had 33 of them. Fortunately, we still only have 29.
2744       Fixes bug 31451; bugfix on 0.4.1.4-rc.
2746   o Minor bugfixes (memory management):
2747     - Stop leaking a small amount of memory in nt_service_install(), in
2748       unreachable code. Fixes bug 30799; bugfix on 0.2.0.7-alpha. Patch
2749       by Xiaoyin Liu.
2751   o Minor bugfixes (networking, IP addresses):
2752     - When parsing addresses via Tor's internal DNS lookup API, reject
2753       IPv4 addresses in square brackets, and accept IPv6 addresses in
2754       square brackets. This change completes the work started in 23082,
2755       making address parsing consistent between tor's internal DNS
2756       lookup and address parsing APIs. Fixes bug 30721; bugfix
2757       on 0.2.1.5-alpha.
2758     - When parsing addresses via Tor's internal address:port parsing and
2759       DNS lookup APIs, require IPv6 addresses with ports to have square
2760       brackets. But allow IPv6 addresses without ports, whether or not
2761       they have square brackets. Fixes bug 30721; bugfix
2762       on 0.2.1.5-alpha.
2764   o Minor bugfixes (onion service v3):
2765     - When purging the client descriptor cache, close any introduction
2766       point circuits associated with purged cache entries. This avoids
2767       picking those circuits later when connecting to the same
2768       introduction points. Fixes bug 30921; bugfix on 0.3.2.1-alpha.
2770   o Minor bugfixes (onion services):
2771     - In the hs_ident_circuit_t data structure, remove the unused field
2772       circuit_type and the respective argument in hs_ident_circuit_new().
2773       This field was set by clients (for introduction) and services (for
2774       introduction and rendezvous) but was never used afterwards. Fixes
2775       bug 31490; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
2777   o Minor bugfixes (operator tools):
2778     - Make tor-print-ed-signing-cert(1) print certificate expiration
2779       date in RFC 1123 and UNIX timestamp formats, to make output
2780       machine readable. Fixes bug 31012; bugfix on 0.3.5.1-alpha.
2782   o Minor bugfixes (rust):
2783     - Correctly exclude a redundant rust build job in Travis. Fixes bug
2784       31463; bugfix on 0.3.5.4-alpha.
2785     - Raise the minimum rustc version to 1.31.0, as checked by configure
2786       and CI. Fixes bug 31442; bugfix on 0.3.5.4-alpha.
2788   o Minor bugfixes (sendme, code structure):
2789     - Rename the trunnel SENDME file definition from sendme.trunnel to
2790       sendme_cell.trunnel to avoid having twice sendme.{c|h} in the
2791       repository. Fixes bug 30769; bugfix on 0.4.1.1-alpha.
2793   o Minor bugfixes (statistics):
2794     - Stop removing the ed25519 signature if the extra info file is too
2795       big. If the signature data was removed, but the keyword was kept,
2796       this could result in an unparseable extra info file. Fixes bug
2797       30958; bugfix on 0.2.7.2-alpha.
2799   o Minor bugfixes (subsystems):
2800     - Make the subsystem init order match the subsystem module
2801       dependencies. Call windows process security APIs as early as
2802       possible. Initialize logging before network and time, so that
2803       network and time can use logging. Fixes bug 31615; bugfix
2804       on 0.4.0.1-alpha.
2806   o Minor bugfixes (testing):
2807     - Teach the util/socketpair_ersatz test to work correctly when we
2808       have no network stack configured. Fixes bug 30804; bugfix
2809       on 0.2.5.1-alpha.
2811   o Minor bugfixes (v2 single onion services):
2812     - Always retry v2 single onion service intro and rend circuits with
2813       a 3-hop path. Previously, v2 single onion services used a 3-hop
2814       path when rendezvous circuits were retried after a remote or
2815       delayed failure, but a 1-hop path for immediate retries. Fixes bug
2816       23818; bugfix on 0.2.9.3-alpha.
2818   o Minor bugfixes (v3 single onion services):
2819     - Always retry v3 single onion service intro and rend circuits with
2820       a 3-hop path. Previously, v3 single onion services used a 3-hop
2821       path when rend circuits were retried after a remote or delayed
2822       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
2823       bugfix on 0.3.2.1-alpha.
2824     - Make v3 single onion services fall back to a 3-hop intro, when all
2825       intro points are unreachable via a 1-hop path. Previously, v3
2826       single onion services failed when all intro nodes were unreachable
2827       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
2829   o Documentation:
2830     - Improve documentation in circuit padding subsystem. Patch by
2831       Tobias Pulls. Closes ticket 31113.
2832     - Include an example usage for IPv6 ORPort in our sample torrc.
2833       Closes ticket 31320; patch from Ali Raheem.
2834     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
2835       notice.html so that operators no longer have to host it
2836       themselves. Closes ticket 31089.
2838   o Removed features:
2839     - No longer include recommended package digests in votes as detailed
2840       in proposal 301. The RecommendedPackages torrc option is
2841       deprecated and will no longer have any effect. "package" lines
2842       will still be considered when computing consensuses for consensus
2843       methods that include them. (This change has no effect on the list
2844       of recommended Tor versions, which is still in use.) Closes
2845       ticket 29738.
2846     - Remove torctl.in from contrib/dist directory. Resolves
2847       ticket 30550.
2849   o Testing:
2850     - Run shellcheck for all non-third-party shell scripts that are
2851       shipped with Tor. Closes ticket 29533.
2852     - When checking shell scripts, ignore any user-created directories.
2853       Closes ticket 30967.
2855   o Code simplification and refactoring (config handling):
2856     - Extract our variable manipulation code from confparse.c to a new
2857       lower-level typedvar.h module. Closes ticket 30864.
2858     - Lower another layer of object management from confparse.c to a
2859       more general tool. Now typed structure members are accessible via
2860       an abstract type. Implements ticket 30914.
2861     - Move our backend logic for working with configuration and state
2862       files into a lower-level library, since it no longer depends on
2863       any tor-specific functionality. Closes ticket 31626.
2864     - Numerous simplifications in configuration-handling logic: remove
2865       duplicated macro definitions, replace magical names with flags,
2866       and refactor "TestingTorNetwork" to use the same default-option
2867       logic as the rest of Tor. Closes ticket 30935.
2868     - Replace our ad-hoc set of flags for configuration variables and
2869       configuration variable types with fine-grained orthogonal flags
2870       corresponding to the actual behavior we want. Closes ticket 31625.
2872   o Code simplification and refactoring (misc):
2873     - Eliminate some uses of lower-level control reply abstractions,
2874       primarily in the onion_helper functions. Closes ticket 30889.
2875     - Rework bootstrap tracking to use the new publish-subscribe
2876       subsystem. Closes ticket 29976.
2877     - Rewrite format_node_description() and router_get_verbose_nickname()
2878       to use strlcpy() and strlcat(). The previous implementation used
2879       memcpy() and pointer arithmetic, which was error-prone. Closes
2880       ticket 31545. This is CID 1452819.
2881     - Split extrainfo_dump_to_string() into smaller functions. Closes
2882       ticket 30956.
2883     - Use the ptrdiff_t type consistently for expressing variable
2884       offsets and pointer differences. Previously we incorrectly (but
2885       harmlessly) used int and sometimes off_t for these cases. Closes
2886       ticket 31532.
2887     - Use the subsystems mechanism to manage the main event loop code.
2888       Closes ticket 30806.
2889     - Various simplifications and minor improvements to the circuit
2890       padding machines. Patch by Tobias Pulls. Closes tickets 31112
2891       and 31098.
2893   o Documentation (hard-coded directories):
2894     - Improve the documentation for the DirAuthority and FallbackDir
2895       torrc options. Closes ticket 30955.
2897   o Documentation (tor.1 man page):
2898     - Fix typo in tor.1 man page: the option is "--help", not "-help".
2899       Fixes bug 31008; bugfix on 0.2.2.9-alpha.
2902 Changes in version 0.4.1.5 - 2019-08-20
2903   This is the first stable release in the 0.4.1.x series. This series
2904   adds experimental circuit-level padding, authenticated SENDME cells to
2905   defend against certain attacks, and several performance improvements
2906   to save on CPU consumption. It fixes bugs in bootstrapping and v3
2907   onion services. It also includes numerous smaller features and
2908   bugfixes on earlier versions.
2910   Per our support policy, we will support the 0.4.1.x series for nine
2911   months, or until three months after the release of a stable 0.4.2.x:
2912   whichever is longer. If you need longer-term support, please stick
2913   with 0.3.5.x, which will we plan to support until Feb 2022.
2915   Below are the changes since 0.4.1.4-rc. For a complete list of changes
2916   since 0.4.0.5, see the ReleaseNotes file.
2918   o Directory authority changes:
2919     - The directory authority "dizum" has a new IP address. Closes
2920       ticket 31406.
2922   o Minor features (circuit padding logging):
2923     - Demote noisy client-side warn logs about circuit padding to
2924       protocol warnings. Add additional log messages and circuit ID
2925       fields to help with bug 30992 and any other future issues.
2927   o Minor bugfixes (circuit padding negotiation):
2928     - Bump the circuit padding protocol version to explicitly signify
2929       that the HS setup machine support is finalized in 0.4.1.x-stable.
2930       This also means that 0.4.1.x-alpha clients will not negotiate
2931       padding with 0.4.1.x-stable relays, and 0.4.1.x-stable clients
2932       will not negotiate padding with 0.4.1.x-alpha relays (or 0.4.0.x
2933       relays). Fixes bug 31356; bugfix on 0.4.1.1-alpha.
2935   o Minor bugfixes (circuit padding):
2936     - Ignore non-padding cells on padding circuits. This addresses
2937       various warning messages from subsystems that were not expecting
2938       padding circuits. Fixes bug 30942; bugfix on 0.4.1.1-alpha.
2940   o Minor bugfixes (clock skew detection):
2941     - Don't believe clock skew results from NETINFO cells that appear to
2942       arrive before we sent the VERSIONS cells they are responding to.
2943       Previously, we would accept them up to 3 minutes "in the past".
2944       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
2946   o Minor bugfixes (compatibility, standards compliance):
2947     - Fix a bug that would invoke undefined behavior on certain
2948       operating systems when trying to asprintf() a string exactly
2949       INT_MAX bytes long. We don't believe this is exploitable, but it's
2950       better to fix it anyway. Fixes bug 31001; bugfix on 0.2.2.11-alpha.
2951       Found and fixed by Tobias Stoeckmann.
2953   o Minor bugfixes (compilation warning):
2954     - Fix a compilation warning on Windows about casting a function
2955       pointer for GetTickCount64(). Fixes bug 31374; bugfix
2956       on 0.2.9.1-alpha.
2958   o Minor bugfixes (compilation):
2959     - Avoid using labs() on time_t, which can cause compilation warnings
2960       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
2962   o Minor bugfixes (distribution):
2963     - Do not ship any temporary files found in the
2964       scripts/maint/practracker directory. Fixes bug 31311; bugfix
2965       on 0.4.1.1-alpha.
2967   o Testing (continuous integration):
2968     - In Travis, make stem log a controller trace to the console, and
2969       tail stem's tor log after failure. Closes ticket 30591.
2970     - In Travis, only run the stem tests that use a tor binary. Closes
2971       ticket 30694.
2974 Changes in version 0.4.1.4-rc - 2019-07-25
2975   Tor 0.4.1.4-rc fixes a few bugs from previous versions of Tor, and
2976   updates to a new list of fallback directories. If no new bugs are
2977   found, the next release in the 0.4.1.x serious should be stable.
2979   o Major bugfixes (circuit build, guard):
2980     - When considering upgrading circuits from "waiting for guard" to
2981       "open", always ignore circuits that are marked for close. Otherwise,
2982       we can end up in the situation where a subsystem is notified that
2983       a closing circuit has just opened, leading to undesirable
2984       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
2986   o Minor features (continuous integration):
2987     - Our Travis configuration now uses Chutney to run some network
2988       integration tests automatically. Closes ticket 29280.
2990   o Minor features (fallback directory list):
2991     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
2992       in December 2018 (of which ~122 were still functional), with a
2993       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
2994       in June 2019. Closes ticket 28795.
2996   o Minor bugfixes (circuit padding):
2997     - On relays, properly check that a padding machine is absent before
2998       logging a warning about it being absent. Fixes bug 30649; bugfix
2999       on 0.4.0.1-alpha.
3000     - Add two NULL checks in unreachable places to silence Coverity (CID
3001       144729 and 1447291) and better future-proof ourselves. Fixes bug
3002       31024; bugfix on 0.4.1.1-alpha.
3004   o Minor bugfixes (crash on exit):
3005     - Avoid a set of possible code paths that could try to use freed
3006       memory in routerlist_free() while Tor was exiting. Fixes bug
3007       31003; bugfix on 0.1.2.2-alpha.
3009   o Minor bugfixes (logging):
3010     - Fix a conflict between the flag used for messaging-domain log
3011       messages, and the LD_NO_MOCK testing flag. Fixes bug 31080; bugfix
3012       on 0.4.1.1-alpha.
3014   o Minor bugfixes (memory leaks):
3015     - Fix a trivial memory leak when parsing an invalid value from a
3016       download schedule in the configuration. Fixes bug 30894; bugfix
3017       on 0.3.4.1-alpha.
3019   o Code simplification and refactoring:
3020     - Remove some dead code from circpad_machine_remove_token() to fix
3021       some Coverity warnings (CID 1447298). Fixes bug 31027; bugfix
3022       on 0.4.1.1-alpha.
3025 Changes in version 0.4.1.3-alpha - 2019-06-25
3026   Tor 0.4.1.3-alpha resolves numerous bugs left over from the previous
3027   alpha, most of them from earlier release series.
3029   o Major bugfixes (Onion service reachability):
3030     - Properly clean up the introduction point map when circuits change
3031       purpose from onion service circuits to pathbias, measurement, or
3032       other circuit types. This should fix some service-side instances
3033       of introduction point failure. Fixes bug 29034; bugfix
3034       on 0.3.2.1-alpha.
3036   o Minor features (geoip):
3037     - Update geoip and geoip6 to the June 10 2019 Maxmind GeoLite2
3038       Country database. Closes ticket 30852.
3040   o Minor features (logging):
3041     - Give a more useful assertion failure message if we think we have
3042       minherit() but we fail to make a region non-inheritable. Give a
3043       compile-time warning if our support for minherit() is incomplete.
3044       Closes ticket 30686.
3046   o Minor bugfixes (circuit isolation):
3047     - Fix a logic error that prevented the SessionGroup sub-option from
3048       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
3050   o Minor bugfixes (continuous integration):
3051     - Allow the test-stem job to fail in Travis, because it sometimes
3052       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
3053     - Skip test_rebind on macOS in Travis, because it is unreliable on
3054       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3055     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
3056       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3058   o Minor bugfixes (directory authorities):
3059     - Stop crashing after parsing an unknown descriptor purpose
3060       annotation. We think this bug can only be triggered by modifying a
3061       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
3063   o Minor bugfixes (pluggable transports):
3064     - When running as a bridge with pluggable transports, always publish
3065       pluggable transport information in our extrainfo descriptor, even
3066       if ExtraInfoStatistics is 0. This information is needed by
3067       BridgeDB. Fixes bug 30956; bugfix on 0.4.1.1-alpha.
3069   o Documentation:
3070     - Mention URLs for Travis/Appveyor/Jenkins in ReleasingTor.md.
3071       Closes ticket 30630.
3074 Changes in version 0.4.1.2-alpha - 2019-06-06
3075   Tor 0.4.1.2-alpha resolves numerous bugs--some of them from the
3076   previous alpha, and some much older. It also contains minor testing
3077   improvements, and an improvement to the security of our authenticated
3078   SENDME implementation.
3080   o Major bugfixes (bridges):
3081     - Consider our directory information to have changed when our list
3082       of bridges changes. Previously, Tor would not re-compute the
3083       status of its directory information when bridges changed, and
3084       therefore would not realize that it was no longer able to build
3085       circuits. Fixes part of bug 29875.
3086     - Do not count previously configured working bridges towards our
3087       total of working bridges. Previously, when Tor's list of bridges
3088       changed, it would think that the old bridges were still usable,
3089       and delay fetching router descriptors for the new ones. Fixes part
3090       of bug 29875; bugfix on 0.3.0.1-alpha.
3092   o Major bugfixes (flow control, SENDME):
3093     - Decrement the stream-level package window after packaging a cell.
3094       Previously, it was done inside a log_debug() call, meaning that if
3095       debug logs were not enabled, the decrement would never happen, and
3096       thus the window would be out of sync with the other end point.
3097       Fixes bug 30628; bugfix on 0.4.1.1-alpha.
3099   o Major bugfixes (onion service reachability):
3100     - Properly clean up the introduction point map and associated state
3101       when circuits change purpose from onion service circuits to
3102       pathbias, measurement, or other circuit types. This may fix some
3103       instances of introduction point failure. Fixes bug 29034; bugfix
3104       on 0.3.2.1-alpha.
3106   o Minor features (authenticated SENDME):
3107     - Ensure that there is enough randomness on every circuit to prevent
3108       an attacker from successfully predicting the hashes they will need
3109       to include in authenticated SENDME cells. At a random interval, if
3110       we have not sent randomness already, we now leave some extra space
3111       at the end of a cell that we can fill with random bytes. Closes
3112       ticket 26846.
3114   o Minor features (continuous integration):
3115     - When running coverage builds on Travis, we now set
3116       TOR_TEST_RNG_SEED, to avoid RNG-based coverage differences. Part
3117       of ticket 28878.
3119   o Minor features (maintenance):
3120     - Add a new "make autostyle" target that developers can use to apply
3121       all automatic Tor style and consistency conversions to the
3122       codebase. Closes ticket 30539.
3124   o Minor features (testing):
3125     - The circuitpadding tests now use a reproducible RNG implementation,
3126       so that if a test fails, we can learn why. Part of ticket 28878.
3127     - Tor's tests now support an environment variable, TOR_TEST_RNG_SEED,
3128       to set the RNG seed for tests that use a reproducible RNG. Part of
3129       ticket 28878.
3130     - When running tests in coverage mode, take additional care to make
3131       our coverage deterministic, so that we can accurately track
3132       changes in code coverage. Closes ticket 30519.
3134   o Minor bugfixes (configuration, proxies):
3135     - Fix a bug that prevented us from supporting SOCKS5 proxies that
3136       want authentication along with configured (but unused!)
3137       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
3139   o Minor bugfixes (controller):
3140     - POSTDESCRIPTOR requests should work again. Previously, they were
3141       broken if a "purpose=" flag was specified. Fixes bug 30580; bugfix
3142       on 0.4.1.1-alpha.
3143     - Repair the HSFETCH command so that it works again. Previously, it
3144       expected a body when it shouldn't have. Fixes bug 30646; bugfix
3145       on 0.4.1.1-alpha.
3147   o Minor bugfixes (developer tooling):
3148     - Fix pre-push hook to allow fixup and squash commits when pushing
3149       to non-upstream git remote. Fixes bug 30286; bugfix
3150       on 0.4.0.1-alpha.
3152   o Minor bugfixes (directory authority):
3153     - Move the "bandwidth-file-headers" line in directory authority
3154       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
3155       on 0.3.5.1-alpha.
3157   o Minor bugfixes (NetBSD):
3158     - Fix usage of minherit() on NetBSD and other platforms that define
3159       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
3160       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
3162   o Minor bugfixes (out-of-memory handler):
3163     - When purging the DNS cache because of an out-of-memory condition,
3164       try purging just the older entries at first. Previously, we would
3165       always purge the whole thing. Fixes bug 29617; bugfix
3166       on 0.3.5.1-alpha.
3168   o Minor bugfixes (portability):
3169     - Avoid crashing in our tor_vasprintf() implementation on systems
3170       that define neither vasprintf() nor _vscprintf(). (This bug has
3171       been here long enough that we question whether people are running
3172       Tor on such systems, but we're applying the fix out of caution.)
3173       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
3174       Tobias Stoeckmann.
3176   o Minor bugfixes (shutdown, libevent, memory safety):
3177     - Avoid use-after-free bugs when shutting down, by making sure that
3178       we shut down libevent only after shutting down all of its users.
3179       We believe these are harmless in practice, since they only occur
3180       on the shutdown path, and do not involve any attacker-controlled
3181       data. Fixes bug 30629; bugfix on 0.4.1.1-alpha.
3183   o Minor bugfixes (static analysis):
3184     - Fix several spurious Coverity warnings about the unit tests, to
3185       lower our chances of missing real warnings in the future. Fixes
3186       bug 30150; bugfix on 0.3.5.1-alpha and various other Tor versions.
3188   o Testing:
3189     - Specify torrc paths (with empty files) when launching tor in
3190       integration tests; refrain from reading user and system torrcs.
3191       Resolves issue 29702.
3194 Changes in version 0.4.1.1-alpha - 2019-05-22
3195   This is the first alpha in the 0.4.1.x series. It introduces
3196   lightweight circuit padding to make some onion-service circuits harder
3197   to distinguish, includes a new "authenticated SENDME" feature to make
3198   certain denial-of-service attacks more difficult, and improves
3199   performance in several areas.
3201   o Major features (circuit padding):
3202     - Onion service clients now add padding cells at the start of their
3203       INTRODUCE and RENDEZVOUS circuits, to make those circuits' traffic
3204       look more like general purpose Exit traffic. The overhead for this
3205       is 2 extra cells in each direction for RENDEZVOUS circuits, and 1
3206       extra upstream cell and 10 downstream cells for INTRODUCE
3207       circuits. This feature is only enabled when also supported by the
3208       circuit's middle node. (Clients may specify fixed middle nodes
3209       with the MiddleNodes option, and may force-disable this feature
3210       with the CircuitPadding option.) Closes ticket 28634.
3212   o Major features (code organization):
3213     - Tor now includes a generic publish-subscribe message-passing
3214       subsystem that we can use to organize intermodule dependencies. We
3215       hope to use this to reduce dependencies between modules that don't
3216       need to be related, and to generally simplify our codebase. Closes
3217       ticket 28226.
3219   o Major features (controller protocol):
3220     - Controller commands are now parsed using a generalized parsing
3221       subsystem. Previously, each controller command was responsible for
3222       parsing its own input, which led to strange inconsistencies.
3223       Closes ticket 30091.
3225   o Major features (flow control):
3226     - Implement authenticated SENDMEs as detailed in proposal 289. A
3227       SENDME cell now includes the digest of the traffic that it
3228       acknowledges, so that once an end point receives the SENDME, it
3229       can confirm the other side's knowledge of the previous cells that
3230       were sent, and prevent certain types of denial-of-service attacks.
3231       This behavior is controlled by two new consensus parameters: see
3232       the proposal for more details. Fixes ticket 26288.
3234   o Major features (performance):
3235     - Our node selection algorithm now excludes nodes in linear time.
3236       Previously, the algorithm was quadratic, which could slow down
3237       heavily used onion services. Closes ticket 30307.
3239   o Major features (performance, RNG):
3240     - Tor now constructs a fast secure pseudorandom number generator for
3241       each thread, to use when performance is critical. This PRNG is
3242       based on AES-CTR, using a buffering construction similar to
3243       libottery and the (newer) OpenBSD arc4random() code. It
3244       outperforms OpenSSL 1.1.1a's CSPRNG by roughly a factor of 100 for
3245       small outputs. Although we believe it to be cryptographically
3246       strong, we are only using it when necessary for performance.
3247       Implements tickets 29023 and 29536.
3249   o Major bugfixes (onion service v3):
3250     - Fix an unreachable bug in which an introduction point could try to
3251       send an INTRODUCE_ACK with a status code that Trunnel would refuse
3252       to encode, leading the relay to assert(). We've consolidated the
3253       ABI values into Trunnel now. Fixes bug 30454; bugfix
3254       on 0.3.0.1-alpha.
3255     - Clients can now handle unknown status codes from INTRODUCE_ACK
3256       cells. (The NACK behavior will stay the same.) This will allow us
3257       to extend status codes in the future without breaking the normal
3258       client behavior. Fixes another part of bug 30454; bugfix
3259       on 0.3.0.1-alpha.
3261   o Minor features (circuit padding):
3262     - We now use a fast PRNG when scheduling circuit padding. Part of
3263       ticket 28636.
3264     - Allow the padding machine designer to pick the edges of their
3265       histogram instead of trying to compute them automatically using an
3266       exponential formula. Resolves some undefined behavior in the case
3267       of small histograms and allows greater flexibility on machine
3268       design. Closes ticket 29298; bugfix on 0.4.0.1-alpha.
3269     - Allow circuit padding machines to hold a circuit open until they
3270       are done padding it. Closes ticket 28780.
3272   o Minor features (compile-time modules):
3273     - Add a "--list-modules" command to print a list of which compile-
3274       time modules are enabled. Closes ticket 30452.
3276   o Minor features (continuous integration):
3277     - Remove sudo configuration lines from .travis.yml as they are no
3278       longer needed with current Travis build environment. Resolves
3279       issue 30213.
3280     - In Travis, show stem's tor log after failure. Closes ticket 30234.
3282   o Minor features (controller):
3283     - Add onion service version 3 support to the HSFETCH command.
3284       Previously, only version 2 onion services were supported. Closes
3285       ticket 25417. Patch by Neel Chauhan.
3287   o Minor features (debugging):
3288     - Introduce tor_assertf() and tor_assertf_nonfatal() to enable
3289       logging of additional information during assert failure. Now we
3290       can use format strings to include information for trouble
3291       shooting. Resolves ticket 29662.
3293   o Minor features (defense in depth):
3294     - In smartlist_remove_keeporder(), set unused pointers to NULL, in
3295       case a bug causes them to be used later. Closes ticket 30176.
3296       Patch from Tobias Stoeckmann.
3297     - Tor now uses a cryptographically strong PRNG even for decisions
3298       that we do not believe are security-sensitive. Previously, for
3299       performance reasons, we had used a trivially predictable linear
3300       congruential generator algorithm for certain load-balancing and
3301       statistical sampling decisions. Now we use our fast RNG in those
3302       cases. Closes ticket 29542.
3304   o Minor features (developer tools):
3305     - Tor's "practracker" test script now checks for files and functions
3306       that seem too long and complicated. Existing overlong functions
3307       and files are accepted for now, but should eventually be
3308       refactored. Closes ticket 29221.
3309     - Add some scripts used for git maintenance to scripts/git. Closes
3310       ticket 29391.
3311     - Call practracker from pre-push and pre-commit git hooks to let
3312       developers know if they made any code style violations. Closes
3313       ticket 30051.
3314     - Add a script to check that each header has a well-formed and
3315       unique guard macro. Closes ticket 29756.
3317   o Minor features (geoip):
3318     - Update geoip and geoip6 to the May 13 2019 Maxmind GeoLite2
3319       Country database. Closes ticket 30522.
3321   o Minor features (HTTP tunnel):
3322     - Return an informative web page when the HTTPTunnelPort is used as
3323       an HTTP proxy. Closes ticket 27821, patch by "eighthave".
3325   o Minor features (IPv6, v3 onion services):
3326     - Make v3 onion services put IPv6 addresses in service descriptors.
3327       Before this change, service descriptors only contained IPv4
3328       addresses. Implements 26992.
3330   o Minor features (modularity):
3331     - The "--disable-module-dirauth" compile-time option now disables
3332       even more dirauth-only code. Closes ticket 30345.
3334   o Minor features (performance):
3335     - Use OpenSSL's implementations of SHA3 when available (in OpenSSL
3336       1.1.1 and later), since they tend to be faster than tiny-keccak.
3337       Closes ticket 28837.
3339   o Minor features (testing):
3340     - Tor's unit test code now contains helper functions to replace the
3341       PRNG with a deterministic or reproducible version for testing.
3342       Previously, various tests implemented this in various ways.
3343       Implements ticket 29732.
3344     - We now have a script, cov-test-determinism.sh, to identify places
3345       where our unit test coverage has become nondeterministic. Closes
3346       ticket 29436.
3347     - Check that representative subsets of values of `int` and `unsigned
3348       int` can be represented by `void *`. Resolves issue 29537.
3350   o Minor bugfixes (bridge authority):
3351     - Bridge authorities now set bridges as running or non-running when
3352       about to dump their status to a file. Previously, they set bridges
3353       as running in response to a GETINFO command, but those shouldn't
3354       modify data structures. Fixes bug 24490; bugfix on 0.2.0.13-alpha.
3355       Patch by Neel Chauhan.
3357   o Minor bugfixes (channel padding statistics):
3358     - Channel padding write totals and padding-enabled totals are now
3359       counted properly in relay extrainfo descriptors. Fixes bug 29231;
3360       bugfix on 0.3.1.1-alpha.
3362   o Minor bugfixes (circuit padding):
3363     - Add a "CircuitPadding" torrc option to disable circuit padding.
3364       Fixes bug 28693; bugfix on 0.4.0.1-alpha.
3365     - Allow circuit padding machines to specify that they do not
3366       contribute much overhead, and provide consensus flags and torrc
3367       options to force clients to only use these low overhead machines.
3368       Fixes bug 29203; bugfix on 0.4.0.1-alpha.
3369     - Provide a consensus parameter to fully disable circuit padding, to
3370       be used in emergency network overload situations. Fixes bug 30173;
3371       bugfix on 0.4.0.1-alpha.
3372     - The circuit padding subsystem will no longer schedule padding if
3373       dormant mode is enabled. Fixes bug 28636; bugfix on 0.4.0.1-alpha.
3374     - Inspect a circuit-level cell queue before sending padding, to
3375       avoid sending padding while too much data is already queued. Fixes
3376       bug 29204; bugfix on 0.4.0.1-alpha.
3377     - Avoid calling monotime_absolute_usec() in circuit padding machines
3378       that do not use token removal or circuit RTT estimation. Fixes bug
3379       29085; bugfix on 0.4.0.1-alpha.
3381   o Minor bugfixes (compilation, unusual configurations):
3382     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
3383       due to missing declarations of abort(), and prevent other such
3384       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
3386   o Minor bugfixes (controller protocol):
3387     - Teach the controller parser to distinguish an object preceded by
3388       an argument list from one without. Previously, it couldn't
3389       distinguish an argument list from the first line of a multiline
3390       object. Fixes bug 29984; bugfix on 0.2.3.8-alpha.
3392   o Minor bugfixes (directory authority, ipv6):
3393     - Directory authorities with IPv6 support now always mark themselves
3394       as reachable via IPv6. Fixes bug 24338; bugfix on 0.2.4.1-alpha.
3395       Patch by Neel Chauhan.
3397   o Minor bugfixes (documentation):
3398     - Improve the documentation for using MapAddress with ".exit". Fixes
3399       bug 30109; bugfix on 0.1.0.1-rc.
3400     - Improve the monotonic time module and function documentation to
3401       explain what "monotonic" actually means, and document some results
3402       that have surprised people. Fixes bug 29640; bugfix
3403       on 0.2.9.1-alpha.
3404     - Use proper formatting when providing an example on quoting options
3405       that contain whitespace. Fixes bug 29635; bugfix on 0.2.3.18-rc.
3407   o Minor bugfixes (logging):
3408     - Do not log a warning when running with an OpenSSL version other
3409       than the one Tor was compiled with, if the two versions should be
3410       compatible. Previously, we would warn whenever the version was
3411       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
3412     - Warn operators when the MyFamily option is set but ContactInfo is
3413       missing, as the latter should be set too. Fixes bug 25110; bugfix
3414       on 0.3.3.1-alpha.
3416   o Minor bugfixes (memory leak):
3417     - Avoid a minor memory leak that could occur on relays when failing
3418       to create a "keys" directory. Fixes bug 30148; bugfix
3419       on 0.3.3.1-alpha.
3421   o Minor bugfixes (onion services):
3422     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
3423       implemenation) when failing to load an onion service client
3424       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
3425     - When refusing to launch a controller's HSFETCH request because of
3426       rate-limiting, respond to the controller with a new response,
3427       "QUERY_RATE_LIMITED". Previously, we would log QUERY_NO_HSDIR for
3428       this case. Fixes bug 28269; bugfix on 0.3.1.1-alpha. Patch by
3429       Neel Chauhan.
3430     - When relaunching a circuit to a rendezvous service, mark the
3431       circuit as needing high-uptime routers as appropriate. Fixes bug
3432       17357; bugfix on 0.1.0.1-rc. Patch by Neel Chauhan.
3433     - Stop ignoring IPv6 link specifiers sent to v3 onion services.
3434       (IPv6 support for v3 onion services is still incomplete: see
3435       ticket 23493 for details.) Fixes bug 23588; bugfix on
3436       0.3.2.1-alpha. Patch by Neel Chauhan.
3438   o Minor bugfixes (onion services, performance):
3439     - When building circuits to onion services, call tor_addr_parse()
3440       less often. Previously, we called tor_addr_parse() in
3441       circuit_is_acceptable() even if its output wasn't used. This
3442       change should improve performance when building circuits. Fixes
3443       bug 22210; bugfix on 0.2.8.12. Patch by Neel Chauhan.
3445   o Minor bugfixes (performance):
3446     - When checking whether a node is a bridge, use a fast check to make
3447       sure that its identity is set. Previously, we used a constant-time
3448       check, which is not necessary in this case. Fixes bug 30308;
3449       bugfix on 0.3.5.1-alpha.
3451   o Minor bugfixes (pluggable transports):
3452     - Tor now sets TOR_PT_EXIT_ON_STDIN_CLOSE=1 for client transports as
3453       well as servers. Fixes bug 25614; bugfix on 0.2.7.1-alpha.
3455   o Minor bugfixes (probability distributions):
3456     - Refactor and improve parts of the probability distribution code
3457       that made Coverity complain. Fixes bug 29805; bugfix
3458       on 0.4.0.1-alpha.
3460   o Minor bugfixes (python):
3461     - Stop assuming that /usr/bin/python3 exists. For scripts that work
3462       with python2, use /usr/bin/python. Otherwise, use /usr/bin/env
3463       python3. Fixes bug 29913; bugfix on 0.2.5.3-alpha.
3465   o Minor bugfixes (relay):
3466     - When running as a relay, if IPv6Exit is set to 1 while ExitRelay
3467       is auto, act as if ExitRelay is 1. Previously, we would ignore
3468       IPv6Exit if ExitRelay was 0 or auto. Fixes bug 29613; bugfix on
3469       0.3.5.1-alpha. Patch by Neel Chauhan.
3471   o Minor bugfixes (stats):
3472     - When ExtraInfoStatistics is 0, stop including bandwidth usage
3473       statistics, GeoIPFile hashes, ServerTransportPlugin lines, and
3474       bridge statistics by country in extra-info documents. Fixes bug
3475       29018; bugfix on 0.2.4.1-alpha.
3477   o Minor bugfixes (testing):
3478     - Call setrlimit() to disable core dumps in test_bt_cl.c. Previously
3479       we used `ulimit -c` in test_bt.sh, which violates POSIX shell
3480       compatibility. Fixes bug 29061; bugfix on 0.3.5.1-alpha.
3481     - Fix some incorrect code in the v3 onion service unit tests. Fixes
3482       bug 29243; bugfix on 0.3.2.1-alpha.
3483     - In the "routerkeys/*" tests, check the return values of mkdir()
3484       for possible failures. Fixes bug 29939; bugfix on 0.2.7.2-alpha.
3485       Found by Coverity as CID 1444254.
3486     - Split test_utils_general() into several smaller test functions.
3487       This makes it easier to perform resource deallocation on assert
3488       failure, and fixes Coverity warnings CID 1444117 and CID 1444118.
3489       Fixes bug 29823; bugfix on 0.2.9.1-alpha.
3491   o Minor bugfixes (tor-resolve):
3492     - Fix a memory leak in tor-resolve that could happen if Tor gave it
3493       a malformed SOCKS response. (Memory leaks in tor-resolve don't
3494       actually matter, but it's good to fix them anyway.) Fixes bug
3495       30151; bugfix on 0.4.0.1-alpha.
3497   o Code simplification and refactoring:
3498     - Abstract out the low-level formatting of replies on the control
3499       port. Implements ticket 30007.
3500     - Add several assertions in an attempt to fix some Coverity
3501       warnings. Closes ticket 30149.
3502     - Introduce a connection_dir_buf_add() helper function that checks
3503       for compress_state of dir_connection_t and automatically writes a
3504       string to directory connection with or without compression.
3505       Resolves issue 28816.
3506     - Make the base32_decode() API return the number of bytes written,
3507       for consistency with base64_decode(). Closes ticket 28913.
3508     - Move most relay-only periodic events out of mainloop.c into the
3509       relay subsystem. Closes ticket 30414.
3510     - Refactor and encapsulate parts of the codebase that manipulate
3511       crypt_path_t objects. Resolves issue 30236.
3512     - Refactor several places in our code that Coverity incorrectly
3513       believed might have memory leaks. Closes ticket 30147.
3514     - Remove redundant return values in crypto_format, and the
3515       associated return value checks elsewhere in the code. Make the
3516       implementations in crypto_format consistent, and remove redundant
3517       code. Resolves ticket 29660.
3518     - Rename tor_mem_is_zero() to fast_mem_is_zero(), to emphasize that
3519       it is not a constant-time function. Closes ticket 30309.
3520     - Replace hs_desc_link_specifier_t with link_specifier_t, and remove
3521       all hs_desc_link_specifier_t-specific code. Fixes bug 22781;
3522       bugfix on 0.3.2.1-alpha.
3523     - Simplify v3 onion service link specifier handling code. Fixes bug
3524       23576; bugfix on 0.3.2.1-alpha.
3525     - Split crypto_digest.c into NSS code, OpenSSL code, and shared
3526       code. Resolves ticket 29108.
3527     - Split control.c into several submodules, in preparation for
3528       distributing its current responsibilities throughout the codebase.
3529       Closes ticket 29894.
3530     - Start to move responsibility for knowing about periodic events to
3531       the appropriate subsystems, so that the mainloop doesn't need to
3532       know all the periodic events in the rest of the codebase.
3533       Implements tickets 30293 and 30294.
3535   o Documentation:
3536     - Document how to find git commits and tags for bug fixes in
3537       CodingStandards.md. Update some file documentation. Closes
3538       ticket 30261.
3540   o Removed features:
3541     - Remove the linux-tor-prio.sh script from contrib/operator-tools
3542       directory. Resolves issue 29434.
3543     - Remove the obsolete OpenSUSE initscript. Resolves issue 30076.
3544     - Remove the obsolete script at contrib/dist/tor.sh.in. Resolves
3545       issue 30075.
3547   o Code simplification and refactoring (shell scripts):
3548     - Clean up many of our shell scripts to fix shellcheck warnings.
3549       These include autogen.sh (ticket 26069), test_keygen.sh (ticket
3550       29062), test_switch_id.sh (ticket 29065), test_rebind.sh (ticket
3551       29063), src/test/fuzz/minimize.sh (ticket 30079), test_rust.sh
3552       (ticket 29064), torify (ticket 29070), asciidoc-helper.sh (29926),
3553       fuzz_multi.sh (30077), fuzz_static_testcases.sh (ticket 29059),
3554       nagios-check-tor-authority-cert (ticket 29071),
3555       src/test/fuzz/fixup_filenames.sh (ticket 30078), test-network.sh
3556       (ticket 29060), test_key_expiration.sh (ticket 30002),
3557       zero_length_keys.sh (ticket 29068), and test_workqueue_*.sh
3558       (ticket 29067).
3560   o Testing (chutney):
3561     - In "make test-network-all", test IPv6-only v3 single onion
3562       services, using the chutney network single-onion-v23-ipv6-md.
3563       Closes ticket 27251.
3566 Changes in version 0.4.0.5 - 2019-05-02
3567   This is the first stable release in the 0.4.0.x series. It contains
3568   improvements for power management and bootstrap reporting, as well as
3569   preliminary backend support for circuit padding to prevent some kinds
3570   of traffic analysis. It also continues our work in refactoring Tor for
3571   long-term maintainability.
3573   Per our support policy, we will support the 0.4.0.x series for nine
3574   months, or until three months after the release of a stable 0.4.1.x:
3575   whichever is longer. If you need longer-term support, please stick
3576   with 0.3.5.x, which will we plan to support until Feb 2022.
3578   Below are the changes since 0.4.0.4-rc. For a complete list of changes
3579   since 0.3.5.7, see the ReleaseNotes file.
3581   o Minor features (continuous integration):
3582     - In Travis, tell timelimit to use stem's backtrace signals, and
3583       launch python directly from timelimit, so python receives the
3584       signals from timelimit, rather than make. Closes ticket 30117.
3586   o Minor features (diagnostic):
3587     - Add more diagnostic log messages in an attempt to solve the issue
3588       of NUL bytes appearing in a microdescriptor cache. Related to
3589       ticket 28223.
3591   o Minor features (testing):
3592     - Use the approx_time() function when setting the "Expires" header
3593       in directory replies, to make them more testable. Needed for
3594       ticket 30001.
3596   o Minor bugfixes (rust):
3597     - Abort on panic in all build profiles, instead of potentially
3598       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
3600   o Minor bugfixes (shellcheck):
3601     - Look for scripts in their correct locations during "make
3602       shellcheck". Previously we had looked in the wrong place during
3603       out-of-tree builds. Fixes bug 30263; bugfix on 0.4.0.1-alpha.
3605   o Minor bugfixes (testing):
3606     - Check the time in the "Expires" header using approx_time(). Fixes
3607       bug 30001; bugfix on 0.4.0.4-rc.
3609   o Minor bugfixes (UI):
3610     - Lower log level of unlink() errors during bootstrap. Fixes bug
3611       29930; bugfix on 0.4.0.1-alpha.
3614 Changes in version 0.4.0.4-rc - 2019-04-11
3615   Tor 0.4.0.4-rc is the first release candidate in its series; it fixes
3616   several bugs from earlier versions, including some that had affected
3617   stability, and one that prevented relays from working with NSS.
3619   o Major bugfixes (NSS, relay):
3620     - When running with NSS, disable TLS 1.2 ciphersuites that use
3621       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
3622       these ciphersuites don't work -- which caused relays to fail to
3623       handshake with one another when these ciphersuites were enabled.
3624       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
3626   o Minor features (bandwidth authority):
3627     - Make bandwidth authorities ignore relays that are reported in the
3628       bandwidth file with the flag "vote=0". This change allows us to
3629       report unmeasured relays for diagnostic reasons without including
3630       their bandwidth in the bandwidth authorities' vote. Closes
3631       ticket 29806.
3632     - When a directory authority is using a bandwidth file to obtain the
3633       bandwidth values that will be included in the next vote, serve
3634       this bandwidth file at /tor/status-vote/next/bandwidth. Closes
3635       ticket 21377.
3637   o Minor features (circuit padding):
3638     - Stop warning about undefined behavior in the probability
3639       distribution tests. Float division by zero may technically be
3640       undefined behavior in C, but it's well defined in IEEE 754.
3641       Partial backport of 29298. Closes ticket 29527; bugfix
3642       on 0.4.0.1-alpha.
3644   o Minor features (continuous integration):
3645     - On Travis Rust builds, cleanup Rust registry and refrain from
3646       caching the "target/" directory to speed up builds. Resolves
3647       issue 29962.
3649   o Minor features (dormant mode):
3650     - Add a DormantCanceledByStartup option to tell Tor that it should
3651       treat a startup event as cancelling any previous dormant state.
3652       Integrators should use this option with caution: it should only be
3653       used if Tor is being started because of something that the user
3654       did, and not if Tor is being automatically started in the
3655       background. Closes ticket 29357.
3657   o Minor features (geoip):
3658     - Update geoip and geoip6 to the April 2 2019 Maxmind GeoLite2
3659       Country database. Closes ticket 29992.
3661   o Minor features (NSS, diagnostic):
3662     - Try to log an error from NSS (if there is any) and a more useful
3663       description of our situation if we are using NSS and a call to
3664       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
3666   o Minor bugfixes (security):
3667     - Fix a potential double free bug when reading huge bandwidth files.
3668       The issue is not exploitable in the current Tor network because
3669       the vulnerable code is only reached when directory authorities
3670       read bandwidth files, but bandwidth files come from a trusted
3671       source (usually the authorities themselves). Furthermore, the
3672       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
3673       which are not used by any of the current authorities. Fixes bug
3674       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
3675       Tobias Stoeckmann.
3676     - Verify in more places that we are not about to create a buffer
3677       with more than INT_MAX bytes, to avoid possible OOB access in the
3678       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
3679       fixed by Tobias Stoeckmann.
3681   o Minor bugfix (continuous integration):
3682     - Reset coverage state on disk after Travis CI has finished. This
3683       should prevent future coverage merge errors from causing the test
3684       suite for the "process" subsystem to fail. The process subsystem
3685       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
3686       on 0.2.9.15.
3687     - Terminate test-stem if it takes more than 9.5 minutes to run.
3688       (Travis terminates the job after 10 minutes of no output.)
3689       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
3691   o Minor bugfixes (bootstrap reporting):
3692     - During bootstrap reporting, correctly distinguish pluggable
3693       transports from plain proxies. Fixes bug 28925; bugfix
3694       on 0.4.0.1-alpha.
3696   o Minor bugfixes (C correctness):
3697     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
3698       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
3699       CID 1444119.
3701   o Minor bugfixes (circuitpadding testing):
3702     - Minor tweaks to avoid rare test failures related to timers and
3703       monotonic time. Fixes bug 29500; bugfix on 0.4.0.1-alpha.
3705   o Minor bugfixes (directory authorities):
3706     - Actually include the bandwidth-file-digest line in directory
3707       authority votes. Fixes bug 29959; bugfix on 0.4.0.2-alpha.
3709   o Minor bugfixes (logging):
3710     - On Windows, when errors cause us to reload a consensus from disk,
3711       tell the user that we are retrying at log level "notice".
3712       Previously we only logged this information at "info", which was
3713       confusing because the errors themselves were logged at "warning".
3714       Improves previous fix for 28614. Fixes bug 30004; bugfix
3715       on 0.4.0.2-alpha.
3717   o Minor bugfixes (pluggable transports):
3718     - Restore old behavior when it comes to discovering the path of a
3719       given Pluggable Transport executable file. A change in
3720       0.4.0.1-alpha had broken this behavior on paths containing a
3721       space. Fixes bug 29874; bugfix on 0.4.0.1-alpha.
3723   o Minor bugfixes (testing):
3724     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
3725       recent test-network.sh to use new chutney features in CI. Fixes
3726       bug 29703; bugfix on 0.2.9.1-alpha.
3727     - Fix a test failure on Windows caused by an unexpected "BUG"
3728       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
3729       on 0.2.9.3-alpha.
3731   o Minor bugfixes (TLS protocol):
3732     - When classifying a client's selection of TLS ciphers, if the
3733       client ciphers are not yet available, do not cache the result.
3734       Previously, we had cached the unavailability of the cipher list
3735       and never looked again, which in turn led us to assume that the
3736       client only supported the ancient V1 link protocol. This, in turn,
3737       was causing Stem integration tests to stall in some cases. Fixes
3738       bug 30021; bugfix on 0.2.4.8-alpha.
3740   o Code simplification and refactoring:
3741     - Introduce a connection_dir_buf_add() helper function that detects
3742       whether compression is in use, and adds a string accordingly.
3743       Resolves issue 28816.
3744     - Refactor handle_get_next_bandwidth() to use
3745       connection_dir_buf_add(). Implements ticket 29897.
3747   o Documentation:
3748     - Clarify that Tor performs stream isolation among *Port listeners
3749       by default. Resolves issue 29121.
3752 Changes in version 0.4.0.3-alpha - 2019-03-22
3753   Tor 0.4.0.3-alpha is the third in its series; it fixes several small
3754   bugs from earlier versions.
3756   o Minor features (address selection):
3757     - Treat the subnet 100.64.0.0/10 as public for some purposes;
3758       private for others. This subnet is the RFC 6598 (Carrier Grade
3759       NAT) IP range, and is deployed by many ISPs as an alternative to
3760       RFC 1918 that does not break existing internal networks. Tor now
3761       blocks SOCKS and control ports on these addresses and warns users
3762       if client ports or ExtORPorts are listening on a RFC 6598 address.
3763       Closes ticket 28525. Patch by Neel Chauhan.
3765   o Minor features (geoip):
3766     - Update geoip and geoip6 to the March 4 2019 Maxmind GeoLite2
3767       Country database. Closes ticket 29666.
3769   o Minor bugfixes (circuitpadding):
3770     - Inspect the circuit-level cell queue before sending padding, to
3771       avoid sending padding when too much data is queued. Fixes bug
3772       29204; bugfix on 0.4.0.1-alpha.
3774   o Minor bugfixes (logging):
3775     - Correct a misleading error message when IPv4Only or IPv6Only is
3776       used but the resolved address can not be interpreted as an address
3777       of the specified IP version. Fixes bug 13221; bugfix on
3778       0.2.3.9-alpha. Patch from Kris Katterjohn.
3779     - Log the correct port number for listening sockets when "auto" is
3780       used to let Tor pick the port number. Previously, port 0 was
3781       logged instead of the actual port number. Fixes bug 29144; bugfix
3782       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
3783     - Stop logging a BUG() warning when Tor is waiting for exit
3784       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
3786   o Minor bugfixes (memory management):
3787     - Refactor the shared random state's memory management so that it
3788       actually takes ownership of the shared random value pointers.
3789       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
3791   o Minor bugfixes (memory management, testing):
3792     - Stop leaking parts of the shared random state in the shared-random
3793       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
3795   o Minor bugfixes (pluggable transports):
3796     - Fix an assertion failure crash bug when a pluggable transport is
3797       terminated during the bootstrap phase. Fixes bug 29562; bugfix
3798       on 0.4.0.1-alpha.
3800   o Minor bugfixes (Rust, protover):
3801     - Add a missing "Padding" value to the Rust implementation of
3802       protover. Fixes bug 29631; bugfix on 0.4.0.1-alpha.
3804   o Minor bugfixes (single onion services):
3805     - Allow connections to single onion services to remain idle without
3806       being disconnected. Previously, relays acting as rendezvous points
3807       for single onion services were mistakenly closing idle rendezvous
3808       circuits after 60 seconds, thinking that they were unused
3809       directory-fetching circuits that had served their purpose. Fixes
3810       bug 29665; bugfix on 0.2.1.26.
3812   o Minor bugfixes (stats):
3813     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
3814       relay and bridge extra-info documents. Fixes bug 29017; bugfix
3815       on 0.3.1.1-alpha.
3817   o Minor bugfixes (testing):
3818     - Downgrade some LOG_ERR messages in the address/* tests to
3819       warnings. The LOG_ERR messages were occurring when we had no
3820       configured network. We were failing the unit tests, because we
3821       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
3822       29530; bugfix on 0.3.5.8.
3823     - Fix our gcov wrapper script to look for object files at the
3824       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
3825     - Decrease the false positive rate of stochastic probability
3826       distribution tests. Fixes bug 29693; bugfix on 0.4.0.1-alpha.
3828   o Minor bugfixes (Windows, CI):
3829     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
3830       Windows Server 2012 R2 job. The remaining 2 jobs still provide
3831       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
3832       fast_finish, so failed jobs terminate the build immediately. Fixes
3833       bug 29601; bugfix on 0.3.5.4-alpha.
3836 Changes in version 0.3.5.8 - 2019-02-21
3837   Tor 0.3.5.8 backports several fixes from later releases, including fixes
3838   for an annoying SOCKS-parsing bug that affected users in earlier 0.3.5.x
3839   releases.
3841   It also includes a fix for a medium-severity security bug affecting Tor
3842   0.3.2.1-alpha and later. All Tor instances running an affected release
3843   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
3845   o Major bugfixes (cell scheduler, KIST, security):
3846     - Make KIST consider the outbuf length when computing what it can
3847       put in the outbuf. Previously, KIST acted as though the outbuf
3848       were empty, which could lead to the outbuf becoming too full. It
3849       is possible that an attacker could exploit this bug to cause a Tor
3850       client or relay to run out of memory and crash. Fixes bug 29168;
3851       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
3852       TROVE-2019-001 and CVE-2019-8955.
3854   o Major bugfixes (networking, backport from 0.4.0.2-alpha):
3855     - Gracefully handle empty username/password fields in SOCKS5
3856       username/password auth message and allow SOCKS5 handshake to
3857       continue. Previously, we had rejected these handshakes, breaking
3858       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
3860   o Minor features (compilation, backport from 0.4.0.2-alpha):
3861     - Compile correctly when OpenSSL is built with engine support
3862       disabled, or with deprecated APIs disabled. Closes ticket 29026.
3863       Patches from "Mangix".
3865   o Minor features (geoip):
3866     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
3867       Country database. Closes ticket 29478.
3869   o Minor features (testing, backport from 0.4.0.2-alpha):
3870     - Treat all unexpected ERR and BUG messages as test failures. Closes
3871       ticket 28668.
3873   o Minor bugfixes (onion service v3, client, backport from 0.4.0.1-alpha):
3874     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
3875       connection waiting for a descriptor that we actually have in the
3876       cache. It turns out that this can actually happen, though it is
3877       rare. Now, tor will recover and retry the descriptor. Fixes bug
3878       28669; bugfix on 0.3.2.4-alpha.
3880   o Minor bugfixes (IPv6, backport from 0.4.0.1-alpha):
3881     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
3882       IPv6 socket was bound using an address family of AF_INET instead
3883       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
3884       Kris Katterjohn.
3886   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
3887     - Update Cargo.lock file to match the version made by the latest
3888       version of Rust, so that "make distcheck" will pass again. Fixes
3889       bug 29244; bugfix on 0.3.3.4-alpha.
3891   o Minor bugfixes (client, clock skew, backport from 0.4.0.1-alpha):
3892     - Select guards even if the consensus has expired, as long as the
3893       consensus is still reasonably live. Fixes bug 24661; bugfix
3894       on 0.3.0.1-alpha.
3896   o Minor bugfixes (compilation, backport from 0.4.0.1-alpha):
3897     - Compile correctly on OpenBSD; previously, we were missing some
3898       headers required in order to detect it properly. Fixes bug 28938;
3899       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
3901   o Minor bugfixes (documentation, backport from 0.4.0.2-alpha):
3902     - Describe the contents of the v3 onion service client authorization
3903       files correctly: They hold public keys, not private keys. Fixes
3904       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
3906   o Minor bugfixes (logging, backport from 0.4.0.1-alpha):
3907     - Rework rep_hist_log_link_protocol_counts() to iterate through all
3908       link protocol versions when logging incoming/outgoing connection
3909       counts. Tor no longer skips version 5, and we won't have to
3910       remember to update this function when new link protocol version is
3911       developed. Fixes bug 28920; bugfix on 0.2.6.10.
3913   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
3914     - Log more information at "warning" level when unable to read a
3915       private key; log more information at "info" level when unable to
3916       read a public key. We had warnings here before, but they were lost
3917       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
3919   o Minor bugfixes (misc, backport from 0.4.0.2-alpha):
3920     - The amount of total available physical memory is now determined
3921       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
3922       when it is defined and a 64-bit variant is not available. Fixes
3923       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
3925   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
3926     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
3927       than one private key for a hidden service. Fixes bug 29040; bugfix
3928       on 0.3.5.1-alpha.
3929     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
3930       "debug" level. Tor used to log it as a warning, which caused very
3931       long log lines to appear for some users. Fixes bug 29135; bugfix
3932       on 0.3.2.1-alpha.
3933     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
3934       as a warning. Instead, log it as a protocol warning, because there
3935       is nothing that relay operators can do to fix it. Fixes bug 29029;
3936       bugfix on 0.2.5.7-rc.
3938   o Minor bugfixes (tests, directory clients, backport from 0.4.0.1-alpha):
3939     - Mark outdated dirservers when Tor only has a reasonably live
3940       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
3942   o Minor bugfixes (tests, backport from 0.4.0.2-alpha):
3943     - Detect and suppress "bug" warnings from the util/time test on
3944       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
3945     - Do not log an error-level message if we fail to find an IPv6
3946       network interface from the unit tests. Fixes bug 29160; bugfix
3947       on 0.2.7.3-rc.
3949   o Minor bugfixes (usability, backport from 0.4.0.1-alpha):
3950     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
3951       Some users took this phrasing to mean that the mentioned guard was
3952       under their control or responsibility, which it is not. Fixes bug
3953       28895; bugfix on Tor 0.3.0.1-alpha.
3956 Changes in version 0.3.4.11 - 2019-02-21
3957   Tor 0.3.4.11 is the third stable release in its series.  It includes
3958   a fix for a medium-severity security bug affecting Tor 0.3.2.1-alpha and
3959   later. All Tor instances running an affected release should upgrade to
3960   0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
3962   o Major bugfixes (cell scheduler, KIST, security):
3963     - Make KIST consider the outbuf length when computing what it can
3964       put in the outbuf. Previously, KIST acted as though the outbuf
3965       were empty, which could lead to the outbuf becoming too full. It
3966       is possible that an attacker could exploit this bug to cause a Tor
3967       client or relay to run out of memory and crash. Fixes bug 29168;
3968       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
3969       TROVE-2019-001 and CVE-2019-8955.
3971   o Minor features (geoip):
3972     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
3973       Country database. Closes ticket 29478.
3975   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
3976     - Update Cargo.lock file to match the version made by the latest
3977       version of Rust, so that "make distcheck" will pass again. Fixes
3978       bug 29244; bugfix on 0.3.3.4-alpha.
3980   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
3981     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
3982       as a warning. Instead, log it as a protocol warning, because there
3983       is nothing that relay operators can do to fix it. Fixes bug 29029;
3984       bugfix on 0.2.5.7-rc.
3987 Changes in version 0.3.3.12 - 2019-02-21
3988   Tor 0.3.3.12 fixes a medium-severity security bug affecting Tor
3989   0.3.2.1-alpha and later. All Tor instances running an affected release
3990   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
3992   This release marks the end of support for the Tor 0.3.3.x series. We
3993   recommend that users switch to either the Tor 0.3.4 series (supported
3994   until at least 10 June 2019), or the Tor 0.3.5 series, which will
3995   receive long-term support until at least 1 Feb 2022.
3997   o Major bugfixes (cell scheduler, KIST, security):
3998     - Make KIST consider the outbuf length when computing what it can
3999       put in the outbuf. Previously, KIST acted as though the outbuf
4000       were empty, which could lead to the outbuf becoming too full. It
4001       is possible that an attacker could exploit this bug to cause a Tor
4002       client or relay to run out of memory and crash. Fixes bug 29168;
4003       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
4004       TROVE-2019-001 and CVE-2019-8955.
4006   o Minor features (geoip):
4007     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
4008       Country database. Closes ticket 29478.
4010   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
4011     - Update Cargo.lock file to match the version made by the latest
4012       version of Rust, so that "make distcheck" will pass again. Fixes
4013       bug 29244; bugfix on 0.3.3.4-alpha.
4015   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
4016     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
4017       as a warning. Instead, log it as a protocol warning, because there
4018       is nothing that relay operators can do to fix it. Fixes bug 29029;
4019       bugfix on 0.2.5.7-rc.
4022 Changes in version 0.4.0.2-alpha - 2019-02-21
4023   Tor 0.4.0.2-alpha is the second alpha in its series; it fixes several
4024   bugs from earlier versions, including several that had broken
4025   backward compatibility.
4027   It also includes a fix for a medium-severity security bug affecting Tor
4028   0.3.2.1-alpha and later. All Tor instances running an affected release
4029   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
4031   o Major bugfixes (cell scheduler, KIST, security):
4032     - Make KIST consider the outbuf length when computing what it can
4033       put in the outbuf. Previously, KIST acted as though the outbuf
4034       were empty, which could lead to the outbuf becoming too full. It
4035       is possible that an attacker could exploit this bug to cause a Tor
4036       client or relay to run out of memory and crash. Fixes bug 29168;
4037       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
4038       TROVE-2019-001 and CVE-2019-8955.
4040   o Major bugfixes (networking):
4041     - Gracefully handle empty username/password fields in SOCKS5
4042       username/password auth messsage and allow SOCKS5 handshake to
4043       continue. Previously, we had rejected these handshakes, breaking
4044       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
4046   o Major bugfixes (windows, startup):
4047     - When reading a consensus file from disk, detect whether it was
4048       written in text mode, and re-read it in text mode if so. Always
4049       write consensus files in binary mode so that we can map them into
4050       memory later. Previously, we had written in text mode, which
4051       confused us when we tried to map the file on windows. Fixes bug
4052       28614; bugfix on 0.4.0.1-alpha.
4054   o Minor features (compilation):
4055     - Compile correctly when OpenSSL is built with engine support
4056       disabled, or with deprecated APIs disabled. Closes ticket 29026.
4057       Patches from "Mangix".
4059   o Minor features (developer tooling):
4060     - Check that bugfix versions in changes files look like Tor versions
4061       from the versions spec. Warn when bugfixes claim to be on a future
4062       release. Closes ticket 27761.
4063     - Provide a git pre-commit hook that disallows committing if we have
4064       any failures in our code and changelog formatting checks. It is
4065       now available in scripts/maint/pre-commit.git-hook. Implements
4066       feature 28976.
4068   o Minor features (directory authority):
4069     - When a directory authority is using a bandwidth file to obtain
4070       bandwidth values, include the digest of that file in the vote.
4071       Closes ticket 26698.
4073   o Minor features (geoip):
4074     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
4075       Country database. Closes ticket 29478.
4077   o Minor features (testing):
4078     - Treat all unexpected ERR and BUG messages as test failures. Closes
4079       ticket 28668.
4081   o Minor bugfixes (build, compatibility, rust):
4082     - Update Cargo.lock file to match the version made by the latest
4083       version of Rust, so that "make distcheck" will pass again. Fixes
4084       bug 29244; bugfix on 0.3.3.4-alpha.
4086   o Minor bugfixes (compilation):
4087     - Fix compilation warnings in test_circuitpadding.c. Fixes bug
4088       29169; bugfix on 0.4.0.1-alpha.
4089     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
4090       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
4092   o Minor bugfixes (documentation):
4093     - Describe the contents of the v3 onion service client authorization
4094       files correctly: They hold public keys, not private keys. Fixes
4095       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
4097   o Minor bugfixes (linux seccomp sandbox):
4098     - Fix startup crash when experimental sandbox support is enabled.
4099       Fixes bug 29150; bugfix on 0.4.0.1-alpha. Patch by Peter Gerber.
4101   o Minor bugfixes (logging):
4102     - Avoid logging that we are relaxing a circuit timeout when that
4103       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
4104     - Log more information at "warning" level when unable to read a
4105       private key; log more information at "info" level when unable to
4106       read a public key. We had warnings here before, but they were lost
4107       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
4109   o Minor bugfixes (misc):
4110     - The amount of total available physical memory is now determined
4111       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
4112       when it is defined and a 64-bit variant is not available. Fixes
4113       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
4115   o Minor bugfixes (onion services):
4116     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
4117       than one private key for a hidden service. Fixes bug 29040; bugfix
4118       on 0.3.5.1-alpha.
4119     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
4120       "debug" level. Tor used to log it as a warning, which caused very
4121       long log lines to appear for some users. Fixes bug 29135; bugfix
4122       on 0.3.2.1-alpha.
4123     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
4124       as a warning. Instead, log it as a protocol warning, because there
4125       is nothing that relay operators can do to fix it. Fixes bug 29029;
4126       bugfix on 0.2.5.7-rc.
4128   o Minor bugfixes (scheduler):
4129     - When re-adding channels to the pending list, check the correct
4130       channel's sched_heap_idx. This issue has had no effect in mainline
4131       Tor, but could have led to bugs down the road in improved versions
4132       of our circuit scheduling code. Fixes bug 29508; bugfix
4133       on 0.3.2.10.
4135   o Minor bugfixes (tests):
4136     - Fix intermittent failures on an adaptive padding test. Fixes one
4137       case of bug 29122; bugfix on 0.4.0.1-alpha.
4138     - Disable an unstable circuit-padding test that was failing
4139       intermittently because of an ill-defined small histogram. Such
4140       histograms will be allowed again after 29298 is implemented. Fixes
4141       a second case of bug 29122; bugfix on 0.4.0.1-alpha.
4142     - Detect and suppress "bug" warnings from the util/time test on
4143       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
4144     - Do not log an error-level message if we fail to find an IPv6
4145       network interface from the unit tests. Fixes bug 29160; bugfix
4146       on 0.2.7.3-rc.
4148   o Documentation:
4149     - In the manpage entry describing MapAddress torrc setting, use
4150       example IP addresses from ranges specified for use in documentation
4151       by RFC 5737. Resolves issue 28623.
4153   o Removed features:
4154     - Remove the old check-tor script. Resolves issue 29072.
4157 Changes in version 0.4.0.1-alpha - 2019-01-18
4158   Tor 0.4.0.1-alpha is the first release in the new 0.4.0.x series. It
4159   introduces improved features for power and bandwidth conservation,
4160   more accurate reporting of bootstrap progress for user interfaces, and
4161   an experimental backend for an exciting new adaptive padding feature.
4162   There is also the usual assortment of bugfixes and minor features, all
4163   described below.
4165   o Major features (battery management, client, dormant mode):
4166     - When Tor is running as a client, and it is unused for a long time,
4167       it can now enter a "dormant" state. When Tor is dormant, it avoids
4168       network and CPU activity until it is reawoken either by a user
4169       request or by a controller command. For more information, see the
4170       configuration options starting with "Dormant". Implements tickets
4171       2149 and 28335.
4172     - The client's memory of whether it is "dormant", and how long it
4173       has spent idle, persists across invocations. Implements
4174       ticket 28624.
4175     - There is a DormantOnFirstStartup option that integrators can use
4176       if they expect that in many cases, Tor will be installed but
4177       not used.
4179   o Major features (bootstrap reporting):
4180     - When reporting bootstrap progress, report the first connection
4181       uniformly, regardless of whether it's a connection for building
4182       application circuits. This allows finer-grained reporting of early
4183       progress than previously possible, with the improvements of ticket
4184       27169. Closes tickets 27167 and 27103. Addresses ticket 27308.
4185     - When reporting bootstrap progress, treat connecting to a proxy or
4186       pluggable transport as separate from having successfully used that
4187       proxy or pluggable transport to connect to a relay. Closes tickets
4188       27100 and 28884.
4190   o Major features (circuit padding):
4191     - Implement preliminary support for the circuit padding portion of
4192       Proposal 254. The implementation supports Adaptive Padding (aka
4193       WTF-PAD) state machines for use between experimental clients and
4194       relays. Support is also provided for APE-style state machines that
4195       use probability distributions instead of histograms to specify
4196       inter-packet delay. At the moment, Tor does not provide any
4197       padding state machines that are used in normal operation: for now,
4198       this feature exists solely for experimentation. Closes
4199       ticket 28142.
4201   o Major features (refactoring):
4202     - Tor now uses an explicit list of its own subsystems when
4203       initializing and shutting down. Previously, these systems were
4204       managed implicitly in various places throughout the codebase.
4205       (There may still be some subsystems using the old system.) Closes
4206       ticket 28330.
4208   o Minor features (bootstrap reporting):
4209     - When reporting bootstrap progress, stop distinguishing between
4210       situations where only internal paths are available and situations
4211       where external paths are available. Previously, Tor would often
4212       erroneously report that it had only internal paths. Closes
4213       ticket 27402.
4215   o Minor features (continuous integration):
4216     - Log Python version during each Travis CI job. Resolves
4217       issue 28551.
4219   o Minor features (controller):
4220     - Add a DROPOWNERSHIP command to undo the effects of TAKEOWNERSHIP.
4221       Implements ticket 28843.
4223   o Minor features (developer tooling):
4224     - Provide a git hook script to prevent "fixup!" and "squash!"
4225       commits from ending up in the master branch, as scripts/main/pre-
4226       push.git-hook. Closes ticket 27993.
4228   o Minor features (directory authority):
4229     - Directory authorities support a new consensus algorithm, under
4230       which the family lines in microdescriptors are encoded in a
4231       canonical form. This change makes family lines more compressible
4232       in transit, and on the client. Closes ticket 28266; implements
4233       proposal 298.
4235   o Minor features (directory authority, relay):
4236     - Authorities now vote on a "StaleDesc" flag to indicate that a
4237       relay's descriptor is so old that the relay should upload again
4238       soon. Relays treat this flag as a signal to upload a new
4239       descriptor. This flag will eventually let us remove the
4240       'published' date from routerstatus entries, and make our consensus
4241       diffs much smaller. Closes ticket 26770; implements proposal 293.
4243   o Minor features (fallback directory mirrors):
4244     - Update the fallback whitelist based on operator opt-ins and opt-
4245       outs. Closes ticket 24805, patch by Phoul.
4247   o Minor features (FreeBSD):
4248     - On FreeBSD-based systems, warn relay operators if the
4249       "net.inet.ip.random_id" sysctl (IP ID randomization) is disabled.
4250       Closes ticket 28518.
4252   o Minor features (HTTP standards compliance):
4253     - Stop sending the header "Content-type: application/octet-stream"
4254       along with transparently compressed documents: this confused
4255       browsers. Closes ticket 28100.
4257   o Minor features (IPv6):
4258     - We add an option ClientAutoIPv6ORPort, to make clients randomly
4259       prefer a node's IPv4 or IPv6 ORPort. The random preference is set
4260       every time a node is loaded from a new consensus or bridge config.
4261       We expect that this option will enable clients to bootstrap more
4262       quickly without having to determine whether they support IPv4,
4263       IPv6, or both. Closes ticket 27490. Patch by Neel Chauhan.
4264     - When using addrs_in_same_network_family(), avoid choosing circuit
4265       paths that pass through the same IPv6 subnet more than once.
4266       Previously, we only checked IPv4 subnets. Closes ticket 24393.
4267       Patch by Neel Chauhan.
4269   o Minor features (log messages):
4270     - Improve log message in v3 onion services that could print out
4271       negative revision counters. Closes ticket 27707. Patch
4272       by "ffmancera".
4274   o Minor features (memory usage):
4275     - Save memory by storing microdescriptor family lists with a more
4276       compact representation. Closes ticket 27359.
4277     - Tor clients now use mmap() to read consensus files from disk, so
4278       that they no longer need keep the full text of a consensus in
4279       memory when parsing it or applying a diff. Closes ticket 27244.
4281   o Minor features (parsing):
4282     - Directory authorities now validate that router descriptors and
4283       ExtraInfo documents are in a valid subset of UTF-8, and reject
4284       them if they are not. Closes ticket 27367.
4286   o Minor features (performance):
4287     - Cache the results of summarize_protocol_flags(), so that we don't
4288       have to parse the same protocol-versions string over and over.
4289       This should save us a huge number of malloc calls on startup, and
4290       may reduce memory fragmentation with some allocators. Closes
4291       ticket 27225.
4292     - Remove a needless memset() call from get_token_arguments, thereby
4293       speeding up the tokenization of directory objects by about 20%.
4294       Closes ticket 28852.
4295     - Replace parse_short_policy() with a faster implementation, to
4296       improve microdescriptor parsing time. Closes ticket 28853.
4297     - Speed up directory parsing a little by avoiding use of the non-
4298       inlined strcmp_len() function. Closes ticket 28856.
4299     - Speed up microdescriptor parsing by about 30%, to help improve
4300       startup time. Closes ticket 28839.
4302   o Minor features (pluggable transports):
4303     - Add support for emitting STATUS updates to Tor's control port from
4304       a pluggable transport process. Closes ticket 28846.
4305     - Add support for logging to Tor's logging subsystem from a
4306       pluggable transport process. Closes ticket 28180.
4308   o Minor features (process management):
4309     - Add a new process API for handling child processes. This new API
4310       allows Tor to have bi-directional communication with child
4311       processes on both Unix and Windows. Closes ticket 28179.
4312     - Use the subsystem manager to initialize and shut down the process
4313       module. Closes ticket 28847.
4315   o Minor features (relay):
4316     - When listing relay families, list them in canonical form including
4317       the relay's own identity, and try to give a more useful set of
4318       warnings. Part of ticket 28266 and proposal 298.
4320   o Minor features (required protocols):
4321     - Before exiting because of a missing required protocol, Tor will
4322       now check the publication time of the consensus, and not exit
4323       unless the consensus is newer than the Tor program's own release
4324       date. Previously, Tor would not check the consensus publication
4325       time, and so might exit because of a missing protocol that might
4326       no longer be required in a current consensus. Implements proposal
4327       297; closes ticket 27735.
4329   o Minor features (testing):
4330     - Allow a HeartbeatPeriod of less than 30 minutes in testing Tor
4331       networks. Closes ticket 28840. Patch by Rob Jansen.
4333   o Minor bugfixes (client, clock skew):
4334     - Bootstrap successfully even when Tor's clock is behind the clocks
4335       on the authorities. Fixes bug 28591; bugfix on 0.2.0.9-alpha.
4336     - Select guards even if the consensus has expired, as long as the
4337       consensus is still reasonably live. Fixes bug 24661; bugfix
4338       on 0.3.0.1-alpha.
4340   o Minor bugfixes (compilation):
4341     - Compile correctly on OpenBSD; previously, we were missing some
4342       headers required in order to detect it properly. Fixes bug 28938;
4343       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
4345   o Minor bugfixes (directory clients):
4346     - Mark outdated dirservers when Tor only has a reasonably live
4347       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
4349   o Minor bugfixes (directory mirrors):
4350     - Even when a directory mirror's clock is behind the clocks on the
4351       authorities, we now allow the mirror to serve "future"
4352       consensuses. Fixes bug 28654; bugfix on 0.3.0.1-alpha.
4354   o Minor bugfixes (DNS):
4355     - Gracefully handle an empty or absent resolve.conf file by falling
4356       back to using "localhost" as a DNS server (and hoping it works).
4357       Previously, we would just stop running as an exit. Fixes bug
4358       21900; bugfix on 0.2.1.10-alpha.
4360   o Minor bugfixes (guards):
4361     - In count_acceptable_nodes(), the minimum number is now one bridge
4362       or guard node, and two non-guard nodes for a circuit. Previously,
4363       we had added up the sum of all nodes with a descriptor, but that
4364       could cause us to build failing circuits when we had either too
4365       many bridges or not enough guard nodes. Fixes bug 25885; bugfix on
4366       0.2.3.1-alpha. Patch by Neel Chauhan.
4368   o Minor bugfixes (IPv6):
4369     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
4370       IPv6 socket was bound using an address family of AF_INET instead
4371       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
4372       Kris Katterjohn.
4374   o Minor bugfixes (logging):
4375     - Rework rep_hist_log_link_protocol_counts() to iterate through all
4376       link protocol versions when logging incoming/outgoing connection
4377       counts. Tor no longer skips version 5, and we won't have to
4378       remember to update this function when new link protocol version is
4379       developed. Fixes bug 28920; bugfix on 0.2.6.10.
4381   o Minor bugfixes (networking):
4382     - Introduce additional checks into tor_addr_parse() to reject
4383       certain incorrect inputs that previously were not detected. Fixes
4384       bug 23082; bugfix on 0.2.0.10-alpha.
4386   o Minor bugfixes (onion service v3, client):
4387     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
4388       connection waiting for a descriptor that we actually have in the
4389       cache. It turns out that this can actually happen, though it is
4390       rare. Now, tor will recover and retry the descriptor. Fixes bug
4391       28669; bugfix on 0.3.2.4-alpha.
4393   o Minor bugfixes (periodic events):
4394     - Refrain from calling routerlist_remove_old_routers() from
4395       check_descriptor_callback(). Instead, create a new hourly periodic
4396       event. Fixes bug 27929; bugfix on 0.2.8.1-alpha.
4398   o Minor bugfixes (pluggable transports):
4399     - Make sure that data is continously read from standard output and
4400       standard error pipes of a pluggable transport child-process, to
4401       avoid deadlocking when a pipe's buffer is full. Fixes bug 26360;
4402       bugfix on 0.2.3.6-alpha.
4404   o Minor bugfixes (unit tests):
4405     - Instead of relying on hs_free_all() to clean up all onion service
4406       objects in test_build_descriptors(), we now deallocate them one by
4407       one. This lets Coverity know that we are not leaking memory there
4408       and fixes CID 1442277. Fixes bug 28989; bugfix on 0.3.5.1-alpha.
4410   o Minor bugfixes (usability):
4411     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
4412       Some users took this phrasing to mean that the mentioned guard was
4413       under their control or responsibility, which it is not. Fixes bug
4414       28895; bugfix on Tor 0.3.0.1-alpha.
4416   o Code simplification and refactoring:
4417     - Reimplement NETINFO cell parsing and generation to rely on
4418       trunnel-generated wire format handling code. Closes ticket 27325.
4419     - Remove unnecessary unsafe code from the Rust macro "cstr!". Closes
4420       ticket 28077.
4421     - Rework SOCKS wire format handling to rely on trunnel-generated
4422       parsing/generation code. Resolves ticket 27620.
4423     - Split out bootstrap progress reporting from control.c into a
4424       separate file. Part of ticket 27402.
4425     - The .may_include files that we use to describe our directory-by-
4426       directory dependency structure now describe a noncircular
4427       dependency graph over the directories that they cover. Our
4428       checkIncludes.py tool now enforces this noncircularity. Closes
4429       ticket 28362.
4431   o Documentation:
4432     - Mention that you cannot add a new onion service if Tor is already
4433       running with Sandbox enabled. Closes ticket 28560.
4434     - Improve ControlPort documentation. Mention that it accepts
4435       address:port pairs, and can be used multiple times. Closes
4436       ticket 28805.
4437     - Document the exact output of "tor --version". Closes ticket 28889.
4439   o Removed features:
4440     - Stop responding to the 'GETINFO status/version/num-concurring' and
4441       'GETINFO status/version/num-versioning' control port commands, as
4442       those were deprecated back in 0.2.0.30. Also stop listing them in
4443       output of 'GETINFO info/names'. Resolves ticket 28757.
4444     - The scripts used to generate and maintain the list of fallback
4445       directories have been extracted into a new "fallback-scripts"
4446       repository. Closes ticket 27914.
4448   o Testing:
4449     - Run shellcheck for scripts in the in scripts/ directory. Closes
4450       ticket 28058.
4451     - Add unit tests for tokenize_string() and get_next_token()
4452       functions. Resolves ticket 27625.
4454   o Code simplification and refactoring (onion service v3):
4455     - Consolidate the authorized client descriptor cookie computation
4456       code from client and service into one function. Closes
4457       ticket 27549.
4459   o Code simplification and refactoring (shell scripts):
4460     - Cleanup scan-build.sh to silence shellcheck warnings. Closes
4461       ticket 28007.
4462     - Fix issues that shellcheck found in chutney-git-bisect.sh.
4463       Resolves ticket 28006.
4464     - Fix issues that shellcheck found in updateRustDependencies.sh.
4465       Resolves ticket 28012.
4466     - Fix shellcheck warnings in cov-diff script. Resolves issue 28009.
4467     - Fix shellcheck warnings in run_calltool.sh. Resolves ticket 28011.
4468     - Fix shellcheck warnings in run_trunnel.sh. Resolves issue 28010.
4469     - Fix shellcheck warnings in scripts/test/coverage. Resolves
4470       issue 28008.
4473 Changes in version 0.3.3.11 - 2019-01-07
4474   Tor 0.3.3.11 backports numerous fixes from later versions of Tor.
4475   numerous fixes, including an important fix for anyone using OpenSSL
4476   1.1.1. Anyone running an earlier version of Tor 0.3.3 should upgrade
4477   to this version, or to a later series.
4479   As a reminder, support the Tor 0.3.3 series will end on 22 Feb 2019.
4480   We anticipate that this will be the last release of Tor 0.3.3, unless
4481   some major bug is before then. Some time between now and then, users
4482   should switch to either the Tor 0.3.4 series (supported until at least
4483   10 June 2019), or the Tor 0.3.5 series, which will receive long-term
4484   support until at least 1 Feb 2022.
4486   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
4487     - Fix our usage of named groups when running as a TLS 1.3 client in
4488       OpenSSL 1.1.1. Previously, we only initialized EC groups when
4489       running as a relay, which caused clients to fail to negotiate TLS
4490       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
4491       support was added).
4493   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
4494     - Fix a use-after-free error that could be caused by passing Tor an
4495       impossible set of options that would fail during options_act().
4496       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
4498   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
4499     - Only run one online rust build in Travis, to reduce network
4500       errors. Skip offline rust builds on Travis for Linux gcc, because
4501       they're redundant. Implements ticket 27252.
4502     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
4503       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
4504       Linux with default settings, because all the non-default builds
4505       use gcc on Linux. Implements ticket 27252.
4507   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
4508     - Use the Travis Homebrew addon to install packages on macOS during
4509       Travis CI. The package list is the same, but the Homebrew addon
4510       does not do a `brew update` by default. Implements ticket 27738.
4512   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
4513     - Replace the 150 fallbacks originally introduced in Tor
4514       0.3.3.1-alpha in January 2018 (of which ~115 were still
4515       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
4516       removed) generated in December 2018. Closes ticket 24803.
4518   o Minor features (geoip):
4519     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
4520       Country database. Closes ticket 29012.
4522   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
4523     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
4524       key export function from handling long labels. When this bug is
4525       detected, Tor will disable TLS 1.3. We recommend upgrading to a
4526       version of OpenSSL without this bug when it becomes available.
4527       Closes ticket 28973.
4529   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
4530     - Update relay descriptor on bandwidth changes only when the uptime
4531       is smaller than 24h, in order to reduce the efficiency of guard
4532       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
4534   o Minor bugfixes (C correctness, backport from 0.3.5.4-alpha):
4535     - Avoid undefined behavior in an end-of-string check when parsing
4536       the BEGIN line in a directory object. Fixes bug 28202; bugfix
4537       on 0.2.0.3-alpha.
4539   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
4540     - Rewrite our assertion macros so that they no longer suppress the
4541       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
4543   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
4544     - Initialize a variable unconditionally in aes_new_cipher(), since
4545       some compilers cannot tell that we always initialize it before
4546       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
4548   o Minor bugfixes (directory authority, backport from 0.3.5.4-alpha):
4549     - Log additional info when we get a relay that shares an ed25519 ID
4550       with a different relay, instead making a BUG() warning. Fixes bug
4551       27800; bugfix on 0.3.2.1-alpha.
4553   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
4554     - When a user requests a group-readable DataDirectory, give it to
4555       them. Previously, when the DataDirectory and the CacheDirectory
4556       were the same, the default setting (0) for
4557       CacheDirectoryGroupReadable would override the setting for
4558       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
4559       on 0.3.3.1-alpha.
4561   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
4562     - When the onion service directory can't be created or has the wrong
4563       permissions, do not log a stack trace. Fixes bug 27335; bugfix
4564       on 0.3.2.1-alpha.
4566   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
4567     - Close all SOCKS request (for the same .onion) if the newly fetched
4568       descriptor is unusable. Before that, we would close only the first
4569       one leaving the other hanging and let to time out by themselves.
4570       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
4572   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
4573     - Don't warn so loudly when Tor is unable to decode an onion
4574       descriptor. This can now happen as a normal use case if a client
4575       gets a descriptor with client authorization but the client is not
4576       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
4578   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
4579     - When deleting an ephemeral onion service (DEL_ONION), do not close
4580       any rendezvous circuits in order to let the existing client
4581       connections finish by themselves or closed by the application. The
4582       HS v2 is doing that already so now we have the same behavior for
4583       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
4585   o Minor bugfixes (HTTP tunnel):
4586     - Fix a bug warning when closing an HTTP tunnel connection due to
4587       an HTTP request we couldn't handle. Fixes bug 26470; bugfix on
4588       0.3.2.1-alpha.
4590   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
4591     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
4592       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
4594   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
4595     - Ensure circuitmux queues are empty before scheduling or sending
4596       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
4598   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
4599     - Reject protocol names containing bytes other than alphanumeric
4600       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
4601       on 0.2.9.4-alpha.
4603   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
4604     - Compute protover votes correctly in the rust version of the
4605       protover code. Previously, the protover rewrite in 24031 allowed
4606       repeated votes from the same voter for the same protocol version
4607       to be counted multiple times in protover_compute_vote(). Fixes bug
4608       27649; bugfix on 0.3.3.5-rc.
4609     - Reject protover names that contain invalid characters. Fixes bug
4610       27687; bugfix on 0.3.3.1-alpha.
4612   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
4613     - protover_all_supported() would attempt to allocate up to 16GB on
4614       some inputs, leading to a potential memory DoS. Fixes bug 27206;
4615       bugfix on 0.3.3.5-rc.
4617   o Minor bugfixes (rust, backport from 0.3.5.4-alpha):
4618     - Fix a potential null dereference in protover_all_supported(). Add
4619       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
4620     - Return a string that can be safely freed by C code, not one
4621       created by the rust allocator, in protover_all_supported(). Fixes
4622       bug 27740; bugfix on 0.3.3.1-alpha.
4623     - Fix an API mismatch in the rust implementation of
4624       protover_compute_vote(). This bug could have caused crashes on any
4625       directory authorities running Tor with Rust (which we do not yet
4626       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
4628   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
4629     - If a unit test running in a subprocess exits abnormally or with a
4630       nonzero status code, treat the test as having failed, even if the
4631       test reported success. Without this fix, memory leaks don't cause
4632       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
4633       bugfix on 0.2.2.4-alpha.
4635   o Minor bugfixes (testing, backport from 0.3.5.4-alpha):
4636     - Treat backtrace test failures as expected on BSD-derived systems
4637       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
4638       (FreeBSD failures have been treated as expected since 18204 in
4639       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
4641   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
4642     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
4643       bugfix on 0.3.0.1-alpha.
4646 Changes in version 0.3.4.10 - 2019-01-07
4647   Tor 0.3.4.9 is the second stable release in its series; it backports
4648   numerous fixes, including an important fix for relays, and for anyone
4649   using OpenSSL 1.1.1. Anyone running an  earlier version of Tor 0.3.4
4650   should upgrade.
4652   As a reminder, the Tor 0.3.4 series will be supported until 10 June
4653   2019. Some time between now and then, users should switch to the Tor
4654   0.3.5 series, which will receive long-term support until at least 1
4655   Feb 2022.
4657   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
4658     - Fix our usage of named groups when running as a TLS 1.3 client in
4659       OpenSSL 1.1.1. Previously, we only initialized EC groups when
4660       running as a relay, which caused clients to fail to negotiate TLS
4661       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
4662       support was added).
4664   o Major bugfixes (relay, directory, backport from 0.3.5.7):
4665     - Always reactivate linked connections in the main loop so long as
4666       any linked connection has been active. Previously, connections
4667       serving directory information wouldn't get reactivated after the
4668       first chunk of data was sent (usually 32KB), which would prevent
4669       clients from bootstrapping. Fixes bug 28912; bugfix on
4670       0.3.4.1-alpha. Patch by "cypherpunks3".
4672   o Minor features (continuous integration, Windows, backport from 0.3.5.6-rc):
4673     - Always show the configure and test logs, and upload them as build
4674       artifacts, when building for Windows using Appveyor CI.
4675       Implements 28459.
4677   o Minor features (controller, backport from 0.3.5.1-alpha):
4678     - For purposes of CIRC_BW-based dropped cell detection, track half-
4679       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
4680       bias check cells to arrive without counting it as dropped until
4681       either the END arrives, or the windows are empty. Closes
4682       ticket 25573.
4684   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
4685     - Replace the 150 fallbacks originally introduced in Tor
4686       0.3.3.1-alpha in January 2018 (of which ~115 were still
4687       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
4688       removed) generated in December 2018. Closes ticket 24803.
4690   o Minor features (geoip):
4691     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
4692       Country database. Closes ticket 28395.
4694   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
4695     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
4696       key export function from handling long labels. When this bug is
4697       detected, Tor will disable TLS 1.3. We recommend upgrading to a
4698       version of OpenSSL without this bug when it becomes available.
4699       Closes ticket 28973.
4701   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
4702     - Initialize a variable unconditionally in aes_new_cipher(), since
4703       some compilers cannot tell that we always initialize it before
4704       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
4706   o Minor bugfixes (connection, relay, backport from 0.3.5.5-alpha):
4707     - Avoid a logging a BUG() stacktrace when closing connection held
4708       open because the write side is rate limited but not the read side.
4709       Now, the connection read side is simply shut down until Tor is
4710       able to flush the connection and close it. Fixes bug 27750; bugfix
4711       on 0.3.4.1-alpha.
4713   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.5-alpha):
4714     - Manually configure the zstd compiler options, when building using
4715       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
4716       not come with a pkg-config file. Fixes bug 28454; bugfix
4717       on 0.3.4.1-alpha.
4718     - Stop using an external OpenSSL install, and stop installing MSYS2
4719       packages, when building using mingw on Appveyor Windows CI. Fixes
4720       bug 28399; bugfix on 0.3.4.1-alpha.
4722   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.6-rc):
4723     - Explicitly specify the path to the OpenSSL library and do not
4724       download OpenSSL from Pacman, but instead use the library that is
4725       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
4727   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
4728     - When a user requests a group-readable DataDirectory, give it to
4729       them. Previously, when the DataDirectory and the CacheDirectory
4730       were the same, the default setting (0) for
4731       CacheDirectoryGroupReadable would override the setting for
4732       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
4733       on 0.3.3.1-alpha.
4735   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
4736     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
4737       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
4739   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
4740     - Don't warn so loudly when Tor is unable to decode an onion
4741       descriptor. This can now happen as a normal use case if a client
4742       gets a descriptor with client authorization but the client is not
4743       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
4745   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
4746     - When deleting an ephemeral onion service (DEL_ONION), do not close
4747       any rendezvous circuits in order to let the existing client
4748       connections finish by themselves or closed by the application. The
4749       HS v2 is doing that already so now we have the same behavior for
4750       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
4752   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
4753     - Update relay descriptor on bandwidth changes only when the uptime
4754       is smaller than 24h, in order to reduce the efficiency of guard
4755       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
4757   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
4758     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
4759       bugfix on 0.3.0.1-alpha.
4762 Changes in version 0.3.5.7 - 2019-01-07
4763   Tor 0.3.5.7 is the first stable release in its series; it includes
4764   compilation and portability fixes, and a fix for a severe problem
4765   affecting directory caches.
4767   The Tor 0.3.5 series includes several new features and performance
4768   improvements, including client authorization for v3 onion services,
4769   cleanups to bootstrap reporting, support for improved bandwidth-
4770   measurement tools, experimental support for NSS in place of OpenSSL,
4771   and much more. It also begins a full reorganization of Tor's code
4772   layout, for improved modularity and maintainability in the future.
4773   Finally, there is the usual set of performance improvements and
4774   bugfixes that we try to do in every release series.
4776   There are a couple of changes in the 0.3.5 that may affect
4777   compatibility. First, the default version for newly created onion
4778   services is now v3. Use the HiddenServiceVersion option if you want to
4779   override this. Second, some log messages related to bootstrapping have
4780   changed; if you use stem, you may need to update to the latest version
4781   so it will recognize them.
4783   We have designated 0.3.5 as a "long-term support" (LTS) series: we
4784   will continue to patch major bugs in typical configurations of 0.3.5
4785   until at least 1 Feb 2022. (We do not plan to provide long-term
4786   support for embedding, Rust support, NSS support, running a directory
4787   authority, or unsupported platforms. For these, you will need to stick
4788   with the latest stable release.)
4790   Below are the changes since 0.3.5.6-rc. For a complete list of changes
4791   since 0.3.4.9, see the ReleaseNotes file.
4793   o Major bugfixes (relay, directory):
4794     - Always reactivate linked connections in the main loop so long as
4795       any linked connection has been active. Previously, connections
4796       serving directory information wouldn't get reactivated after the
4797       first chunk of data was sent (usually 32KB), which would prevent
4798       clients from bootstrapping. Fixes bug 28912; bugfix on
4799       0.3.4.1-alpha. Patch by "cypherpunks3".
4801   o Minor features (compilation):
4802     - When possible, place our warning flags in a separate file, to
4803       avoid flooding verbose build logs. Closes ticket 28924.
4805   o Minor features (geoip):
4806     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
4807       Country database. Closes ticket 29012.
4809   o Minor features (OpenSSL bug workaround):
4810     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
4811       key export function from handling long labels. When this bug is
4812       detected, Tor will disable TLS 1.3. We recommend upgrading to a
4813       version of OpenSSL without this bug when it becomes available.
4814       Closes ticket 28973.
4816   o Minor features (performance):
4817     - Remove about 96% of the work from the function that we run at
4818       startup to test our curve25519_basepoint implementation. Since
4819       this function has yet to find an actual failure, we now only run
4820       it for 8 iterations instead of 200. Based on our profile
4821       information, this change should save around 8% of our startup time
4822       on typical desktops, and may have a similar effect on other
4823       platforms. Closes ticket 28838.
4824     - Stop re-validating our hardcoded Diffie-Hellman parameters on
4825       every startup. Doing this wasted time and cycles, especially on
4826       low-powered devices. Closes ticket 28851.
4828   o Minor bugfixes (compilation):
4829     - Fix compilation for Android by adding a missing header to
4830       freespace.c. Fixes bug 28974; bugfix on 0.3.5.1-alpha.
4832   o Minor bugfixes (correctness):
4833     - Fix an unreached code path where we checked the value of
4834       "hostname" inside send_resolved_hostname_cell(). Previously, we
4835       used it before checking it; now we check it first. Fixes bug
4836       28879; bugfix on 0.1.2.7-alpha.
4838   o Minor bugfixes (testing):
4839     - Make sure that test_rebind.py actually obeys its timeout, even
4840       when it receives a large number of log messages. Fixes bug 28883;
4841       bugfix on 0.3.5.4-alpha.
4842     - Stop running stem's unit tests as part of "make test-stem", but
4843       continue to run stem's unit and online tests during "make test-
4844       stem-full". Fixes bug 28568; bugfix on 0.2.6.3-alpha.
4846   o Minor bugfixes (windows services):
4847     - Make Tor start correctly as an NT service again: previously it was
4848       broken by refactoring. Fixes bug 28612; bugfix on 0.3.5.3-alpha.
4850   o Code simplification and refactoring:
4851     - When parsing a port configuration, make it more obvious to static
4852       analyzer tools that we always initialize the address. Closes
4853       ticket 28881.
4856 Changes in version 0.3.5.6-rc - 2018-12-18
4857   Tor 0.3.5.6-rc fixes numerous small bugs in earlier versions of Tor.
4858   It is the first release candidate in the 0.3.5.x series; if no further
4859   huge bugs are found, our next release may be the stable 0.3.5.x.
4861   o Minor features (continuous integration, Windows):
4862     - Always show the configure and test logs, and upload them as build
4863       artifacts, when building for Windows using Appveyor CI.
4864       Implements 28459.
4866   o Minor features (fallback directory list):
4867     - Replace the 150 fallbacks originally introduced in Tor
4868       0.3.3.1-alpha in January 2018 (of which ~115 were still
4869       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
4870       removed) generated in December 2018. Closes ticket 24803.
4872   o Minor features (geoip):
4873     - Update geoip and geoip6 to the December 5 2018 Maxmind GeoLite2
4874       Country database. Closes ticket 28744.
4876   o Minor bugfixes (compilation):
4877     - Add missing dependency on libgdi32.dll for tor-print-ed-signing-
4878       cert.exe on Windows. Fixes bug 28485; bugfix on 0.3.5.1-alpha.
4880   o Minor bugfixes (continuous integration, Windows):
4881     - Explicitly specify the path to the OpenSSL library and do not
4882       download OpenSSL from Pacman, but instead use the library that is
4883       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
4885   o Minor bugfixes (onion service v3):
4886     - When deleting an ephemeral onion service (DEL_ONION), do not close
4887       any rendezvous circuits in order to let the existing client
4888       connections finish by themselves or closed by the application. The
4889       HS v2 is doing that already so now we have the same behavior for
4890       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
4892   o Minor bugfixes (restart-in-process, boostrap):
4893     - Add missing resets of bootstrap tracking state when shutting down
4894       (regression caused by ticket 27169). Fixes bug 28524; bugfix
4895       on 0.3.5.1-alpha.
4897   o Minor bugfixes (testing):
4898     - Use a separate DataDirectory for the test_rebind script.
4899       Previously, this script would run using the default DataDirectory,
4900       and sometimes fail. Fixes bug 28562; bugfix on 0.3.5.1-alpha.
4901       Patch from Taylor R Campbell.
4902     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
4903       bugfix on 0.3.0.1-alpha.
4905   o Minor bugfixes (Windows):
4906     - Correctly identify Windows 8.1, Windows 10, and Windows Server
4907       2008 and later from their NT versions. Fixes bug 28096; bugfix on
4908       0.2.2.34; reported by Keifer Bly.
4909     - On recent Windows versions, the GetVersionEx() function may report
4910       an earlier Windows version than the running OS. To avoid user
4911       confusion, add "[or later]" to Tor's version string on affected
4912       versions of Windows. Fixes bug 28096; bugfix on 0.2.2.34; reported
4913       by Keifer Bly.
4914     - Remove Windows versions that were never supported by the
4915       GetVersionEx() function. Stop duplicating the latest Windows
4916       version in get_uname(). Fixes bug 28096; bugfix on 0.2.2.34;
4917       reported by Keifer Bly.
4919   o Testing:
4920     - Increase logging and tag all log entries with timestamps in
4921       test_rebind.py. Provides diagnostics for issue 28229.
4923   o Code simplification and refactoring (shared random, dirauth):
4924     - Change many tor_assert() to use BUG() instead. The idea is to not
4925       crash a dirauth but rather scream loudly with a stacktrace and let
4926       it continue run. The shared random subsystem is very resilient and
4927       if anything wrong happens with it, at worst a non coherent value
4928       will be put in the vote and discarded by the other authorities.
4929       Closes ticket 19566.
4931   o Documentation (onion services):
4932     - Document in the man page that changing ClientOnionAuthDir value or
4933       adding a new file in the directory will not work at runtime upon
4934       sending a HUP if Sandbox 1. Closes ticket 28128.
4935     - Note in the man page that the only real way to fully revoke an
4936       onion service v3 client authorization is by restarting the tor
4937       process. Closes ticket 28275.
4940 Changes in version 0.3.5.5-alpha - 2018-11-16
4941   Tor 0.3.5.5-alpha includes numerous bugfixes on earlier releases,
4942   including several that we hope to backport to older release series in
4943   the future.
4945   o Major bugfixes (OpenSSL, portability):
4946     - Fix our usage of named groups when running as a TLS 1.3 client in
4947       OpenSSL 1.1.1. Previously, we only initialized EC groups when
4948       running as a relay, which caused clients to fail to negotiate TLS
4949       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
4950       support was added).
4952   o Minor features (geoip):
4953     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
4954       Country database. Closes ticket 28395.
4956   o Minor bugfixes (compilation):
4957     - Initialize a variable unconditionally in aes_new_cipher(), since
4958       some compilers cannot tell that we always initialize it before
4959       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
4961   o Minor bugfixes (connection, relay):
4962     - Avoid a logging a BUG() stacktrace when closing connection held
4963       open because the write side is rate limited but not the read side.
4964       Now, the connection read side is simply shut down until Tor is
4965       able to flush the connection and close it. Fixes bug 27750; bugfix
4966       on 0.3.4.1-alpha.
4968   o Minor bugfixes (continuous integration, Windows):
4969     - Manually configure the zstd compiler options, when building using
4970       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
4971       not come with a pkg-config file. Fixes bug 28454; bugfix
4972       on 0.3.4.1-alpha.
4973     - Stop using an external OpenSSL install, and stop installing MSYS2
4974       packages, when building using mingw on Appveyor Windows CI. Fixes
4975       bug 28399; bugfix on 0.3.4.1-alpha.
4977   o Minor bugfixes (documentation):
4978     - Make Doxygen work again after the code movement in the 0.3.5
4979       source tree. Fixes bug 28435; bugfix on 0.3.5.1-alpha.
4981   o Minor bugfixes (Linux seccomp2 sandbox):
4982     - Permit the "shutdown()" system call, which is apparently used by
4983       OpenSSL under some circumstances. Fixes bug 28183; bugfix
4984       on 0.2.5.1-alpha.
4986   o Minor bugfixes (logging):
4987     - Stop talking about the Named flag in log messages. Clients have
4988       ignored the Named flag since 0.3.2. Fixes bug 28441; bugfix
4989       on 0.3.2.1-alpha.
4991   o Minor bugfixes (memory leaks):
4992     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
4993       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
4995   o Minor bugfixes (onion services):
4996     - On an intro point for a version 3 onion service, stop closing
4997       introduction circuits on an NACK. This lets the client decide
4998       whether to reuse the circuit or discard it. Previously, we closed
4999       intro circuits when sending NACKs. Fixes bug 27841; bugfix on
5000       0.3.2.1-alpha. Patch by Neel Chaunan.
5001     - When replacing a descriptor in the client cache, make sure to
5002       close all client introduction circuits for the old descriptor, so
5003       we don't end up with unusable leftover circuits. Fixes bug 27471;
5004       bugfix on 0.3.2.1-alpha.
5007 Changes in version 0.3.5.4-alpha - 2018-11-08
5008   Tor 0.3.5.4-alpha includes numerous bugfixes on earlier versions and
5009   improves our continuous integration support. It continues our attempts
5010   to stabilize this alpha branch and build it into a foundation for an
5011   acceptable long-term-support release.
5013   o Major bugfixes (compilation, rust):
5014     - Rust tests can now build and run successfully with the
5015       --enable-fragile-hardening option enabled. Doing this currently
5016       requires the rust beta channel; it will be possible with stable
5017       rust once Rust version 1.31 is released. Patch from Alex Crichton.
5018       Fixes bugs 27272, 27273, and 27274. Bugfix on 0.3.1.1-alpha.
5020   o Major bugfixes (embedding, main loop):
5021     - When DisableNetwork becomes set, actually disable periodic events
5022       that are already enabled. (Previously, we would refrain from
5023       enabling new ones, but we would leave the old ones turned on.)
5024       Fixes bug 28348; bugfix on 0.3.4.1-alpha.
5026   o Minor features (continuous integration):
5027     - Add a Travis CI build for --enable-nss on Linux gcc. Closes
5028       ticket 27751.
5029     - Add new CI job to Travis configuration to run stem-based
5030       integration tests. Closes ticket 27913.
5032   o Minor features (Windows, continuous integration):
5033     - Build tor on Windows Server 2012 R2 and Windows Server 2016 using
5034       Appveyor's CI. Closes ticket 28318.
5036   o Minor bugfixes (C correctness, also in 0.3.4.9):
5037     - Avoid undefined behavior in an end-of-string check when parsing
5038       the BEGIN line in a directory object. Fixes bug 28202; bugfix
5039       on 0.2.0.3-alpha.
5041   o Minor bugfixes (compilation):
5042     - Fix a pair of missing headers on OpenBSD. Fixes bug 28303; bugfix
5043       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
5045   o Minor bugfixes (compilation, OpenSolaris):
5046     - Fix compilation on OpenSolaris and its descendants by adding a
5047       missing include to compat_pthreads.c. Fixes bug 27963; bugfix
5048       on 0.3.5.1-alpha.
5050   o Minor bugfixes (configuration):
5051     - Refuse to start with relative file paths and RunAsDaemon set
5052       (regression from the fix for bug 22731). Fixes bug 28298; bugfix
5053       on 0.3.3.1-alpha.
5055   o Minor bugfixes (directory authority, also in 0.3.4.9):
5056     - Log additional info when we get a relay that shares an ed25519 ID
5057       with a different relay, instead of a BUG() warning with a
5058       backtrace. Fixes bug 27800; bugfix on 0.3.2.1-alpha.
5060   o Minor bugfixes (onion service v3):
5061     - Build the service descriptor's signing key certificate before
5062       uploading, so we always have a fresh one: leaving no chances for
5063       it to expire service side. Fixes bug 27838; bugfix
5064       on 0.3.2.1-alpha.
5066   o Minor bugfixes (onion service v3, client authorization):
5067     - Fix an assert() when adding a client authorization for the first
5068       time and then sending a HUP signal to the service. Before that,
5069       Tor would stop abruptly. Fixes bug 27995; bugfix on 0.3.5.1-alpha.
5071   o Minor bugfixes (onion services):
5072     - Unless we have explicitly set HiddenServiceVersion, detect the
5073       onion service version and then look for invalid options.
5074       Previously, we did the reverse, but that broke existing configs
5075       which were pointed to a v2 service and had options like
5076       HiddenServiceAuthorizeClient set. Fixes bug 28127; bugfix on
5077       0.3.5.1-alpha. Patch by Neel Chauhan.
5079   o Minor bugfixes (portability):
5080     - Make the OPE code (which is used for v3 onion services) run
5081       correctly on big-endian platforms. Fixes bug 28115; bugfix
5082       on 0.3.5.1-alpha.
5084   o Minor bugfixes (protover, rust):
5085     - Reject extra commas in version strings. Fixes bug 27197; bugfix
5086       on 0.3.3.3-alpha.
5088   o Minor bugfixes (relay shutdown, systemd):
5089     - Notify systemd of ShutdownWaitLength so it can be set to longer
5090       than systemd's TimeoutStopSec. In Tor's systemd service file, set
5091       TimeoutSec to 60 seconds to allow Tor some time to shut down.
5092       Fixes bug 28113; bugfix on 0.2.6.2-alpha.
5094   o Minor bugfixes (rust, also in 0.3.4.9):
5095     - Fix a potential null dereference in protover_all_supported(). Add
5096       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
5097     - Return a string that can be safely freed by C code, not one
5098       created by the rust allocator, in protover_all_supported(). Fixes
5099       bug 27740; bugfix on 0.3.3.1-alpha.
5101   o Minor bugfixes (rust, directory authority, also in 0.3.4.9):
5102     - Fix an API mismatch in the rust implementation of
5103       protover_compute_vote(). This bug could have caused crashes on any
5104       directory authorities running Tor with Rust (which we do not yet
5105       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
5107   o Minor bugfixes (testing):
5108     - Avoid hangs and race conditions in test_rebind.py. Fixes bug
5109       27968; bugfix on 0.3.5.1-alpha.
5111   o Minor bugfixes (testing, also in 0.3.4.9):
5112     - Treat backtrace test failures as expected on BSD-derived systems
5113       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
5114       (FreeBSD failures have been treated as expected since 18204 in
5115       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
5117   o Documentation (onion service manpage):
5118     - Improve HSv3 client authorization by making some options more
5119       explicit and detailed. Closes ticket 28026. Patch by Mike Tigas.
5122 Changes in version 0.3.4.9 - 2018-11-02
5123   Tor 0.3.4.9 is the second stable release in its series; it backports
5124   numerous fixes, including a fix for a bandwidth management bug that
5125   was causing memory exhaustion on relays. Anyone running an earlier
5126   version of Tor 0.3.4.9 should upgrade.
5128   o Major bugfixes (compilation, backport from 0.3.5.3-alpha):
5129     - Fix compilation on ARM (and other less-used CPUs) when compiling
5130       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
5132   o Major bugfixes (mainloop, bootstrap, backport from 0.3.5.3-alpha):
5133     - Make sure Tor bootstraps and works properly if only the
5134       ControlPort is set. Prior to this fix, Tor would only bootstrap
5135       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
5136       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
5138   o Major bugfixes (relay, backport from 0.3.5.3-alpha):
5139     - When our write bandwidth limit is exhausted, stop writing on the
5140       connection. Previously, we had a typo in the code that would make
5141       us stop reading instead, leading to relay connections being stuck
5142       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
5143       on 0.3.4.1-alpha.
5145   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
5146     - Fix a use-after-free error that could be caused by passing Tor an
5147       impossible set of options that would fail during options_act().
5148       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
5150   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
5151     - Don't do a distcheck with --disable-module-dirauth in Travis.
5152       Implements ticket 27252.
5153     - Only run one online rust build in Travis, to reduce network
5154       errors. Skip offline rust builds on Travis for Linux gcc, because
5155       they're redundant. Implements ticket 27252.
5156     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
5157       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
5158       Linux with default settings, because all the non-default builds
5159       use gcc on Linux. Implements ticket 27252.
5161   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
5162     - Use the Travis Homebrew addon to install packages on macOS during
5163       Travis CI. The package list is the same, but the Homebrew addon
5164       does not do a `brew update` by default. Implements ticket 27738.
5166   o Minor features (geoip):
5167     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
5168       Country database. Closes ticket 27991.
5170   o Minor bugfixes (32-bit OSX and iOS, timing, backport from 0.3.5.2-alpha):
5171     - Fix an integer overflow bug in our optimized 32-bit millisecond-
5172       difference algorithm for 32-bit Apple platforms. Previously, it
5173       would overflow when calculating the difference between two times
5174       more than 47 days apart. Fixes part of bug 27139; bugfix
5175       on 0.3.4.1-alpha.
5176     - Improve the precision of our 32-bit millisecond difference
5177       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
5178       bugfix on 0.3.4.1-alpha.
5179     - Relax the tolerance on the mainloop/update_time_jumps test when
5180       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
5181       on 0.3.4.1-alpha.
5183   o Minor bugfixes (C correctness, to appear in 0.3.5.4-alpha):
5184     - Avoid undefined behavior in an end-of-string check when parsing
5185       the BEGIN line in a directory object. Fixes bug 28202; bugfix
5186       on 0.2.0.3-alpha.
5188   o Minor bugfixes (CI, appveyor, to appear in 0.3.5.4-alpha):
5189     - Only install the necessary mingw packages during our appveyor
5190       builds. This change makes the build a little faster, and prevents
5191       a conflict with a preinstalled mingw openssl that appveyor now
5192       ships. Fixes bugs 27943 and 27765; bugfix on 0.3.4.2-alpha.
5194   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
5195     - Rewrite our assertion macros so that they no longer suppress the
5196       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
5198   o Minor bugfixes (continuous integration, backport from 0.3.5.1-alpha):
5199     - Stop reinstalling identical packages in our Windows CI. Fixes bug
5200       27464; bugfix on 0.3.4.1-alpha.
5202   o Minor bugfixes (directory authority, to appear in 0.3.5.4-alpha):
5203     - Log additional info when we get a relay that shares an ed25519 ID
5204       with a different relay, instead making a BUG() warning. Fixes bug
5205       27800; bugfix on 0.3.2.1-alpha.
5207   o Minor bugfixes (directory connection shutdown, backport from 0.3.5.1-alpha):
5208     - Avoid a double-close when shutting down a stalled directory
5209       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
5211   o Minor bugfixes (HTTP tunnel, backport from 0.3.5.1-alpha):
5212     - Fix a bug warning when closing an HTTP tunnel connection due to an
5213       HTTP request we couldn't handle. Fixes bug 26470; bugfix
5214       on 0.3.2.1-alpha.
5216   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
5217     - Ensure circuitmux queues are empty before scheduling or sending
5218       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
5220   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
5221     - When the onion service directory can't be created or has the wrong
5222       permissions, do not log a stack trace. Fixes bug 27335; bugfix
5223       on 0.3.2.1-alpha.
5225   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
5226     - Close all SOCKS request (for the same .onion) if the newly fetched
5227       descriptor is unusable. Before that, we would close only the first
5228       one leaving the other hanging and let to time out by themselves.
5229       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
5231   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
5232     - When selecting a v3 rendezvous point, don't only look at the
5233       protover, but also check whether the curve25519 onion key is
5234       present. This way we avoid picking a relay that supports the v3
5235       rendezvous but for which we don't have the microdescriptor. Fixes
5236       bug 27797; bugfix on 0.3.2.1-alpha.
5238   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
5239     - Reject protocol names containing bytes other than alphanumeric
5240       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
5241       on 0.2.9.4-alpha.
5243   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
5244     - Compute protover votes correctly in the rust version of the
5245       protover code. Previously, the protover rewrite in 24031 allowed
5246       repeated votes from the same voter for the same protocol version
5247       to be counted multiple times in protover_compute_vote(). Fixes bug
5248       27649; bugfix on 0.3.3.5-rc.
5249     - Reject protover names that contain invalid characters. Fixes bug
5250       27687; bugfix on 0.3.3.1-alpha.
5252   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
5253     - protover_all_supported() would attempt to allocate up to 16GB on
5254       some inputs, leading to a potential memory DoS. Fixes bug 27206;
5255       bugfix on 0.3.3.5-rc.
5257   o Minor bugfixes (rust, directory authority, to appear in 0.3.5.4-alpha):
5258     - Fix an API mismatch in the rust implementation of
5259       protover_compute_vote(). This bug could have caused crashes on any
5260       directory authorities running Tor with Rust (which we do not yet
5261       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
5263   o Minor bugfixes (rust, to appear in 0.3.5.4-alpha):
5264     - Fix a potential null dereference in protover_all_supported(). Add
5265       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
5266     - Return a string that can be safely freed by C code, not one
5267       created by the rust allocator, in protover_all_supported(). Fixes
5268       bug 27740; bugfix on 0.3.3.1-alpha.
5270   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
5271     - If a unit test running in a subprocess exits abnormally or with a
5272       nonzero status code, treat the test as having failed, even if the
5273       test reported success. Without this fix, memory leaks don't cause
5274       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
5275       bugfix on 0.2.2.4-alpha.
5277   o Minor bugfixes (testing, backport from 0.3.5.3-alpha):
5278     - Make the hs_service tests use the same time source when creating
5279       the introduction point and when testing it. Now tests work better
5280       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
5281       on 0.3.2.1-alpha.
5283   o Minor bugfixes (testing, to appear in 0.3.5.4-alpha):
5284     - Treat backtrace test failures as expected on BSD-derived systems
5285       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
5286       (FreeBSD failures have been treated as expected since 18204 in
5287       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
5290 Changes in version 0.3.5.3-alpha - 2018-10-17
5291   Tor 0.3.5.3-alpha fixes several bugs, mostly from previous 0.3.5.x
5292   versions. One important fix for relays addresses a problem with rate-
5293   limiting code from back in 0.3.4.x: If the fix works out, we'll be
5294   backporting it soon. This release is still an alpha, but we hope it's
5295   getting closer and closer to stability.
5297   o Major features (onion services):
5298     - Version 3 onion services can now use the per-service
5299       HiddenServiceExportCircuitID option to differentiate client
5300       circuits. It communicates with the service by using the HAProxy
5301       protocol to assign virtual IP addresses to inbound client
5302       circuits. Closes ticket 4700. Patch by Mahrud Sayrafi.
5304   o Major bugfixes (compilation):
5305     - Fix compilation on ARM (and other less-used CPUs) when compiling
5306       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
5308   o Major bugfixes (initialization, crash):
5309     - Fix an assertion crash that would stop Tor from starting up if it
5310       tried to activate a periodic event too early. Fixes bug 27861;
5311       bugfix on 0.3.5.1-alpha.
5313   o Major bugfixes (mainloop, bootstrap):
5314     - Make sure Tor bootstraps and works properly if only the
5315       ControlPort is set. Prior to this fix, Tor would only bootstrap
5316       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
5317       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
5319   o Major bugfixes (relay):
5320     - When our write bandwidth limit is exhausted, stop writing on the
5321       connection. Previously, we had a typo in the code that would make
5322       us stop reading instead, leading to relay connections being stuck
5323       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
5324       on 0.3.4.1-alpha.
5326   o Minor features (continuous integration):
5327     - Use the Travis Homebrew addon to install packages on macOS during
5328       Travis CI. The package list is the same, but the Homebrew addon
5329       does not do a `brew update` by default. Implements ticket 27738.
5330     - Report what program produced the mysterious core file that we
5331       occasionally see on Travis CI during make distcheck. Closes
5332       ticket 28024.
5334   o Minor features (geoip):
5335     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
5336       Country database. Closes ticket 27991.
5338   o Minor bugfixes (code safety):
5339     - Rewrite our assertion macros so that they no longer suppress the
5340       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
5341       on 0.0.6.
5343   o Minor bugfixes (compilation):
5344     - Compile the ed25519-donna code with a correct declaration of
5345       crypto_strongest_rand(). Previously, we built it with one type,
5346       but linked it against another in the unit tests, which caused
5347       compilation failures with LTO enabled. This could have caused
5348       other undefined behavior in the tests. Fixes bug 27728; bugfix
5349       on 0.3.5.1-alpha.
5351   o Minor bugfixes (compilation, netbsd):
5352     - Add a missing include back into procmon.c. Fixes bug 27990; bugfix
5353       on 0.3.5.1-alpha.
5355   o Minor bugfixes (continuous integration, appveyor):
5356     - Install only the necessary mingw packages during our appveyor
5357       builds. This change makes the build a little faster, and prevents
5358       a conflict with a preinstalled mingw openssl that appveyor now
5359       ships. Fixes bugs 27765 and 27943; bugfix on 0.3.4.2-alpha.
5361   o Minor bugfixes (directory permissions):
5362     - When a user requests a group-readable DataDirectory, give it to
5363       them. Previously, when the DataDirectory and the CacheDirectory
5364       were the same, the default setting (0) for
5365       CacheDirectoryGroupReadable would override the setting for
5366       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
5367       on 0.3.3.1-alpha.
5369   o Minor bugfixes (memory leaks):
5370     - Fix a small memory leak when calling Tor with --dump-config. Fixes
5371       bug 27893; bugfix on 0.3.2.1-alpha.
5373   o Minor bugfixes (networking):
5374     - In retry_listeners_ports(), make sure that we're removing a member
5375       of old_conns smartlist at most once. Fixes bug 27808; bugfix
5376       on 0.3.5.1-alpha.
5377     - Refrain from attempting socket rebinding when old and new
5378       listeners are in different address families. Fixes bug 27928;
5379       bugfix on 0.3.5.1-alpha.
5381   o Minor bugfixes (onion service v3):
5382     - Stop dumping a stack trace when trying to connect to an intro
5383       point without having a descriptor for it. Fixes bug 27774; bugfix
5384       on 0.3.2.1-alpha.
5385     - Don't warn so loudly when Tor is unable to decode an onion
5386       descriptor. This can now happen as a normal use case if a client
5387       gets a descriptor with client authorization but the client is not
5388       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
5389     - When selecting a v3 rendezvous point, don't only look at the
5390       protover, but also check whether the curve25519 onion key is
5391       present. This way we avoid picking a relay that supports the v3
5392       rendezvous but for which we don't have the microdescriptor. Fixes
5393       bug 27797; bugfix on 0.3.2.1-alpha.
5395   o Minor bugfixes (protover):
5396     - Reject protocol names containing bytes other than alphanumeric
5397       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
5398       on 0.2.9.4-alpha.
5400   o Minor bugfixes (testing):
5401     - Make the hs_service tests use the same time source when creating
5402       the introduction point and when testing it. Now tests work better
5403       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
5404       on 0.3.2.1-alpha.
5405     - In test_rebind.py, check if the Python version is in the supported
5406       range. Fixes bug 27675; bugfix on 0.3.5.1-alpha.
5408   o Code simplification and refactoring:
5409     - Divide more large Tor source files -- especially ones that span
5410       multiple areas of functionality -- into smaller parts, including
5411       onion.c and main.c. Closes ticket 26747.
5412     - Divide the "routerparse.c" module into separate modules for each
5413       group of parsed objects. Closes ticket 27924.
5414     - Move protover_rust.c to the same place protover.c was moved to.
5415       Closes ticket 27814.
5416     - Split directory.c into separate pieces for client, server, and
5417       common functionality. Closes ticket 26744.
5418     - Split the non-statistics-related parts from the rephist.c and
5419       geoip.c modules. Closes ticket 27892.
5420     - Split the router.c file into relay-only and shared components, to
5421       help with future modularization. Closes ticket 27864.
5423   o Documentation:
5424     - In the tor-resolve(1) manpage, fix the reference to socks-
5425       extensions.txt by adding a web URL. Resolves ticket 27853.
5426     - Mention that we require Python to be 2.7 or newer for some
5427       integration tests that we ship with Tor. Resolves ticket 27677.
5430 Changes in version 0.3.5.2-alpha - 2018-09-21
5431   Tor 0.3.5.2-alpha fixes several bugs in 0.3.5.1-alpha, including one
5432   that made Tor think it had run out of sockets. Anybody running a relay
5433   or an onion service on 0.3.5.1-alpha should upgrade.
5435   o Major bugfixes (relay bandwidth statistics):
5436     - When we close relayed circuits, report the data in the circuit
5437       queues as being written in our relay bandwidth stats. This
5438       mitigates guard discovery and other attacks that close circuits
5439       for the explicit purpose of noticing this discrepancy in
5440       statistics. Fixes bug 23512; bugfix on 0.0.8pre3.
5442   o Major bugfixes (socket accounting):
5443     - In our socket accounting code, count a socket as closed even when
5444       it is closed indirectly by the TLS layer. Previously, we would
5445       count these sockets as still in use, and incorrectly believe that
5446       we had run out of sockets. Fixes bug 27795; bugfix
5447       on 0.3.5.1-alpha.
5449   o Minor bugfixes (32-bit OSX and iOS, timing):
5450     - Fix an integer overflow bug in our optimized 32-bit millisecond-
5451       difference algorithm for 32-bit Apple platforms. Previously, it
5452       would overflow when calculating the difference between two times
5453       more than 47 days apart. Fixes part of bug 27139; bugfix
5454       on 0.3.4.1-alpha.
5455     - Improve the precision of our 32-bit millisecond difference
5456       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
5457       bugfix on 0.3.4.1-alpha.
5458     - Relax the tolerance on the mainloop/update_time_jumps test when
5459       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
5460       on 0.3.4.1-alpha.
5462   o Minor bugfixes (onion service v3):
5463     - Close all SOCKS request (for the same .onion) if the newly fetched
5464       descriptor is unusable. Before that, we would close only the first
5465       one leaving the other hanging and let to time out by themselves.
5466       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
5468   o Minor bugfixes (memory leak):
5469     - Fix an unlikely memory leak when trying to read a private key from
5470       a ridiculously large file. Fixes bug 27764; bugfix on
5471       0.3.5.1-alpha. This is CID 1439488.
5473   o Minor bugfixes (NSS):
5474     - Correctly detect failure to open a dummy TCP socket when stealing
5475       ownership of an fd from the NSS layer. Fixes bug 27782; bugfix
5476       on 0.3.5.1-alpha.
5478   o Minor bugfixes (rust):
5479     - protover_all_supported() would attempt to allocate up to 16GB on
5480       some inputs, leading to a potential memory DoS. Fixes bug 27206;
5481       bugfix on 0.3.3.5-rc.
5483   o Minor bugfixes (testing):
5484     - Revise the "conditionvar_timeout" test so that it succeeds even on
5485       heavily loaded systems where the test threads are not scheduled
5486       within 200 msec. Fixes bug 27073; bugfix on 0.2.6.3-alpha.
5488   o Code simplification and refactoring:
5489     - Divide the routerlist.c and dirserv.c modules into smaller parts.
5490       Closes ticket 27799.
5493 Changes in version 0.3.5.1-alpha - 2018-09-18
5494   Tor 0.3.5.1-alpha is the first release of the 0.3.5.x series. It adds
5495   client authorization for modern (v3) onion services, improves
5496   bootstrap reporting, begins reorganizing Tor's codebase, adds optional
5497   support for NSS in place of OpenSSL, and much more.
5499   o Major features (onion services, UI change):
5500     - For a newly created onion service, the default version is now 3.
5501       Tor still supports existing version 2 services, but the operator
5502       now needs to set "HiddenServiceVersion 2" in order to create a new
5503       version 2 service. For existing services, Tor now learns the
5504       version by reading the key file. Closes ticket 27215.
5506   o Major features (relay, UI change):
5507     - Relays no longer run as exits by default. If the "ExitRelay"
5508       option is auto (or unset), and no exit policy is specified with
5509       ExitPolicy or ReducedExitPolicy, we now treat ExitRelay as 0.
5510       Previously in this case, we allowed exit traffic and logged a
5511       warning message. Closes ticket 21530. Patch by Neel Chauhan.
5512     - Tor now validates that the ContactInfo config option is valid UTF-
5513       8 when parsing torrc. Closes ticket 27428.
5515   o Major features (bootstrap):
5516     - Don't report directory progress until after a connection to a
5517       relay or bridge has succeeded. Previously, we'd report 80%
5518       progress based on cached directory information when we couldn't
5519       even connect to the network. Closes ticket 27169.
5521   o Major features (new code layout):
5522     - Nearly all of Tor's source code has been moved around into more
5523       logical places. The "common" directory is now divided into a set
5524       of libraries in "lib", and files in the "or" directory have been
5525       split into "core" (logic absolutely needed for onion routing),
5526       "feature" (independent modules in Tor), and "app" (to configure
5527       and invoke the rest of Tor). See doc/HACKING/CodeStructure.md for
5528       more information. Closes ticket 26481.
5530       This refactoring is not complete: although the libraries have been
5531       refactored to be acyclic, the main body of Tor is still too
5532       interconnected. We will attempt to improve this in the future.
5534   o Major features (onion services v3):
5535     - Implement onion service client authorization at the descriptor
5536       level: only authorized clients can decrypt a service's descriptor
5537       to find out how to contact it. A new torrc option was added to
5538       control this client side: ClientOnionAuthDir <path>. On the
5539       service side, if the "authorized_clients/" directory exists in the
5540       onion service directory path, client configurations are read from
5541       the files within. See the manpage for more details. Closes ticket
5542       27547. Patch done by Suphanat Chunhapanya (haxxpop).
5543     - Improve revision counter generation in next-gen onion services.
5544       Onion services can now scale by hosting multiple instances on
5545       different hosts without synchronization between them, which was
5546       previously impossible because descriptors would get rejected by
5547       HSDirs. Addresses ticket 25552.
5549   o Major features (portability, cryptography, experimental, TLS):
5550     - Tor now has the option to compile with the NSS library instead of
5551       OpenSSL. This feature is experimental, and we expect that bugs may
5552       remain. It is mainly intended for environments where Tor's
5553       performance is not CPU-bound, and where NSS is already known to be
5554       installed. To try it out, configure Tor with the --enable-nss
5555       flag. Closes tickets 26631, 26815, and 26816.
5557       If you are experimenting with this option and using an old cached
5558       consensus, Tor may fail to start. To solve this, delete your
5559       "cached-consensus" and "cached-microdesc-consensus" files,
5560       (if present), and restart Tor.
5562   o Major bugfixes (directory authority):
5563     - Actually check that the address we get from DirAuthority
5564       configuration line is valid IPv4. Explicitly disallow DirAuthority
5565       address to be a DNS hostname. Fixes bug 26488; bugfix
5566       on 0.1.2.10-rc.
5568   o Major bugfixes (restart-in-process):
5569     - Fix a use-after-free error that could be caused by passing Tor an
5570       impossible set of options that would fail during options_act().
5571       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
5573   o Minor features (admin tools):
5574     - Add a new --key-expiration option to print the expiration date of
5575       the signing cert in an ed25519_signing_cert file. Resolves
5576       issue 19506.
5578   o Minor features (build):
5579     - If you pass the "--enable-pic" option to configure, Tor will try
5580       to tell the compiler to build position-independent code suitable
5581       to link into a dynamic library. (The default remains -fPIE, for
5582       code suitable for a relocatable executable.) Closes ticket 23846.
5584   o Minor features (code correctness, testing):
5585     - Tor's build process now includes a "check-includes" make target to
5586       verify that no module of Tor relies on any headers from a higher-
5587       level module. We hope to use this feature over time to help
5588       refactor our codebase. Closes ticket 26447.
5590   o Minor features (code layout):
5591     - We have a new "lowest-level" error-handling API for use by code
5592       invoked from within the logging module. With this interface, the
5593       logging code is no longer at risk of calling into itself if a
5594       failure occurs while it is trying to log something. Closes
5595       ticket 26427.
5597   o Minor features (compilation):
5598     - Tor's configure script now supports a --with-malloc= option to
5599       select your malloc implementation. Supported options are
5600       "tcmalloc", "jemalloc", "openbsd" (deprecated), and "system" (the
5601       default). Addresses part of ticket 20424. Based on a patch from
5602       Alex Xu.
5604   o Minor features (config):
5605     - The "auto" keyword in torrc is now case-insensitive. Closes
5606       ticket 26663.
5608   o Minor features (continuous integration):
5609     - Don't do a distcheck with --disable-module-dirauth in Travis.
5610       Implements ticket 27252.
5611     - Install libcap-dev and libseccomp2-dev so these optional
5612       dependencies get tested on Travis CI. Closes ticket 26560.
5613     - Only run one online rust build in Travis, to reduce network
5614       errors. Skip offline rust builds on Travis for Linux gcc, because
5615       they're redundant. Implements ticket 27252.
5616     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
5617       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
5618       Linux with default settings, because all the non-default builds
5619       use gcc on Linux. Implements ticket 27252.
5621   o Minor features (controller):
5622     - Emit CIRC_BW events as soon as we detect that we processed an
5623       invalid or otherwise dropped cell on a circuit. This allows
5624       vanguards and other controllers to react more quickly to dropped
5625       cells. Closes ticket 27678.
5626     - For purposes of CIRC_BW-based dropped cell detection, track half-
5627       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
5628       bias check cells to arrive without counting it as dropped until
5629       either the END arrives, or the windows are empty. Closes
5630       ticket 25573.
5631     - Implement a 'GETINFO md/all' controller command to enable getting
5632       all known microdescriptors. Closes ticket 8323.
5633     - The GETINFO command now support an "uptime" argument, to return
5634       Tor's uptime in seconds. Closes ticket 25132.
5636   o Minor features (denial-of-service avoidance):
5637     - Make our OOM handler aware of the DNS cache so that it doesn't
5638       fill up the memory. This check is important for our DoS mitigation
5639       subsystem. Closes ticket 18642. Patch by Neel Chauhan.
5641   o Minor features (development):
5642     - Tor's makefile now supports running the "clippy" Rust style tool
5643       on our Rust code. Closes ticket 22156.
5645   o Minor features (directory authority):
5646     - There is no longer an artificial upper limit on the length of
5647       bandwidth lines. Closes ticket 26223.
5648     - When a bandwidth file is used to obtain the bandwidth measurements,
5649       include this bandwidth file headers in the votes. Closes
5650       ticket 3723.
5651     - Improved support for networks with only a single authority or a
5652       single fallback directory. Patch from Gabriel Somlo. Closes
5653       ticket 25928.
5655   o Minor features (embedding API):
5656     - The Tor controller API now supports a function to launch Tor with
5657       a preconstructed owning controller FD, so that embedding
5658       applications don't need to manage controller ports and
5659       authentication. Closes ticket 24204.
5660     - The Tor controller API now has a function that returns the name
5661       and version of the backend implementing the API. Closes
5662       ticket 26947.
5664   o Minor features (geoip):
5665     - Update geoip and geoip6 to the September 6 2018 Maxmind GeoLite2
5666       Country database. Closes ticket 27631.
5668   o Minor features (memory management):
5669     - Get Libevent to use the same memory allocator as Tor, by calling
5670       event_set_mem_functions() during initialization. Resolves
5671       ticket 8415.
5673   o Minor features (memory usage):
5674     - When not using them, store legacy TAP public onion keys in DER-
5675       encoded format, rather than as expanded public keys. This should
5676       save several megabytes on typical clients. Closes ticket 27246.
5678   o Minor features (OpenSSL):
5679     - When possible, use RFC5869 HKDF implementation from OpenSSL rather
5680       than our own. Resolves ticket 19979.
5682   o Minor features (Rust, code quality):
5683     - Improve rust code quality in the rust protover implementation by
5684       making it more idiomatic. Includes changing an internal API to
5685       take &str instead of &String. Closes ticket 26492.
5687   o Minor features (testing):
5688     - Add scripts/test/chutney-git-bisect.sh, for bisecting using
5689       chutney. Implements ticket 27211.
5691   o Minor features (tor-resolve):
5692     - The tor-resolve utility can now be used with IPv6 SOCKS proxies.
5693       Side-effect of the refactoring for ticket 26526.
5695   o Minor features (UI):
5696     - Log each included configuration file or directory as we read it,
5697       to provide more visibility about where Tor is reading from. Patch
5698       from Unto Sten; closes ticket 27186.
5699     - Lower log level of "Scheduler type KIST has been enabled" to INFO.
5700       Closes ticket 26703.
5702   o Minor bugfixes (bootstrap):
5703     - Try harder to get descriptors in non-exit test networks, by using
5704       the mid weight for the third hop when there are no exits. Fixes
5705       bug 27237; bugfix on 0.2.6.2-alpha.
5707   o Minor bugfixes (C correctness):
5708     - Avoid casting smartlist index to int implicitly, as it may trigger
5709       a warning (-Wshorten-64-to-32). Fixes bug 26282; bugfix on
5710       0.2.3.13-alpha, 0.2.7.1-alpha and 0.2.1.1-alpha.
5711     - Use time_t for all values in
5712       predicted_ports_prediction_time_remaining(). Rework the code that
5713       computes difference between durations/timestamps. Fixes bug 27165;
5714       bugfix on 0.3.1.1-alpha.
5716   o Minor bugfixes (client, memory usage):
5717     - When not running as a directory cache, there is no need to store
5718       the text of the current consensus networkstatus in RAM.
5719       Previously, however, clients would store it anyway, at a cost of
5720       over 5 MB. Now, they do not. Fixes bug 27247; bugfix
5721       on 0.3.0.1-alpha.
5723   o Minor bugfixes (client, reachableaddresses):
5724     - Instead of adding a "reject *:*" line to ReachableAddresses when
5725       loading the configuration, add one to the policy after parsing it
5726       in parse_reachable_addresses(). This prevents extra "reject *.*"
5727       lines from accumulating on reloads. Fixes bug 20874; bugfix on
5728       0.1.1.5-alpha. Patch by Neel Chauhan.
5730   o Minor bugfixes (code quality):
5731     - Rename sandbox_getaddrinfo() and other functions to no longer
5732       misleadingly suggest that they are sandbox-only. Fixes bug 26525;
5733       bugfix on 0.2.7.1-alpha.
5735   o Minor bugfixes (configuration, Onion Services):
5736     - In rend_service_parse_port_config(), disallow any input to remain
5737       after address-port pair was parsed. This will catch address and
5738       port being whitespace-separated by mistake of the user. Fixes bug
5739       27044; bugfix on 0.2.9.10.
5741   o Minor bugfixes (continuous integration):
5742     - Stop reinstalling identical packages in our Windows CI. Fixes bug
5743       27464; bugfix on 0.3.4.1-alpha.
5745   o Minor bugfixes (controller):
5746     - Consider all routerinfo errors other than "not a server" to be
5747       transient for the purpose of "GETINFO exit-policy/*" controller
5748       request. Print stacktrace in the unlikely case of failing to
5749       recompute routerinfo digest. Fixes bug 27034; bugfix
5750       on 0.3.4.1-alpha.
5752   o Minor bugfixes (directory connection shutdown):
5753     - Avoid a double-close when shutting down a stalled directory
5754       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
5756   o Minor bugfixes (HTTP tunnel):
5757     - Fix a bug warning when closing an HTTP tunnel connection due to an
5758       HTTP request we couldn't handle. Fixes bug 26470; bugfix
5759       on 0.3.2.1-alpha.
5761   o Minor bugfixes (ipv6):
5762     - In addrs_in_same_network_family(), we choose the subnet size based
5763       on the IP version (IPv4 or IPv6). Previously, we chose a fixed
5764       subnet size of /16 for both IPv4 and IPv6 addresses. Fixes bug
5765       15518; bugfix on 0.2.3.1-alpha. Patch by Neel Chauhan.
5767   o Minor bugfixes (logging):
5768     - As a precaution, do an early return from log_addr_has_changed() if
5769       Tor is running as client. Also, log a stack trace for debugging as
5770       this function should only be called when Tor runs as server. Fixes
5771       bug 26892; bugfix on 0.1.1.9-alpha.
5772     - Refrain from mentioning bug 21018 in the logs, as it is already
5773       fixed. Fixes bug 25477; bugfix on 0.2.9.8.
5775   o Minor bugfixes (logging, documentation):
5776     - When SafeLogging is enabled, scrub IP address in
5777       channel_tls_process_netinfo_cell(). Also, add a note to manpage
5778       that scrubbing is not guaranteed on loglevels below Notice. Fixes
5779       bug 26882; bugfix on 0.2.4.10-alpha.
5781   o Minor bugfixes (netflow padding):
5782     - Ensure circuitmux queues are empty before scheduling or sending
5783       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
5785   o Minor bugfixes (onion service v2):
5786     - Log at level "info", not "warning", in the case that we do not
5787       have a consensus when a .onion request comes in. This can happen
5788       normally while bootstrapping. Fixes bug 27040; bugfix
5789       on 0.2.8.2-alpha.
5791   o Minor bugfixes (onion service v3):
5792     - When the onion service directory can't be created or has the wrong
5793       permissions, do not log a stack trace. Fixes bug 27335; bugfix
5794       on 0.3.2.1-alpha.
5796   o Minor bugfixes (OS compatibility):
5797     - Properly handle configuration changes that move a listener to/from
5798       wildcard IP address. If the first attempt to bind a socket fails,
5799       close the old listener and try binding the socket again. Fixes bug
5800       17873; bugfix on 0.0.8pre-1.
5802   o Minor bugfixes (performance)::
5803     - Rework node_is_a_configured_bridge() to no longer call
5804       node_get_all_orports(), which was performing too many memory
5805       allocations. Fixes bug 27224; bugfix on 0.2.3.9.
5807   o Minor bugfixes (relay statistics):
5808     - Update relay descriptor on bandwidth changes only when the uptime
5809       is smaller than 24h, in order to reduce the efficiency of guard
5810       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
5812   o Minor bugfixes (relays):
5813     - Consider the fact that we'll be making direct connections to our
5814       entry and guard nodes when computing the fraction of nodes that
5815       have their descriptors. Also, if we are using bridges and there is
5816       at least one bridge with a full descriptor, treat the fraction of
5817       guards available as 100%. Fixes bug 25886; bugfix on 0.2.4.10-alpha.
5818       Patch by Neel Chauhan.
5819     - Update the message logged on relays when DirCache is disabled.
5820       Since 0.3.3.5-rc, authorities require DirCache (V2Dir) for the
5821       Guard flag. Fixes bug 24312; bugfix on 0.3.3.5-rc.
5823   o Minor bugfixes (rust, protover):
5824     - Compute protover votes correctly in the rust version of the
5825       protover code. Previously, the protover rewrite in 24031 allowed
5826       repeated votes from the same voter for the same protocol version
5827       to be counted multiple times in protover_compute_vote(). Fixes bug
5828       27649; bugfix on 0.3.3.5-rc.
5829     - Reject protover names that contain invalid characters. Fixes bug
5830       27687; bugfix on 0.3.3.1-alpha.
5832   o Minor bugfixes (testing):
5833     - Fix two unit tests to work when HOME environment variable is not
5834       set. Fixes bug 27096; bugfix on 0.2.8.1-alpha.
5835     - If a unit test running in a subprocess exits abnormally or with a
5836       nonzero status code, treat the test as having failed, even if the
5837       test reported success. Without this fix, memory leaks don't cause
5838       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
5839       bugfix on 0.2.2.4-alpha.
5840     - When logging a version mismatch in our openssl_version tests,
5841       report the actual offending version strings. Fixes bug 26152;
5842       bugfix on 0.2.9.1-alpha.
5843     - Fix forking tests on Windows when there is a space somewhere in
5844       the path. Fixes bug 26437; bugfix on 0.2.2.4-alpha.
5846   o Code simplification and refactoring:
5847     - 'updateFallbackDirs.py' now ignores the blacklist file, as it's not
5848       longer needed. Closes ticket 26502.
5849     - Include paths to header files within Tor are now qualified by
5850       directory within the top-level src directory.
5851     - Many structures have been removed from the centralized "or.h"
5852       header, and moved into their own headers. This will allow us to
5853       reduce the number of places in the code that rely on each
5854       structure's contents and layout. Closes ticket 26383.
5855     - Remove ATTR_NONNULL macro from codebase. Resolves ticket 26527.
5856     - Remove GetAdaptersAddresses_fn_t. The code that used it was
5857       removed as part of the 26481 refactor. Closes ticket 27467.
5858     - Rework Tor SOCKS server code to use Trunnel and benefit from
5859       autogenerated functions for parsing and generating SOCKS wire
5860       format. New implementation is cleaner, more maintainable and
5861       should be less prone to heartbleed-style vulnerabilities.
5862       Implements a significant fraction of ticket 3569.
5863     - Split sampled_guards_update_from_consensus() and
5864       select_entry_guard_for_circuit() into subfunctions. In
5865       entry_guards_update_primary() unite three smartlist enumerations
5866       into one and move smartlist comparison code out of the function.
5867       Closes ticket 21349.
5868     - Tor now assumes that you have standards-conformant stdint.h and
5869       inttypes.h headers when compiling. Closes ticket 26626.
5870     - Unify our bloom filter logic. Previously we had two copies of this
5871       code: one for routerlist filtering, and one for address set
5872       calculations. Closes ticket 26510.
5873     - Use the simpler strcmpstart() helper in
5874       rend_parse_v2_service_descriptor instead of strncmp(). Closes
5875       ticket 27630.
5876     - Utility functions that can perform a DNS lookup are now wholly
5877       separated from those that can't, in separate headers and C
5878       modules. Closes ticket 26526.
5880   o Documentation:
5881     - Copy paragraph and URL to Tor's code of conduct document from
5882       CONTRIBUTING to new CODE_OF_CONDUCT file. Resolves ticket 26638.
5883     - Remove old instructions from INSTALL document. Closes ticket 26588.
5884     - Warn users that they should not include MyFamily line(s) in their
5885       torrc when running Tor bridge. Closes ticket 26908.
5887   o Removed features:
5888     - Tor no longer supports building with the dmalloc library. For
5889       debugging memory issues, we suggest using gperftools or msan
5890       instead. Closes ticket 26426.
5891     - Tor no longer attempts to run on Windows environments without the
5892       GetAdaptersAddresses() function. This function has existed since
5893       Windows XP, which is itself already older than we support.
5894     - Remove Tor2web functionality for version 2 onion services. The
5895       Tor2webMode and Tor2webRendezvousPoints options are now obsolete.
5896       (This feature was never shipped in vanilla Tor and it was only
5897       possible to use this feature by building the support at compile
5898       time. Tor2webMode is not implemented for version 3 onion services.)
5899       Closes ticket 26367.
5902 Changes in version 0.2.9.17 - 2018-09-10
5903   Tor 0.2.9.17 backports numerous bugfixes from later versions of Tor.
5905   o Minor features (compatibility, backport from 0.3.4.8):
5906     - Tell OpenSSL to maintain backward compatibility with previous
5907       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
5908       ciphers are disabled by default. Closes ticket 27344.
5910   o Minor features (continuous integration, backport from 0.3.4.7-rc):
5911     - Enable macOS builds in our Travis CI configuration. Closes
5912       ticket 24629.
5913     - Install libcap-dev and libseccomp2-dev so these optional
5914       dependencies get tested on Travis CI. Closes ticket 26560.
5915     - Run asciidoc during Travis CI. Implements ticket 27087.
5916     - Use ccache in our Travis CI configuration. Closes ticket 26952.
5918   o Minor features (geoip):
5919     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
5920       Country database. Closes ticket 27089.
5922   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
5923     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
5924       tell the compiler not to include the system malloc implementation.
5925       Fixes bug 20424; bugfix on 0.2.0.20-rc.
5927   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
5928     - Silence a spurious compiler warning on the GetAdaptersAddresses
5929       function pointer cast. This issue is already fixed by 26481 in
5930       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
5931       bugfix on 0.2.3.11-alpha.
5932     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
5933       supported, and always fails. Some compilers warn about the
5934       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
5935       on 0.2.2.23-alpha.
5937   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
5938     - Don't link or search for pthreads when building for Windows, even
5939       if we are using build environment (like mingw) that provides a
5940       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
5942   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
5943     - Skip a pair of unreliable key generation tests on Windows, until
5944       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
5945       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
5947   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
5948     - Pass the module flags to distcheck configure, and log the flags
5949       before running configure. (Backported to 0.2.9 and later as a
5950       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
5952   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
5953     - When a Travis build fails, and showing a log fails, keep trying to
5954       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
5955     - When we use echo in Travis, don't pass a --flag as the first
5956       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
5958   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
5959     - When voting for recommended versions, make sure that all of the
5960       versions are well-formed and parsable. Fixes bug 26485; bugfix
5961       on 0.1.1.6-alpha.
5963   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
5964     - Fix a bug in out sandboxing rules for the openat() syscall.
5965       Previously, no openat() call would be permitted, which would break
5966       filesystem operations on recent glibc versions. Fixes bug 25440;
5967       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
5969   o Minor bugfixes (onion services, backport from 0.3.4.8):
5970     - Silence a spurious compiler warning in
5971       rend_client_send_introduction(). Fixes bug 27463; bugfix
5972       on 0.1.1.2-alpha.
5974   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
5975     - Log a protocol warning when single onion services or Tor2web clients
5976       fail to authenticate direct connections to relays.
5977       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
5979   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
5980     - Disable core dumps in test_bt.sh, to avoid failures in "make
5981       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
5983   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
5984     - Before running make test-network-all, delete old logs and test
5985       result files, to avoid spurious failures. Fixes bug 27295; bugfix
5986       on 0.2.7.3-rc.
5988   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
5989     - Our "tortls/cert_matches_key" unit test no longer relies on
5990       OpenSSL internals. Previously, it relied on unsupported OpenSSL
5991       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
5992       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
5994   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
5995     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
5996       27185; bugfix on 0.2.2.2-alpha.
5999 Changes in version 0.3.2.12 - 2018-09-10
6000   Tor 0.3.2.12 backport numerous fixes from later versions of Tor.
6002   o Minor features (compatibility, backport from 0.3.4.8):
6003     - Tell OpenSSL to maintain backward compatibility with previous
6004       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
6005       ciphers are disabled by default. Closes ticket 27344.
6007   o Minor features (continuous integration, backport from 0.3.4.7-rc):
6008     - Enable macOS builds in our Travis CI configuration. Closes
6009       ticket 24629.
6010     - Install libcap-dev and libseccomp2-dev so these optional
6011       dependencies get tested on Travis CI. Closes ticket 26560.
6012     - Run asciidoc during Travis CI. Implements ticket 27087.
6013     - Use ccache in our Travis CI configuration. Closes ticket 26952.
6015   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
6016     - Use cargo cache in our Travis CI configuration. Closes
6017       ticket 26952.
6019   o Minor features (controller, backport from 0.3.4.6-rc):
6020     - The control port now exposes the list of HTTPTunnelPorts and
6021       ExtOrPorts via GETINFO net/listeners/httptunnel and
6022       net/listeners/extor respectively. Closes ticket 26647.
6024   o Minor features (directory authorities, backport from 0.3.4.7-rc):
6025     - Authorities no longer vote to make the subprotocol version
6026       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
6027       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
6029   o Minor features (geoip):
6030     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
6031       Country database. Closes ticket 27089.
6033   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
6034     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
6035       tell the compiler not to include the system malloc implementation.
6036       Fixes bug 20424; bugfix on 0.2.0.20-rc.
6037     - Don't try to use a pragma to temporarily disable the
6038       -Wunused-const-variable warning if the compiler doesn't support
6039       it. Fixes bug 26785; bugfix on 0.3.2.11.
6041   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
6042     - Silence a spurious compiler warning on the GetAdaptersAddresses
6043       function pointer cast. This issue is already fixed by 26481 in
6044       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
6045       bugfix on 0.2.3.11-alpha.
6046     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
6047       supported, and always fails. Some compilers warn about the
6048       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
6049       on 0.2.2.23-alpha.
6051   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
6052     - Don't link or search for pthreads when building for Windows, even
6053       if we are using build environment (like mingw) that provides a
6054       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
6056   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
6057     - Skip a pair of unreliable key generation tests on Windows, until
6058       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
6059       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
6061   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
6062     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
6063     - Pass the module flags to distcheck configure, and log the flags
6064       before running configure. (Backported to 0.2.9 and later as a
6065       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
6067   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
6068     - When a Travis build fails, and showing a log fails, keep trying to
6069       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
6070     - When we use echo in Travis, don't pass a --flag as the first
6071       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
6073   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
6074     - When voting for recommended versions, make sure that all of the
6075       versions are well-formed and parsable. Fixes bug 26485; bugfix
6076       on 0.1.1.6-alpha.
6078   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
6079     - Fix a bug in out sandboxing rules for the openat() syscall.
6080       Previously, no openat() call would be permitted, which would break
6081       filesystem operations on recent glibc versions. Fixes bug 25440;
6082       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
6084   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
6085     - Improve the log message when connection initiators fail to
6086       authenticate direct connections to relays. Fixes bug 26927; bugfix
6087       on 0.3.0.1-alpha.
6089   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
6090     - Fix bug that causes services to not ever rotate their descriptors
6091       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
6092       on 0.3.2.1-alpha.
6094   o Minor bugfixes (onion services, backport from 0.3.4.8):
6095     - Silence a spurious compiler warning in
6096       rend_client_send_introduction(). Fixes bug 27463; bugfix
6097       on 0.1.1.2-alpha.
6099   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
6100     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
6101       on 0.3.1.5-alpha.
6102     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
6103       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
6104     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
6105       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
6107   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
6108     - Log a protocol warning when single onion services or Tor2web clients
6109       fail to authenticate direct connections to relays.
6110       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
6112   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
6113     - Disable core dumps in test_bt.sh, to avoid failures in "make
6114       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
6116   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
6117     - When running make test-network-all, use the mixed+hs-v2 network.
6118       (A previous fix to chutney removed v3 onion services from the
6119       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
6120       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
6121     - Before running make test-network-all, delete old logs and test
6122       result files, to avoid spurious failures. Fixes bug 27295; bugfix
6123       on 0.2.7.3-rc.
6125   o Minor bugfixes (testing, openssl compatibility):
6126     - Our "tortls/cert_matches_key" unit test no longer relies on OpenSSL
6127       internals.  Previously, it relied on unsupported OpenSSL behavior in
6128       a way that caused it to crash with OpenSSL 1.0.2p. Fixes bug 27226;
6129       bugfix on 0.2.5.1-alpha.
6131   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
6132     - Our "tortls/cert_matches_key" unit test no longer relies on
6133       OpenSSL internals. Previously, it relied on unsupported OpenSSL
6134       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
6135       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
6137   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
6138     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
6139       27185; bugfix on 0.2.2.2-alpha.
6142 Changes in version 0.3.3.10 - 2018-09-10
6143   Tor 0.3.3.10 backports numerous fixes from later versions of Tor.
6145   o Minor features (bug workaround, backport from 0.3.4.7-rc):
6146     - Compile correctly on systems that provide the C11 stdatomic.h
6147       header, but where C11 atomic functions don't actually compile.
6148       Closes ticket 26779; workaround for Debian issue 903709.
6150   o Minor features (compatibility, backport from 0.3.4.8):
6151     - Tell OpenSSL to maintain backward compatibility with previous
6152       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
6153       ciphers are disabled by default. Closes ticket 27344.
6155   o Minor features (continuous integration, backport from 0.3.4.7-rc):
6156     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
6157     - Enable macOS builds in our Travis CI configuration. Closes
6158       ticket 24629.
6159     - Install libcap-dev and libseccomp2-dev so these optional
6160       dependencies get tested on Travis CI. Closes ticket 26560.
6161     - Run asciidoc during Travis CI. Implements ticket 27087.
6162     - Use ccache in our Travis CI configuration. Closes ticket 26952.
6164   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
6165     - Use cargo cache in our Travis CI configuration. Closes
6166       ticket 26952.
6168   o Minor features (controller, backport from 0.3.4.6-rc):
6169     - The control port now exposes the list of HTTPTunnelPorts and
6170       ExtOrPorts via GETINFO net/listeners/httptunnel and
6171       net/listeners/extor respectively. Closes ticket 26647.
6173   o Minor features (directory authorities, backport from 0.3.4.7-rc):
6174     - Authorities no longer vote to make the subprotocol version
6175       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
6176       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
6178   o Minor features (geoip):
6179     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
6180       Country database. Closes ticket 27089.
6182   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
6183     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
6184       tell the compiler not to include the system malloc implementation.
6185       Fixes bug 20424; bugfix on 0.2.0.20-rc.
6186     - Don't try to use a pragma to temporarily disable the
6187       -Wunused-const-variable warning if the compiler doesn't support
6188       it. Fixes bug 26785; bugfix on 0.3.2.11.
6190   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
6191     - Silence a spurious compiler warning on the GetAdaptersAddresses
6192       function pointer cast. This issue is already fixed by 26481 in
6193       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
6194       bugfix on 0.2.3.11-alpha.
6195     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
6196       supported, and always fails. Some compilers warn about the
6197       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
6198       on 0.2.2.23-alpha.
6200   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
6201     - Don't link or search for pthreads when building for Windows, even
6202       if we are using build environment (like mingw) that provides a
6203       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
6205   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
6206     - Skip a pair of unreliable key generation tests on Windows, until
6207       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
6208       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
6210   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
6211     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
6212     - Pass the module flags to distcheck configure, and log the flags
6213       before running configure. (Backported to 0.2.9 and later as a
6214       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
6216   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
6217     - When a Travis build fails, and showing a log fails, keep trying to
6218       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
6219     - When we use echo in Travis, don't pass a --flag as the first
6220       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
6222   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
6223     - When voting for recommended versions, make sure that all of the
6224       versions are well-formed and parsable. Fixes bug 26485; bugfix
6225       on 0.1.1.6-alpha.
6227   o Minor bugfixes (in-process restart, backport from 0.3.4.7-rc):
6228     - Always call tor_free_all() when leaving tor_run_main(). When we
6229       did not, restarting tor in-process would cause an assertion
6230       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
6232   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
6233     - Fix a bug in our sandboxing rules for the openat() syscall.
6234       Previously, no openat() call would be permitted, which would break
6235       filesystem operations on recent glibc versions. Fixes bug 25440;
6236       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
6238   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
6239     - Improve the log message when connection initiators fail to
6240       authenticate direct connections to relays. Fixes bug 26927; bugfix
6241       on 0.3.0.1-alpha.
6243   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
6244     - Fix bug that causes services to not ever rotate their descriptors
6245       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
6246       on 0.3.2.1-alpha.
6248   o Minor bugfixes (onion services, backport from 0.3.4.8):
6249     - Silence a spurious compiler warning in
6250       rend_client_send_introduction(). Fixes bug 27463; bugfix
6251       on 0.1.1.2-alpha.
6253   o Minor bugfixes (portability, backport from 0.3.4.6-rc):
6254     - Work around two different bugs in the OS X 10.10 and later SDKs
6255       that would prevent us from successfully targeting earlier versions
6256       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
6258   o Minor bugfixes (portability, backport from 0.3.4.7-rc):
6259     - Fix compilation of the unit tests on GNU/Hurd, which does not
6260       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
6261       from "paulusASol".
6263   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
6264     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
6265       on 0.3.1.5-alpha.
6266     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
6267       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
6268     - Protover parsing was accepting the presence of whitespace in
6269       version strings, which the C implementation would choke on, e.g.
6270       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
6271     - Protover parsing was ignoring a 2nd hyphen and everything after
6272       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
6273       on 0.3.3.1-alpha.
6274     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
6275       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
6276     - cd to ${abs_top_builddir}/src/rust before running cargo in
6277       src/test/test_rust.sh. This makes the working directory consistent
6278       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
6280   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
6281     - Log a protocol warning when single onion services or Tor2web clients
6282       fail to authenticate direct connections to relays.
6283       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
6285   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
6286     - Disable core dumps in test_bt.sh, to avoid failures in "make
6287       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
6289   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
6290     - When running make test-network-all, use the mixed+hs-v2 network.
6291       (A previous fix to chutney removed v3 onion services from the
6292       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
6293       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
6294     - Before running make test-network-all, delete old logs and test
6295       result files, to avoid spurious failures. Fixes bug 27295; bugfix
6296       on 0.2.7.3-rc.
6298   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
6299     - Our "tortls/cert_matches_key" unit test no longer relies on
6300       OpenSSL internals. Previously, it relied on unsupported OpenSSL
6301       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
6302       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
6304   o Minor bugfixes (v3 onion services, backport from 0.3.4.6-rc):
6305     - Stop sending ed25519 link specifiers in v3 onion service introduce
6306       cells and descriptors, when the rendezvous or introduction point
6307       doesn't support ed25519 link authentication. Fixes bug 26627;
6308       bugfix on 0.3.2.4-alpha.
6310   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
6311     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
6312       27185; bugfix on 0.2.2.2-alpha.
6315 Changes in version 0.3.4.8 - 2018-09-10
6316   Tor 0.3.4.8 is the first stable release in its series; it includes
6317   compilation and portability fixes.
6319   The Tor 0.3.4 series includes improvements for running Tor in
6320   low-power and embedded environments, which should help performance in
6321   general. We've begun work on better modularity, and included preliminary
6322   changes on the directory authority side to accommodate a new bandwidth
6323   measurement system.  We've also integrated more continuous-integration
6324   systems into our development process, and made corresponding changes to
6325   Tor's testing infrastructure.  Finally, we've continued to refine
6326   our anti-denial-of-service code.
6328   Below are the changes since 0.3.4.7-rc.  For a complete list of changes
6329   since 0.3.3.9, see the ReleaseNotes file.
6331   o Minor features (compatibility):
6332     - Tell OpenSSL to maintain backward compatibility with previous
6333       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
6334       ciphers are disabled by default. Closes ticket 27344.
6336   o Minor features (continuous integration):
6337     - Log the compiler path and version during Appveyor builds.
6338       Implements ticket 27449.
6339     - Show config.log and test-suite.log after failed Appveyor builds.
6340       Also upload the zipped full logs as a build artifact. Implements
6341       ticket 27430.
6343   o Minor bugfixes (compilation):
6344     - Silence a spurious compiler warning on the GetAdaptersAddresses
6345       function pointer cast. This issue is already fixed by 26481 in
6346       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
6347       bugfix on 0.2.3.11-alpha.
6348     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
6349       supported, and always fails. Some compilers warn about the
6350       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
6351       on 0.2.2.23-alpha.
6353   o Minor bugfixes (continuous integration):
6354     - Disable gcc hardening in Appveyor Windows 64-bit builds. As of
6355       August 29 2018, Appveyor images come with gcc 8.2.0 by default.
6356       Executables compiled for 64-bit Windows with this version of gcc
6357       crash when Tor's --enable-gcc-hardening flag is set. Fixes bug
6358       27460; bugfix on 0.3.4.1-alpha.
6359     - When a Travis build fails, and showing a log fails, keep trying to
6360       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
6361     - When we use echo in Travis, don't pass a --flag as the first
6362       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
6364   o Minor bugfixes (onion services):
6365     - Silence a spurious compiler warning in
6366       rend_client_send_introduction(). Fixes bug 27463; bugfix
6367       on 0.1.1.2-alpha.
6369   o Minor bugfixes (testing, chutney):
6370     - When running make test-network-all, use the mixed+hs-v2 network.
6371       (A previous fix to chutney removed v3 onion services from the
6372       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
6373       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
6374     - Before running make test-network-all, delete old logs and test
6375       result files, to avoid spurious failures. Fixes bug 27295; bugfix
6376       on 0.2.7.3-rc.
6378 Changes in version 0.3.4.7-rc - 2018-08-24
6379   Tor 0.3.4.7-rc fixes several small compilation, portability, and
6380   correctness issues in previous versions of Tor. This version is a
6381   release candidate: if no serious bugs are found, we expect that the
6382   stable 0.3.4 release will be (almost) the same as this release.
6384   o Minor features (bug workaround):
6385     - Compile correctly on systems that provide the C11 stdatomic.h
6386       header, but where C11 atomic functions don't actually compile.
6387       Closes ticket 26779; workaround for Debian issue 903709.
6389   o Minor features (continuous integration):
6390     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
6391     - Enable macOS builds in our Travis CI configuration. Closes
6392       ticket 24629.
6393     - Install libcap-dev and libseccomp2-dev so these optional
6394       dependencies get tested on Travis CI. Closes ticket 26560.
6395     - Only post Appveyor IRC notifications when the build fails.
6396       Implements ticket 27275.
6397     - Run asciidoc during Travis CI. Implements ticket 27087.
6398     - Use ccache in our Travis CI configuration. Closes ticket 26952.
6400   o Minor features (continuous integration, rust):
6401     - Use cargo cache in our Travis CI configuration. Closes
6402       ticket 26952.
6404   o Minor features (directory authorities):
6405     - Authorities no longer vote to make the subprotocol version
6406       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
6407       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
6409   o Minor features (geoip):
6410     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
6411       Country database. Closes ticket 27089.
6413   o Minor bugfixes (compilation, windows):
6414     - Don't link or search for pthreads when building for Windows, even
6415       if we are using build environment (like mingw) that provides a
6416       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
6418   o Minor bugfixes (continuous integration):
6419     - Improve Appveyor CI IRC logging. Generate correct branches and
6420       URLs for pull requests and tags. Use unambiguous short commits.
6421       Fixes bug 26979; bugfix on master.
6422     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
6423     - Pass the module flags to distcheck configure, and log the flags
6424       before running configure. (Backported to 0.2.9 and later as a
6425       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
6427   o Minor bugfixes (in-process restart):
6428     - Always call tor_free_all() when leaving tor_run_main(). When we
6429       did not, restarting tor in-process would cause an assertion
6430       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
6432   o Minor bugfixes (linux seccomp2 sandbox):
6433     - Fix a bug in out sandboxing rules for the openat() syscall.
6434       Previously, no openat() call would be permitted, which would break
6435       filesystem operations on recent glibc versions. Fixes bug 25440;
6436       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
6438   o Minor bugfixes (onion services):
6439     - Fix bug that causes services to not ever rotate their descriptors
6440       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
6441       on 0.3.2.1-alpha.
6443   o Minor bugfixes (portability):
6444     - Fix compilation of the unit tests on GNU/Hurd, which does not
6445       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
6446       from "paulusASol".
6448   o Minor bugfixes (rust):
6449     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
6450       on 0.3.1.5-alpha.
6451     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
6452       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
6453     - Protover parsing was accepting the presence of whitespace in
6454       version strings, which the C implementation would choke on, e.g.
6455       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
6456     - Protover parsing was ignoring a 2nd hyphen and everything after
6457       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
6458       on 0.3.3.1-alpha.
6459     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
6460       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
6461     - cd to ${abs_top_builddir}/src/rust before running cargo in
6462       src/test/test_rust.sh. This makes the working directory consistent
6463       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
6465   o Minor bugfixes (testing, bootstrap):
6466     - When calculating bootstrap progress, check exit policies and the
6467       exit flag. Previously, Tor would only check the exit flag, which
6468       caused race conditions in small and fast networks like chutney.
6469       Fixes bug 27236; bugfix on 0.2.6.3-alpha.
6471   o Minor bugfixes (testing, openssl compatibility):
6472     - Our "tortls/cert_matches_key" unit test no longer relies on
6473       OpenSSL internals. Previously, it relied on unsupported OpenSSL
6474       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
6475       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
6477   o Minor bugfixes (Windows, compilation):
6478     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
6479       27185; bugfix on 0.2.2.2-alpha.
6482 Changes in version 0.3.4.6-rc - 2018-08-06
6483   Tor 0.3.4.6-rc fixes several small compilation, portability, and
6484   correctness issues in previous versions of Tor. This version is a
6485   release candidate: if no serious bugs are found, we expect that the
6486   stable 0.3.4 release will be (almost) the same as this release.
6488   o Major bugfixes (event scheduler):
6489     - When we enable a periodic event, schedule it in the event loop
6490       rather than running it immediately. Previously, we would re-run
6491       periodic events immediately in the middle of (for example)
6492       changing our options, with unpredictable effects. Fixes bug 27003;
6493       bugfix on 0.3.4.1-alpha.
6495   o Minor features (compilation):
6496     - When building Tor, prefer to use Python 3 over Python 2, and more
6497       recent (contemplated) versions over older ones. Closes
6498       ticket 26372.
6499     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
6500       tell the compiler not to include the system malloc implementation.
6501       Fixes bug 20424; bugfix on 0.2.0.20-rc.
6502     - Don't try to use a pragma to temporarily disable the
6503       -Wunused-const-variable warning if the compiler doesn't support
6504       it. Fixes bug 26785; bugfix on 0.3.2.11.
6506   o Minor bugfixes (continuous integration):
6507     - Skip a pair of unreliable key generation tests on Windows, until
6508       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
6509       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
6511   o Minor features (controller):
6512     - The control port now exposes the list of HTTPTunnelPorts and
6513       ExtOrPorts via GETINFO net/listeners/httptunnel and
6514       net/listeners/extor respectively. Closes ticket 26647.
6516   o Minor bugfixes (directory authority):
6517     - When voting for recommended versions, make sure that all of the
6518       versions are well-formed and parsable. Fixes bug 26485; bugfix
6519       on 0.1.1.6-alpha.
6521   o Minor features (geoip):
6522     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
6523       Country database. Closes ticket 26674.
6525   o Minor features (Rust, portability):
6526     - Rust cross-compilation is now supported. Closes ticket 25895.
6528   o Minor bugfixes (compilation):
6529     - Update build system so that tor builds again with --disable-unittests
6530       after recent refactoring. Fixes bug 26789; bugfix on 0.3.4.3-alpha.
6531     - Fix a compilation warning on some versions of GCC when building
6532       code that calls routerinfo_get_my_routerinfo() twice, assuming
6533       that the second call will succeed if the first one did. Fixes bug
6534       26269; bugfix on 0.2.8.2-alpha.
6536   o Minor bugfixes (controller):
6537     - Report the port correctly when a port is configured to bind to
6538       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
6539     - Parse the "HSADDRESS=" parameter in HSPOST commands properly.
6540       Previously, it was misparsed and ignored. Fixes bug 26523; bugfix
6541       on 0.3.3.1-alpha. Patch by "akwizgran".
6543   o Minor bugfixes (correctness, flow control):
6544     - Upon receiving a stream-level SENDME cell, verify that our window
6545       has not grown too large. Fixes bug 26214; bugfix on svn
6546       r54 (pre-0.0.1).
6548   o Minor bugfixes (memory, correctness):
6549     - Fix a number of small memory leaks identified by coverity. Fixes
6550       bug 26467; bugfix on numerous Tor versions.
6552   o Minor bugfixes (logging):
6553     - Improve the log message when connection initiators fail to
6554       authenticate direct connections to relays. Fixes bug 26927; bugfix
6555       on 0.3.0.1-alpha.
6557   o Minor bugfixes (portability):
6558     - Avoid a compilation error in test_bwmgt.c on Solaris 10. Fixes bug
6559       26994; bugfix on 0.3.4.1-alpha.
6560     - Work around two different bugs in the OS X 10.10 and later SDKs
6561       that would prevent us from successfully targeting earlier versions
6562       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
6564   o Minor bugfixes (single onion services, Tor2web):
6565     - Log a protocol warning when single onion services or Tor2web
6566       clients fail to authenticate direct connections to relays. Fixes
6567       bug 26924; bugfix on 0.2.9.1-alpha.
6569   o Minor bugfixes (testing):
6570     - Disable core dumps in test_bt.sh, to avoid failures in "make
6571       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
6573   o Minor bugfixes (testing, compatibility):
6574     - When running the ntor_ref.py and hs_ntor_ref.py tests, make sure
6575       only to pass strings (rather than "bytes" objects) to the Python
6576       subprocess module. Python 3 on Windows seems to require this.
6577       Fixes bug 26535; bugfix on 0.2.5.5-alpha (for ntor_ref.py) and
6578       0.3.1.1-alpha (for hs_ntor_ref.py).
6580   o Minor bugfixes (v3 onion services):
6581     - Stop sending ed25519 link specifiers in v3 onion service introduce
6582       cells and descriptors, when the rendezvous or introduction point
6583       doesn't support ed25519 link authentication. Fixes bug 26627;
6584       bugfix on 0.3.2.4-alpha.
6587 Changes in version 0.3.4.5-rc - 2018-07-13
6588   Tor 0.3.4.5-rc moves to a new bridge authority, meaning people running
6589   bridge relays should upgrade.
6591   o Directory authority changes:
6592     - The "Bifroest" bridge authority has been retired; the new bridge
6593       authority is "Serge", and it is operated by George from the
6594       TorBSD project. Closes ticket 26771.
6597 Changes in version 0.3.3.9 - 2018-07-13
6598   Tor 0.3.3.9 moves to a new bridge authority, meaning people running
6599   bridge relays should upgrade.
6601   o Directory authority changes:
6602     - The "Bifroest" bridge authority has been retired; the new bridge
6603       authority is "Serge", and it is operated by George from the
6604       TorBSD project. Closes ticket 26771.
6607 Changes in version 0.3.2.11 - 2018-07-13
6608   Tor 0.3.2.11 moves to a new bridge authority, meaning people running
6609   bridge relays should upgrade. We also take this opportunity to backport
6610   other minor fixes.
6612   o Directory authority changes:
6613     - The "Bifroest" bridge authority has been retired; the new bridge
6614       authority is "Serge", and it is operated by George from the
6615       TorBSD project. Closes ticket 26771.
6617   o Directory authority changes (backport from 0.3.3.7):
6618     - Add an IPv6 address for the "dannenberg" directory authority.
6619       Closes ticket 26343.
6621   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
6622     - When directory authorities read a zero-byte bandwidth file, they
6623       would previously log a warning with the contents of an
6624       uninitialised buffer. They now log a warning about the empty file
6625       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
6627   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
6628     - Correctly detect when onion services get disabled after HUP. Fixes
6629       bug 25761; bugfix on 0.3.2.1.
6631   o Minor features (sandbox, backport from 0.3.3.4-alpha):
6632     - Explicitly permit the poll() system call when the Linux
6633       seccomp2-based sandbox is enabled: apparently, some versions of
6634       libc use poll() when calling getpwnam(). Closes ticket 25313.
6636   o Minor feature (continuous integration, backport from 0.3.3.5-rc):
6637     - Update the Travis CI configuration to use the stable Rust channel,
6638       now that we have decided to require that. Closes ticket 25714.
6640   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
6641     - Our .travis.yml configuration now includes support for testing the
6642       results of "make distcheck". (It's not uncommon for "make check"
6643       to pass but "make distcheck" to fail.) Closes ticket 25814.
6644     - Our Travis CI configuration now integrates with the Coveralls
6645       coverage analysis tool. Closes ticket 25818.
6647   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
6648     - Add several checks to detect whether Tor relays are uploading
6649       their descriptors without specifying why they regenerated them.
6650       Diagnostic for ticket 25686.
6652   o Minor features (compilation, backport from 0.3.4.4-rc):
6653     - When building Tor, prefer to use Python 3 over Python 2, and more
6654       recent (contemplated) versions over older ones. Closes
6655       ticket 26372.
6657   o Minor features (geoip):
6658     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
6659       Country database. Closes ticket 26674.
6661   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
6662     - Upon receiving a malformed connected cell, stop processing the
6663       cell immediately. Previously we would mark the connection for
6664       close, but continue processing the cell as if the connection were
6665       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
6667   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
6668     - Allow the nanosleep() system call, which glibc uses to implement
6669       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
6671   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
6672     - When running the hs_ntor_ref.py test, make sure only to pass
6673       strings (rather than "bytes" objects) to the Python subprocess
6674       module. Python 3 on Windows seems to require this. Fixes bug
6675       26535; bugfix on 0.3.1.1-alpha.
6676     - When running the ntor_ref.py test, make sure only to pass strings
6677       (rather than "bytes" objects) to the Python subprocess module.
6678       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
6679       on 0.2.5.5-alpha.
6681   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
6682     - Work around a change in OpenSSL 1.1.1 where return values that
6683       would previously indicate "no password" now indicate an empty
6684       password. Without this workaround, Tor instances running with
6685       OpenSSL 1.1.1 would accept descriptors that other Tor instances
6686       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
6688   o Minor bugfixes (documentation, backport from 0.3.3.5-rc):
6689     - Document that the PerConnBW{Rate,Burst} options will fall back to
6690       their corresponding consensus parameters only if those parameters
6691       are set. Previously we had claimed that these values would always
6692       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
6694   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
6695     - Fix a compilation warning on some versions of GCC when building
6696       code that calls routerinfo_get_my_routerinfo() twice, assuming
6697       that the second call will succeed if the first one did. Fixes bug
6698       26269; bugfix on 0.2.8.2-alpha.
6700   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
6701     - Don't consider Tor running as a client if the ControlPort is open,
6702       but no actual client ports are open. Fixes bug 26062; bugfix
6703       on 0.2.9.4-alpha.
6705   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
6706     - Prevent a possible out-of-bounds smartlist read in
6707       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
6709   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
6710     - Fix a very unlikely (impossible, we believe) null pointer
6711       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
6712       Coverity; this is CID 1430932.
6714   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
6715     - Fix a memory leak when a v3 onion service is configured and gets a
6716       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
6717     - When parsing the descriptor signature, look for the token plus an
6718       extra white-space at the end. This is more correct but also will
6719       allow us to support new fields that might start with "signature".
6720       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
6722   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
6723     - Relays now correctly block attempts to re-extend to the previous
6724       relay by Ed25519 identity. Previously they would warn in this
6725       case, but not actually reject the attempt. Fixes bug 26158; bugfix
6726       on 0.3.0.1-alpha.
6728   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
6729     - Avoid a crash when running with DirPort set but ORPort turned off.
6730       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
6732   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
6733     - Silence unused-const-variable warnings in zstd.h with some GCC
6734       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
6736   o Minor bugfixes (testing, backport from 0.3.3.4-alpha):
6737     - Avoid intermittent test failures due to a test that had relied on
6738       onion service introduction point creation finishing within 5
6739       seconds of real clock time. Fixes bug 25450; bugfix
6740       on 0.3.1.3-alpha.
6742   o Minor bugfixes (compilation, backport from 0.3.3.4-alpha):
6743     - Fix a C99 compliance issue in our configuration script that caused
6744       compilation issues when compiling Tor with certain versions of
6745       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
6747   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
6748     - Fix a number of small memory leaks identified by coverity. Fixes
6749       bug 26467; bugfix on numerous Tor versions.
6751   o Code simplification and refactoring (backport from 0.3.3.5-rc):
6752     - Move the list of default directory authorities to its own file.
6753       Closes ticket 24854. Patch by "beastr0".
6756 Changes in version 0.2.9.16 - 2018-07-13
6757   Tor 0.2.9.16 moves to a new bridge authority, meaning people running
6758   bridge relays should upgrade. We also take this opportunity to backport
6759   other minor fixes.
6761   o Directory authority changes:
6762     - The "Bifroest" bridge authority has been retired; the new bridge
6763       authority is "Serge", and it is operated by George from the
6764       TorBSD project. Closes ticket 26771.
6766   o Directory authority changes (backport from 0.3.3.7):
6767     - Add an IPv6 address for the "dannenberg" directory authority.
6768       Closes ticket 26343.
6770   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
6771     - When directory authorities read a zero-byte bandwidth file, they
6772       would previously log a warning with the contents of an
6773       uninitialised buffer. They now log a warning about the empty file
6774       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
6776   o Minor features (sandbox, backport from 0.3.3.4-alpha):
6777     - Explicitly permit the poll() system call when the Linux
6778       seccomp2-based sandbox is enabled: apparently, some versions of
6779       libc use poll() when calling getpwnam(). Closes ticket 25313.
6781   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
6782     - Our .travis.yml configuration now includes support for testing the
6783       results of "make distcheck". (It's not uncommon for "make check"
6784       to pass but "make distcheck" to fail.) Closes ticket 25814.
6785     - Our Travis CI configuration now integrates with the Coveralls
6786       coverage analysis tool. Closes ticket 25818.
6788   o Minor features (compilation, backport from 0.3.4.4-rc):
6789     - When building Tor, prefer to use Python 3 over Python 2, and more
6790       recent (contemplated) versions over older ones. Closes
6791       ticket 26372.
6793   o Minor features (geoip):
6794     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
6795       Country database. Closes ticket 26674.
6797   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
6798     - Upon receiving a malformed connected cell, stop processing the
6799       cell immediately. Previously we would mark the connection for
6800       close, but continue processing the cell as if the connection were
6801       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
6803   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
6804     - Allow the nanosleep() system call, which glibc uses to implement
6805       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
6807   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
6808     - When running the ntor_ref.py test, make sure only to pass strings
6809       (rather than "bytes" objects) to the Python subprocess module.
6810       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
6811       on 0.2.5.5-alpha.
6813   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
6814     - Work around a change in OpenSSL 1.1.1 where return values that
6815       would previously indicate "no password" now indicate an empty
6816       password. Without this workaround, Tor instances running with
6817       OpenSSL 1.1.1 would accept descriptors that other Tor instances
6818       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
6820   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
6821     - Fix a compilation warning on some versions of GCC when building
6822       code that calls routerinfo_get_my_routerinfo() twice, assuming
6823       that the second call will succeed if the first one did. Fixes bug
6824       26269; bugfix on 0.2.8.2-alpha.
6826   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
6827     - Don't consider Tor running as a client if the ControlPort is open,
6828       but no actual client ports are open. Fixes bug 26062; bugfix
6829       on 0.2.9.4-alpha.
6831   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
6832     - Prevent a possible out-of-bounds smartlist read in
6833       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
6835   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
6836     - Fix a very unlikely (impossible, we believe) null pointer
6837       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
6838       Coverity; this is CID 1430932.
6840   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
6841     - Fix a number of small memory leaks identified by coverity. Fixes
6842       bug 26467; bugfix on numerous Tor versions.
6844   o Code simplification and refactoring (backport from 0.3.3.5-rc):
6845     - Move the list of default directory authorities to its own file.
6846       Closes ticket 24854. Patch by "beastr0".
6849 Changes in version 0.3.4.4-rc - 2018-07-09
6850   Tor 0.3.4.4-rc fixes several small compilation, portability, and
6851   correctness issues in previous versions of Tor. This version is a
6852   release candidate: if no serious bugs are found, we expect that the
6853   stable 0.3.4 release will be (almost) the same as this release.
6855   o Minor features (compilation):
6856     - When building Tor, prefer to use Python 3 over Python 2, and more
6857       recent (contemplated) versions over older ones. Closes
6858       ticket 26372.
6860   o Minor features (geoip):
6861     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
6862       Country database. Closes ticket 26674.
6864   o Minor features (Rust, portability):
6865     - Rust cross-compilation is now supported. Closes ticket 25895.
6867   o Minor bugfixes (compilation):
6868     - Fix a compilation warning on some versions of GCC when building
6869       code that calls routerinfo_get_my_routerinfo() twice, assuming
6870       that the second call will succeed if the first one did. Fixes bug
6871       26269; bugfix on 0.2.8.2-alpha.
6873   o Minor bugfixes (control port):
6874     - Report the port correctly when a port is configured to bind to
6875       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
6876     - Handle the HSADDRESS= argument to the HSPOST command properly.
6877       (Previously, this argument was misparsed and thus ignored.) Fixes
6878       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
6880   o Minor bugfixes (correctness, flow control):
6881     - Upon receiving a stream-level SENDME cell, verify that our window
6882       has not grown too large. Fixes bug 26214; bugfix on svn
6883       r54 (pre-0.0.1).
6885   o Minor bugfixes (memory, correctness):
6886     - Fix a number of small memory leaks identified by coverity. Fixes
6887       bug 26467; bugfix on numerous Tor versions.
6889   o Minor bugfixes (testing, compatibility):
6890     - When running the hs_ntor_ref.py test, make sure only to pass
6891       strings (rather than "bytes" objects) to the Python subprocess
6892       module. Python 3 on Windows seems to require this. Fixes bug
6893       26535; bugfix on 0.3.1.1-alpha.
6894     - When running the ntor_ref.py test, make sure only to pass strings
6895       (rather than "bytes" objects) to the Python subprocess module.
6896       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
6897       on 0.2.5.5-alpha.
6900 Changes in version 0.3.3.8 - 2018-07-09
6901   Tor 0.3.3.8 backports several changes from the 0.3.4.x series, including
6902   fixes for a memory leak affecting directory authorities.
6904   o Major bugfixes (directory authority, backport from 0.3.4.3-alpha):
6905     - Stop leaking memory on directory authorities when planning to
6906       vote. This bug was crashing authorities by exhausting their
6907       memory. Fixes bug 26435; bugfix on 0.3.3.6.
6909   o Major bugfixes (rust, testing, backport from 0.3.4.3-alpha):
6910     - Make sure that failing tests in Rust will actually cause the build
6911       to fail: previously, they were ignored. Fixes bug 26258; bugfix
6912       on 0.3.3.4-alpha.
6914   o Minor features (compilation, backport from 0.3.4.4-rc):
6915     - When building Tor, prefer to use Python 3 over Python 2, and more
6916       recent (contemplated) versions over older ones. Closes
6917       ticket 26372.
6919   o Minor features (geoip):
6920     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
6921       Country database. Closes ticket 26674.
6923   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
6924     - Add several checks to detect whether Tor relays are uploading
6925       their descriptors without specifying why they regenerated them.
6926       Diagnostic for ticket 25686.
6928   o Minor bugfixes (circuit path selection, backport from 0.3.4.1-alpha):
6929     - Don't count path selection failures as circuit build failures.
6930       This change should eliminate cases where Tor blames its guard or
6931       the network for situations like insufficient microdescriptors
6932       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
6933       on 0.3.3.1-alpha.
6935   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
6936     - Fix a compilation warning on some versions of GCC when building
6937       code that calls routerinfo_get_my_routerinfo() twice, assuming
6938       that the second call will succeed if the first one did. Fixes bug
6939       26269; bugfix on 0.2.8.2-alpha.
6941   o Minor bugfixes (control port, backport from 0.3.4.4-rc):
6942     - Handle the HSADDRESS= argument to the HSPOST command properly.
6943       (Previously, this argument was misparsed and thus ignored.) Fixes
6944       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
6946   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
6947     - Fix a number of small memory leaks identified by coverity. Fixes
6948       bug 26467; bugfix on numerous Tor versions.
6950   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
6951     - Relays now correctly block attempts to re-extend to the previous
6952       relay by Ed25519 identity. Previously they would warn in this
6953       case, but not actually reject the attempt. Fixes bug 26158; bugfix
6954       on 0.3.0.1-alpha.
6956   o Minor bugfixes (restart-in-process, backport from 0.3.4.1-alpha):
6957     - When shutting down, Tor now clears all the flags in the control.c
6958       module. This should prevent a bug where authentication cookies are
6959       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
6961   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
6962     - When running the hs_ntor_ref.py test, make sure only to pass
6963       strings (rather than "bytes" objects) to the Python subprocess
6964       module. Python 3 on Windows seems to require this. Fixes bug
6965       26535; bugfix on 0.3.1.1-alpha.
6966     - When running the ntor_ref.py test, make sure only to pass strings
6967       (rather than "bytes" objects) to the Python subprocess module.
6968       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
6969       on 0.2.5.5-alpha.
6972 Changes in version 0.3.4.3-alpha - 2018-06-26
6973   Tor 0.3.4.3-alpha fixes several bugs in earlier versions, including
6974   one that was causing stability issues on directory authorities.
6976   o Major bugfixes (directory authority):
6977     - Stop leaking memory on directory authorities when planning to
6978       vote. This bug was crashing authorities by exhausting their
6979       memory. Fixes bug 26435; bugfix on 0.3.3.6.
6981   o Major bugfixes (rust, testing):
6982     - Make sure that failing tests in Rust will actually cause the build
6983       to fail: previously, they were ignored. Fixes bug 26258; bugfix
6984       on 0.3.3.4-alpha.
6986   o Minor feature (directory authorities):
6987     - Stop warning about incomplete bw lines before the first complete
6988       bw line has been found, so that additional header lines can be
6989       ignored. Fixes bug 25960; bugfix on 0.2.2.1-alpha
6991   o Minor features (relay, diagnostic):
6992     - Add several checks to detect whether Tor relays are uploading
6993       their descriptors without specifying why they regenerated them.
6994       Diagnostic for ticket 25686.
6996   o Minor features (unit tests):
6997     - Test complete bandwidth measurements files, and test that
6998       incomplete bandwidth lines only give warnings when the end of the
6999       header has not been detected. Fixes bug 25947; bugfix
7000       on 0.2.2.1-alpha
7002   o Minor bugfixes (compilation):
7003     - Refrain from compiling unit testing related object files when
7004       --disable-unittests is set to configure script. Fixes bug 24891;
7005       bugfix on 0.2.5.1-alpha.
7006     - When linking the libtor_testing.a library, only include the
7007       dirauth object files once. Previously, they were getting added
7008       twice. Fixes bug 26402; bugfix on 0.3.4.1-alpha.
7009     - The --enable-fatal-warnings flag now affects Rust code as well.
7010       Closes ticket 26245.
7012   o Minor bugfixes (onion services):
7013     - Recompute some consensus information after detecting a clock jump,
7014       or after transitioning from a non-live consensus to a live
7015       consensus. We do this to avoid having an outdated state, and
7016       miscalculating the index for next-generation onion services. Fixes
7017       bug 24977; bugfix on 0.3.2.1-alpha.
7019   o Minor bugfixes (relay):
7020     - Relays now correctly block attempts to re-extend to the previous
7021       relay by Ed25519 identity. Previously they would warn in this
7022       case, but not actually reject the attempt. Fixes bug 26158; bugfix
7023       on 0.3.0.1-alpha.
7025   o Minor bugfixes (testing):
7026     - Fix compilation of the doctests in the Rust crypto crate. Fixes
7027       bug 26415; bugfix on 0.3.4.1-alpha.
7028     - Instead of trying to read the geoip configuration files from
7029       within the unit tests, instead create our own ersatz files with
7030       just enough geoip data in the format we expect. Trying to read
7031       from the source directory created problems on Windows with mingw,
7032       where the build system's paths are not the same as the platform's
7033       paths. Fixes bug 25787; bugfix on 0.3.4.1-alpha.
7034     - Refrain from trying to get an item from an empty smartlist in
7035       test_bridges_clear_bridge_list. Set DEBUG_SMARTLIST in unit tests
7036       to catch improper smartlist usage. Furthermore, enable
7037       DEBUG_SMARTLIST globally when build is configured with fragile
7038       hardening. Fixes bug 26196; bugfix on 0.3.4.1-alpha.
7041 Changes in version 0.3.3.7 - 2018-06-12
7042   Tor 0.3.3.7 backports several changes from the 0.3.4.x series, including
7043   fixes for bugs affecting compatibility and stability.
7045   o Directory authority changes:
7046     - Add an IPv6 address for the "dannenberg" directory authority.
7047       Closes ticket 26343.
7049   o Minor features (geoip):
7050     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
7051       Country database. Closes ticket 26351.
7053   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
7054     - Work around a change in OpenSSL 1.1.1 where return values that
7055       would previously indicate "no password" now indicate an empty
7056       password. Without this workaround, Tor instances running with
7057       OpenSSL 1.1.1 would accept descriptors that other Tor instances
7058       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
7060   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
7061     - Silence unused-const-variable warnings in zstd.h with some GCC
7062       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
7064   o Minor bugfixes (controller, backport from 0.3.4.2-alpha):
7065     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
7066       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
7067       miscounting the total number of circuits for these field values.)
7068       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
7070   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
7071     - Prevent a possible out-of-bounds smartlist read in
7072       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
7074   o Minor bugfixes (path selection, backport from 0.3.4.1-alpha):
7075     - Only select relays when they have the descriptors we prefer to use
7076       for them. This change fixes a bug where we could select a relay
7077       because it had _some_ descriptor, but reject it later with a
7078       nonfatal assertion error because it didn't have the exact one we
7079       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
7082 Changes in version 0.3.4.2-alpha - 2018-06-12
7083   Tor 0.3.4.2-alpha fixes several minor bugs in the previous alpha
7084   release, and forward-ports an authority-only security fix from 0.3.3.6.
7086   o Directory authority changes:
7087     - Add an IPv6 address for the "dannenberg" directory authority.
7088       Closes ticket 26343.
7090   o Major bugfixes (security, directory authority, denial-of-service, also in 0.3.3.6):
7091     - Fix a bug that could have allowed an attacker to force a directory
7092       authority to use up all its RAM by passing it a maliciously
7093       crafted protocol versions string. Fixes bug 25517; bugfix on
7094       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
7096   o Minor features (continuous integration):
7097     - Add the necessary configuration files for continuous integration
7098       testing on Windows, via the Appveyor platform. Closes ticket
7099       25549. Patches from Marcin Cieślak and Isis Lovecruft.
7101   o Minor features (geoip):
7102     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
7103       Country database. Closes ticket 26351.
7105   o Minor bugfixes (compatibility, openssl):
7106     - Work around a change in OpenSSL 1.1.1 where return values that
7107       would previously indicate "no password" now indicate an empty
7108       password. Without this workaround, Tor instances running with
7109       OpenSSL 1.1.1 would accept descriptors that other Tor instances
7110       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
7112   o Minor bugfixes (compilation):
7113     - Silence unused-const-variable warnings in zstd.h with some GCC
7114       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
7115     - Fix compilation when using OpenSSL 1.1.0 with the "no-deprecated"
7116       flag enabled. Fixes bug 26156; bugfix on 0.3.4.1-alpha.
7117     - Avoid a compiler warning when casting the return value of
7118       smartlist_len() to double with DEBUG_SMARTLIST enabled. Fixes bug
7119       26283; bugfix on 0.2.4.10-alpha.
7121   o Minor bugfixes (control port):
7122     - Do not count 0-length RELAY_COMMAND_DATA cells as valid data in
7123       CIRC_BW events. Previously, such cells were counted entirely in
7124       the OVERHEAD field. Now they are not. Fixes bug 26259; bugfix
7125       on 0.3.4.1-alpha.
7127   o Minor bugfixes (controller):
7128     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
7129       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
7130       miscounting the total number of circuits for these field values.)
7131       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
7133   o Minor bugfixes (hardening):
7134     - Prevent a possible out-of-bounds smartlist read in
7135       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
7137   o Minor bugfixes (onion services):
7138     - Fix a bug that blocked the creation of ephemeral v3 onion
7139       services. Fixes bug 25939; bugfix on 0.3.4.1-alpha.
7141   o Minor bugfixes (test coverage tools):
7142     - Update our "cov-diff" script to handle output from the latest
7143       version of gcov, and to remove extraneous timestamp information
7144       from its output. Fixes bugs 26101 and 26102; bugfix
7145       on 0.2.5.1-alpha.
7148 Changes in version 0.3.3.6 - 2018-05-22
7149   Tor 0.3.3.6 is the first stable release in the 0.3.3 series. It
7150   backports several important fixes from the 0.3.4.1-alpha.
7152   The Tor 0.3.3 series includes controller support and other
7153   improvements for v3 onion services, official support for embedding Tor
7154   within other applications, and our first non-trivial module written in
7155   the Rust programming language. (Rust is still not enabled by default
7156   when building Tor.) And as usual, there are numerous other smaller
7157   bugfixes, features, and improvements.
7159   Below are the changes since 0.3.3.5-rc. For a list of all changes
7160   since 0.3.2.10, see the ReleaseNotes file.
7162   o Major bugfixes (directory authorities, security, backport from 0.3.4.1-alpha):
7163     - When directory authorities read a zero-byte bandwidth file, they
7164       would previously log a warning with the contents of an
7165       uninitialised buffer. They now log a warning about the empty file
7166       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
7168   o Major bugfixes (security, directory authority, denial-of-service):
7169     - Fix a bug that could have allowed an attacker to force a directory
7170       authority to use up all its RAM by passing it a maliciously
7171       crafted protocol versions string. Fixes bug 25517; bugfix on
7172       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
7174   o Major bugfixes (crash, backport from 0.3.4.1-alpha):
7175     - Avoid a rare assertion failure in the circuit build timeout code
7176       if we fail to allow any circuits to actually complete. Fixes bug
7177       25733; bugfix on 0.2.2.2-alpha.
7179   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
7180     - Avoid a crash when testing router reachability on a router that
7181       could have an ed25519 ID, but which does not. Fixes bug 25415;
7182       bugfix on 0.3.3.2-alpha.
7184   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
7185     - Correctly detect when onion services get disabled after HUP. Fixes
7186       bug 25761; bugfix on 0.3.2.1.
7188   o Major bugfixes (relay, denial of service, backport from 0.3.4.1-alpha):
7189     - Impose a limit on circuit cell queue size. The limit can be
7190       controlled by a consensus parameter. Fixes bug 25226; bugfix
7191       on 0.2.4.14-alpha.
7193   o Minor features (compatibility, backport from 0.3.4.1-alpha):
7194     - Avoid some compilation warnings with recent versions of LibreSSL.
7195       Closes ticket 26006.
7197   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
7198     - Our .travis.yml configuration now includes support for testing the
7199       results of "make distcheck". (It's not uncommon for "make check"
7200       to pass but "make distcheck" to fail.) Closes ticket 25814.
7201     - Our Travis CI configuration now integrates with the Coveralls
7202       coverage analysis tool. Closes ticket 25818.
7204   o Minor features (geoip):
7205     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
7206       database. Closes ticket 26104.
7208   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
7209     - Don't consider Tor running as a client if the ControlPort is open,
7210       but no actual client ports are open. Fixes bug 26062; bugfix
7211       on 0.2.9.4-alpha.
7213   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
7214     - Upon receiving a malformed connected cell, stop processing the
7215       cell immediately. Previously we would mark the connection for
7216       close, but continue processing the cell as if the connection were
7217       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
7219   o Minor bugfixes (documentation, backport from 0.3.4.1-alpha):
7220     - Stop saying in the manual that clients cache ipv4 dns answers from
7221       exit relays. We haven't used them since 0.2.6.3-alpha, and in
7222       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
7223       we forgot to say so in the man page. Fixes bug 26052; bugfix
7224       on 0.3.2.6-alpha.
7226   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
7227     - Allow the nanosleep() system call, which glibc uses to implement
7228       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
7230   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
7231     - Fix a memory leak when a v3 onion service is configured and gets a
7232       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
7233     - When parsing the descriptor signature, look for the token plus an
7234       extra white-space at the end. This is more correct but also will
7235       allow us to support new fields that might start with "signature".
7236       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
7238   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
7239     - Avoid a crash when running with DirPort set but ORPort turned off.
7240       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
7242   o Documentation (backport from 0.3.4.1-alpha):
7243     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
7244       ticket 25857. Patch from "CTassisF".
7247 Changes in version 0.3.4.1-alpha - 2018-05-17
7248   Tor 0.3.4.1-alpha is the first release in the 0.3.4.x series. It
7249   includes refactoring to begin reducing Tor's binary size and idle CPU
7250   usage on mobile, along with prep work for new bandwidth scanners,
7251   improvements to the experimental "vanguards" feature, and numerous
7252   other small features and bugfixes.
7254   o New system requirements:
7255     - Tor no longer tries to support old operating systems without
7256       mmap() or some local equivalent. Apparently, compilation on such
7257       systems has been broken for some time, without anybody noticing or
7258       complaining. Closes ticket 25398.
7260   o Major feature (directory authority, modularization):
7261     - The directory authority subsystem has been modularized. The code
7262       is now located in src/or/dirauth/, and is compiled in by default.
7263       To disable the module, the configure option
7264       --disable-module-dirauth has been added. This module may be
7265       disabled by default in some future release. Closes ticket 25610.
7267   o Major features (main loop, CPU usage):
7268     - When Tor is disabled (via DisableNetwork or via hibernation), it
7269       no longer needs to run any per-second events. This change should
7270       make it easier for mobile applications to disable Tor while the
7271       device is sleeping, or Tor is not running. Closes ticket 26063.
7272     - Tor no longer enables all of its periodic events by default.
7273       Previously, Tor would enable all possible main loop events,
7274       regardless of whether it needed them. Furthermore, many of these
7275       events are now disabled with Tor is hibernating or DisableNetwork
7276       is set. This is a big step towards reducing client CPU usage by
7277       reducing the amount of wake-ups the daemon does. Closes ticket
7278       25376 and 25762.
7279     - The bandwidth-limitation logic has been refactored so that
7280       bandwidth calculations are performed on-demand, rather than every
7281       TokenBucketRefillInterval milliseconds. This change should improve
7282       the granularity of our bandwidth calculations, and limit the
7283       number of times that the Tor process needs to wake up when it is
7284       idle. Closes ticket 25373.
7285     - Move responsibility for many operations from a once-per-second
7286       callback to a callback that is only scheduled as needed. Moving
7287       this functionality has allowed us to disable the callback when
7288       Tor's network is disabled. Once enough items are removed from our
7289       once-per-second callback, we can eliminate it entirely to conserve
7290       CPU when idle. The functionality removed includes: closing
7291       connections, circuits, and channels (ticket 25932); consensus
7292       voting (25937); flushing log callbacks (25951); honoring delayed
7293       SIGNEWNYM requests (25949); rescanning the consensus cache
7294       (25931); saving the state file to disk (25948); warning relay
7295       operators about unreachable ports (25952); and keeping track of
7296       Tor's uptime (26009).
7298   o Major bugfixes (directory authorities, security):
7299     - When directory authorities read a zero-byte bandwidth file, they
7300       would previously log a warning with the contents of an
7301       uninitialised buffer. They now log a warning about the empty file
7302       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
7304   o Major bugfixes (crash):
7305     - Avoid a rare assertion failure in the circuit build timeout code
7306       if we fail to allow any circuits to actually complete. Fixes bug
7307       25733; bugfix on 0.2.2.2-alpha.
7309   o Major bugfixes (directory authority):
7310     - Avoid a crash when testing router reachability on a router that
7311       could have an ed25519 ID, but which does not. Fixes bug 25415;
7312       bugfix on 0.3.3.2-alpha.
7314   o Major bugfixes (onion service):
7315     - Correctly detect when onion services get disabled after HUP. Fixes
7316       bug 25761; bugfix on 0.3.2.1.
7318   o Major bugfixes (protover, voting):
7319     - Revise Rust implementation of protover to use a more memory-
7320       efficient voting algorithm and corresponding data structures, thus
7321       avoiding a potential (but small impact) DoS attack where specially
7322       crafted protocol strings would expand to several potential
7323       megabytes in memory. In the process, several portions of code were
7324       revised to be methods on new, custom types, rather than functions
7325       taking interchangeable types, thus increasing type safety of the
7326       module. Custom error types and handling were added as well, in
7327       order to facilitate better error dismissal/handling in outside
7328       crates and avoid mistakenly passing an internal error string to C
7329       over the FFI boundary. Many tests were added, and some previous
7330       differences between the C and Rust implementations have been
7331       remedied. Fixes bug 24031; bugfix on 0.3.3.1-alpha.
7333   o Major bugfixes (relay, denial of service):
7334     - Impose a limit on circuit cell queue size. The limit can be
7335       controlled by a consensus parameter. Fixes bug 25226; bugfix
7336       on 0.2.4.14-alpha.
7338   o Minor features (accounting):
7339     - When Tor becomes dormant, it now uses a scheduled event to wake up
7340       at the right time. Previously, we would use the per-second timer
7341       to check whether to wake up, but we no longer have any per-second
7342       timers enabled when the network is disabled. Closes ticket 26064.
7344   o Minor features (code quality):
7345     - Add optional spell-checking for the Tor codebase, using the
7346       "misspell" program. To use this feature, run "make check-typos".
7347       Closes ticket 25024.
7349   o Minor features (compatibility):
7350     - Tor now detects versions of OpenSSL 1.1.0 and later compiled with
7351       the no-deprecated option, and builds correctly with them. Closes
7352       tickets 19429, 19981, and 25353.
7353     - Avoid some compilation warnings with recent versions of LibreSSL.
7354       Closes ticket 26006.
7356   o Minor features (compression, zstd):
7357     - When running with zstd, Tor now considers using advanced functions
7358       that the zstd maintainers have labeled as potentially unstable. To
7359       prevent breakage, Tor will only use this functionality when the
7360       runtime version of the zstd library matches the version with which
7361       Tor was compiled. Closes ticket 25162.
7363   o Minor features (configuration):
7364     - The "DownloadSchedule" options have been renamed to end with
7365       "DownloadInitialDelay". The old names are still allowed, but will
7366       produce a warning. Comma-separated lists are still permitted for
7367       these options, but all values after the first are ignored (as they
7368       have been since 0.2.9). Closes ticket 23354.
7370   o Minor features (continuous integration):
7371     - Our .travis.yml configuration now includes support for testing the
7372       results of "make distcheck". (It's not uncommon for "make check"
7373       to pass but "make distcheck" to fail.) Closes ticket 25814.
7374     - Our Travis CI configuration now integrates with the Coveralls
7375       coverage analysis tool. Closes ticket 25818.
7377   o Minor features (control port):
7378     - Introduce GETINFO "current-time/{local,utc}" to return the local
7379       and UTC times respectively in ISO format. This helps a controller
7380       like Tor Browser detect a time-related error. Closes ticket 25511.
7381       Patch by Neel Chauhan.
7382     - Introduce new fields to the CIRC_BW event. There are two new
7383       fields in each of the read and written directions. The DELIVERED
7384       fields report the total valid data on the circuit, as measured by
7385       the payload sizes of verified and error-checked relay command
7386       cells. The OVERHEAD fields report the total unused bytes in each
7387       of these cells. Closes ticket 25903.
7389   o Minor features (directory authority):
7390     - Directory authorities now open their key-pinning files as O_SYNC,
7391       to limit their chances of accidentally writing partial lines.
7392       Closes ticket 23909.
7394   o Minor features (directory authority, forward compatibility):
7395     - Make the lines of the measured bandwidth file able to contain
7396       their entries in any order. Previously, the node_id entry needed
7397       to come first. Closes ticket 26004.
7399   o Minor features (entry guards):
7400     - Introduce a new torrc option NumPrimaryGuards for controlling the
7401       number of primary guards. Closes ticket 25843.
7403   o Minor features (geoip):
7404     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
7405       database. Closes ticket 26104.
7407   o Minor features (performance):
7408     - Avoid a needless call to malloc() when processing an incoming
7409       relay cell. Closes ticket 24914.
7410     - Make our timing-wheel code run a tiny bit faster on 32-bit
7411       platforms, by preferring 32-bit math to 64-bit. Closes
7412       ticket 24688.
7413     - Avoid a needless malloc()/free() pair every time we handle an ntor
7414       handshake. Closes ticket 25150.
7416   o Minor features (testing):
7417     - Add a unit test for voting_schedule_get_start_of_next_interval().
7418       Closes ticket 26014, and helps make unit test coverage
7419       more deterministic.
7420     - A new unittests module specifically for testing the functions in
7421       the (new-ish) bridges.c module has been created with new
7422       unittests, raising the code coverage percentages. Closes 25425.
7423     - We now have improved testing for addressmap_get_virtual_address()
7424       function. This should improve our test coverage, and make our test
7425       coverage more deterministic. Closes ticket 25993.
7427   o Minor features (timekeeping, circuit scheduling):
7428     - When keeping track of how busy each circuit have been recently on
7429       a given connection, use coarse-grained monotonic timers rather
7430       than gettimeofday(). This change should marginally increase
7431       accuracy and performance. Implements part of ticket 25927.
7433   o Minor bugfixes (bandwidth management):
7434     - Consider ourselves "low on write bandwidth" if we have exhausted
7435       our write bandwidth some time in the last second. This was the
7436       documented behavior before, but the actual behavior was to change
7437       this value every TokenBucketRefillInterval. Fixes bug 25828;
7438       bugfix on 0.2.3.5-alpha.
7440   o Minor bugfixes (C correctness):
7441     - Add a missing lock acquisition in the shutdown code of the control
7442       subsystem. Fixes bug 25675; bugfix on 0.2.7.3-rc. Found by
7443       Coverity; this is CID 1433643.
7445   o Minor bugfixes (circuit path selection):
7446     - Don't count path selection failures as circuit build failures.
7447       This change should eliminate cases where Tor blames its guard or
7448       the network for situations like insufficient microdescriptors
7449       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
7450       on 0.3.3.1-alpha.
7452   o Minor bugfixes (client):
7453     - Don't consider Tor running as a client if the ControlPort is open,
7454       but no actual client ports are open. Fixes bug 26062; bugfix
7455       on 0.2.9.4-alpha.
7457   o Minor bugfixes (code style):
7458     - Fixed multiple includes of transports.h in src/or/connection.c
7459       Fixes bug 25261; bugfix on 0.2.5.1-alpha.
7460     - Remove the unused variable n_possible from the function
7461       channel_get_for_extend(). Fixes bug 25645; bugfix on 0.2.4.4-alpha
7463   o Minor bugfixes (control interface):
7464     - Respond with more human-readable error messages to GETINFO exit-
7465       policy/* requests. Also, let controller know if an error is
7466       transient (response code 551) or not (response code 552). Fixes
7467       bug 25852; bugfix on 0.2.8.1-alpha.
7469   o Minor bugfixes (controller):
7470     - Make CIRC_BW event reflect the total of all data sent on a
7471       circuit, including padding and dropped cells. Also fix a mis-
7472       counting bug when STREAM_BW events were enabled. Fixes bug 25400;
7473       bugfix on 0.2.5.2-alpha.
7475   o Minor bugfixes (correctness, client):
7476     - Upon receiving a malformed connected cell, stop processing the cell
7477       immediately.  Previously we would mark the connection for close, but
7478       continue processing the cell as if the connection were open. Fixes bug
7479       26072; bugfix on 0.2.4.7-alpha.
7481   o Minor bugfixes (directory client):
7482     - When unverified-consensus is verified, rename it to cached-
7483       consenus. Fixes bug 4187; bugfix on 0.2.0.3-alpha.
7484     - Fixed launching a certificate fetch always during the scheduled
7485       periodic consensus fetch by fetching only in those cases when
7486       consensus are waiting for certs. Fixes bug 24740; bugfix
7487       on 0.2.9.1-alpha.
7489   o Minor bugfixes (documentation):
7490     - Stop saying in the manual that clients cache ipv4 dns answers from
7491       exit relays. We haven't used them since 0.2.6.3-alpha, and in
7492       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
7493       we forgot to say so in the man page. Fixes bug 26052; bugfix
7494       on 0.3.2.6-alpha.
7496   o Minor bugfixes (error reporting):
7497     - Improve tolerance for directory authorities with skewed clocks.
7498       Previously, an authority with a clock more than 60 seconds ahead
7499       could cause a client with a correct clock to warn that the
7500       client's clock was behind. Now the clocks of a majority of
7501       directory authorities have to be ahead of the client before this
7502       warning will occur. Fixes bug 25756; bugfix on 0.2.2.25-alpha.
7504   o Minor bugfixes (Linux seccomp2 sandbox):
7505     - Allow the nanosleep() system call, which glibc uses to implement
7506       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
7508   o Minor bugfixes (onion service):
7509     - Fix a memory leak when a v3 onion service is configured and gets a
7510       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
7511     - When parsing the descriptor signature, look for the token plus an
7512       extra white-space at the end. This is more correct but also will
7513       allow us to support new fields that might start with "signature".
7514       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
7516   o Minor bugfixes (path selection):
7517     - Only select relays when they have the descriptors we prefer to use
7518       for them. This change fixes a bug where we could select a relay
7519       because it had _some_ descriptor, but reject it later with a
7520       nonfatal assertion error because it didn't have the exact one we
7521       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
7523   o Minor bugfixes (portability):
7524     - Do not align mmap length, as it is not required by POSIX, and the
7525       getpagesize function is deprecated. Fixes bug 25399; bugfix
7526       on 0.1.1.23.
7528   o Minor bugfixes (portability, FreeBSD):
7529     - In have_enough_mem_for_dircache(), the variable DIRCACHE_MIN_MEM_MB
7530       does not stringify on FreeBSD, so we switch to tor_asprintf().
7531       Fixes bug 20887; bugfix on 0.2.8.1-alpha. Patch by Neel Chauhan.
7533   o Minor bugfixes (relay statistics):
7534     - When a relay is collecting internal statistics about how many
7535       create cell requests it has seen of each type, accurately count
7536       the requests from relays that temporarily fall out of the
7537       consensus. (To be extra conservative, we were already ignoring
7538       requests from clients in our counts, and we continue ignoring them
7539       here.) Fixes bug 24910; bugfix on 0.2.4.17-rc.
7541   o Minor bugfixes (relay, crash):
7542     - Avoid a crash when running with DirPort set but ORPort turned off.
7543       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
7545   o Minor bugfixes (restart-in-process):
7546     - When shutting down, Tor now clears all the flags in the control.c
7547       module. This should prevent a bug where authentication cookies are
7548       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
7550   o Minor bugfixes (testing):
7551     - When testing workqueue event-cancellation, make sure that we
7552       actually cancel an event, and that cancel each event with equal
7553       probability. (It was previously possible, though extremely
7554       unlikely, for our event-canceling test not to cancel any events.)
7555       Fixes bug 26008; bugfix on 0.2.6.3-alpha.
7556     - Repeat part of the test in test_client_pick_intro() a number of
7557       times, to give it consistent coverage. Fixes bug 25996; bugfix
7558       on 0.3.2.1-alpha.
7559     - Remove randomness from the hs_common/responsible_hsdirs test, so
7560       that it always takes the same path through the function it tests.
7561       Fixes bug 25997; bugfix on 0.3.2.1-alpha.
7562     - Change the behavior of the "channel/outbound" test so that it
7563       never causes a 10-second rollover for the EWMA circuitmux code.
7564       Previously, this behavior would happen randomly, and result in
7565       fluctuating test coverage. Fixes bug 25994; bugfix
7566       on 0.3.3.1-alpha.
7567     - Use X509_new() to allocate certificates that will be freed later
7568       with X509_free(). Previously, some parts of the unit tests had
7569       used tor_malloc_zero(), which is incorrect, and which caused test
7570       failures on Windows when they were built with extra hardening.
7571       Fixes bugs 25943 and 25944; bugfix on 0.2.8.1-alpha. Patch by
7572       Marcin Cieślak.
7573     - While running the circuit_timeout test, fix the PRNG to a
7574       deterministic AES stream, so that the test coverage from this test
7575       will itself be deterministic. Fixes bug 25995; bugfix
7576       on 0.2.2.2-alpha.
7578   o Minor bugfixes (vanguards):
7579     - Allow the last hop in a vanguard circuit to be the same as our
7580       first, to prevent the adversary from influencing guard node choice
7581       by choice of last hop. Also prevent the creation of A - B - A
7582       paths, or A - A paths, which are forbidden by relays. Fixes bug
7583       25870; bugfix on 0.3.3.1-alpha.
7585   o Code simplification and refactoring:
7586     - Remove duplicate code in parse_{c,s}method_line and bootstrap
7587       their functionalities into a single function. Fixes bug 6236;
7588       bugfix on 0.2.3.6-alpha.
7589     - We remove the PortForwarding and PortForwardingHelper options,
7590       related functions, and the port_forwarding tests. These options
7591       were used by the now-deprecated Vidalia to help ordinary users
7592       become Tor relays or bridges. Closes ticket 25409. Patch by
7593       Neel Chauhan.
7594     - In order to make the OR and dir checking function in router.c less
7595       confusing we renamed some functions and
7596       consider_testing_reachability() has been split into
7597       router_should_check_reachability() and
7598       router_do_reachability_checks(). Also we improved the documentation
7599       in some functions. Closes ticket 18918.
7600     - Initial work to isolate Libevent usage to a handful of modules in
7601       our codebase, to simplify our call structure, and so that we can
7602       more easily change event loops in the future if needed. Closes
7603       ticket 23750.
7604     - Introduce a function to call getsockname() and return tor_addr_t,
7605       to save a little complexity throughout the codebase. Closes
7606       ticket 18105.
7607     - Make hsdir_index in node_t a hsdir_index_t rather than a pointer
7608       as hsdir_index is always present. Also, we move hsdir_index_t into
7609       or.h. Closes ticket 23094. Patch by Neel Chauhan.
7610     - Merge functions used for describing nodes and suppress the
7611       functions that do not allocate memory for the output buffer
7612       string. NODE_DESC_BUF_LEN constant and format_node_description()
7613       function cannot be used externally from router.c module anymore.
7614       Closes ticket 25432. Patch by valentecaio.
7615     - Our main loop has been simplified so that all important operations
7616       happen inside events. Previously, some operations had to happen
7617       outside the event loop, to prevent infinite sequences of event
7618       activations. Closes ticket 25374.
7619     - Put a SHA1 public key digest in hs_service_intro_point_t, and use
7620       it in register_intro_circ() and service_intro_point_new(). This
7621       prevents the digest from being re-calculated each time. Closes
7622       ticket 23107. Patch by Neel Chauhan.
7623     - Refactor token-bucket implementations to use a common backend.
7624       Closes ticket 25766.
7625     - Remove extern declaration of stats_n_seconds_working variable from
7626       main, protecting its accesses with get_uptime() and reset_uptime()
7627       functions. Closes ticket 25081, patch by “valentecaio”.
7628     - Remove our previous logic for "cached gettimeofday()" -- our
7629       coarse monotonic timers are fast enough for this purpose, and far
7630       less error-prone. Implements part of ticket 25927.
7631     - Remove the return value for fascist_firewall_choose_address_base(),
7632       and sister functions such as fascist_firewall_choose_address_node()
7633       and fascist_firewall_choose_address_rs(). Also, while we're here,
7634       initialize the ap argument as leaving it uninitialized can pose a
7635       security hazard. Closes ticket 24734. Patch by Neel Chauhan.
7636     - Rename two fields of connection_t struct. timestamp_lastwritten is
7637       renamed to timestamp_last_write_allowed and timestamp_lastread is
7638       renamed to timestamp_last_read_allowed. Closes ticket 24714, patch
7639       by "valentecaio".
7640     - Since Tor requires C99, remove our old workaround code for libc
7641       implementations where free(NULL) doesn't work. Closes ticket 24484.
7642     - Use our standard rate-limiting code to deal with excessive
7643       libevent failures, rather than the hand-rolled logic we had
7644       before. Closes ticket 26016.
7645     - We remove the return value of node_get_prim_orport() and
7646       node_get_prim_dirport(), and introduce node_get_prim_orport() in
7647       node_ipv6_or_preferred() and node_ipv6_dir_preferred() in order to
7648       check for a null address. Closes ticket 23873. Patch by
7649       Neel Chauhan.
7650     - We switch to should_record_bridge_info() in
7651       geoip_note_client_seen() and options_need_geoip_info() instead of
7652       accessing the configuration values directly. Fixes bug 25290;
7653       bugfix on 0.2.1.6-alpha. Patch by Neel Chauhan.
7655   o Deprecated features:
7656     - As we are not recommending 0.2.5 anymore, we require relays that
7657       once had an ed25519 key associated with their RSA key to always
7658       have that key, instead of allowing them to drop back to a version
7659       that didn't support ed25519. This means they need to use a new RSA
7660       key if they want to downgrade to an older version of tor without
7661       ed25519. Closes ticket 20522.
7663   o Documentation:
7664     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
7665       ticket 25857. Patch from "CTassisF".
7667   o Removed features:
7668     - Directory authorities will no longer support voting according to
7669       any consensus method before consensus method 25. This keeps
7670       authorities compatible with all authorities running 0.2.9.8 and
7671       later, and does not break any clients or relays. Implements ticket
7672       24378 and proposal 290.
7673     - The PortForwarding and PortForwardingHelper features have been
7674       removed. The reasoning is, given that implementations of NAT
7675       traversal protocols within common consumer grade routers are
7676       frequently buggy, and that the target audience for a NAT punching
7677       feature is a perhaps less-technically-inclined relay operator,
7678       when the helper fails to setup traversal the problems are usually
7679       deep, ugly, and very router specific, making them horrendously
7680       impossible for technical support to reliable assist with, and thus
7681       resulting in frustration all around. Unfortunately, relay
7682       operators who would like to run relays behind NATs will need to
7683       become more familiar with the port forwarding configurations on
7684       their local router. Closes 25409.
7685     - The TestingEnableTbEmptyEvent option has been removed. It was used
7686       in testing simulations to measure how often connection buckets
7687       were emptied, in order to improve our scheduling, but it has not
7688       been actively used in years. Closes ticket 25760.
7689     - The old "round-robin" circuit multiplexer (circuitmux)
7690       implementation has been removed, along with a fairly large set of
7691       code that existed to support it. It has not been the default
7692       circuitmux since we introduced the "EWMA" circuitmux in 0.2.4.x,
7693       but it still required an unreasonable amount of memory and CPU.
7694       Closes ticket 25268.
7697 Changes in version 0.3.3.5-rc - 2018-04-15
7698   Tor 0.3.3.5-rc fixes various bugs in earlier versions of Tor,
7699   including some that could affect reliability or correctness.
7701   This is the first release candidate in the 0.3.3 series. If we find no
7702   new bugs or regression here, then the first stable 0.3.3 release will
7703   be nearly identical to this one.
7705   o Major bugfixes (security, protover, voting):
7706     - Revise Rust implementation of protover to use a more memory-
7707       efficient voting algorithm and corresponding data structures, thus
7708       avoiding a potential memory-based DoS attack where specially
7709       crafted protocol strings would expand to fill available memory.
7710       Fixes bug 24031; bugfix on 0.3.3.1-alpha.
7712   o Major bugfixes (performance, load balancing):
7713     - Directory authorities no longer vote in favor of the Guard flag
7714       for relays without directory support. Starting in Tor
7715       0.3.0.1-alpha, clients have been avoiding using such relays in the
7716       Guard position, leading to increasingly broken load balancing for
7717       the 5%-or-so of Guards that don't advertise directory support.
7718       Fixes bug 22310; bugfix on 0.3.0.6.
7720   o Minor feature (continuous integration):
7721     - Update the Travis CI configuration to use the stable Rust channel,
7722       now that we have decided to require that. Closes ticket 25714.
7724   o Minor features (config options):
7725     - Change the way the default value for MaxMemInQueues is calculated.
7726       We now use 40% of the hardware RAM if the system has 8 GB RAM or
7727       more. Otherwise we use the former value of 75%. Closes
7728       ticket 24782.
7730   o Minor features (geoip):
7731     - Update geoip and geoip6 to the April 3 2018 Maxmind GeoLite2
7732       Country database. Closes ticket 25718.
7734   o Minor bugfixes (client):
7735     - When using a listed relay as a bridge, and also using
7736       microdescriptors, and considering that relay as a non-bridge in a
7737       circuit, treat its microdescriptor as a valid source of
7738       information about that relay. This change should prevent a non-
7739       fatal assertion error. Fixes bug 25691; bugfix on 0.3.3.4-alpha.
7741   o Minor bugfixes (controller):
7742     - Restore the correct operation of the RESOLVE command, which had
7743       been broken since we added the ability to enable/disable DNS on
7744       specific listener ports. Fixes bug 25617; bugfix on 0.2.9.3-alpha.
7746   o Minor bugfixes (distribution, compilation, rust):
7747     - Build correctly when the rust dependencies submodule is loaded,
7748       but the TOR_RUST_DEPENDENCIES environment variable is not set.
7749       Fixes bug 25679; bugfix on 0.3.3.1-alpha.
7750     - Actually include all of our Rust source in our source
7751       distributions. (Previously, a few of the files were accidentally
7752       omitted.) Fixes bug 25732; bugfix on 0.3.3.2-alpha.
7754   o Minor bugfixes (documentation):
7755     - Document that the PerConnBW{Rate,Burst} options will fall back to
7756       their corresponding consensus parameters only if those parameters
7757       are set. Previously we had claimed that these values would always
7758       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
7759     - Revert a misformatting issue in the ExitPolicy documentation.
7760       Fixes bug 25582; bugfix on 0.3.3.1-alpha.
7762   o Minor bugfixes (exit relay DNS retries):
7763     - Re-attempt timed-out DNS queries 3 times before failure, since our
7764       timeout is 5 seconds for them, but clients wait 10-15. Also allow
7765       slightly more timeouts per resolver when an exit has multiple
7766       resolvers configured. Fixes bug 21394; bugfix on 0.3.1.9.
7768   o Minor bugfixes (onion services):
7769     - Re-instate counting the client HSDir fetch circuits against the
7770       MaxClientCircuitsPending rate limit. Fixes bug 24989; bugfix
7771       on 0.3.3.1-alpha.
7772     - Remove underscores from the _HSLayer{2,3}Nodes options. This
7773       expert-user configuration can now be enabled as HSLayer{2,3}Nodes.
7774       Fixes bug 25581; bugfix on 0.3.3.1-alpha
7776   o Code simplification and refactoring:
7777     - Move the list of default directory authorities to its own file.
7778       Closes ticket 24854. Patch by "beastr0".
7780   o Documentation (manpage, denial of service):
7781     - Provide more detail about the denial-of-service options, by
7782       listing each mitigation and explaining how they relate. Closes
7783       ticket 25248.
7786 Changes in version 0.3.3.4-alpha - 2018-03-29
7787   Tor 0.3.3.4-alpha includes various bugfixes for issues found during
7788   the alpha testing of earlier releases in its series. We are
7789   approaching a stable 0.3.3.4-alpha release: more testing is welcome!
7791   o New system requirements:
7792     - When built with Rust, Tor now depends on version 0.2.39 of the
7793       libc crate. Closes tickets 25310 and 25664.
7795   o Major bugfixes (relay, connection):
7796     - If we have failed to connect to a relay and received a connection
7797       refused, timeout, or similar error (at the TCP level), do not try
7798       that same address/port again for 60 seconds after the failure has
7799       occurred. Fixes bug 24767; bugfix on 0.0.6.
7801   o Minor features (geoip):
7802     - Update geoip and geoip6 to the March 8 2018 Maxmind GeoLite2
7803       Country database. Closes ticket 25469.
7805   o Minor features (log messages):
7806     - Improve log message in the out-of-memory handler to include
7807       information about memory usage from the different compression
7808       backends. Closes ticket 25372.
7810   o Minor features (sandbox):
7811     - Explicitly permit the poll() system call when the Linux
7812       seccomp2-based sandbox is enabled: apparently, some versions of
7813       libc use poll() when calling getpwnam(). Closes ticket 25313.
7815   o Minor bugfixes (C correctness):
7816     - Fix a very unlikely (impossible, we believe) null pointer
7817       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
7818       Coverity; this is CID 1430932.
7820   o Minor bugfixes (channel, client):
7821     - Better identify client connection when reporting to the geoip
7822       client cache. Fixes bug 24904; bugfix on 0.3.1.7.
7824   o Minor bugfixes (compilation):
7825     - Fix a C99 compliance issue in our configuration script that caused
7826       compilation issues when compiling Tor with certain versions of
7827       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
7829   o Minor bugfixes (controller, reliability):
7830     - Avoid a (nonfatal) assertion failure when extending a one-hop
7831       circuit from the controller to become a multihop circuit. Fixes
7832       bug 24903; bugfix on 0.2.5.2-alpha.
7834   o Major bugfixes (networking):
7835     - Tor will no longer reject IPv6 address strings from Tor Browser
7836       when they are passed as hostnames in SOCKS5 requests. Fixes bug
7837       25036, bugfix on Tor 0.3.1.2.
7839   o Minor bugfixes (networking):
7840     - string_is_valid_hostname() will not consider IP strings to be
7841       valid hostnames. Fixes bug 25055; bugfix on Tor 0.2.5.5.
7843   o Minor bugfixes (onion service v3):
7844     - Avoid an assertion failure when the next onion service
7845       descriptor rotation type is out of sync with the consensus's
7846       valid-after time. Instead, log a warning message with extra
7847       information, so we can better hunt down the cause of this
7848       assertion. Fixes bug 25306; bugfix on 0.3.2.1-alpha.
7850   o Minor bugfixes (testing):
7851     - Avoid intermittent test failures due to a test that had relied on
7852       onion service introduction point creation finishing within 5
7853       seconds of real clock time. Fixes bug 25450; bugfix
7854       on 0.3.1.3-alpha.
7855     - Rust crates are now automatically detected and tested. Previously,
7856       some crates were not tested by `make test-rust` due to a static
7857       string in the `src/test/test_rust.sh` script specifying which
7858       crates to test. Fixes bug 25560; bugfix on 0.3.3.3-alpha.
7860   o Minor bugfixes (testing, benchmarks):
7861     - Fix a crash when running benchmark tests on win32 systems. The
7862       crash was due to a mutex that wasn't initialized before logging
7863       and options were initialized. Fixes bug 25479; bugfix
7864       on 0.3.3.3-alpha.
7866   o Minor bugfixes (warnings, ipv6):
7867     - Avoid a bug warning that could occur when trying to connect to a
7868       relay over IPv6. This warning would occur on a Tor instance that
7869       downloads router descriptors, but prefers to use microdescriptors.
7870       Fixes bug 25213; bugfix on 0.3.3.1-alpha.
7872   o Code simplification and refactoring:
7873     - Remove the old (deterministic) directory retry logic entirely:
7874       We've used exponential backoff exclusively for some time. Closes
7875       ticket 23814.
7877   o Documentation:
7878     - Improved the documentation of AccountingStart parameter. Closes
7879       ticket 23635.
7880     - Update the documentation for "Log" to include the current list of
7881       logging domains. Closes ticket 25378.
7884 Changes in version 0.3.1.10 - 2018-03-03
7885   Tor 0.3.1.10 backports a number of bugfixes, including important fixes for
7886   security issues.
7888   It includes an important security fix for a remote crash attack
7889   against directory authorities, tracked as TROVE-2018-001.
7891   This release also backports our new system for improved resistance to
7892   denial-of-service attacks against relays.
7894   This release also fixes several minor bugs and annoyances from
7895   earlier releases.
7897   All directory authorities should upgrade to one of the versions
7898   released today. Relays running 0.3.1.x may wish to update to one of
7899   the versions released today, for the DoS mitigations.
7901   Please note: according to our release calendar, Tor 0.3.1 will no
7902   longer be supported after 1 July 2018. If you will be running Tor
7903   after that date, you should make sure to plan to upgrade to the latest
7904   stable version, or downgrade to 0.2.9 (which will receive long-term
7905   support).
7907   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
7908     - Fix a protocol-list handling bug that could be used to remotely crash
7909       directory authorities with a null-pointer exception. Fixes bug 25074;
7910       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
7911       CVE-2018-0490.
7913   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
7914     - Give relays some defenses against the recent network overload. We
7915       start with three defenses (default parameters in parentheses).
7916       First: if a single client address makes too many concurrent
7917       connections (>100), hang up on further connections. Second: if a
7918       single client address makes circuits too quickly (more than 3 per
7919       second, with an allowed burst of 90) while also having too many
7920       connections open (3), refuse new create cells for the next while
7921       (1-2 hours). Third: if a client asks to establish a rendezvous
7922       point to you directly, ignore the request. These defenses can be
7923       manually controlled by new torrc options, but relays will also
7924       take guidance from consensus parameters, so there's no need to
7925       configure anything manually. Implements ticket 24902.
7927   o Minor features (linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
7928     - Update the sandbox rules so that they should now work correctly
7929       with Glibc 2.26. Closes ticket 24315.
7931   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
7932     - Fix an "off by 2" error in counting rendezvous failures on the
7933       onion service side. While we thought we would stop the rendezvous
7934       attempt after one failed circuit, we were actually making three
7935       circuit attempts before giving up. Now switch to a default of 2,
7936       and allow the consensus parameter "hs_service_max_rdv_failures" to
7937       override. Fixes bug 24895; bugfix on 0.0.6.
7939   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
7940     - Add Link protocol version 5 to the supported protocols list. Fixes
7941       bug 25070; bugfix on 0.3.1.1-alpha.
7943   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
7944     - Fix a set of false positives where relays would consider
7945       connections to other relays as being client-only connections (and
7946       thus e.g. deserving different link padding schemes) if those
7947       relays fell out of the consensus briefly. Now we look only at the
7948       initial handshake and whether the connection authenticated as a
7949       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
7951   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
7952     - Make our OOM handler aware of the geoip client history cache so it
7953       doesn't fill up the memory. This check is important for IPv6 and
7954       our DoS mitigation subsystem. Closes ticket 25122.
7956   o Minor feature (relay statistics, backport from 0.3.2.6-alpha):
7957     - Change relay bandwidth reporting stats interval from 4 hours to 24
7958       hours in order to reduce the efficiency of guard discovery
7959       attacks. Fixes ticket 23856.
7961   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
7962     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
7963       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
7964       since they neither disabled TLS 1.3 nor enabled any of the
7965       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
7966       Closes ticket 24978.
7968   o Minor features (fallback directory mirrors, backport from 0.3.2.9):
7969     - The fallback directory list has been re-generated based on the
7970       current status of the network. Tor uses fallback directories to
7971       bootstrap when it doesn't yet have up-to-date directory
7972       information. Closes ticket 24801.
7973     - Make the default DirAuthorityFallbackRate 0.1, so that clients
7974       prefer to bootstrap from fallback directory mirrors. This is a
7975       follow-up to 24679, which removed weights from the default
7976       fallbacks. Implements ticket 24681.
7978   o Minor features (geoip):
7979     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
7980       Country database.
7982   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
7983     - Use the actual observed address of an incoming relay connection,
7984       not the canonical address of the relay from its descriptor, when
7985       making decisions about how to handle the incoming connection.
7986       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
7988   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
7989     - Directory authorities, when refusing a descriptor from a rejected
7990       relay, now explicitly tell the relay (in its logs) to set a valid
7991       ContactInfo address and contact the bad-relays@ mailing list.
7992       Fixes bug 25170; bugfix on 0.2.9.1.
7994   o Minor bugfixes (address selection, backport from 0.3.2.9):
7995     - When the fascist_firewall_choose_address_ functions don't find a
7996       reachable address, set the returned address to the null address
7997       and port. This is a precautionary measure, because some callers do
7998       not check the return value. Fixes bug 24736; bugfix
7999       on 0.2.8.2-alpha.
8001   o Major bugfixes (bootstrapping, backport from 0.3.2.5-alpha):
8002     - Fetch descriptors aggressively whenever we lack enough to build
8003       circuits, regardless of how many descriptors we are missing.
8004       Previously, we would delay launching the fetch when we had fewer
8005       than 15 missing descriptors, even if some of those descriptors
8006       were blocking circuits from building. Fixes bug 23985; bugfix on
8007       0.1.1.11-alpha. The effects of this bug became worse in
8008       0.3.0.3-alpha, when we began treating missing descriptors from our
8009       primary guards as a reason to delay circuits.
8010     - Don't try fetching microdescriptors from relays that have failed
8011       to deliver them in the past. Fixes bug 23817; bugfix
8012       on 0.3.0.1-alpha.
8014   o Minor bugfixes (compilation, backport from 0.3.2.7-rc):
8015     - Fix a signed/unsigned comparison warning introduced by our fix to
8016       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
8018   o Minor bugfixes (control port, linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
8019     - Avoid a crash when attempting to use the seccomp2 sandbox together
8020       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
8021       on 0.2.5.1-alpha.
8023   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
8024     - Fix a possible crash on malformed consensus. If a consensus had
8025       contained an unparseable protocol line, it could have made clients
8026       and relays crash with a null-pointer exception. To exploit this
8027       issue, however, an attacker would need to be able to subvert the
8028       directory authority system. Fixes bug 25251; bugfix on
8029       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
8031   o Minor bugfixes (directory cache, backport from 0.3.2.5-alpha):
8032     - Recover better from empty or corrupt files in the consensus cache
8033       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
8034     - When a consensus diff calculation is only partially successful,
8035       only record the successful parts as having succeeded. Partial
8036       success can happen if (for example) one compression method fails
8037       but the others succeed. Previously we misrecorded all the
8038       calculations as having succeeded, which would later cause a
8039       nonfatal assertion failure. Fixes bug 24086; bugfix
8040       on 0.3.1.1-alpha.
8042   o Minor bugfixes (entry guards, backport from 0.3.2.3-alpha):
8043     - Tor now updates its guard state when it reads a consensus
8044       regardless of whether it's missing descriptors. That makes tor use
8045       its primary guards to fetch descriptors in some edge cases where
8046       it would previously have used fallback directories. Fixes bug
8047       23862; bugfix on 0.3.0.1-alpha.
8049   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
8050     - Don't treat inability to store a cached consensus object as a bug:
8051       it can happen normally when we are out of disk space. Fixes bug
8052       24859; bugfix on 0.3.1.1-alpha.
8054   o Minor bugfixes (memory usage, backport from 0.3.2.8-rc):
8055     - When queuing DESTROY cells on a channel, only queue the circuit-id
8056       and reason fields: not the entire 514-byte cell. This fix should
8057       help mitigate any bugs or attacks that fill up these queues, and
8058       free more RAM for other uses. Fixes bug 24666; bugfix
8059       on 0.2.5.1-alpha.
8061   o Minor bugfixes (network layer, backport from 0.3.2.5-alpha):
8062     - When closing a connection via close_connection_immediately(), we
8063       mark it as "not blocked on bandwidth", to prevent later calls from
8064       trying to unblock it, and give it permission to read. This fixes a
8065       backtrace warning that can happen on relays under various
8066       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
8068   o Minor bugfixes (path selection, backport from 0.3.2.4-alpha):
8069     - When selecting relays by bandwidth, avoid a rounding error that
8070       could sometimes cause load to be imbalanced incorrectly.
8071       Previously, we would always round upwards; now, we round towards
8072       the nearest integer. This had the biggest effect when a relay's
8073       weight adjustments should have given it weight 0, but it got
8074       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
8075     - When calculating the fraction of nodes that have descriptors, and
8076       all nodes in the network have zero bandwidths, count the number of
8077       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
8078     - Actually log the total bandwidth in compute_weighted_bandwidths().
8079       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
8081   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
8082     - Improve the performance of our consensus-diff application code
8083       when Tor is built with the --enable-fragile-hardening option set.
8084       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
8086   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
8087     - Don't exit the Tor process if setrlimit() fails to change the file
8088       limit (which can happen sometimes on some versions of OSX). Fixes
8089       bug 21074; bugfix on 0.0.9pre5.
8091   o Minor bugfixes (portability, msvc, backport from 0.3.2.9):
8092     - Fix a bug in the bit-counting parts of our timing-wheel code on
8093       MSVC. (Note that MSVC is still not a supported build platform, due
8094       to cyptographic timing channel risks.) Fixes bug 24633; bugfix
8095       on 0.2.9.1-alpha.
8097   o Minor bugfixes (relay, partial backport):
8098     - Make the internal channel_is_client() function look at what sort
8099       of connection handshake the other side used, rather than whether
8100       the other side ever sent a create_fast cell to us. Backports part
8101       of the fixes from bugs 22805 and 24898.
8103   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
8104     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
8105       0.2.9.4-alpha.
8106     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
8107       bugfix on 0.2.9.4-alpha.
8109   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
8110     - Update the "rust dependencies" submodule to be a project-level
8111       repository, rather than a user repository. Closes ticket 25323.
8114 Changes in version 0.2.9.15 - 2018-03-03
8115   Tor 0.2.9.15 backports important security and stability bugfixes from
8116   later Tor releases.
8118   It includes an important security fix for a remote crash attack
8119   against directory authorities, tracked as TROVE-2018-001.
8121   This release also backports our new system for improved resistance to
8122   denial-of-service attacks against relays.
8124   This release also fixes several minor bugs and annoyances from
8125   earlier releases.
8127   All directory authorities should upgrade to one of the versions
8128   released today. Relays running 0.2.9.x may wish to update to one of
8129   the versions released today, for the DoS mitigations.
8131   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
8132     - Fix a protocol-list handling bug that could be used to remotely crash
8133       directory authorities with a null-pointer exception. Fixes bug 25074;
8134       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
8135       CVE-2018-0490.
8137   o Major features (denial-of-service mitigation):
8138     - Give relays some defenses against the recent network overload. We
8139       start with three defenses (default parameters in parentheses).
8140       First: if a single client address makes too many concurrent
8141       connections (>100), hang up on further connections. Second: if a
8142       single client address makes circuits too quickly (more than 3 per
8143       second, with an allowed burst of 90) while also having too many
8144       connections open (3), refuse new create cells for the next while
8145       (1-2 hours). Third: if a client asks to establish a rendezvous
8146       point to you directly, ignore the request. These defenses can be
8147       manually controlled by new torrc options, but relays will also
8148       take guidance from consensus parameters, so there's no need to
8149       configure anything manually. Implements ticket 24902.
8151   o Major bugfixes (bootstrapping):
8152     - Fetch descriptors aggressively whenever we lack enough to build
8153       circuits, regardless of how many descriptors we are missing.
8154       Previously, we would delay launching the fetch when we had fewer
8155       than 15 missing descriptors, even if some of those descriptors
8156       were blocking circuits from building. Fixes bug 23985; bugfix on
8157       0.1.1.11-alpha. The effects of this bug became worse in
8158       0.3.0.3-alpha, when we began treating missing descriptors from our
8159       primary guards as a reason to delay circuits.
8161   o Major bugfixes (onion services, retry behavior):
8162     - Fix an "off by 2" error in counting rendezvous failures on the
8163       onion service side. While we thought we would stop the rendezvous
8164       attempt after one failed circuit, we were actually making three
8165       circuit attempts before giving up. Now switch to a default of 2,
8166       and allow the consensus parameter "hs_service_max_rdv_failures" to
8167       override. Fixes bug 24895; bugfix on 0.0.6.
8169   o Minor feature (relay statistics):
8170     - Change relay bandwidth reporting stats interval from 4 hours to 24
8171       hours in order to reduce the efficiency of guard discovery
8172       attacks. Fixes ticket 23856.
8174   o Minor features (compatibility, OpenSSL):
8175     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
8176       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
8177       since they neither disabled TLS 1.3 nor enabled any of the
8178       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
8179       Closes ticket 24978.
8181   o Minor features (denial-of-service avoidance):
8182     - Make our OOM handler aware of the geoip client history cache so it
8183       doesn't fill up the memory. This check is important for IPv6 and
8184       our DoS mitigation subsystem. Closes ticket 25122.
8186   o Minor features (fallback directory mirrors):
8187     - The fallback directory list has been re-generated based on the
8188       current status of the network. Tor uses fallback directories to
8189       bootstrap when it doesn't yet have up-to-date directory
8190       information. Closes ticket 24801.
8191     - Make the default DirAuthorityFallbackRate 0.1, so that clients
8192       prefer to bootstrap from fallback directory mirrors. This is a
8193       follow-up to 24679, which removed weights from the default
8194       fallbacks. Implements ticket 24681.
8196   o Minor features (geoip):
8197     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
8198       Country database.
8200   o Minor features (linux seccomp2 sandbox):
8201     - Update the sandbox rules so that they should now work correctly
8202       with Glibc 2.26. Closes ticket 24315.
8204   o Minor bugfix (channel connection):
8205     - Use the actual observed address of an incoming relay connection,
8206       not the canonical address of the relay from its descriptor, when
8207       making decisions about how to handle the incoming connection.
8208       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
8210   o Minor bugfix (directory authority):
8211     - Directory authorities, when refusing a descriptor from a rejected
8212       relay, now explicitly tell the relay (in its logs) to set a valid
8213       ContactInfo address and contact the bad-relays@ mailing list.
8214       Fixes bug 25170; bugfix on 0.2.9.1.
8216   o Minor bugfixes (address selection):
8217     - When the fascist_firewall_choose_address_ functions don't find a
8218       reachable address, set the returned address to the null address
8219       and port. This is a precautionary measure, because some callers do
8220       not check the return value. Fixes bug 24736; bugfix
8221       on 0.2.8.2-alpha.
8223   o Minor bugfixes (compilation):
8224     - Fix a signed/unsigned comparison warning introduced by our fix to
8225       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
8227   o Minor bugfixes (control port, linux seccomp2 sandbox):
8228     - Avoid a crash when attempting to use the seccomp2 sandbox together
8229       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
8230       on 0.2.5.1-alpha.
8232   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
8233     - Fix a possible crash on malformed consensus. If a consensus had
8234       contained an unparseable protocol line, it could have made clients
8235       and relays crash with a null-pointer exception. To exploit this
8236       issue, however, an attacker would need to be able to subvert the
8237       directory authority system. Fixes bug 25251; bugfix on
8238       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
8240   o Minor bugfixes (memory usage):
8241     - When queuing DESTROY cells on a channel, only queue the circuit-id
8242       and reason fields: not the entire 514-byte cell. This fix should
8243       help mitigate any bugs or attacks that fill up these queues, and
8244       free more RAM for other uses. Fixes bug 24666; bugfix
8245       on 0.2.5.1-alpha.
8247   o Minor bugfixes (network layer):
8248     - When closing a connection via close_connection_immediately(), we
8249       mark it as "not blocked on bandwidth", to prevent later calls from
8250       trying to unblock it, and give it permission to read. This fixes a
8251       backtrace warning that can happen on relays under various
8252       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
8254   o Minor bugfixes (OSX):
8255     - Don't exit the Tor process if setrlimit() fails to change the file
8256       limit (which can happen sometimes on some versions of OSX). Fixes
8257       bug 21074; bugfix on 0.0.9pre5.
8259   o Minor bugfixes (path selection):
8260     - When selecting relays by bandwidth, avoid a rounding error that
8261       could sometimes cause load to be imbalanced incorrectly.
8262       Previously, we would always round upwards; now, we round towards
8263       the nearest integer. This had the biggest effect when a relay's
8264       weight adjustments should have given it weight 0, but it got
8265       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
8266     - When calculating the fraction of nodes that have descriptors, and
8267       all nodes in the network have zero bandwidths, count the number of
8268       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
8269     - Actually log the total bandwidth in compute_weighted_bandwidths().
8270       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
8272   o Minor bugfixes (portability, msvc):
8273     - Fix a bug in the bit-counting parts of our timing-wheel code on
8274       MSVC. (Note that MSVC is still not a supported build platform, due
8275       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
8276       on 0.2.9.1-alpha.
8278   o Minor bugfixes (relay):
8279     - Make the internal channel_is_client() function look at what sort
8280       of connection handshake the other side used, rather than whether
8281       the other side ever sent a create_fast cell to us. Backports part
8282       of the fixes from bugs 22805 and 24898.
8284   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
8285     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
8286       0.2.9.4-alpha.
8287     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
8288       bugfix on 0.2.9.4-alpha.
8291 Changes in version 0.3.2.10 - 2018-03-03
8292   Tor 0.3.2.10 is the second stable release in the 0.3.2 series. It
8293   backports a number of bugfixes, including important fixes for security
8294   issues.
8296   It includes an important security fix for a remote crash attack
8297   against directory authorities, tracked as TROVE-2018-001.
8299   Additionally, it backports a fix for a bug whose severity we have
8300   upgraded: Bug 24700, which was fixed in 0.3.3.2-alpha, can be remotely
8301   triggered in order to crash relays with a use-after-free pattern. As
8302   such, we are now tracking that bug as TROVE-2018-002 and
8303   CVE-2018-0491, and backporting it to earlier releases. This bug
8304   affected versions 0.3.2.1-alpha through 0.3.2.9, as well as version
8305   0.3.3.1-alpha.
8307   This release also backports our new system for improved resistance to
8308   denial-of-service attacks against relays.
8310   This release also fixes several minor bugs and annoyances from
8311   earlier releases.
8313   Relays running 0.3.2.x SHOULD upgrade to one of the versions released
8314   today, for the fix to TROVE-2018-002. Directory authorities should
8315   also upgrade. (Relays on earlier versions might want to update too for
8316   the DoS mitigations.)
8318   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
8319     - Fix a protocol-list handling bug that could be used to remotely crash
8320       directory authorities with a null-pointer exception. Fixes bug 25074;
8321       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
8322       CVE-2018-0490.
8324   o Major bugfixes (scheduler, KIST, denial-of-service, backport from 0.3.3.2-alpha):
8325     - Avoid adding the same channel twice in the KIST scheduler pending
8326       list, which could lead to remote denial-of-service use-after-free
8327       attacks against relays. Fixes bug 24700; bugfix on 0.3.2.1-alpha.
8329   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
8330     - Give relays some defenses against the recent network overload. We
8331       start with three defenses (default parameters in parentheses).
8332       First: if a single client address makes too many concurrent
8333       connections (>100), hang up on further connections. Second: if a
8334       single client address makes circuits too quickly (more than 3 per
8335       second, with an allowed burst of 90) while also having too many
8336       connections open (3), refuse new create cells for the next while
8337       (1-2 hours). Third: if a client asks to establish a rendezvous
8338       point to you directly, ignore the request. These defenses can be
8339       manually controlled by new torrc options, but relays will also
8340       take guidance from consensus parameters, so there's no need to
8341       configure anything manually. Implements ticket 24902.
8343   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
8344     - Fix an "off by 2" error in counting rendezvous failures on the
8345       onion service side. While we thought we would stop the rendezvous
8346       attempt after one failed circuit, we were actually making three
8347       circuit attempts before giving up. Now switch to a default of 2,
8348       and allow the consensus parameter "hs_service_max_rdv_failures" to
8349       override. Fixes bug 24895; bugfix on 0.0.6.
8350     - New-style (v3) onion services now obey the "max rendezvous circuit
8351       attempts" logic. Previously they would make as many rendezvous
8352       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
8353       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
8355   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
8356     - Add Link protocol version 5 to the supported protocols list. Fixes
8357       bug 25070; bugfix on 0.3.1.1-alpha.
8359   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
8360     - Fix a set of false positives where relays would consider
8361       connections to other relays as being client-only connections (and
8362       thus e.g. deserving different link padding schemes) if those
8363       relays fell out of the consensus briefly. Now we look only at the
8364       initial handshake and whether the connection authenticated as a
8365       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
8367   o Major bugfixes (scheduler, consensus, backport from 0.3.3.2-alpha):
8368     - The scheduler subsystem was failing to promptly notice changes in
8369       consensus parameters, making it harder to switch schedulers
8370       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
8372   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
8373     - Make our OOM handler aware of the geoip client history cache so it
8374       doesn't fill up the memory. This check is important for IPv6 and
8375       our DoS mitigation subsystem. Closes ticket 25122.
8377   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
8378     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
8379       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
8380       since they neither disabled TLS 1.3 nor enabled any of the
8381       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
8382       Closes ticket 24978.
8384   o Minor features (geoip):
8385     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
8386       Country database.
8388   o Minor features (logging, diagnostic, backport from 0.3.3.2-alpha):
8389     - When logging a failure to create an onion service's descriptor,
8390       also log what the problem with the descriptor was. Diagnostic
8391       for ticket 24972.
8393   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
8394     - Use the actual observed address of an incoming relay connection,
8395       not the canonical address of the relay from its descriptor, when
8396       making decisions about how to handle the incoming connection.
8397       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
8399   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
8400     - Fix a possible crash on malformed consensus. If a consensus had
8401       contained an unparseable protocol line, it could have made clients
8402       and relays crash with a null-pointer exception. To exploit this
8403       issue, however, an attacker would need to be able to subvert the
8404       directory authority system. Fixes bug 25251; bugfix on
8405       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
8407   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
8408     - Directory authorities, when refusing a descriptor from a rejected
8409       relay, now explicitly tell the relay (in its logs) to set a valid
8410       ContactInfo address and contact the bad-relays@ mailing list.
8411       Fixes bug 25170; bugfix on 0.2.9.1.
8413   o Minor bugfixes (build, rust, backport from 0.3.3.1-alpha):
8414     - When building with Rust on OSX, link against libresolv, to work
8415       around the issue at https://github.com/rust-lang/rust/issues/46797.
8416       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
8418   o Minor bugfixes (onion services, backport from 0.3.3.2-alpha):
8419     - Remove a BUG() statement when a client fetches an onion descriptor
8420       that has a lower revision counter than the one in its cache. This
8421       can happen in normal circumstances due to HSDir desync. Fixes bug
8422       24976; bugfix on 0.3.2.1-alpha.
8424   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
8425     - Don't treat inability to store a cached consensus object as a bug:
8426       it can happen normally when we are out of disk space. Fixes bug
8427       24859; bugfix on 0.3.1.1-alpha.
8429   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
8430     - Improve the performance of our consensus-diff application code
8431       when Tor is built with the --enable-fragile-hardening option set.
8432       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
8434   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
8435     - Don't exit the Tor process if setrlimit() fails to change the file
8436       limit (which can happen sometimes on some versions of OSX). Fixes
8437       bug 21074; bugfix on 0.0.9pre5.
8439   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
8440     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
8441       0.2.9.4-alpha.
8442     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
8443       bugfix on 0.2.9.4-alpha.
8445   o Minor bugfixes (testing, backport from 0.3.3.1-alpha):
8446     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
8447       25005; bugfix on 0.3.2.7-rc.
8449   o Minor bugfixes (v3 onion services, backport from 0.3.3.2-alpha):
8450     - Look at the "HSRend" protocol version, not the "HSDir" protocol
8451       version, when deciding whether a consensus entry can support the
8452       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
8453       bugfix on 0.3.2.1-alpha.
8455   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
8456     - Update the "rust dependencies" submodule to be a project-level
8457       repository, rather than a user repository. Closes ticket 25323.
8459   o Documentation (backport from 0.3.3.1-alpha)
8460     - Document that operators who run more than one relay or bridge are
8461       expected to set MyFamily and ContactInfo correctly. Closes
8462       ticket 24526.
8465 Changes in version 0.3.3.3-alpha - 2018-03-03
8466   Tor 0.3.3.3-alpha is the third alpha release for the 0.3.3.x series.
8467   It includes an important security fix for a remote crash attack
8468   against directory authorities tracked as TROVE-2018-001.
8470   Additionally, with this release, we are upgrading the severity of a
8471   bug fixed in 0.3.3.2-alpha. Bug 24700, which was fixed in
8472   0.3.3.2-alpha, can be remotely triggered in order to crash relays with
8473   a use-after-free pattern. As such, we are now tracking that bug as
8474   TROVE-2018-002 and CVE-2018-0491. This bug affected versions
8475   0.3.2.1-alpha through 0.3.2.9, as well as 0.3.3.1-alpha.
8477   This release also fixes several minor bugs and annoyances from
8478   earlier releases.
8480   Relays running 0.3.2.x should upgrade to one of the versions released
8481   today, for the fix to TROVE-2018-002. Directory authorities should
8482   also upgrade. (Relays on earlier versions might want to update too for
8483   the DoS mitigations.)
8485   o Major bugfixes (denial-of-service, directory authority):
8486     - Fix a protocol-list handling bug that could be used to remotely crash
8487       directory authorities with a null-pointer exception. Fixes bug 25074;
8488       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
8489       CVE-2018-0490.
8491   o Minor features (compatibility, OpenSSL):
8492     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
8493       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
8494       since they neither disabled TLS 1.3 nor enabled any of the
8495       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
8496       Closes ticket 24978.
8498   o Minor features (logging):
8499     - Clarify the log messages produced when getrandom() or a related
8500       entropy-generation mechanism gives an error. Closes ticket 25120.
8502   o Minor features (testing):
8503     - Add a "make test-rust" target to run the rust tests only. Closes
8504       ticket 25071.
8506   o Minor bugfixes (denial-of-service):
8507     - Fix a possible crash on malformed consensus. If a consensus had
8508       contained an unparseable protocol line, it could have made clients
8509       and relays crash with a null-pointer exception. To exploit this
8510       issue, however, an attacker would need to be able to subvert the
8511       directory authority system. Fixes bug 25251; bugfix on
8512       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
8514   o Minor bugfixes (DoS mitigation):
8515     - Add extra safety checks when refilling the circuit creation bucket
8516       to ensure we never set a value above the allowed maximum burst.
8517       Fixes bug 25202; bugfix on 0.3.3.2-alpha.
8518     - When a new consensus arrives, don't update our DoS-mitigation
8519       parameters if we aren't a public relay. Fixes bug 25223; bugfix
8520       on 0.3.3.2-alpha.
8522   o Minor bugfixes (man page, SocksPort):
8523     - Remove dead code from the old "SocksSocket" option, and rename
8524       SocksSocketsGroupWritable to UnixSocksGroupWritable. The old option
8525       still works, but is deprecated. Fixes bug 24343; bugfix on 0.2.6.3.
8527   o Minor bugfixes (performance):
8528     - Reduce the number of circuits that will be opened at once during
8529       the circuit build timeout phase. This is done by increasing the
8530       idle timeout to 3 minutes, and lowering the maximum number of
8531       concurrent learning circuits to 10. Fixes bug 24769; bugfix
8532       on 0.3.1.1-alpha.
8534   o Minor bugfixes (spec conformance):
8535     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
8536       0.2.9.4-alpha.
8537     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
8538       bugfix on 0.2.9.4-alpha.
8540   o Minor bugfixes (spec conformance, rust):
8541     - Resolve a denial-of-service issue caused by an infinite loop in
8542       the rust protover code. Fixes bug 25250, bugfix on 0.3.3.1-alpha.
8543       Also tracked as TROVE-2018-003.
8545   o Code simplification and refactoring:
8546     - Update the "rust dependencies" submodule to be a project-level
8547       repository, rather than a user repository. Closes ticket 25323.
8550 Changes in version 0.3.3.2-alpha - 2018-02-10
8551   Tor 0.3.3.2-alpha is the second alpha in the 0.3.3.x series. It
8552   introduces a mechanism to handle the high loads that many relay
8553   operators have been reporting recently. It also fixes several bugs in
8554   older releases. If this new code proves reliable, we plan to backport
8555   it to older supported release series.
8557   o Major features (denial-of-service mitigation):
8558     - Give relays some defenses against the recent network overload. We
8559       start with three defenses (default parameters in parentheses).
8560       First: if a single client address makes too many concurrent
8561       connections (>100), hang up on further connections. Second: if a
8562       single client address makes circuits too quickly (more than 3 per
8563       second, with an allowed burst of 90) while also having too many
8564       connections open (3), refuse new create cells for the next while
8565       (1-2 hours). Third: if a client asks to establish a rendezvous
8566       point to you directly, ignore the request. These defenses can be
8567       manually controlled by new torrc options, but relays will also
8568       take guidance from consensus parameters, so there's no need to
8569       configure anything manually. Implements ticket 24902.
8571   o Major bugfixes (netflow padding):
8572     - Stop adding unneeded channel padding right after we finish
8573       flushing to a connection that has been trying to flush for many
8574       seconds. Instead, treat all partial or complete flushes as
8575       activity on the channel, which will defer the time until we need
8576       to add padding. This fix should resolve confusing and scary log
8577       messages like "Channel padding timeout scheduled 221453ms in the
8578       past." Fixes bug 22212; bugfix on 0.3.1.1-alpha.
8580   o Major bugfixes (protocol versions):
8581     - Add Link protocol version 5 to the supported protocols list. Fixes
8582       bug 25070; bugfix on 0.3.1.1-alpha.
8584   o Major bugfixes (scheduler, consensus):
8585     - The scheduler subsystem was failing to promptly notice changes in
8586       consensus parameters, making it harder to switch schedulers
8587       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
8589   o Minor features (denial-of-service avoidance):
8590     - Make our OOM handler aware of the geoip client history cache so it
8591       doesn't fill up the memory. This check is important for IPv6 and
8592       our DoS mitigation subsystem. Closes ticket 25122.
8594   o Minor features (directory authority):
8595     - When directory authorities are unable to add signatures to a
8596       pending consensus, log the reason why. Closes ticket 24849.
8598   o Minor features (geoip):
8599     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
8600       Country database.
8602   o Minor features (logging, diagnostic):
8603     - When logging a failure to create an onion service's descriptor,
8604       also log what the problem with the descriptor was. Diagnostic for
8605       ticket 24972.
8607   o Minor bugfix (channel connection):
8608     - Use the actual observed address of an incoming relay connection,
8609       not the canonical address of the relay from its descriptor, when
8610       making decisions about how to handle the incoming connection.
8611       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
8613   o Minor bugfix (directory authority):
8614     - Directory authorities, when refusing a descriptor from a rejected
8615       relay, now explicitly tell the relay (in its logs) to set a valid
8616       ContactInfo address and contact the bad-relays@ mailing list.
8617       Fixes bug 25170; bugfix on 0.2.9.1.
8619   o Minor bugfixes (all versions of Tor):
8620     - Use the "misspell" tool to detect and fix typos throughout the
8621       source code. Fixes bug 23650; bugfix on various versions of Tor.
8622       Patch from Deepesh Pathak.
8624   o Minor bugfixes (circuit, cannibalization):
8625     - Don't cannibalize preemptively-built circuits if we no longer
8626       recognize their first hop. This situation can happen if our Guard
8627       relay went off the consensus after the circuit was created. Fixes
8628       bug 24469; bugfix on 0.0.6.
8630   o Minor bugfixes (correctness):
8631     - Remove a nonworking, unnecessary check to see whether a circuit
8632       hop's identity digest was set when the circuit failed. Fixes bug
8633       24927; bugfix on 0.2.4.4-alpha.
8635   o Minor bugfixes (logging):
8636     - Don't treat inability to store a cached consensus object as a bug:
8637       it can happen normally when we are out of disk space. Fixes bug
8638       24859; bugfix on 0.3.1.1-alpha.
8639     - Fix a (mostly harmless) race condition when invoking
8640       LOG_PROTOCOL_WARN message from a subthread while the torrc options
8641       are changing. Fixes bug 23954; bugfix on 0.1.1.9-alpha.
8643   o Minor bugfixes (onion services):
8644     - Remove a BUG() statement when a client fetches an onion descriptor
8645       that has a lower revision counter than the one in its cache. This
8646       can happen in normal circumstances due to HSDir desync. Fixes bug
8647       24976; bugfix on 0.3.2.1-alpha.
8648     - If we are configured to offer a single onion service, don't log
8649       long-term established one hop rendezvous points in the heartbeat.
8650       Fixes bug 25116; bugfix on 0.2.9.6-rc.
8652   o Minor bugfixes (performance):
8653     - Avoid calling protocol_list_supports_protocol() from inside tight
8654       loops when running with cached routerinfo_t objects. Instead,
8655       summarize the relevant protocols as flags in the routerinfo_t, as
8656       we do for routerstatus_t objects. This change simplifies our code
8657       a little, and saves a large amount of short-term memory allocation
8658       operations. Fixes bug 25008; bugfix on 0.2.9.4-alpha.
8660   o Minor bugfixes (Rust FFI):
8661     - Fix a minor memory leak which would happen whenever the C code
8662       would call the Rust implementation of
8663       protover_get_supported_protocols(). This was due to the C version
8664       returning a static string, whereas the Rust version newly allocated
8665       a CString to pass across the FFI boundary. Consequently, the C
8666       code was not expecting to need to free() what it was given. Fixes
8667       bug 25127; bugfix on 0.3.2.1-alpha.
8669   o Minor bugfixes (scheduler, KIST):
8670     - Avoid adding the same channel twice in the KIST scheduler pending
8671       list, which would waste CPU cycles. Fixes bug 24700; bugfix
8672       on 0.3.2.1-alpha.
8674   o Minor bugfixes (unit test, monotonic time):
8675     - Increase a constant (1msec to 10msec) in the monotonic time test
8676       that makes sure the nsec/usec/msec times read are synchronized.
8677       This change was needed to accommodate slow systems like armel or
8678       when the clock_gettime() is not a VDSO on the running kernel.
8679       Fixes bug 25113; bugfix on 0.2.9.1.
8681   o Minor bugfixes (v3 onion services):
8682     - Look at the "HSRend" protocol version, not the "HSDir" protocol
8683       version, when deciding whether a consensus entry can support the
8684       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
8685       bugfix on 0.3.2.1-alpha.
8687   o Code simplification and refactoring:
8688     - Remove the unused nodelist_recompute_all_hsdir_indices(). Closes
8689       ticket 25108.
8690     - Remove a series of counters used to track circuit extend attempts
8691       and connection status but that in reality we aren't using for
8692       anything other than stats logged by a SIGUSR1 signal. Closes
8693       ticket 25163.
8695   o Documentation (man page):
8696     - The HiddenServiceVersion torrc option accepts only one number:
8697       either version 2 or 3. Closes ticket 25026; bugfix
8698       on 0.3.2.2-alpha.
8701 Changes in version 0.3.3.1-alpha - 2018-01-25
8702   Tor 0.3.3.1-alpha is the first release in the 0.3.3.x series. It adds
8703   several new features to Tor, including several improvements to
8704   bootstrapping, and support for an experimental "vanguards" feature to
8705   resist guard discovery attacks. This series also includes better
8706   support for applications that need to embed Tor or manage v3
8707   onion services.
8709   o Major features (embedding):
8710     - There is now a documented stable API for programs that need to
8711       embed Tor. See tor_api.h for full documentation and known bugs.
8712       Closes ticket 23684.
8713     - Tor now has support for restarting in the same process.
8714       Controllers that run Tor using the "tor_api.h" interface can now
8715       restart Tor after Tor has exited. This support is incomplete,
8716       however: we fixed crash bugs that prevented it from working at
8717       all, but many bugs probably remain, including a possibility of
8718       security issues. Implements ticket 24581.
8720   o Major features (IPv6, directory documents):
8721     - Add consensus method 27, which adds IPv6 ORPorts to the microdesc
8722       consensus. This information makes it easier for IPv6 clients to
8723       bootstrap and choose reachable entry guards. Implements ticket 23826.
8724     - Add consensus method 28, which removes IPv6 ORPorts from
8725       microdescriptors. Now that the consensus contains IPv6 ORPorts, they
8726       are redundant in microdescs. This change will be used by Tor clients
8727       on 0.2.8.x and later. (That is to say, with all Tor clients that
8728       have IPv6 bootstrap and guard support.) Implements ticket 23828.
8729     - Expand the documentation for AuthDirHasIPv6Connectivity when it is
8730       set by different numbers of authorities. Fixes 23870
8731       on 0.2.4.1-alpha.
8733   o Major features (onion service v3, control port):
8734     - The control port now supports commands and events for v3 onion
8735       services. It is now possible to create ephemeral v3 services using
8736       ADD_ONION. Additionally, several events (HS_DESC, HS_DESC_CONTENT,
8737       CIRC and CIRC_MINOR) and commands (GETINFO, HSPOST, ADD_ONION and
8738       DEL_ONION) have been extended to support v3 onion services. Closes
8739       ticket 20699; implements proposal 284.
8741   o Major features (onion services):
8742     - Provide torrc options to pin the second and third hops of onion
8743       service circuits to a list of nodes. The option HSLayer2Guards
8744       pins the second hop, and the option HSLayer3Guards pins the third
8745       hop. These options are for use in conjunction with experiments
8746       with "vanguards" for preventing guard enumeration attacks. Closes
8747       ticket 13837.
8749   o Major features (rust, portability, experimental):
8750     - Tor now ships with an optional implementation of one of its
8751       smaller modules (protover.c) in the Rust programming language. To
8752       try it out, install a Rust build environment, and configure Tor
8753       with "--enable-rust --enable-cargo-online-mode". This should not
8754       cause any user-visible changes, but should help us gain more
8755       experience with Rust, and plan future Rust integration work.
8756       Implementation by Chelsea Komlo. Closes ticket 22840.
8758   o Minor features (storage, configuration):
8759     - Users can store cached directory documents somewhere other than
8760       the DataDirectory by using the CacheDirectory option. Similarly,
8761       the storage location for relay's keys can be overridden with the
8762       KeyDirectory option. Closes ticket 22703.
8764   o Major features (v3 onion services, ipv6):
8765     - When v3 onion service clients send introduce cells, they now
8766       include the IPv6 address of the rendezvous point, if it has one.
8767       Current v3 onion services running 0.3.2 ignore IPv6 addresses, but
8768       in future Tor versions, IPv6-only v3 single onion services will be
8769       able to use IPv6 addresses to connect directly to the rendezvous
8770       point. Closes ticket 23577. Patch by Neel Chauhan.
8772   o Major bugfixes (onion services, retry behavior):
8773     - Fix an "off by 2" error in counting rendezvous failures on the
8774       onion service side. While we thought we would stop the rendezvous
8775       attempt after one failed circuit, we were actually making three
8776       circuit attempts before giving up. Now switch to a default of 2,
8777       and allow the consensus parameter "hs_service_max_rdv_failures" to
8778       override. Fixes bug 24895; bugfix on 0.0.6.
8779     - New-style (v3) onion services now obey the "max rendezvous circuit
8780       attempts" logic. Previously they would make as many rendezvous
8781       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
8782       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
8784   o Major bugfixes (relays):
8785     - Fix a set of false positives where relays would consider
8786       connections to other relays as being client-only connections (and
8787       thus e.g. deserving different link padding schemes) if those
8788       relays fell out of the consensus briefly. Now we look only at the
8789       initial handshake and whether the connection authenticated as a
8790       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
8792   o Minor feature (IPv6):
8793     - Make IPv6-only clients wait for microdescs for relays, even if we
8794       were previously using descriptors (or were using them as a bridge)
8795       and have a cached descriptor for them. Implements ticket 23827.
8796     - When a consensus has IPv6 ORPorts, make IPv6-only clients use
8797       them, rather than waiting to download microdescriptors.
8798       Implements ticket 23827.
8800   o Minor features (cleanup):
8801     - Tor now deletes the CookieAuthFile and ExtORPortCookieAuthFile
8802       when it stops. Closes ticket 23271.
8804   o Minor features (defensive programming):
8805     - Most of the functions in Tor that free objects have been replaced
8806       with macros that free the objects and set the corresponding
8807       pointers to NULL. This change should help prevent a large class of
8808       dangling pointer bugs. Closes ticket 24337.
8809     - Where possible, the tor_free() macro now only evaluates its input
8810       once. Part of ticket 24337.
8811     - Check that microdesc ed25519 ids are non-zero in
8812       node_get_ed25519_id() before returning them. Implements ticket
8813       24001, patch by "aruna1234".
8815   o Minor features (embedding):
8816     - Tor can now start with a preauthenticated control connection
8817       created by the process that launched it. This feature is meant for
8818       use by programs that want to launch and manage a Tor process
8819       without allowing other programs to manage it as well. For more
8820       information, see the __OwningControllerFD option documented in
8821       control-spec.txt. Closes ticket 23900.
8822     - On most errors that would cause Tor to exit, it now tries to
8823       return from the tor_main() function, rather than calling the
8824       system exit() function. Most users won't notice a difference here,
8825       but it should be significant for programs that run Tor inside
8826       a separate thread: they should now be able to survive Tor's exit
8827       conditions rather than having Tor shut down the entire process.
8828       Closes ticket 23848.
8829     - Applications that want to embed Tor can now tell Tor not to
8830       register any of its own POSIX signal handlers, using the
8831       __DisableSignalHandlers option. Closes ticket 24588.
8833   o Minor features (fallback directory list):
8834     - Avoid selecting fallbacks that change their IP addresses too
8835       often. Select more fallbacks by ignoring the Guard flag, and
8836       allowing lower cutoffs for the Running and V2Dir flags. Also allow
8837       a lower bandwidth, and a higher number of fallbacks per operator
8838       (5% of the list). Implements ticket 24785.
8839     - Update the fallback whitelist and blacklist based on opt-ins and
8840       relay changes. Closes tickets 22321, 24678, 22527, 24135,
8841       and 24695.
8843   o Minor features (fallback directory mirror configuration):
8844     - Add a nickname to each fallback in a C comment. This makes it
8845       easier for operators to find their relays, and allows stem to use
8846       nicknames to identify fallbacks. Implements ticket 24600.
8847     - Add a type and version header to the fallback directory mirror
8848       file. Also add a delimiter to the end of each fallback entry. This
8849       helps external parsers like stem and Relay Search. Implements
8850       ticket 24725.
8851     - Add an extrainfo cache flag for each fallback in a C comment. This
8852       allows stem to use fallbacks to fetch extra-info documents, rather
8853       than using authorities. Implements ticket 22759.
8854     - Add the generateFallbackDirLine.py script for automatically
8855       generating fallback directory mirror lines from relay fingerprints.
8856       No more typos! Add the lookupFallbackDirContact.py script for
8857       automatically looking up operator contact info from relay
8858       fingerprints. Implements ticket 24706, patch by teor and atagar.
8859     - Reject any fallback directory mirror that serves an expired
8860       consensus. Implements ticket 20942, patch by "minik".
8861     - Remove commas and equals signs from external string inputs to the
8862       fallback list. This avoids format confusion attacks. Implements
8863       ticket 24726.
8864     - Remove the "weight=10" line from fallback directory mirror
8865       entries. Ticket 24681 will maintain the current fallback weights
8866       by changing Tor's default fallback weight to 10. Implements
8867       ticket 24679.
8868     - Stop logging excessive information about fallback netblocks.
8869       Implements ticket 24791.
8871   o Minor features (forward-compatibility):
8872     - If a relay supports some link authentication protocol that we do
8873       not recognize, then include that relay's ed25519 key when telling
8874       other relays to extend to it. Previously, we treated future
8875       versions as if they were too old to support ed25519 link
8876       authentication. Closes ticket 20895.
8878   o Minor features (heartbeat):
8879     - Add onion service information to our heartbeat logs, displaying
8880       stats about the activity of configured onion services. Closes
8881       ticket 24896.
8883   o Minor features (instrumentation, development):
8884     - Add the MainloopStats option to allow developers to get
8885       instrumentation information from the main event loop via the
8886       heartbeat messages. We hope to use this to improve Tor's behavior
8887       when it's trying to sleep. Closes ticket 24605.
8889   o Minor features (log messages):
8890     - Improve a warning message that happens when we fail to re-parse an
8891       old router because of an expired certificate. Closes ticket 20020.
8892     - Make the log more quantitative when we hit MaxMemInQueues
8893       threshold exposing some values. Closes ticket 24501.
8895   o Minor features (logging, android):
8896     - Added support for the Android logging subsystem. Closes
8897       ticket 24362.
8899   o Minor features (performance):
8900     - Support predictive circuit building for onion service circuits
8901       with multiple layers of guards. Closes ticket 23101.
8902     - Use stdatomic.h where available, rather than mutexes, to implement
8903       atomic_counter_t. Closes ticket 23953.
8905   o Minor features (performance, 32-bit):
8906     - Improve performance on 32-bit systems by avoiding 64-bit division
8907       when calculating the timestamp in milliseconds for channel padding
8908       computations. Implements ticket 24613.
8909     - Improve performance on 32-bit systems by avoiding 64-bit division
8910       when timestamping cells and buffer chunks for OOM calculations.
8911       Implements ticket 24374.
8913   o Minor features (performance, OSX, iOS):
8914     - Use the mach_approximate_time() function (when available) to
8915       implement coarse monotonic time. Having a coarse time function
8916       should avoid a large number of system calls, and improve
8917       performance slightly, especially under load. Closes ticket 24427.
8919   o Minor features (performance, windows):
8920     - Improve performance on Windows Vista and Windows 7 by adjusting
8921       TCP send window size according to the recommendation from
8922       SIO_IDEAL_SEND_BACKLOG_QUERY. Closes ticket 22798. Patch
8923       from Vort.
8925   o Major features (relay):
8926     - Implement an option, ReducedExitPolicy, to allow an Tor exit relay
8927       operator to use a more reasonable ("reduced") exit policy, rather
8928       than the default one. If you want to run an exit node without
8929       thinking too hard about which ports to allow, this one is for you.
8930       Closes ticket 13605. Patch from Neel Chauhan.
8932   o Minor features (testing, debugging, embedding):
8933     - For development purposes, Tor now has a mode in which it runs for
8934       a few seconds, then stops, and starts again without exiting the
8935       process. This mode is meant to help us debug various issues with
8936       ticket 23847. To use this feature, compile with
8937       --enable-restart-debugging, and set the TOR_DEBUG_RESTART
8938       environment variable. This is expected to crash a lot, and is
8939       really meant for developers only. It will likely be removed in a
8940       future release. Implements ticket 24583.
8942   o Minor bugfix (network IPv6 test):
8943     - Tor's test scripts now check if "ping -6 ::1" works when the user
8944       runs "make test-network-all". Fixes bug 24677; bugfix on
8945       0.2.9.3-alpha. Patch by "ffmancera".
8947   o Minor bugfixes (build, rust):
8948     - Fix output of autoconf checks to display success messages for Rust
8949       dependencies and a suitable rustc compiler version. Fixes bug
8950       24612; bugfix on 0.3.1.3-alpha.
8951     - When building with Rust on OSX, link against libresolv, to work
8952       around the issue at https://github.com/rust-lang/rust/issues/46797.
8953       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
8954     - Don't pass the --quiet option to cargo: it seems to suppress some
8955       errors, which is not what we want to do when building. Fixes bug
8956       24518; bugfix on 0.3.1.7.
8957     - Build correctly when building from outside Tor's source tree with
8958       the TOR_RUST_DEPENDENCIES option set. Fixes bug 22768; bugfix
8959       on 0.3.1.7.
8961   o Minor bugfixes (directory authorities, IPv6):
8962     - When creating a routerstatus (vote) from a routerinfo (descriptor),
8963       set the IPv6 address to the unspecified IPv6 address, and
8964       explicitly initialize the port to zero. Fixes bug 24488; bugfix
8965       on 0.2.4.1-alpha.
8967   o Minor bugfixes (fallback directory mirrors):
8968     - Make updateFallbackDirs.py search harder for python. (Some OSs
8969       don't put it in /usr/bin.) Fixes bug 24708; bugfix
8970       on 0.2.8.1-alpha.
8972   o Minor bugfixes (hibernation, bandwidth accounting, shutdown):
8973     - When hibernating, close connections normally and allow them to
8974       flush. Fixes bug 23571; bugfix on 0.2.4.7-alpha. Also fixes
8975       bug 7267.
8976     - Do not attempt to launch self-reachability tests when entering
8977       hibernation. Fixes a case of bug 12062; bugfix on 0.0.9pre5.
8978     - Resolve several bugs related to descriptor fetching on bridge
8979       clients with bandwidth accounting enabled. (This combination is
8980       not recommended!) Fixes a case of bug 12062; bugfix
8981       on 0.2.0.3-alpha.
8982     - When hibernating, do not attempt to launch DNS checks. Fixes a
8983       case of bug 12062; bugfix on 0.1.2.2-alpha.
8984     - When hibernating, do not try to upload or download descriptors.
8985       Fixes a case of bug 12062; bugfix on 0.0.9pre5.
8987   o Minor bugfixes (IPv6, bridges):
8988     - Tor now always sets IPv6 preferences for bridges. Fixes bug 24573;
8989       bugfix on 0.2.8.2-alpha.
8990     - Tor now sets IPv6 address in the routerstatus as well as in the
8991       router descriptors when updating addresses for a bridge. Closes
8992       ticket 24572; bugfix on 0.2.4.5-alpha. Patch by "ffmancera".
8994   o Minor bugfixes (linux seccomp2 sandbox):
8995     - When running with the sandbox enabled, reload configuration files
8996       correctly even when %include was used. Previously we would crash.
8997       Fixes bug 22605; bugfix on 0.3.1. Patch from Daniel Pinto.
8999   o Minor bugfixes (memory leaks):
9000     - Avoid possible at-exit memory leaks related to use of Libevent's
9001       event_base_once() function. (This function tends to leak memory if
9002       the event_base is closed before the event fires.) Fixes bug 24584;
9003       bugfix on 0.2.8.1-alpha.
9004     - Fix a harmless memory leak in tor-resolve. Fixes bug 24582; bugfix
9005       on 0.2.1.1-alpha.
9007   o Minor bugfixes (OSX):
9008     - Don't exit the Tor process if setrlimit() fails to change the file
9009       limit (which can happen sometimes on some versions of OSX). Fixes
9010       bug 21074; bugfix on 0.0.9pre5.
9012   o Minor bugfixes (performance, fragile-hardening):
9013     - Improve the performance of our consensus-diff application code
9014       when Tor is built with the --enable-fragile-hardening option set.
9015       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
9017   o Minor bugfixes (performance, timeouts):
9018     - Consider circuits for timeout as soon as they complete a hop. This
9019       is more accurate than applying the timeout in
9020       circuit_expire_building() because that function is only called
9021       once per second, which is now too slow for typical timeouts on the
9022       current network. Fixes bug 23114; bugfix on 0.2.2.2-alpha.
9023     - Use onion service circuits (and other circuits longer than 3 hops)
9024       to calculate a circuit build timeout. Previously, Tor only
9025       calculated its build timeout based on circuits that planned to be
9026       exactly 3 hops long. With this change, we include measurements
9027       from all circuits at the point where they complete their third
9028       hop. Fixes bug 23100; bugfix on 0.2.2.2-alpha.
9030   o Minor bugfixes (testing):
9031     - Give out Exit flags in bootstrapping networks. Fixes bug 24137;
9032       bugfix on 0.2.3.1-alpha.
9033     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
9034       25005; bugfix on 0.3.2.7-rc.
9036   o Code simplification and refactoring:
9037     - Remove /usr/athena from search path in configure.ac. Closes
9038       ticket 24363.
9039     - Remove duplicate code in node_has_curve25519_onion_key() and
9040       node_get_curve25519_onion_key(), and add a check for a zero
9041       microdesc curve25519 onion key. Closes ticket 23966, patch by
9042       "aruna1234" and teor.
9043     - Rewrite channel_rsa_id_group_set_badness to reduce temporary
9044       memory allocations with large numbers of OR connections (e.g.
9045       relays). Closes ticket 24119.
9046     - Separate the function that deletes ephemeral files when Tor
9047       stops gracefully.
9048     - Small changes to Tor's buf_t API to make it suitable for use as a
9049       general-purpose safe string constructor. Closes ticket 22342.
9050     - Switch -Wnormalized=id to -Wnormalized=nfkc in configure.ac to
9051       avoid source code identifier confusion. Closes ticket 24467.
9052     - The tor_git_revision[] constant no longer needs to be redeclared
9053       by everything that links against the rest of Tor. Done as part of
9054       ticket 23845, to simplify our external API.
9055     - We make extend_info_from_node() use node_get_curve25519_onion_key()
9056       introduced in ticket 23577 to access the curve25519 public keys
9057       rather than accessing it directly. Closes ticket 23760. Patch by
9058       Neel Chauhan.
9059     - Add a function to log channels' scheduler state changes to aid
9060       debugging efforts. Closes ticket 24531.
9062   o Documentation:
9063     - Add documentation on how to build tor with Rust dependencies
9064       without having to be online. Closes ticket 22907; bugfix
9065       on 0.3.0.3-alpha.
9066     - Clarify the behavior of RelayBandwidth{Rate,Burst} with client
9067       traffic. Closes ticket 24318.
9068     - Document that OutboundBindAddress doesn't apply to DNS requests.
9069       Closes ticket 22145. Patch from Aruna Maurya.
9070     - Document that operators who run more than one relay or bridge are
9071       expected to set MyFamily and ContactInfo correctly. Closes
9072       ticket 24526.
9074   o Code simplification and refactoring (channels):
9075     - Remove the incoming and outgoing channel queues. These were never
9076       used, but still took up a step in our fast path.
9077     - The majority of the channel unit tests have been rewritten and the
9078       code coverage has now been raised to 83.6% for channel.c. Closes
9079       ticket 23709.
9080     - Remove other dead code from the channel subsystem: All together,
9081       this cleanup has removed more than 1500 lines of code overall and
9082       adding very little except for unit test.
9084   o Code simplification and refactoring (circuit rendezvous):
9085     - Split the client-side rendezvous circuit lookup into two
9086       functions: one that returns only established circuits and another
9087       that returns all kinds of circuits. Closes ticket 23459.
9089   o Code simplification and refactoring (controller):
9090     - Make most of the variables in networkstatus_getinfo_by_purpose()
9091       const. Implements ticket 24489.
9094 Changes in version 0.3.2.9 - 2018-01-09
9095   Tor 0.3.2.9 is the first stable release in the 0.3.2 series.
9097   The 0.3.2 series includes our long-anticipated new onion service
9098   design, with numerous security features. (For more information, see
9099   our blog post at https://blog.torproject.org/fall-harvest.) We also
9100   have a new circuit scheduler algorithm for improved performance on
9101   relays everywhere (see https://blog.torproject.org/kist-and-tell),
9102   along with many smaller features and bugfixes.
9104   Per our stable release policy, we plan to support each stable release
9105   series for at least the next nine months, or for three months after
9106   the first stable release of the next series: whichever is longer. If
9107   you need a release with long-term support, we recommend that you stay
9108   with the 0.2.9 series.
9110   Below is a list of the changes since 0.3.2.8-rc. For a list of all
9111   changes since 0.3.1, see the ReleaseNotes file.
9113   o Minor features (fallback directory mirrors):
9114     - The fallback directory list has been re-generated based on the
9115       current status of the network. Tor uses fallback directories to
9116       bootstrap when it doesn't yet have up-to-date directory
9117       information. Closes ticket 24801.
9118     - Make the default DirAuthorityFallbackRate 0.1, so that clients
9119       prefer to bootstrap from fallback directory mirrors. This is a
9120       follow-up to 24679, which removed weights from the default
9121       fallbacks. Implements ticket 24681.
9123   o Minor features (geoip):
9124     - Update geoip and geoip6 to the January 5 2018 Maxmind GeoLite2
9125       Country database.
9127   o Minor bugfixes (address selection):
9128     - When the fascist_firewall_choose_address_ functions don't find a
9129       reachable address, set the returned address to the null address
9130       and port. This is a precautionary measure, because some callers do
9131       not check the return value. Fixes bug 24736; bugfix
9132       on 0.2.8.2-alpha.
9134   o Minor bugfixes (compilation):
9135     - Resolve a few shadowed-variable warnings in the onion service
9136       code. Fixes bug 24634; bugfix on 0.3.2.1-alpha.
9138   o Minor bugfixes (portability, msvc):
9139     - Fix a bug in the bit-counting parts of our timing-wheel code on
9140       MSVC. (Note that MSVC is still not a supported build platform, due
9141       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
9142       on 0.2.9.1-alpha.
9145 Changes in version 0.3.2.8-rc - 2017-12-21
9146   Tor 0.3.2.8-rc fixes a pair of bugs in the KIST and KISTLite
9147   schedulers that had led servers under heavy load to overload their
9148   outgoing connections. All relay operators running earlier 0.3.2.x
9149   versions should upgrade. This version also includes a mitigation for
9150   over-full DESTROY queues leading to out-of-memory conditions: if it
9151   works, we will soon backport it to earlier release series.
9153   This is the second release candidate in the 0.3.2 series. If we find
9154   no new bugs or regression here, then the first stable 0.3.2 release
9155   will be nearly identical to this.
9157   o Major bugfixes (KIST, scheduler):
9158     - The KIST scheduler did not correctly account for data already
9159       enqueued in each connection's send socket buffer, particularly in
9160       cases when the TCP/IP congestion window was reduced between
9161       scheduler calls. This situation lead to excessive per-connection
9162       buffering in the kernel, and a potential memory DoS. Fixes bug
9163       24665; bugfix on 0.3.2.1-alpha.
9165   o Minor features (geoip):
9166     - Update geoip and geoip6 to the December 6 2017 Maxmind GeoLite2
9167       Country database.
9169   o Minor bugfixes (hidden service v3):
9170     - Bump hsdir_spread_store parameter from 3 to 4 in order to increase
9171       the probability of reaching a service for a client missing
9172       microdescriptors. Fixes bug 24425; bugfix on 0.3.2.1-alpha.
9174   o Minor bugfixes (memory usage):
9175     - When queuing DESTROY cells on a channel, only queue the circuit-id
9176       and reason fields: not the entire 514-byte cell. This fix should
9177       help mitigate any bugs or attacks that fill up these queues, and
9178       free more RAM for other uses. Fixes bug 24666; bugfix
9179       on 0.2.5.1-alpha.
9181   o Minor bugfixes (scheduler, KIST):
9182     - Use a sane write limit for KISTLite when writing onto a connection
9183       buffer instead of using INT_MAX and shoving as much as it can.
9184       Because the OOM handler cleans up circuit queues, we are better
9185       off at keeping them in that queue instead of the connection's
9186       buffer. Fixes bug 24671; bugfix on 0.3.2.1-alpha.
9189 Changes in version 0.3.2.7-rc - 2017-12-14
9190   Tor 0.3.2.7-rc fixes various bugs in earlier versions of Tor,
9191   including some that could affect reliability or correctness.
9193   This is the first release candidate in the 0.3.2 series. If we find no
9194   new bugs or regression here, then the first stable 0.3.2. release will
9195   be nearly identical to this.
9197   o Major bugfixes (circuit prediction):
9198     - Fix circuit prediction logic so that a client doesn't treat a port
9199       as being "handled" by a circuit if that circuit already has
9200       isolation settings on it. This change should make Tor clients more
9201       responsive by improving their chances of having a pre-created
9202       circuit ready for use when a request arrives. Fixes bug 18859;
9203       bugfix on 0.2.3.3-alpha.
9205   o Minor features (logging):
9206     - Provide better warnings when the getrandom() syscall fails. Closes
9207       ticket 24500.
9209   o Minor features (portability):
9210     - Tor now compiles correctly on arm64 with libseccomp-dev installed.
9211       (It doesn't yet work with the sandbox enabled.) Closes
9212       ticket 24424.
9214   o Minor bugfixes (bridge clients, bootstrap):
9215     - Retry directory downloads when we get our first bridge descriptor
9216       during bootstrap or while reconnecting to the network. Keep
9217       retrying every time we get a bridge descriptor, until we have a
9218       reachable bridge. Fixes part of bug 24367; bugfix on 0.2.0.3-alpha.
9219     - Stop delaying bridge descriptor fetches when we have cached bridge
9220       descriptors. Instead, only delay bridge descriptor fetches when we
9221       have at least one reachable bridge. Fixes part of bug 24367;
9222       bugfix on 0.2.0.3-alpha.
9223     - Stop delaying directory fetches when we have cached bridge
9224       descriptors. Instead, only delay bridge descriptor fetches when
9225       all our bridges are definitely unreachable. Fixes part of bug
9226       24367; bugfix on 0.2.0.3-alpha.
9228   o Minor bugfixes (compilation):
9229     - Fix a signed/unsigned comparison warning introduced by our fix to
9230       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
9232   o Minor bugfixes (correctness):
9233     - Fix several places in our codebase where a C compiler would be
9234       likely to eliminate a check, based on assuming that undefined
9235       behavior had not happened elsewhere in the code. These cases are
9236       usually a sign of redundant checking or dubious arithmetic. Found
9237       by Georg Koppen using the "STACK" tool from Wang, Zeldovich,
9238       Kaashoek, and Solar-Lezama. Fixes bug 24423; bugfix on various
9239       Tor versions.
9241   o Minor bugfixes (onion service v3):
9242     - Fix a race where an onion service would launch a new intro circuit
9243       after closing an old one, but fail to register it before freeing
9244       the previously closed circuit. This bug was making the service
9245       unable to find the established intro circuit and thus not upload
9246       its descriptor, thus making a service unavailable for up to 24
9247       hours. Fixes bug 23603; bugfix on 0.3.2.1-alpha.
9249   o Minor bugfixes (scheduler, KIST):
9250     - Properly set the scheduler state of an unopened channel in the
9251       KIST scheduler main loop. This prevents a harmless but annoying
9252       log warning. Fixes bug 24502; bugfix on 0.3.2.4-alpha.
9253     - Avoid a possible integer overflow when computing the available
9254       space on the TCP buffer of a channel. This had no security
9255       implications; but could make KIST allow too many cells on a
9256       saturated connection. Fixes bug 24590; bugfix on 0.3.2.1-alpha.
9257     - Downgrade to "info" a harmless warning about the monotonic time
9258       moving backwards: This can happen on platform not supporting
9259       monotonic time. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
9262 Changes in version 0.3.2.6-alpha - 2017-12-01
9263   This version of Tor is the latest in the 0.3.2 alpha series. It
9264   includes fixes for several important security issues. All Tor users
9265   should upgrade to this release, or to one of the other releases coming
9266   out today.
9268   o Major bugfixes (security):
9269     - Fix a denial of service bug where an attacker could use a
9270       malformed directory object to cause a Tor instance to pause while
9271       OpenSSL would try to read a passphrase from the terminal. (Tor
9272       instances run without a terminal, which is the case for most Tor
9273       packages, are not impacted.) Fixes bug 24246; bugfix on every
9274       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
9275       Found by OSS-Fuzz as testcase 6360145429790720.
9276     - Fix a denial of service issue where an attacker could crash a
9277       directory authority using a malformed router descriptor. Fixes bug
9278       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
9279       and CVE-2017-8820.
9280     - When checking for replays in the INTRODUCE1 cell data for a
9281       (legacy) onion service, correctly detect replays in the RSA-
9282       encrypted part of the cell. We were previously checking for
9283       replays on the entire cell, but those can be circumvented due to
9284       the malleability of Tor's legacy hybrid encryption. This fix helps
9285       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
9286       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
9287       and CVE-2017-8819.
9289   o Major bugfixes (security, onion service v2):
9290     - Fix a use-after-free error that could crash v2 Tor onion services
9291       when they failed to open circuits while expiring introduction
9292       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
9293       also tracked as TROVE-2017-013 and CVE-2017-8823.
9295   o Major bugfixes (security, relay):
9296     - When running as a relay, make sure that we never build a path
9297       through ourselves, even in the case where we have somehow lost the
9298       version of our descriptor appearing in the consensus. Fixes part
9299       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
9300       as TROVE-2017-012 and CVE-2017-8822.
9301     - When running as a relay, make sure that we never choose ourselves
9302       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
9303       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
9305   o Minor feature (relay statistics):
9306     - Change relay bandwidth reporting stats interval from 4 hours to 24
9307       hours in order to reduce the efficiency of guard discovery
9308       attacks. Fixes ticket 23856.
9310   o Minor features (directory authority):
9311     - Add an IPv6 address for the "bastet" directory authority. Closes
9312       ticket 24394.
9314   o Minor bugfixes (client):
9315     - By default, do not enable storage of client-side DNS values. These
9316       values were unused by default previously, but they should not have
9317       been cached at all. Fixes bug 24050; bugfix on 0.2.6.3-alpha.
9320 Changes in version 0.3.1.9 - 2017-12-01:
9321   Tor 0.3.1.9 backports important security and stability fixes from the
9322   0.3.2 development series. All Tor users should upgrade to this
9323   release, or to another of the releases coming out today.
9325   o Major bugfixes (security, backport from 0.3.2.6-alpha):
9326     - Fix a denial of service bug where an attacker could use a
9327       malformed directory object to cause a Tor instance to pause while
9328       OpenSSL would try to read a passphrase from the terminal. (Tor
9329       instances run without a terminal, which is the case for most Tor
9330       packages, are not impacted.) Fixes bug 24246; bugfix on every
9331       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
9332       Found by OSS-Fuzz as testcase 6360145429790720.
9333     - Fix a denial of service issue where an attacker could crash a
9334       directory authority using a malformed router descriptor. Fixes bug
9335       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
9336       and CVE-2017-8820.
9337     - When checking for replays in the INTRODUCE1 cell data for a
9338       (legacy) onion service, correctly detect replays in the RSA-
9339       encrypted part of the cell. We were previously checking for
9340       replays on the entire cell, but those can be circumvented due to
9341       the malleability of Tor's legacy hybrid encryption. This fix helps
9342       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
9343       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
9344       and CVE-2017-8819.
9346   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
9347     - Fix a use-after-free error that could crash v2 Tor onion services
9348       when they failed to open circuits while expiring introduction
9349       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
9350       also tracked as TROVE-2017-013 and CVE-2017-8823.
9352   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
9353     - When running as a relay, make sure that we never build a path
9354       through ourselves, even in the case where we have somehow lost the
9355       version of our descriptor appearing in the consensus. Fixes part
9356       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
9357       as TROVE-2017-012 and CVE-2017-8822.
9358     - When running as a relay, make sure that we never choose ourselves
9359       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
9360       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
9362   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
9363     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
9364       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
9365       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
9366       identifying and finding a workaround to this bug and to Moritz,
9367       Arthur Edelstein, and Roger for helping to track it down and
9368       analyze it.
9370   o Minor features (bridge):
9371     - Bridges now include notice in their descriptors that they are
9372       bridges, and notice of their distribution status, based on their
9373       publication settings. Implements ticket 18329. For more fine-
9374       grained control of how a bridge is distributed, upgrade to 0.3.2.x
9375       or later.
9377   o Minor features (directory authority, backport from 0.3.2.6-alpha):
9378     - Add an IPv6 address for the "bastet" directory authority. Closes
9379       ticket 24394.
9381   o Minor features (geoip):
9382     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
9383       Country database.
9385   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
9386     - Avoid unnecessary calls to directory_fetches_from_authorities() on
9387       relays, to prevent spurious address resolutions and descriptor
9388       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
9389       bugfix on in 0.2.8.1-alpha.
9391   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
9392     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
9393       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
9395   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
9396     - When a circuit is marked for close, do not attempt to package any
9397       cells for channels on that circuit. Previously, we would detect
9398       this condition lower in the call stack, when we noticed that the
9399       circuit had no attached channel, and log an annoying message.
9400       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
9402   o Minor bugfixes (onion service, backport from 0.3.2.5-alpha):
9403     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
9404       so it matches dir-spec.txt. Fixes bug 24262; bugfix
9405       on 0.3.1.1-alpha.
9407   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
9408     - Avoid a crash when transitioning from client mode to bridge mode.
9409       Previously, we would launch the worker threads whenever our
9410       "public server" mode changed, but not when our "server" mode
9411       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
9414 Changes in version 0.3.0.13 - 2017-12-01
9415   Tor 0.3.0.13 backports important security and stability bugfixes from
9416   later Tor releases. All Tor users should upgrade to this release, or
9417   to another of the releases coming out today.
9419   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
9420   2018. If you need a release with long-term support, please stick with
9421   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
9423   o Major bugfixes (security, backport from 0.3.2.6-alpha):
9424     - Fix a denial of service bug where an attacker could use a
9425       malformed directory object to cause a Tor instance to pause while
9426       OpenSSL would try to read a passphrase from the terminal. (Tor
9427       instances run without a terminal, which is the case for most Tor
9428       packages, are not impacted.) Fixes bug 24246; bugfix on every
9429       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
9430       Found by OSS-Fuzz as testcase 6360145429790720.
9431     - Fix a denial of service issue where an attacker could crash a
9432       directory authority using a malformed router descriptor. Fixes bug
9433       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
9434       and CVE-2017-8820.
9435     - When checking for replays in the INTRODUCE1 cell data for a
9436       (legacy) onion service, correctly detect replays in the RSA-
9437       encrypted part of the cell. We were previously checking for
9438       replays on the entire cell, but those can be circumvented due to
9439       the malleability of Tor's legacy hybrid encryption. This fix helps
9440       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
9441       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
9442       and CVE-2017-8819.
9444   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
9445     - Fix a use-after-free error that could crash v2 Tor onion services
9446       when they failed to open circuits while expiring introduction
9447       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
9448       also tracked as TROVE-2017-013 and CVE-2017-8823.
9450   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
9451     - When running as a relay, make sure that we never build a path
9452       through ourselves, even in the case where we have somehow lost the
9453       version of our descriptor appearing in the consensus. Fixes part
9454       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
9455       as TROVE-2017-012 and CVE-2017-8822.
9456     - When running as a relay, make sure that we never choose ourselves
9457       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
9458       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
9460   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
9461     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
9462       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
9463       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
9464       identifying and finding a workaround to this bug and to Moritz,
9465       Arthur Edelstein, and Roger for helping to track it down and
9466       analyze it.
9468   o Minor features (security, windows, backport from 0.3.1.1-alpha):
9469     - Enable a couple of pieces of Windows hardening: one
9470       (HeapEnableTerminationOnCorruption) that has been on-by-default
9471       since Windows 8, and unavailable before Windows 7; and one
9472       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
9473       affect us, but shouldn't do any harm. Closes ticket 21953.
9475   o Minor features (bridge, backport from 0.3.1.9):
9476     - Bridges now include notice in their descriptors that they are
9477       bridges, and notice of their distribution status, based on their
9478       publication settings. Implements ticket 18329. For more fine-
9479       grained control of how a bridge is distributed, upgrade to 0.3.2.x
9480       or later.
9482   o Minor features (directory authority, backport from 0.3.2.6-alpha):
9483     - Add an IPv6 address for the "bastet" directory authority. Closes
9484       ticket 24394.
9486   o Minor features (geoip):
9487     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
9488       Country database.
9490   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
9491     - Avoid unnecessary calls to directory_fetches_from_authorities() on
9492       relays, to prevent spurious address resolutions and descriptor
9493       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
9494       bugfix on in 0.2.8.1-alpha.
9496   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
9497     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
9498       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
9500   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
9501     - When a circuit is marked for close, do not attempt to package any
9502       cells for channels on that circuit. Previously, we would detect
9503       this condition lower in the call stack, when we noticed that the
9504       circuit had no attached channel, and log an annoying message.
9505       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
9507   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
9508     - Avoid a crash when transitioning from client mode to bridge mode.
9509       Previously, we would launch the worker threads whenever our
9510       "public server" mode changed, but not when our "server" mode
9511       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
9513   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
9514     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
9515       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
9518 Changes in version 0.2.9.14 - 2017-12-01
9519   Tor 0.3.0.13 backports important security and stability bugfixes from
9520   later Tor releases. All Tor users should upgrade to this release, or
9521   to another of the releases coming out today.
9523   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
9524     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
9525       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
9526       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
9527       identifying and finding a workaround to this bug and to Moritz,
9528       Arthur Edelstein, and Roger for helping to track it down and
9529       analyze it.
9531   o Major bugfixes (security, backport from 0.3.2.6-alpha):
9532     - Fix a denial of service bug where an attacker could use a
9533       malformed directory object to cause a Tor instance to pause while
9534       OpenSSL would try to read a passphrase from the terminal. (Tor
9535       instances run without a terminal, which is the case for most Tor
9536       packages, are not impacted.) Fixes bug 24246; bugfix on every
9537       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
9538       Found by OSS-Fuzz as testcase 6360145429790720.
9539     - Fix a denial of service issue where an attacker could crash a
9540       directory authority using a malformed router descriptor. Fixes bug
9541       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
9542       and CVE-2017-8820.
9543     - When checking for replays in the INTRODUCE1 cell data for a
9544       (legacy) onion service, correctly detect replays in the RSA-
9545       encrypted part of the cell. We were previously checking for
9546       replays on the entire cell, but those can be circumvented due to
9547       the malleability of Tor's legacy hybrid encryption. This fix helps
9548       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
9549       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
9550       and CVE-2017-8819.
9552   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
9553     - Fix a use-after-free error that could crash v2 Tor onion services
9554       when they failed to open circuits while expiring introduction
9555       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
9556       also tracked as TROVE-2017-013 and CVE-2017-8823.
9558   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
9559     - When running as a relay, make sure that we never build a path
9560       through ourselves, even in the case where we have somehow lost the
9561       version of our descriptor appearing in the consensus. Fixes part
9562       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
9563       as TROVE-2017-012 and CVE-2017-8822.
9565   o Minor features (bridge, backport from 0.3.1.9):
9566     - Bridges now include notice in their descriptors that they are
9567       bridges, and notice of their distribution status, based on their
9568       publication settings. Implements ticket 18329. For more fine-
9569       grained control of how a bridge is distributed, upgrade to 0.3.2.x
9570       or later.
9572   o Minor features (directory authority, backport from 0.3.2.6-alpha):
9573     - Add an IPv6 address for the "bastet" directory authority. Closes
9574       ticket 24394.
9576   o Minor features (geoip):
9577     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
9578       Country database.
9580   o Minor features (security, windows, backport from 0.3.1.1-alpha):
9581     - Enable a couple of pieces of Windows hardening: one
9582       (HeapEnableTerminationOnCorruption) that has been on-by-default
9583       since Windows 8, and unavailable before Windows 7; and one
9584       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
9585       affect us, but shouldn't do any harm. Closes ticket 21953.
9587   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
9588     - Avoid unnecessary calls to directory_fetches_from_authorities() on
9589       relays, to prevent spurious address resolutions and descriptor
9590       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
9591       bugfix on in 0.2.8.1-alpha.
9593   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
9594     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
9595       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
9597   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
9598     - When a circuit is marked for close, do not attempt to package any
9599       cells for channels on that circuit. Previously, we would detect
9600       this condition lower in the call stack, when we noticed that the
9601       circuit had no attached channel, and log an annoying message.
9602       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
9604   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
9605     - Avoid a crash when transitioning from client mode to bridge mode.
9606       Previously, we would launch the worker threads whenever our
9607       "public server" mode changed, but not when our "server" mode
9608       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
9610   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
9611     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
9612       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
9615 Changes in version 0.2.8.17 - 2017-12-01
9616   Tor 0.2.8.17 backports important security and stability bugfixes from
9617   later Tor releases. All Tor users should upgrade to this release, or
9618   to another of the releases coming out today.
9620   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
9621   2018. If you need a release with long-term support, please upgrade with
9622   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
9624   o Major bugfixes (security, backport from 0.3.2.6-alpha):
9625     - Fix a denial of service bug where an attacker could use a
9626       malformed directory object to cause a Tor instance to pause while
9627       OpenSSL would try to read a passphrase from the terminal. (Tor
9628       instances run without a terminal, which is the case for most Tor
9629       packages, are not impacted.) Fixes bug 24246; bugfix on every
9630       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
9631       Found by OSS-Fuzz as testcase 6360145429790720.
9632     - When checking for replays in the INTRODUCE1 cell data for a
9633       (legacy) onion service, correctly detect replays in the RSA-
9634       encrypted part of the cell. We were previously checking for
9635       replays on the entire cell, but those can be circumvented due to
9636       the malleability of Tor's legacy hybrid encryption. This fix helps
9637       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
9638       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
9639       and CVE-2017-8819.
9641   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
9642     - Fix a use-after-free error that could crash v2 Tor onion services
9643       when they failed to open circuits while expiring introduction
9644       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
9645       also tracked as TROVE-2017-013 and CVE-2017-8823.
9647   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
9648     - When running as a relay, make sure that we never build a path through
9649       ourselves, even in the case where we have somehow lost the version of
9650       our descriptor appearing in the consensus. Fixes part of bug 21534;
9651       bugfix on 0.2.0.1-alpha. This issue is also tracked as TROVE-2017-012
9652       and CVE-2017-8822.
9654   o Minor features (bridge, backport from 0.3.1.9):
9655     - Bridges now include notice in their descriptors that they are
9656       bridges, and notice of their distribution status, based on their
9657       publication settings. Implements ticket 18329. For more fine-
9658       grained control of how a bridge is distributed, upgrade to 0.3.2.x
9659       or later.
9661   o Minor features (directory authority, backport from 0.3.2.6-alpha):
9662     - Add an IPv6 address for the "bastet" directory authority. Closes
9663       ticket 24394.
9665   o Minor features (geoip):
9666     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
9667       Country database.
9669   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
9670     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
9671       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
9674 Changes in version 0.2.5.16 - 2017-12-01
9675   Tor 0.2.5.13 backports important security and stability bugfixes from
9676   later Tor releases. All Tor users should upgrade to this release, or
9677   to another of the releases coming out today.
9679   Note: the Tor 0.2.5 series will no longer be supported after 1 May
9680   2018. If you need a release with long-term support, please upgrade to
9681   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
9683   o Major bugfixes (security, backport from 0.3.2.6-alpha):
9684     - Fix a denial of service bug where an attacker could use a
9685       malformed directory object to cause a Tor instance to pause while
9686       OpenSSL would try to read a passphrase from the terminal. (Tor
9687       instances run without a terminal, which is the case for most Tor
9688       packages, are not impacted.) Fixes bug 24246; bugfix on every
9689       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
9690       Found by OSS-Fuzz as testcase 6360145429790720.
9691     - When checking for replays in the INTRODUCE1 cell data for a
9692       (legacy) onion service, correctly detect replays in the RSA-
9693       encrypted part of the cell. We were previously checking for
9694       replays on the entire cell, but those can be circumvented due to
9695       the malleability of Tor's legacy hybrid encryption. This fix helps
9696       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
9697       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
9698       and CVE-2017-8819.
9700   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
9701     - When running as a relay, make sure that we never build a path
9702       through ourselves, even in the case where we have somehow lost the
9703       version of our descriptor appearing in the consensus. Fixes part
9704       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
9705       as TROVE-2017-012 and CVE-2017-8822.
9707   o Minor features (bridge, backport from 0.3.1.9):
9708     - Bridges now include notice in their descriptors that they are
9709       bridges, and notice of their distribution status, based on their
9710       publication settings. Implements ticket 18329. For more fine-
9711       grained control of how a bridge is distributed, upgrade to 0.3.2.x
9712       or later.
9714   o Minor features (geoip):
9715     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
9716       Country database.
9719 Changes in version 0.3.2.5-alpha - 2017-11-22
9720   Tor 0.3.2.5-alpha is the fifth alpha release in the 0.3.2.x series. It
9721   fixes several stability and reliability bugs, including a fix for
9722   intermittent bootstrapping failures that some people have been seeing
9723   since the 0.3.0.x series.
9725   Please test this alpha out -- many of these fixes will soon be
9726   backported to stable Tor versions if no additional bugs are found
9727   in them.
9729   o Major bugfixes (bootstrapping):
9730     - Fetch descriptors aggressively whenever we lack enough to build
9731       circuits, regardless of how many descriptors we are missing.
9732       Previously, we would delay launching the fetch when we had fewer
9733       than 15 missing descriptors, even if some of those descriptors
9734       were blocking circuits from building. Fixes bug 23985; bugfix on
9735       0.1.1.11-alpha. The effects of this bug became worse in
9736       0.3.0.3-alpha, when we began treating missing descriptors from our
9737       primary guards as a reason to delay circuits.
9738     - Don't try fetching microdescriptors from relays that have failed
9739       to deliver them in the past. Fixes bug 23817; bugfix
9740       on 0.3.0.1-alpha.
9742   o Minor features (directory authority):
9743     - Make the "Exit" flag assignment only depend on whether the exit
9744       policy allows connections to ports 80 and 443. Previously relays
9745       would get the Exit flag if they allowed connections to one of
9746       these ports and also port 6667. Resolves ticket 23637.
9748   o Minor features (geoip):
9749     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
9750       Country database.
9752   o Minor features (linux seccomp2 sandbox):
9753     - Update the sandbox rules so that they should now work correctly
9754       with Glibc 2.26. Closes ticket 24315.
9756   o Minor features (logging):
9757     - Downgrade a pair of log messages that could occur when an exit's
9758       resolver gave us an unusual (but not forbidden) response. Closes
9759       ticket 24097.
9760     - Improve the message we log when re-enabling circuit build timeouts
9761       after having received a consensus. Closes ticket 20963.
9763   o Minor bugfixes (compilation):
9764     - Fix a memory leak warning in one of the libevent-related
9765       configuration tests that could occur when manually specifying
9766       -fsanitize=address. Fixes bug 24279; bugfix on 0.3.0.2-alpha.
9767       Found and patched by Alex Xu.
9768     - When detecting OpenSSL on Windows from our configure script, make
9769       sure to try linking with the ws2_32 library. Fixes bug 23783;
9770       bugfix on 0.3.2.2-alpha.
9772   o Minor bugfixes (control port, linux seccomp2 sandbox):
9773     - Avoid a crash when attempting to use the seccomp2 sandbox together
9774       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
9775       on 0.2.5.1-alpha.
9777   o Minor bugfixes (control port, onion services):
9778     - Report "FAILED" instead of "UPLOAD_FAILED" "FAILED" for the
9779       HS_DESC event when a service is not able to upload a descriptor.
9780       Fixes bug 24230; bugfix on 0.2.7.1-alpha.
9782   o Minor bugfixes (directory cache):
9783     - Recover better from empty or corrupt files in the consensus cache
9784       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
9785     - When a consensus diff calculation is only partially successful,
9786       only record the successful parts as having succeeded. Partial
9787       success can happen if (for example) one compression method fails
9788       but the others succeed. Previously we misrecorded all the
9789       calculations as having succeeded, which would later cause a
9790       nonfatal assertion failure. Fixes bug 24086; bugfix
9791       on 0.3.1.1-alpha.
9793   o Minor bugfixes (logging):
9794     - Only log once if we notice that KIST support is gone. Fixes bug
9795       24158; bugfix on 0.3.2.1-alpha.
9796     - Suppress a log notice when relay descriptors arrive. We already
9797       have a bootstrap progress for this so no need to log notice
9798       everytime tor receives relay descriptors. Microdescriptors behave
9799       the same. Fixes bug 23861; bugfix on 0.2.8.2-alpha.
9801   o Minor bugfixes (network layer):
9802     - When closing a connection via close_connection_immediately(), we
9803       mark it as "not blocked on bandwidth", to prevent later calls from
9804       trying to unblock it, and give it permission to read. This fixes a
9805       backtrace warning that can happen on relays under various
9806       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
9808   o Minor bugfixes (onion services):
9809     - The introduction circuit was being timed out too quickly while
9810       waiting for the rendezvous circuit to complete. Keep the intro
9811       circuit around longer instead of timing out and reopening new ones
9812       constantly. Fixes bug 23681; bugfix on 0.2.4.8-alpha.
9813     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
9814       so it matches dir-spec.txt. Fixes bug 24262; bugfix
9815       on 0.3.1.1-alpha.
9816     - Silence a warning about failed v3 onion descriptor uploads that
9817       can happen naturally under certain edge cases. Fixes part of bug
9818       23662; bugfix on 0.3.2.1-alpha.
9820   o Minor bugfixes (tests):
9821     - Fix a memory leak in one of the bridge-distribution test cases.
9822       Fixes bug 24345; bugfix on 0.3.2.3-alpha.
9823     - Fix a bug in our fuzzing mock replacement for crypto_pk_checksig(),
9824       to correctly handle cases where a caller gives it an RSA key of
9825       under 160 bits. (This is not actually a bug in Tor itself, but
9826       rather in our fuzzing code.) Fixes bug 24247; bugfix on
9827       0.3.0.3-alpha. Found by OSS-Fuzz as issue 4177.
9829   o Documentation:
9830     - Add notes in man page regarding OS support for the various
9831       scheduler types. Attempt to use less jargon in the scheduler
9832       section. Closes ticket 24254.
9835 Changes in version 0.3.2.4-alpha - 2017-11-08
9836   Tor 0.3.2.4-alpha is the fourth alpha release in the 0.3.2.x series.
9837   It fixes several stability and reliability bugs, especially including
9838   a major reliability issue that has been plaguing fast exit relays in
9839   recent months.
9841   o Major bugfixes (exit relays, DNS):
9842     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
9843       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
9844       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
9845       identifying and finding a workaround to this bug and to Moritz,
9846       Arthur Edelstein, and Roger for helping to track it down and
9847       analyze it.
9849   o Major bugfixes (scheduler, channel):
9850     - Stop processing scheduled channels if they closed while flushing
9851       cells. This can happen if the write on the connection fails
9852       leading to the channel being closed while in the scheduler loop.
9853       Fixes bug 23751; bugfix on 0.3.2.1-alpha.
9855   o Minor features (logging, scheduler):
9856     - Introduce a SCHED_BUG() function to log extra information about
9857       the scheduler state if we ever catch a bug in the scheduler.
9858       Closes ticket 23753.
9860   o Minor features (removed deprecations):
9861     - The ClientDNSRejectInternalAddresses flag can once again be set in
9862       non-testing Tor networks, so long as they do not use the default
9863       directory authorities. This change also removes the deprecation of
9864       this flag from 0.2.9.2-alpha. Closes ticket 21031.
9866   o Minor features (testing):
9867     - Our fuzzing tests now test the encrypted portions of v3 onion
9868       service descriptors. Implements more of 21509.
9870   o Minor bugfixes (directory client):
9871     - On failure to download directory information, delay retry attempts
9872       by a random amount based on the "decorrelated jitter" algorithm.
9873       Our previous delay algorithm tended to produce extra-long delays
9874       too easily. Fixes bug 23816; bugfix on 0.2.9.1-alpha.
9876   o Minor bugfixes (IPv6, v3 single onion services):
9877     - Remove buggy code for IPv6-only v3 single onion services, and
9878       reject attempts to configure them. This release supports IPv4,
9879       dual-stack, and IPv6-only v3 onion services; and IPv4 and dual-
9880       stack v3 single onion services. Fixes bug 23820; bugfix
9881       on 0.3.2.1-alpha.
9883   o Minor bugfixes (logging, relay):
9884     - Give only a protocol warning when the ed25519 key is not
9885       consistent between the descriptor and microdescriptor of a relay.
9886       This can happen, for instance, if the relay has been flagged
9887       NoEdConsensus. Fixes bug 24025; bugfix on 0.3.2.1-alpha.
9889   o Minor bugfixes (manpage, onion service):
9890     - Document that the HiddenServiceNumIntroductionPoints option is
9891       0-10 for v2 services and 0-20 for v3 services. Fixes bug 24115;
9892       bugfix on 0.3.2.1-alpha.
9894   o Minor bugfixes (memory leaks):
9895     - Fix a minor memory leak at exit in the KIST scheduler. This bug
9896       should have no user-visible impact. Fixes bug 23774; bugfix
9897       on 0.3.2.1-alpha.
9898     - Fix a memory leak when decrypting a badly formatted v3 onion
9899       service descriptor. Fixes bug 24150; bugfix on 0.3.2.1-alpha.
9900       Found by OSS-Fuzz; this is OSS-Fuzz issue 3994.
9902   o Minor bugfixes (onion services):
9903     - Cache some needed onion service client information instead of
9904       constantly computing it over and over again. Fixes bug 23623;
9905       bugfix on 0.3.2.1-alpha.
9906     - Properly retry HSv3 descriptor fetches when missing required
9907       directory information. Fixes bug 23762; bugfix on 0.3.2.1-alpha.
9909   o Minor bugfixes (path selection):
9910     - When selecting relays by bandwidth, avoid a rounding error that
9911       could sometimes cause load to be imbalanced incorrectly.
9912       Previously, we would always round upwards; now, we round towards
9913       the nearest integer. This had the biggest effect when a relay's
9914       weight adjustments should have given it weight 0, but it got
9915       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
9916     - When calculating the fraction of nodes that have descriptors, and
9917       all nodes in the network have zero bandwidths, count the number of
9918       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
9919     - Actually log the total bandwidth in compute_weighted_bandwidths().
9920       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
9922   o Minor bugfixes (relay, crash):
9923     - Avoid a crash when transitioning from client mode to bridge mode.
9924       Previously, we would launch the worker threads whenever our
9925       "public server" mode changed, but not when our "server" mode
9926       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
9928   o Minor bugfixes (testing):
9929     - Fix a spurious fuzzing-only use of an uninitialized value. Found
9930       by Brian Carpenter. Fixes bug 24082; bugfix on 0.3.0.3-alpha.
9931     - Test that IPv6-only clients can use microdescriptors when running
9932       "make test-network-all". Requires chutney master 61c28b9 or later.
9933       Closes ticket 24109.
9936 Changes in version 0.3.2.3-alpha - 2017-10-27
9937   Tor 0.3.2.3-alpha is the third release in the 0.3.2 series. It fixes
9938   numerous small bugs in earlier versions of 0.3.2.x, and adds a new
9939   directory authority, Bastet.
9941   o Directory authority changes:
9942     - Add "Bastet" as a ninth directory authority to the default list.
9943       Closes ticket 23910.
9944     - The directory authority "Longclaw" has changed its IP address.
9945       Closes ticket 23592.
9947   o Minor features (bridge):
9948     - Bridge relays can now set the BridgeDistribution config option to
9949       add a "bridge-distribution-request" line to their bridge
9950       descriptor, which tells BridgeDB how they'd like their bridge
9951       address to be given out. (Note that as of Oct 2017, BridgeDB does
9952       not yet implement this feature.) As a side benefit, this feature
9953       provides a way to distinguish bridge descriptors from non-bridge
9954       descriptors. Implements tickets 18329.
9956   o Minor features (client, entry guards):
9957     - Improve log messages when missing descriptors for primary guards.
9958       Resolves ticket 23670.
9960   o Minor features (geoip):
9961     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
9962       Country database.
9964   o Minor bugfixes (bridge):
9965     - Overwrite the bridge address earlier in the process of retrieving
9966       its descriptor, to make sure we reach it on the configured
9967       address. Fixes bug 20532; bugfix on 0.2.0.10-alpha.
9969   o Minor bugfixes (documentation):
9970     - Document better how to read gcov, and what our gcov postprocessing
9971       scripts do. Fixes bug 23739; bugfix on 0.2.9.1-alpha.
9973   o Minor bugfixes (entry guards):
9974     - Tor now updates its guard state when it reads a consensus
9975       regardless of whether it's missing descriptors. That makes tor use
9976       its primary guards to fetch descriptors in some edge cases where
9977       it would previously have used fallback directories. Fixes bug
9978       23862; bugfix on 0.3.0.1-alpha.
9980   o Minor bugfixes (hidden service client):
9981     - When handling multiple SOCKS request for the same .onion address,
9982       only fetch the service descriptor once.
9983     - When a descriptor fetch fails with a non-recoverable error, close
9984       all pending SOCKS requests for that .onion. Fixes bug 23653;
9985       bugfix on 0.3.2.1-alpha.
9987   o Minor bugfixes (hidden service):
9988     - Always regenerate missing hidden service public key files. Prior
9989       to this, if the public key was deleted from disk, it wouldn't get
9990       recreated. Fixes bug 23748; bugfix on 0.3.2.2-alpha. Patch
9991       from "cathugger".
9992     - Make sure that we have a usable ed25519 key when the intro point
9993       relay supports ed25519 link authentication. Fixes bug 24002;
9994       bugfix on 0.3.2.1-alpha.
9996   o Minor bugfixes (hidden service, v2):
9997     - When reloading configured hidden services, copy all information
9998       from the old service object. Previously, some data was omitted,
9999       causing delays in descriptor upload, and other bugs. Fixes bug
10000       23790; bugfix on 0.2.1.9-alpha.
10002   o Minor bugfixes (memory safety, defensive programming):
10003     - Clear the target address when node_get_prim_orport() returns
10004       early. Fixes bug 23874; bugfix on 0.2.8.2-alpha.
10006   o Minor bugfixes (relay):
10007     - Avoid a BUG warning when receiving a dubious CREATE cell while an
10008       option transition is in progress. Fixes bug 23952; bugfix
10009       on 0.3.2.1-alpha.
10011   o Minor bugfixes (testing):
10012     - Adjust the GitLab CI configuration to more closely match that of
10013       Travis CI. Fixes bug 23757; bugfix on 0.3.2.2-alpha.
10014     - Prevent scripts/test/coverage from attempting to move gcov output
10015       to the root directory. Fixes bug 23741; bugfix on 0.2.5.1-alpha.
10016     - When running unit tests as root, skip a test that would fail
10017       because it expects a permissions error. This affects some
10018       continuous integration setups. Fixes bug 23758; bugfix
10019       on 0.3.2.2-alpha.
10020     - Stop unconditionally mirroring the tor repository in GitLab CI.
10021       This prevented developers from enabling GitLab CI on master. Fixes
10022       bug 23755; bugfix on 0.3.2.2-alpha.
10023     - Fix the hidden service v3 descriptor decoding fuzzing to use the
10024       latest decoding API correctly. Fixes bug 21509; bugfix
10025       on 0.3.2.1-alpha.
10027   o Minor bugfixes (warnings):
10028     - When we get an HTTP request on a SOCKS port, tell the user about
10029       the new HTTPTunnelPort option. Previously, we would give a "Tor is
10030       not an HTTP Proxy" message, which stopped being true when
10031       HTTPTunnelPort was introduced. Fixes bug 23678; bugfix
10032       on 0.3.2.1-alpha.
10035 Changes in version 0.2.5.15 - 2017-10-25
10036   Tor 0.2.5.15 backports a collection of bugfixes from later Tor release
10037   series. It also adds a new directory authority, Bastet.
10039   Note: the Tor 0.2.5 series will no longer be supported after 1 May
10040   2018. If you need a release with long-term support, please upgrade to
10041   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
10043   o Directory authority changes:
10044     - Add "Bastet" as a ninth directory authority to the default list.
10045       Closes ticket 23910.
10046     - The directory authority "Longclaw" has changed its IP address.
10047       Closes ticket 23592.
10049   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
10050     - Avoid an assertion failure bug affecting our implementation of
10051       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
10052       handling of "0xx" differs from what we had expected. Fixes bug
10053       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
10055   o Minor features (geoip):
10056     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
10057       Country database.
10059   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
10060     - Fix a memset() off the end of an array when packing cells. This
10061       bug should be harmless in practice, since the corrupted bytes are
10062       still in the same structure, and are always padding bytes,
10063       ignored, or immediately overwritten, depending on compiler
10064       behavior. Nevertheless, because the memset()'s purpose is to make
10065       sure that any other cell-handling bugs can't expose bytes to the
10066       network, we need to fix it. Fixes bug 22737; bugfix on
10067       0.2.4.11-alpha. Fixes CID 1401591.
10069   o Build features (backport from 0.3.1.5-alpha):
10070     - Tor's repository now includes a Travis Continuous Integration (CI)
10071       configuration file (.travis.yml). This is meant to help new
10072       developers and contributors who fork Tor to a Github repository be
10073       better able to test their changes, and understand what we expect
10074       to pass. To use this new build feature, you must fork Tor to your
10075       Github account, then go into the "Integrations" menu in the
10076       repository settings for your fork and enable Travis, then push
10077       your changes. Closes ticket 22636.
10080 Changes in version 0.2.8.16 - 2017-10-25
10081   Tor 0.2.8.16 backports a collection of bugfixes from later Tor release
10082   series, including a bugfix for a crash issue that had affected relays
10083   under memory pressure. It also adds a new directory authority, Bastet.
10085   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
10086   2018. If you need a release with long-term support, please stick with
10087   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
10089   o Directory authority changes:
10090     - Add "Bastet" as a ninth directory authority to the default list.
10091       Closes ticket 23910.
10092     - The directory authority "Longclaw" has changed its IP address.
10093       Closes ticket 23592.
10095   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
10096     - Fix a timing-based assertion failure that could occur when the
10097       circuit out-of-memory handler freed a connection's output buffer.
10098       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
10100   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
10101     - Remove longclaw's IPv6 address, as it will soon change. Authority
10102       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
10103       3/8 directory authorities with IPv6 addresses, but there are also
10104       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
10106   o Minor features (geoip):
10107     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
10108       Country database.
10111 Changes in version 0.2.9.13 - 2017-10-25
10112   Tor 0.2.9.13 backports a collection of bugfixes from later Tor release
10113   series, including a bugfix for a crash issue that had affected relays
10114   under memory pressure. It also adds a new directory authority, Bastet.
10116   o Directory authority changes:
10117     - Add "Bastet" as a ninth directory authority to the default list.
10118       Closes ticket 23910.
10119     - The directory authority "Longclaw" has changed its IP address.
10120       Closes ticket 23592.
10122   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
10123     - Fix a timing-based assertion failure that could occur when the
10124       circuit out-of-memory handler freed a connection's output buffer.
10125       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
10127   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
10128     - Remove longclaw's IPv6 address, as it will soon change. Authority
10129       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
10130       3/8 directory authorities with IPv6 addresses, but there are also
10131       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
10133   o Minor features (geoip):
10134     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
10135       Country database.
10137   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
10138     - When a directory authority rejects a descriptor or extrainfo with
10139       a given digest, mark that digest as undownloadable, so that we do
10140       not attempt to download it again over and over. We previously
10141       tried to avoid downloading such descriptors by other means, but we
10142       didn't notice if we accidentally downloaded one anyway. This
10143       behavior became problematic in 0.2.7.2-alpha, when authorities
10144       began pinning Ed25519 keys. Fixes bug 22349; bugfix
10145       on 0.2.1.19-alpha.
10147   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
10148     - Clear the address when node_get_prim_orport() returns early.
10149       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
10151   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
10152     - When running as a Windows service, set the ID of the main thread
10153       correctly. Failure to do so made us fail to send log messages to
10154       the controller in 0.2.1.16-rc, slowed down controller event
10155       delivery in 0.2.7.3-rc and later, and crash with an assertion
10156       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
10157       Patch and diagnosis from "Vort".
10160 Changes in version 0.3.0.12 - 2017-10-25
10161   Tor 0.3.0.12 backports a collection of bugfixes from later Tor release
10162   series, including a bugfix for a crash issue that had affected relays
10163   under memory pressure. It also adds a new directory authority, Bastet.
10165   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
10166   2018. If you need a release with long-term support, please stick with
10167   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
10169   o Directory authority changes:
10170     - Add "Bastet" as a ninth directory authority to the default list.
10171       Closes ticket 23910.
10172     - The directory authority "Longclaw" has changed its IP address.
10173       Closes ticket 23592.
10175   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
10176     - Fix a timing-based assertion failure that could occur when the
10177       circuit out-of-memory handler freed a connection's output buffer.
10178       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
10180   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
10181     - Remove longclaw's IPv6 address, as it will soon change. Authority
10182       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
10183       3/8 directory authorities with IPv6 addresses, but there are also
10184       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
10186   o Minor features (geoip):
10187     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
10188       Country database.
10190   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
10191     - When a directory authority rejects a descriptor or extrainfo with
10192       a given digest, mark that digest as undownloadable, so that we do
10193       not attempt to download it again over and over. We previously
10194       tried to avoid downloading such descriptors by other means, but we
10195       didn't notice if we accidentally downloaded one anyway. This
10196       behavior became problematic in 0.2.7.2-alpha, when authorities
10197       began pinning Ed25519 keys. Fixes bug 22349; bugfix
10198       on 0.2.1.19-alpha.
10200   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
10201     - Avoid a possible double close of a circuit by the intro point on
10202       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
10203       bugfix on 0.3.0.1-alpha.
10205   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
10206     - Clear the address when node_get_prim_orport() returns early.
10207       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
10209   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
10210     - When running as a Windows service, set the ID of the main thread
10211       correctly. Failure to do so made us fail to send log messages to
10212       the controller in 0.2.1.16-rc, slowed down controller event
10213       delivery in 0.2.7.3-rc and later, and crash with an assertion
10214       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
10215       Patch and diagnosis from "Vort".
10218 Changes in version 0.3.1.8 - 2017-10-25
10219   Tor 0.3.1.8 is the second stable release in the 0.3.1 series.
10220   It includes several bugfixes, including a bugfix for a crash issue
10221   that had affected relays under memory pressure. It also adds
10222   a new directory authority, Bastet.
10224   o Directory authority changes:
10225     - Add "Bastet" as a ninth directory authority to the default list.
10226       Closes ticket 23910.
10227     - The directory authority "Longclaw" has changed its IP address.
10228       Closes ticket 23592.
10230   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
10231     - Fix a timing-based assertion failure that could occur when the
10232       circuit out-of-memory handler freed a connection's output buffer.
10233       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
10235   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
10236     - Remove longclaw's IPv6 address, as it will soon change. Authority
10237       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
10238       3/8 directory authorities with IPv6 addresses, but there are also
10239       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
10241   o Minor features (geoip):
10242     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
10243       Country database.
10245   o Minor bugfixes (compilation, backport from 0.3.2.2-alpha):
10246     - Fix a compilation warning when building with zstd support on
10247       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
10248       and fixed by Andreas Stieger.
10250   o Minor bugfixes (compression, backport from 0.3.2.2-alpha):
10251     - Handle a pathological case when decompressing Zstandard data when
10252       the output buffer size is zero. Fixes bug 23551; bugfix
10253       on 0.3.1.1-alpha.
10255   o Minor bugfixes (directory authority, backport from 0.3.2.1-alpha):
10256     - Remove the length limit on HTTP status lines that authorities can
10257       send in their replies. Fixes bug 23499; bugfix on 0.3.1.6-rc.
10259   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
10260     - Avoid a possible double close of a circuit by the intro point on
10261       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
10262       bugfix on 0.3.0.1-alpha.
10264   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
10265     - Clear the address when node_get_prim_orport() returns early.
10266       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
10268   o Minor bugfixes (unit tests, backport from 0.3.2.2-alpha):
10269     - Fix additional channelpadding unit test failures by using mocked
10270       time instead of actual time for all tests. Fixes bug 23608; bugfix
10271       on 0.3.1.1-alpha.
10274 Changes in version 0.3.2.2-alpha - 2017-09-29
10275   Tor 0.3.2.2-alpha is the second release in the 0.3.2 series. This
10276   release fixes several minor bugs in the new scheduler and next-
10277   generation onion services; both features were newly added in the 0.3.2
10278   series. Other fixes in this alpha include several fixes for non-fatal
10279   tracebacks which would appear in logs.
10281   With the aim to stabilise the 0.3.2 series by 15 December 2017, this
10282   alpha does not contain any substantial new features. Minor features
10283   include better testing and logging.
10285   The following comprises the complete list of changes included
10286   in 0.3.2.2-alpha:
10288   o Major bugfixes (relay, crash, assertion failure):
10289     - Fix a timing-based assertion failure that could occur when the
10290       circuit out-of-memory handler freed a connection's output buffer.
10291       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
10293   o Major bugfixes (scheduler):
10294     - If a channel is put into the scheduler's pending list, then it
10295       starts closing, and then if the scheduler runs before it finishes
10296       closing, the scheduler will get stuck trying to flush its cells
10297       while the lower layers refuse to cooperate. Fix that race
10298       condition by giving the scheduler an escape method. Fixes bug
10299       23676; bugfix on 0.3.2.1-alpha.
10301   o Minor features (build, compilation):
10302     - The "check-changes" feature is now part of the "make check" tests;
10303       we'll use it to try to prevent misformed changes files from
10304       accumulating. Closes ticket 23564.
10305     - Tor builds should now fail if there are any mismatches between the
10306       C type representing a configuration variable and the C type the
10307       data-driven parser uses to store a value there. Previously, we
10308       needed to check these by hand, which sometimes led to mistakes.
10309       Closes ticket 23643.
10311   o Minor features (directory authorities):
10312     - Remove longclaw's IPv6 address, as it will soon change. Authority
10313       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
10314       3/8 directory authorities with IPv6 addresses, but there are also
10315       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
10317   o Minor features (hidden service, circuit, logging):
10318     - Improve logging of many callsite in the circuit subsystem to print
10319       the circuit identifier(s).
10320     - Log when we cleanup an intro point from a service so we know when
10321       and for what reason it happened. Closes ticket 23604.
10323   o Minor features (logging):
10324     - Log more circuit information whenever we are about to try to
10325       package a relay cell on a circuit with a nonexistent n_chan.
10326       Attempt to diagnose ticket 8185.
10327     - Improve info-level log identification of particular circuits, to
10328       help with debugging. Closes ticket 23645.
10330   o Minor features (relay):
10331     - When choosing which circuits can be expired as unused, consider
10332       circuits from clients even if those clients used regular CREATE
10333       cells to make them; and do not consider circuits from relays even
10334       if they were made with CREATE_FAST. Part of ticket 22805.
10336   o Minor features (robustness):
10337     - Change several fatal assertions when flushing buffers into non-
10338       fatal assertions, to prevent any recurrence of 23690.
10340   o Minor features (spec conformance, bridge, diagnostic):
10341     - When handling the USERADDR command on an ExtOrPort, warn when the
10342       transports provides a USERADDR with no port. In a future version,
10343       USERADDR commands of this format may be rejected. Detects problems
10344       related to ticket 23080.
10346   o Minor features (testing):
10347     - Add a unit test to make sure that our own generated platform
10348       string will be accepted by directory authorities. Closes
10349       ticket 22109.
10351   o Minor bugfixes (bootstrapping):
10352     - When warning about state file clock skew, report the correct
10353       direction for the detected skew. Fixes bug 23606; bugfix
10354       on 0.2.8.1-alpha.
10355     - Avoid an assertion failure when logging a state file clock skew
10356       very early in bootstrapping. Fixes bug 23607; bugfix
10357       on 0.3.2.1-alpha.
10359   o Minor bugfixes (build, compilation):
10360     - Fix a compilation warning when building with zstd support on
10361       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
10362       and fixed by Andreas Stieger.
10363     - When searching for OpenSSL, don't accept any OpenSSL library that
10364       lacks TLSv1_1_method(): Tor doesn't build with those versions.
10365       Additionally, look in /usr/local/opt/openssl, if it's present.
10366       These changes together repair the default build on OSX systems
10367       with Homebrew installed. Fixes bug 23602; bugfix on 0.2.7.2-alpha.
10369   o Minor bugfixes (compression):
10370     - Handle a pathological case when decompressing Zstandard data when
10371       the output buffer size is zero. Fixes bug 23551; bugfix
10372       on 0.3.1.1-alpha.
10374   o Minor bugfixes (documentation):
10375     - Fix manpage to not refer to the obsolete (and misspelled)
10376       UseEntryGuardsAsDirectoryGuards parameter in the description of
10377       NumDirectoryGuards. Fixes bug 23611; bugfix on 0.2.4.8-alpha.
10379   o Minor bugfixes (hidden service v3):
10380     - Don't log an assertion failure when we can't find the right
10381       information to extend to an introduction point. In rare cases,
10382       this could happen, causing a warning, even though tor would
10383       recover gracefully. Fixes bug 23159; bugfix on 0.3.2.1-alpha.
10384     - Pad RENDEZVOUS cell up to the size of the legacy cell which is
10385       much bigger so the rendezvous point can't distinguish which hidden
10386       service protocol is being used. Fixes bug 23420; bugfix
10387       on 0.3.2.1-alpha.
10389   o Minor bugfixes (hidden service, relay):
10390     - Avoid a possible double close of a circuit by the intro point on
10391       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
10392       bugfix on 0.3.0.1-alpha.
10394   o Minor bugfixes (logging, relay shutdown, annoyance):
10395     - When a circuit is marked for close, do not attempt to package any
10396       cells for channels on that circuit. Previously, we would detect
10397       this condition lower in the call stack, when we noticed that the
10398       circuit had no attached channel, and log an annoying message.
10399       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
10401   o Minor bugfixes (scheduler):
10402     - When switching schedulers due to a consensus change, we didn't
10403       give the new scheduler a chance to react to the consensus. Fix
10404       that. Fixes bug 23537; bugfix on 0.3.2.1-alpha.
10405     - Make the KISTSchedRunInterval option a non negative value. With
10406       this, the way to disable KIST through the consensus is to set it
10407       to 0. Fixes bug 23539; bugfix on 0.3.2.1-alpha.
10408     - Only notice log the selected scheduler when we switch scheduler
10409       types. Fixes bug 23552; bugfix on 0.3.2.1-alpha.
10410     - Avoid a compilation warning on macOS in scheduler_ev_add() caused
10411       by a different tv_usec data type. Fixes bug 23575; bugfix
10412       on 0.3.2.1-alpha.
10413     - Make a hard exit if tor is unable to pick a scheduler which can
10414       happen if the user specifies a scheduler type that is not
10415       supported and not other types in Schedulers. Fixes bug 23581;
10416       bugfix on 0.3.2.1-alpha.
10417     - Properly initialize the scheduler last run time counter so it is
10418       not 0 at the first tick. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
10420   o Minor bugfixes (testing):
10421     - Capture and detect several "Result does not fit" warnings in unit
10422       tests on platforms with 32-bit time_t. Fixes bug 21800; bugfix
10423       on 0.2.9.3-alpha.
10424     - Fix additional channelpadding unit test failures by using mocked
10425       time instead of actual time for all tests. Fixes bug 23608; bugfix
10426       on 0.3.1.1-alpha.
10427     - The removal of some old scheduler options caused some tests to
10428       fail on BSD systems. Assume current behavior is correct and make
10429       the tests pass again. Fixes bug 23566; bugfix on 0.3.2.1-alpha.
10431   o Code simplification and refactoring:
10432     - Remove various ways of testing circuits and connections for
10433       "clientness"; instead, favor channel_is_client(). Part of
10434       ticket 22805.
10436   o Deprecated features:
10437     - The ReachableDirAddresses and ClientPreferIPv6DirPort options are
10438       now deprecated; they do not apply to relays, and they have had no
10439       effect on clients since 0.2.8.x. Closes ticket 19704.
10441   o Documentation:
10442     - HiddenServiceVersion man page entry wasn't mentioning the now
10443       supported version 3. Fixes ticket 23580; bugfix on 0.3.2.1-alpha.
10444     - Clarify that the Address option is entirely about setting an
10445       advertised IPv4 address. Closes ticket 18891.
10446     - Clarify the manpage's use of the term "address" to clarify what
10447       kind of address is intended. Closes ticket 21405.
10448     - Document that onion service subdomains are allowed, and ignored.
10449       Closes ticket 18736.
10452 Changes in version 0.3.2.1-alpha - 2017-09-18
10453   Tor 0.3.2.1-alpha is the first release in the 0.3.2.x series. It
10454   includes support for our next-generation ("v3") onion service
10455   protocol, and adds a new circuit scheduler for more responsive
10456   forwarding decisions from relays. There are also numerous other small
10457   features and bugfixes here.
10459   Below are the changes since Tor 0.3.1.7.
10461   o Major feature (scheduler, channel):
10462     - Tor now uses new schedulers to decide which circuits should
10463       deliver cells first, in order to improve congestion at relays. The
10464       first type is called "KIST" ("Kernel Informed Socket Transport"),
10465       and is only available on Linux-like systems: it uses feedback from
10466       the kernel to prevent the kernel's TCP buffers from growing too
10467       full. The second new scheduler type is called "KISTLite": it
10468       behaves the same as KIST, but runs on systems without kernel
10469       support for inspecting TCP implementation details. The old
10470       scheduler is still available, under the name "Vanilla". To change
10471       the default scheduler preference order, use the new "Schedulers"
10472       option. (The default preference order is "KIST,KISTLite,Vanilla".)
10474       Matt Traudt implemented KIST, based on research by Rob Jansen,
10475       John Geddes, Christ Wacek, Micah Sherr, and Paul Syverson. For
10476       more information, see the design paper at
10477       http://www.robgjansen.com/publications/kist-sec2014.pdf and the
10478       followup implementation paper at https://arxiv.org/abs/1709.01044.
10479       Closes ticket 12541.
10481   o Major features (next-generation onion services):
10482     - Tor now supports the next-generation onion services protocol for
10483       clients and services! As part of this release, the core of
10484       proposal 224 has been implemented and is available for
10485       experimentation and testing by our users. This newer version of
10486       onion services ("v3") features many improvements over the legacy
10487       system, including:
10489       a) Better crypto (replaced SHA1/DH/RSA1024
10490       with SHA3/ed25519/curve25519)
10492       b) Improved directory protocol, leaking much less information to
10493       directory servers.
10495       c) Improved directory protocol, with smaller surface for
10496       targeted attacks.
10498       d) Better onion address security against impersonation.
10500       e) More extensible introduction/rendezvous protocol.
10502       f) A cleaner and more modular codebase.
10504       You can identify a next-generation onion address by its length:
10505       they are 56 characters long, as in
10506       "4acth47i6kxnvkewtm6q7ib2s3ufpo5sqbsnzjpbi7utijcltosqemad.onion".
10508       In the future, we will release more options and features for v3
10509       onion services, but we first need a testing period, so that the
10510       current codebase matures and becomes more robust. Planned features
10511       include: offline keys, advanced client authorization, improved
10512       guard algorithms, and statistics. For full details, see
10513       proposal 224.
10515       Legacy ("v2") onion services will still work for the foreseeable
10516       future, and will remain the default until this new codebase gets
10517       tested and hardened. Service operators who want to experiment with
10518       the new system can use the 'HiddenServiceVersion 3' torrc
10519       directive along with the regular onion service configuration
10520       options. We will publish a blog post about this new feature
10521       soon! Enjoy!
10523   o Major bugfixes (usability, control port):
10524     - Report trusted clock skew indications as bootstrap errors, so
10525       controllers can more easily alert users when their clocks are
10526       wrong. Fixes bug 23506; bugfix on 0.1.2.6-alpha.
10528   o Minor features (bug detection):
10529     - Log a warning message with a stack trace for any attempt to call
10530       get_options() during option validation. This pattern has caused
10531       subtle bugs in the past. Closes ticket 22281.
10533   o Minor features (client):
10534     - You can now use Tor as a tunneled HTTP proxy: use the new
10535       HTTPTunnelPort option to open a port that accepts HTTP CONNECT
10536       requests. Closes ticket 22407.
10537     - Add an extra check to make sure that we always use the newer guard
10538       selection code for picking our guards. Closes ticket 22779.
10539     - When downloading (micro)descriptors, don't split the list into
10540       multiple requests unless we want at least 32 descriptors.
10541       Previously, we split at 4, not 32, which led to significant
10542       overhead in HTTP request size and degradation in compression
10543       performance. Closes ticket 23220.
10545   o Minor features (command line):
10546     - Add a new commandline option, --key-expiration, which prints when
10547       the current signing key is going to expire. Implements ticket
10548       17639; patch by Isis Lovecruft.
10550   o Minor features (control port):
10551     - If an application tries to use the control port as an HTTP proxy,
10552       respond with a meaningful "This is the Tor control port" message,
10553       and log the event. Closes ticket 1667. Patch from Ravi
10554       Chandra Padmala.
10555     - Provide better error message for GETINFO desc/(id|name) when not
10556       fetching router descriptors. Closes ticket 5847. Patch by
10557       Kevin Butler.
10558     - Add GETINFO "{desc,md}/download-enabled", to inform the controller
10559       whether Tor will try to download router descriptors and
10560       microdescriptors respectively. Closes ticket 22684.
10561     - Added new GETINFO targets "ip-to-country/{ipv4,ipv6}-available",
10562       so controllers can tell whether the geoip databases are loaded.
10563       Closes ticket 23237.
10564     - Adds a timestamp field to the CIRC_BW and STREAM_BW bandwidth
10565       events. Closes ticket 19254. Patch by "DonnchaC".
10567   o Minor features (development support):
10568     - Developers can now generate a call-graph for Tor using the
10569       "calltool" python program, which post-processes object dumps. It
10570       should work okay on many Linux and OSX platforms, and might work
10571       elsewhere too. To run it, install calltool from
10572       https://gitweb.torproject.org/user/nickm/calltool.git and run
10573       "make callgraph". Closes ticket 19307.
10575   o Minor features (ed25519):
10576     - Add validation function to checks for torsion components in
10577       ed25519 public keys, used by prop224 client-side code. Closes
10578       ticket 22006. Math help by Ian Goldberg.
10580   o Minor features (exit relay, DNS):
10581     - Improve the clarity and safety of the log message from evdns when
10582       receiving an apparently spoofed DNS reply. Closes ticket 3056.
10584   o Minor features (integration, hardening):
10585     - Add a new NoExec option to prevent Tor from running other
10586       programs. When this option is set to 1, Tor will never try to run
10587       another program, regardless of the settings of
10588       PortForwardingHelper, ClientTransportPlugin, or
10589       ServerTransportPlugin. Once NoExec is set, it cannot be disabled
10590       without restarting Tor. Closes ticket 22976.
10592   o Minor features (logging):
10593     - Improve the warning message for specifying a relay by nickname.
10594       The previous message implied that nickname registration was still
10595       part of the Tor network design, which it isn't. Closes
10596       ticket 20488.
10597     - If the sandbox filter fails to load, suggest to the user that
10598       their kernel might not support seccomp2. Closes ticket 23090.
10600   o Minor features (portability):
10601     - Check at configure time whether uint8_t is the same type as
10602       unsigned char. Lots of existing code already makes this
10603       assumption, and there could be strict aliasing issues if the
10604       assumption is violated. Closes ticket 22410.
10606   o Minor features (relay, configuration):
10607     - Reject attempts to use relative file paths when RunAsDaemon is
10608       set. Previously, Tor would accept these, but the directory-
10609       changing step of RunAsDaemon would give strange and/or confusing
10610       results. Closes ticket 22731.
10612   o Minor features (startup, safety):
10613     - When configured to write a PID file, Tor now exits if it is unable
10614       to do so. Previously, it would warn and continue. Closes
10615       ticket 20119.
10617   o Minor features (static analysis):
10618     - The BUG() macro has been changed slightly so that Coverity no
10619       longer complains about dead code if the bug is impossible. Closes
10620       ticket 23054.
10622   o Minor features (testing):
10623     - The default chutney network tests now include tests for the v3
10624       hidden service design. Make sure you have the latest version of
10625       chutney if you want to run these. Closes ticket 22437.
10626     - Add a unit test to verify that we can parse a hardcoded v2 hidden
10627       service descriptor. Closes ticket 15554.
10629   o Minor bugfixes (certificate handling):
10630     - Fix a time handling bug in Tor certificates set to expire after
10631       the year 2106. Fixes bug 23055; bugfix on 0.3.0.1-alpha. Found by
10632       Coverity as CID 1415728.
10634   o Minor bugfixes (client, usability):
10635     - Refrain from needlessly rejecting SOCKS5-with-hostnames and
10636       SOCKS4a requests that contain IP address strings, even when
10637       SafeSocks in enabled, as this prevents user from connecting to
10638       known IP addresses without relying on DNS for resolving. SafeSocks
10639       still rejects SOCKS connections that connect to IP addresses when
10640       those addresses are _not_ encoded as hostnames. Fixes bug 22461;
10641       bugfix on Tor 0.2.6.2-alpha.
10643   o Minor bugfixes (code correctness):
10644     - Call htons() in extend_cell_format() for encoding a 16-bit value.
10645       Previously we used ntohs(), which happens to behave the same on
10646       all the platforms we support, but which isn't really correct.
10647       Fixes bug 23106; bugfix on 0.2.4.8-alpha.
10648     - For defense-in-depth, make the controller's write_escaped_data()
10649       function robust to extremely long inputs. Fixes bug 19281; bugfix
10650       on 0.1.1.1-alpha. Reported by Guido Vranken.
10652   o Minor bugfixes (compilation):
10653     - Fix unused-variable warnings in donna's Curve25519 SSE2 code.
10654       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
10656   o Minor bugfixes (consensus expiry):
10657     - Check for adequate directory information correctly. Previously, Tor
10658       would reconsider whether it had sufficient directory information
10659       every 2 minutes. Fixes bug 23091; bugfix on 0.2.0.19-alpha.
10661   o Minor bugfixes (directory protocol):
10662     - Directory servers now include a "Date:" http header for response
10663       codes other than 200. Clients starting with a skewed clock and a
10664       recent consensus were getting "304 Not modified" responses from
10665       directory authorities, so without the Date header, the client
10666       would never hear about a wrong clock. Fixes bug 23499; bugfix
10667       on 0.0.8rc1.
10668     - Make clients wait for 6 seconds before trying to download a
10669       consensus from an authority. Fixes bug 17750; bugfix
10670       on 0.2.8.1-alpha.
10672   o Minor bugfixes (DoS-resistance):
10673     - If future code asks if there are any running bridges, without
10674       checking if bridges are enabled, log a BUG warning rather than
10675       crashing. Fixes bug 23524; bugfix on 0.3.0.1-alpha.
10677   o Minor bugfixes (format strictness):
10678     - Restrict several data formats to decimal. Previously, the
10679       BuildTimeHistogram entries in the state file, the "bw=" entries in
10680       the bandwidth authority file, and the process IDs passed to the
10681       __OwningControllerProcess option could all be specified in hex or
10682       octal as well as in decimal. This was not an intentional feature.
10683       Fixes bug 22802; bugfixes on 0.2.2.1-alpha, 0.2.2.2-alpha,
10684       and 0.2.2.28-beta.
10686   o Minor bugfixes (heartbeat):
10687     - If we fail to write a heartbeat message, schedule a retry for the
10688       minimum heartbeat interval number of seconds in the future. Fixes
10689       bug 19476; bugfix on 0.2.3.1-alpha.
10691   o Minor bugfixes (linux seccomp2 sandbox, logging):
10692     - Fix some messages on unexpected errors from the seccomp2 library.
10693       Fixes bug 22750; bugfix on 0.2.5.1-alpha. Patch from "cypherpunks".
10695   o Minor bugfixes (logging):
10696     - Remove duplicate log messages regarding opening non-local
10697       SocksPorts upon parsing config and opening listeners at startup.
10698       Fixes bug 4019; bugfix on 0.2.3.3-alpha.
10699     - Use a more comprehensible log message when telling the user
10700       they've excluded every running exit node. Fixes bug 7890; bugfix
10701       on 0.2.2.25-alpha.
10702     - When logging the number of descriptors we intend to download per
10703       directory request, do not log a number higher than then the number
10704       of descriptors we're fetching in total. Fixes bug 19648; bugfix
10705       on 0.1.1.8-alpha.
10706     - When warning about a directory owned by the wrong user, log the
10707       actual name of the user owning the directory. Previously, we'd log
10708       the name of the process owner twice. Fixes bug 23487; bugfix
10709       on 0.2.9.1-alpha.
10710     - The tor specification says hop counts are 1-based, so fix two log
10711       messages that mistakenly logged 0-based hop counts. Fixes bug
10712       18982; bugfix on 0.2.6.2-alpha and 0.2.4.5-alpha. Patch by teor.
10713       Credit to Xiaofan Li for reporting this issue.
10715   o Minor bugfixes (portability):
10716     - Stop using the PATH_MAX variable, which is not defined on GNU
10717       Hurd. Fixes bug 23098; bugfix on 0.3.1.1-alpha.
10719   o Minor bugfixes (relay):
10720     - When uploading our descriptor for the first time after startup,
10721       report the reason for uploading as "Tor just started" rather than
10722       leaving it blank. Fixes bug 22885; bugfix on 0.2.3.4-alpha.
10723     - Avoid unnecessary calls to directory_fetches_from_authorities() on
10724       relays, to prevent spurious address resolutions and descriptor
10725       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
10726       bugfix on in 0.2.8.1-alpha.
10728   o Minor bugfixes (tests):
10729     - Fix a broken unit test for the OutboundAddress option: the parsing
10730       function was never returning an error on failure. Fixes bug 23366;
10731       bugfix on 0.3.0.3-alpha.
10732     - Fix a signed-integer overflow in the unit tests for
10733       dir/download_status_random_backoff, which was untriggered until we
10734       fixed bug 17750. Fixes bug 22924; bugfix on 0.2.9.1-alpha.
10736   o Minor bugfixes (usability, control port):
10737     - Stop making an unnecessary routerlist check in NETINFO clock skew
10738       detection; this was preventing clients from reporting NETINFO clock
10739       skew to controllers. Fixes bug 23532; bugfix on 0.2.4.4-alpha.
10741   o Code simplification and refactoring:
10742     - Extract the code for handling newly-open channels into a separate
10743       function from the general code to handle channel state
10744       transitions. This change simplifies our callgraph, reducing the
10745       size of the largest strongly connected component by roughly a
10746       factor of two. Closes ticket 22608.
10747     - Remove dead code for largely unused statistics on the number of
10748       times we've attempted various public key operations. Fixes bug
10749       19871; bugfix on 0.1.2.4-alpha. Fix by Isis Lovecruft.
10750     - Remove several now-obsolete functions for asking about old
10751       variants directory authority status. Closes ticket 22311; patch
10752       from "huyvq".
10753     - Remove some of the code that once supported "Named" and "Unnamed"
10754       routers. Authorities no longer vote for these flags. Closes
10755       ticket 22215.
10756     - Rename the obsolete malleable hybrid_encrypt functions used in TAP
10757       and old hidden services, to indicate that they aren't suitable for
10758       new protocols or formats. Closes ticket 23026.
10759     - Replace our STRUCT_OFFSET() macro with offsetof(). Closes ticket
10760       22521. Patch from Neel Chauhan.
10761     - Split the enormous circuit_send_next_onion_skin() function into
10762       multiple subfunctions. Closes ticket 22804.
10763     - Split the portions of the buffer.c module that handle particular
10764       protocols into separate modules. Part of ticket 23149.
10765     - Use our test macros more consistently, to produce more useful
10766       error messages when our unit tests fail. Add coccinelle patches to
10767       allow us to re-check for test macro uses. Closes ticket 22497.
10769   o Deprecated features:
10770     - Deprecate HTTPProxy/HTTPProxyAuthenticator config options. They
10771       only applies to direct unencrypted HTTP connections to your
10772       directory server, which your Tor probably isn't using. Closes
10773       ticket 20575.
10775   o Documentation:
10776     - Clarify in the manual that "Sandbox 1" is only supported on Linux
10777       kernels. Closes ticket 22677.
10778     - Document all values of PublishServerDescriptor in the manpage.
10779       Closes ticket 15645.
10780     - Improve the documentation for the directory port part of the
10781       DirAuthority line. Closes ticket 20152.
10782     - Restore documentation for the authorities' "approved-routers"
10783       file. Closes ticket 21148.
10785   o Removed features:
10786     - The AllowDotExit option has been removed as unsafe. It has been
10787       deprecated since 0.2.9.2-alpha. Closes ticket 23426.
10788     - The ClientDNSRejectInternalAddresses flag can no longer be set on
10789       non-testing networks. It has been deprecated since 0.2.9.2-alpha.
10790       Closes ticket 21031.
10791     - The controller API no longer includes an AUTHDIR_NEWDESCS event:
10792       nobody was using it any longer. Closes ticket 22377.
10795 Changes in version 0.2.8.15 - 2017-09-18
10796   Tor 0.2.8.15 backports a collection of bugfixes from later
10797   Tor series.
10799   Most significantly, it includes a fix for TROVE-2017-008, a
10800   security bug that affects hidden services running with the
10801   SafeLogging option disabled. For more information, see
10802   https://trac.torproject.org/projects/tor/ticket/23490
10804   Note that Tor 0.2.8.x will no longer be supported after 1 Jan
10805   2018.  We suggest that you upgrade to the latest stable release if
10806   possible.  If you can't, we recommend that you upgrade at least to
10807   0.2.9, which will be supported until 2020.
10809   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
10810     - Avoid an assertion failure bug affecting our implementation of
10811       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
10812       handling of "0xx" differs from what we had expected. Fixes bug
10813       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
10815   o Minor features:
10816     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
10817       Country database.
10819   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
10820     - Backport a fix for an "unused variable" warning that appeared
10821       in some versions of mingw. Fixes bug 22838; bugfix on
10822       0.2.8.1-alpha.
10824   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
10825     - Fix a memset() off the end of an array when packing cells. This
10826       bug should be harmless in practice, since the corrupted bytes are
10827       still in the same structure, and are always padding bytes,
10828       ignored, or immediately overwritten, depending on compiler
10829       behavior. Nevertheless, because the memset()'s purpose is to make
10830       sure that any other cell-handling bugs can't expose bytes to the
10831       network, we need to fix it. Fixes bug 22737; bugfix on
10832       0.2.4.11-alpha. Fixes CID 1401591.
10834   o Build features (backport from 0.3.1.5-alpha):
10835     - Tor's repository now includes a Travis Continuous Integration (CI)
10836       configuration file (.travis.yml). This is meant to help new
10837       developers and contributors who fork Tor to a Github repository be
10838       better able to test their changes, and understand what we expect
10839       to pass. To use this new build feature, you must fork Tor to your
10840       Github account, then go into the "Integrations" menu in the
10841       repository settings for your fork and enable Travis, then push
10842       your changes. Closes ticket 22636.
10845 Changes in version 0.2.9.12 - 2017-09-18
10846   Tor 0.2.9.12 backports a collection of bugfixes from later
10847   Tor series.
10849   Most significantly, it includes a fix for TROVE-2017-008, a
10850   security bug that affects hidden services running with the
10851   SafeLogging option disabled. For more information, see
10852   https://trac.torproject.org/projects/tor/ticket/23490
10854   o Major features (security, backport from 0.3.0.2-alpha):
10855     - Change the algorithm used to decide DNS TTLs on client and server
10856       side, to better resist DNS-based correlation attacks like the
10857       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
10858       Feamster. Now relays only return one of two possible DNS TTL
10859       values, and clients are willing to believe DNS TTL values up to 3
10860       hours long. Closes ticket 19769.
10862   o Major bugfixes (crash, directory connections, backport from 0.3.0.5-rc):
10863     - Fix a rare crash when sending a begin cell on a circuit whose
10864       linked directory connection had already been closed. Fixes bug
10865       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
10867   o Major bugfixes (DNS, backport from 0.3.0.2-alpha):
10868     - Fix a bug that prevented exit nodes from caching DNS records for
10869       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
10871   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
10872     - Fix a typo that had prevented TPROXY-based transparent proxying
10873       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
10874       Patch from "d4fq0fQAgoJ".
10876   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
10877     - Avoid an assertion failure bug affecting our implementation of
10878       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
10879       handling of "0xx" differs from what we had expected. Fixes bug
10880       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
10882   o Minor features (code style, backport from 0.3.1.3-alpha):
10883     - Add "Falls through" comments to our codebase, in order to silence
10884       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
10885       Stieger. Closes ticket 22446.
10887   o Minor features (geoip):
10888     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
10889       Country database.
10891   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.1-alpha):
10892     - Roll over monthly accounting at the configured hour and minute,
10893       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
10894       Found by Andrey Karpov with PVS-Studio.
10896   o Minor bugfixes (compilation, backport from 0.3.1.5-alpha):
10897     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
10898       bugfix on 0.2.8.1-alpha.
10899     - Fix warnings when building with libscrypt and openssl scrypt support
10900       on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
10901     - When building with certain versions the mingw C header files, avoid
10902       float-conversion warnings when calling the C functions isfinite(),
10903       isnan(), and signbit(). Fixes bug 22801; bugfix on 0.2.8.1-alpha.
10905   o Minor bugfixes (compilation, backport from 0.3.1.7):
10906     - Avoid compiler warnings in the unit tests for running tor_sscanf()
10907       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
10909   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
10910     - Backport a fix for an "unused variable" warning that appeared
10911       in some versions of mingw. Fixes bug 22838; bugfix on
10912       0.2.8.1-alpha.
10914   o Minor bugfixes (controller, backport from 0.3.1.7):
10915     - Do not crash when receiving a HSPOST command with an empty body.
10916       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
10917     - Do not crash when receiving a POSTDESCRIPTOR command with an
10918       empty body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
10920   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
10921     - Avoid Coverity build warnings related to our BUG() macro. By
10922       default, Coverity treats BUG() as the Linux kernel does: an
10923       instant abort(). We need to override that so our BUG() macro
10924       doesn't prevent Coverity from analyzing functions that use it.
10925       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
10927   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
10928     - Fix a memset() off the end of an array when packing cells. This
10929       bug should be harmless in practice, since the corrupted bytes are
10930       still in the same structure, and are always padding bytes,
10931       ignored, or immediately overwritten, depending on compiler
10932       behavior. Nevertheless, because the memset()'s purpose is to make
10933       sure that any other cell-handling bugs can't expose bytes to the
10934       network, we need to fix it. Fixes bug 22737; bugfix on
10935       0.2.4.11-alpha. Fixes CID 1401591.
10937   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
10938     - When setting the maximum number of connections allowed by the OS,
10939       always allow some extra file descriptors for other files. Fixes
10940       bug 22797; bugfix on 0.2.0.10-alpha.
10942   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
10943     - Avoid a sandbox failure when trying to re-bind to a socket and
10944       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
10946   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
10947     - Permit the fchmod system call, to avoid crashing on startup when
10948       starting with the seccomp2 sandbox and an unexpected set of
10949       permissions on the data directory or its contents. Fixes bug
10950       22516; bugfix on 0.2.5.4-alpha.
10952   o Minor bugfixes (relay, backport from 0.3.0.5-rc):
10953     - Avoid a double-marked-circuit warning that could happen when we
10954       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
10955       on 0.1.0.1-rc.
10957   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
10958     - Reject version numbers with non-numeric prefixes (such as +, -, or
10959       whitespace). Disallowing whitespace prevents differential version
10960       parsing between POSIX-based and Windows platforms. Fixes bug 21507
10961       and part of 21508; bugfix on 0.0.8pre1.
10963   o Build features (backport from 0.3.1.5-alpha):
10964     - Tor's repository now includes a Travis Continuous Integration (CI)
10965       configuration file (.travis.yml). This is meant to help new
10966       developers and contributors who fork Tor to a Github repository be
10967       better able to test their changes, and understand what we expect
10968       to pass. To use this new build feature, you must fork Tor to your
10969       Github account, then go into the "Integrations" menu in the
10970       repository settings for your fork and enable Travis, then push
10971       your changes. Closes ticket 22636.
10974 Changes in version 0.3.0.11 - 2017-09-18
10975   Tor 0.3.0.11 backports a collection of bugfixes from Tor the 0.3.1
10976   series.
10978   Most significantly, it includes a fix for TROVE-2017-008, a
10979   security bug that affects hidden services running with the
10980   SafeLogging option disabled. For more information, see
10981   https://trac.torproject.org/projects/tor/ticket/23490
10983   o Minor features (code style, backport from 0.3.1.7):
10984     - Add "Falls through" comments to our codebase, in order to silence
10985       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
10986       Stieger. Closes ticket 22446.
10988   o Minor features:
10989     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
10990       Country database.
10992   o Minor bugfixes (compilation, backport from 0.3.1.7):
10993     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
10994       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
10996   o Minor bugfixes (controller, backport from 0.3.1.7):
10997     - Do not crash when receiving a HSPOST command with an empty body.
10998       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
10999     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
11000       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
11002   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
11003     - When setting the maximum number of connections allowed by the OS,
11004       always allow some extra file descriptors for other files. Fixes
11005       bug 22797; bugfix on 0.2.0.10-alpha.
11007   o Minor bugfixes (logging, relay, backport from 0.3.1.6-rc):
11008     - Remove a forgotten debugging message when an introduction point
11009       successfully establishes a hidden service prop224 circuit with
11010       a client.
11011     - Change three other log_warn() for an introduction point to
11012       protocol warnings, because they can be failure from the network
11013       and are not relevant to the operator. Fixes bug 23078; bugfix on
11014       0.3.0.1-alpha and 0.3.0.2-alpha.
11017 Changes in version 0.3.1.7 - 2017-09-18
11018   Tor 0.3.1.7 is the first stable release in the 0.3.1 series.
11020   With the 0.3.1 series, Tor now serves and downloads directory
11021   information in more compact formats, to save on bandwidth overhead. It
11022   also contains a new padding system to resist netflow-based traffic
11023   analysis, and experimental support for building parts of Tor in Rust
11024   (though no parts of Tor are in Rust yet). There are also numerous
11025   small features, bugfixes on earlier release series, and groundwork for
11026   the hidden services revamp of 0.3.2.
11028   This release also includes a fix for TROVE-2017-008, a security bug
11029   that affects hidden services running with the SafeLogging option
11030   disabled. For more information, see
11031   https://trac.torproject.org/projects/tor/ticket/23490
11033   Per our stable release policy, we plan to support each stable release
11034   series for at least the next nine months, or for three months after
11035   the first stable release of the next series: whichever is longer. If
11036   you need a release with long-term support, we recommend that you stay
11037   with the 0.2.9 series.
11039   Below is a list of the changes since 0.3.1.6-rc. For a list of all
11040   changes since 0.3.0, see the ReleaseNotes file.
11042   o Major bugfixes (security, hidden services, loggging):
11043     - Fix a bug where we could log uninitialized stack when a certain
11044       hidden service error occurred while SafeLogging was disabled.
11045       Fixes bug #23490; bugfix on 0.2.7.2-alpha. This is also tracked as
11046       TROVE-2017-008 and CVE-2017-0380.
11048   o Minor features (defensive programming):
11049     - Create a pair of consensus parameters, nf_pad_tor2web and
11050       nf_pad_single_onion, to disable netflow padding in the consensus
11051       for non-anonymous connections in case the overhead is high. Closes
11052       ticket 17857.
11054   o Minor features (diagnostic):
11055     - Add a stack trace to the bug warnings that can be logged when
11056       trying to send an outgoing relay cell with n_chan == 0. Diagnostic
11057       attempt for bug 23105.
11059   o Minor features (geoip):
11060     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
11061       Country database.
11063   o Minor bugfixes (compilation):
11064     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
11065       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
11067   o Minor bugfixes (controller):
11068     - Do not crash when receiving a HSPOST command with an empty body.
11069       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
11070     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
11071       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
11073   o Minor bugfixes (relay):
11074     - Inform the geoip and rephist modules about all requests, even on
11075       relays that are only fetching microdescriptors. Fixes a bug
11076       related to 21585; bugfix on 0.3.0.1-alpha.
11078   o Minor bugfixes (unit tests):
11079     - Fix a channelpadding unit test failure on slow systems by using
11080       mocked time instead of actual time. Fixes bug 23077; bugfix
11081       on 0.3.1.1-alpha.
11084 Changes in version 0.3.1.6-rc - 2017-09-05
11085   Tor 0.3.1.6-rc fixes a few small bugs and annoyances in the 0.3.1
11086   release series, including a bug that produced weird behavior on
11087   Windows directory caches.
11089   This is the first release candidate in the Tor 0.3.1 series. If we
11090   find no new bugs or regressions here, the first stable 0.3.1 release
11091   will be nearly identical to it.
11093   o Major bugfixes (windows, directory cache):
11094     - On Windows, do not try to delete cached consensus documents and
11095       diffs before they are unmapped from memory--Windows won't allow
11096       that. Instead, allow the consensus cache directory to grow larger,
11097       to hold files that might need to stay around longer. Fixes bug
11098       22752; bugfix on 0.3.1.1-alpha.
11100   o Minor features (directory authority):
11101     - Improve the message that authorities report to relays that present
11102       RSA/Ed25519 keypairs that conflict with previously pinned keys.
11103       Closes ticket 22348.
11105   o Minor features (geoip):
11106     - Update geoip and geoip6 to the August 3 2017 Maxmind GeoLite2
11107       Country database.
11109   o Minor features (testing):
11110     - Add more tests for compression backend initialization. Closes
11111       ticket 22286.
11113   o Minor bugfixes (directory cache):
11114     - Fix a memory leak when recovering space in the consensus cache.
11115       Fixes bug 23139; bugfix on 0.3.1.1-alpha.
11117   o Minor bugfixes (hidden service):
11118     - Increase the number of circuits that a service is allowed to
11119       open over a specific period of time. The value was lower than it
11120       should be (8 vs 12) in the normal case of 3 introduction points.
11121       Fixes bug 22159; bugfix on 0.3.0.5-rc.
11122     - Fix a BUG warning during HSv3 descriptor decoding that could be
11123       cause by a specially crafted descriptor. Fixes bug 23233; bugfix
11124       on 0.3.0.1-alpha. Bug found by "haxxpop".
11125     - Rate-limit the log messages if we exceed the maximum number of
11126       allowed intro circuits. Fixes bug 22159; bugfix on 0.3.1.1-alpha.
11128   o Minor bugfixes (logging, relay):
11129     - Remove a forgotten debugging message when an introduction point
11130       successfully establishes a hidden service prop224 circuit with
11131       a client.
11132     - Change three other log_warn() for an introduction point to
11133       protocol warnings, because they can be failure from the network
11134       and are not relevant to the operator. Fixes bug 23078; bugfix on
11135       0.3.0.1-alpha and 0.3.0.2-alpha.
11137   o Minor bugfixes (relay):
11138     - When a relay is not running as a directory cache, it will no
11139       longer generate compressed consensuses and consensus diff
11140       information. Previously, this was a waste of disk and CPU. Fixes
11141       bug 23275; bugfix on 0.3.1.1-alpha.
11143   o Minor bugfixes (robustness, error handling):
11144     - Improve our handling of the cases where OpenSSL encounters a
11145       memory error while encoding keys and certificates. We haven't
11146       observed these errors in the wild, but if they do happen, we now
11147       detect and respond better. Fixes bug 19418; bugfix on all versions
11148       of Tor. Reported by Guido Vranken.
11150   o Minor bugfixes (stability):
11151     - Avoid crashing on a double-free when unable to load or process an
11152       included file. Fixes bug 23155; bugfix on 0.3.1.1-alpha. Found
11153       with the clang static analyzer.
11155   o Minor bugfixes (testing):
11156     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
11157       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
11158     - Port the hs_ntor handshake test to work correctly with recent
11159       versions of the pysha3 module. Fixes bug 23071; bugfix
11160       on 0.3.1.1-alpha.
11162   o Minor bugfixes (Windows service):
11163     - When running as a Windows service, set the ID of the main thread
11164       correctly. Failure to do so made us fail to send log messages to
11165       the controller in 0.2.1.16-rc, slowed down controller event
11166       delivery in 0.2.7.3-rc and later, and crash with an assertion
11167       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
11168       Patch and diagnosis from "Vort".
11171 Changes in version 0.3.0.10 - 2017-08-02
11172    Tor 0.3.0.10 backports a collection of small-to-medium bugfixes
11173    from the current Tor alpha series. OpenBSD users and TPROXY users
11174    should upgrade; others are probably okay sticking with 0.3.0.9.
11176   o Major features (build system, continuous integration, backport from 0.3.1.5-alpha):
11177     - Tor's repository now includes a Travis Continuous Integration (CI)
11178       configuration file (.travis.yml). This is meant to help new
11179       developers and contributors who fork Tor to a Github repository be
11180       better able to test their changes, and understand what we expect
11181       to pass. To use this new build feature, you must fork Tor to your
11182       Github account, then go into the "Integrations" menu in the
11183       repository settings for your fork and enable Travis, then push
11184       your changes. Closes ticket 22636.
11186   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
11187     - Fix a typo that had prevented TPROXY-based transparent proxying
11188       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
11189       Patch from "d4fq0fQAgoJ".
11191   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
11192     - Avoid an assertion failure bug affecting our implementation of
11193       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
11194       handling of "0xbar" differs from what we had expected. Fixes bug
11195       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
11197   o Minor features (backport from 0.3.1.5-alpha):
11198     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
11199       Country database.
11201   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.2-alpha):
11202     - Roll over monthly accounting at the configured hour and minute,
11203       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
11204       Found by Andrey Karpov with PVS-Studio.
11206   o Minor bugfixes (compilation warnings, backport from 0.3.1.5-alpha):
11207     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
11208       bugfix on 0.2.8.1-alpha.
11209     - Fix warnings when building with libscrypt and openssl scrypt
11210       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
11211     - When building with certain versions of the mingw C header files,
11212       avoid float-conversion warnings when calling the C functions
11213       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
11214       on 0.2.8.1-alpha.
11216   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
11217     - Backport a fix for an "unused variable" warning that appeared
11218       in some versions of mingw. Fixes bug 22838; bugfix on
11219       0.2.8.1-alpha.
11221   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
11222     - Avoid Coverity build warnings related to our BUG() macro. By
11223       default, Coverity treats BUG() as the Linux kernel does: an
11224       instant abort(). We need to override that so our BUG() macro
11225       doesn't prevent Coverity from analyzing functions that use it.
11226       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
11228   o Minor bugfixes (directory authority, backport from 0.3.1.1-alpha):
11229     - When rejecting a router descriptor for running an obsolete version
11230       of Tor without ntor support, warn about the obsolete tor version,
11231       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
11233   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
11234     - Avoid a sandbox failure when trying to re-bind to a socket and
11235       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
11237   o Minor bugfixes (unit tests, backport from 0.3.1.5-alpha)
11238     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
11239       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
11242 Changes in version 0.3.1.5-alpha - 2017-08-01
11243   Tor 0.3.1.5-alpha improves the performance of consensus diff
11244   calculation, fixes a crash bug on older versions of OpenBSD, and fixes
11245   several other bugs. If no serious bugs are found in this version, the
11246   next version will be a release candidate.
11248   This release also marks the end of support for the Tor 0.2.4.x,
11249   0.2.6.x, and 0.2.7.x release series. Those releases will receive no
11250   further bug or security fixes. Anyone still running or distributing
11251   one of those versions should upgrade.
11253   o Major features (build system, continuous integration):
11254     - Tor's repository now includes a Travis Continuous Integration (CI)
11255       configuration file (.travis.yml). This is meant to help new
11256       developers and contributors who fork Tor to a Github repository be
11257       better able to test their changes, and understand what we expect
11258       to pass. To use this new build feature, you must fork Tor to your
11259       Github account, then go into the "Integrations" menu in the
11260       repository settings for your fork and enable Travis, then push
11261       your changes. Closes ticket 22636.
11263   o Major bugfixes (openbsd, denial-of-service):
11264     - Avoid an assertion failure bug affecting our implementation of
11265       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
11266       handling of "0xbar" differs from what we had expected. Fixes bug
11267       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
11269   o Major bugfixes (relay, performance):
11270     - Perform circuit handshake operations at a higher priority than we
11271       use for consensus diff creation and compression. This should
11272       prevent circuits from starving when a relay or bridge receives a
11273       new consensus, especially on lower-powered machines. Fixes bug
11274       22883; bugfix on 0.3.1.1-alpha.
11276   o Minor features (bridge authority):
11277     - Add "fingerprint" lines to the networkstatus-bridges file produced
11278       by bridge authorities. Closes ticket 22207.
11280   o Minor features (directory cache, consensus diff):
11281     - Add a new MaxConsensusAgeForDiffs option to allow directory cache
11282       operators with low-resource environments to adjust the number of
11283       consensuses they'll store and generate diffs from. Most cache
11284       operators should leave it unchanged. Helps to work around
11285       bug 22883.
11287   o Minor features (geoip):
11288     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
11289       Country database.
11291   o Minor features (relay, performance):
11292     - Always start relays with at least two worker threads, to prevent
11293       priority inversion on slow tasks. Part of the fix for bug 22883.
11294     - Allow background work to be queued with different priorities, so
11295       that a big pile of slow low-priority jobs will not starve out
11296       higher priority jobs. This lays the groundwork for a fix for
11297       bug 22883.
11299   o Minor bugfixes (build system, rust):
11300     - Fix a problem where Rust toolchains were not being found when
11301       building without --enable-cargo-online-mode, due to setting the
11302       $HOME environment variable instead of $CARGO_HOME. Fixes bug
11303       22830; bugfix on 0.3.1.1-alpha. Fix by Chelsea Komlo.
11305   o Minor bugfixes (compatibility, zstd):
11306     - Write zstd epilogues correctly when the epilogue requires
11307       reallocation of the output buffer, even with zstd 1.3.0.
11308       (Previously, we worked on 1.2.0 and failed with 1.3.0). Fixes bug
11309       22927; bugfix on 0.3.1.1-alpha.
11311   o Minor bugfixes (compilation warnings):
11312     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug
11313       22915; bugfix on 0.2.8.1-alpha.
11314     - Fix warnings when building with libscrypt and openssl scrypt
11315       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
11316     - Compile correctly when both openssl 1.1.0 and libscrypt are
11317       detected. Previously this would cause an error. Fixes bug 22892;
11318       bugfix on 0.3.1.1-alpha.
11319     - When building with certain versions of the mingw C header files,
11320       avoid float-conversion warnings when calling the C functions
11321       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
11322       on 0.2.8.1-alpha.
11324   o Minor bugfixes (coverity build support):
11325     - Avoid Coverity build warnings related to our BUG() macro. By
11326       default, Coverity treats BUG() as the Linux kernel does: an
11327       instant abort(). We need to override that so our BUG() macro
11328       doesn't prevent Coverity from analyzing functions that use it.
11329       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
11331   o Minor bugfixes (directory authority):
11332     - When a directory authority rejects a descriptor or extrainfo with
11333       a given digest, mark that digest as undownloadable, so that we do
11334       not attempt to download it again over and over. We previously
11335       tried to avoid downloading such descriptors by other means, but we
11336       didn't notice if we accidentally downloaded one anyway. This
11337       behavior became problematic in 0.2.7.2-alpha, when authorities
11338       began pinning Ed25519 keys. Fixes bug 22349; bugfix
11339       on 0.2.1.19-alpha.
11341   o Minor bugfixes (error reporting, windows):
11342     - When formatting Windows error messages, use the English format to
11343       avoid codepage issues. Fixes bug 22520; bugfix on 0.1.2.8-alpha.
11344       Patch from "Vort".
11346   o Minor bugfixes (file limits, osx):
11347     - When setting the maximum number of connections allowed by the OS,
11348       always allow some extra file descriptors for other files. Fixes
11349       bug 22797; bugfix on 0.2.0.10-alpha.
11351   o Minor bugfixes (linux seccomp2 sandbox):
11352     - Avoid a sandbox failure when trying to re-bind to a socket and
11353       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
11355   o Minor bugfixes (memory leaks):
11356     - Fix a small memory leak when validating a configuration that uses
11357       two or more AF_UNIX sockets for the same port type. Fixes bug
11358       23053; bugfix on 0.2.6.3-alpha. This is CID 1415725.
11360   o Minor bugfixes (unit tests):
11361     - test_consdiff_base64cmp would fail on OS X because while OS X
11362       follows the standard of (less than zero/zero/greater than zero),
11363       it doesn't follow the convention of (-1/0/+1). Make the test
11364       comply with the standard. Fixes bug 22870; bugfix on 0.3.1.1-alpha.
11365     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
11366       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
11369 Changes in version 0.3.1.4-alpha - 2017-06-29
11370   Tor 0.3.1.4-alpha fixes a path selection bug that would allow a client
11371   to use a guard that was in the same network family as a chosen exit
11372   relay. This is a security regression; all clients running earlier
11373   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9
11374   or 0.3.1.4-alpha.
11376   This release also fixes several other bugs introduced in 0.3.0.x
11377   and 0.3.1.x, including others that can affect bandwidth usage
11378   and correctness.
11380   o New dependencies:
11381     - To build with zstd and lzma support, Tor now requires the
11382       pkg-config tool at build time. (This requirement was new in
11383       0.3.1.1-alpha, but was not noted at the time. Noting it here to
11384       close ticket 22623.)
11386   o Major bugfixes (path selection, security):
11387     - When choosing which guard to use for a circuit, avoid the exit's
11388       family along with the exit itself. Previously, the new guard
11389       selection logic avoided the exit, but did not consider its family.
11390       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
11391       006 and CVE-2017-0377.
11393   o Major bugfixes (compression, zstd):
11394     - Correctly detect a full buffer when decompressing a large zstd-
11395       compressed input. Previously, we would sometimes treat a full
11396       buffer as an error. Fixes bug 22628; bugfix on 0.3.1.1-alpha.
11398   o Major bugfixes (directory protocol):
11399     - Ensure that we send "304 Not modified" as HTTP status code when a
11400       client is attempting to fetch a consensus or consensus diff, and
11401       the best one we can send them is one they already have. Fixes bug
11402       22702; bugfix on 0.3.1.1-alpha.
11404   o Major bugfixes (entry guards):
11405     - When starting with an old consensus, do not add new entry guards
11406       unless the consensus is "reasonably live" (under 1 day old). Fixes
11407       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
11409   o Minor features (bug mitigation, diagnostics, logging):
11410     - Avoid an assertion failure, and log a better error message, when
11411       unable to remove a file from the consensus cache on Windows.
11412       Attempts to mitigate and diagnose bug 22752.
11414   o Minor features (geoip):
11415     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
11416       Country database.
11418   o Minor bugfixes (compression):
11419     - When compressing or decompressing a buffer, check for a failure to
11420       create a compression object. Fixes bug 22626; bugfix
11421       on 0.3.1.1-alpha.
11422     - When decompressing a buffer, check for extra data after the end of
11423       the compressed data. Fixes bug 22629; bugfix on 0.3.1.1-alpha.
11424     - When decompressing an object received over an anonymous directory
11425       connection, if we have already decompressed it using an acceptable
11426       compression method, do not reject it for looking like an
11427       unacceptable compression method. Fixes part of bug 22670; bugfix
11428       on 0.3.1.1-alpha.
11429     - When serving directory votes compressed with zlib, do not claim to
11430       have compressed them with zstd. Fixes bug 22669; bugfix
11431       on 0.3.1.1-alpha.
11432     - When spooling compressed data to an output buffer, don't try to
11433       spool more data when there is no more data to spool and we are not
11434       trying to flush the input. Previously, we would sometimes launch
11435       compression requests with nothing to do, which interferes with our
11436       22672 checks. Fixes bug 22719; bugfix on 0.2.0.16-alpha.
11438   o Minor bugfixes (defensive programming):
11439     - Detect and break out of infinite loops in our compression code. We
11440       don't think that any such loops exist now, but it's best to be
11441       safe. Closes ticket 22672.
11442     - Fix a memset() off the end of an array when packing cells. This
11443       bug should be harmless in practice, since the corrupted bytes are
11444       still in the same structure, and are always padding bytes,
11445       ignored, or immediately overwritten, depending on compiler
11446       behavior. Nevertheless, because the memset()'s purpose is to make
11447       sure that any other cell-handling bugs can't expose bytes to the
11448       network, we need to fix it. Fixes bug 22737; bugfix on
11449       0.2.4.11-alpha. Fixes CID 1401591.
11451   o Minor bugfixes (linux seccomp2 sandbox):
11452     - Permit the fchmod system call, to avoid crashing on startup when
11453       starting with the seccomp2 sandbox and an unexpected set of
11454       permissions on the data directory or its contents. Fixes bug
11455       22516; bugfix on 0.2.5.4-alpha.
11456     - Fix a crash in the LZMA module, when the sandbox was enabled, and
11457       liblzma would allocate more than 16 MB of memory. We solve this by
11458       bumping the mprotect() limit in the sandbox module from 16 MB to
11459       20 MB. Fixes bug 22751; bugfix on 0.3.1.1-alpha.
11461   o Minor bugfixes (logging):
11462     - When decompressing, do not warn if we fail to decompress using a
11463       compression method that we merely guessed. Fixes part of bug
11464       22670; bugfix on 0.1.1.14-alpha.
11465     - When decompressing, treat mismatch between content-encoding and
11466       actual compression type as a protocol warning. Fixes part of bug
11467       22670; bugfix on 0.1.1.9-alpha.
11468     - Downgrade "assigned_to_cpuworker failed" message to info-level
11469       severity. In every case that can reach it, either a better warning
11470       has already been logged, or no warning is warranted. Fixes bug
11471       22356; bugfix on 0.2.6.3-alpha.
11472     - Demote a warn that was caused by libevent delays to info if
11473       netflow padding is less than 4.5 seconds late, or to notice
11474       if it is more (4.5 seconds is the amount of time that a netflow
11475       record might be emitted after, if we chose the maximum timeout).
11476       Fixes bug 22212; bugfix on 0.3.1.1-alpha.
11478   o Minor bugfixes (process behavior):
11479     - When exiting because of an error, always exit with a nonzero exit
11480       status. Previously, we would fail to report an error in our exit
11481       status in cases related to __OwningControllerProcess failure,
11482       lockfile contention, and Ed25519 key initialization. Fixes bug
11483       22720; bugfix on versions 0.2.1.6-alpha, 0.2.2.28-beta, and
11484       0.2.7.2-alpha respectively. Reported by "f55jwk4f"; patch
11485       from "huyvq".
11487   o Documentation:
11488     - Add a manpage description for the key-pinning-journal file. Closes
11489       ticket 22347.
11490     - Correctly note that bandwidth accounting values are stored in the
11491       state file, and the bw_accounting file is now obsolete. Closes
11492       ticket 16082.
11493     - Document more of the files in the Tor data directory, including
11494       cached-extrainfo, secret_onion_key{,_ntor}.old, hidserv-stats,
11495       approved-routers, sr-random, and diff-cache. Found while fixing
11496       ticket 22347.
11499 Changes in version 0.3.0.9 - 2017-06-29
11500   Tor 0.3.0.9 fixes a path selection bug that would allow a client
11501   to use a guard that was in the same network family as a chosen exit
11502   relay. This is a security regression; all clients running earlier
11503   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9 or
11504   0.3.1.4-alpha.
11506   This release also backports several other bugfixes from the 0.3.1.x
11507   series.
11509   o Major bugfixes (path selection, security, backport from 0.3.1.4-alpha):
11510     - When choosing which guard to use for a circuit, avoid the exit's
11511       family along with the exit itself. Previously, the new guard
11512       selection logic avoided the exit, but did not consider its family.
11513       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
11514       006 and CVE-2017-0377.
11516   o Major bugfixes (entry guards, backport from 0.3.1.1-alpha):
11517     - Don't block bootstrapping when a primary bridge is offline and we
11518       can't get its descriptor. Fixes bug 22325; fixes one case of bug
11519       21969; bugfix on 0.3.0.3-alpha.
11521   o Major bugfixes (entry guards, backport from 0.3.1.4-alpha):
11522     - When starting with an old consensus, do not add new entry guards
11523       unless the consensus is "reasonably live" (under 1 day old). Fixes
11524       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
11526   o Minor features (geoip):
11527     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
11528       Country database.
11530   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
11531     - Reject version numbers with non-numeric prefixes (such as +, -, or
11532       whitespace). Disallowing whitespace prevents differential version
11533       parsing between POSIX-based and Windows platforms. Fixes bug 21507
11534       and part of 21508; bugfix on 0.0.8pre1.
11536   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
11537     - Permit the fchmod system call, to avoid crashing on startup when
11538       starting with the seccomp2 sandbox and an unexpected set of
11539       permissions on the data directory or its contents. Fixes bug
11540       22516; bugfix on 0.2.5.4-alpha.
11542   o Minor bugfixes (defensive programming, backport from 0.3.1.4-alpha):
11543     - Fix a memset() off the end of an array when packing cells. This
11544       bug should be harmless in practice, since the corrupted bytes are
11545       still in the same structure, and are always padding bytes,
11546       ignored, or immediately overwritten, depending on compiler
11547       behavior. Nevertheless, because the memset()'s purpose is to make
11548       sure that any other cell-handling bugs can't expose bytes to the
11549       network, we need to fix it. Fixes bug 22737; bugfix on
11550       0.2.4.11-alpha. Fixes CID 1401591.
11553 Changes in version 0.3.1.3-alpha - 2017-06-08
11554   Tor 0.3.1.3-alpha fixes a pair of bugs that would allow an attacker to
11555   remotely crash a hidden service with an assertion failure. Anyone
11556   running a hidden service should upgrade to this version, or to some
11557   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
11559   Tor 0.3.1.3-alpha also includes fixes for several key management bugs
11560   that sometimes made relays unreliable, as well as several other
11561   bugfixes described below.
11563   o Major bugfixes (hidden service, relay, security):
11564     - Fix a remotely triggerable assertion failure when a hidden service
11565       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
11566       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
11567     - Fix a remotely triggerable assertion failure caused by receiving a
11568       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
11569       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
11570       on 0.2.2.1-alpha.
11572   o Major bugfixes (relay, link handshake):
11573     - When performing the v3 link handshake on a TLS connection, report
11574       that we have the x509 certificate that we actually used on that
11575       connection, even if we have changed certificates since that
11576       connection was first opened. Previously, we would claim to have
11577       used our most recent x509 link certificate, which would sometimes
11578       make the link handshake fail. Fixes one case of bug 22460; bugfix
11579       on 0.2.3.6-alpha.
11581   o Major bugfixes (relays, key management):
11582     - Regenerate link and authentication certificates whenever the key
11583       that signs them changes; also, regenerate link certificates
11584       whenever the signed key changes. Previously, these processes were
11585       only weakly coupled, and we relays could (for minutes to hours)
11586       wind up with an inconsistent set of keys and certificates, which
11587       other relays would not accept. Fixes two cases of bug 22460;
11588       bugfix on 0.3.0.1-alpha.
11589     - When sending an Ed25519 signing->link certificate in a CERTS cell,
11590       send the certificate that matches the x509 certificate that we
11591       used on the TLS connection. Previously, there was a race condition
11592       if the TLS context rotated after we began the TLS handshake but
11593       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
11594       on 0.3.0.1-alpha.
11596   o Major bugfixes (torrc, crash):
11597     - Fix a crash bug when using %include in torrc. Fixes bug 22417;
11598       bugfix on 0.3.1.1-alpha. Patch by Daniel Pinto.
11600   o Minor features (code style):
11601     - Add "Falls through" comments to our codebase, in order to silence
11602       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
11603       Stieger. Closes ticket 22446.
11605   o Minor features (diagnostic):
11606     - Add logging messages to try to diagnose a rare bug that seems to
11607       generate RSA->Ed25519 cross-certificates dated in the 1970s. We
11608       think this is happening because of incorrect system clocks, but
11609       we'd like to know for certain. Diagnostic for bug 22466.
11611   o Minor bugfixes (correctness):
11612     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
11613       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
11615   o Minor bugfixes (directory protocol):
11616     - Check for libzstd >= 1.1, because older versions lack the
11617       necessary streaming API. Fixes bug 22413; bugfix on 0.3.1.1-alpha.
11619   o Minor bugfixes (link handshake):
11620     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
11621       months, and regenerate it when it is within one month of expiring.
11622       Previously, we had generated this certificate at startup with a
11623       ten-year lifetime, but that could lead to weird behavior when Tor
11624       was started with a grossly inaccurate clock. Mitigates bug 22466;
11625       mitigation on 0.3.0.1-alpha.
11627   o Minor bugfixes (storage directories):
11628     - Always check for underflows in the cached storage directory usage.
11629       If the usage does underflow, re-calculate it. Also, avoid a
11630       separate underflow when the usage is not known. Fixes bug 22424;
11631       bugfix on 0.3.1.1-alpha.
11633   o Minor bugfixes (unit tests):
11634     - The unit tests now pass on systems where localhost is misconfigured
11635       to some IPv4 address other than 127.0.0.1. Fixes bug 6298; bugfix
11636       on 0.0.9pre2.
11638   o Documentation:
11639     - Clarify the manpage for the (deprecated) torify script. Closes
11640       ticket 6892.
11642 Changes in version 0.3.0.8 - 2017-06-08
11643   Tor 0.3.0.8 fixes a pair of bugs that would allow an attacker to
11644   remotely crash a hidden service with an assertion failure. Anyone
11645   running a hidden service should upgrade to this version, or to some
11646   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
11648   Tor 0.3.0.8 also includes fixes for several key management bugs
11649   that sometimes made relays unreliable, as well as several other
11650   bugfixes described below.
11652   o Major bugfixes (hidden service, relay, security, backport
11653     from 0.3.1.3-alpha):
11654     - Fix a remotely triggerable assertion failure when a hidden service
11655       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
11656       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
11657     - Fix a remotely triggerable assertion failure caused by receiving a
11658       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
11659       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
11660       on 0.2.2.1-alpha.
11662   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
11663     - When performing the v3 link handshake on a TLS connection, report
11664       that we have the x509 certificate that we actually used on that
11665       connection, even if we have changed certificates since that
11666       connection was first opened. Previously, we would claim to have
11667       used our most recent x509 link certificate, which would sometimes
11668       make the link handshake fail. Fixes one case of bug 22460; bugfix
11669       on 0.2.3.6-alpha.
11671   o Major bugfixes (relays, key management, backport from 0.3.1.3-alpha):
11672     - Regenerate link and authentication certificates whenever the key
11673       that signs them changes; also, regenerate link certificates
11674       whenever the signed key changes. Previously, these processes were
11675       only weakly coupled, and we relays could (for minutes to hours)
11676       wind up with an inconsistent set of keys and certificates, which
11677       other relays would not accept. Fixes two cases of bug 22460;
11678       bugfix on 0.3.0.1-alpha.
11679     - When sending an Ed25519 signing->link certificate in a CERTS cell,
11680       send the certificate that matches the x509 certificate that we
11681       used on the TLS connection. Previously, there was a race condition
11682       if the TLS context rotated after we began the TLS handshake but
11683       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
11684       on 0.3.0.1-alpha.
11686   o Major bugfixes (hidden service v3, backport from 0.3.1.1-alpha):
11687     - Stop rejecting v3 hidden service descriptors because their size
11688       did not match an old padding rule. Fixes bug 22447; bugfix on
11689       0.3.0.1-alpha.
11691   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
11692     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
11693       December 2016 (of which ~126 were still functional) with a list of
11694       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
11695       2017. Resolves ticket 21564.
11697   o Minor bugfixes (configuration, backport from 0.3.1.1-alpha):
11698     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
11699       bug 22252; bugfix on 0.2.9.3-alpha.
11701   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
11702     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
11703       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
11705   o Minor bugfixes (link handshake, backport from 0.3.1.3-alpha):
11706     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
11707       months, and regenerate it when it is within one month of expiring.
11708       Previously, we had generated this certificate at startup with a
11709       ten-year lifetime, but that could lead to weird behavior when Tor
11710       was started with a grossly inaccurate clock. Mitigates bug 22466;
11711       mitigation on 0.3.0.1-alpha.
11713   o Minor bugfixes (memory leak, directory authority, backport from
11714     0.3.1.2-alpha):
11715     - When directory authorities reject a router descriptor due to
11716       keypinning, free the router descriptor rather than leaking the
11717       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
11720 Changes in version 0.2.9.11 - 2017-06-08
11721   Tor 0.2.9.11 backports a fix for a bug that would allow an attacker to
11722   remotely crash a hidden service with an assertion failure. Anyone
11723   running a hidden service should upgrade to this version, or to some
11724   other version with fixes for TROVE-2017-005. (Versions before 0.3.0
11725   are not affected by TROVE-2017-004.)
11727   Tor 0.2.9.11 also backports fixes for several key management bugs
11728   that sometimes made relays unreliable, as well as several other
11729   bugfixes described below.
11731   o Major bugfixes (hidden service, relay, security, backport
11732     from 0.3.1.3-alpha):
11733     - Fix a remotely triggerable assertion failure caused by receiving a
11734       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
11735       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
11736       on 0.2.2.1-alpha.
11738   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
11739     - When performing the v3 link handshake on a TLS connection, report
11740       that we have the x509 certificate that we actually used on that
11741       connection, even if we have changed certificates since that
11742       connection was first opened. Previously, we would claim to have
11743       used our most recent x509 link certificate, which would sometimes
11744       make the link handshake fail. Fixes one case of bug 22460; bugfix
11745       on 0.2.3.6-alpha.
11747   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
11748     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
11749       December 2016 (of which ~126 were still functional) with a list of
11750       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
11751       2017. Resolves ticket 21564.
11753   o Minor features (future-proofing, backport from 0.3.0.7):
11754     - Tor no longer refuses to download microdescriptors or descriptors if
11755       they are listed as "published in the future".  This change will
11756       eventually allow us to stop listing meaningful "published" dates
11757       in microdescriptor consensuses, and thereby allow us to reduce the
11758       resources required to download consensus diffs by over 50%.
11759       Implements part of ticket 21642; implements part of proposal 275.
11761   o Minor features (directory authorities, backport from 0.3.0.4-rc)
11762     - Directory authorities now reject relays running versions
11763       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
11764       suffer from bug 20499 and don't keep their consensus cache
11765       up-to-date. Resolves ticket 20509.
11767   o Minor features (geoip):
11768     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
11769       Country database.
11771   o Minor bugfixes (control port, backport from 0.3.0.6):
11772     - The GETINFO extra-info/digest/<digest> command was broken because
11773       of a wrong base16 decode return value check, introduced when
11774       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
11776   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
11777     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
11778       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
11780   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.0.7):
11781     - The getpid() system call is now permitted under the Linux seccomp2
11782       sandbox, to avoid crashing with versions of OpenSSL (and other
11783       libraries) that attempt to learn the process's PID by using the
11784       syscall rather than the VDSO code. Fixes bug 21943; bugfix
11785       on 0.2.5.1-alpha.
11787   o Minor bugfixes (memory leak, directory authority, backport
11788     from 0.3.1.2-alpha):
11789     - When directory authorities reject a router descriptor due to
11790       keypinning, free the router descriptor rather than leaking the
11791       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
11793 Changes in version 0.2.8.14 - 2017-06-08
11794   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
11795   remotely crash a hidden service with an assertion failure. Anyone
11796   running a hidden service should upgrade to this version, or to some
11797   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
11798   are not affected by TROVE-2017-004.)
11800   o Major bugfixes (hidden service, relay, security):
11801     - Fix a remotely triggerable assertion failure caused by receiving a
11802       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
11803       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
11804       on 0.2.2.1-alpha.
11806   o Minor features (geoip):
11807     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
11808       Country database.
11810   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
11811     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
11812       December 2016 (of which ~126 were still functional) with a list of
11813       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
11814       2017. Resolves ticket 21564.
11816   o Minor bugfixes (correctness):
11817     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
11818       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
11820 Changes in version 0.2.7.8 - 2017-06-08
11821   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
11822   remotely crash a hidden service with an assertion failure. Anyone
11823   running a hidden service should upgrade to this version, or to some
11824   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
11825   are not affected by TROVE-2017-004.)
11827   o Major bugfixes (hidden service, relay, security):
11828     - Fix a remotely triggerable assertion failure caused by receiving a
11829       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
11830       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
11831       on 0.2.2.1-alpha.
11833   o Minor features (geoip):
11834     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
11835       Country database.
11837   o Minor bugfixes (correctness):
11838     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
11839       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
11842 Changes in version 0.2.6.12 - 2017-06-08
11843   Tor 0.2.6.12 backports a fix for a bug that would allow an attacker to
11844   remotely crash a hidden service with an assertion failure. Anyone
11845   running a hidden service should upgrade to this version, or to some
11846   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
11847   are not affected by TROVE-2017-004.)
11849   o Major bugfixes (hidden service, relay, security):
11850     - Fix a remotely triggerable assertion failure caused by receiving a
11851       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
11852       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
11853       on 0.2.2.1-alpha.
11855   o Minor features (geoip):
11856     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
11857       Country database.
11859   o Minor bugfixes (correctness):
11860     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
11861       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
11863 Changes in version 0.2.5.14 - 2017-06-08
11864   Tor 0.2.5.14 backports a fix for a bug that would allow an attacker to
11865   remotely crash a hidden service with an assertion failure. Anyone
11866   running a hidden service should upgrade to this version, or to some
11867   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
11868   are not affected by TROVE-2017-004.)
11870   o Major bugfixes (hidden service, relay, security):
11871     - Fix a remotely triggerable assertion failure caused by receiving a
11872       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
11873       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
11874       on 0.2.2.1-alpha.
11876   o Minor features (geoip):
11877     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
11878       Country database.
11880   o Minor bugfixes (correctness):
11881     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
11882       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
11884 Changes in version 0.2.4.29 - 2017-06-08
11885   Tor 0.2.4.29 backports a fix for a bug that would allow an attacker to
11886   remotely crash a hidden service with an assertion failure. Anyone
11887   running a hidden service should upgrade to this version, or to some
11888   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
11889   are not affected by TROVE-2017-004.)
11891   o Major bugfixes (hidden service, relay, security):
11892     - Fix a remotely triggerable assertion failure caused by receiving a
11893       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
11894       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
11895       on 0.2.2.1-alpha.
11897   o Minor features (geoip):
11898     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
11899       Country database.
11901   o Minor bugfixes (correctness):
11902     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
11903       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
11906 Changes in version 0.3.1.2-alpha - 2017-05-26
11907   Tor 0.3.1.2-alpha is the second release in the 0.3.1.x series. It
11908   fixes a few bugs found while testing 0.3.1.1-alpha, including a
11909   memory corruption bug that affected relay stability.
11911   o Major bugfixes (crash, relay):
11912     - Fix a memory-corruption bug in relays that set MyFamily.
11913       Previously, they would double-free MyFamily elements when making
11914       the next descriptor or when changing their configuration. Fixes
11915       bug 22368; bugfix on 0.3.1.1-alpha.
11917   o Minor bugfixes (logging):
11918     - Log a better message when a directory authority replies to an
11919       upload with an unexpected status code. Fixes bug 11121; bugfix
11920       on 0.1.0.1-rc.
11922   o Minor bugfixes (memory leak, directory authority):
11923     - When directory authorities reject a router descriptor due to
11924       keypinning, free the router descriptor rather than leaking the
11925       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
11928 Changes in version 0.3.1.1-alpha - 2017-05-22
11929   Tor 0.3.1.1-alpha is the first release in the 0.3.1.x series. It
11930   reduces the bandwidth usage for Tor's directory protocol, adds some
11931   basic padding to resist netflow-based traffic analysis and to serve as
11932   the basis of other padding in the future, and adds rust support to the
11933   build system.
11935   It also contains numerous other small features and improvements to
11936   security, correctness, and performance.
11938   Below are the changes since 0.3.0.7.
11940   o Major features (directory protocol):
11941     - Tor relays and authorities can now serve clients an abbreviated
11942       version of the consensus document, containing only the changes
11943       since an older consensus document that the client holds. Clients
11944       now request these documents when available. When both client and
11945       server use this new protocol, they will use far less bandwidth (up
11946       to 94% less) to keep the client's consensus up-to-date. Implements
11947       proposal 140; closes ticket 13339. Based on work by Daniel Martí.
11948     - Tor can now compress directory traffic with lzma or with zstd
11949       compression algorithms, which can deliver better bandwidth
11950       performance. Because lzma is computationally expensive, it's only
11951       used for documents that can be compressed once and served many
11952       times. Support for these algorithms requires that tor is built
11953       with the libzstd and/or liblzma libraries available. Implements
11954       proposal 278; closes ticket 21662.
11955     - Relays now perform the more expensive compression operations, and
11956       consensus diff generation, in worker threads. This separation
11957       avoids delaying the main thread when a new consensus arrives.
11959   o Major features (experimental):
11960     - Tor can now build modules written in Rust. To turn this on, pass
11961       the "--enable-rust" flag to the configure script. It's not time to
11962       get excited yet: currently, there is no actual Rust functionality
11963       beyond some simple glue code, and a notice at startup to tell you
11964       that Rust is running. Still, we hope that programmers and
11965       packagers will try building Tor with Rust support, so that we can
11966       find issues and solve portability problems. Closes ticket 22106.
11968   o Major features (traffic analysis resistance):
11969     - Connections between clients and relays now send a padding cell in
11970       each direction every 1.5 to 9.5 seconds (tunable via consensus
11971       parameters). This padding will not resist specialized
11972       eavesdroppers, but it should be enough to make many ISPs' routine
11973       network flow logging less useful in traffic analysis against
11974       Tor users.
11976       Padding is negotiated using Tor's link protocol, so both relays
11977       and clients must upgrade for this to take effect. Clients may
11978       still send padding despite the relay's version by setting
11979       ConnectionPadding 1 in torrc, and may disable padding by setting
11980       ConnectionPadding 0 in torrc. Padding may be minimized for mobile
11981       users with the torrc option ReducedConnectionPadding. Implements
11982       Proposal 251 and Section 2 of Proposal 254; closes ticket 16861.
11983     - Relays will publish 24 hour totals of padding and non-padding cell
11984       counts to their extra-info descriptors, unless PaddingStatistics 0
11985       is set in torrc. These 24 hour totals are also rounded to
11986       multiples of 10000.
11988   o Major bugfixes (connection usage):
11989     - We use NETINFO cells to try to determine if both relays involved
11990       in a connection will agree on the canonical status of that
11991       connection. We prefer the connections where this is the case for
11992       extend cells, and try to close connections where relays disagree
11993       on their canonical status early. Also, we now prefer the oldest
11994       valid connection for extend cells. These two changes should reduce
11995       the number of long-term connections that are kept open between
11996       relays. Fixes bug 17604; bugfix on 0.2.5.5-alpha.
11997     - Relays now log hourly statistics (look for
11998       "channel_check_for_duplicates" lines) on the total number of
11999       connections to other relays. If the number of connections per
12000       relay is unexpectedly large, this log message is at notice level.
12001       Otherwise it is at info.
12003   o Major bugfixes (entry guards):
12004     - Don't block bootstrapping when a primary bridge is offline and we
12005       can't get its descriptor. Fixes bug 22325; fixes one case of bug
12006       21969; bugfix on 0.3.0.3-alpha.
12008   o Major bugfixes (linux TPROXY support):
12009     - Fix a typo that had prevented TPROXY-based transparent proxying
12010       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
12011       Patch from "d4fq0fQAgoJ".
12013   o Minor features (security, windows):
12014     - Enable a couple of pieces of Windows hardening: one
12015       (HeapEnableTerminationOnCorruption) that has been on-by-default
12016       since Windows 8, and unavailable before Windows 7; and one
12017       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
12018       affect us, but shouldn't do any harm. Closes ticket 21953.
12020   o Minor features (config options):
12021     - Allow "%include" directives in torrc configuration files. These
12022       directives import the settings from other files, or from all the
12023       files in a directory. Closes ticket 1922. Code by Daniel Pinto.
12024     - Make SAVECONF return an error when overwriting a torrc that has
12025       includes. Using SAVECONF with the FORCE option will allow it to
12026       overwrite torrc even if includes are used. Related to ticket 1922.
12027     - Add "GETINFO config-can-saveconf" to tell controllers if SAVECONF
12028       will work without the FORCE option. Related to ticket 1922.
12030   o Minor features (controller):
12031     - Warn the first time that a controller requests data in the long-
12032       deprecated 'GETINFO network-status' format. Closes ticket 21703.
12034   o Minor features (defaults):
12035     - The default value for UseCreateFast is now 0: clients which
12036       haven't yet received a consensus document will now use a proper
12037       ntor handshake to talk to their directory servers whenever they
12038       can. Closes ticket 21407.
12039     - Onion key rotation and expiry intervals are now defined as a
12040       network consensus parameter, per proposal 274. The default
12041       lifetime of an onion key is increased from 7 to 28 days. Old onion
12042       keys will expire after 7 days by default. This change will make
12043       consensus diffs much smaller, and save significant bandwidth.
12044       Closes ticket 21641.
12046   o Minor features (fallback directory list):
12047     - Update the fallback directory mirror whitelist and blacklist based
12048       on operator emails. Closes task 21121.
12049     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
12050       December 2016 (of which ~126 were still functional) with a list of
12051       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
12052       2017. Resolves ticket 21564.
12054   o Minor features (hidden services, logging):
12055     - Log a message when a hidden service descriptor has fewer
12056       introduction points than specified in
12057       HiddenServiceNumIntroductionPoints. Closes tickets 21598.
12058     - Log a message when a hidden service reaches its introduction point
12059       circuit limit, and when that limit is reset. Follow up to ticket
12060       21594; closes ticket 21622.
12061     - Warn user if multiple entries in EntryNodes and at least one
12062       HiddenService are used together. Pinning EntryNodes along with a
12063       hidden service can be possibly harmful; for instance see ticket
12064       14917 or 21155. Closes ticket 21155.
12066   o Minor features (linux seccomp2 sandbox):
12067     - We now have a document storage backend compatible with the Linux
12068       seccomp2 sandbox. This backend is used for consensus documents and
12069       diffs between them; in the long term, we'd like to use it for
12070       unparseable directory material too. Closes ticket 21645
12071     - Increase the maximum allowed size passed to mprotect(PROT_WRITE)
12072       from 1MB to 16MB. This was necessary with the glibc allocator in
12073       order to allow worker threads to allocate more memory -- which in
12074       turn is necessary because of our new use of worker threads for
12075       compression. Closes ticket 22096.
12077   o Minor features (logging):
12078     - Log files are no longer created world-readable by default.
12079       (Previously, most distributors would store the logs in a non-
12080       world-readable location to prevent inappropriate access. This
12081       change is an extra precaution.) Closes ticket 21729; patch
12082       from toralf.
12084   o Minor features (performance):
12085     - Our Keccak (SHA-3) implementation now accesses memory more
12086       efficiently, especially on little-endian systems. Closes
12087       ticket 21737.
12088     - Add an O(1) implementation of channel_find_by_global_id(), to
12089       speed some controller functions.
12091   o Minor features (relay, configuration):
12092     - The MyFamily option may now be repeated as many times as desired,
12093       for relays that want to configure large families. Closes ticket
12094       4998; patch by Daniel Pinto.
12096   o Minor features (safety):
12097     - Add an explicit check to extrainfo_parse_entry_from_string() for
12098       NULL inputs. We don't believe this can actually happen, but it may
12099       help silence a warning from the Clang analyzer. Closes
12100       ticket 21496.
12102   o Minor features (testing):
12103     - Add a "--disable-memory-sentinels" feature to help with fuzzing.
12104       When Tor is compiled with this option, we disable a number of
12105       redundant memory-safety failsafes that are intended to stop bugs
12106       from becoming security issues. This makes it easier to hunt for
12107       bugs that would be security issues without the failsafes turned
12108       on. Closes ticket 21439.
12109     - Add a general event-tracing instrumentation support to Tor. This
12110       subsystem will enable developers and researchers to add fine-
12111       grained instrumentation to their Tor instances, for use when
12112       examining Tor network performance issues. There are no trace
12113       events yet, and event-tracing is off by default unless enabled at
12114       compile time. Implements ticket 13802.
12115     - Improve our version parsing tests: add tests for typical version
12116       components, add tests for invalid versions, including numeric
12117       range and non-numeric prefixes. Unit tests 21278, 21450, and
12118       21507. Partially implements 21470.
12120   o Minor bugfixes (bandwidth accounting):
12121     - Roll over monthly accounting at the configured hour and minute,
12122       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
12123       Found by Andrey Karpov with PVS-Studio.
12125   o Minor bugfixes (code correctness):
12126     - Accurately identify client connections by their lack of peer
12127       authentication. This means that we bail out earlier if asked to
12128       extend to a client. Follow-up to 21407. Fixes bug 21406; bugfix
12129       on 0.2.4.23.
12131   o Minor bugfixes (configuration):
12132     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
12133       bug 22252; bugfix on 0.2.9.3-alpha.
12135   o Minor bugfixes (connection lifespan):
12136     - Allow more control over how long TLS connections are kept open:
12137       unify CircuitIdleTimeout and PredictedPortsRelevanceTime into a
12138       single option called CircuitsAvailableTimeout. Also, allow the
12139       consensus to control the default values for both this preference
12140       and the lifespan of relay-to-relay connections. Fixes bug 17592;
12141       bugfix on 0.2.5.5-alpha.
12142     - Increase the initial circuit build timeout testing frequency, to
12143       help ensure that ReducedConnectionPadding clients finish learning
12144       a timeout before their orconn would expire. The initial testing
12145       rate was set back in the days of TAP and before the Tor Browser
12146       updater, when we had to be much more careful about new clients
12147       making lots of circuits. With this change, a circuit build timeout
12148       is learned in about 15-20 minutes, instead of 100-120 minutes.
12150   o Minor bugfixes (controller):
12151     - GETINFO onions/current and onions/detached no longer respond with
12152       551 on empty lists. Fixes bug 21329; bugfix on 0.2.7.1-alpha.
12153     - Trigger HS descriptor events on the control port when the client
12154       fails to pick a hidden service directory for a hidden service.
12155       This can happen if all the hidden service directories are in
12156       ExcludeNodes, or they have all been queried within the last 15
12157       minutes. Fixes bug 22042; bugfix on 0.2.5.2-alpha.
12159   o Minor bugfixes (directory authority):
12160     - When rejecting a router descriptor for running an obsolete version
12161       of Tor without ntor support, warn about the obsolete tor version,
12162       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
12163     - Prevent the shared randomness subsystem from asserting when
12164       initialized by a bridge authority with an incomplete configuration
12165       file. Fixes bug 21586; bugfix on 0.2.9.8.
12167   o Minor bugfixes (exit-side DNS):
12168     - Fix an untriggerable assertion that checked the output of a
12169       libevent DNS error, so that the assertion actually behaves as
12170       expected. Fixes bug 22244; bugfix on 0.2.0.20-rc. Found by Andrey
12171       Karpov using PVS-Studio.
12173   o Minor bugfixes (fallback directories):
12174     - Make the usage example in updateFallbackDirs.py actually work, and
12175       explain what it does. Fixes bug 22270; bugfix on 0.3.0.3-alpha.
12176     - Decrease the guard flag average required to be a fallback. This
12177       allows us to keep relays that have their guard flag removed when
12178       they restart. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
12179     - Decrease the minimum number of fallbacks to 100. Fixes bug 20913;
12180       bugfix on 0.2.8.1-alpha.
12181     - Make sure fallback directory mirrors have the same address, port,
12182       and relay identity key for at least 30 days before they are
12183       selected. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
12185   o Minor bugfixes (hidden services):
12186     - Stop printing a cryptic warning when a hidden service gets a
12187       request to connect to a virtual port that it hasn't configured.
12188       Fixes bug 16706; bugfix on 0.2.6.3-alpha.
12189     - Simplify hidden service descriptor creation by using an existing
12190       flag to check if an introduction point is established. Fixes bug
12191       21599; bugfix on 0.2.7.2-alpha.
12193   o Minor bugfixes (memory leak):
12194     - Fix a small memory leak at exit from the backtrace handler code.
12195       Fixes bug 21788; bugfix on 0.2.5.2-alpha. Patch from Daniel Pinto.
12197   o Minor bugfixes (protocol, logging):
12198     - Downgrade a log statement about unexpected relay cells from "bug"
12199       to "protocol warning", because there is at least one use case
12200       where it can be triggered by a buggy tor implementation. Fixes bug
12201       21293; bugfix on 0.1.1.14-alpha.
12203   o Minor bugfixes (testing):
12204     - Use unbuffered I/O for utility functions around the
12205       process_handle_t type. This fixes unit test failures reported on
12206       OpenBSD and FreeBSD. Fixes bug 21654; bugfix on 0.2.3.1-alpha.
12207     - Make display of captured unit test log messages consistent. Fixes
12208       bug 21510; bugfix on 0.2.9.3-alpha.
12209     - Make test-network.sh always call chutney's test-network.sh.
12210       Previously, this only worked on systems which had bash installed,
12211       due to some bash-specific code in the script. Fixes bug 19699;
12212       bugfix on 0.3.0.4-rc. Follow-up to ticket 21581.
12214   o Minor bugfixes (voting consistency):
12215     - Reject version numbers with non-numeric prefixes (such as +, -, or
12216       whitespace). Disallowing whitespace prevents differential version
12217       parsing between POSIX-based and Windows platforms. Fixes bug 21507
12218       and part of 21508; bugfix on 0.0.8pre1.
12220   o Minor bugfixes (windows, relay):
12221     - Resolve "Failure from drain_fd: No error" warnings on Windows
12222       relays. Fixes bug 21540; bugfix on 0.2.6.3-alpha.
12224   o Code simplification and refactoring:
12225     - Break up the 630-line function connection_dir_client_reached_eof()
12226       into a dozen smaller functions. This change should help
12227       maintainability and readability of the client directory code.
12228     - Isolate our use of the openssl headers so that they are only
12229       included from our crypto wrapper modules, and from tests that
12230       examine those modules' internals. Closes ticket 21841.
12231     - Simplify our API to launch directory requests, making it more
12232       extensible and less error-prone. Now it's easier to add extra
12233       headers to directory requests. Closes ticket 21646.
12234     - Our base64 decoding functions no longer overestimate the output
12235       space that they need when parsing unpadded inputs. Closes
12236       ticket 17868.
12237     - Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value.
12238       Resolves ticket 22213.
12239     - The logic that directory caches use to spool request to clients,
12240       serving them one part at a time so as not to allocate too much
12241       memory, has been refactored for consistency. Previously there was
12242       a separate spooling implementation per type of spoolable data. Now
12243       there is one common spooling implementation, with extensible data
12244       types. Closes ticket 21651.
12245     - Tor's compression module now supports multiple backends. Part of
12246       the implementation for proposal 278; closes ticket 21663.
12248   o Documentation:
12249     - Clarify the behavior of the KeepAliveIsolateSOCKSAuth sub-option.
12250       Closes ticket 21873.
12251     - Correct documentation about the default DataDirectory value.
12252       Closes ticket 21151.
12253     - Document the default behavior of NumEntryGuards and
12254       NumDirectoryGuards correctly. Fixes bug 21715; bugfix
12255       on 0.3.0.1-alpha.
12256     - Document key=value pluggable transport arguments for Bridge lines
12257       in torrc. Fixes bug 20341; bugfix on 0.2.5.1-alpha.
12258     - Note that bandwidth-limiting options don't affect TCP headers or
12259       DNS. Closes ticket 17170.
12261   o Removed features (configuration options, all in ticket 22060):
12262     - These configuration options are now marked Obsolete, and no longer
12263       have any effect: AllowInvalidNodes, AllowSingleHopCircuits,
12264       AllowSingleHopExits, ExcludeSingleHopRelays, FastFirstHopPK,
12265       TLSECGroup, WarnUnsafeSocks. They were first marked as deprecated
12266       in 0.2.9.2-alpha and have now been removed. The previous default
12267       behavior is now always chosen; the previous (less secure) non-
12268       default behavior is now unavailable.
12269     - CloseHSClientCircuitsImmediatelyOnTimeout and
12270       CloseHSServiceRendCircuitsImmediatelyOnTimeout were deprecated in
12271       0.2.9.2-alpha and now have been removed. HS circuits never close
12272       on circuit build timeout; they have a longer timeout period.
12273     - {Control,DNS,Dir,Socks,Trans,NATD,OR}ListenAddress were deprecated
12274       in 0.2.9.2-alpha and now have been removed. Use the ORPort option
12275       (and others) to configure listen-only and advertise-only addresses.
12277   o Removed features (tools):
12278     - We've removed the tor-checkkey tool from src/tools. Long ago, we
12279       used it to help people detect RSA keys that were generated by
12280       versions of Debian affected by CVE-2008-0166. But those keys have
12281       been out of circulation for ages, and this tool is no longer
12282       required. Closes ticket 21842.
12285 Changes in version 0.3.0.7 - 2017-05-15
12286   Tor 0.3.0.7 fixes a medium-severity security bug in earlier versions
12287   of Tor 0.3.0.x, where an attacker could cause a Tor relay process
12288   to exit. Relays running earlier versions of Tor 0.3.0.x should upgrade;
12289   clients are not affected.
12291   o Major bugfixes (hidden service directory, security):
12292     - Fix an assertion failure in the hidden service directory code, which
12293       could be used by an attacker to remotely cause a Tor relay process to
12294       exit. Relays running earlier versions of Tor 0.3.0.x should upgrade.
12295       should upgrade. This security issue is tracked as TROVE-2017-002.
12296       Fixes bug 22246; bugfix on 0.3.0.1-alpha.
12298   o Minor features:
12299     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
12300       Country database.
12302   o Minor features (future-proofing):
12303     - Tor no longer refuses to download microdescriptors or descriptors
12304       if they are listed as "published in the future". This change will
12305       eventually allow us to stop listing meaningful "published" dates
12306       in microdescriptor consensuses, and thereby allow us to reduce the
12307       resources required to download consensus diffs by over 50%.
12308       Implements part of ticket 21642; implements part of proposal 275.
12310   o Minor bugfixes (Linux seccomp2 sandbox):
12311     - The getpid() system call is now permitted under the Linux seccomp2
12312       sandbox, to avoid crashing with versions of OpenSSL (and other
12313       libraries) that attempt to learn the process's PID by using the
12314       syscall rather than the VDSO code. Fixes bug 21943; bugfix
12315       on 0.2.5.1-alpha.
12318 Changes in version 0.3.0.6 - 2017-04-26
12319   Tor 0.3.0.6 is the first stable release of the Tor 0.3.0 series.
12321   With the 0.3.0 series, clients and relays now use Ed25519 keys to
12322   authenticate their link connections to relays, rather than the old
12323   RSA1024 keys that they used before. (Circuit crypto has been
12324   Curve25519-authenticated since 0.2.4.8-alpha.) We have also replaced
12325   the guard selection and replacement algorithm to behave more robustly
12326   in the presence of unreliable networks, and to resist guard-
12327   capture attacks.
12329   This series also includes numerous other small features and bugfixes,
12330   along with more groundwork for the upcoming hidden-services revamp.
12332   Per our stable release policy, we plan to support the Tor 0.3.0
12333   release series for at least the next nine months, or for three months
12334   after the first stable release of the 0.3.1 series: whichever is
12335   longer. If you need a release with long-term support, we recommend
12336   that you stay with the 0.2.9 series.
12338   Below are the changes since 0.3.0.5-rc. For a list of all changes
12339   since 0.2.9, see the ReleaseNotes file.
12341   o Minor features (geoip):
12342     - Update geoip and geoip6 to the April 4 2017 Maxmind GeoLite2
12343       Country database.
12345   o Minor bugfixes (control port):
12346     - The GETINFO extra-info/digest/<digest> command was broken because
12347       of a wrong base16 decode return value check, introduced when
12348       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
12350   o Minor bugfixes (crash prevention):
12351     - Fix a (currently untriggerable, but potentially dangerous) crash
12352       bug when base32-encoding inputs whose sizes are not a multiple of
12353       5. Fixes bug 21894; bugfix on 0.2.9.1-alpha.
12356 Changes in version 0.3.0.5-rc - 2017-04-05
12357   Tor 0.3.0.5-rc fixes a few remaining bugs, large and small, in the
12358   0.3.0 release series.
12360   This is the second release candidate in the Tor 0.3.0 series, and has
12361   much fewer changes than the first. If we find no new bugs or
12362   regressions here, the first stable 0.3.0 release will be nearly
12363   identical to it.
12365   o Major bugfixes (crash, directory connections):
12366     - Fix a rare crash when sending a begin cell on a circuit whose
12367       linked directory connection had already been closed. Fixes bug
12368       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
12370   o Major bugfixes (guard selection):
12371     - Fix a guard selection bug where Tor would refuse to bootstrap in
12372       some cases if the user swapped a bridge for another bridge in
12373       their configuration file. Fixes bug 21771; bugfix on 0.3.0.1-alpha.
12374       Reported by "torvlnt33r".
12376   o Minor features (geoip):
12377     - Update geoip and geoip6 to the March 7 2017 Maxmind GeoLite2
12378       Country database.
12380   o Minor bugfix (compilation):
12381     - Fix a warning when compiling hs_service.c. Previously, it had no
12382       exported symbols when compiled for libor.a, resulting in a
12383       compilation warning from clang. Fixes bug 21825; bugfix
12384       on 0.3.0.1-alpha.
12386   o Minor bugfixes (hidden services):
12387     - Make hidden services check for failed intro point connections,
12388       even when they have exceeded their intro point creation limit.
12389       Fixes bug 21596; bugfix on 0.2.7.2-alpha. Reported by Alec Muffett.
12390     - Make hidden services with 8 to 10 introduction points check for
12391       failed circuits immediately after startup. Previously, they would
12392       wait for 5 minutes before performing their first checks. Fixes bug
12393       21594; bugfix on 0.2.3.9-alpha. Reported by Alec Muffett.
12395   o Minor bugfixes (memory leaks):
12396     - Fix a memory leak when using GETCONF on a port option. Fixes bug
12397       21682; bugfix on 0.3.0.3-alpha.
12399   o Minor bugfixes (relay):
12400     - Avoid a double-marked-circuit warning that could happen when we
12401       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
12402       on 0.1.0.1-rc.
12404   o Minor bugfixes (tests):
12405     - Run the entry_guard_parse_from_state_full() test with the time set
12406       to a specific date. (The guard state that this test was parsing
12407       contained guards that had expired since the test was first
12408       written.) Fixes bug 21799; bugfix on 0.3.0.1-alpha.
12410   o Documentation:
12411     - Update the description of the directory server options in the
12412       manual page, to clarify that a relay no longer needs to set
12413       DirPort in order to be a directory cache. Closes ticket 21720.
12417 Changes in version 0.2.8.13 - 2017-03-03
12418   Tor 0.2.8.13 backports a security fix from later Tor
12419   releases.  Anybody running Tor 0.2.8.12 or earlier should upgrade to this
12420   this release, if for some reason they cannot upgrade to a later
12421   release series, and if they build Tor with the --enable-expensive-hardening
12422   option.
12424   Note that support for Tor 0.2.8.x is ending next year: we will not issue
12425   any fixes for the Tor 0.2.8.x series after 1 Jan 2018.  If you need
12426   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
12428   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
12429     - Fix an integer underflow bug when comparing malformed Tor
12430       versions. This bug could crash Tor when built with
12431       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
12432       0.2.9.8, which were built with -ftrapv by default. In other cases
12433       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
12434       on 0.0.8pre1. Found by OSS-Fuzz.
12436   o Minor features (geoip):
12437     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
12438       Country database.
12441 Changes in version 0.2.7.7 - 2017-03-03
12442   Tor 0.2.7.7 backports a number of security fixes from later Tor
12443   releases.  Anybody running Tor 0.2.7.6 or earlier should upgrade to
12444   this release, if for some reason they cannot upgrade to a later
12445   release series.
12447   Note that support for Tor 0.2.7.x is ending this year: we will not issue
12448   any fixes for the Tor 0.2.7.x series after 1 August 2017.  If you need
12449   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
12451   o Directory authority changes (backport from 0.2.8.5-rc):
12452     - Urras is no longer a directory authority. Closes ticket 19271.
12454   o Directory authority changes (backport from 0.2.9.2-alpha):
12455     - The "Tonga" bridge authority has been retired; the new bridge
12456       authority is "Bifroest". Closes tickets 19728 and 19690.
12458   o Directory authority key updates (backport from 0.2.8.1-alpha):
12459     - Update the V3 identity key for the dannenberg directory authority:
12460       it was changed on 18 November 2015. Closes task 17906. Patch
12461       by "teor".
12463   o Major bugfixes (parsing, security, backport from 0.2.9.8):
12464     - Fix a bug in parsing that could cause clients to read a single
12465       byte past the end of an allocated region. This bug could be used
12466       to cause hardened clients (built with --enable-expensive-hardening)
12467       to crash if they tried to visit a hostile hidden service. Non-
12468       hardened clients are only affected depending on the details of
12469       their platform's memory allocator. Fixes bug 21018; bugfix on
12470       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
12471       2016-12-002 and as CVE-2016-1254.
12473   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
12474     - Stop a crash that could occur when a client running with DNSPort
12475       received a query with multiple address types, and the first
12476       address type was not supported. Found and fixed by Scott Dial.
12477       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
12478     - Prevent a class of security bugs caused by treating the contents
12479       of a buffer chunk as if they were a NUL-terminated string. At
12480       least one such bug seems to be present in all currently used
12481       versions of Tor, and would allow an attacker to remotely crash
12482       most Tor instances, especially those compiled with extra compiler
12483       hardening. With this defense in place, such bugs can't crash Tor,
12484       though we should still fix them as they occur. Closes ticket
12485       20384 (TROVE-2016-10-001).
12487   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
12488     - Avoid a difficult-to-trigger heap corruption attack when extending
12489       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
12490       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
12491       Reported by Guido Vranken.
12493   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
12494     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
12495       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
12497   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
12498     - If OpenSSL fails to generate an RSA key, do not retain a dangling
12499       pointer to the previous (uninitialized) key value. The impact here
12500       should be limited to a difficult-to-trigger crash, if OpenSSL is
12501       running an engine that makes key generation failures possible, or
12502       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
12503       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
12504       Baishakhi Ray.
12506   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
12507     - Fix an integer underflow bug when comparing malformed Tor
12508       versions. This bug could crash Tor when built with
12509       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
12510       0.2.9.8, which were built with -ftrapv by default. In other cases
12511       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
12512       on 0.0.8pre1. Found by OSS-Fuzz.
12514   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
12515     - Make memwipe() do nothing when passed a NULL pointer or buffer of
12516       zero size. Check size argument to memwipe() for underflow. Fixes
12517       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
12518       patch by "teor".
12520   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
12521     - Make Tor survive errors involving connections without a
12522       corresponding event object. Previously we'd fail with an
12523       assertion; now we produce a log message. Related to bug 16248.
12525   o Minor features (geoip):
12526     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
12527       Country database.
12530 Changes in version 0.2.6.11 - 2017-03-03
12531   Tor 0.2.6.11 backports a number of security fixes from later Tor
12532   releases.  Anybody running Tor 0.2.6.10 or earlier should upgrade to
12533   this release, if for some reason they cannot upgrade to a later
12534   release series.
12536   Note that support for Tor 0.2.6.x is ending this year: we will not issue
12537   any fixes for the Tor 0.2.6.x series after 1 August 2017.  If you need
12538   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
12540   o Directory authority changes (backport from 0.2.8.5-rc):
12541     - Urras is no longer a directory authority. Closes ticket 19271.
12543   o Directory authority changes (backport from 0.2.9.2-alpha):
12544     - The "Tonga" bridge authority has been retired; the new bridge
12545       authority is "Bifroest". Closes tickets 19728 and 19690.
12547   o Directory authority key updates (backport from 0.2.8.1-alpha):
12548     - Update the V3 identity key for the dannenberg directory authority:
12549       it was changed on 18 November 2015. Closes task 17906. Patch
12550       by "teor".
12552   o Major features (security fixes, backport from 0.2.9.4-alpha):
12553     - Prevent a class of security bugs caused by treating the contents
12554       of a buffer chunk as if they were a NUL-terminated string. At
12555       least one such bug seems to be present in all currently used
12556       versions of Tor, and would allow an attacker to remotely crash
12557       most Tor instances, especially those compiled with extra compiler
12558       hardening. With this defense in place, such bugs can't crash Tor,
12559       though we should still fix them as they occur. Closes ticket
12560       20384 (TROVE-2016-10-001).
12562   o Major bugfixes (parsing, security, backport from 0.2.9.8):
12563     - Fix a bug in parsing that could cause clients to read a single
12564       byte past the end of an allocated region. This bug could be used
12565       to cause hardened clients (built with --enable-expensive-hardening)
12566       to crash if they tried to visit a hostile hidden service. Non-
12567       hardened clients are only affected depending on the details of
12568       their platform's memory allocator. Fixes bug 21018; bugfix on
12569       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
12570       2016-12-002 and as CVE-2016-1254.
12572   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
12573     - Stop a crash that could occur when a client running with DNSPort
12574       received a query with multiple address types, and the first
12575       address type was not supported. Found and fixed by Scott Dial.
12576       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
12578   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
12579     - Fix an error that could cause us to read 4 bytes before the
12580       beginning of an openssl string. This bug could be used to cause
12581       Tor to crash on systems with unusual malloc implementations, or
12582       systems with unusual hardening installed. Fixes bug 17404; bugfix
12583       on 0.2.3.6-alpha.
12585   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
12586     - Avoid a difficult-to-trigger heap corruption attack when extending
12587       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
12588       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
12589       Reported by Guido Vranken.
12591   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
12592     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
12593       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
12595   o Major bugfixes (guard selection, backport from 0.2.7.6):
12596     - Actually look at the Guard flag when selecting a new directory
12597       guard. When we implemented the directory guard design, we
12598       accidentally started treating all relays as if they have the Guard
12599       flag during guard selection, leading to weaker anonymity and worse
12600       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
12601       by Mohsen Imani.
12603   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
12604     - If OpenSSL fails to generate an RSA key, do not retain a dangling
12605       pointer to the previous (uninitialized) key value. The impact here
12606       should be limited to a difficult-to-trigger crash, if OpenSSL is
12607       running an engine that makes key generation failures possible, or
12608       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
12609       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
12610       Baishakhi Ray.
12612   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
12613     - Fix an integer underflow bug when comparing malformed Tor
12614       versions. This bug could crash Tor when built with
12615       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
12616       0.2.9.8, which were built with -ftrapv by default. In other cases
12617       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
12618       on 0.0.8pre1. Found by OSS-Fuzz.
12620   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
12621     - Make memwipe() do nothing when passed a NULL pointer or buffer of
12622       zero size. Check size argument to memwipe() for underflow. Fixes
12623       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
12624       patch by "teor".
12626   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
12627     - Make Tor survive errors involving connections without a
12628       corresponding event object. Previously we'd fail with an
12629       assertion; now we produce a log message. Related to bug 16248.
12631   o Minor features (geoip):
12632     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
12633       Country database.
12635   o Minor bugfixes (compilation, backport from 0.2.7.6):
12636     - Fix a compilation warning with Clang 3.6: Do not check the
12637       presence of an address which can never be NULL. Fixes bug 17781.
12640 Changes in version 0.2.5.13 - 2017-03-03
12641   Tor 0.2.5.13 backports a number of security fixes from later Tor
12642   releases.  Anybody running Tor 0.2.5.13 or earlier should upgrade to
12643   this release, if for some reason they cannot upgrade to a later
12644   release series.
12646   Note that support for Tor 0.2.5.x is ending next year: we will not issue
12647   any fixes for the Tor 0.2.5.x series after 1 May 2018.  If you need
12648   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
12650   o Directory authority changes (backport from 0.2.8.5-rc):
12651     - Urras is no longer a directory authority. Closes ticket 19271.
12653   o Directory authority changes (backport from 0.2.9.2-alpha):
12654     - The "Tonga" bridge authority has been retired; the new bridge
12655       authority is "Bifroest". Closes tickets 19728 and 19690.
12657   o Directory authority key updates (backport from 0.2.8.1-alpha):
12658     - Update the V3 identity key for the dannenberg directory authority:
12659       it was changed on 18 November 2015. Closes task 17906. Patch
12660       by "teor".
12662   o Major features (security fixes, backport from 0.2.9.4-alpha):
12663     - Prevent a class of security bugs caused by treating the contents
12664       of a buffer chunk as if they were a NUL-terminated string. At
12665       least one such bug seems to be present in all currently used
12666       versions of Tor, and would allow an attacker to remotely crash
12667       most Tor instances, especially those compiled with extra compiler
12668       hardening. With this defense in place, such bugs can't crash Tor,
12669       though we should still fix them as they occur. Closes ticket
12670       20384 (TROVE-2016-10-001).
12672   o Major bugfixes (parsing, security, backport from 0.2.9.8):
12673     - Fix a bug in parsing that could cause clients to read a single
12674       byte past the end of an allocated region. This bug could be used
12675       to cause hardened clients (built with --enable-expensive-hardening)
12676       to crash if they tried to visit a hostile hidden service. Non-
12677       hardened clients are only affected depending on the details of
12678       their platform's memory allocator. Fixes bug 21018; bugfix on
12679       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
12680       2016-12-002 and as CVE-2016-1254.
12682   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
12683     - Stop a crash that could occur when a client running with DNSPort
12684       received a query with multiple address types, and the first
12685       address type was not supported. Found and fixed by Scott Dial.
12686       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
12688   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
12689     - Fix an error that could cause us to read 4 bytes before the
12690       beginning of an openssl string. This bug could be used to cause
12691       Tor to crash on systems with unusual malloc implementations, or
12692       systems with unusual hardening installed. Fixes bug 17404; bugfix
12693       on 0.2.3.6-alpha.
12695   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
12696     - Avoid a difficult-to-trigger heap corruption attack when extending
12697       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
12698       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
12699       Reported by Guido Vranken.
12701   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
12702     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
12703       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
12705   o Major bugfixes (guard selection, backport from 0.2.7.6):
12706     - Actually look at the Guard flag when selecting a new directory
12707       guard. When we implemented the directory guard design, we
12708       accidentally started treating all relays as if they have the Guard
12709       flag during guard selection, leading to weaker anonymity and worse
12710       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
12711       by Mohsen Imani.
12713   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
12714     - If OpenSSL fails to generate an RSA key, do not retain a dangling
12715       pointer to the previous (uninitialized) key value. The impact here
12716       should be limited to a difficult-to-trigger crash, if OpenSSL is
12717       running an engine that makes key generation failures possible, or
12718       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
12719       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
12720       Baishakhi Ray.
12722   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
12723     - Fix an integer underflow bug when comparing malformed Tor
12724       versions. This bug could crash Tor when built with
12725       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
12726       0.2.9.8, which were built with -ftrapv by default. In other cases
12727       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
12728       on 0.0.8pre1. Found by OSS-Fuzz.
12730   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
12731     - Make memwipe() do nothing when passed a NULL pointer or buffer of
12732       zero size. Check size argument to memwipe() for underflow. Fixes
12733       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
12734       patch by "teor".
12736   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
12737     - Make Tor survive errors involving connections without a
12738       corresponding event object. Previously we'd fail with an
12739       assertion; now we produce a log message. Related to bug 16248.
12741   o Minor features (geoip):
12742     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
12743       Country database.
12745   o Minor bugfixes (compilation, backport from 0.2.7.6):
12746     - Fix a compilation warning with Clang 3.6: Do not check the
12747       presence of an address which can never be NULL. Fixes bug 17781.
12749   o Minor bugfixes (crypto error-handling, backport from 0.2.7.2-alpha):
12750     - Check for failures from crypto_early_init, and refuse to continue.
12751       A previous typo meant that we could keep going with an
12752       uninitialized crypto library, and would have OpenSSL initialize
12753       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
12754       when implementing ticket 4900. Patch by "teor".
12756   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
12757     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
12758       a client authorized hidden service. Fixes bug 15823; bugfix
12759       on 0.2.1.6-alpha.
12762 Changes in version 0.2.4.28 - 2017-03-03
12763   Tor 0.2.4.28 backports a number of security fixes from later Tor
12764   releases.  Anybody running Tor 0.2.4.27 or earlier should upgrade to
12765   this release, if for some reason they cannot upgrade to a later
12766   release series.
12768   Note that support for Tor 0.2.4.x is ending soon: we will not issue
12769   any fixes for the Tor 0.2.4.x series after 1 August 2017.  If you need
12770   a Tor release series with long-term support, we recommend Tor 0.2.9.x.
12772   o Directory authority changes (backport from 0.2.8.5-rc):
12773     - Urras is no longer a directory authority. Closes ticket 19271.
12775   o Directory authority changes (backport from 0.2.9.2-alpha):
12776     - The "Tonga" bridge authority has been retired; the new bridge
12777       authority is "Bifroest". Closes tickets 19728 and 19690.
12779   o Directory authority key updates (backport from 0.2.8.1-alpha):
12780     - Update the V3 identity key for the dannenberg directory authority:
12781       it was changed on 18 November 2015. Closes task 17906. Patch
12782       by "teor".
12784   o Major features (security fixes, backport from 0.2.9.4-alpha):
12785     - Prevent a class of security bugs caused by treating the contents
12786       of a buffer chunk as if they were a NUL-terminated string. At
12787       least one such bug seems to be present in all currently used
12788       versions of Tor, and would allow an attacker to remotely crash
12789       most Tor instances, especially those compiled with extra compiler
12790       hardening. With this defense in place, such bugs can't crash Tor,
12791       though we should still fix them as they occur. Closes ticket
12792       20384 (TROVE-2016-10-001).
12794   o Major bugfixes (parsing, security, backport from 0.2.9.8):
12795     - Fix a bug in parsing that could cause clients to read a single
12796       byte past the end of an allocated region. This bug could be used
12797       to cause hardened clients (built with --enable-expensive-hardening)
12798       to crash if they tried to visit a hostile hidden service. Non-
12799       hardened clients are only affected depending on the details of
12800       their platform's memory allocator. Fixes bug 21018; bugfix on
12801       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
12802       2016-12-002 and as CVE-2016-1254.
12804   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
12805     - Fix an error that could cause us to read 4 bytes before the
12806       beginning of an openssl string. This bug could be used to cause
12807       Tor to crash on systems with unusual malloc implementations, or
12808       systems with unusual hardening installed. Fixes bug 17404; bugfix
12809       on 0.2.3.6-alpha.
12811   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
12812     - Avoid a difficult-to-trigger heap corruption attack when extending
12813       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
12814       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
12815       Reported by Guido Vranken.
12817   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
12818     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
12819       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
12821   o Major bugfixes (guard selection, backport from 0.2.7.6):
12822     - Actually look at the Guard flag when selecting a new directory
12823       guard. When we implemented the directory guard design, we
12824       accidentally started treating all relays as if they have the Guard
12825       flag during guard selection, leading to weaker anonymity and worse
12826       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
12827       by Mohsen Imani.
12829   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
12830     - If OpenSSL fails to generate an RSA key, do not retain a dangling
12831       pointer to the previous (uninitialized) key value. The impact here
12832       should be limited to a difficult-to-trigger crash, if OpenSSL is
12833       running an engine that makes key generation failures possible, or
12834       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
12835       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
12836       Baishakhi Ray.
12838   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
12839     - Fix an integer underflow bug when comparing malformed Tor
12840       versions. This bug could crash Tor when built with
12841       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
12842       0.2.9.8, which were built with -ftrapv by default. In other cases
12843       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
12844       on 0.0.8pre1. Found by OSS-Fuzz.
12846   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
12847     - Make memwipe() do nothing when passed a NULL pointer or buffer of
12848       zero size. Check size argument to memwipe() for underflow. Fixes
12849       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
12850       patch by "teor".
12852   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
12853     - Make Tor survive errors involving connections without a
12854       corresponding event object. Previously we'd fail with an
12855       assertion; now we produce a log message. Related to bug 16248.
12857   o Minor features (DoS-resistance, backport from 0.2.7.1-alpha):
12858     - Make it harder for attackers to overload hidden services with
12859       introductions, by blocking multiple introduction requests on the
12860       same circuit. Resolves ticket 15515.
12862   o Minor features (geoip):
12863     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
12864       Country database.
12866   o Minor bugfixes (compilation, backport from 0.2.7.6):
12867     - Fix a compilation warning with Clang 3.6: Do not check the
12868       presence of an address which can never be NULL. Fixes bug 17781.
12870   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
12871     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
12872       a client authorized hidden service. Fixes bug 15823; bugfix
12873       on 0.2.1.6-alpha.
12876 Changes in version 0.3.0.4-rc - 2017-03-01
12877   Tor 0.3.0.4-rc fixes some remaining bugs, large and small, in the
12878   0.3.0 release series, and introduces a few reliability features to
12879   keep them from coming back.
12881   This is the first release candidate in the Tor 0.3.0 series. If we
12882   find no new bugs or regressions here, the first stable 0.3.0 release
12883   will be nearly identical to it.
12885   o Major bugfixes (bridges):
12886     - When the same bridge is configured multiple times with the same
12887       identity, but at different address:port combinations, treat those
12888       bridge instances as separate guards. This fix restores the ability
12889       of clients to configure the same bridge with multiple pluggable
12890       transports. Fixes bug 21027; bugfix on 0.3.0.1-alpha.
12892   o Major bugfixes (hidden service directory v3):
12893     - Stop crashing on a failed v3 hidden service descriptor lookup
12894       failure. Fixes bug 21471; bugfixes on 0.3.0.1-alpha.
12896   o Major bugfixes (parsing):
12897     - When parsing a malformed content-length field from an HTTP
12898       message, do not read off the end of the buffer. This bug was a
12899       potential remote denial-of-service attack against Tor clients and
12900       relays. A workaround was released in October 2016, to prevent this
12901       bug from crashing Tor. This is a fix for the underlying issue,
12902       which should no longer matter (if you applied the earlier patch).
12903       Fixes bug 20894; bugfix on 0.2.0.16-alpha. Bug found by fuzzing
12904       using AFL (http://lcamtuf.coredump.cx/afl/).
12905     - Fix an integer underflow bug when comparing malformed Tor
12906       versions. This bug could crash Tor when built with
12907       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
12908       0.2.9.8, which were built with -ftrapv by default. In other cases
12909       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
12910       on 0.0.8pre1. Found by OSS-Fuzz.
12912   o Minor feature (protocol versioning):
12913     - Add new protocol version for proposal 224. HSIntro now advertises
12914       version "3-4" and HSDir version "1-2". Fixes ticket 20656.
12916   o Minor features (directory authorities):
12917     - Directory authorities now reject descriptors that claim to be
12918       malformed versions of Tor. Helps prevent exploitation of
12919       bug 21278.
12920     - Reject version numbers with components that exceed INT32_MAX.
12921       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
12922       Fixes bug 21450; bugfix on 0.0.8pre1.
12923     - Directory authorities now reject relays running versions
12924       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
12925       suffer from bug 20499 and don't keep their consensus cache
12926       up-to-date. Resolves ticket 20509.
12928   o Minor features (geoip):
12929     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
12930       Country database.
12932   o Minor features (reliability, crash):
12933     - Try better to detect problems in buffers where they might grow (or
12934       think they have grown) over 2 GB in size. Diagnostic for
12935       bug 21369.
12937   o Minor features (testing):
12938     - During 'make test-network-all', if tor logs any warnings, ask
12939       chutney to output them. Requires a recent version of chutney with
12940       the 21572 patch. Implements 21570.
12942   o Minor bugfixes (certificate expiration time):
12943     - Avoid using link certificates that don't become valid till some
12944       time in the future. Fixes bug 21420; bugfix on 0.2.4.11-alpha
12946   o Minor bugfixes (code correctness):
12947     - Repair a couple of (unreachable or harmless) cases of the risky
12948       comparison-by-subtraction pattern that caused bug 21278.
12949     - Remove a redundant check for the UseEntryGuards option from the
12950       options_transition_affects_guards() function. Fixes bug 21492;
12951       bugfix on 0.3.0.1-alpha.
12953   o Minor bugfixes (directory mirrors):
12954     - Allow relays to use directory mirrors without a DirPort: these
12955       relays need to be contacted over their ORPorts using a begindir
12956       connection. Fixes one case of bug 20711; bugfix on 0.2.8.2-alpha.
12957     - Clarify the message logged when a remote relay is unexpectedly
12958       missing an ORPort or DirPort: users were confusing this with a
12959       local port. Fixes another case of bug 20711; bugfix
12960       on 0.2.8.2-alpha.
12962   o Minor bugfixes (guards):
12963     - Don't warn about a missing guard state on timeout-measurement
12964       circuits: they aren't supposed to be using guards. Fixes an
12965       instance of bug 21007; bugfix on 0.3.0.1-alpha.
12966     - Silence a BUG() warning when attempting to use a guard whose
12967       descriptor we don't know, and make this scenario less likely to
12968       happen. Fixes bug 21415; bugfix on 0.3.0.1-alpha.
12970   o Minor bugfixes (hidden service):
12971     - Pass correct buffer length when encoding legacy ESTABLISH_INTRO
12972       cells. Previously, we were using sizeof() on a pointer, instead of
12973       the real destination buffer. Fortunately, that value was only used
12974       to double-check that there was enough room--which was already
12975       enforced elsewhere. Fixes bug 21553; bugfix on 0.3.0.1-alpha.
12977   o Minor bugfixes (testing):
12978     - Fix Raspbian build issues related to missing socket errno in
12979       test_util.c. Fixes bug 21116; bugfix on 0.2.8.2. Patch
12980       by "hein".
12981     - Rename "make fuzz" to "make test-fuzz-corpora", since it doesn't
12982       actually fuzz anything. Fixes bug 21447; bugfix on 0.3.0.3-alpha.
12983     - Use bash in src/test/test-network.sh. This ensures we reliably
12984       call chutney's newer tools/test-network.sh when available. Fixes
12985       bug 21562; bugfix on 0.2.9.1-alpha.
12987   o Documentation:
12988     - Small fixes to the fuzzing documentation. Closes ticket 21472.
12991 Changes in version 0.2.9.10 - 2017-03-01
12992   Tor 0.2.9.10 backports a security fix from later Tor release.  It also
12993   includes fixes for some major issues affecting directory authorities,
12994   LibreSSL compatibility, and IPv6 correctness.
12996   The Tor 0.2.9.x release series is now marked as a long-term-support
12997   series.  We intend to backport security fixes to 0.2.9.x until at
12998   least January of 2020.
13000   o Major bugfixes (directory authority, 0.3.0.3-alpha):
13001     - During voting, when marking a relay as a probable sybil, do not
13002       clear its BadExit flag: sybils can still be bad in other ways
13003       too. (We still clear the other flags.) Fixes bug 21108; bugfix
13004       on 0.2.0.13-alpha.
13006   o Major bugfixes (IPv6 Exits, backport from 0.3.0.3-alpha):
13007     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
13008       any IPv6 addresses. Instead, only reject a port over IPv6 if the
13009       exit policy rejects that port on more than an IPv6 /16 of
13010       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
13011       which rejected a relay's own IPv6 address by default. Fixes bug
13012       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
13014   o Major bugfixes (parsing, also in 0.3.0.4-rc):
13015     - Fix an integer underflow bug when comparing malformed Tor
13016       versions. This bug could crash Tor when built with
13017       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
13018       0.2.9.8, which were built with -ftrapv by default. In other cases
13019       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
13020       on 0.0.8pre1. Found by OSS-Fuzz.
13022   o Minor features (directory authorities, also in 0.3.0.4-rc):
13023     - Directory authorities now reject descriptors that claim to be
13024       malformed versions of Tor. Helps prevent exploitation of
13025       bug 21278.
13026     - Reject version numbers with components that exceed INT32_MAX.
13027       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
13028       Fixes bug 21450; bugfix on 0.0.8pre1.
13030   o Minor features (geoip):
13031     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
13032       Country database.
13034   o Minor features (portability, compilation, backport from 0.3.0.3-alpha):
13035     - Autoconf now checks to determine if OpenSSL structures are opaque,
13036       instead of explicitly checking for OpenSSL version numbers. Part
13037       of ticket 21359.
13038     - Support building with recent LibreSSL code that uses opaque
13039       structures. Closes ticket 21359.
13041   o Minor bugfixes (code correctness, also in 0.3.0.4-rc):
13042     - Repair a couple of (unreachable or harmless) cases of the risky
13043       comparison-by-subtraction pattern that caused bug 21278.
13045   o Minor bugfixes (tor-resolve, backport from 0.3.0.3-alpha):
13046     - The tor-resolve command line tool now rejects hostnames over 255
13047       characters in length. Previously, it would silently truncate them,
13048       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
13049       Patch by "junglefowl".
13052 Changes in version 0.3.0.3-alpha - 2017-02-03
13053   Tor 0.3.0.3-alpha fixes a few significant bugs introduced over the
13054   0.3.0.x development series, including some that could cause
13055   authorities to behave badly. There is also a fix for a longstanding
13056   bug that could prevent IPv6 exits from working. Tor 0.3.0.3-alpha also
13057   includes some smaller features and bugfixes.
13059   The Tor 0.3.0.x release series is now in patch-freeze: no additional
13060   features will be considered for inclusion in 0.3.0.x. We suspect that
13061   some bugs will probably remain, however, and we encourage people to
13062   test this release.
13064   o Major bugfixes (directory authority):
13065     - During voting, when marking a relay as a probable sybil, do not
13066       clear its BadExit flag: sybils can still be bad in other ways
13067       too. (We still clear the other flags.) Fixes bug 21108; bugfix
13068       on 0.2.0.13-alpha.
13069     - When deciding whether we have just found a router to be reachable,
13070       do not penalize it for not having performed an Ed25519 link
13071       handshake if it does not claim to support an Ed25519 handshake.
13072       Previously, we would treat such relays as non-running. Fixes bug
13073       21107; bugfix on 0.3.0.1-alpha.
13075   o Major bugfixes (entry guards):
13076     - Stop trying to build circuits through entry guards for which we
13077       have no descriptor. Also, stop crashing in the case that we *do*
13078       accidentally try to build a circuit in such a state. Fixes bug
13079       21242; bugfix on 0.3.0.1-alpha.
13081   o Major bugfixes (IPv6 Exits):
13082     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
13083       any IPv6 addresses. Instead, only reject a port over IPv6 if the
13084       exit policy rejects that port on more than an IPv6 /16 of
13085       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
13086       which rejected a relay's own IPv6 address by default. Fixes bug
13087       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
13089   o Minor feature (client):
13090     - Enable IPv6 traffic on the SocksPort by default. To disable this,
13091       a user will have to specify "NoIPv6Traffic". Closes ticket 21269.
13093   o Minor feature (fallback scripts):
13094     - Add a check_existing mode to updateFallbackDirs.py, which checks
13095       if fallbacks in the hard-coded list are working. Closes ticket
13096       20174. Patch by haxxpop.
13098   o Minor features (ciphersuite selection):
13099     - Clients now advertise a list of ciphersuites closer to the ones
13100       preferred by Firefox. Closes part of ticket 15426.
13101     - Allow relays to accept a wider range of ciphersuites, including
13102       chacha20-poly1305 and AES-CCM. Closes the other part of 15426.
13104   o Minor features (controller, configuration):
13105     - Each of the *Port options, such as SocksPort, ORPort, ControlPort,
13106       and so on, now comes with a __*Port variant that will not be saved
13107       to the torrc file by the controller's SAVECONF command. This
13108       change allows TorBrowser to set up a single-use domain socket for
13109       each time it launches Tor. Closes ticket 20956.
13110     - The GETCONF command can now query options that may only be
13111       meaningful in context-sensitive lists. This allows the controller
13112       to query the mixed SocksPort/__SocksPort style options introduced
13113       in feature 20956. Implements ticket 21300.
13115   o Minor features (portability, compilation):
13116     - Autoconf now checks to determine if OpenSSL structures are opaque,
13117       instead of explicitly checking for OpenSSL version numbers. Part
13118       of ticket 21359.
13119     - Support building with recent LibreSSL code that uses opaque
13120       structures. Closes ticket 21359.
13122   o Minor features (relay):
13123     - We now allow separation of exit and relay traffic to different
13124       source IP addresses, using the OutboundBindAddressExit and
13125       OutboundBindAddressOR options respectively. Closes ticket 17975.
13126       Written by Michael Sonntag.
13128   o Minor bugfix (logging):
13129     - Don't recommend the use of Tor2web in non-anonymous mode.
13130       Recommending Tor2web is a bad idea because the client loses all
13131       anonymity. Tor2web should only be used in specific cases by users
13132       who *know* and understand the issues. Fixes bug 21294; bugfix
13133       on 0.2.9.3-alpha.
13135   o Minor bugfixes (client):
13136     - Always recover from failures in extend_info_from_node(), in an
13137       attempt to prevent any recurrence of bug 21242. Fixes bug 21372;
13138       bugfix on 0.2.3.1-alpha.
13140   o Minor bugfixes (client, entry guards):
13141     - Fix a bug warning (with backtrace) when we fail a channel that
13142       circuits to fallback directories on it. Fixes bug 21128; bugfix
13143       on 0.3.0.1-alpha.
13144     - Fix a spurious bug warning (with backtrace) when removing an
13145       expired entry guard. Fixes bug 21129; bugfix on 0.3.0.1-alpha.
13146     - Fix a bug of the new guard algorithm where tor could stall for up
13147       to 10 minutes before retrying a guard after a long period of no
13148       network. Fixes bug 21052; bugfix on 0.3.0.1-alpha.
13149     - Do not try to build circuits until we have descriptors for our
13150       primary entry guards. Related to fix for bug 21242.
13152   o Minor bugfixes (configure, autoconf):
13153     - Rename the configure option --enable-expensive-hardening to
13154       --enable-fragile-hardening. Expensive hardening makes the tor
13155       daemon abort when some kinds of issues are detected. Thus, it
13156       makes tor more at risk of remote crashes but safer against RCE or
13157       heartbleed bug category. We now try to explain this issue in a
13158       message from the configure script. Fixes bug 21290; bugfix
13159       on 0.2.5.4-alpha.
13161   o Minor bugfixes (controller):
13162     - Restore the (deprecated) DROPGUARDS controller command. Fixes bug
13163       20824; bugfix on 0.3.0.1-alpha.
13165   o Minor bugfixes (hidden service):
13166     - Clean up the code for expiring intro points with no associated
13167       circuits. It was causing, rarely, a service with some expiring
13168       introduction points to not open enough additional introduction
13169       points. Fixes part of bug 21302; bugfix on 0.2.7.2-alpha.
13170     - Stop setting the torrc option HiddenServiceStatistics to "0" just
13171       because we're not a bridge or relay. Instead, we preserve whatever
13172       value the user set (or didn't set). Fixes bug 21150; bugfix
13173       on 0.2.6.2-alpha.
13174     - Resolve two possible underflows which could lead to creating and
13175       closing a lot of introduction point circuits in a non-stop loop.
13176       Fixes bug 21302; bugfix on 0.2.7.2-alpha.
13178   o Minor bugfixes (portability):
13179     - Use "OpenBSD" compiler macro instead of "OPENBSD" or "__OpenBSD__".
13180       It is supported by OpenBSD itself, and also by most OpenBSD
13181       variants (such as Bitrig). Fixes bug 20980; bugfix
13182       on 0.1.2.1-alpha.
13183     - When mapping a file of length greater than SIZE_MAX, do not
13184       silently truncate its contents. This issue could occur on 32 bit
13185       systems with large file support and files which are larger than 4
13186       GB. Fixes bug 21134; bugfix on 0.3.0.1-alpha.
13188   o Minor bugfixes (tor-resolve):
13189     - The tor-resolve command line tool now rejects hostnames over 255
13190       characters in length. Previously, it would silently truncate them,
13191       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
13192       Patch by "junglefowl".
13194   o Minor bugfixes (Windows services):
13195     - Be sure to initialize the monotonic time subsystem before using
13196       it, even when running as an NT service. Fixes bug 21356; bugfix
13197       on 0.2.9.1-alpha.
13200 Changes in version 0.3.0.2-alpha - 2017-01-23
13201   Tor 0.3.0.2-alpha fixes a denial-of-service bug where an attacker could
13202   cause relays and clients to crash, even if they were not built with
13203   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
13204   versions, and also affects 0.3.0.1-alpha: all relays running an affected
13205   version should upgrade.
13207   Tor 0.3.0.2-alpha also improves how exit relays and clients handle DNS
13208   time-to-live values, makes directory authorities enforce the 1-to-1
13209   mapping of relay RSA identity keys to ED25519 identity keys, fixes a
13210   client-side onion service reachability bug, does better at selecting
13211   the set of fallback directories, and more.
13213   o Major bugfixes (security, also in 0.2.9.9):
13214     - Downgrade the "-ftrapv" option from "always on" to "only on when
13215       --enable-expensive-hardening is provided."  This hardening option, like
13216       others, can turn survivable bugs into crashes--and having it on by
13217       default made a (relatively harmless) integer overflow bug into a
13218       denial-of-service bug. Fixes bug 21278 (TROVE-2017-001); bugfix on
13219       0.2.9.1-alpha.
13221   o Major features (security):
13222     - Change the algorithm used to decide DNS TTLs on client and server
13223       side, to better resist DNS-based correlation attacks like the
13224       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
13225       Feamster. Now relays only return one of two possible DNS TTL
13226       values, and clients are willing to believe DNS TTL values up to 3
13227       hours long. Closes ticket 19769.
13229   o Major features (directory authority, security):
13230     - The default for AuthDirPinKeys is now 1: directory authorities
13231       will reject relays where the RSA identity key matches a previously
13232       seen value, but the Ed25519 key has changed. Closes ticket 18319.
13234   o Major bugfixes (client, guard, crash):
13235     - In circuit_get_global_origin_list(), return the actual list of
13236       origin circuits. The previous version of this code returned the
13237       list of all the circuits, and could have caused strange bugs,
13238       including possible crashes. Fixes bug 21118; bugfix
13239       on 0.3.0.1-alpha.
13241   o Major bugfixes (client, onion service, also in 0.2.9.9):
13242     - Fix a client-side onion service reachability bug, where multiple
13243       socks requests to an onion service (or a single slow request)
13244       could cause us to mistakenly mark some of the service's
13245       introduction points as failed, and we cache that failure so
13246       eventually we run out and can't reach the service. Also resolves a
13247       mysterious "Remote server sent bogus reason code 65021" log
13248       warning. The bug was introduced in ticket 17218, where we tried to
13249       remember the circuit end reason as a uint16_t, which mangled
13250       negative values. Partially fixes bug 21056 and fixes bug 20307;
13251       bugfix on 0.2.8.1-alpha.
13253   o Major bugfixes (DNS):
13254     - Fix a bug that prevented exit nodes from caching DNS records for
13255       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
13257   o Minor features (controller):
13258     - Add "GETINFO sr/current" and "GETINFO sr/previous" keys, to expose
13259       shared-random values to the controller. Closes ticket 19925.
13261   o Minor features (entry guards):
13262     - Add UseEntryGuards to TEST_OPTIONS_DEFAULT_VALUES in order to not
13263       break regression tests.
13264     - Require UseEntryGuards when UseBridges is set, in order to make
13265       sure bridges aren't bypassed. Resolves ticket 20502.
13267   o Minor features (fallback directories):
13268     - Select 200 fallback directories for each release. Closes
13269       ticket 20881.
13270     - Allow 3 fallback relays per operator, which is safe now that we
13271       are choosing 200 fallback relays. Closes ticket 20912.
13272     - Exclude relays affected by bug 20499 from the fallback list.
13273       Exclude relays from the fallback list if they are running versions
13274       known to be affected by bug 20499, or if in our tests they deliver
13275       a stale consensus (i.e. one that expired more than 24 hours ago).
13276       Closes ticket 20539.
13277     - Reduce the minimum fallback bandwidth to 1 MByte/s. Part of
13278       ticket 18828.
13279     - Require fallback directories to have the same address and port for
13280       7 days (now that we have enough relays with this stability).
13281       Relays whose OnionOO stability timer is reset on restart by bug
13282       18050 should upgrade to Tor 0.2.8.7 or later, which has a fix for
13283       this issue. Closes ticket 20880; maintains short-term fix
13284       in 0.2.8.2-alpha.
13285     - Require fallbacks to have flags for 90% of the time (weighted
13286       decaying average), rather than 95%. This allows at least 73% of
13287       clients to bootstrap in the first 5 seconds without contacting an
13288       authority. Part of ticket 18828.
13289     - Annotate updateFallbackDirs.py with the bandwidth and consensus
13290       weight for each candidate fallback. Closes ticket 20878.
13291     - Make it easier to change the output sort order of fallbacks.
13292       Closes ticket 20822.
13293     - Display the relay fingerprint when downloading consensuses from
13294       fallbacks. Closes ticket 20908.
13296   o Minor features (geoip, also in 0.2.9.9):
13297     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
13298       Country database.
13300   o Minor features (next-gen onion service directories):
13301     - Remove the "EnableOnionServicesV3" consensus parameter that we
13302       introduced in 0.3.0.1-alpha: relays are now always willing to act
13303       as v3 onion service directories. Resolves ticket 19899.
13305   o Minor features (linting):
13306     - Enhance the changes file linter to warn on Tor versions that are
13307       prefixed with "tor-". Closes ticket 21096.
13309   o Minor features (logging):
13310     - In several places, describe unset ed25519 keys as "<unset>",
13311       rather than the scary "AAAAAAAA...AAA". Closes ticket 21037.
13313   o Minor bugfix (control protocol):
13314     - The reply to a "GETINFO config/names" request via the control
13315       protocol now spells the type "Dependent" correctly. This is a
13316       breaking change in the control protocol. (The field seems to be
13317       ignored by the most common known controllers.) Fixes bug 18146;
13318       bugfix on 0.1.1.4-alpha.
13320   o Minor bugfixes (bug resilience):
13321     - Fix an unreachable size_t overflow in base64_decode(). Fixes bug
13322       19222; bugfix on 0.2.0.9-alpha. Found by Guido Vranken; fixed by
13323       Hans Jerry Illikainen.
13325   o Minor bugfixes (build):
13326     - Replace obsolete Autoconf macros with their modern equivalent and
13327       prevent similar issues in the future. Fixes bug 20990; bugfix
13328       on 0.1.0.1-rc.
13330   o Minor bugfixes (client, guards):
13331     - Fix bug where Tor would think that there are circuits waiting for
13332       better guards even though those circuits have been freed. Fixes
13333       bug 21142; bugfix on 0.3.0.1-alpha.
13335   o Minor bugfixes (config):
13336     - Don't assert on startup when trying to get the options list and
13337       LearnCircuitBuildTimeout is set to 0: we are currently parsing the
13338       options so of course they aren't ready yet. Fixes bug 21062;
13339       bugfix on 0.2.9.3-alpha.
13341   o Minor bugfixes (controller):
13342     - Make the GETINFO interface for inquiring about entry guards
13343       support the new guards backend. Fixes bug 20823; bugfix
13344       on 0.3.0.1-alpha.
13346   o Minor bugfixes (dead code):
13347     - Remove a redundant check for PidFile changes at runtime in
13348       options_transition_allowed(): this check is already performed
13349       regardless of whether the sandbox is active. Fixes bug 21123;
13350       bugfix on 0.2.5.4-alpha.
13352   o Minor bugfixes (documentation):
13353     - Update the tor manual page to document every option that can not
13354       be changed while tor is running. Fixes bug 21122.
13356   o Minor bugfixes (fallback directories):
13357     - Stop failing when a relay has no uptime data in
13358       updateFallbackDirs.py. Fixes bug 20945; bugfix on 0.2.8.1-alpha.
13359     - Avoid checking fallback candidates' DirPorts if they are down in
13360       OnionOO. When a relay operator has multiple relays, this
13361       prioritizes relays that are up over relays that are down. Fixes
13362       bug 20926; bugfix on 0.2.8.3-alpha.
13363     - Stop failing when OUTPUT_COMMENTS is True in updateFallbackDirs.py.
13364       Fixes bug 20877; bugfix on 0.2.8.3-alpha.
13366   o Minor bugfixes (guards, bootstrapping):
13367     - When connecting to a directory guard during bootstrap, do not mark
13368       the guard as successful until we receive a good-looking directory
13369       response from it. Fixes bug 20974; bugfix on 0.3.0.1-alpha.
13371   o Minor bugfixes (onion services):
13372     - Fix the config reload pruning of old vs new services so it
13373       actually works when both ephemeral and non-ephemeral services are
13374       configured. Fixes bug 21054; bugfix on 0.3.0.1-alpha.
13375     - Allow the number of introduction points to be as low as 0, rather
13376       than as low as 3. Fixes bug 21033; bugfix on 0.2.7.2-alpha.
13378   o Minor bugfixes (IPv6):
13379     - Make IPv6-using clients try harder to find an IPv6 directory
13380       server. Fixes bug 20999; bugfix on 0.2.8.2-alpha.
13381     - When IPv6 addresses have not been downloaded yet (microdesc
13382       consensus documents don't list relay IPv6 addresses), use hard-
13383       coded addresses for authorities, fallbacks, and configured
13384       bridges. Now IPv6-only clients can use microdescriptors. Fixes bug
13385       20996; bugfix on b167e82 from 19608 in 0.2.8.5-alpha.
13387   o Minor bugfixes (memory leaks):
13388     - Fix a memory leak when configuring hidden services. Fixes bug
13389       20987; bugfix on 0.3.0.1-alpha.
13391   o Minor bugfixes (portability, also in 0.2.9.9):
13392     - Avoid crashing when Tor is built using headers that contain
13393       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
13394       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
13395       on 0.2.9.1-alpha.
13396     - Fix Libevent detection on platforms without Libevent 1 headers
13397       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
13399   o Minor bugfixes (relay):
13400     - Honor DataDirectoryGroupReadable when tor is a relay. Previously,
13401       initializing the keys would reset the DataDirectory to 0700
13402       instead of 0750 even if DataDirectoryGroupReadable was set to 1.
13403       Fixes bug 19953; bugfix on 0.0.2pre16. Patch by "redfish".
13405   o Minor bugfixes (testing):
13406     - Remove undefined behavior from the backtrace generator by removing
13407       its signal handler. Fixes bug 21026; bugfix on 0.2.5.2-alpha.
13409   o Minor bugfixes (unit tests):
13410     - Allow the unit tests to pass even when DNS lookups of bogus
13411       addresses do not fail as expected. Fixes bug 20862 and 20863;
13412       bugfix on unit tests introduced in 0.2.8.1-alpha
13413       through 0.2.9.4-alpha.
13415   o Code simplification and refactoring:
13416     - Refactor code to manipulate global_origin_circuit_list into
13417       separate functions. Closes ticket 20921.
13419   o Documentation (formatting):
13420     - Clean up formatting of tor.1 man page and HTML doc, where <pre>
13421       blocks were incorrectly appearing. Closes ticket 20885.
13423   o Documentation (man page):
13424     - Clarify many options in tor.1 and add some min/max values for
13425       HiddenService options. Closes ticket 21058.
13428 Changes in version 0.2.9.9 - 2017-01-23
13429   Tor 0.2.9.9 fixes a denial-of-service bug where an attacker could
13430   cause relays and clients to crash, even if they were not built with
13431   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
13432   versions, and also affects 0.3.0.1-alpha: all relays running an affected
13433   version should upgrade.
13435   This release also resolves a client-side onion service reachability
13436   bug, and resolves a pair of small portability issues.
13438   o Major bugfixes (security):
13439     - Downgrade the "-ftrapv" option from "always on" to "only on when
13440       --enable-expensive-hardening is provided." This hardening option,
13441       like others, can turn survivable bugs into crashes -- and having
13442       it on by default made a (relatively harmless) integer overflow bug
13443       into a denial-of-service bug. Fixes bug 21278 (TROVE-2017-001);
13444       bugfix on 0.2.9.1-alpha.
13446   o Major bugfixes (client, onion service):
13447     - Fix a client-side onion service reachability bug, where multiple
13448       socks requests to an onion service (or a single slow request)
13449       could cause us to mistakenly mark some of the service's
13450       introduction points as failed, and we cache that failure so
13451       eventually we run out and can't reach the service. Also resolves a
13452       mysterious "Remote server sent bogus reason code 65021" log
13453       warning. The bug was introduced in ticket 17218, where we tried to
13454       remember the circuit end reason as a uint16_t, which mangled
13455       negative values. Partially fixes bug 21056 and fixes bug 20307;
13456       bugfix on 0.2.8.1-alpha.
13458   o Minor features (geoip):
13459     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
13460       Country database.
13462   o Minor bugfixes (portability):
13463     - Avoid crashing when Tor is built using headers that contain
13464       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
13465       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
13466       on 0.2.9.1-alpha.
13467     - Fix Libevent detection on platforms without Libevent 1 headers
13468       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
13471 Changes in version 0.3.0.1-alpha - 2016-12-19
13472   Tor 0.3.0.1-alpha is the first alpha release in the 0.3.0 development
13473   series. It strengthens Tor's link and circuit handshakes by
13474   identifying relays by their Ed25519 keys, improves the algorithm that
13475   clients use to choose and maintain their list of guards, and includes
13476   additional backend support for the next-generation hidden service
13477   design. It also contains numerous other small features and
13478   improvements to security, correctness, and performance.
13480   Below are the changes since 0.2.9.8.
13482   o Major features (guard selection algorithm):
13483     - Tor's guard selection algorithm has been redesigned from the
13484       ground up, to better support unreliable networks and restrictive
13485       sets of entry nodes, and to better resist guard-capture attacks by
13486       hostile local networks. Implements proposal 271; closes
13487       ticket 19877.
13489   o Major features (next-generation hidden services):
13490     - Relays can now handle v3 ESTABLISH_INTRO cells as specified by
13491       prop224 aka "Next Generation Hidden Services". Service and clients
13492       don't use this functionality yet. Closes ticket 19043. Based on
13493       initial code by Alec Heifetz.
13494     - Relays now support the HSDir version 3 protocol, so that they can
13495       can store and serve v3 descriptors. This is part of the next-
13496       generation onion service work detailed in proposal 224. Closes
13497       ticket 17238.
13499   o Major features (protocol, ed25519 identity keys):
13500     - Relays now use Ed25519 to prove their Ed25519 identities and to
13501       one another, and to clients. This algorithm is faster and more
13502       secure than the RSA-based handshake we've been doing until now.
13503       Implements the second big part of proposal 220; Closes
13504       ticket 15055.
13505     - Clients now support including Ed25519 identity keys in the EXTEND2
13506       cells they generate. By default, this is controlled by a consensus
13507       parameter, currently disabled. You can turn this feature on for
13508       testing by setting ExtendByEd25519ID in your configuration. This
13509       might make your traffic appear different than the traffic
13510       generated by other users, however. Implements part of ticket
13511       15056; part of proposal 220.
13512     - Relays now understand requests to extend to other relays by their
13513       Ed25519 identity keys. When an Ed25519 identity key is included in
13514       an EXTEND2 cell, the relay will only extend the circuit if the
13515       other relay can prove ownership of that identity. Implements part
13516       of ticket 15056; part of proposal 220.
13518   o Major bugfixes (scheduler):
13519     - Actually compare circuit policies in ewma_cmp_cmux(). This bug
13520       caused the channel scheduler to behave more or less randomly,
13521       rather than preferring channels with higher-priority circuits.
13522       Fixes bug 20459; bugfix on 0.2.6.2-alpha.
13524   o Minor features (controller):
13525     - When HSFETCH arguments cannot be parsed, say "Invalid argument"
13526       rather than "unrecognized." Closes ticket 20389; patch from
13527       Ivan Markin.
13529   o Minor features (diagnostic, directory client):
13530     - Warn when we find an unexpected inconsistency in directory
13531       download status objects. Prevents some negative consequences of
13532       bug 20593.
13534   o Minor features (directory authority):
13535     - Add a new authority-only AuthDirTestEd25519LinkKeys option (on by
13536       default) to control whether authorities should try to probe relays
13537       by their Ed25519 link keys. This option will go away in a few
13538       releases--unless we encounter major trouble in our ed25519 link
13539       protocol rollout, in which case it will serve as a safety option.
13541   o Minor features (directory cache):
13542     - Relays and bridges will now refuse to serve the consensus they
13543       have if they know it is too old for a client to use. Closes
13544       ticket 20511.
13546   o Minor features (ed25519 link handshake):
13547     - Advertise support for the ed25519 link handshake using the
13548       subprotocol-versions mechanism, so that clients can tell which
13549       relays can identity themselves by Ed25519 ID. Closes ticket 20552.
13551   o Minor features (fingerprinting resistance, authentication):
13552     - Extend the length of RSA keys used for TLS link authentication to
13553       2048 bits. (These weren't used for forward secrecy; for forward
13554       secrecy, we used P256.) Closes ticket 13752.
13556   o Minor features (infrastructure):
13557     - Implement smartlist_add_strdup() function. Replaces the use of
13558       smartlist_add(sl, tor_strdup(str)). Closes ticket 20048.
13560   o Minor bugfixes (client):
13561     - When clients that use bridges start up with a cached consensus on
13562       disk, they were ignoring it and downloading a new one. Now they
13563       use the cached one. Fixes bug 20269; bugfix on 0.2.3.12-alpha.
13565   o Minor bugfixes (configuration):
13566     - Accept non-space whitespace characters after the severity level in
13567       the `Log` option. Fixes bug 19965; bugfix on 0.2.1.1-alpha.
13568     - Support "TByte" and "TBytes" units in options given in bytes.
13569       "TB", "terabyte(s)", "TBit(s)" and "terabit(s)" were already
13570       supported. Fixes bug 20622; bugfix on 0.2.0.14-alpha.
13572   o Minor bugfixes (consensus weight):
13573     - Add new consensus method that initializes bw weights to 1 instead
13574       of 0. This prevents a zero weight from making it all the way to
13575       the end (happens in small testing networks) and causing an error.
13576       Fixes bug 14881; bugfix on 0.2.2.17-alpha.
13578   o Minor bugfixes (descriptors):
13579     - Correctly recognise downloaded full descriptors as valid, even
13580       when using microdescriptors as circuits. This affects clients with
13581       FetchUselessDescriptors set, and may affect directory authorities.
13582       Fixes bug 20839; bugfix on 0.2.3.2-alpha.
13584   o Minor bugfixes (directory system):
13585     - Download all consensus flavors, descriptors, and authority
13586       certificates when FetchUselessDescriptors is set, regardless of
13587       whether tor is a directory cache or not. Fixes bug 20667; bugfix
13588       on all recent tor versions.
13589     - Bridges and relays now use microdescriptors (like clients do)
13590       rather than old-style router descriptors. Now bridges will blend
13591       in with clients in terms of the circuits they build. Fixes bug
13592       6769; bugfix on 0.2.3.2-alpha.
13594   o Minor bugfixes (ed25519 certificates):
13595     - Correctly interpret ed25519 certificates that would expire some
13596       time after 19 Jan 2038. Fixes bug 20027; bugfix on 0.2.7.2-alpha.
13598   o Minor bugfixes (hidden services):
13599     - Stop ignoring misconfigured hidden services. Instead, refuse to
13600       start tor until the misconfigurations have been corrected. Fixes
13601       bug 20559; bugfix on multiple commits in 0.2.7.1-alpha
13602       and earlier.
13604   o Minor bugfixes (memory leak at exit):
13605     - Fix a small harmless memory leak at exit of the previously unused
13606       RSA->Ed identity cross-certificate. Fixes bug 17779; bugfix
13607       on 0.2.7.2-alpha.
13609   o Minor bugfixes (util):
13610     - When finishing writing a file to disk, if we were about to replace
13611       the file with the temporary file created before and we fail to
13612       replace it, remove the temporary file so it doesn't stay on disk.
13613       Fixes bug 20646; bugfix on 0.2.0.7-alpha. Patch by fk.
13615   o Minor bugfixes (Windows):
13616     - Check for getpagesize before using it to mmap files. This fixes
13617       compilation in some MinGW environments. Fixes bug 20530; bugfix on
13618       0.1.2.1-alpha. Reported by "ice".
13620   o Code simplification and refactoring:
13621     - Abolish all global guard context in entrynodes.c; replace with new
13622       guard_selection_t structure as preparation for proposal 271.
13623       Closes ticket 19858.
13624     - Introduce rend_service_is_ephemeral() that tells if given onion
13625       service is ephemeral. Replace unclear NULL-checkings for service
13626       directory with this function. Closes ticket 20526.
13627     - Extract magic numbers in circuituse.c into defined variables.
13628     - Refactor circuit_is_available_for_use to remove unnecessary check.
13629     - Refactor circuit_predict_and_launch_new for readability and
13630       testability. Closes ticket 18873.
13631     - Refactor large if statement in purpose_needs_anonymity to use
13632       switch statement instead. Closes part of ticket 20077.
13633     - Refactor the hashing API to return negative values for errors, as
13634       is done as throughout the codebase. Closes ticket 20717.
13635     - Remove data structures that were used to index or_connection
13636       objects by their RSA identity digests. These structures are fully
13637       redundant with the similar structures used in the
13638       channel abstraction.
13639     - Remove duplicate code in the channel_write_*cell() functions.
13640       Closes ticket 13827; patch from Pingl.
13641     - Remove redundant behavior of is_sensitive_dir_purpose, refactor to
13642       use only purpose_needs_anonymity. Closes part of ticket 20077.
13643     - The code to generate and parse EXTEND and EXTEND2 cells has been
13644       replaced with code automatically generated by the
13645       "trunnel" utility.
13647   o Documentation:
13648     - Include the "TBits" unit in Tor's man page. Fixes part of bug
13649       20622; bugfix on 0.2.5.1-alpha.
13650     - Change '1' to 'weight_scale' in consensus bw weights calculation
13651       comments, as that is reality. Closes ticket 20273. Patch
13652       from pastly.
13653     - Correct the value for AuthDirGuardBWGuarantee in the manpage, from
13654       250 KBytes to 2 MBytes. Fixes bug 20435; bugfix
13655       on 0.2.5.6-alpha.
13656     - Stop the man page from incorrectly stating that HiddenServiceDir
13657       must already exist. Fixes 20486.
13658     - Clarify that when ClientRejectInternalAddresses is enabled (which
13659       is the default), multicast DNS hostnames for machines on the local
13660       network (of the form *.local) are also rejected. Closes
13661       ticket 17070.
13663   o Removed features:
13664     - The AuthDirMaxServersPerAuthAddr option no longer exists: The same
13665       limit for relays running on a single IP applies to authority IP
13666       addresses as well as to non-authority IP addresses. Closes
13667       ticket 20960.
13668     - The UseDirectoryGuards torrc option no longer exists: all users
13669       that use entry guards will also use directory guards. Related to
13670       proposal 271; implements part of ticket 20831.
13672   o Testing:
13673     - New unit tests for tor_htonll(). Closes ticket 19563. Patch
13674       from "overcaffeinated".
13675     - Perform the coding style checks when running the tests and fail
13676       when coding style violations are found. Closes ticket 5500.
13677     - Add tests for networkstatus_compute_bw_weights_v10.
13678     - Add unit tests circuit_predict_and_launch_new.
13679     - Extract dummy_origin_circuit_new so it can be used by other
13680       test functions.
13683 Changes in version 0.2.8.12 - 2016-12-19
13684   Tor 0.2.8.12 backports a fix for a medium-severity issue (bug 21018
13685   below) where Tor clients could crash when attempting to visit a
13686   hostile hidden service. Clients are recommended to upgrade as packages
13687   become available for their systems.
13689   It also includes an updated list of fallback directories, backported
13690   from 0.2.9.
13692   Now that the Tor 0.2.9 series is stable, only major bugfixes will be
13693   backported to 0.2.8 in the future.
13695   o Major bugfixes (parsing, security, backported from 0.2.9.8):
13696     - Fix a bug in parsing that could cause clients to read a single
13697       byte past the end of an allocated region. This bug could be used
13698       to cause hardened clients (built with --enable-expensive-hardening)
13699       to crash if they tried to visit a hostile hidden service. Non-
13700       hardened clients are only affected depending on the details of
13701       their platform's memory allocator. Fixes bug 21018; bugfix on
13702       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
13703       2016-12-002 and as CVE-2016-1254.
13705   o Minor features (fallback directory list, backported from 0.2.9.8):
13706     - Replace the 81 remaining fallbacks of the 100 originally
13707       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
13708       fallbacks (123 new, 54 existing, 27 removed) generated in December
13709       2016. Resolves ticket 20170.
13711   o Minor features (geoip, backported from 0.2.9.7-rc):
13712     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
13713       Country database.
13716 Changes in version 0.2.9.8 - 2016-12-19
13717   Tor 0.2.9.8 is the first stable release of the Tor 0.2.9 series.
13719   The Tor 0.2.9 series makes mandatory a number of security features
13720   that were formerly optional. It includes support for a new shared-
13721   randomness protocol that will form the basis for next generation
13722   hidden services, includes a single-hop hidden service mode for
13723   optimizing .onion services that don't actually want to be hidden,
13724   tries harder not to overload the directory authorities with excessive
13725   downloads, and supports a better protocol versioning scheme for
13726   improved compatibility with other implementations of the Tor protocol.
13728   And of course, there are numerous other bugfixes and improvements.
13730   This release also includes a fix for a medium-severity issue (bug
13731   21018 below) where Tor clients could crash when attempting to visit a
13732   hostile hidden service. Clients are recommended to upgrade as packages
13733   become available for their systems.
13735   Below are the changes since 0.2.9.7-rc. For a list of all changes
13736   since 0.2.8, see the ReleaseNotes file.
13738   o Major bugfixes (parsing, security):
13739     - Fix a bug in parsing that could cause clients to read a single
13740       byte past the end of an allocated region. This bug could be used
13741       to cause hardened clients (built with --enable-expensive-hardening)
13742       to crash if they tried to visit a hostile hidden service. Non-
13743       hardened clients are only affected depending on the details of
13744       their platform's memory allocator. Fixes bug 21018; bugfix on
13745       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
13746       2016-12-002 and as CVE-2016-1254.
13748   o Minor features (fallback directory list):
13749     - Replace the 81 remaining fallbacks of the 100 originally
13750       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
13751       fallbacks (123 new, 54 existing, 27 removed) generated in December
13752       2016. Resolves ticket 20170.
13755 Changes in version 0.2.9.7-rc - 2016-12-12
13756   Tor 0.2.9.7-rc fixes a few small bugs remaining in Tor 0.2.9.6-rc,
13757   including a few that had prevented tests from passing on
13758   some platforms.
13760   o Minor features (geoip):
13761     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
13762       Country database.
13764   o Minor bugfix (build):
13765     - The current Git revision when building from a local repository is
13766       now detected correctly when using git worktrees. Fixes bug 20492;
13767       bugfix on 0.2.3.9-alpha.
13769   o Minor bugfixes (directory authority):
13770     - When computing old Tor protocol line version in protover, we were
13771       looking at 0.2.7.5 twice instead of a specific case for
13772       0.2.9.1-alpha. Fixes bug 20810; bugfix on 0.2.9.4-alpha.
13774   o Minor bugfixes (download scheduling):
13775     - Resolve a "bug" warning when considering a download schedule whose
13776       delay had approached INT_MAX. Fixes 20875; bugfix on 0.2.9.5-alpha.
13778   o Minor bugfixes (logging):
13779     - Downgrade a harmless log message about the
13780       pending_entry_connections list from "warn" to "info". Mitigates
13781       bug 19926.
13783   o Minor bugfixes (memory leak):
13784     - Fix a small memory leak when receiving AF_UNIX connections on a
13785       SocksPort. Fixes bug 20716; bugfix on 0.2.6.3-alpha.
13786     - When moving a signed descriptor object from a source to an
13787       existing destination, free the allocated memory inside that
13788       destination object. Fixes bug 20715; bugfix on 0.2.8.3-alpha.
13790   o Minor bugfixes (memory leak, use-after-free, linux seccomp2 sandbox):
13791     - Fix a memory leak and use-after-free error when removing entries
13792       from the sandbox's getaddrinfo() cache. Fixes bug 20710; bugfix on
13793       0.2.5.5-alpha. Patch from "cypherpunks".
13795   o Minor bugfixes (portability):
13796     - Use the correct spelling of MAC_OS_X_VERSION_10_12 on configure.ac
13797       Fixes bug 20935; bugfix on 0.2.9.6-rc.
13799   o Minor bugfixes (unit tests):
13800     - Stop expecting NetBSD unit tests to report success for ipfw. Part
13801       of a fix for bug 19960; bugfix on 0.2.9.5-alpha.
13802     - Fix tolerances in unit tests for monotonic time comparisons
13803       between nanoseconds and microseconds. Previously, we accepted a 10
13804       us difference only, which is not realistic on every platform's
13805       clock_gettime(). Fixes bug 19974; bugfix on 0.2.9.1-alpha.
13806     - Remove a double-free in the single onion service unit test. Stop
13807       ignoring a return value. Make future changes less error-prone.
13808       Fixes bug 20864; bugfix on 0.2.9.6-rc.
13811 Changes in version 0.2.8.11 - 2016-12-08
13812   Tor 0.2.8.11 backports fixes for additional portability issues that
13813   could prevent Tor from building correctly on OSX Sierra, or with
13814   OpenSSL 1.1. Affected users should upgrade; others can safely stay
13815   with 0.2.8.10.
13817   o Minor bugfixes (portability):
13818     - Avoid compilation errors when building on OSX Sierra. Sierra began
13819       to support the getentropy() and clock_gettime() APIs, but created
13820       a few problems in doing so. Tor 0.2.9 has a more thorough set of
13821       workarounds; in 0.2.8, we are just using the /dev/urandom and mach
13822       monotonic time interfaces. Fixes bug 20865. Bugfix
13823       on 0.2.8.1-alpha.
13825   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
13826     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
13827       architectures. Closes ticket 20588.
13830 Changes in version 0.2.8.10 - 2016-12-02
13831   Tor 0.2.8.10 backports a fix for a bug that would sometimes make clients
13832   unusable after they left standby mode. It also backports fixes for
13833   a few portability issues and a small but problematic memory leak.
13835   o Major bugfixes (client reliability, backport from 0.2.9.5-alpha):
13836     - When Tor leaves standby because of a new application request, open
13837       circuits as needed to serve that request. Previously, we would
13838       potentially wait a very long time. Fixes part of bug 19969; bugfix
13839       on 0.2.8.1-alpha.
13841   o Major bugfixes (client performance, backport from 0.2.9.5-alpha):
13842     - Clients now respond to new application stream requests immediately
13843       when they arrive, rather than waiting up to one second before
13844       starting to handle them. Fixes part of bug 19969; bugfix
13845       on 0.2.8.1-alpha.
13847   o Minor bugfixes (portability, backport from 0.2.9.6-rc):
13848     - Work around a bug in the OSX 10.12 SDK that would prevent us from
13849       successfully targeting earlier versions of OSX. Resolves
13850       ticket 20235.
13852   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
13853     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
13854       20551; bugfix on 0.2.1.1-alpha.
13856   o Minor bugfixes (relay, backport from 0.2.9.5-alpha):
13857     - Work around a memory leak in OpenSSL 1.1 when encoding public
13858       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
13860   o Minor features (geoip):
13861     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
13862       Country database.
13864 Changes in version 0.2.9.6-rc - 2016-12-02
13865   Tor 0.2.9.6-rc fixes a few remaining bugs found in the previous alpha
13866   version. We hope that it will be ready to become stable soon, and we
13867   encourage everyone to test this release. If no showstopper bugs are
13868   found here, the next 0.2.9 release will be stable.
13870   o Major bugfixes (relay, resolver, logging):
13871     - For relays that don't know their own address, avoid attempting a
13872       local hostname resolve for each descriptor we download. This
13873       will cut down on the number of "Success: chose address 'x.x.x.x'"
13874       log lines, and also avoid confusing clock jumps if the resolver
13875       is slow. Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.
13877   o Minor bugfixes (client, fascistfirewall):
13878     - Avoid spurious warnings when ReachableAddresses or FascistFirewall
13879       is set. Fixes bug 20306; bugfix on 0.2.8.2-alpha.
13881   o Minor bugfixes (hidden services):
13882     - Stop ignoring the anonymity status of saved keys for hidden
13883       services and single onion services when first starting tor.
13884       Instead, refuse to start tor if any hidden service key has been
13885       used in a different hidden service anonymity mode. Fixes bug
13886       20638; bugfix on 17178 in 0.2.9.3-alpha; reported by ahf.
13888   o Minor bugfixes (portability):
13889     - Work around a bug in the OSX 10.12 SDK that would prevent us from
13890       successfully targeting earlier versions of OSX. Resolves
13891       ticket 20235.
13892     - Run correctly when built on Windows build environments that
13893       require _vcsprintf(). Fixes bug 20560; bugfix on 0.2.2.11-alpha.
13895   o Minor bugfixes (single onion services, Tor2web):
13896     - Stop complaining about long-term one-hop circuits deliberately
13897       created by single onion services and Tor2web. These log messages
13898       are intended to diagnose issue 8387, which relates to circuits
13899       hanging around forever for no reason. Fixes bug 20613; bugfix on
13900       0.2.9.1-alpha. Reported by "pastly".
13902   o Minor bugfixes (unit tests):
13903     - Stop spurious failures in the local interface address discovery
13904       unit tests. Fixes bug 20634; bugfix on 0.2.8.1-alpha; patch by
13905       Neel Chauhan.
13907   o Documentation:
13908     - Correct the minimum bandwidth value in torrc.sample, and queue a
13909       corresponding change for torrc.minimal. Closes ticket 20085.
13912 Changes in version 0.2.9.5-alpha - 2016-11-08
13913   Tor 0.2.9.5-alpha fixes numerous bugs discovered in the previous alpha
13914   version. We believe one or two probably remain, and we encourage
13915   everyone to test this release.
13917   o Major bugfixes (client performance):
13918     - Clients now respond to new application stream requests immediately
13919       when they arrive, rather than waiting up to one second before
13920       starting to handle them. Fixes part of bug 19969; bugfix
13921       on 0.2.8.1-alpha.
13923   o Major bugfixes (client reliability):
13924     - When Tor leaves standby because of a new application request, open
13925       circuits as needed to serve that request. Previously, we would
13926       potentially wait a very long time. Fixes part of bug 19969; bugfix
13927       on 0.2.8.1-alpha.
13929   o Major bugfixes (download scheduling):
13930     - When using an exponential backoff schedule, do not give up on
13931       downloading just because we have failed a bunch of times. Since
13932       each delay is longer than the last, retrying indefinitely won't
13933       hurt. Fixes bug 20536; bugfix on 0.2.9.1-alpha.
13934     - If a consensus expires while we are waiting for certificates to
13935       download, stop waiting for certificates.
13936     - If we stop waiting for certificates less than a minute after we
13937       started downloading them, do not consider the certificate download
13938       failure a separate failure. Fixes bug 20533; bugfix
13939       on 0.2.0.9-alpha.
13940     - Remove the maximum delay on exponential-backoff scheduling. Since
13941       we now allow an infinite number of failures (see ticket 20536), we
13942       must now allow the time to grow longer on each failure. Fixes part
13943       of bug 20534; bugfix on 0.2.9.1-alpha.
13944     - Make our initial download delays closer to those from 0.2.8. Fixes
13945       another part of bug 20534; bugfix on 0.2.9.1-alpha.
13946     - When determining when to download a directory object, handle times
13947       after 2038 if the operating system supports them. (Someday this
13948       will be important!) Fixes bug 20587; bugfix on 0.2.8.1-alpha.
13949     - When using exponential backoff in test networks, use a lower
13950       exponent, so the delays do not vary as much. This helps test
13951       networks bootstrap consistently. Fixes bug 20597; bugfix on 20499.
13953   o Minor features (geoip):
13954     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
13955       Country database.
13957   o Minor bugfixes (client directory scheduling):
13958     - Treat "relay too busy to answer request" as a failed request and a
13959       reason to back off on our retry frequency. This is safe now that
13960       exponential backoffs retry indefinitely, and avoids a bug where we
13961       would reset our download schedule erroneously. Fixes bug 20593;
13962       bugfix on 0.2.9.1-alpha.
13964   o Minor bugfixes (client, logging):
13965     - Remove a BUG warning in circuit_pick_extend_handshake(). Instead,
13966       assume all nodes support EXTEND2. Use ntor whenever a key is
13967       available. Fixes bug 20472; bugfix on 0.2.9.3-alpha.
13968     - On DNSPort, stop logging a BUG warning on a failed hostname
13969       lookup. Fixes bug 19869; bugfix on 0.2.9.1-alpha.
13971   o Minor bugfixes (hidden services):
13972     - When configuring hidden services, check every hidden service
13973       directory's permissions. Previously, we only checked the last
13974       hidden service. Fixes bug 20529; bugfix the work to fix 13942
13975       in 0.2.6.2-alpha.
13977   o Minor bugfixes (portability):
13978     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
13979       architectures. Closes ticket 20588.
13980     - Use ECDHE ciphers instead of ECDH in tortls tests. LibreSSL has
13981       removed the ECDH ciphers which caused the tests to fail on
13982       platforms which use it. Fixes bug 20460; bugfix on 0.2.8.1-alpha.
13983     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
13984       20551; bugfix on 0.2.1.1-alpha.
13986   o Minor bugfixes (relay bootstrap):
13987     - Ensure relays don't make multiple connections during bootstrap.
13988       Fixes bug 20591; bugfix on 0.2.8.1-alpha.
13990   o Minor bugfixes (relay):
13991     - Work around a memory leak in OpenSSL 1.1 when encoding public
13992       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
13993     - Avoid a small memory leak when informing worker threads about
13994       rotated onion keys. Fixes bug 20401; bugfix on 0.2.6.3-alpha.
13995     - Do not try to parallelize workers more than 16x without the user
13996       explicitly configuring us to do so, even if we do detect more than
13997       16 CPU cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
13999   o Minor bugfixes (single onion services):
14000     - Start correctly when creating a single onion service in a
14001       directory that did not previously exist. Fixes bug 20484; bugfix
14002       on 0.2.9.3-alpha.
14004   o Minor bugfixes (testing):
14005     - Avoid a unit test failure on systems with over 16 detectable CPU
14006       cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
14008   o Documentation:
14009     - Clarify that setting HiddenServiceNonAnonymousMode requires you to
14010       also set "SOCKSPort 0". Fixes bug 20487; bugfix on 0.2.9.3-alpha.
14011     - Module-level documentation for several more modules. Closes
14012       tickets 19287 and 19290.
14015 Changes in version 0.2.8.9 - 2016-10-17
14016   Tor 0.2.8.9 backports a fix for a security hole in previous versions
14017   of Tor that would allow a remote attacker to crash a Tor client,
14018   hidden service, relay, or authority. All Tor users should upgrade to
14019   this version, or to 0.2.9.4-alpha. Patches will be released for older
14020   versions of Tor.
14022   o Major features (security fixes, also in 0.2.9.4-alpha):
14023     - Prevent a class of security bugs caused by treating the contents
14024       of a buffer chunk as if they were a NUL-terminated string. At
14025       least one such bug seems to be present in all currently used
14026       versions of Tor, and would allow an attacker to remotely crash
14027       most Tor instances, especially those compiled with extra compiler
14028       hardening. With this defense in place, such bugs can't crash Tor,
14029       though we should still fix them as they occur. Closes ticket
14030       20384 (TROVE-2016-10-001).
14032   o Minor features (geoip):
14033     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
14034       Country database.
14037 Changes in version 0.2.9.4-alpha - 2016-10-17
14038   Tor 0.2.9.4-alpha fixes a security hole in previous versions of Tor
14039   that would allow a remote attacker to crash a Tor client, hidden
14040   service, relay, or authority. All Tor users should upgrade to this
14041   version, or to 0.2.8.9. Patches will be released for older versions
14042   of Tor.
14044   Tor 0.2.9.4-alpha also adds numerous small features and fix-ups to
14045   previous versions of Tor, including the implementation of a feature to
14046   future- proof the Tor ecosystem against protocol changes, some bug
14047   fixes necessary for Tor Browser to use unix domain sockets correctly,
14048   and several portability improvements. We anticipate that this will be
14049   the last alpha in the Tor 0.2.9 series, and that the next release will
14050   be a release candidate.
14052   o Major features (security fixes):
14053     - Prevent a class of security bugs caused by treating the contents
14054       of a buffer chunk as if they were a NUL-terminated string. At
14055       least one such bug seems to be present in all currently used
14056       versions of Tor, and would allow an attacker to remotely crash
14057       most Tor instances, especially those compiled with extra compiler
14058       hardening. With this defense in place, such bugs can't crash Tor,
14059       though we should still fix them as they occur. Closes ticket
14060       20384 (TROVE-2016-10-001).
14062   o Major features (subprotocol versions):
14063     - Tor directory authorities now vote on a set of recommended
14064       subprotocol versions, and on a set of required subprotocol
14065       versions. Clients and relays that lack support for a _required_
14066       subprotocol version will not start; those that lack support for a
14067       _recommended_ subprotocol version will warn the user to upgrade.
14068       Closes ticket 19958; implements part of proposal 264.
14069     - Tor now uses "subprotocol versions" to indicate compatibility.
14070       Previously, versions of Tor looked at the declared Tor version of
14071       a relay to tell whether they could use a given feature. Now, they
14072       should be able to rely on its declared subprotocol versions. This
14073       change allows compatible implementations of the Tor protocol(s) to
14074       exist without pretending to be 100% bug-compatible with particular
14075       releases of Tor itself. Closes ticket 19958; implements part of
14076       proposal 264.
14078   o Minor feature (fallback directories):
14079     - Remove broken fallbacks from the hard-coded fallback directory
14080       list. Closes ticket 20190; patch by teor.
14082   o Minor features (client, directory):
14083     - Since authorities now omit all routers that lack the Running and
14084       Valid flags, we assume that any relay listed in the consensus must
14085       have those flags. Closes ticket 20001; implements part of
14086       proposal 272.
14088   o Minor features (compilation, portability):
14089     - Compile correctly on MacOS 10.12 (aka "Sierra"). Closes
14090       ticket 20241.
14092   o Minor features (development tools, etags):
14093     - Teach the "make tags" Makefile target how to correctly find
14094       "MOCK_IMPL" function definitions. Patch from nherring; closes
14095       ticket 16869.
14097   o Minor features (geoip):
14098     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
14099       Country database.
14101   o Minor features (unix domain sockets):
14102     - When configuring a unix domain socket for a SocksPort,
14103       ControlPort, or Hidden service, you can now wrap the address in
14104       quotes, using C-style escapes inside the quotes. This allows unix
14105       domain socket paths to contain spaces.
14107   o Minor features (virtual addresses):
14108     - Increase the maximum number of bits for the IPv6 virtual network
14109       prefix from 16 to 104. In this way, the condition for address
14110       allocation is less restrictive. Closes ticket 20151; feature
14111       on 0.2.4.7-alpha.
14113   o Minor bugfixes (address discovery):
14114     - Stop reordering IP addresses returned by the OS. This makes it
14115       more likely that Tor will guess the same relay IP address every
14116       time. Fixes issue 20163; bugfix on 0.2.7.1-alpha, ticket 17027.
14117       Reported by René Mayrhofer, patch by "cypherpunks".
14119   o Minor bugfixes (client, unix domain sockets):
14120     - Disable IsolateClientAddr when using AF_UNIX backed SocksPorts as
14121       the client address is meaningless. Fixes bug 20261; bugfix
14122       on 0.2.6.3-alpha.
14124   o Minor bugfixes (compilation, OpenBSD):
14125     - Detect Libevent2 functions correctly on systems that provide
14126       libevent2, but where libevent1 is linked with -levent. Fixes bug
14127       19904; bugfix on 0.2.2.24-alpha. Patch from Rubiate.
14129   o Minor bugfixes (configuration):
14130     - When parsing quoted configuration values from the torrc file,
14131       handle windows line endings correctly. Fixes bug 19167; bugfix on
14132       0.2.0.16-alpha. Patch from "Pingl".
14134   o Minor bugfixes (getpass):
14135     - Defensively fix a non-triggerable heap corruption at do_getpass()
14136       to protect ourselves from mistakes in the future. Fixes bug
14137       19223; bugfix on 0.2.7.3-rc. Bug found by Guido Vranken, patch
14138       by nherring.
14140   o Minor bugfixes (hidden service):
14141     - Allow hidden services to run on IPv6 addresses even when the
14142       IPv6Exit option is not set. Fixes bug 18357; bugfix
14143       on 0.2.4.7-alpha.
14145   o Documentation:
14146     - Add module-level internal documentation for 36 C files that
14147       previously didn't have a high-level overview. Closes ticket #20385.
14149   o Required libraries:
14150     - When building with OpenSSL, Tor now requires version 1.0.1 or
14151       later. OpenSSL 1.0.0 and earlier are no longer supported by the
14152       OpenSSL team, and should not be used. Closes ticket 20303.
14155 Changes in version 0.2.9.3-alpha - 2016-09-23
14156   Tor 0.2.9.3-alpha adds improved support for entities that want to make
14157   high-performance services available through the Tor .onion mechanism
14158   without themselves receiving anonymity as they host those services. It
14159   also tries harder to ensure that all steps on a circuit are using the
14160   strongest crypto possible, strengthens some TLS properties, and
14161   resolves several bugs -- including a pair of crash bugs from the 0.2.8
14162   series. Anybody running an earlier version of 0.2.9.x should upgrade.
14164   o Major bugfixes (crash, also in 0.2.8.8):
14165     - Fix a complicated crash bug that could affect Tor clients
14166       configured to use bridges when replacing a networkstatus consensus
14167       in which one of their bridges was mentioned. OpenBSD users saw
14168       more crashes here, but all platforms were potentially affected.
14169       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
14171   o Major bugfixes (relay, OOM handler, also in 0.2.8.8):
14172     - Fix a timing-dependent assertion failure that could occur when we
14173       tried to flush from a circuit after having freed its cells because
14174       of an out-of-memory condition. Fixes bug 20203; bugfix on
14175       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
14176       this one.
14178   o Major features (circuit building, security):
14179     - Authorities, relays and clients now require ntor keys in all
14180       descriptors, for all hops (except for rare hidden service protocol
14181       cases), for all circuits, and for all other roles. Part of
14182       ticket 19163.
14183     - Tor authorities, relays, and clients only use ntor, except for
14184       rare cases in the hidden service protocol. Part of ticket 19163.
14186   o Major features (single-hop "hidden" services):
14187     - Add experimental HiddenServiceSingleHopMode and
14188       HiddenServiceNonAnonymousMode options. When both are set to 1,
14189       every hidden service on a Tor instance becomes a non-anonymous
14190       Single Onion Service. Single Onions make one-hop (direct)
14191       connections to their introduction and rendezvous points. One-hop
14192       circuits make Single Onion servers easily locatable, but clients
14193       remain location-anonymous. This is compatible with the existing
14194       hidden service implementation, and works on the current tor
14195       network without any changes to older relays or clients. Implements
14196       proposal 260, completes ticket 17178. Patch by teor and asn.
14198   o Major features (resource management):
14199     - Tor can now notice it is about to run out of sockets, and
14200       preemptively close connections of lower priority. (This feature is
14201       off by default for now, since the current prioritizing method is
14202       yet not mature enough. You can enable it by setting
14203       "DisableOOSCheck 0", but watch out: it might close some sockets
14204       you would rather have it keep.) Closes ticket 18640.
14206   o Major bugfixes (circuit building):
14207     - Hidden service client-to-intro-point and service-to-rendezvous-
14208       point circuits use the TAP key supplied by the protocol, to avoid
14209       epistemic attacks. Fixes bug 19163; bugfix on 0.2.4.18-rc.
14211   o Major bugfixes (compilation, OpenBSD):
14212     - Fix a Libevent-detection bug in our autoconf script that would
14213       prevent Tor from linking successfully on OpenBSD. Patch from
14214       rubiate. Fixes bug 19902; bugfix on 0.2.9.1-alpha.
14216   o Major bugfixes (hidden services):
14217     - Clients now require hidden services to include the TAP keys for
14218       their intro points in the hidden service descriptor. This prevents
14219       an inadvertent upgrade to ntor, which a malicious hidden service
14220       could use to distinguish clients by consensus version. Fixes bug
14221       20012; bugfix on 0.2.4.8-alpha. Patch by teor.
14223   o Minor features (security, TLS):
14224     - Servers no longer support clients that without AES ciphersuites.
14225       (3DES is no longer considered an acceptable cipher.) We believe
14226       that no such Tor clients currently exist, since Tor has required
14227       OpenSSL 0.9.7 or later since 2009. Closes ticket 19998.
14229   o Minor feature (fallback directories):
14230     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
14231       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
14232       2016. Closes ticket 20190; patch by teor.
14234   o Minor features (geoip, also in 0.2.8.8):
14235     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
14236       Country database.
14238   o Minor feature (port flags):
14239     - Add new flags to the *Port options to finer control over which
14240       requests are allowed. The flags are NoDNSRequest, NoOnionTraffic,
14241       and the synthetic flag OnionTrafficOnly, which is equivalent to
14242       NoDNSRequest, NoIPv4Traffic, and NoIPv6Traffic. Closes enhancement
14243       18693; patch by "teor".
14245   o Minor features (directory authority):
14246     - After voting, if the authorities decide that a relay is not
14247       "Valid", they no longer include it in the consensus at all. Closes
14248       ticket 20002; implements part of proposal 272.
14250   o Minor features (testing):
14251     - Disable memory protections on OpenBSD when performing our unit
14252       tests for memwipe(). The test deliberately invokes undefined
14253       behavior, and the OpenBSD protections interfere with this. Patch
14254       from "rubiate". Closes ticket 20066.
14256   o Minor features (testing, ipv6):
14257     - Add the single-onion and single-onion-ipv6 chutney targets to
14258       "make test-network-all". This requires a recent chutney version
14259       with the single onion network flavours (git c72a652 or later).
14260       Closes ticket 20072; patch by teor.
14261     - Add the hs-ipv6 chutney target to make test-network-all's IPv6
14262       tests. Remove bridges+hs, as it's somewhat redundant. This
14263       requires a recent chutney version that supports IPv6 clients,
14264       relays, and authorities. Closes ticket 20069; patch by teor.
14266   o Minor features (Tor2web):
14267     - Make Tor2web clients respect ReachableAddresses. This feature was
14268       inadvertently enabled in 0.2.8.6, then removed by bugfix 19973 on
14269       0.2.8.7. Implements feature 20034. Patch by teor.
14271   o Minor features (unit tests):
14272     - We've done significant work to make the unit tests run faster.
14273     - Our link-handshake unit tests now check that when invalid
14274       handshakes fail, they fail with the error messages we expected.
14275     - Our unit testing code that captures log messages no longer
14276       prevents them from being written out if the user asked for them
14277       (by passing --debug or --info or or --notice --warn to the "test"
14278       binary). This change prevents us from missing unexpected log
14279       messages simply because we were looking for others. Related to
14280       ticket 19999.
14281     - The unit tests now log all warning messages with the "BUG" flag.
14282       Previously, they only logged errors by default. This change will
14283       help us make our testing code more correct, and make sure that we
14284       only hit this code when we mean to. In the meantime, however,
14285       there will be more warnings in the unit test logs than before.
14286       This is preparatory work for ticket 19999.
14287     - The unit tests now treat any failure of a "tor_assert_nonfatal()"
14288       assertion as a test failure.
14290   o Minor bug fixes (circuits):
14291     - Use the CircuitBuildTimeout option whenever
14292       LearnCircuitBuildTimeout is disabled. Previously, we would respect
14293       the option when a user disabled it, but not when it was disabled
14294       because some other option was set. Fixes bug 20073; bugfix on
14295       0.2.4.12-alpha. Patch by teor.
14297   o Minor bugfixes (allocation):
14298     - Change how we allocate memory for large chunks on buffers, to
14299       avoid a (currently impossible) integer overflow, and to waste less
14300       space when allocating unusually large chunks. Fixes bug 20081;
14301       bugfix on 0.2.0.16-alpha. Issue identified by Guido Vranken.
14302     - Always include orconfig.h before including any other C headers.
14303       Sometimes, it includes macros that affect the behavior of the
14304       standard headers. Fixes bug 19767; bugfix on 0.2.9.1-alpha (the
14305       first version to use AC_USE_SYSTEM_EXTENSIONS).
14306     - Fix a syntax error in the IF_BUG_ONCE__() macro in non-GCC-
14307       compatible compilers. Fixes bug 20141; bugfix on 0.2.9.1-alpha.
14308       Patch from Gisle Vanem.
14309     - Stop trying to build with Clang 4.0's -Wthread-safety warnings.
14310       They apparently require a set of annotations that we aren't
14311       currently using, and they create false positives in our pthreads
14312       wrappers. Fixes bug 20110; bugfix on 0.2.9.1-alpha.
14314   o Minor bugfixes (directory authority):
14315     - Die with a more useful error when the operator forgets to place
14316       the authority_signing_key file into the keys directory. This
14317       avoids an uninformative assert & traceback about having an invalid
14318       key. Fixes bug 20065; bugfix on 0.2.0.1-alpha.
14319     - When allowing private addresses, mark Exits that only exit to
14320       private locations as such. Fixes bug 20064; bugfix
14321       on 0.2.2.9-alpha.
14323   o Minor bugfixes (documentation):
14324     - Document the default PathsNeededToBuildCircuits value that's used
14325       by clients when the directory authorities don't set
14326       min_paths_for_circs_pct. Fixes bug 20117; bugfix on 02c320916e02
14327       in 0.2.4.10-alpha. Patch by teor, reported by Jesse V.
14328     - Fix manual for the User option: it takes a username, not a UID.
14329       Fixes bug 19122; bugfix on 0.0.2pre16 (the first version to have
14330       a manpage!).
14332   o Minor bugfixes (hidden services):
14333     - Stop logging intro point details to the client log on certain
14334       error conditions. Fixed as part of bug 20012; bugfix on
14335       0.2.4.8-alpha. Patch by teor.
14337   o Minor bugfixes (IPv6, testing):
14338     - Check for IPv6 correctly on Linux when running test networks.
14339       Fixes bug 19905; bugfix on 0.2.7.3-rc; patch by teor.
14341   o Minor bugfixes (Linux seccomp2 sandbox):
14342     - Add permission to run the sched_yield() and sigaltstack() system
14343       calls, in order to support versions of Tor compiled with asan or
14344       ubsan code that use these calls. Now "sandbox 1" and
14345       "--enable-expensive-hardening" should be compatible on more
14346       systems. Fixes bug 20063; bugfix on 0.2.5.1-alpha.
14348   o Minor bugfixes (logging):
14349     - When logging a message from the BUG() macro, be explicit about
14350       what we were asserting. Previously we were confusing what we were
14351       asserting with what the bug was. Fixes bug 20093; bugfix
14352       on 0.2.9.1-alpha.
14353     - When we are unable to remove the bw_accounting file, do not warn
14354       if the reason we couldn't remove it was that it didn't exist.
14355       Fixes bug 19964; bugfix on 0.2.5.4-alpha. Patch from 'pastly'.
14357   o Minor bugfixes (option parsing):
14358     - Count unix sockets when counting client listeners (SOCKS, Trans,
14359       NATD, and DNS). This has no user-visible behaviour changes: these
14360       options are set once, and never read. Required for correct
14361       behaviour in ticket 17178. Fixes bug 19677; bugfix on
14362       0.2.6.3-alpha. Patch by teor.
14364   o Minor bugfixes (options):
14365     - Check the consistency of UseEntryGuards and EntryNodes more
14366       reliably. Fixes bug 20074; bugfix on 0.2.4.12-alpha. Patch
14367       by teor.
14368     - Stop changing the configured value of UseEntryGuards on
14369       authorities and Tor2web clients. Fixes bug 20074; bugfix on
14370       commits 51fc6799 in 0.1.1.16-rc and acda1735 in 0.2.4.3-alpha.
14371       Patch by teor.
14373   o Minor bugfixes (Tor2web):
14374     - Prevent Tor2web clients running hidden services, these services
14375       are not anonymous due to the one-hop client paths. Fixes bug
14376       19678. Patch by teor.
14378   o Minor bugfixes (unit tests):
14379     - Fix a shared-random unit test that was failing on big endian
14380       architectures due to internal representation of a integer copied
14381       to a buffer. The test is changed to take a full 32 bytes of data
14382       and use the output of a python script that make the COMMIT and
14383       REVEAL calculation according to the spec. Fixes bug 19977; bugfix
14384       on 0.2.9.1-alpha.
14385     - The tor_tls_server_info_callback unit test no longer crashes when
14386       debug-level logging is turned on. Fixes bug 20041; bugfix
14387       on 0.2.8.1-alpha.
14390 Changes in version 0.2.8.8 - 2016-09-23
14391   Tor 0.2.8.8 fixes two crash bugs present in previous versions of the
14392   0.2.8.x series. Relays running 0.2.8.x should upgrade, as should users
14393   who select public relays as their bridges.
14395   o Major bugfixes (crash):
14396     - Fix a complicated crash bug that could affect Tor clients
14397       configured to use bridges when replacing a networkstatus consensus
14398       in which one of their bridges was mentioned. OpenBSD users saw
14399       more crashes here, but all platforms were potentially affected.
14400       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
14402   o Major bugfixes (relay, OOM handler):
14403     - Fix a timing-dependent assertion failure that could occur when we
14404       tried to flush from a circuit after having freed its cells because
14405       of an out-of-memory condition. Fixes bug 20203; bugfix on
14406       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
14407       this one.
14409   o Minor feature (fallback directories):
14410     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
14411       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
14412       2016. Closes ticket 20190; patch by teor.
14414   o Minor features (geoip):
14415     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
14416       Country database.
14419 Changes in version 0.2.9.2-alpha - 2016-08-24
14420   Tor 0.2.9.2-alpha continues development of the 0.2.9 series with
14421   several new features and bugfixes. It also includes an important
14422   authority update and an important bugfix from 0.2.8.7. Everyone who
14423   sets the ReachableAddresses option, and all bridges, are strongly
14424   encouraged to upgrade to 0.2.8.7, or to 0.2.9.2-alpha.
14426   o Directory authority changes (also in 0.2.8.7):
14427     - The "Tonga" bridge authority has been retired; the new bridge
14428       authority is "Bifroest". Closes tickets 19728 and 19690.
14430   o Major bugfixes (client, security, also in 0.2.8.7):
14431     - Only use the ReachableAddresses option to restrict the first hop
14432       in a path. In earlier versions of 0.2.8.x, it would apply to
14433       every hop in the path, with a possible degradation in anonymity
14434       for anyone using an uncommon ReachableAddress setting. Fixes bug
14435       19973; bugfix on 0.2.8.2-alpha.
14437   o Major features (user interface):
14438     - Tor now supports the ability to declare options deprecated, so
14439       that we can recommend that people stop using them. Previously,
14440       this was done in an ad-hoc way. Closes ticket 19820.
14442   o Major bugfixes (directory downloads):
14443     - Avoid resetting download status for consensuses hourly, since we
14444       already have another, smarter retry mechanism. Fixes bug 8625;
14445       bugfix on 0.2.0.9-alpha.
14447   o Minor features (config):
14448     - Warn users when descriptor and port addresses are inconsistent.
14449       Mitigates bug 13953; patch by teor.
14451   o Minor features (geoip):
14452     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
14453       Country database.
14455   o Minor features (user interface):
14456     - There is a new --list-deprecated-options command-line option to
14457       list all of the deprecated options. Implemented as part of
14458       ticket 19820.
14460   o Minor bugfixes (code style):
14461     - Fix an integer signedness conversion issue in the case conversion
14462       tables. Fixes bug 19168; bugfix on 0.2.1.11-alpha.
14464   o Minor bugfixes (compilation):
14465     - Build correctly on versions of libevent2 without support for
14466       evutil_secure_rng_add_bytes(). Fixes bug 19904; bugfix
14467       on 0.2.5.4-alpha.
14468     - Fix a compilation warning on GCC versions before 4.6. Our
14469       ENABLE_GCC_WARNING macro used the word "warning" as an argument,
14470       when it is also required as an argument to the compiler pragma.
14471       Fixes bug 19901; bugfix on 0.2.9.1-alpha.
14473   o Minor bugfixes (compilation, also in 0.2.8.7):
14474     - Remove an inappropriate "inline" in tortls.c that was causing
14475       warnings on older versions of GCC. Fixes bug 19903; bugfix
14476       on 0.2.8.1-alpha.
14478   o Minor bugfixes (fallback directories, also in 0.2.8.7):
14479     - Avoid logging a NULL string pointer when loading fallback
14480       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
14481       and 0.2.8.1-alpha. Report and patch by "rubiate".
14483   o Minor bugfixes (logging):
14484     - Log a more accurate message when we fail to dump a microdescriptor.
14485       Fixes bug 17758; bugfix on 0.2.2.8-alpha. Patch from Daniel Pinto.
14487   o Minor bugfixes (memory leak):
14488     - Fix a series of slow memory leaks related to parsing torrc files
14489       and options. Fixes bug 19466; bugfix on 0.2.1.6-alpha.
14491   o Deprecated features:
14492     - A number of DNS-cache-related sub-options for client ports are now
14493       deprecated for security reasons, and may be removed in a future
14494       version of Tor. (We believe that client-side DNS caching is a bad
14495       idea for anonymity, and you should not turn it on.) The options
14496       are: CacheDNS, CacheIPv4DNS, CacheIPv6DNS, UseDNSCache,
14497       UseIPv4Cache, and UseIPv6Cache.
14498     - A number of options are deprecated for security reasons, and may
14499       be removed in a future version of Tor. The options are:
14500       AllowDotExit, AllowInvalidNodes, AllowSingleHopCircuits,
14501       AllowSingleHopExits, ClientDNSRejectInternalAddresses,
14502       CloseHSClientCircuitsImmediatelyOnTimeout,
14503       CloseHSServiceRendCircuitsImmediatelyOnTimeout,
14504       ExcludeSingleHopRelays, FastFirstHopPK, TLSECGroup,
14505       UseNTorHandshake, and WarnUnsafeSocks.
14506     - The *ListenAddress options are now deprecated as unnecessary: the
14507       corresponding *Port options should be used instead. These options
14508       may someday be removed. The affected options are:
14509       ControlListenAddress, DNSListenAddress, DirListenAddress,
14510       NATDListenAddress, ORListenAddress, SocksListenAddress,
14511       and TransListenAddress.
14513   o Documentation:
14514     - Correct the IPv6 syntax in our documentation for the
14515       VirtualAddrNetworkIPv6 torrc option. Closes ticket 19743.
14517   o Removed code:
14518     - We no longer include the (dead, deprecated) bufferevent code in
14519       Tor. Closes ticket 19450. Based on a patch from U+039b.
14522 Changes in version 0.2.8.7 - 2016-08-24
14523   Tor 0.2.8.7 fixes an important bug related to the ReachableAddresses
14524   option in 0.2.8.6, and replaces a retiring bridge authority. Everyone
14525   who sets the ReachableAddresses option, and all bridges, are strongly
14526   encouraged to upgrade.
14528   o Directory authority changes:
14529     - The "Tonga" bridge authority has been retired; the new bridge
14530       authority is "Bifroest". Closes tickets 19728 and 19690.
14532   o Major bugfixes (client, security):
14533     - Only use the ReachableAddresses option to restrict the first hop
14534       in a path. In earlier versions of 0.2.8.x, it would apply to
14535       every hop in the path, with a possible degradation in anonymity
14536       for anyone using an uncommon ReachableAddress setting. Fixes bug
14537       19973; bugfix on 0.2.8.2-alpha.
14539   o Minor features (geoip):
14540     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
14541       Country database.
14543   o Minor bugfixes (compilation):
14544     - Remove an inappropriate "inline" in tortls.c that was causing
14545       warnings on older versions of GCC. Fixes bug 19903; bugfix
14546       on 0.2.8.1-alpha.
14548   o Minor bugfixes (fallback directories):
14549     - Avoid logging a NULL string pointer when loading fallback
14550       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
14551       and 0.2.8.1-alpha. Report and patch by "rubiate".
14554 Changes in version 0.2.9.1-alpha - 2016-08-08
14555   Tor 0.2.9.1-alpha is the first alpha release in the 0.2.9 development
14556   series. It improves our support for hardened builds and compiler
14557   warnings, deploys some critical infrastructure for improvements to
14558   hidden services, includes a new timing backend that we hope to use for
14559   better support for traffic padding, makes it easier for programmers to
14560   log unexpected events, and contains other small improvements to
14561   security, correctness, and performance.
14563   Below are the changes since 0.2.8.6.
14565   o New system requirements:
14566     - Tor now requires Libevent version 2.0.10-stable or later. Older
14567       versions of Libevent have less efficient backends for several
14568       platforms, and lack the DNS code that we use for our server-side
14569       DNS support. This implements ticket 19554.
14570     - Tor now requires zlib version 1.2 or later, for security,
14571       efficiency, and (eventually) gzip support. (Back when we started,
14572       zlib 1.1 and zlib 1.0 were still found in the wild. 1.2 was
14573       released in 2003. We recommend the latest version.)
14575   o Major features (build, hardening):
14576     - Tor now builds with -ftrapv by default on compilers that support
14577       it. This option detects signed integer overflow (which C forbids),
14578       and turns it into a hard-failure. We do not apply this option to
14579       code that needs to run in constant time to avoid side-channels;
14580       instead, we use -fwrapv in that code. Closes ticket 17983.
14581     - When --enable-expensive-hardening is selected, stop applying the
14582       clang/gcc sanitizers to code that needs to run in constant time.
14583       Although we are aware of no introduced side-channels, we are not
14584       able to prove that there are none. Related to ticket 17983.
14586   o Major features (compilation):
14587     - Our big list of extra GCC warnings is now enabled by default when
14588       building with GCC (or with anything like Clang that claims to be
14589       GCC-compatible). To make all warnings into fatal compilation
14590       errors, pass --enable-fatal-warnings to configure. Closes
14591       ticket 19044.
14592     - Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS to automatically
14593       turn on C and POSIX extensions. (Previously, we attempted to do
14594       this on an ad hoc basis.) Closes ticket 19139.
14596   o Major features (directory authorities, hidden services):
14597     - Directory authorities can now perform the shared randomness
14598       protocol specified by proposal 250. Using this protocol, directory
14599       authorities generate a global fresh random value every day. In the
14600       future, this value will be used by hidden services to select
14601       HSDirs. This release implements the directory authority feature;
14602       the hidden service side will be implemented in the future as part
14603       of proposal 224. Resolves ticket 16943; implements proposal 250.
14605   o Major features (downloading, random exponential backoff):
14606     - When we fail to download an object from a directory service, wait
14607       for an (exponentially increasing) randomized amount of time before
14608       retrying, rather than a fixed interval as we did before. This
14609       prevents a group of Tor instances from becoming too synchronized,
14610       or a single Tor instance from becoming too predictable, in its
14611       download schedule. Closes ticket 15942.
14613   o Major bugfixes (exit policies):
14614     - Avoid disclosing exit outbound bind addresses, configured port
14615       bind addresses, and local interface addresses in relay descriptors
14616       by default under ExitPolicyRejectPrivate. Instead, only reject
14617       these (otherwise unlisted) addresses if
14618       ExitPolicyRejectLocalInterfaces is set. Fixes bug 18456; bugfix on
14619       0.2.7.2-alpha. Patch by teor.
14621   o Major bugfixes (hidden service client):
14622     - Allow Tor clients with appropriate controllers to work with
14623       FetchHidServDescriptors set to 0. Previously, this option also
14624       disabled descriptor cache lookup, thus breaking hidden services
14625       entirely. Fixes bug 18704; bugfix on 0.2.0.20-rc. Patch by "twim".
14627   o Minor features (build, hardening):
14628     - Detect and work around a libclang_rt problem that would prevent
14629       clang from finding __mulodi4() on some 32-bit platforms, and thus
14630       keep -ftrapv from linking on those systems. Closes ticket 19079.
14631     - When building on a system without runtime support for the runtime
14632       hardening options, try to log a useful warning at configuration
14633       time, rather than an incomprehensible warning at link time. If
14634       expensive hardening was requested, this warning becomes an error.
14635       Closes ticket 18895.
14637   o Minor features (code safety):
14638     - In our integer-parsing functions, ensure that maxiumum value we
14639       give is no smaller than the minimum value. Closes ticket 19063;
14640       patch from U+039b.
14642   o Minor features (controller):
14643     - Implement new GETINFO queries for all downloads that use
14644       download_status_t to schedule retries. This allows controllers to
14645       examine the schedule for pending downloads. Closes ticket 19323.
14646     - Allow controllers to configure basic client authorization on
14647       hidden services when they create them with the ADD_ONION control
14648       command. Implements ticket 15588. Patch by "special".
14649     - Fire a STATUS_SERVER controller event whenever the hibernation
14650       status changes between "awake"/"soft"/"hard". Closes ticket 18685.
14652   o Minor features (directory authority):
14653     - Directory authorities now only give the Guard flag to a relay if
14654       they are also giving it the Stable flag. This change allows us to
14655       simplify path selection for clients. It should have minimal effect
14656       in practice, since >99% of Guards already have the Stable flag.
14657       Implements ticket 18624.
14658     - Directory authorities now write their v3-status-votes file out to
14659       disk earlier in the consensus process, so we have a record of the
14660       votes even if we abort the consensus process. Resolves
14661       ticket 19036.
14663   o Minor features (hidden service):
14664     - Stop being so strict about the payload length of "rendezvous1"
14665       cells. We used to be locked in to the "TAP" handshake length, and
14666       now we can handle better handshakes like "ntor". Resolves
14667       ticket 18998.
14669   o Minor features (infrastructure, time):
14670     - Tor now uses the operating system's monotonic timers (where
14671       available) for internal fine-grained timing. Previously we would
14672       look at the system clock, and then attempt to compensate for the
14673       clock running backwards. Closes ticket 18908.
14674     - Tor now includes an improved timer backend, so that we can
14675       efficiently support tens or hundreds of thousands of concurrent
14676       timers, as will be needed for some of our planned anti-traffic-
14677       analysis work. This code is based on William Ahern's "timeout.c"
14678       project, which implements a "tickless hierarchical timing wheel".
14679       Closes ticket 18365.
14681   o Minor features (logging):
14682     - Provide a more useful warning message when configured with an
14683       invalid Nickname. Closes ticket 18300; patch from "icanhasaccount".
14684     - When dumping unparseable router descriptors, optionally store them
14685       in separate files, named by digest, up to a configurable size
14686       limit. You can change the size limit by setting the
14687       MaxUnparseableDescSizeToLog option, and disable this feature by
14688       setting that option to 0. Closes ticket 18322.
14689     - Add a set of macros to check nonfatal assertions, for internal
14690       use. Migrating more of our checks to these should help us avoid
14691       needless crash bugs. Closes ticket 18613.
14693   o Minor features (performance):
14694     - Change the "optimistic data" extension from "off by default" to
14695       "on by default". The default was ordinarily overridden by a
14696       consensus option, but when clients were bootstrapping for the
14697       first time, they would not have a consensus to get the option
14698       from. Changing this default saves a round-trip during startup.
14699       Closes ticket 18815.
14701   o Minor features (relay, usability):
14702     - When the directory authorities refuse a bad relay's descriptor,
14703       encourage the relay operator to contact us. Many relay operators
14704       won't notice this line in their logs, but it's a win if even a few
14705       learn why we don't like what their relay was doing. Resolves
14706       ticket 18760.
14708   o Minor features (testing):
14709     - Let backtrace tests work correctly under AddressSanitizer. Fixes
14710       part of bug 18934; bugfix on 0.2.5.2-alpha.
14711     - Move the test-network.sh script to chutney, and modify tor's test-
14712       network.sh to call the (newer) chutney version when available.
14713       Resolves ticket 19116. Patch by teor.
14714     - Use the lcov convention for marking lines as unreachable, so that
14715       we don't count them when we're generating test coverage data.
14716       Update our coverage tools to understand this convention. Closes
14717       ticket 16792.
14719   o Minor bugfixes (bootstrap):
14720     - Remember the directory we fetched the consensus or previous
14721       certificates from, and use it to fetch future authority
14722       certificates. This change improves bootstrapping performance.
14723       Fixes bug 18963; bugfix on 0.2.8.1-alpha.
14725   o Minor bugfixes (build):
14726     - The test-stem and test-network makefile targets now depend only on
14727       the tor binary that they are testing. Previously, they depended on
14728       "make all". Fixes bug 18240; bugfix on 0.2.8.2-alpha. Based on a
14729       patch from "cypherpunks".
14731   o Minor bugfixes (circuits):
14732     - Make sure extend_info_from_router() is only called on servers.
14733       Fixes bug 19639; bugfix on 0.2.8.1-alpha.
14735   o Minor bugfixes (compilation):
14736     - When building with Clang, use a full set of GCC warnings.
14737       (Previously, we included only a subset, because of the way we
14738       detected them.) Fixes bug 19216; bugfix on 0.2.0.1-alpha.
14740   o Minor bugfixes (directory authority):
14741     - Authorities now sort the "package" lines in their votes, for ease
14742       of debugging. (They are already sorted in consensus documents.)
14743       Fixes bug 18840; bugfix on 0.2.6.3-alpha.
14744     - When parsing a detached signature, make sure we use the length of
14745       the digest algorithm instead of an hardcoded DIGEST256_LEN in
14746       order to avoid comparing bytes out-of-bounds with a smaller digest
14747       length such as SHA1. Fixes bug 19066; bugfix on 0.2.2.6-alpha.
14749   o Minor bugfixes (documentation):
14750     - Document the --passphrase-fd option in the tor manpage. Fixes bug
14751       19504; bugfix on 0.2.7.3-rc.
14752     - Fix the description of the --passphrase-fd option in the
14753       tor-gencert manpage. The option is used to pass the number of a
14754       file descriptor to read the passphrase from, not to read the file
14755       descriptor from. Fixes bug 19505; bugfix on 0.2.0.20-alpha.
14757   o Minor bugfixes (ephemeral hidden service):
14758     - When deleting an ephemeral hidden service, close its intro points
14759       even if they are not completely open. Fixes bug 18604; bugfix
14760       on 0.2.7.1-alpha.
14762   o Minor bugfixes (guard selection):
14763     - Use a single entry guard even if the NumEntryGuards consensus
14764       parameter is not provided. Fixes bug 17688; bugfix
14765       on 0.2.5.6-alpha.
14766     - Don't mark guards as unreachable if connection_connect() fails.
14767       That function fails for local reasons, so it shouldn't reveal
14768       anything about the status of the guard. Fixes bug 14334; bugfix
14769       on 0.2.3.10-alpha.
14771   o Minor bugfixes (hidden service client):
14772     - Increase the minimum number of internal circuits we preemptively
14773       build from 2 to 3, so a circuit is available when a client
14774       connects to another onion service. Fixes bug 13239; bugfix
14775       on 0.1.0.1-rc.
14777   o Minor bugfixes (logging):
14778     - When logging a directory ownership mismatch, log the owning
14779       username correctly. Fixes bug 19578; bugfix on 0.2.2.29-beta.
14781   o Minor bugfixes (memory leaks):
14782     - Fix a small, uncommon memory leak that could occur when reading a
14783       truncated ed25519 key file. Fixes bug 18956; bugfix
14784       on 0.2.6.1-alpha.
14786   o Minor bugfixes (testing):
14787     - Allow clients to retry HSDirs much faster in test networks. Fixes
14788       bug 19702; bugfix on 0.2.7.1-alpha. Patch by teor.
14789     - Disable ASAN's detection of segmentation faults while running
14790       test_bt.sh, so that we can make sure that our own backtrace
14791       generation code works. Fixes another aspect of bug 18934; bugfix
14792       on 0.2.5.2-alpha. Patch from "cypherpunks".
14793     - Fix the test-network-all target on out-of-tree builds by using the
14794       correct path to the test driver script. Fixes bug 19421; bugfix
14795       on 0.2.7.3-rc.
14797   o Minor bugfixes (time):
14798     - Improve overflow checks in tv_udiff and tv_mdiff. Fixes bug 19483;
14799       bugfix on all released tor versions.
14800     - When computing the difference between two times in milliseconds,
14801       we now round to the nearest millisecond correctly. Previously, we
14802       could sometimes round in the wrong direction. Fixes bug 19428;
14803       bugfix on 0.2.2.2-alpha.
14805   o Minor bugfixes (user interface):
14806     - Display a more accurate number of suppressed messages in the log
14807       rate-limiter. Previously, there was a potential integer overflow
14808       in the counter. Now, if the number of messages hits a maximum, the
14809       rate-limiter doesn't count any further. Fixes bug 19435; bugfix
14810       on 0.2.4.11-alpha.
14811     - Fix a typo in the passphrase prompt for the ed25519 identity key.
14812       Fixes bug 19503; bugfix on 0.2.7.2-alpha.
14814   o Code simplification and refactoring:
14815     - Remove redundant declarations of the MIN macro. Closes
14816       ticket 18889.
14817     - Rename tor_dup_addr() to tor_addr_to_str_dup() to avoid confusion.
14818       Closes ticket 18462; patch from "icanhasaccount".
14819     - Split the 600-line directory_handle_command_get function into
14820       separate functions for different URL types. Closes ticket 16698.
14822   o Documentation:
14823     - Fix spelling of "--enable-tor2web-mode" in the manpage. Closes
14824       ticket 19153. Patch from "U+039b".
14826   o Removed features:
14827     - Remove support for "GET /tor/bytes.txt" DirPort request, and
14828       "GETINFO dir-usage" controller request, which were only available
14829       via a compile-time option in Tor anyway. Feature was added in
14830       0.2.2.1-alpha. Resolves ticket 19035.
14831     - There is no longer a compile-time option to disable support for
14832       TransPort. (If you don't want TransPort; just don't use it.) Patch
14833       from "U+039b". Closes ticket 19449.
14835   o Testing:
14836     - Run more workqueue tests as part of "make check". These had
14837       previously been implemented, but you needed to know special
14838       command-line options to enable them.
14839     - We now have unit tests for our code to reject zlib "compression
14840       bombs". (Fortunately, the code works fine.)
14843 Changes in version 0.2.8.6 - 2016-08-02
14845   Tor 0.2.8.6 is the first stable version of the Tor 0.2.8 series.
14847   The Tor 0.2.8 series improves client bootstrapping performance,
14848   completes the authority-side implementation of improved identity
14849   keys for relays, and includes numerous bugfixes and performance
14850   improvements throughout the program. This release continues to
14851   improve the coverage of Tor's test suite.  For a full list of
14852   changes since Tor 0.2.7, see the ReleaseNotes file.
14854   Changes since 0.2.8.5-rc:
14856   o Minor features (geoip):
14857     - Update geoip and geoip6 to the July 6 2016 Maxmind GeoLite2
14858       Country database.
14860   o Minor bugfixes (compilation):
14861     - Fix a compilation warning in the unit tests on systems where char
14862       is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha.
14864   o Minor bugfixes (fallback directories):
14865     - Remove 1 fallback that was on the hardcoded list, then opted-out,
14866       leaving 89 of the 100 fallbacks originally introduced in Tor
14867       0.2.8.2-alpha in March 2016. Closes ticket 19782; patch by teor.
14869   o Minor bugfixes (Linux seccomp2 sandbox):
14870     - Allow more syscalls when running with "Sandbox 1" enabled:
14871       sysinfo, getsockopt(SO_SNDBUF), and setsockopt(SO_SNDBUFFORCE). On
14872       some systems, these are required for Tor to start. Fixes bug
14873       18397; bugfix on 0.2.5.1-alpha. Patch from Daniel Pinto.
14874     - Allow IPPROTO_UDP datagram sockets when running with "Sandbox 1",
14875       so that get_interface_address6_via_udp_socket_hack() can work.
14876       Fixes bug 19660; bugfix on 0.2.5.1-alpha.
14879 Changes in version 0.2.8.5-rc - 2016-07-07
14880   Tor 0.2.8.5-rc is the second release candidate in the Tor 0.2.8
14881   series. If we find no new bugs or regressions here, the first stable
14882   0.2.8 release will be identical to it. It has a few small bugfixes
14883   against previous versions.
14885   o Directory authority changes:
14886     - Urras is no longer a directory authority. Closes ticket 19271.
14888   o Major bugfixes (heartbeat):
14889     - Fix a regression that would crash Tor when the periodic
14890       "heartbeat" log messages were disabled. Fixes bug 19454; bugfix on
14891       0.2.8.1-alpha. Reported by "kubaku".
14893   o Minor features (build):
14894     - Tor now again builds with the recent OpenSSL 1.1 development
14895       branch (tested against 1.1.0-pre6-dev). Closes ticket 19499.
14896     - When building manual pages, set the timezone to "UTC", so that the
14897       output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha.
14898       Patch from intrigeri.
14900   o Minor bugfixes (fallback directory selection):
14901     - Avoid errors during fallback selection if there are no eligible
14902       fallbacks. Fixes bug 19480; bugfix on 0.2.8.3-alpha. Patch
14903       by teor.
14905   o Minor bugfixes (IPv6, microdescriptors):
14906     - Don't check node addresses when we only have a routerstatus. This
14907       allows IPv6-only clients to bootstrap by fetching microdescriptors
14908       from fallback directory mirrors. (The microdescriptor consensus
14909       has no IPv6 addresses in it.) Fixes bug 19608; bugfix
14910       on 0.2.8.2-alpha.
14912   o Minor bugfixes (logging):
14913     - Reduce pointlessly verbose log messages when directory servers
14914       can't be found. Fixes bug 18849; bugfix on 0.2.8.3-alpha and
14915       0.2.8.1-alpha. Patch by teor.
14916     - When a fallback directory changes its fingerprint from the hard-
14917       coded fingerprint, log a less severe, more explanatory log
14918       message. Fixes bug 18812; bugfix on 0.2.8.1-alpha. Patch by teor.
14920   o Minor bugfixes (Linux seccomp2 sandboxing):
14921     - Allow statistics to be written to disk when "Sandbox 1" is
14922       enabled. Fixes bugs 19556 and 19957; bugfix on 0.2.5.1-alpha and
14923       0.2.6.1-alpha respectively.
14925   o Minor bugfixes (user interface):
14926     - Remove a warning message "Service [scrubbed] not found after
14927       descriptor upload". This message appears when one uses HSPOST
14928       control command to upload a service descriptor. Since there is
14929       only a descriptor and no service, showing this message is
14930       pointless and confusing. Fixes bug 19464; bugfix on 0.2.7.2-alpha.
14932   o Fallback directory list:
14933     - Add a comment to the generated fallback directory list that
14934       explains how to comment out unsuitable fallbacks in a way that's
14935       compatible with the stem fallback parser.
14936     - Update fallback whitelist and blacklist based on relay operator
14937       emails. Blacklist unsuitable (non-working, over-volatile)
14938       fallbacks. Resolves ticket 19071. Patch by teor.
14939     - Remove 10 unsuitable fallbacks, leaving 90 of the 100 fallbacks
14940       originally introduced in Tor 0.2.8.2-alpha in March 2016. Closes
14941       ticket 19071; patch by teor.
14944 Changes in version 0.2.8.4-rc - 2016-06-15
14945   Tor 0.2.8.4-rc is the first release candidate in the Tor 0.2.8 series.
14946   If we find no new bugs or regressions here, the first stable 0.2.8
14947   release will be identical to it. It has a few small bugfixes against
14948   previous versions.
14950   o Major bugfixes (user interface):
14951     - Correctly give a warning in the cases where a relay is specified
14952       by nickname, and one such relay is found, but it is not officially
14953       Named. Fixes bug 19203; bugfix on 0.2.3.1-alpha.
14955   o Minor features (build):
14956     - Tor now builds once again with the recent OpenSSL 1.1 development
14957       branch (tested against 1.1.0-pre5 and 1.1.0-pre6-dev).
14959   o Minor features (geoip):
14960     - Update geoip and geoip6 to the June 7 2016 Maxmind GeoLite2
14961       Country database.
14963   o Minor bugfixes (compilation):
14964     - Cause the unit tests to compile correctly on mingw64 versions that
14965       lack sscanf. Fixes bug 19213; bugfix on 0.2.7.1-alpha.
14967   o Minor bugfixes (downloading):
14968     - Predict more correctly whether we'll be downloading over HTTP when
14969       we determine the maximum length of a URL. This should avoid a
14970       "BUG" warning about the Squid HTTP proxy and its URL limits. Fixes
14971       bug 19191.
14974 Changes in version 0.2.8.3-alpha - 2016-05-26
14975   Tor 0.2.8.3-alpha resolves several bugs, most of them introduced over
14976   the course of the 0.2.8 development cycle. It improves the behavior of
14977   directory clients, fixes several crash bugs, fixes a gap in compiler
14978   hardening, and allows the full integration test suite to run on
14979   more platforms.
14981   o Major bugfixes (security, client, DNS proxy):
14982     - Stop a crash that could occur when a client running with DNSPort
14983       received a query with multiple address types, and the first
14984       address type was not supported. Found and fixed by Scott Dial.
14985       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
14987   o Major bugfixes (security, compilation):
14988     - Correctly detect compiler flags on systems where _FORTIFY_SOURCE
14989       is predefined. Previously, our use of -D_FORTIFY_SOURCE would
14990       cause a compiler warning, thereby making other checks fail, and
14991       needlessly disabling compiler-hardening support. Fixes one case of
14992       bug 18841; bugfix on 0.2.3.17-beta. Patch from "trudokal".
14994   o Major bugfixes (security, directory authorities):
14995     - Fix a crash and out-of-bounds write during authority voting, when
14996       the list of relays includes duplicate ed25519 identity keys. Fixes
14997       bug 19032; bugfix on 0.2.8.2-alpha.
14999   o Major bugfixes (client, bootstrapping):
15000     - Check if bootstrap consensus downloads are still needed when the
15001       linked connection attaches. This prevents tor making unnecessary
15002       begindir-style connections, which are the only directory
15003       connections tor clients make since the fix for 18483 was merged.
15004     - Fix some edge cases where consensus download connections may not
15005       have been closed, even though they were not needed. Related to fix
15006       for 18809.
15007     - Make relays retry consensus downloads the correct number of times,
15008       rather than the more aggressive client retry count. Fixes part of
15009       ticket 18809.
15010     - Stop downloading consensuses when we have a consensus, even if we
15011       don't have all the certificates for it yet. Fixes bug 18809;
15012       bugfix on 0.2.8.1-alpha. Patches by arma and teor.
15014   o Major bugfixes (directory mirrors):
15015     - Decide whether to advertise begindir support in the the same way
15016       we decide whether to advertise our DirPort. Allowing these
15017       decisions to become out-of-sync led to surprising behavior like
15018       advertising begindir support when hibernation made us not
15019       advertise a DirPort. Resolves bug 18616; bugfix on 0.2.8.1-alpha.
15020       Patch by teor.
15022   o Major bugfixes (IPv6 bridges, client):
15023     - Actually use IPv6 addresses when selecting directory addresses for
15024       IPv6 bridges. Fixes bug 18921; bugfix on 0.2.8.1-alpha. Patch
15025       by "teor".
15027   o Major bugfixes (key management):
15028     - If OpenSSL fails to generate an RSA key, do not retain a dangling
15029       pointer to the previous (uninitialized) key value. The impact here
15030       should be limited to a difficult-to-trigger crash, if OpenSSL is
15031       running an engine that makes key generation failures possible, or
15032       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
15033       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
15034       Baishakhi Ray.
15036   o Major bugfixes (testing):
15037     - Fix a bug that would block 'make test-network-all' on systems where
15038       IPv6 packets were lost. Fixes bug 19008; bugfix on 0.2.7.3-rc.
15039     - Avoid "WSANOTINITIALISED" warnings in the unit tests. Fixes bug 18668;
15040       bugfix on 0.2.8.1-alpha.
15042   o Minor features (clients):
15043     - Make clients, onion services, and bridge relays always use an
15044       encrypted begindir connection for directory requests. Resolves
15045       ticket 18483. Patch by "teor".
15047   o Minor features (fallback directory mirrors):
15048     - Give each fallback the same weight for client selection; restrict
15049       fallbacks to one per operator; report fallback directory detail
15050       changes when rebuilding list; add new fallback directory mirrors
15051       to the whitelist; and many other minor simplifications and fixes.
15052       Closes tasks 17905, 18749, bug 18689, and fixes part of bug 18812 on
15053       0.2.8.1-alpha; patch by "teor".
15054     - Replace the 21 fallbacks generated in January 2016 and included in
15055       Tor 0.2.8.1-alpha, with a list of 100 fallbacks generated in March
15056       2016. Closes task 17158; patch by "teor".
15058   o Minor features (geoip):
15059     - Update geoip and geoip6 to the May 4 2016 Maxmind GeoLite2
15060       Country database.
15062   o Minor bugfixes (assert, portability):
15063     - Fix an assertion failure in memarea.c on systems where "long" is
15064       shorter than the size of a pointer. Fixes bug 18716; bugfix
15065       on 0.2.1.1-alpha.
15067   o Minor bugfixes (bootstrap):
15068     - Consistently use the consensus download schedule for authority
15069       certificates. Fixes bug 18816; bugfix on 0.2.4.13-alpha.
15071   o Minor bugfixes (build):
15072     - Remove a pair of redundant AM_CONDITIONAL declarations from
15073       configure.ac. Fixes one final case of bug 17744; bugfix
15074       on 0.2.8.2-alpha.
15075     - Resolve warnings when building on systems that are concerned with
15076       signed char. Fixes bug 18728; bugfix on 0.2.7.2-alpha
15077       and 0.2.6.1-alpha.
15078     - When libscrypt.h is found, but no libscrypt library can be linked,
15079       treat libscrypt as absent. Fixes bug 19161; bugfix
15080       on 0.2.6.1-alpha.
15082   o Minor bugfixes (client):
15083     - Turn all TestingClientBootstrap* into non-testing torrc options.
15084       This changes simply renames them by removing "Testing" in front of
15085       them and they do not require TestingTorNetwork to be enabled
15086       anymore. Fixes bug 18481; bugfix on 0.2.8.1-alpha.
15087     - Make directory node selection more reliable, mainly for IPv6-only
15088       clients and clients with few reachable addresses. Fixes bug 18929;
15089       bugfix on 0.2.8.1-alpha. Patch by "teor".
15091   o Minor bugfixes (controller, microdescriptors):
15092     - Make GETINFO dir/status-vote/current/consensus conform to the
15093       control specification by returning "551 Could not open cached
15094       consensus..." when not caching consensuses. Fixes bug 18920;
15095       bugfix on 0.2.2.6-alpha.
15097   o Minor bugfixes (crypto, portability):
15098     - The SHA3 and SHAKE routines now produce the correct output on Big
15099       Endian systems. No code calls either algorithm yet, so this is
15100       primarily a build fix. Fixes bug 18943; bugfix on 0.2.8.1-alpha.
15101     - Tor now builds again with the recent OpenSSL 1.1 development
15102       branch (tested against 1.1.0-pre4 and 1.1.0-pre5-dev). Closes
15103       ticket 18286.
15105   o Minor bugfixes (directories):
15106     - When fetching extrainfo documents, compare their SHA256 digests
15107       and Ed25519 signing key certificates with the routerinfo that led
15108       us to fetch them, rather than with the most recent routerinfo.
15109       Otherwise we generate many spurious warnings about mismatches.
15110       Fixes bug 17150; bugfix on 0.2.7.2-alpha.
15112   o Minor bugfixes (logging):
15113     - When we can't generate a signing key because OfflineMasterKey is
15114       set, do not imply that we should have been able to load it. Fixes
15115       bug 18133; bugfix on 0.2.7.2-alpha.
15116     - Stop periodic_event_dispatch() from blasting twelve lines per
15117       second at loglevel debug. Fixes bug 18729; fix on 0.2.8.1-alpha.
15118     - When rejecting a misformed INTRODUCE2 cell, only log at
15119       PROTOCOL_WARN severity. Fixes bug 18761; bugfix on 0.2.8.2-alpha.
15121   o Minor bugfixes (pluggable transports):
15122     - Avoid reporting a spurious error when we decide that we don't need
15123       to terminate a pluggable transport because it has already exited.
15124       Fixes bug 18686; bugfix on 0.2.5.5-alpha.
15126   o Minor bugfixes (pointer arithmetic):
15127     - Fix a bug in memarea_alloc() that could have resulted in remote
15128       heap write access, if Tor had ever passed an unchecked size to
15129       memarea_alloc(). Fortunately, all the sizes we pass to
15130       memarea_alloc() are pre-checked to be less than 128 kilobytes.
15131       Fixes bug 19150; bugfix on 0.2.1.1-alpha. Bug found by
15132       Guido Vranken.
15134   o Minor bugfixes (relays):
15135     - Consider more config options when relays decide whether to
15136       regenerate their descriptor. Fixes more of bug 12538; bugfix
15137       on 0.2.8.1-alpha.
15138     - Resolve some edge cases where we might launch an ORPort
15139       reachability check even when DisableNetwork is set. Noticed while
15140       fixing bug 18616; bugfix on 0.2.3.9-alpha.
15142   o Minor bugfixes (statistics):
15143     - We now include consensus downloads via IPv6 in our directory-
15144       request statistics. Fixes bug 18460; bugfix on 0.2.3.14-alpha.
15146   o Minor bugfixes (testing):
15147     - Allow directories in small networks to bootstrap by skipping
15148       DirPort checks when the consensus has no exits. Fixes bug 19003;
15149       bugfix on 0.2.8.1-alpha. Patch by teor.
15150     - Fix a small memory leak that would occur when the
15151       TestingEnableCellStatsEvent option was turned on. Fixes bug 18673;
15152       bugfix on 0.2.5.2-alpha.
15154   o Minor bugfixes (time handling):
15155     - When correcting a corrupt 'struct tm' value, fill in the tm_wday
15156       field. Otherwise, our unit tests crash on Windows. Fixes bug
15157       18977; bugfix on 0.2.2.25-alpha.
15159   o Documentation:
15160     - Document the contents of the 'datadir/keys' subdirectory in the
15161       manual page. Closes ticket 17621.
15162     - Stop recommending use of nicknames to identify relays in our
15163       MapAddress documentation. Closes ticket 18312.
15166 Changes in version 0.2.8.2-alpha - 2016-03-28
15167   Tor 0.2.8.2-alpha is the second alpha in its series. It fixes numerous
15168   bugs in earlier versions of Tor, including some that prevented
15169   authorities using Tor 0.2.7.x from running correctly. IPv6 and
15170   directory support should also be much improved.
15172   o New system requirements:
15173     - Tor no longer supports versions of OpenSSL with a broken
15174       implementation of counter mode. (This bug was present in OpenSSL
15175       1.0.0, and was fixed in OpenSSL 1.0.0a.) Tor still detects, but no
15176       longer runs with, these versions.
15177     - Tor no longer attempts to support platforms where the "time_t"
15178       type is unsigned. (To the best of our knowledge, only OpenVMS does
15179       this, and Tor has never actually built on OpenVMS.) Closes
15180       ticket 18184.
15181     - Tor now uses Autoconf version 2.63 or later, and Automake 1.11 or
15182       later (released in 2008 and 2009 respectively). If you are
15183       building Tor from the git repository instead of from the source
15184       distribution, and your tools are older than this, you will need to
15185       upgrade. Closes ticket 17732.
15187   o Major bugfixes (security, pointers):
15188     - Avoid a difficult-to-trigger heap corruption attack when extending
15189       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
15190       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
15191       Reported by Guido Vranken.
15193   o Major bugfixes (bridges, pluggable transports):
15194     - Modify the check for OR connections to private addresses. Allow
15195       bridges on private addresses, including pluggable transports that
15196       ignore the (potentially private) address in the bridge line. Fixes
15197       bug 18517; bugfix on 0.2.8.1-alpha. Reported by gk, patch by teor.
15199   o Major bugfixes (compilation):
15200     - Repair hardened builds under the clang compiler. Previously, our
15201       use of _FORTIFY_SOURCE would conflict with clang's address
15202       sanitizer. Fixes bug 14821; bugfix on 0.2.5.4-alpha.
15204   o Major bugfixes (crash on shutdown):
15205     - Correctly handle detaching circuits from muxes when shutting down.
15206       Fixes bug 18116; bugfix on 0.2.8.1-alpha.
15207     - Fix an assert-on-exit bug related to counting memory usage in
15208       rephist.c. Fixes bug 18651; bugfix on 0.2.8.1-alpha.
15210   o Major bugfixes (crash on startup):
15211     - Fix a segfault during startup: If a Unix domain socket was
15212       configured as listener (such as a ControlSocket or a SocksPort
15213       "unix:" socket), and tor was started as root but not configured to
15214       switch to another user, tor would segfault while trying to string
15215       compare a NULL value. Fixes bug 18261; bugfix on 0.2.8.1-alpha.
15216       Patch by weasel.
15218   o Major bugfixes (dns proxy mode, crash):
15219     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
15220       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
15222   o Major bugfixes (relays, bridge clients):
15223     - Ensure relays always allow IPv4 OR and Dir connections. Ensure
15224       bridge clients use the address configured in the bridge line.
15225       Fixes bug 18348; bugfix on 0.2.8.1-alpha. Reported by sysrqb,
15226       patch by teor.
15228   o Major bugfixes (voting):
15229     - Actually enable support for authorities to match routers by their
15230       Ed25519 identities. Previously, the code had been written, but
15231       some debugging code that had accidentally been left in the
15232       codebase made it stay turned off. Fixes bug 17702; bugfix
15233       on 0.2.7.2-alpha.
15234     - When collating votes by Ed25519 identities, authorities now
15235       include a "NoEdConsensus" flag if the ed25519 value (or lack
15236       thereof) for a server does not reflect the majority consensus.
15237       Related to bug 17668; bugfix on 0.2.7.2-alpha.
15238     - When generating a vote with keypinning disabled, never include two
15239       entries for the same ed25519 identity. This bug was causing
15240       authorities to generate votes that they could not parse when a
15241       router violated key pinning by changing its RSA identity but
15242       keeping its Ed25519 identity. Fixes bug 17668; fixes part of bug
15243       18318. Bugfix on 0.2.7.2-alpha.
15245   o Minor features (security, win32):
15246     - Set SO_EXCLUSIVEADDRUSE on Win32 to avoid a local port-stealing
15247       attack. Fixes bug 18123; bugfix on all tor versions. Patch
15248       by teor.
15250   o Minor features (bug-resistance):
15251     - Make Tor survive errors involving connections without a
15252       corresponding event object. Previously we'd fail with an
15253       assertion; now we produce a log message. Related to bug 16248.
15255   o Minor features (build):
15256     - Detect systems with FreeBSD-derived kernels (such as GNU/kFreeBSD)
15257       as having possible IPFW support. Closes ticket 18448. Patch from
15258       Steven Chamberlain.
15260   o Minor features (code hardening):
15261     - Use tor_snprintf() and tor_vsnprintf() even in external and low-
15262       level code, to harden against accidental failures to NUL-
15263       terminate. Part of ticket 17852. Patch from jsturgix. Found
15264       with Flawfinder.
15266   o Minor features (crypto):
15267     - Validate the hard-coded Diffie-Hellman parameters and ensure that
15268       p is a safe prime, and g is a suitable generator. Closes
15269       ticket 18221.
15271   o Minor features (geoip):
15272     - Update geoip and geoip6 to the March 3 2016 Maxmind GeoLite2
15273       Country database.
15275   o Minor features (hidden service directory):
15276     - Streamline relay-side hsdir handling: when relays consider whether
15277       to accept an uploaded hidden service descriptor, they no longer
15278       check whether they are one of the relays in the network that is
15279       "supposed" to handle that descriptor. Implements ticket 18332.
15281   o Minor features (IPv6):
15282     - Add ClientPreferIPv6DirPort, which is set to 0 by default. If set
15283       to 1, tor prefers IPv6 directory addresses.
15284     - Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor
15285       avoids using IPv4 for client OR and directory connections.
15286     - Try harder to obey the IP version restrictions "ClientUseIPv4 0",
15287       "ClientUseIPv6 0", "ClientPreferIPv6ORPort", and
15288       "ClientPreferIPv6DirPort". Closes ticket 17840; patch by teor.
15290   o Minor features (linux seccomp2 sandbox):
15291     - Reject attempts to change our Address with "Sandbox 1" enabled.
15292       Changing Address with Sandbox turned on would never actually work,
15293       but previously it would fail in strange and confusing ways. Found
15294       while fixing 18548.
15296   o Minor features (robustness):
15297     - Exit immediately with an error message if the code attempts to use
15298       Libevent without having initialized it. This should resolve some
15299       frequently-made mistakes in our unit tests. Closes ticket 18241.
15301   o Minor features (unix domain sockets):
15302     - Add a new per-socket option, RelaxDirModeCheck, to allow creating
15303       Unix domain sockets without checking the permissions on the parent
15304       directory. (Tor checks permissions by default because some
15305       operating systems only check permissions on the parent directory.
15306       However, some operating systems do look at permissions on the
15307       socket, and tor's default check is unneeded.) Closes ticket 18458.
15308       Patch by weasel.
15310   o Minor bugfixes (exit policies, security):
15311     - Refresh an exit relay's exit policy when interface addresses
15312       change. Previously, tor only refreshed the exit policy when the
15313       configured external address changed. Fixes bug 18208; bugfix on
15314       0.2.7.3-rc. Patch by teor.
15316   o Minor bugfixes (security, hidden services):
15317     - Prevent hidden services connecting to client-supplied rendezvous
15318       addresses that are reserved as internal or multicast. Fixes bug
15319       8976; bugfix on 0.2.3.21-rc. Patch by dgoulet and teor.
15321   o Minor bugfixes (build):
15322     - Do not link the unit tests against both the testing and non-
15323       testing versions of the static libraries. Fixes bug 18490; bugfix
15324       on 0.2.7.1-alpha.
15325     - Avoid spurious failures from configure files related to calling
15326       exit(0) in TOR_SEARCH_LIBRARY. Fixes bug 18626; bugfix on
15327       0.2.0.1-alpha. Patch from "cypherpunks".
15328     - Silence spurious clang-scan warnings in the ed25519_donna code by
15329       explicitly initializing some objects. Fixes bug 18384; bugfix on
15330       0.2.7.2-alpha. Patch by teor.
15332   o Minor bugfixes (client, bootstrap):
15333     - Count receipt of new microdescriptors as progress towards
15334       bootstrapping. Previously, with EntryNodes set, Tor might not
15335       successfully repopulate the guard set on bootstrapping. Fixes bug
15336       16825; bugfix on 0.2.3.1-alpha.
15338   o Minor bugfixes (code correctness):
15339     - Update to the latest version of Trunnel, which tries harder to
15340       avoid generating code that can invoke memcpy(p,NULL,0). Bug found
15341       by clang address sanitizer. Fixes bug 18373; bugfix
15342       on 0.2.7.2-alpha.
15344   o Minor bugfixes (configuration):
15345     - Fix a tiny memory leak when parsing a port configuration ending in
15346       ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha.
15348   o Minor bugfixes (containers):
15349     - If we somehow attempt to construct a heap with more than
15350       1073741822 elements, avoid an integer overflow when maintaining
15351       the heap property. Fixes bug 18296; bugfix on 0.1.2.1-alpha.
15353   o Minor bugfixes (correctness):
15354     - Fix a bad memory handling bug that would occur if we had queued a
15355       cell on a channel's incoming queue. Fortunately, we can't actually
15356       queue a cell like that as our code is constructed today, but it's
15357       best to avoid this kind of error, even if there isn't any code
15358       that triggers it today. Fixes bug 18570; bugfix on 0.2.4.4-alpha.
15360   o Minor bugfixes (directory):
15361     - When generating a URL for a directory server on an IPv6 address,
15362       wrap the IPv6 address in square brackets. Fixes bug 18051; bugfix
15363       on 0.2.3.9-alpha. Patch from Malek.
15365   o Minor bugfixes (fallback directory mirrors):
15366     - When requesting extrainfo descriptors from a trusted directory
15367       server, check whether it is an authority or a fallback directory
15368       which supports extrainfo descriptors. Fixes bug 18489; bugfix on
15369       0.2.4.7-alpha. Reported by atagar, patch by teor.
15371   o Minor bugfixes (hidden service, client):
15372     - Handle the case where the user makes several fast consecutive
15373       requests to the same .onion address. Previously, the first six
15374       requests would each trigger a descriptor fetch, each picking a
15375       directory (there are 6 overall) and the seventh one would fail
15376       because no directories were left, thereby triggering a close on
15377       all current directory connections asking for the hidden service.
15378       The solution here is to not close the connections if we have
15379       pending directory fetches. Fixes bug 15937; bugfix
15380       on 0.2.7.1-alpha.
15382   o Minor bugfixes (hidden service, control port):
15383     - Add the onion address to the HS_DESC event for the UPLOADED action
15384       both on success or failure. It was previously hardcoded with
15385       UNKNOWN. Fixes bug 16023; bugfix on 0.2.7.2-alpha.
15387   o Minor bugfixes (hidden service, directory):
15388     - Bridges now refuse "rendezvous2" (hidden service descriptor)
15389       publish attempts. Suggested by ticket 18332.
15391   o Minor bugfixes (linux seccomp2 sandbox):
15392     - Allow the setrlimit syscall, and the prlimit and prlimit64
15393       syscalls, which some libc implementations use under the hood.
15394       Fixes bug 15221; bugfix on 0.2.5.1-alpha.
15395     - Avoid a 10-second delay when starting as a client with "Sandbox 1"
15396       enabled and no DNS resolvers configured. This should help TAILS
15397       start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha.
15398     - Fix the sandbox's interoperability with unix domain sockets under
15399       setuid. Fixes bug 18253; bugfix on 0.2.8.1-alpha.
15401   o Minor bugfixes (logging):
15402     - When logging information about an unparsable networkstatus vote or
15403       consensus, do not say "vote" when we mean consensus. Fixes bug
15404       18368; bugfix on 0.2.0.8-alpha.
15405     - Scrub service name in "unrecognized service ID" log messages.
15406       Fixes bug 18600; bugfix on 0.2.4.11-alpha.
15407     - Downgrade logs and backtraces about IP versions to info-level.
15408       Only log backtraces once each time tor runs. Assists in diagnosing
15409       bug 18351; bugfix on 0.2.8.1-alpha. Reported by sysrqb and
15410       Christian, patch by teor.
15412   o Minor bugfixes (memory safety):
15413     - Avoid freeing an uninitialized pointer when opening a socket fails
15414       in get_interface_addresses_ioctl(). Fixes bug 18454; bugfix on
15415       0.2.3.11-alpha. Reported by toralf and "cypherpunks", patch
15416       by teor.
15417     - Correctly duplicate addresses in get_interface_address6_list().
15418       Fixes bug 18454; bugfix on 0.2.8.1-alpha. Reported by toralf,
15419       patch by "cypherpunks".
15420     - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix
15421       on 0.2.0.1-alpha.
15422     - Fix a memory leak in "tor --list-fingerprint". Fixes part of bug
15423       18672; bugfix on 0.2.5.1-alpha.
15425   o Minor bugfixes (private directory):
15426     - Prevent a race condition when creating private directories. Fixes
15427       part of bug 17852; bugfix on 0.0.2pre13. Part of ticket 17852.
15428       Patch from jsturgix. Found with Flawfinder.
15430   o Minor bugfixes (test networks, IPv6):
15431     - Allow internal IPv6 addresses in descriptors in test networks.
15432       Fixes bug 17153; bugfix on 0.2.3.16-alpha. Patch by teor, reported
15433       by karsten.
15435   o Minor bugfixes (testing):
15436     - We no longer disable assertions in the unit tests when coverage is
15437       enabled. Instead, we require you to say --disable-asserts-in-tests
15438       to the configure script if you need assertions disabled in the
15439       unit tests (for example, if you want to perform branch coverage).
15440       Fixes bug 18242; bugfix on 0.2.7.1-alpha.
15442   o Minor bugfixes (time parsing):
15443     - Avoid overflow in tor_timegm when parsing dates in and after 2038
15444       on platforms with 32-bit time_t. Fixes bug 18479; bugfix on
15445       0.0.2pre14. Patch by teor.
15447   o Minor bugfixes (tor-gencert):
15448     - Correctly handle the case where an authority operator enters a
15449       passphrase but sends an EOF before sending a newline. Fixes bug
15450       17443; bugfix on 0.2.0.20-rc. Found by junglefowl.
15452   o Code simplification and refactoring:
15453     - Quote all the string interpolations in configure.ac -- even those
15454       which we are pretty sure can't contain spaces. Closes ticket
15455       17744. Patch from zerosion.
15456     - Remove specialized code for non-inplace AES_CTR. 99% of our AES is
15457       inplace, so there's no need to have a separate implementation for
15458       the non-inplace code. Closes ticket 18258. Patch from Malek.
15459     - Simplify return types for some crypto functions that can't
15460       actually fail. Patch from Hassan Alsibyani. Closes ticket 18259.
15462   o Documentation:
15463     - Change build messages to refer to "Fedora" instead of "Fedora
15464       Core", and "dnf" instead of "yum". Closes tickets 18459 and 18426.
15465       Patches from "icanhasaccount" and "cypherpunks".
15467   o Removed features:
15468     - We no longer maintain an internal freelist in memarea.c.
15469       Allocators should be good enough to make this code unnecessary,
15470       and it's doubtful that it ever had any performance benefit.
15472   o Testing:
15473     - Fix several warnings from clang's address sanitizer produced in
15474       the unit tests.
15475     - Treat backtrace test failures as expected on FreeBSD until we
15476       solve bug 17808. Closes ticket 18204.
15479 Changes in version 0.2.8.1-alpha - 2016-02-04
15480   Tor 0.2.8.1-alpha is the first alpha release in its series. It
15481   includes numerous small features and bugfixes against previous Tor
15482   versions, and numerous small infrastructure improvements. The most
15483   notable features are a set of improvements to the directory subsystem.
15485   o Major features (security, Linux):
15486     - When Tor starts as root on Linux and is told to switch user ID, it
15487       can now retain the capability to bind to low ports. By default,
15488       Tor will do this only when it's switching user ID and some low
15489       ports have been configured. You can change this behavior with the
15490       new option KeepBindCapabilities. Closes ticket 8195.
15492   o Major features (directory system):
15493     - When bootstrapping multiple consensus downloads at a time, use the
15494       first one that starts downloading, and close the rest. This
15495       reduces failures when authorities or fallback directories are slow
15496       or down. Together with the code for feature 15775, this feature
15497       should reduces failures due to fallback churn. Implements ticket
15498       4483. Patch by "teor". Implements IPv4 portions of proposal 210 by
15499       "mikeperry" and "teor".
15500     - Include a trial list of 21 default fallback directories, generated
15501       in January 2016, based on an opt-in survey of suitable relays.
15502       Doing this should make clients bootstrap more quickly and reliably,
15503       and reduce the load on the directory authorities. Closes ticket
15504       15775. Patch by "teor".
15505       Candidates identified using an OnionOO script by "weasel", "teor",
15506       "gsathya", and "karsten".
15507     - Previously only relays that explicitly opened a directory port
15508       (DirPort) accepted directory requests from clients. Now all
15509       relays, with and without a DirPort, accept and serve tunneled
15510       directory requests that they receive through their ORPort. You can
15511       disable this behavior using the new DirCache option. Closes
15512       ticket 12538.
15514   o Major key updates:
15515     - Update the V3 identity key for the dannenberg directory authority:
15516       it was changed on 18 November 2015. Closes task 17906. Patch
15517       by "teor".
15519   o Minor features (security, clock):
15520     - Warn when the system clock appears to move back in time (when the
15521       state file was last written in the future). Tor doesn't know that
15522       consensuses have expired if the clock is in the past. Patch by
15523       "teor". Implements ticket 17188.
15525   o Minor features (security, exit policies):
15526     - ExitPolicyRejectPrivate now rejects more private addresses by
15527       default. Specifically, it now rejects the relay's outbound bind
15528       addresses (if configured), and the relay's configured port
15529       addresses (such as ORPort and DirPort). Fixes bug 17027; bugfix on
15530       0.2.0.11-alpha. Patch by "teor".
15532   o Minor features (security, memory erasure):
15533     - Set the unused entries in a smartlist to NULL. This helped catch
15534       a (harmless) bug, and shouldn't affect performance too much.
15535       Implements ticket 17026.
15536     - Use SecureMemoryWipe() function to securely clean memory on
15537       Windows. Previously we'd use OpenSSL's OPENSSL_cleanse() function.
15538       Implements feature 17986.
15539     - Use explicit_bzero or memset_s when present. Previously, we'd use
15540       OpenSSL's OPENSSL_cleanse() function. Closes ticket 7419; patches
15541       from <logan@hackers.mu> and <selven@hackers.mu>.
15542     - Make memwipe() do nothing when passed a NULL pointer or buffer of
15543       zero size. Check size argument to memwipe() for underflow. Fixes
15544       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
15545       patch by "teor".
15547   o Minor features (security, RNG):
15548     - Adjust Tor's use of OpenSSL's RNG APIs so that they absolutely,
15549       positively are not allowed to fail. Previously we depended on
15550       internal details of OpenSSL's behavior. Closes ticket 17686.
15551     - Never use the system entropy output directly for anything besides
15552       seeding the PRNG. When we want to generate important keys, instead
15553       of using system entropy directly, we now hash it with the PRNG
15554       stream. This may help resist certain attacks based on broken OS
15555       entropy implementations. Closes part of ticket 17694.
15556     - Use modern system calls (like getentropy() or getrandom()) to
15557       generate strong entropy on platforms that have them. Closes
15558       ticket 13696.
15560   o Minor features (accounting):
15561     - Added two modes to the AccountingRule option: One for limiting
15562       only the number of bytes sent ("AccountingRule out"), and one for
15563       limiting only the number of bytes received ("AccountingRule in").
15564       Closes ticket 15989; patch from "unixninja92".
15566   o Minor features (build):
15567     - Since our build process now uses "make distcheck", we no longer
15568       force "make dist" to depend on "make check". Closes ticket 17893;
15569       patch from "cypherpunks."
15570     - Tor now builds successfully with the recent OpenSSL 1.1
15571       development branch, and with the latest LibreSSL. Closes tickets
15572       17549, 17921, and 17984.
15574   o Minor features (controller):
15575     - Adds the FallbackDir entries to 'GETINFO config/defaults'. Closes
15576       tickets 16774 and 17817. Patch by George Tankersley.
15577     - New 'GETINFO hs/service/desc/id/' command to retrieve a hidden
15578       service descriptor from a service's local hidden service
15579       descriptor cache. Closes ticket 14846.
15580     - Add 'GETINFO exit-policy/reject-private/[default,relay]', so
15581       controllers can examine the the reject rules added by
15582       ExitPolicyRejectPrivate. This makes it easier for stem to display
15583       exit policies.
15585   o Minor features (crypto):
15586     - Add SHA512 support to crypto.c. Closes ticket 17663; patch from
15587       George Tankersley.
15588     - Add SHA3 and SHAKE support to crypto.c. Closes ticket 17783.
15589     - When allocating a digest state object, allocate no more space than
15590       we actually need. Previously, we would allocate as much space as
15591       the state for the largest algorithm would need. This change saves
15592       up to 672 bytes per circuit. Closes ticket 17796.
15593     - Improve performance when hashing non-multiple of 8 sized buffers,
15594       based on Andrew Moon's public domain SipHash-2-4 implementation.
15595       Fixes bug 17544; bugfix on 0.2.5.3-alpha.
15597   o Minor features (directory downloads):
15598     - Wait for busy authorities and fallback directories to become non-
15599       busy when bootstrapping. (A similar change was made in 6c443e987d
15600       for directory caches chosen from the consensus.) Closes ticket
15601       17864; patch by "teor".
15602     - Add UseDefaultFallbackDirs, which enables any hard-coded fallback
15603       directory mirrors. The default is 1; set it to 0 to disable
15604       fallbacks. Implements ticket 17576. Patch by "teor".
15606   o Minor features (geoip):
15607     - Update geoip and geoip6 to the January 5 2016 Maxmind GeoLite2
15608       Country database.
15610   o Minor features (IPv6):
15611     - Add an argument 'ipv6=address:orport' to the DirAuthority and
15612       FallbackDir torrc options, to specify an IPv6 address for an
15613       authority or fallback directory. Add hard-coded ipv6 addresses for
15614       directory authorities that have them. Closes ticket 17327; patch
15615       from Nick Mathewson and "teor".
15616     - Add address policy assume_action support for IPv6 addresses.
15617     - Limit IPv6 mask bits to 128.
15618     - Warn when comparing against an AF_UNSPEC address in a policy, it's
15619       almost always a bug. Closes ticket 17863; patch by "teor".
15620     - Allow users to configure directory authorities and fallback
15621       directory servers with IPv6 addresses and ORPorts. Resolves
15622       ticket 6027.
15623     - routerset_parse now accepts IPv6 literal addresses. Fixes bug
15624       17060; bugfix on 0.2.1.3-alpha. Patch by "teor".
15625     - Make tor_ersatz_socketpair work on IPv6-only systems. Fixes bug
15626       17638; bugfix on 0.0.2pre8. Patch by "teor".
15628   o Minor features (logging):
15629     - When logging to syslog, allow a tag to be added to the syslog
15630       identity (the string prepended to every log message). The tag can
15631       be configured with SyslogIdentityTag and defaults to none. Setting
15632       it to "foo" will cause logs to be tagged as "Tor-foo". Closes
15633       ticket 17194.
15635   o Minor features (portability):
15636     - Use timingsafe_memcmp() where available. Closes ticket 17944;
15637       patch from <logan@hackers.mu>.
15639   o Minor features (relay, address discovery):
15640     - Add a family argument to get_interface_addresses_raw() and
15641       subfunctions to make network interface address interogation more
15642       efficient. Now Tor can specifically ask for IPv4, IPv6 or both
15643       types of interfaces from the operating system. Resolves
15644       ticket 17950.
15645     - When get_interface_address6_list(.,AF_UNSPEC,.) is called and
15646       fails to enumerate interface addresses using the platform-specific
15647       API, have it rely on the UDP socket fallback technique to try and
15648       find out what IP addresses (both IPv4 and IPv6) our machine has.
15649       Resolves ticket 17951.
15651   o Minor features (replay cache):
15652     - The replay cache now uses SHA256 instead of SHA1. Implements
15653       feature 8961. Patch by "teor", issue reported by "rransom".
15655   o Minor features (unix file permissions):
15656     - Defer creation of Unix sockets until after setuid. This avoids
15657       needing CAP_CHOWN and CAP_FOWNER when using systemd's
15658       CapabilityBoundingSet, or chown and fowner when using SELinux.
15659       Implements part of ticket 17562. Patch from Jamie Nguyen.
15660     - If any directory created by Tor is marked as group readable, the
15661       filesystem group is allowed to be either the default GID or the
15662       root user. Allowing root to read the DataDirectory prevents the
15663       need for CAP_READ_SEARCH when using systemd's
15664       CapabilityBoundingSet, or dac_read_search when using SELinux.
15665       Implements part of ticket 17562. Patch from Jamie Nguyen.
15666     - Introduce a new DataDirectoryGroupReadable option. If it is set to
15667       1, the DataDirectory will be made readable by the default GID.
15668       Implements part of ticket 17562. Patch from Jamie Nguyen.
15670   o Minor bugfixes (accounting):
15671     - The max bandwidth when using 'AccountRule sum' is now correctly
15672       logged. Fixes bug 18024; bugfix on 0.2.6.1-alpha. Patch
15673       from "unixninja92".
15675   o Minor bugfixes (code correctness):
15676     - When closing an entry connection, generate a warning if we should
15677       have sent an end cell for it but we haven't. Fixes bug 17876;
15678       bugfix on 0.2.3.2-alpha.
15679     - Assert that allocated memory held by the reputation code is freed
15680       according to its internal counters. Fixes bug 17753; bugfix
15681       on 0.1.1.1-alpha.
15682     - Assert when the TLS contexts fail to initialize. Fixes bug 17683;
15683       bugfix on 0.0.6.
15685   o Minor bugfixes (compilation):
15686     - Mark all object files that include micro-revision.i as depending
15687       on it, so as to make parallel builds more reliable. Fixes bug
15688       17826; bugfix on 0.2.5.1-alpha.
15689     - Don't try to use the pthread_condattr_setclock() function unless
15690       it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug
15691       17819; bugfix on 0.2.6.3-alpha.
15692     - Fix backtrace compilation on FreeBSD. Fixes bug 17827; bugfix
15693       on 0.2.5.2-alpha.
15694     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
15695       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
15696     - Fix search for libevent libraries on OpenBSD (and other systems
15697       that install libevent 1 and libevent 2 in parallel). Fixes bug
15698       16651; bugfix on 0.1.0.7-rc. Patch from "rubiate".
15699     - Isolate environment variables meant for tests from the rest of the
15700       build system. Fixes bug 17818; bugfix on 0.2.7.3-rc.
15701     - Replace usage of 'INLINE' with 'inline'. Fixes bug 17804; bugfix
15702       on 0.0.2pre8.
15703     - Remove config.log only from make distclean, not from make clean.
15704       Fixes bug 17924; bugfix on 0.2.4.1-alpha.
15706   o Minor bugfixes (crypto):
15707     - Check the return value of HMAC() and assert on failure. Fixes bug
15708       17658; bugfix on 0.2.3.6-alpha. Patch by "teor".
15710   o Minor bugfixes (fallback directories):
15711     - Mark fallbacks as "too busy" when they return a 503 response,
15712       rather than just marking authorities. Fixes bug 17572; bugfix on
15713       0.2.4.7-alpha. Patch by "teor".
15715   o Minor bugfixes (IPv6):
15716     - Update the limits in max_dl_per_request for IPv6 address length.
15717       Fixes bug 17573; bugfix on 0.2.1.5-alpha.
15719   o Minor bugfixes (linux seccomp2 sandbox):
15720     - Fix a crash when using offline master ed25519 keys with the Linux
15721       seccomp2 sandbox enabled. Fixes bug 17675; bugfix on 0.2.7.3-rc.
15723   o Minor bugfixes (logging):
15724     - In log messages that include a function name, use __FUNCTION__
15725       instead of __PRETTY_FUNCTION__. In GCC, these are synonymous, but
15726       with clang __PRETTY_FUNCTION__ has extra information we don't
15727       need. Fixes bug 16563; bugfix on 0.0.2pre8. Fix by Tom van
15728       der Woerdt.
15729     - Remove needless quotes from a log message about unparseable
15730       addresses. Fixes bug 17843; bugfix on 0.2.3.3-alpha.
15732   o Minor bugfixes (portability):
15733     - Remove an #endif from configure.ac so that we correctly detect the
15734       presence of in6_addr.s6_addr32. Fixes bug 17923; bugfix
15735       on 0.2.0.13-alpha.
15737   o Minor bugfixes (relays):
15738     - Check that both the ORPort and DirPort (if present) are reachable
15739       before publishing a relay descriptor. Otherwise, relays publish a
15740       descriptor with DirPort 0 when the DirPort reachability test takes
15741       longer than the ORPort reachability test. Fixes bug 18050; bugfix
15742       on 0.1.0.1-rc. Reported by "starlight", patch by "teor".
15744   o Minor bugfixes (relays, hidden services):
15745     - Refuse connection requests to private OR addresses unless
15746       ExtendAllowPrivateAddresses is set. Previously, tor would connect,
15747       then refuse to send any cells to a private address. Fixes bugs
15748       17674 and 8976; bugfix on 0.2.3.21-rc. Patch by "teor".
15750   o Minor bugfixes (safe logging):
15751     - When logging a malformed hostname received through socks4, scrub
15752       it if SafeLogging says we should. Fixes bug 17419; bugfix
15753       on 0.1.1.16-rc.
15755   o Minor bugfixes (statistics code):
15756     - Consistently check for overflow in round_*_to_next_multiple_of
15757       functions, and add unit tests with additional and maximal values.
15758       Fixes part of bug 13192; bugfix on 0.2.2.1-alpha.
15759     - Handle edge cases in the laplace functions: avoid division by
15760       zero, avoid taking the log of zero, and silence clang type
15761       conversion warnings using round and trunc. Add unit tests for edge
15762       cases with maximal values. Fixes part of bug 13192; bugfix
15763       on 0.2.6.2-alpha.
15765   o Minor bugfixes (testing):
15766     - The test for log_heartbeat was incorrectly failing in timezones
15767       with non-integer offsets. Instead of comparing the end of the time
15768       string against a constant, compare it to the output of
15769       format_local_iso_time when given the correct input. Fixes bug
15770       18039; bugfix on 0.2.5.4-alpha.
15771     - Make unit tests pass on IPv6-only systems, and systems without
15772       localhost addresses (like some FreeBSD jails). Fixes bug 17632;
15773       bugfix on 0.2.7.3-rc. Patch by "teor".
15774     - Fix a memory leak in the ntor test. Fixes bug 17778; bugfix
15775       on 0.2.4.8-alpha.
15776     - Check the full results of SHA256 and SHA512 digests in the unit
15777       tests. Bugfix on 0.2.2.4-alpha. Patch by "teor".
15779   o Code simplification and refactoring:
15780     - Move logging of redundant policy entries in
15781       policies_parse_exit_policy_internal into its own function. Closes
15782       ticket 17608; patch from "juce".
15783     - Extract the more complicated parts of circuit_mark_for_close()
15784       into a new function that we run periodically before circuits are
15785       freed. This change removes more than half of the functions
15786       currently in the "blob". Closes ticket 17218.
15787     - Clean up a little duplicated code in
15788       crypto_expand_key_material_TAP(). Closes ticket 17587; patch
15789       from "pfrankw".
15790     - Decouple the list of streams waiting to be attached to circuits
15791       from the overall connection list. This change makes it possible to
15792       attach streams quickly while simplifying Tor's callgraph and
15793       avoiding O(N) scans of the entire connection list. Closes
15794       ticket 17590.
15795     - When a direct directory request fails immediately on launch,
15796       instead of relaunching that request from inside the code that
15797       launches it, instead mark the connection for teardown. This change
15798       simplifies Tor's callback and prevents the directory-request
15799       launching code from invoking itself recursively. Closes
15800       ticket 17589
15801     - Remove code for configuring OpenSSL dynamic locks; OpenSSL doesn't
15802       use them. Closes ticket 17926.
15804   o Documentation:
15805     - Add a description of the correct use of the '--keygen' command-
15806       line option. Closes ticket 17583; based on text by 's7r'.
15807     - Document the minimum HeartbeatPeriod value. Closes ticket 15638.
15808     - Explain actual minima for BandwidthRate. Closes ticket 16382.
15809     - Fix a minor formatting typo in the manpage. Closes ticket 17791.
15810     - Mention torspec URL in the manpage and point the reader to it
15811       whenever we mention a document that belongs in torspce. Fixes
15812       issue 17392.
15814   o Removed features:
15815     - Remove client-side support for connecting to Tor relays running
15816       versions of Tor before 0.2.3.6-alpha. These relays didn't support
15817       the v3 TLS handshake protocol, and are no longer allowed on the
15818       Tor network. Implements the client side of ticket 11150. Based on
15819       patches by Tom van der Woerdt.
15821   o Testing:
15822     - Add unit tests to check for common RNG failure modes, such as
15823       returning all zeroes, identical values, or incrementing values
15824       (OpenSSL's rand_predictable feature). Patch by "teor".
15825     - Log more information when the backtrace tests fail. Closes ticket
15826       17892. Patch from "cypherpunks."
15827     - Always test both ed25519 backends, so that we can be sure that our
15828       batch-open replacement code works. Part of ticket 16794.
15829     - Cover dns_resolve_impl() in dns.c with unit tests. Implements a
15830       portion of ticket 16831.
15831     - More unit tests for compat_libevent.c, procmon.c, tortls.c,
15832       util_format.c, directory.c, and options_validate.c. Closes tickets
15833       17075, 17082, 17084, 17003, and 17076 respectively. Patches from
15834       Ola Bini.
15835     - Unit tests for directory_handle_command_get. Closes ticket 17004.
15836       Patch from Reinaldo de Souza Jr.
15839 Changes in version 0.2.7.6 - 2015-12-10
15840   Tor version 0.2.7.6 fixes a major bug in entry guard selection, as
15841   well as a minor bug in hidden service reliability.
15843   o Major bugfixes (guard selection):
15844     - Actually look at the Guard flag when selecting a new directory
15845       guard. When we implemented the directory guard design, we
15846       accidentally started treating all relays as if they have the Guard
15847       flag during guard selection, leading to weaker anonymity and worse
15848       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
15849       by Mohsen Imani.
15851   o Minor features (geoip):
15852     - Update geoip and geoip6 to the December 1 2015 Maxmind GeoLite2
15853       Country database.
15855   o Minor bugfixes (compilation):
15856     - When checking for net/pfvar.h, include netinet/in.h if possible.
15857       This fixes transparent proxy detection on OpenBSD. Fixes bug
15858       17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate".
15859     - Fix a compilation warning with Clang 3.6: Do not check the
15860       presence of an address which can never be NULL. Fixes bug 17781.
15862   o Minor bugfixes (correctness):
15863     - When displaying an IPv6 exit policy, include the mask bits
15864       correctly even when the number is greater than 31. Fixes bug
15865       16056; bugfix on 0.2.4.7-alpha. Patch from "gturner".
15866     - The wrong list was used when looking up expired intro points in a
15867       rend service object, causing what we think could be reachability
15868       issues for hidden services, and triggering a BUG log. Fixes bug
15869       16702; bugfix on 0.2.7.2-alpha.
15870     - Fix undefined behavior in the tor_cert_checksig function. Fixes
15871       bug 17722; bugfix on 0.2.7.2-alpha.
15874 Changes in version 0.2.7.5 - 2015-11-20
15875   The Tor 0.2.7 release series is dedicated to the memory of Tor user
15876   and privacy advocate Caspar Bowden (1961-2015). Caspar worked
15877   tirelessly to advocate human rights regardless of national borders,
15878   and oppose the encroachments of mass surveillance. He opposed national
15879   exceptionalism, he brought clarity to legal and policy debates, he
15880   understood and predicted the impact of mass surveillance on the world,
15881   and he laid the groundwork for resisting it. While serving on the Tor
15882   Project's board of directors, he brought us his uncompromising focus
15883   on technical excellence in the service of humankind. Caspar was an
15884   inimitable force for good and a wonderful friend. He was kind,
15885   humorous, generous, gallant, and believed we should protect one
15886   another without exception. We honor him here for his ideals, his
15887   efforts, and his accomplishments. Please honor his memory with works
15888   that would make him proud.
15890   Tor 0.2.7.5 is the first stable release in the Tor 0.2.7 series.
15892   The 0.2.7 series adds a more secure identity key type for relays,
15893   improves cryptography performance, resolves several longstanding
15894   hidden-service performance issues, improves controller support for
15895   hidden services, and includes small bugfixes and performance
15896   improvements throughout the program. This release series also includes
15897   more tests than before, and significant simplifications to which parts
15898   of Tor invoke which others.
15900   (This release contains no code changes since 0.2.7.4-rc.)
15903 Changes in version 0.2.7.4-rc - 2015-10-21
15904   Tor 0.2.7.4-rc is the second release candidate in the 0.2.7 series. It
15905   fixes some important memory leaks, and a scary-looking (but mostly
15906   harmless in practice) invalid-read bug. It also has a few small
15907   bugfixes, notably fixes for compilation and portability on different
15908   platforms. If no further significant bounds are found, the next
15909   release will the the official stable release.
15911   o Major bugfixes (security, correctness):
15912     - Fix an error that could cause us to read 4 bytes before the
15913       beginning of an openssl string. This bug could be used to cause
15914       Tor to crash on systems with unusual malloc implementations, or
15915       systems with unusual hardening installed. Fixes bug 17404; bugfix
15916       on 0.2.3.6-alpha.
15918   o Major bugfixes (correctness):
15919     - Fix a use-after-free bug in validate_intro_point_failure(). Fixes
15920       bug 17401; bugfix on 0.2.7.3-rc.
15922   o Major bugfixes (memory leaks):
15923     - Fix a memory leak in ed25519 batch signature checking. Fixes bug
15924       17398; bugfix on 0.2.6.1-alpha.
15925     - Fix a memory leak in rend_cache_failure_entry_free(). Fixes bug
15926       17402; bugfix on 0.2.7.3-rc.
15927     - Fix a memory leak when reading an expired signing key from disk.
15928       Fixes bug 17403; bugfix on 0.2.7.2-rc.
15930   o Minor features (geoIP):
15931     - Update geoip and geoip6 to the October 9 2015 Maxmind GeoLite2
15932       Country database.
15934   o Minor bugfixes (compilation):
15935     - Repair compilation with the most recent (unreleased, alpha)
15936       vesions of OpenSSL 1.1. Fixes part of ticket 17237.
15937     - Fix an integer overflow warning in test_crypto_slow.c. Fixes bug
15938       17251; bugfix on 0.2.7.2-alpha.
15939     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
15940       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
15942   o Minor bugfixes (portability):
15943     - Use libexecinfo on FreeBSD to enable backtrace support. Fixes
15944       part of bug 17151; bugfix on 0.2.5.2-alpha. Patch from
15945       Marcin Cieślak.
15947   o Minor bugfixes (sandbox):
15948     - Add the "hidserv-stats" filename to our sandbox filter for the
15949       HiddenServiceStatistics option to work properly. Fixes bug 17354;
15950       bugfix on 0.2.6.2-alpha. Patch from David Goulet.
15952   o Minor bugfixes (testing):
15953     - Add unit tests for get_interface_address* failure cases. Fixes bug
15954       17173; bugfix on 0.2.7.3-rc. Patch by fk/teor.
15955     - Fix breakage when running 'make check' with BSD make. Fixes bug
15956       17154; bugfix on 0.2.7.3-rc. Patch by Marcin Cieślak.
15957     - Make the get_ifaddrs_* unit tests more tolerant of different
15958       network configurations. (Don't assume every test box has an IPv4
15959       address, and don't assume every test box has a non-localhost
15960       address.) Fixes bug 17255; bugfix on 0.2.7.3-rc. Patch by "teor".
15961     - Skip backtrace tests when backtrace support is not compiled in.
15962       Fixes part of bug 17151; bugfix on 0.2.7.1-alpha. Patch from
15963       Marcin Cieślak.
15965   o Documentation:
15966     - Fix capitalization of SOCKS in sample torrc. Closes ticket 15609.
15967     - Note that HiddenServicePorts can take a unix domain socket. Closes
15968       ticket 17364.
15971 Changes in version 0.2.7.3-rc - 2015-09-25
15972   Tor 0.2.7.3-rc is the first release candidate in the 0.2.7 series. It
15973   contains numerous usability fixes for Ed25519 keys, safeguards against
15974   several misconfiguration problems, significant simplifications to
15975   Tor's callgraph, and numerous bugfixes and small features.
15977   This is the most tested release of Tor to date. The unit tests cover
15978   39.40% of the code, and the integration tests (accessible with "make
15979   test-full-online", requiring stem and chutney and a network
15980   connection) raise the coverage to 64.49%.
15982   o Major features (security, hidden services):
15983     - Hidden services, if using the EntryNodes option, are required to
15984       use more than one EntryNode, in order to avoid a guard discovery
15985       attack. (This would only affect people who had configured hidden
15986       services and manually specified the EntryNodes option with a
15987       single entry-node. The impact was that it would be easy to
15988       remotely identify the guard node used by such a hidden service.
15989       See ticket for more information.) Fixes ticket 14917.
15991   o Major features (Ed25519 keys, keypinning):
15992     - The key-pinning option on directory authorities is now advisory-
15993       only by default. In a future version, or when the AuthDirPinKeys
15994       option is set, pins are enforced again. Disabling key-pinning
15995       seemed like a good idea so that we can survive the fallout of any
15996       usability problems associated with Ed25519 keys. Closes
15997       ticket 17135.
15999   o Major features (Ed25519 performance):
16000     - Improve the speed of Ed25519 operations and Curve25519 keypair
16001       generation when built targeting 32 bit x86 platforms with SSE2
16002       available. Implements ticket 16535.
16003     - Improve the runtime speed of Ed25519 signature verification by
16004       using Ed25519-donna's batch verification support. Implements
16005       ticket 16533.
16007   o Major features (performance testing):
16008     - The test-network.sh script now supports performance testing.
16009       Requires corresponding chutney performance testing changes. Patch
16010       by "teor". Closes ticket 14175.
16012   o Major features (relay, Ed25519):
16013     - Significant usability improvements for Ed25519 key management. Log
16014       messages are better, and the code can recover from far more
16015       failure conditions. Thanks to "s7r" for reporting and diagnosing
16016       so many of these!
16017     - Add a new OfflineMasterKey option to tell Tor never to try loading
16018       or generating a secret Ed25519 identity key. You can use this in
16019       combination with tor --keygen to manage offline and/or encrypted
16020       Ed25519 keys. Implements ticket 16944.
16021     - Add a --newpass option to allow changing or removing the
16022       passphrase of an encrypted key with tor --keygen. Implements part
16023       of ticket 16769.
16024     - On receiving a HUP signal, check to see whether the Ed25519
16025       signing key has changed, and reload it if so. Closes ticket 16790.
16027   o Major bugfixes (relay, Ed25519):
16028     - Avoid crashing on 'tor --keygen'. Fixes bug 16679; bugfix on
16029       0.2.7.2-alpha. Reported by "s7r".
16030     - Improve handling of expired signing keys with offline master keys.
16031       Fixes bug 16685; bugfix on 0.2.7.2-alpha. Reported by "s7r".
16033   o Minor features (client-side privacy):
16034     - New KeepAliveIsolateSOCKSAuth option to indefinitely extend circuit
16035       lifespan when IsolateSOCKSAuth and streams with SOCKS
16036       authentication are attached to the circuit. This allows
16037       applications like TorBrowser to manage circuit lifetime on their
16038       own. Implements feature 15482.
16039     - When logging malformed hostnames from SOCKS5 requests, respect
16040       SafeLogging configuration. Fixes bug 16891; bugfix on 0.1.1.16-rc.
16042   o Minor features (compilation):
16043     - Give a warning as early as possible when trying to build with an
16044       unsupported OpenSSL version. Closes ticket 16901.
16045     - Fail during configure if we're trying to build against an OpenSSL
16046       built without ECC support. Fixes bug 17109, bugfix on 0.2.7.1-alpha
16047       which started requiring ECC.
16049   o Minor features (geoip):
16050     - Update geoip and geoip6 to the September 3 2015 Maxmind GeoLite2
16051       Country database.
16053   o Minor features (hidden services):
16054     - Relays need to have the Fast flag to get the HSDir flag. As this
16055       is being written, we'll go from 2745 HSDirs down to 2342, a ~14%
16056       drop. This change should make some attacks against the hidden
16057       service directory system harder. Fixes ticket 15963.
16058     - Turn on hidden service statistics collection by setting the torrc
16059       option HiddenServiceStatistics to "1" by default. (This keeps
16060       track only of the fraction of traffic used by hidden services, and
16061       the total number of hidden services in existence.) Closes
16062       ticket 15254.
16063     - Client now uses an introduction point failure cache to know when
16064       to fetch or keep a descriptor in their cache. Previously, failures
16065       were recorded implicitly, but not explicitly remembered. Closes
16066       ticket 16389.
16068   o Minor features (testing, authorities, documentation):
16069     - New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags to
16070       explicitly manage consensus flags in testing networks. Patch by
16071       "robgjansen", modified by "teor". Implements part of ticket 14882.
16073   o Minor bugfixes (security, exit policies):
16074     - ExitPolicyRejectPrivate now also rejects the relay's published
16075       IPv6 address (if any), and any publicly routable IPv4 or IPv6
16076       addresses on any local interfaces. ticket 17027. Patch by "teor".
16077       Fixes bug 17027; bugfix on 0.2.0.11-alpha.
16079   o Minor bug fixes (torrc exit policies):
16080     - In torrc, "accept6 *" and "reject6 *" ExitPolicy lines now only
16081       produce IPv6 wildcard addresses. Previously they would produce
16082       both IPv4 and IPv6 wildcard addresses. Patch by "teor". Fixes part
16083       of bug 16069; bugfix on 0.2.4.7-alpha.
16084     - When parsing torrc ExitPolicies, we now warn for a number of cases
16085       where the user's intent is likely to differ from Tor's actual
16086       behavior. These include: using an IPv4 address with an accept6 or
16087       reject6 line; using "private" on an accept6 or reject6 line; and
16088       including any ExitPolicy lines after accept *:* or reject *:*.
16089       Related to ticket 16069.
16090     - When parsing torrc ExitPolicies, we now issue an info-level
16091       message when expanding an "accept/reject *" line to include both
16092       IPv4 and IPv6 wildcard addresses. Related to ticket 16069.
16093     - In each instance above, usage advice is provided to avoid the
16094       message. Resolves ticket 16069. Patch by "teor". Fixes part of bug
16095       16069; bugfix on 0.2.4.7-alpha.
16097   o Minor bugfixes (authority):
16098     - Don't assign "HSDir" to a router if it isn't Valid and Running.
16099       Fixes bug 16524; bugfix on 0.2.7.2-alpha.
16100     - Downgrade log messages about Ed25519 key issues if they are in old
16101       cached router descriptors. Fixes part of bug 16286; bugfix
16102       on 0.2.7.2-alpha.
16103     - When we find an Ed25519 key issue in a cached descriptor, stop
16104       saying the descriptor was just "uploaded". Fixes another part of
16105       bug 16286; bugfix on 0.2.7.2-alpha.
16107   o Minor bugfixes (control port):
16108     - Repair a warning and a spurious result when getting the maximum
16109       number of file descriptors from the controller. Fixes bug 16697;
16110       bugfix on 0.2.7.2-alpha.
16112   o Minor bugfixes (correctness):
16113     - When calling channel_free_list(), avoid calling smartlist_remove()
16114       while inside a FOREACH loop. This partially reverts commit
16115       17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was
16116       incorrectly removed. Fixes bug 16924; bugfix on 0.2.4.4-alpha.
16118   o Minor bugfixes (documentation):
16119     - Advise users on how to configure separate IPv4 and IPv6 exit
16120       policies in the manpage and sample torrcs. Related to ticket 16069.
16121     - Fix the usage message of tor-resolve(1) so that it no longer lists
16122       the removed -F option. Fixes bug 16913; bugfix on 0.2.2.28-beta.
16123     - Fix an error in the manual page and comments for
16124       TestingDirAuthVoteHSDir[IsStrict], which suggested that a HSDir
16125       required "ORPort connectivity". While this is true, it is in no
16126       way unique to the HSDir flag. Of all the flags, only HSDirs need a
16127       DirPort configured in order for the authorities to assign that
16128       particular flag. Patch by "teor". Fixed as part of 14882; bugfix
16129       on 0.2.6.3-alpha.
16131   o Minor bugfixes (Ed25519):
16132     - Fix a memory leak when reading router descriptors with expired
16133       Ed25519 certificates. Fixes bug 16539; bugfix on 0.2.7.2-alpha.
16135   o Minor bugfixes (linux seccomp2 sandbox):
16136     - Allow bridge authorities to run correctly under the seccomp2
16137       sandbox. Fixes bug 16964; bugfix on 0.2.5.1-alpha.
16138     - Allow routers with ed25519 keys to run correctly under the
16139       seccomp2 sandbox. Fixes bug 16965; bugfix on 0.2.7.2-alpha.
16141   o Minor bugfixes (open file limit):
16142     - Fix set_max_file_descriptors() to set by default the max open file
16143       limit to the current limit when setrlimit() fails. Fixes bug
16144       16274; bugfix on 0.2.0.10-alpha. Patch by dgoulet.
16146   o Minor bugfixes (portability):
16147     - Try harder to normalize the exit status of the Tor process to the
16148       standard-provided range. Fixes bug 16975; bugfix on every version
16149       of Tor ever.
16150     - Check correctly for Windows socket errors in the workqueue
16151       backend. Fixes bug 16741; bugfix on 0.2.6.3-alpha.
16152     - Fix the behavior of crypto_rand_time_range() when told to consider
16153       times before 1970. (These times were possible when running in a
16154       simulated network environment where time()'s output starts at
16155       zero.) Fixes bug 16980; bugfix on 0.2.7.1-alpha.
16156     - Restore correct operation of TLS client-cipher detection on
16157       OpenSSL 1.1. Fixes bug 14047; bugfix on 0.2.7.2-alpha.
16159   o Minor bugfixes (relay):
16160     - Ensure that worker threads actually exit when a fatal error or
16161       shutdown is indicated. This fix doesn't currently affect the
16162       behavior of Tor, because Tor workers never indicates fatal error
16163       or shutdown except in the unit tests. Fixes bug 16868; bugfix
16164       on 0.2.6.3-alpha.
16165     - Unblock threads before releasing the work queue mutex to ensure
16166       predictable scheduling behavior. Fixes bug 16644; bugfix
16167       on 0.2.6.3-alpha.
16169   o Code simplification and refactoring:
16170     - Change the function that's called when we need to retry all
16171       downloads so that it only reschedules the downloads to happen
16172       immediately, rather than launching them all at once itself. This
16173       further simplifies Tor's callgraph.
16174     - Move some format-parsing functions out of crypto.c and
16175       crypto_curve25519.c into crypto_format.c and/or util_format.c.
16176     - Move the client-only parts of init_keys() into a separate
16177       function. Closes ticket 16763.
16178     - Simplify the microdesc_free() implementation so that it no longer
16179       appears (to code analysis tools) to potentially invoke a huge
16180       suite of other microdesc functions.
16181     - Simply the control graph further by deferring the inner body of
16182       directory_all_unreachable() into a callback. Closes ticket 16762.
16183     - Treat the loss of an owning controller as equivalent to a SIGTERM
16184       signal. This removes a tiny amount of duplicated code, and
16185       simplifies our callgraph. Closes ticket 16788.
16186     - When generating an event to send to the controller, we no longer
16187       put the event over the network immediately. Instead, we queue
16188       these events, and use a Libevent callback to deliver them. This
16189       change simplifies Tor's callgraph by reducing the number of
16190       functions from which all other Tor functions are reachable. Closes
16191       ticket 16695.
16192     - Wrap Windows-only C files inside '#ifdef _WIN32' so that tools
16193       that try to scan or compile every file on Unix won't decide that
16194       they are broken.
16195     - Remove the unused "nulterminate" argument from buf_pullup().
16197   o Documentation:
16198     - Recommend a 40 GB example AccountingMax in torrc.sample rather
16199       than a 4 GB max. Closes ticket 16742.
16200     - Include the TUNING document in our source tarball. It is referred
16201       to in the ChangeLog and an error message. Fixes bug 16929; bugfix
16202       on 0.2.6.1-alpha.
16204   o Removed code:
16205     - The internal pure-C tor-fw-helper tool is now removed from the Tor
16206       distribution, in favor of the pure-Go clone available from
16207       https://gitweb.torproject.org/tor-fw-helper.git/ . The libraries
16208       used by the C tor-fw-helper are not, in our opinion, very
16209       confidence- inspiring in their secure-programming techniques.
16210       Closes ticket 13338.
16211     - Remove the code that would try to aggressively flush controller
16212       connections while writing to them. This code was introduced in
16213       0.1.2.7-alpha, in order to keep output buffers from exceeding
16214       their limits. But there is no longer a maximum output buffer size,
16215       and flushing data in this way caused some undesirable recursions
16216       in our call graph. Closes ticket 16480.
16218   o Testing:
16219     - Make "bridges+hs" the default test network. This tests almost all
16220       tor functionality during make test-network, while allowing tests
16221       to succeed on non-IPv6 systems. Requires chutney commit 396da92 in
16222       test-network-bridges-hs. Closes tickets 16945 (tor) and 16946
16223       (chutney). Patches by "teor".
16224     - Autodetect CHUTNEY_PATH if the chutney and Tor sources are side-
16225       by-side in the same parent directory. Closes ticket 16903. Patch
16226       by "teor".
16227     - Use environment variables rather than autoconf substitutions to
16228       send variables from the build system to the test scripts. This
16229       change should be easier to maintain, and cause 'make distcheck' to
16230       work better than before. Fixes bug 17148.
16231     - Add a new set of callgraph analysis scripts that use clang to
16232       produce a list of which Tor functions are reachable from which
16233       other Tor functions. We're planning to use these to help simplify
16234       our code structure by identifying illogical dependencies.
16235     - Add new 'test-full' and 'test-full-online' targets to run all
16236       tests, including integration tests with stem and chutney.
16237     - Make the test-workqueue test work on Windows by initializing the
16238       network before we begin.
16239     - New make target (make test-network-all) to run multiple applicable
16240       chutney test cases. Patch from Teor; closes 16953.
16241     - Unit test dns_resolve(), dns_clip_ttl() and dns_get_expiry_ttl()
16242       functions in dns.c. Implements a portion of ticket 16831.
16243     - When building Tor with testing coverage enabled, run Chutney tests
16244       (if any) using the 'tor-cov' coverage binary.
16245     - When running test-network or test-stem, check for the absence of
16246       stem/chutney before doing any build operations.
16249 Changes in version 0.2.7.2-alpha - 2015-07-27
16250   This, the second alpha in the Tor 0.2.7 series, has a number of new
16251   features, including a way to manually pick the number of introduction
16252   points for hidden services, and the much stronger Ed25519 signing key
16253   algorithm for regular Tor relays (including support for encrypted
16254   offline identity keys in the new algorithm).
16256   Support for Ed25519 on relays is currently limited to signing router
16257   descriptors; later alphas in this series will extend Ed25519 key
16258   support to more parts of the Tor protocol.
16260   o Major features (Ed25519 identity keys, Proposal 220):
16261     - All relays now maintain a stronger identity key, using the Ed25519
16262       elliptic curve signature format. This master key is designed so
16263       that it can be kept offline. Relays also generate an online
16264       signing key, and a set of other Ed25519 keys and certificates.
16265       These are all automatically regenerated and rotated as needed.
16266       Implements part of ticket 12498.
16267     - Directory authorities now vote on Ed25519 identity keys along with
16268       RSA1024 keys. Implements part of ticket 12498.
16269     - Directory authorities track which Ed25519 identity keys have been
16270       used with which RSA1024 identity keys, and do not allow them to
16271       vary freely. Implements part of ticket 12498.
16272     - Microdescriptors now include Ed25519 identity keys. Implements
16273       part of ticket 12498.
16274     - Add support for offline encrypted Ed25519 master keys. To use this
16275       feature on your tor relay, run "tor --keygen" to make a new master
16276       key (or to make a new signing key if you already have a master
16277       key). Closes ticket 13642.
16279   o Major features (Hidden services):
16280     - Add the torrc option HiddenServiceNumIntroductionPoints, to
16281       specify a fixed number of introduction points. Its maximum value
16282       is 10 and default is 3. Using this option can increase a hidden
16283       service's reliability under load, at the cost of making it more
16284       visible that the hidden service is facing extra load. Closes
16285       ticket 4862.
16286     - Remove the adaptive algorithm for choosing the number of
16287       introduction points, which used to change the number of
16288       introduction points (poorly) depending on the number of
16289       connections the HS sees. Closes ticket 4862.
16291   o Major features (onion key cross-certification):
16292     - Relay descriptors now include signatures of their own identity
16293       keys, made using the TAP and ntor onion keys. These signatures
16294       allow relays to prove ownership of their own onion keys. Because
16295       of this change, microdescriptors will no longer need to include
16296       RSA identity keys. Implements proposal 228; closes ticket 12499.
16298   o Major features (performance):
16299     - Improve the runtime speed of Ed25519 operations by using the
16300       public-domain Ed25519-donna by Andrew M. ("floodyberry").
16301       Implements ticket 16467.
16302     - Improve the runtime speed of the ntor handshake by using an
16303       optimized curve25519 basepoint scalarmult implementation from the
16304       public-domain Ed25519-donna by Andrew M. ("floodyberry"), based on
16305       ideas by Adam Langley. Implements ticket 9663.
16307   o Major bugfixes (client-side privacy, also in 0.2.6.9):
16308     - Properly separate out each SOCKSPort when applying stream
16309       isolation. The error occurred because each port's session group
16310       was being overwritten by a default value when the listener
16311       connection was initialized. Fixes bug 16247; bugfix on
16312       0.2.6.3-alpha. Patch by "jojelino".
16314   o Major bugfixes (hidden service clients, stability, also in 0.2.6.10):
16315     - Stop refusing to store updated hidden service descriptors on a
16316       client. This reverts commit 9407040c59218 (which indeed fixed bug
16317       14219, but introduced a major hidden service reachability
16318       regression detailed in bug 16381). This is a temporary fix since
16319       we can live with the minor issue in bug 14219 (it just results in
16320       some load on the network) but the regression of 16381 is too much
16321       of a setback. First-round fix for bug 16381; bugfix
16322       on 0.2.6.3-alpha.
16324   o Major bugfixes (hidden services):
16325     - When cannibalizing a circuit for an introduction point, always
16326       extend to the chosen exit node (creating a 4 hop circuit).
16327       Previously Tor would use the current circuit exit node, which
16328       changed the original choice of introduction point, and could cause
16329       the hidden service to skip excluded introduction points or
16330       reconnect to a skipped introduction point. Fixes bug 16260; bugfix
16331       on 0.1.0.1-rc.
16333   o Major bugfixes (open file limit):
16334     - The open file limit wasn't checked before calling
16335       tor_accept_socket_nonblocking(), which would make Tor exceed the
16336       limit. Now, before opening a new socket, Tor validates the open
16337       file limit just before, and if the max has been reached, return an
16338       error. Fixes bug 16288; bugfix on 0.1.1.1-alpha.
16340   o Major bugfixes (stability, also in 0.2.6.10):
16341     - Stop crashing with an assertion failure when parsing certain kinds
16342       of malformed or truncated microdescriptors. Fixes bug 16400;
16343       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
16344       by "cypherpunks_backup".
16345     - Stop random client-side assertion failures that could occur when
16346       connecting to a busy hidden service, or connecting to a hidden
16347       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
16348       on 0.1.0.1-rc.
16350   o Minor features (directory authorities, security, also in 0.2.6.9):
16351     - The HSDir flag given by authorities now requires the Stable flag.
16352       For the current network, this results in going from 2887 to 2806
16353       HSDirs. Also, it makes it harder for an attacker to launch a sybil
16354       attack by raising the effort for a relay to become Stable to
16355       require at the very least 7 days, while maintaining the 96 hours
16356       uptime requirement for HSDir. Implements ticket 8243.
16358   o Minor features (client):
16359     - Relax the validation of hostnames in SOCKS5 requests, allowing the
16360       character '_' to appear, in order to cope with domains observed in
16361       the wild that are serving non-RFC compliant records. Resolves
16362       ticket 16430.
16363     - Relax the validation done to hostnames in SOCKS5 requests, and
16364       allow a single trailing '.' to cope with clients that pass FQDNs
16365       using that syntax to explicitly indicate that the domain name is
16366       fully-qualified. Fixes bug 16674; bugfix on 0.2.6.2-alpha.
16367     - Add GroupWritable and WorldWritable options to unix-socket based
16368       SocksPort and ControlPort options. These options apply to a single
16369       socket, and override {Control,Socks}SocketsGroupWritable. Closes
16370       ticket 15220.
16372   o Minor features (control protocol):
16373     - Support network-liveness GETINFO key and NETWORK_LIVENESS event in
16374       the control protocol. Resolves ticket 15358.
16376   o Minor features (directory authorities):
16377     - Directory authorities no longer vote against the "Fast", "Stable",
16378       and "HSDir" flags just because they were going to vote against
16379       "Running": if the consensus turns out to be that the router was
16380       running, then the authority's vote should count. Patch from Peter
16381       Retzlaff; closes issue 8712.
16383   o Minor features (geoip, also in 0.2.6.10):
16384     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
16385     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
16387   o Minor features (hidden services):
16388     - Add the new options "HiddenServiceMaxStreams" and
16389       "HiddenServiceMaxStreamsCloseCircuit" to allow hidden services to
16390       limit the maximum number of simultaneous streams per circuit, and
16391       optionally tear down the circuit when the limit is exceeded. Part
16392       of ticket 16052.
16394   o Minor features (portability):
16395     - Use C99 variadic macros when the compiler is not GCC. This avoids
16396       failing compilations on MSVC, and fixes a log-file-based race
16397       condition in our old workarounds. Original patch from Gisle Vanem.
16399   o Minor bugfixes (compilation, also in 0.2.6.9):
16400     - Build with --enable-systemd correctly when libsystemd is
16401       installed, but systemd is not. Fixes bug 16164; bugfix on
16402       0.2.6.3-alpha. Patch from Peter Palfrader.
16404   o Minor bugfixes (controller):
16405     - Add the descriptor ID in each HS_DESC control event. It was
16406       missing, but specified in control-spec.txt. Fixes bug 15881;
16407       bugfix on 0.2.5.2-alpha.
16409   o Minor bugfixes (crypto error-handling, also in 0.2.6.10):
16410     - Check for failures from crypto_early_init, and refuse to continue.
16411       A previous typo meant that we could keep going with an
16412       uninitialized crypto library, and would have OpenSSL initialize
16413       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
16414       when implementing ticket 4900. Patch by "teor".
16416   o Minor bugfixes (hidden services):
16417     - Fix a crash when reloading configuration while at least one
16418       configured and one ephemeral hidden service exists. Fixes bug
16419       16060; bugfix on 0.2.7.1-alpha.
16420     - Avoid crashing with a double-free bug when we create an ephemeral
16421       hidden service but adding it fails for some reason. Fixes bug
16422       16228; bugfix on 0.2.7.1-alpha.
16424   o Minor bugfixes (Linux seccomp2 sandbox):
16425     - Use the sandbox in tor_open_cloexec whether or not O_CLOEXEC is
16426       defined. Patch by "teor". Fixes bug 16515; bugfix on 0.2.3.1-alpha.
16428   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.10):
16429     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
16430       these when eventfd2() support is missing. Fixes bug 16363; bugfix
16431       on 0.2.6.3-alpha. Patch from "teor".
16433   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.9):
16434     - Fix sandboxing to work when running as a relay, by allowing the
16435       renaming of secret_id_key, and allowing the eventfd2 and futex
16436       syscalls. Fixes bug 16244; bugfix on 0.2.6.1-alpha. Patch by
16437       Peter Palfrader.
16438     - Allow systemd connections to work with the Linux seccomp2 sandbox
16439       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
16440       Peter Palfrader.
16442   o Minor bugfixes (relay):
16443     - Fix a rarely-encountered memory leak when failing to initialize
16444       the thread pool. Fixes bug 16631; bugfix on 0.2.6.3-alpha. Patch
16445       from "cypherpunks".
16447   o Minor bugfixes (systemd):
16448     - Fix an accidental formatting error that broke the systemd
16449       configuration file. Fixes bug 16152; bugfix on 0.2.7.1-alpha.
16450     - Tor's systemd unit file no longer contains extraneous spaces.
16451       These spaces would sometimes confuse tools like deb-systemd-
16452       helper. Fixes bug 16162; bugfix on 0.2.5.5-alpha.
16454   o Minor bugfixes (tests):
16455     - Use the configured Python executable when running test-stem-full.
16456       Fixes bug 16470; bugfix on 0.2.7.1-alpha.
16458   o Minor bugfixes (tests, also in 0.2.6.9):
16459     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
16460       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
16462   o Minor bugfixes (threads, comments):
16463     - Always initialize return value in compute_desc_id in rendcommon.c
16464       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
16465     - Check for NULL values in getinfo_helper_onions(). Patch by "teor".
16466       Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
16467     - Remove undefined directive-in-macro in test_util_writepid clang
16468       3.7 complains that using a preprocessor directive inside a macro
16469       invocation in test_util_writepid in test_util.c is undefined.
16470       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
16472   o Code simplification and refactoring:
16473     - Define WINVER and _WIN32_WINNT centrally, in orconfig.h, in order
16474       to ensure they remain consistent and visible everywhere.
16475     - Remove some vestigial workarounds for the MSVC6 compiler. We
16476       haven't supported that in ages.
16477     - The link authentication code has been refactored for better
16478       testability and reliability. It now uses code generated with the
16479       "trunnel" binary encoding generator, to reduce the risk of bugs
16480       due to programmer error. Done as part of ticket 12498.
16482   o Documentation:
16483     - Include a specific and (hopefully) accurate documentation of the
16484       torrc file's meta-format in doc/torrc_format.txt. This is mainly
16485       of interest to people writing programs to parse or generate torrc
16486       files. This document is not a commitment to long-term
16487       compatibility; some aspects of the current format are a bit
16488       ridiculous. Closes ticket 2325.
16490   o Removed features:
16491     - Tor no longer supports copies of OpenSSL that are missing support
16492       for Elliptic Curve Cryptography. (We began using ECC when
16493       available in 0.2.4.8-alpha, for more safe and efficient key
16494       negotiation.) In particular, support for at least one of P256 or
16495       P224 is now required, with manual configuration needed if only
16496       P224 is available. Resolves ticket 16140.
16497     - Tor no longer supports versions of OpenSSL before 1.0. (If you are
16498       on an operating system that has not upgraded to OpenSSL 1.0 or
16499       later, and you compile Tor from source, you will need to install a
16500       more recent OpenSSL to link Tor against.) These versions of
16501       OpenSSL are still supported by the OpenSSL, but the numerous
16502       cryptographic improvements in later OpenSSL releases makes them a
16503       clear choice. Resolves ticket 16034.
16504     - Remove the HidServDirectoryV2 option. Now all relays offer to
16505       store hidden service descriptors. Related to 16543.
16506     - Remove the VoteOnHidServDirectoriesV2 option, since all
16507       authorities have long set it to 1. Closes ticket 16543.
16509   o Testing:
16510     - Document use of coverity, clang static analyzer, and clang dynamic
16511       undefined behavior and address sanitizers in doc/HACKING. Include
16512       detailed usage instructions in the blacklist. Patch by "teor".
16513       Closes ticket 15817.
16514     - The link authentication protocol code now has extensive tests.
16515     - The relay descriptor signature testing code now has
16516       extensive tests.
16517     - The test_workqueue program now runs faster, and is enabled by
16518       default as a part of "make check".
16519     - Now that OpenSSL has its own scrypt implementation, add an unit
16520       test that checks for interoperability between libscrypt_scrypt()
16521       and OpenSSL's EVP_PBE_scrypt() so that we could not use libscrypt
16522       and rely on EVP_PBE_scrypt() whenever possible. Resolves
16523       ticket 16189.
16526 Changes in version 0.2.6.10 - 2015-07-12
16527   Tor version 0.2.6.10 fixes some significant stability and hidden
16528   service client bugs, bulletproofs the cryptography init process, and
16529   fixes a bug when using the sandbox code with some older versions of
16530   Linux. Everyone running an older version, especially an older version
16531   of 0.2.6, should upgrade.
16533   o Major bugfixes (hidden service clients, stability):
16534     - Stop refusing to store updated hidden service descriptors on a
16535       client. This reverts commit 9407040c59218 (which indeed fixed bug
16536       14219, but introduced a major hidden service reachability
16537       regression detailed in bug 16381). This is a temporary fix since
16538       we can live with the minor issue in bug 14219 (it just results in
16539       some load on the network) but the regression of 16381 is too much
16540       of a setback. First-round fix for bug 16381; bugfix
16541       on 0.2.6.3-alpha.
16543   o Major bugfixes (stability):
16544     - Stop crashing with an assertion failure when parsing certain kinds
16545       of malformed or truncated microdescriptors. Fixes bug 16400;
16546       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
16547       by "cypherpunks_backup".
16548     - Stop random client-side assertion failures that could occur when
16549       connecting to a busy hidden service, or connecting to a hidden
16550       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
16551       on 0.1.0.1-rc.
16553   o Minor features (geoip):
16554     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
16555     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
16557   o Minor bugfixes (crypto error-handling):
16558     - Check for failures from crypto_early_init, and refuse to continue.
16559       A previous typo meant that we could keep going with an
16560       uninitialized crypto library, and would have OpenSSL initialize
16561       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
16562       when implementing ticket 4900. Patch by "teor".
16564   o Minor bugfixes (Linux seccomp2 sandbox):
16565     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
16566       these when eventfd2() support is missing. Fixes bug 16363; bugfix
16567       on 0.2.6.3-alpha. Patch from "teor".
16570 Changes in version 0.2.6.9 - 2015-06-11
16571   Tor 0.2.6.9 fixes a regression in the circuit isolation code, increases the
16572   requirements for receiving an HSDir flag, and addresses some other small
16573   bugs in the systemd and sandbox code. Clients using circuit isolation
16574   should upgrade; all directory authorities should upgrade.
16576   o Major bugfixes (client-side privacy):
16577     - Properly separate out each SOCKSPort when applying stream
16578       isolation. The error occurred because each port's session group was
16579       being overwritten by a default value when the listener connection
16580       was initialized. Fixes bug 16247; bugfix on 0.2.6.3-alpha. Patch
16581       by "jojelino".
16583   o Minor feature (directory authorities, security):
16584     - The HSDir flag given by authorities now requires the Stable flag.
16585       For the current network, this results in going from 2887 to 2806
16586       HSDirs. Also, it makes it harder for an attacker to launch a sybil
16587       attack by raising the effort for a relay to become Stable which
16588       takes at the very least 7 days to do so and by keeping the 96
16589       hours uptime requirement for HSDir. Implements ticket 8243.
16591   o Minor bugfixes (compilation):
16592     - Build with --enable-systemd correctly when libsystemd is
16593       installed, but systemd is not. Fixes bug 16164; bugfix on
16594       0.2.6.3-alpha. Patch from Peter Palfrader.
16596   o Minor bugfixes (Linux seccomp2 sandbox):
16597     - Fix sandboxing to work when running as a relaymby renaming of
16598       secret_id_key, and allowing the eventfd2 and futex syscalls. Fixes
16599       bug 16244; bugfix on 0.2.6.1-alpha. Patch by Peter Palfrader.
16600     - Allow systemd connections to work with the Linux seccomp2 sandbox
16601       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
16602       Peter Palfrader.
16604   o Minor bugfixes (tests):
16605     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
16606       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
16609 Changes in version 0.2.6.8 - 2015-05-21
16610   Tor 0.2.6.8 fixes a bit of dodgy code in parsing INTRODUCE2 cells, and
16611   fixes an authority-side bug in assigning the HSDir flag. All directory
16612   authorities should upgrade.
16614   o Major bugfixes (hidden services, backport from 0.2.7.1-alpha):
16615     - Revert commit that made directory authorities assign the HSDir
16616       flag to relays without a DirPort; this was bad because such relays
16617       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
16618       on 0.2.6.3-alpha.
16620   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
16621     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
16622       a client authorized hidden service. Fixes bug 15823; bugfix
16623       on 0.2.1.6-alpha.
16625   o Minor features (geoip):
16626     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
16627     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
16628       Country database.
16631 Changes in version 0.2.7.1-alpha - 2015-05-12
16632   Tor 0.2.7.1-alpha is the first alpha release in its series. It
16633   includes numerous small features and bugfixes against previous Tor
16634   versions, and numerous small infrastructure improvements. The most
16635   notable features are several new ways for controllers to interact with
16636   the hidden services subsystem.
16638   o New system requirements:
16639     - Tor no longer includes workarounds to support Libevent versions
16640       before 1.3e. Libevent 2.0 or later is recommended. Closes
16641       ticket 15248.
16643   o Major features (controller):
16644     - Add the ADD_ONION and DEL_ONION commands that allow the creation
16645       and management of hidden services via the controller. Closes
16646       ticket 6411.
16647     - New "GETINFO onions/current" and "GETINFO onions/detached"
16648       commands to get information about hidden services created via the
16649       controller. Part of ticket 6411.
16650     - New HSFETCH command to launch a request for a hidden service
16651       descriptor. Closes ticket 14847.
16652     - New HSPOST command to upload a hidden service descriptor. Closes
16653       ticket 3523. Patch by "DonnchaC".
16655   o Major bugfixes (hidden services):
16656     - Revert commit that made directory authorities assign the HSDir
16657       flag to relays without a DirPort; this was bad because such relays
16658       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
16659       on 0.2.6.3-alpha.
16661   o Minor features (clock-jump tolerance):
16662     - Recover better when our clock jumps back many hours, like might
16663       happen for Tails or Whonix users who start with a very wrong
16664       hardware clock, use Tor to discover a more accurate time, and then
16665       fix their clock. Resolves part of ticket 8766.
16667   o Minor features (command-line interface):
16668     - Make --hash-password imply --hush to prevent unnecessary noise.
16669       Closes ticket 15542. Patch from "cypherpunks".
16670     - Print a warning whenever we find a relative file path being used
16671       as torrc option. Resolves issue 14018.
16673   o Minor features (controller):
16674     - Add DirAuthority lines for default directory authorities to the
16675       output of the "GETINFO config/defaults" command if not already
16676       present. Implements ticket 14840.
16677     - Controllers can now use "GETINFO hs/client/desc/id/..." to
16678       retrieve items from the client's hidden service descriptor cache.
16679       Closes ticket 14845.
16680     - Implement a new controller command "GETINFO status/fresh-relay-
16681       descs" to fetch a descriptor/extrainfo pair that was generated on
16682       demand just for the controller's use. Implements ticket 14784.
16684   o Minor features (DoS-resistance):
16685     - Make it harder for attackers to overload hidden services with
16686       introductions, by blocking multiple introduction requests on the
16687       same circuit. Resolves ticket 15515.
16689   o Minor features (geoip):
16690     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
16691     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
16692       Country database.
16694   o Minor features (HS popularity countermeasure):
16695     - To avoid leaking HS popularity, don't cycle the introduction point
16696       when we've handled a fixed number of INTRODUCE2 cells but instead
16697       cycle it when a random number of introductions is reached, thus
16698       making it more difficult for an attacker to find out the amount of
16699       clients that have used the introduction point for a specific HS.
16700       Closes ticket 15745.
16702   o Minor features (logging):
16703     - Include the Tor version in all LD_BUG log messages, since people
16704       tend to cut and paste those into the bugtracker. Implements
16705       ticket 15026.
16707   o Minor features (pluggable transports):
16708     - When launching managed pluggable transports on Linux systems,
16709       attempt to have the kernel deliver a SIGTERM on tor exit if the
16710       pluggable transport process is still running. Resolves
16711       ticket 15471.
16712     - When launching managed pluggable transports, setup a valid open
16713       stdin in the child process that can be used to detect if tor has
16714       terminated. The "TOR_PT_EXIT_ON_STDIN_CLOSE" environment variable
16715       can be used by implementations to detect this new behavior.
16716       Resolves ticket 15435.
16718   o Minor features (testing):
16719     - Add a test to verify that the compiler does not eliminate our
16720       memwipe() implementation. Closes ticket 15377.
16721     - Add make rule `check-changes` to verify the format of changes
16722       files. Closes ticket 15180.
16723     - Add unit tests for control_event_is_interesting(). Add a compile-
16724       time check that the number of events doesn't exceed the capacity
16725       of control_event_t.event_mask. Closes ticket 15431, checks for
16726       bugs similar to 13085. Patch by "teor".
16727     - Command-line argument tests moved to Stem. Resolves ticket 14806.
16728     - Integrate the ntor, backtrace, and zero-length keys tests into the
16729       automake test suite. Closes ticket 15344.
16730     - Remove assertions during builds to determine Tor's test coverage.
16731       We don't want to trigger these even in assertions, so including
16732       them artificially makes our branch coverage look worse than it is.
16733       This patch provides the new test-stem-full and coverage-html-full
16734       configure options. Implements ticket 15400.
16736   o Minor bugfixes (build):
16737     - Improve out-of-tree builds by making non-standard rules work and
16738       clean up additional files and directories. Fixes bug 15053; bugfix
16739       on 0.2.7.0-alpha.
16741   o Minor bugfixes (command-line interface):
16742     - When "--quiet" is provided along with "--validate-config", do not
16743       write anything to stdout on success. Fixes bug 14994; bugfix
16744       on 0.2.3.3-alpha.
16745     - When complaining about bad arguments to "--dump-config", use
16746       stderr, not stdout.
16748   o Minor bugfixes (configuration, unit tests):
16749     - Only add the default fallback directories when the DirAuthorities,
16750       AlternateDirAuthority, and FallbackDir directory config options
16751       are set to their defaults. The default fallback directory list is
16752       currently empty, this fix will only change tor's behavior when it
16753       has default fallback directories. Includes unit tests for
16754       consider_adding_dir_servers(). Fixes bug 15642; bugfix on
16755       90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor".
16757   o Minor bugfixes (correctness):
16758     - For correctness, avoid modifying a constant string in
16759       handle_control_postdescriptor. Fixes bug 15546; bugfix
16760       on 0.1.1.16-rc.
16761     - Remove side-effects from tor_assert() calls. This was harmless,
16762       because we never disable assertions, but it is bad style and
16763       unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36,
16764       and 0.2.0.10.
16766   o Minor bugfixes (hidden service):
16767     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
16768       a client authorized hidden service. Fixes bug 15823; bugfix
16769       on 0.2.1.6-alpha.
16770     - Remove an extraneous newline character from the end of hidden
16771       service descriptors. Fixes bug 15296; bugfix on 0.2.0.10-alpha.
16773   o Minor bugfixes (interface):
16774     - Print usage information for --dump-config when it is used without
16775       an argument. Also, fix the error message to use different wording
16776       and add newline at the end. Fixes bug 15541; bugfix
16777       on 0.2.5.1-alpha.
16779   o Minor bugfixes (logs):
16780     - When building Tor under Clang, do not include an extra set of
16781       parentheses in log messages that include function names. Fixes bug
16782       15269; bugfix on every released version of Tor when compiled with
16783       recent enough Clang.
16785   o Minor bugfixes (network):
16786     - When attempting to use fallback technique for network interface
16787       lookup, disregard loopback and multicast addresses since they are
16788       unsuitable for public communications.
16790   o Minor bugfixes (statistics):
16791     - Disregard the ConnDirectionStatistics torrc options when Tor is
16792       not a relay since in that mode of operation no sensible data is
16793       being collected and because Tor might run into measurement hiccups
16794       when running as a client for some time, then becoming a relay.
16795       Fixes bug 15604; bugfix on 0.2.2.35.
16797   o Minor bugfixes (test networks):
16798     - When self-testing reachability, use ExtendAllowPrivateAddresses to
16799       determine if local/private addresses imply reachability. The
16800       previous fix used TestingTorNetwork, which implies
16801       ExtendAllowPrivateAddresses, but this excluded rare configurations
16802       where ExtendAllowPrivateAddresses is set but TestingTorNetwork is
16803       not. Fixes bug 15771; bugfix on 0.2.6.1-alpha. Patch by "teor",
16804       issue discovered by CJ Ess.
16806   o Minor bugfixes (testing):
16807     - Check for matching value in server response in ntor_ref.py. Fixes
16808       bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed
16809       by "joelanders".
16810     - Set the severity correctly when testing
16811       get_interface_addresses_ifaddrs() and
16812       get_interface_addresses_win32(), so that the tests fail gracefully
16813       instead of triggering an assertion. Fixes bug 15759; bugfix on
16814       0.2.6.3-alpha. Reported by Nicolas Derive.
16816   o Code simplification and refactoring:
16817     - Move the hacky fallback code out of get_interface_address6() into
16818       separate function and get it covered with unit-tests. Resolves
16819       ticket 14710.
16820     - Refactor hidden service client-side cache lookup to intelligently
16821       report its various failure cases, and disentangle failure cases
16822       involving a lack of introduction points. Closes ticket 14391.
16823     - Use our own Base64 encoder instead of OpenSSL's, to allow more
16824       control over the output. Part of ticket 15652.
16826   o Documentation:
16827     - Improve the descriptions of statistics-related torrc options in
16828       the manpage to describe rationale and possible uses cases. Fixes
16829       issue 15550.
16830     - Improve the layout and formatting of ./configure --help messages.
16831       Closes ticket 15024. Patch from "cypherpunks".
16832     - Standardize on the term "server descriptor" in the manual page.
16833       Previously, we had used "router descriptor", "server descriptor",
16834       and "relay descriptor" interchangeably. Part of ticket 14987.
16836   o Removed code:
16837     - Remove `USE_OPENSSL_BASE64` and the corresponding fallback code
16838       and always use the internal Base64 decoder. The internal decoder
16839       has been part of tor since 0.2.0.10-alpha, and no one should
16840       be using the OpenSSL one. Part of ticket 15652.
16841     - Remove the 'tor_strclear()' function; use memwipe() instead.
16842       Closes ticket 14922.
16844   o Removed features:
16845     - Remove the (seldom-used) DynamicDHGroups feature. For anti-
16846       fingerprinting we now recommend pluggable transports; for forward-
16847       secrecy in TLS, we now use the P-256 group. Closes ticket 13736.
16848     - Remove the undocumented "--digests" command-line option. It
16849       complicated our build process, caused subtle build issues on
16850       multiple platforms, and is now redundant since we started
16851       including git version identifiers. Closes ticket 14742.
16852     - Tor no longer contains checks for ancient directory cache versions
16853       that didn't know about microdescriptors.
16854     - Tor no longer contains workarounds for stat files generated by
16855       super-old versions of Tor that didn't choose guards sensibly.
16858 Changes in version 0.2.4.27 - 2015-04-06
16859   Tor 0.2.4.27 backports two fixes from 0.2.6.7 for security issues that
16860   could be used by an attacker to crash hidden services, or crash clients
16861   visiting hidden services. Hidden services should upgrade as soon as
16862   possible; clients should upgrade whenever packages become available.
16864   This release also backports a simple improvement to make hidden
16865   services a bit less vulnerable to denial-of-service attacks.
16867   o Major bugfixes (security, hidden service):
16868     - Fix an issue that would allow a malicious client to trigger an
16869       assertion failure and halt a hidden service. Fixes bug 15600;
16870       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
16871     - Fix a bug that could cause a client to crash with an assertion
16872       failure when parsing a malformed hidden service descriptor. Fixes
16873       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
16875   o Minor features (DoS-resistance, hidden service):
16876     - Introduction points no longer allow multiple INTRODUCE1 cells to
16877       arrive on the same circuit. This should make it more expensive for
16878       attackers to overwhelm hidden services with introductions.
16879       Resolves ticket 15515.
16882 Changes in version 0.2.5.12 - 2015-04-06
16883   Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that
16884   could be used by an attacker to crash hidden services, or crash clients
16885   visiting hidden services. Hidden services should upgrade as soon as
16886   possible; clients should upgrade whenever packages become available.
16888   This release also backports a simple improvement to make hidden
16889   services a bit less vulnerable to denial-of-service attacks.
16891   o Major bugfixes (security, hidden service):
16892     - Fix an issue that would allow a malicious client to trigger an
16893       assertion failure and halt a hidden service. Fixes bug 15600;
16894       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
16895     - Fix a bug that could cause a client to crash with an assertion
16896       failure when parsing a malformed hidden service descriptor. Fixes
16897       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
16899   o Minor features (DoS-resistance, hidden service):
16900     - Introduction points no longer allow multiple INTRODUCE1 cells to
16901       arrive on the same circuit. This should make it more expensive for
16902       attackers to overwhelm hidden services with introductions.
16903       Resolves ticket 15515.
16906 Changes in version 0.2.6.7 - 2015-04-06
16907   Tor 0.2.6.7 fixes two security issues that could be used by an
16908   attacker to crash hidden services, or crash clients visiting hidden
16909   services. Hidden services should upgrade as soon as possible; clients
16910   should upgrade whenever packages become available.
16912   This release also contains two simple improvements to make hidden
16913   services a bit less vulnerable to denial-of-service attacks.
16915   o Major bugfixes (security, hidden service):
16916     - Fix an issue that would allow a malicious client to trigger an
16917       assertion failure and halt a hidden service. Fixes bug 15600;
16918       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
16919     - Fix a bug that could cause a client to crash with an assertion
16920       failure when parsing a malformed hidden service descriptor. Fixes
16921       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
16923   o Minor features (DoS-resistance, hidden service):
16924     - Introduction points no longer allow multiple INTRODUCE1 cells to
16925       arrive on the same circuit. This should make it more expensive for
16926       attackers to overwhelm hidden services with introductions.
16927       Resolves ticket 15515.
16928     - Decrease the amount of reattempts that a hidden service performs
16929       when its rendezvous circuits fail. This reduces the computational
16930       cost for running a hidden service under heavy load. Resolves
16931       ticket 11447.
16934 Changes in version 0.2.6.6 - 2015-03-24
16935   Tor 0.2.6.6 is the first stable release in the 0.2.6 series.
16937   It adds numerous safety, security, correctness, and performance
16938   improvements. Client programs can be configured to use more kinds of
16939   sockets, AutomapHosts works better, the multithreading backend is
16940   improved, cell transmission is refactored, test coverage is much
16941   higher, more denial-of-service attacks are handled, guard selection is
16942   improved to handle long-term guards better, pluggable transports
16943   should work a bit better, and some annoying hidden service performance
16944   bugs should be addressed.
16946   o Minor bugfixes (portability):
16947     - Use the correct datatype in the SipHash-2-4 function to prevent
16948       compilers from assuming any sort of alignment. Fixes bug 15436;
16949       bugfix on 0.2.5.3-alpha.
16951 Changes in version 0.2.6.5-rc - 2015-03-18
16952   Tor 0.2.6.5-rc is the second and (hopefully) last release candidate in
16953   the 0.2.6. It fixes a small number of bugs found in 0.2.6.4-rc.
16955   o Major bugfixes (client):
16956     - Avoid crashing when making certain configuration option changes on
16957       clients. Fixes bug 15245; bugfix on 0.2.6.3-alpha. Reported
16958       by "anonym".
16960   o Major bugfixes (pluggable transports):
16961     - Initialize the extended OR Port authentication cookie before
16962       launching pluggable transports. This prevents a race condition
16963       that occurred when server-side pluggable transports would cache the
16964       authentication cookie before it has been (re)generated. Fixes bug
16965       15240; bugfix on 0.2.5.1-alpha.
16967   o Major bugfixes (portability):
16968     - Do not crash on startup when running on Solaris. Fixes a bug
16969       related to our fix for 9495; bugfix on 0.2.6.1-alpha. Reported
16970       by "ruebezahl".
16972   o Minor features (heartbeat):
16973     - On relays, report how many connections we negotiated using each
16974       version of the Tor link protocols. This information will let us
16975       know if removing support for very old versions of the Tor
16976       protocols is harming the network. Closes ticket 15212.
16978   o Code simplification and refactoring:
16979     - Refactor main loop to extract the 'loop' part. This makes it
16980       easier to run Tor under Shadow. Closes ticket 15176.
16983 Changes in version 0.2.5.11 - 2015-03-17
16984   Tor 0.2.5.11 is the second stable release in the 0.2.5 series.
16986   It backports several bugfixes from the 0.2.6 branch, including a
16987   couple of medium-level security fixes for relays and exit nodes.
16988   It also updates the list of directory authorities.
16990   o Directory authority changes:
16991     - Remove turtles as a directory authority.
16992     - Add longclaw as a new (v3) directory authority. This implements
16993       ticket 13296. This keeps the directory authority count at 9.
16994     - The directory authority Faravahar has a new IP address. This
16995       closes ticket 14487.
16997   o Major bugfixes (crash, OSX, security):
16998     - Fix a remote denial-of-service opportunity caused by a bug in
16999       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
17000       in OSX 10.9.
17002   o Major bugfixes (relay, stability, possible security):
17003     - Fix a bug that could lead to a relay crashing with an assertion
17004       failure if a buffer of exactly the wrong layout was passed to
17005       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
17006       0.2.0.10-alpha. Patch from 'cypherpunks'.
17007     - Do not assert if the 'data' pointer on a buffer is advanced to the
17008       very end of the buffer; log a BUG message instead. Only assert if
17009       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
17011   o Major bugfixes (exit node stability):
17012     - Fix an assertion failure that could occur under high DNS load.
17013       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
17014       diagnosed and fixed by "cypherpunks".
17016   o Major bugfixes (Linux seccomp2 sandbox):
17017     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
17018       crash during attempts to call wait4. Fixes bug 15088; bugfix on
17019       0.2.5.1-alpha. Patch from "sanic".
17021   o Minor features (controller):
17022     - New "GETINFO bw-event-cache" to get information about recent
17023       bandwidth events. Closes ticket 14128. Useful for controllers to
17024       get recent bandwidth history after the fix for ticket 13988.
17026   o Minor features (geoip):
17027     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
17028     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
17029       Country database.
17031   o Minor bugfixes (client, automapping):
17032     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
17033       no value follows the option. Fixes bug 14142; bugfix on
17034       0.2.4.7-alpha. Patch by "teor".
17035     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
17036       14195; bugfix on 0.1.0.1-rc.
17038   o Minor bugfixes (compilation):
17039     - Build without warnings with the stock OpenSSL srtp.h header, which
17040       has a duplicate declaration of SSL_get_selected_srtp_profile().
17041       Fixes bug 14220; this is OpenSSL's bug, not ours.
17043   o Minor bugfixes (directory authority):
17044     - Allow directory authorities to fetch more data from one another if
17045       they find themselves missing lots of votes. Previously, they had
17046       been bumping against the 10 MB queued data limit. Fixes bug 14261;
17047       bugfix on 0.1.2.5-alpha.
17048     - Enlarge the buffer to read bwauth generated files to avoid an
17049       issue when parsing the file in dirserv_read_measured_bandwidths().
17050       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
17052   o Minor bugfixes (statistics):
17053     - Increase period over which bandwidth observations are aggregated
17054       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
17056   o Minor bugfixes (preventative security, C safety):
17057     - When reading a hexadecimal, base-32, or base-64 encoded value from
17058       a string, always overwrite the whole output buffer. This prevents
17059       some bugs where we would look at (but fortunately, not reveal)
17060       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
17061       versions of Tor.
17064 Changes in version 0.2.4.26 - 2015-03-17
17065   Tor 0.2.4.26 includes an updated list of directory authorities.  It
17066   also backports a couple of stability and security bugfixes from 0.2.5
17067   and beyond.
17069   o Directory authority changes:
17070     - Remove turtles as a directory authority.
17071     - Add longclaw as a new (v3) directory authority. This implements
17072       ticket 13296. This keeps the directory authority count at 9.
17073     - The directory authority Faravahar has a new IP address. This
17074       closes ticket 14487.
17076   o Major bugfixes (exit node stability, also in 0.2.6.3-alpha):
17077     - Fix an assertion failure that could occur under high DNS load.
17078       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
17079       diagnosed and fixed by "cypherpunks".
17081   o Major bugfixes (relay, stability, possible security, also in 0.2.6.4-rc):
17082     - Fix a bug that could lead to a relay crashing with an assertion
17083       failure if a buffer of exactly the wrong layout was passed to
17084       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
17085       0.2.0.10-alpha. Patch from 'cypherpunks'.
17086     - Do not assert if the 'data' pointer on a buffer is advanced to the
17087       very end of the buffer; log a BUG message instead. Only assert if
17088       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
17090   o Minor features (geoip):
17091     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
17092     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
17093       Country database.
17095 Changes in version 0.2.6.4-rc - 2015-03-09
17096   Tor 0.2.6.4-alpha fixes an issue in the directory code that an
17097   attacker might be able to use in order to crash certain Tor
17098   directories. It also resolves some minor issues left over from, or
17099   introduced in, Tor 0.2.6.3-alpha or earlier.
17101   o Major bugfixes (crash, OSX, security):
17102     - Fix a remote denial-of-service opportunity caused by a bug in
17103       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
17104       in OSX 10.9.
17106   o Major bugfixes (relay, stability, possible security):
17107     - Fix a bug that could lead to a relay crashing with an assertion
17108       failure if a buffer of exactly the wrong layout is passed to
17109       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
17110       0.2.0.10-alpha. Patch from "cypherpunks".
17111     - Do not assert if the 'data' pointer on a buffer is advanced to the
17112       very end of the buffer; log a BUG message instead. Only assert if
17113       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
17115   o Major bugfixes (FreeBSD IPFW transparent proxy):
17116     - Fix address detection with FreeBSD transparent proxies, when
17117       "TransProxyType ipfw" is in use. Fixes bug 15064; bugfix
17118       on 0.2.5.4-alpha.
17120   o Major bugfixes (Linux seccomp2 sandbox):
17121     - Pass IPPROTO_TCP rather than 0 to socket(), so that the Linux
17122       seccomp2 sandbox doesn't fail. Fixes bug 14989; bugfix
17123       on 0.2.6.3-alpha.
17124     - Allow AF_UNIX hidden services to be used with the seccomp2
17125       sandbox. Fixes bug 15003; bugfix on 0.2.6.3-alpha.
17126     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
17127       crash during attempts to call wait4. Fixes bug 15088; bugfix on
17128       0.2.5.1-alpha. Patch from "sanic".
17130   o Minor features (controller):
17131     - Messages about problems in the bootstrap process now include
17132       information about the server we were trying to connect to when we
17133       noticed the problem. Closes ticket 15006.
17135   o Minor features (geoip):
17136     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
17137     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
17138       Country database.
17140   o Minor features (logs):
17141     - Quiet some log messages in the heartbeat and at startup. Closes
17142       ticket 14950.
17144   o Minor bugfixes (certificate handling):
17145     - If an authority operator accidentally makes a signing certificate
17146       with a future publication time, do not discard its real signing
17147       certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha.
17148     - Remove any old authority certificates that have been superseded
17149       for at least two days. Previously, we would keep superseded
17150       certificates until they expired, if they were published close in
17151       time to the certificate that superseded them. Fixes bug 11454;
17152       bugfix on 0.2.1.8-alpha.
17154   o Minor bugfixes (compilation):
17155     - Fix a compilation warning on s390. Fixes bug 14988; bugfix
17156       on 0.2.5.2-alpha.
17157     - Fix a compilation warning on FreeBSD. Fixes bug 15151; bugfix
17158       on 0.2.6.2-alpha.
17160   o Minor bugfixes (testing):
17161     - Fix endianness issues in unit test for resolve_my_address() to
17162       have it pass on big endian systems. Fixes bug 14980; bugfix on
17163       Tor 0.2.6.3-alpha.
17164     - Avoid a side-effect in a tor_assert() in the unit tests. Fixes bug
17165       15188; bugfix on 0.1.2.3-alpha. Patch from Tom van der Woerdt.
17166     - When running the new 'make test-stem' target, use the configured
17167       python binary. Fixes bug 15037; bugfix on 0.2.6.3-alpha. Patch
17168       from "cypherpunks".
17169     - When running the zero-length-keys tests, do not use the default
17170       torrc file. Fixes bug 15033; bugfix on 0.2.6.3-alpha. Reported
17171       by "reezer".
17173   o Directory authority IP change:
17174     - The directory authority Faravahar has a new IP address. This
17175       closes ticket 14487.
17177   o Removed code:
17178     - Remove some lingering dead code that once supported mempools.
17179       Mempools were disabled by default in 0.2.5, and removed entirely
17180       in 0.2.6.3-alpha. Closes more of ticket 14848; patch
17181       by "cypherpunks".
17184 Changes in version 0.2.6.3-alpha - 2015-02-19
17185   Tor 0.2.6.3-alpha is the third (and hopefully final) alpha release in
17186   the 0.2.6.x series. It introduces support for more kinds of sockets,
17187   makes it harder to accidentally run an exit, improves our
17188   multithreading backend, incorporates several fixes for the
17189   AutomapHostsOnResolve option, and fixes numerous other bugs besides.
17191   If no major regressions or security holes are found in this version,
17192   the next version will be a release candidate.
17194   o Deprecated versions:
17195     - Tor relays older than 0.2.4.18-rc are no longer allowed to
17196       advertise themselves on the network. Closes ticket 13555.
17198   o Major features (security, unix domain sockets):
17199     - Allow SocksPort to be an AF_UNIX Unix Domain Socket. Now high risk
17200       applications can reach Tor without having to create AF_INET or
17201       AF_INET6 sockets, meaning they can completely disable their
17202       ability to make non-Tor network connections. To create a socket of
17203       this type, use "SocksPort unix:/path/to/socket". Implements
17204       ticket 12585.
17205     - Support mapping hidden service virtual ports to AF_UNIX sockets.
17206       The syntax is "HiddenServicePort 80 unix:/path/to/socket".
17207       Implements ticket 11485.
17209   o Major features (changed defaults):
17210     - Prevent relay operators from unintentionally running exits: When a
17211       relay is configured as an exit node, we now warn the user unless
17212       the "ExitRelay" option is set to 1. We warn even more loudly if
17213       the relay is configured with the default exit policy, since this
17214       can indicate accidental misconfiguration. Setting "ExitRelay 0"
17215       stops Tor from running as an exit relay. Closes ticket 10067.
17217   o Major features (directory system):
17218     - When downloading server- or microdescriptors from a directory
17219       server, we no longer launch multiple simultaneous requests to the
17220       same server. This reduces load on the directory servers,
17221       especially when directory guards are in use. Closes ticket 9969.
17222     - When downloading server- or microdescriptors over a tunneled
17223       connection, do not limit the length of our requests to what the
17224       Squid proxy is willing to handle. Part of ticket 9969.
17225     - Authorities can now vote on the correct digests and latest
17226       versions for different software packages. This allows packages
17227       that include Tor to use the Tor authority system as a way to get
17228       notified of updates and their correct digests. Implements proposal
17229       227. Closes ticket 10395.
17231   o Major features (guards):
17232     - Introduce the Guardfraction feature to improves load balancing on
17233       guard nodes. Specifically, it aims to reduce the traffic gap that
17234       guard nodes experience when they first get the Guard flag. This is
17235       a required step if we want to increase the guard lifetime to 9
17236       months or greater.  Closes ticket 9321.
17238   o Major features (performance):
17239     - Make the CPU worker implementation more efficient by avoiding the
17240       kernel and lengthening pipelines. The original implementation used
17241       sockets to transfer data from the main thread to the workers, and
17242       didn't allow any thread to be assigned more than a single piece of
17243       work at once. The new implementation avoids communications
17244       overhead by making requests in shared memory, avoiding kernel IO
17245       where possible, and keeping more requests in flight at once.
17246       Implements ticket 9682.
17248   o Major features (relay):
17249     - Raise the minimum acceptable configured bandwidth rate for bridges
17250       to 50 KiB/sec and for relays to 75 KiB/sec. (The old values were
17251       20 KiB/sec.) Closes ticket 13822.
17253   o Major bugfixes (exit node stability):
17254     - Fix an assertion failure that could occur under high DNS load.
17255       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
17256       diagnosed and fixed by "cypherpunks".
17258   o Major bugfixes (mixed relay-client operation):
17259     - When running as a relay and client at the same time (not
17260       recommended), if we decide not to use a new guard because we want
17261       to retry older guards, only close the locally-originating circuits
17262       passing through that guard. Previously we would close all the
17263       circuits through that guard. Fixes bug 9819; bugfix on
17264       0.2.1.1-alpha. Reported by "skruffy".
17266   o Minor features (build):
17267     - New --disable-system-torrc compile-time option to prevent Tor from
17268       looking for the system-wide torrc or torrc-defaults files.
17269       Resolves ticket 13037.
17271   o Minor features (controller):
17272     - Include SOCKS_USERNAME and SOCKS_PASSWORD values in controller
17273       events so controllers can observe circuit isolation inputs. Closes
17274       ticket 8405.
17275     - ControlPort now supports the unix:/path/to/socket syntax as an
17276       alternative to the ControlSocket option, for consistency with
17277       SocksPort and HiddenServicePort. Closes ticket 14451.
17278     - New "GETINFO bw-event-cache" to get information about recent
17279       bandwidth events. Closes ticket 14128. Useful for controllers to
17280       get recent bandwidth history after the fix for ticket 13988.
17282   o Minor features (Denial of service resistance):
17283     - Count the total number of bytes used storing hidden service
17284       descriptors against the value of MaxMemInQueues. If we're low on
17285       memory, and more than 20% of our memory is used holding hidden
17286       service descriptors, free them until no more than 10% of our
17287       memory holds hidden service descriptors. Free the least recently
17288       fetched descriptors first. Resolves ticket 13806.
17289     - When we have recently been under memory pressure (over 3/4 of
17290       MaxMemInQueues is allocated), then allocate smaller zlib objects
17291       for small requests. Closes ticket 11791.
17293   o Minor features (geoip):
17294     - Update geoip and geoip6 files to the January 7 2015 Maxmind
17295       GeoLite2 Country database.
17297   o Minor features (guard nodes):
17298     - Reduce the time delay before saving guard status to disk from 10
17299       minutes to 30 seconds (or from one hour to 10 minutes if
17300       AvoidDiskWrites is set). Closes ticket 12485.
17302   o Minor features (hidden service):
17303     - Make Sybil attacks against hidden services harder by changing the
17304       minimum time required to get the HSDir flag from 25 hours up to 96
17305       hours. Addresses ticket 14149.
17306     - New option "HiddenServiceAllowUnknownPorts" to allow hidden
17307       services to disable the anti-scanning feature introduced in
17308       0.2.6.2-alpha. With this option not set, a connection to an
17309       unlisted port closes the circuit. With this option set, only a
17310       RELAY_DONE cell is sent. Closes ticket 14084.
17312   o Minor features (interface):
17313     - Implement "-f -" command-line option to read torrc configuration
17314       from standard input, if you don't want to store the torrc file in
17315       the file system. Implements feature 13865.
17317   o Minor features (logging):
17318     - Add a count of unique clients to the bridge heartbeat message.
17319       Resolves ticket 6852.
17320     - Suppress "router info incompatible with extra info" message when
17321       reading extrainfo documents from cache. (This message got loud
17322       around when we closed bug 9812 in 0.2.6.2-alpha.) Closes
17323       ticket 13762.
17324     - Elevate hidden service authorized-client message from DEBUG to
17325       INFO. Closes ticket 14015.
17327   o Minor features (stability):
17328     - Add assertions in our hash-table iteration code to check for
17329       corrupted values that could cause infinite loops. Closes
17330       ticket 11737.
17332   o Minor features (systemd):
17333     - Various improvements and modernizations in systemd hardening
17334       support. Closes ticket 13805. Patch from Craig Andrews.
17336   o Minor features (testing networks):
17337     - Drop the minimum RendPostPeriod on a testing network to 5 seconds,
17338       and the default on a testing network to 2 minutes. Drop the
17339       MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but
17340       keep the default on a testing network at 30 seconds. This reduces
17341       HS bootstrap time to around 25 seconds. Also, change the default
17342       time in test-network.sh to match. Closes ticket 13401. Patch
17343       by "teor".
17344     - Create TestingDirAuthVoteHSDir to correspond to
17345       TestingDirAuthVoteExit/Guard. Ensures that authorities vote the
17346       HSDir flag for the listed relays regardless of uptime or ORPort
17347       connectivity. Respects the value of VoteOnHidServDirectoriesV2.
17348       Partial implementation for ticket 14067. Patch by "teor".
17350   o Minor features (tor2web mode):
17351     - Introduce the config option Tor2webRendezvousPoints, which allows
17352       clients in Tor2webMode to select a specific Rendezvous Point to be
17353       used in HS circuits. This might allow better performance for
17354       Tor2Web nodes. Implements ticket 12844.
17356   o Minor bugfixes (client DNS):
17357     - Report the correct cached DNS expiration times on SOCKS port or in
17358       DNS replies. Previously, we would report everything as "never
17359       expires." Fixes bug 14193; bugfix on 0.2.3.17-beta.
17360     - Avoid a small memory leak when we find a cached answer for a
17361       reverse DNS lookup in a client-side DNS cache. (Remember, client-
17362       side DNS caching is off by default, and is not recommended.) Fixes
17363       bug 14259; bugfix on 0.2.0.1-alpha.
17365   o Minor bugfixes (client, automapping):
17366     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
17367       no value follows the option. Fixes bug 14142; bugfix on
17368       0.2.4.7-alpha. Patch by "teor".
17369     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
17370       14195; bugfix on 0.1.0.1-rc.
17371     - Prevent changes to other options from removing the wildcard value
17372       "." from "AutomapHostsSuffixes". Fixes bug 12509; bugfix
17373       on 0.2.0.1-alpha.
17374     - Allow MapAddress and AutomapHostsOnResolve to work together when
17375       an address is mapped into another address type (like .onion) that
17376       must be automapped at resolve time. Fixes bug 7555; bugfix
17377       on 0.2.0.1-alpha.
17379   o Minor bugfixes (client, bridges):
17380     - When we are using bridges and we had a network connectivity
17381       problem, only retry connecting to our currently configured
17382       bridges, not all bridges we know about and remember using. Fixes
17383       bug 14216; bugfix on 0.2.2.17-alpha.
17385   o Minor bugfixes (client, IPv6):
17386     - Reject socks requests to literal IPv6 addresses when IPv6Traffic
17387       flag is not set; and not because the NoIPv4Traffic flag was set.
17388       Previously we'd looked at the NoIPv4Traffic flag for both types of
17389       literal addresses. Fixes bug 14280; bugfix on 0.2.4.7-alpha.
17391   o Minor bugfixes (compilation):
17392     - The address of an array in the middle of a structure will always
17393       be non-NULL. clang recognises this and complains. Disable the
17394       tautologous and redundant check to silence this warning. Fixes bug
17395       14001; bugfix on 0.2.1.2-alpha.
17396     - Avoid warnings when building with systemd 209 or later. Fixes bug
17397       14072; bugfix on 0.2.6.2-alpha. Patch from "h.venev".
17398     - Compile correctly with (unreleased) OpenSSL 1.1.0 headers.
17399       Addresses ticket 14188.
17400     - Build without warnings with the stock OpenSSL srtp.h header, which
17401       has a duplicate declaration of SSL_get_selected_srtp_profile().
17402       Fixes bug 14220; this is OpenSSL's bug, not ours.
17403     - Do not compile any code related to Tor2Web mode when Tor2Web mode
17404       is not enabled at compile time. Previously, this code was included
17405       in a disabled state. See discussion on ticket 12844.
17406     - Remove the --disable-threads configure option again. It was
17407       accidentally partially reintroduced in 29ac883606d6d. Fixes bug
17408       14819; bugfix on 0.2.6.2-alpha.
17410   o Minor bugfixes (controller):
17411     - Report "down" in response to the "GETINFO entry-guards" command
17412       when relays are down with an unreachable_since value. Previously,
17413       we would report "up". Fixes bug 14184; bugfix on 0.1.2.2-alpha.
17414     - Avoid crashing on a malformed EXTENDCIRCUIT command. Fixes bug
17415       14116; bugfix on 0.2.2.9-alpha.
17416     - Add a code for the END_CIRC_REASON_IP_NOW_REDUNDANT circuit close
17417       reason. Fixes bug 14207; bugfix on 0.2.6.2-alpha.
17419   o Minor bugfixes (directory authority):
17420     - Allow directory authorities to fetch more data from one another if
17421       they find themselves missing lots of votes. Previously, they had
17422       been bumping against the 10 MB queued data limit. Fixes bug 14261;
17423       bugfix on 0.1.2.5-alpha.
17424     - Do not attempt to download extrainfo documents which we will be
17425       unable to validate with a matching server descriptor. Fixes bug
17426       13762; bugfix on 0.2.0.1-alpha.
17427     - Fix a bug that was truncating AUTHDIR_NEWDESC events sent to the
17428       control port. Fixes bug 14953; bugfix on 0.2.0.1-alpha.
17429     - Enlarge the buffer to read bwauth generated files to avoid an
17430       issue when parsing the file in dirserv_read_measured_bandwidths().
17431       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
17433   o Minor bugfixes (file handling):
17434     - Stop failing when key files are zero-length. Instead, generate new
17435       keys, and overwrite the empty key files. Fixes bug 13111; bugfix
17436       on all versions of Tor. Patch by "teor".
17437     - Stop generating a fresh .old RSA onion key file when the .old file
17438       is missing. Fixes part of 13111; bugfix on 0.0.6rc1.
17439     - Avoid overwriting .old key files with empty key files.
17440     - Skip loading zero-length extrainfo store, router store, stats,
17441       state, and key files.
17442     - Avoid crashing when trying to reload a torrc specified as a
17443       relative path with RunAsDaemon turned on. Fixes bug 13397; bugfix
17444       on 0.2.3.11-alpha.
17446   o Minor bugfixes (hidden services):
17447     - Close the introduction circuit when we have no more usable intro
17448       points, instead of waiting for it to time out. This also ensures
17449       that no follow-up HS descriptor fetch is triggered when the
17450       circuit eventually times out. Fixes bug 14224; bugfix on 0.0.6.
17451     - When fetching a hidden service descriptor for a down service that
17452       was recently up, do not keep refetching until we try the same
17453       replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha.
17454     - Successfully launch Tor with a nonexistent hidden service
17455       directory. Our fix for bug 13942 didn't catch this case. Fixes bug
17456       14106; bugfix on 0.2.6.2-alpha.
17458   o Minor bugfixes (logging):
17459     - Avoid crashing when there are more log domains than entries in
17460       domain_list. Bugfix on 0.2.3.1-alpha.
17461     - Add a string representation for LD_SCHED. Fixes bug 14740; bugfix
17462       on 0.2.6.1-alpha.
17463     - Don't log messages to stdout twice when starting up. Fixes bug
17464       13993; bugfix on 0.2.6.1-alpha.
17466   o Minor bugfixes (parsing):
17467     - Stop accepting milliseconds (or other junk) at the end of
17468       descriptor publication times. Fixes bug 9286; bugfix on 0.0.2pre25.
17469     - Support two-number and three-number version numbers correctly, in
17470       case we change the Tor versioning system in the future. Fixes bug
17471       13661; bugfix on 0.0.8pre1.
17473   o Minor bugfixes (path counting):
17474     - When deciding whether the consensus lists any exit nodes, count
17475       the number listed in the consensus, not the number we have
17476       descriptors for. Fixes part of bug 14918; bugfix on 0.2.6.2-alpha.
17477     - When deciding whether we have any exit nodes, only examine
17478       ExitNodes when the ExitNodes option is actually set. Fixes part of
17479       bug 14918; bugfix on 0.2.6.2-alpha.
17480     - Get rid of redundant and possibly scary warnings that we are
17481       missing directory information while we bootstrap. Fixes part of
17482       bug 14918; bugfix on 0.2.6.2-alpha.
17484   o Minor bugfixes (portability):
17485     - Fix the ioctl()-based network interface lookup code so that it
17486       will work on systems that have variable-length struct ifreq, for
17487       example Mac OS X.
17488     - Fix scheduler compilation on targets where char is unsigned. Fixes
17489       bug 14764; bugfix on 0.2.6.2-alpha. Reported by Christian Kujau.
17491   o Minor bugfixes (sandbox):
17492     - Allow glibc fatal errors to be sent to stderr before Tor exits.
17493       Previously, glibc would try to write them to /dev/tty, and the
17494       sandbox would trap the call and make Tor exit prematurely. Fixes
17495       bug 14759; bugfix on 0.2.5.1-alpha.
17497   o Minor bugfixes (shutdown):
17498     - When shutting down, always call event_del() on lingering read or
17499       write events before freeing them. Otherwise, we risk double-frees
17500       or read-after-frees in event_base_free(). Fixes bug 12985; bugfix
17501       on 0.1.0.2-rc.
17503   o Minor bugfixes (small memory leaks):
17504     - Avoid leaking memory when using IPv6 virtual address mappings.
17505       Fixes bug 14123; bugfix on 0.2.4.7-alpha. Patch by Tom van
17506       der Woerdt.
17508   o Minor bugfixes (statistics):
17509     - Increase period over which bandwidth observations are aggregated
17510       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
17512   o Minor bugfixes (systemd support):
17513     - Fix detection and operation of systemd watchdog. Fixes part of bug
17514       14141; bugfix on 0.2.6.2-alpha. Patch from Tomasz Torcz.
17515     - Run correctly under systemd with the RunAsDaemon option set. Fixes
17516       part of bug 14141; bugfix on 0.2.5.7-rc. Patch from Tomasz Torcz.
17517     - Inform the systemd supervisor about more changes in the Tor
17518       process status. Implements part of ticket 14141. Patch from
17519       Tomasz Torcz.
17520     - Cause the "--disable-systemd" option to actually disable systemd
17521       support. Fixes bug 14350; bugfix on 0.2.6.2-alpha. Patch
17522       from "blueness".
17524   o Minor bugfixes (TLS):
17525     - Check more thoroughly throughout the TLS code for possible
17526       unlogged TLS errors. Possible diagnostic or fix for bug 13319.
17528   o Minor bugfixes (transparent proxy):
17529     - Use getsockname, not getsockopt, to retrieve the address for a
17530       TPROXY-redirected connection. Fixes bug 13796; bugfix
17531       on 0.2.5.2-alpha.
17533   o Code simplification and refactoring:
17534     - Move fields related to isolating and configuring client ports into
17535       a shared structure. Previously, they were duplicated across
17536       port_cfg_t, listener_connection_t, and edge_connection_t. Failure
17537       to copy them correctly had been the cause of at least one bug in
17538       the past. Closes ticket 8546.
17539     - Refactor the get_interface_addresses_raw() doom-function into
17540       multiple smaller and simpler subfunctions. Cover the resulting
17541       subfunctions with unit-tests. Fixes a significant portion of
17542       issue 12376.
17543     - Remove workaround in dirserv_thinks_router_is_hs_dir() that was
17544       only for version <= 0.2.2.24 which is now deprecated. Closes
17545       ticket 14202.
17546     - Remove a test for a long-defunct broken version-one
17547       directory server.
17549   o Documentation:
17550     - Adding section on OpenBSD to our TUNING document. Thanks to mmcc
17551       for writing the OpenBSD-specific tips. Resolves ticket 13702.
17552     - Make the tor-resolve documentation match its help string and its
17553       options. Resolves part of ticket 14325.
17554     - Log a more useful error message from tor-resolve when failing to
17555       look up a hidden service address. Resolves part of ticket 14325.
17557   o Downgraded warnings:
17558     - Don't warn when we've attempted to contact a relay using the wrong
17559       ntor onion key. Closes ticket 9635.
17561   o Removed features:
17562     - To avoid confusion with the "ExitRelay" option, "ExitNode" is no
17563       longer silently accepted as an alias for "ExitNodes".
17564     - The --enable-mempool and --enable-buf-freelists options, which
17565       were originally created to work around bad malloc implementations,
17566       no longer exist. They were off-by-default in 0.2.5. Closes
17567       ticket 14848.
17569   o Testing:
17570     - Make the checkdir/perms test complete successfully even if the
17571       global umask is not 022. Fixes bug 14215; bugfix on 0.2.6.2-alpha.
17572     - Test that tor does not fail when key files are zero-length. Check
17573       that tor generates new keys, and overwrites the empty key files.
17574     - Test that tor generates new keys when keys are missing
17575       (existing behavior).
17576     - Test that tor does not overwrite key files that already contain
17577       data (existing behavior). Tests bug 13111. Patch by "teor".
17578     - New "make test-stem" target to run stem integration tests.
17579       Requires that the "STEM_SOURCE_DIR" environment variable be set.
17580       Closes ticket 14107.
17581     - Make the test_cmdline_args.py script work correctly on Windows.
17582       Patch from Gisle Vanem.
17583     - Move the slower unit tests into a new "./src/test/test-slow"
17584       binary that can be run independently of the other tests. Closes
17585       ticket 13243.
17586     - Avoid undefined behavior when sampling huge values from the
17587       Laplace distribution. This made unittests fail on Raspberry Pi.
17588       Bug found by Device. Fixes bug 14090; bugfix on 0.2.6.2-alpha.
17591 Changes in version 0.2.6.2-alpha - 2014-12-31
17592   Tor 0.2.6.2-alpha is the second alpha release in the 0.2.6.x series.
17593   It introduces a major new backend for deciding when to send cells on
17594   channels, which should lead down the road to big performance
17595   increases. It contains security and statistics features for better
17596   work on hidden services, and numerous bugfixes.
17598   This release contains many new unit tests, along with major
17599   performance improvements for running testing networks using Chutney.
17600   Thanks to a series of patches contributed by "teor", testing networks
17601   should now bootstrap in seconds, rather than minutes.
17603   o Major features (relay, infrastructure):
17604     - Complete revision of the code that relays use to decide which cell
17605       to send next. Formerly, we selected the best circuit to write on
17606       each channel, but we didn't select among channels in any
17607       sophisticated way. Now, we choose the best circuits globally from
17608       among those whose channels are ready to deliver traffic.
17610       This patch implements a new inter-cmux comparison API, a global
17611       high/low watermark mechanism and a global scheduler loop for
17612       transmission prioritization across all channels as well as among
17613       circuits on one channel. This schedule is currently tuned to
17614       (tolerantly) avoid making changes in network performance, but it
17615       should form the basis for major circuit performance increases in
17616       the future. Code by Andrea; tuning by Rob Jansen; implements
17617       ticket 9262.
17619   o Major features (hidden services):
17620     - Make HS port scanning more difficult by immediately closing the
17621       circuit when a user attempts to connect to a nonexistent port.
17622       Closes ticket 13667.
17623     - Add a HiddenServiceStatistics option that allows Tor relays to
17624       gather and publish statistics about the overall size and volume of
17625       hidden service usage. Specifically, when this option is turned on,
17626       an HSDir will publish an approximate number of hidden services
17627       that have published descriptors to it the past 24 hours. Also, if
17628       a relay has acted as a hidden service rendezvous point, it will
17629       publish the approximate amount of rendezvous cells it has relayed
17630       the past 24 hours. The statistics themselves are obfuscated so
17631       that the exact values cannot be derived. For more details see
17632       proposal 238, "Better hidden service stats from Tor relays". This
17633       feature is currently disabled by default. Implements feature 13192.
17635   o Major bugfixes (client, automap):
17636     - Repair automapping with IPv6 addresses. This automapping should
17637       have worked previously, but one piece of debugging code that we
17638       inserted to detect a regression actually caused the regression to
17639       manifest itself again. Fixes bug 13811 and bug 12831; bugfix on
17640       0.2.4.7-alpha. Diagnosed and fixed by Francisco Blas
17641       Izquierdo Riera.
17643   o Major bugfixes (hidden services):
17644     - When closing an introduction circuit that was opened in parallel
17645       with others, don't mark the introduction point as unreachable.
17646       Previously, the first successful connection to an introduction
17647       point would make the other introduction points get marked as
17648       having timed out. Fixes bug 13698; bugfix on 0.0.6rc2.
17650   o Directory authority changes:
17651     - Remove turtles as a directory authority.
17652     - Add longclaw as a new (v3) directory authority. This implements
17653       ticket 13296. This keeps the directory authority count at 9.
17655   o Major removed features:
17656     - Tor clients no longer support connecting to hidden services
17657       running on Tor 0.2.2.x and earlier; the Support022HiddenServices
17658       option has been removed. (There shouldn't be any hidden services
17659       running these versions on the network.) Closes ticket 7803.
17661   o Minor features (client):
17662     - Validate hostnames in SOCKS5 requests more strictly. If SafeSocks
17663       is enabled, reject requests with IP addresses as hostnames.
17664       Resolves ticket 13315.
17666   o Minor features (controller):
17667     - Add a "SIGNAL HEARTBEAT" controller command that tells Tor to
17668       write an unscheduled heartbeat message to the log. Implements
17669       feature 9503.
17671   o Minor features (geoip):
17672     - Update geoip and geoip6 to the November 15 2014 Maxmind GeoLite2
17673       Country database.
17675   o Minor features (hidden services):
17676     - When re-enabling the network, don't try to build introduction
17677       circuits until we have successfully built a circuit. This makes
17678       hidden services come up faster when the network is re-enabled.
17679       Patch from "akwizgran". Closes ticket 13447.
17680     - When we fail to retrieve a hidden service descriptor, send the
17681       controller an "HS_DESC FAILED" controller event. Implements
17682       feature 13212.
17683     - New HiddenServiceDirGroupReadable option to cause hidden service
17684       directories and hostname files to be created group-readable. Patch
17685       from "anon", David Stainton, and "meejah". Closes ticket 11291.
17687   o Minor features (systemd):
17688     - Where supported, when running with systemd, report successful
17689       startup to systemd. Part of ticket 11016. Patch by Michael Scherer.
17690     - When running with systemd, support systemd watchdog messages. Part
17691       of ticket 11016. Patch by Michael Scherer.
17693   o Minor features (transparent proxy):
17694     - Update the transparent proxy option checks to allow for both ipfw
17695       and pf on OS X. Closes ticket 14002.
17696     - Use the correct option when using IPv6 with transparent proxy
17697       support on Linux. Resolves 13808. Patch by Francisco Blas
17698       Izquierdo Riera.
17700   o Minor bugfixes (preventative security, C safety):
17701     - When reading a hexadecimal, base-32, or base-64 encoded value from
17702       a string, always overwrite the whole output buffer. This prevents
17703       some bugs where we would look at (but fortunately, not reveal)
17704       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
17705       versions of Tor.
17706     - Clear all memory targeted by tor_addr_{to,from}_sockaddr(), not
17707       just the part that's used. This makes it harder for data leak bugs
17708       to occur in the event of other programming failures. Resolves
17709       ticket 14041.
17711   o Minor bugfixes (client, microdescriptors):
17712     - Use a full 256 bits of the SHA256 digest of a microdescriptor when
17713       computing which microdescriptors to download. This keeps us from
17714       erroneous download behavior if two microdescriptor digests ever
17715       have the same first 160 bits. Fixes part of bug 13399; bugfix
17716       on 0.2.3.1-alpha.
17717     - Reset a router's status if its microdescriptor digest changes,
17718       even if the first 160 bits remain the same. Fixes part of bug
17719       13399; bugfix on 0.2.3.1-alpha.
17721   o Minor bugfixes (compilation):
17722     - Silence clang warnings under --enable-expensive-hardening,
17723       including implicit truncation of 64 bit values to 32 bit, const
17724       char assignment to self, tautological compare, and additional
17725       parentheses around equality tests. Fixes bug 13577; bugfix
17726       on 0.2.5.4-alpha.
17727     - Fix a clang warning about checking whether an address in the
17728       middle of a structure is NULL. Fixes bug 14001; bugfix
17729       on 0.2.1.2-alpha.
17731   o Minor bugfixes (hidden services):
17732     - Correctly send a controller event when we find that a rendezvous
17733       circuit has finished. Fixes bug 13936; bugfix on 0.1.1.5-alpha.
17734     - Pre-check directory permissions for new hidden-services to avoid
17735       at least one case of "Bug: Acting on config options left us in a
17736       broken state. Dying." Fixes bug 13942; bugfix on 0.0.6pre1.
17737     - When adding a new hidden service (for example, via SETCONF), Tor
17738       no longer congratulates the user for running a relay. Fixes bug
17739       13941; bugfix on 0.2.6.1-alpha.
17740     - When fetching hidden service descriptors, we now check not only
17741       for whether we got the hidden service we had in mind, but also
17742       whether we got the particular descriptors we wanted. This prevents
17743       a class of inefficient but annoying DoS attacks by hidden service
17744       directories. Fixes bug 13214; bugfix on 0.2.1.6-alpha. Reported
17745       by "special".
17747   o Minor bugfixes (Linux seccomp2 sandbox):
17748     - Make transparent proxy support work along with the seccomp2
17749       sandbox. Fixes part of bug 13808; bugfix on 0.2.5.1-alpha. Patch
17750       by Francisco Blas Izquierdo Riera.
17751     - Fix a memory leak in tor-resolve when running with the sandbox
17752       enabled. Fixes bug 14050; bugfix on 0.2.5.9-rc.
17754   o Minor bugfixes (logging):
17755     - Downgrade warnings about RSA signature failures to info log level.
17756       Emit a warning when an extra info document is found incompatible
17757       with a corresponding router descriptor. Fixes bug 9812; bugfix
17758       on 0.0.6rc3.
17759     - Make connection_ap_handshake_attach_circuit() log the circuit ID
17760       correctly. Fixes bug 13701; bugfix on 0.0.6.
17762   o Minor bugfixes (misc):
17763     - Stop allowing invalid address patterns like "*/24" that contain
17764       both a wildcard address and a bit prefix length. This affects all
17765       our address-range parsing code. Fixes bug 7484; bugfix
17766       on 0.0.2pre14.
17768   o Minor bugfixes (testing networks, fast startup):
17769     - Allow Tor to build circuits using a consensus with no exits. If
17770       the consensus has no exits (typical of a bootstrapping test
17771       network), allow Tor to build circuits once enough descriptors have
17772       been downloaded. This assists in bootstrapping a testing Tor
17773       network. Fixes bug 13718; bugfix on 0.2.4.10-alpha. Patch
17774       by "teor".
17775     - When V3AuthVotingInterval is low, give a lower If-Modified-Since
17776       header to directory servers. This allows us to obtain consensuses
17777       promptly when the consensus interval is very short. This assists
17778       in bootstrapping a testing Tor network. Fixes parts of bugs 13718
17779       and 13963; bugfix on 0.2.0.3-alpha. Patch by "teor".
17780     - Stop assuming that private addresses are local when checking
17781       reachability in a TestingTorNetwork. Instead, when testing, assume
17782       all OR connections are remote. (This is necessary due to many test
17783       scenarios running all relays on localhost.) This assists in
17784       bootstrapping a testing Tor network. Fixes bug 13924; bugfix on
17785       0.1.0.1-rc. Patch by "teor".
17786     - Avoid building exit circuits from a consensus with no exits. Now
17787       thanks to our fix for 13718, we accept a no-exit network as not
17788       wholly lost, but we need to remember not to try to build exit
17789       circuits on it. Closes ticket 13814; patch by "teor".
17790     - Stop requiring exits to have non-zero bandwithcapacity in a
17791       TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
17792       ignore exit bandwidthcapacity. This assists in bootstrapping a
17793       testing Tor network. Fixes parts of bugs 13718 and 13839; bugfix
17794       on 0.2.0.3-alpha. Patch by "teor".
17795     - Add "internal" to some bootstrap statuses when no exits are
17796       available. If the consensus does not contain Exits, Tor will only
17797       build internal circuits. In this case, relevant statuses will
17798       contain the word "internal" as indicated in the Tor control-
17799        spec.txt. When bootstrap completes, Tor will be ready to build
17800       internal circuits. If a future consensus contains Exits, exit
17801       circuits may become available. Fixes part of bug 13718; bugfix on
17802       0.2.4.10-alpha. Patch by "teor".
17803     - Decrease minimum consensus interval to 10 seconds when
17804       TestingTorNetwork is set, or 5 seconds for the first consensus.
17805       Fix assumptions throughout the code that assume larger intervals.
17806       Fixes bugs 13718 and 13823; bugfix on 0.2.0.3-alpha. Patch
17807       by "teor".
17808     - Avoid excluding guards from path building in minimal test
17809       networks, when we're in a test network and excluding guards would
17810       exclude all relays. This typically occurs in incredibly small tor
17811       networks, and those using "TestingAuthVoteGuard *". Fixes part of
17812       bug 13718; bugfix on 0.1.1.11-alpha. Patch by "teor".
17814   o Code simplification and refactoring:
17815     - Stop using can_complete_circuits as a global variable; access it
17816       with a function instead.
17817     - Avoid using operators directly as macro arguments: this lets us
17818       apply coccinelle transformations to our codebase more directly.
17819       Closes ticket 13172.
17820     - Combine the functions used to parse ClientTransportPlugin and
17821       ServerTransportPlugin into a single function. Closes ticket 6456.
17822     - Add inline functions and convenience macros for inspecting channel
17823       state. Refactor the code to use convenience macros instead of
17824       checking channel state directly. Fixes issue 7356.
17825     - Document all members of was_router_added_t and rename
17826       ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN to make it less
17827       confusable with ROUTER_WAS_TOO_OLD. Fixes issue 13644.
17828     - In connection_exit_begin_conn(), use END_CIRC_REASON_TORPROTOCOL
17829       constant instead of hardcoded value. Fixes issue 13840.
17830     - Refactor our generic strmap and digestmap types into a single
17831       implementation, so that we can add a new digest256map
17832       type trivially.
17834   o Documentation:
17835     - Document the bridge-authority-only 'networkstatus-bridges' file.
17836       Closes ticket 13713; patch from "tom".
17837     - Fix typo in PredictedPortsRelevanceTime option description in
17838       manpage. Resolves issue 13707.
17839     - Stop suggesting that users specify relays by nickname: it isn't a
17840       good idea. Also, properly cross-reference how to specify relays in
17841       all parts of manual documenting options that take a list of
17842       relays. Closes ticket 13381.
17843     - Clarify the HiddenServiceDir option description in manpage to make
17844       it clear that relative paths are taken with respect to the current
17845       working directory. Also clarify that this behavior is not
17846       guaranteed to remain indefinitely. Fixes issue 13913.
17848   o Testing:
17849     - New tests for many parts of channel, relay, and circuitmux
17850       functionality. Code by Andrea; part of 9262.
17851     - New tests for parse_transport_line(). Part of ticket 6456.
17852     - In the unit tests, use chgrp() to change the group of the unit
17853       test temporary directory to the current user, so that the sticky
17854       bit doesn't interfere with tests that check directory groups.
17855       Closes 13678.
17856     - Add unit tests for resolve_my_addr(). Part of ticket 12376; patch
17857       by 'rl1987'.
17860 Changes in version 0.2.6.1-alpha - 2014-10-30
17861   Tor 0.2.6.1-alpha is the first release in the Tor 0.2.6.x series. It
17862   includes numerous code cleanups and new tests, and fixes a large
17863   number of annoying bugs. Out-of-memory conditions are handled better
17864   than in 0.2.5, pluggable transports have improved proxy support, and
17865   clients now use optimistic data for contacting hidden services. Also,
17866   we are now more robust to changes in what we consider a parseable
17867   directory object, so that tightening restrictions does not have a risk
17868   of introducing infinite download loops.
17870   This is the first alpha release in a new series, so expect there to be
17871   bugs. Users who would rather test out a more stable branch should stay
17872   with 0.2.5.x for now.
17874   o New compiler and system requirements:
17875     - Tor 0.2.6.x requires that your compiler support more of the C99
17876       language standard than before. The 'configure' script now detects
17877       whether your compiler supports C99 mid-block declarations and
17878       designated initializers. If it does not, Tor will not compile.
17880       We may revisit this requirement if it turns out that a significant
17881       number of people need to build Tor with compilers that don't
17882       bother implementing a 15-year-old standard. Closes ticket 13233.
17883     - Tor no longer supports systems without threading support. When we
17884       began working on Tor, there were several systems that didn't have
17885       threads, or where the thread support wasn't able to run the
17886       threads of a single process on multiple CPUs. That no longer
17887       holds: every system where Tor needs to run well now has threading
17888       support. Resolves ticket 12439.
17890   o Removed platform support:
17891     - We no longer include special code to build on Windows CE; as far
17892       as we know, nobody has used Tor on Windows CE in a very long time.
17893       Closes ticket 11446.
17895   o Major features (bridges):
17896     - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable
17897       transports if they are configured via the "TOR_PT_PROXY"
17898       environment variable. Implements proposal 232. Resolves
17899       ticket 8402.
17901   o Major features (client performance, hidden services):
17902     - Allow clients to use optimistic data when connecting to a hidden
17903       service, which should remove a round-trip from hidden service
17904       initialization. See proposal 181 for details. Implements
17905       ticket 13211.
17907   o Major features (directory system):
17908     - Upon receiving an unparseable directory object, if its digest
17909       matches what we expected, then don't try to download it again.
17910       Previously, when we got a descriptor we didn't like, we would keep
17911       trying to download it over and over. Closes ticket 11243.
17913   o Major features (sample torrc):
17914     - Add a new, infrequently-changed "torrc.minimal". This file is
17915       similar to torrc.sample, but it will change as infrequently as
17916       possible, for the benefit of users whose systems prompt them for
17917       intervention whenever a default configuration file is changed.
17918       Making this change allows us to update torrc.sample to be a more
17919       generally useful "sample torrc".
17921   o Major bugfixes (directory authorities):
17922     - Do not assign the HSDir flag to relays if they are not Valid, or
17923       currently hibernating. Fixes 12573; bugfix on 0.2.0.10-alpha.
17925   o Major bugfixes (directory bandwidth performance):
17926     - Don't flush the zlib buffer aggressively when compressing
17927       directory information for clients. This should save about 7% of
17928       the bandwidth currently used for compressed descriptors and
17929       microdescriptors. Fixes bug 11787; bugfix on 0.1.1.23.
17931   o Minor features (security, memory wiping):
17932     - Ensure we securely wipe keys from memory after
17933       crypto_digest_get_digest and init_curve25519_keypair_from_file
17934       have finished using them. Resolves ticket 13477.
17936   o Minor features (security, out-of-memory handling):
17937     - When handling an out-of-memory condition, allocate less memory for
17938       temporary data structures. Fixes issue 10115.
17939     - When handling an out-of-memory condition, consider more types of
17940       buffers, including those on directory connections, and zlib
17941       buffers. Resolves ticket 11792.
17943   o Minor features:
17944     - When identity keypair is generated for first time, log a
17945       congratulatory message that links to the new relay lifecycle
17946       document. Implements feature 10427.
17948   o Minor features (client):
17949     - Clients are now willing to send optimistic data (before they
17950       receive a 'connected' cell) to relays of any version. (Relays
17951       without support for optimistic data are no longer supported on the
17952       Tor network.) Resolves ticket 13153.
17954   o Minor features (directory authorities):
17955     - Don't list relays with a bandwidth estimate of 0 in the consensus.
17956       Implements a feature proposed during discussion of bug 13000.
17957     - In tor-gencert, report an error if the user provides the same
17958       argument more than once.
17959     - If a directory authority can't find a best consensus method in the
17960       votes that it holds, it now falls back to its favorite consensus
17961       method. Previously, it fell back to method 1. Neither of these is
17962       likely to get enough signatures, but "fall back to favorite"
17963       doesn't require us to maintain support an obsolete consensus
17964       method. Implements part of proposal 215.
17966   o Minor features (logging):
17967     - On Unix-like systems, you can now use named pipes as the target of
17968       the Log option, and other options that try to append to files.
17969       Closes ticket 12061. Patch from "carlo von lynX".
17970     - When opening a log file at startup, send it every log message that
17971       we generated between startup and opening it. Previously, log
17972       messages that were generated before opening the log file were only
17973       logged to stdout. Closes ticket 6938.
17974     - Add a TruncateLogFile option to overwrite logs instead of
17975       appending to them. Closes ticket 5583.
17977   o Minor features (portability, Solaris):
17978     - Threads are no longer disabled by default on Solaris; we believe
17979       that the versions of Solaris with broken threading support are all
17980       obsolete by now. Resolves ticket 9495.
17982   o Minor features (relay):
17983     - Re-check our address after we detect a changed IP address from
17984       getsockname(). This ensures that the controller command "GETINFO
17985       address" will report the correct value. Resolves ticket 11582.
17986       Patch from "ra".
17987     - A new AccountingRule option lets Relays set whether they'd like
17988       AccountingMax to be applied separately to inbound and outbound
17989       traffic, or applied to the sum of inbound and outbound traffic.
17990       Resolves ticket 961. Patch by "chobe".
17992   o Minor features (testing networks):
17993     - Add the TestingDirAuthVoteExit option, which lists nodes to assign
17994       the "Exit" flag regardless of their uptime, bandwidth, or exit
17995       policy. TestingTorNetwork must be set for this option to have any
17996       effect. Previously, authorities would take up to 35 minutes to
17997       give nodes the Exit flag in a test network. Partially implements
17998       ticket 13161.
18000   o Minor features (validation):
18001     - Check all date/time values passed to tor_timegm and
18002       parse_rfc1123_time for validity, taking leap years into account.
18003       Improves HTTP header validation. Implemented with bug 13476.
18004     - In correct_tm(), limit the range of values returned by system
18005       localtime(_r) and gmtime(_r) to be between the years 1 and 8099.
18006       This means we don't have to deal with negative or too large dates,
18007       even if a clock is wrong. Otherwise we might fail to read a file
18008       written by us which includes such a date. Fixes bug 13476.
18010   o Minor bugfixes (bridge clients):
18011     - When configured to use a bridge without an identity digest (not
18012       recommended), avoid launching an extra channel to it when
18013       bootstrapping. Fixes bug 7733; bugfix on 0.2.4.4-alpha.
18015   o Minor bugfixes (bridges):
18016     - When DisableNetwork is set, do not launch pluggable transport
18017       plugins, and if any are running, terminate them. Fixes bug 13213;
18018       bugfix on 0.2.3.6-alpha.
18020   o Minor bugfixes (C correctness):
18021     - Fix several instances of possible integer overflow/underflow/NaN.
18022       Fixes bug 13104; bugfix on 0.2.3.1-alpha and later. Patches
18023       from "teor".
18024     - In circuit_build_times_calculate_timeout() in circuitstats.c,
18025       avoid dividing by zero in the pareto calculations. This traps
18026       under clang's "undefined-trap" sanitizer. Fixes bug 13290; bugfix
18027       on 0.2.2.2-alpha.
18028     - Fix an integer overflow in format_time_interval(). Fixes bug
18029       13393; bugfix on 0.2.0.10-alpha.
18030     - Set the correct day of year value when the system's localtime(_r)
18031       or gmtime(_r) functions fail to set struct tm. Not externally
18032       visible. Fixes bug 13476; bugfix on 0.0.2pre14.
18033     - Avoid unlikely signed integer overflow in tor_timegm on systems
18034       with 32-bit time_t. Fixes bug 13476; bugfix on 0.0.2pre14.
18036   o Minor bugfixes (client):
18037     - Fix smartlist_choose_node_by_bandwidth() so that relays with the
18038       BadExit flag are not considered worthy candidates. Fixes bug
18039       13066; bugfix on 0.1.2.3-alpha.
18040     - Use the consensus schedule for downloading consensuses, and not
18041       the generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha.
18042     - Handle unsupported or malformed SOCKS5 requests properly by
18043       responding with the appropriate error message before closing the
18044       connection. Fixes bugs 12971 and 13314; bugfix on 0.0.2pre13.
18046   o Minor bugfixes (client, torrc):
18047     - Stop modifying the value of our DirReqStatistics torrc option just
18048       because we're not a bridge or relay. This bug was causing Tor
18049       Browser users to write "DirReqStatistics 0" in their torrc files
18050       as if they had chosen to change the config. Fixes bug 4244; bugfix
18051       on 0.2.3.1-alpha.
18052     - When GeoIPExcludeUnknown is enabled, do not incorrectly decide
18053       that our options have changed every time we SIGHUP. Fixes bug
18054       9801; bugfix on 0.2.4.10-alpha. Patch from "qwerty1".
18056   o Minor bugfixes (controller):
18057     - Return an error when the second or later arguments of the
18058       "setevents" controller command are invalid events. Previously we
18059       would return success while silently skipping invalid events. Fixes
18060       bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns".
18062   o Minor bugfixes (directory system):
18063     - Always believe that v3 directory authorities serve extra-info
18064       documents, whether they advertise "caches-extra-info" or not.
18065       Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
18066     - When running as a v3 directory authority, advertise that you serve
18067       extra-info documents so that clients who want them can find them
18068       from you too. Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
18069     - Check the BRIDGE_DIRINFO flag bitwise rather than using equality.
18070       Previously, directories offering BRIDGE_DIRINFO and some other
18071       flag (i.e. microdescriptors or extrainfo) would be ignored when
18072       looking for bridges. Partially fixes bug 13163; bugfix
18073       on 0.2.0.7-alpha.
18075   o Minor bugfixes (networking):
18076     - Check for orconns and use connection_or_close_for_error() rather
18077       than connection_mark_for_close() directly in the getsockopt()
18078       failure case of connection_handle_write_impl(). Fixes bug 11302;
18079       bugfix on 0.2.4.4-alpha.
18081   o Minor bugfixes (relay):
18082     - When generating our family list, remove spaces from around the
18083       entries. Fixes bug 12728; bugfix on 0.2.1.7-alpha.
18084     - If our previous bandwidth estimate was 0 bytes, allow publishing a
18085       new relay descriptor immediately. Fixes bug 13000; bugfix
18086       on 0.1.1.6-alpha.
18088   o Minor bugfixes (testing networks):
18089     - Fix TestingDirAuthVoteGuard to properly give out Guard flags in a
18090       testing network. Fixes bug 13064; bugfix on 0.2.5.2-alpha.
18091     - Stop using the default authorities in networks which provide both
18092       AlternateDirAuthority and AlternateBridgeAuthority. Partially
18093       fixes bug 13163; bugfix on 0.2.0.13-alpha.
18095   o Minor bugfixes (testing):
18096     - Stop spawn test failures due to a race condition between the
18097       SIGCHLD handler updating the process status, and the test reading
18098       it. Fixes bug 13291; bugfix on 0.2.3.3-alpha.
18100   o Minor bugfixes (testing, Windows):
18101     - Avoid passing an extra backslash when creating a temporary
18102       directory for running the unit tests on Windows. Fixes bug 12392;
18103       bugfix on 0.2.2.25-alpha. Patch from Gisle Vanem.
18105   o Minor bugfixes (windows):
18106     - Remove code to special-case handling of NTE_BAD_KEYSET when
18107       acquiring windows CryptoAPI context. This error can't actually
18108       occur for the parameters we're providing. Fixes bug 10816; bugfix
18109       on 0.0.2pre26.
18111   o Minor bugfixes (zlib):
18112     - Avoid truncating a zlib stream when trying to finalize it with an
18113       empty output buffer. Fixes bug 11824; bugfix on 0.1.1.23.
18115   o Build fixes:
18116     - Allow our configure script to build correctly with autoconf 2.62
18117       again. Fixes bug 12693; bugfix on 0.2.5.2-alpha.
18118     - Improve the error message from ./configure to make it clear that
18119       when asciidoc has not been found, the user will have to either add
18120       --disable-asciidoc argument or install asciidoc. Resolves
18121       ticket 13228.
18123   o Code simplification and refactoring:
18124     - Change the entry_is_live() function to take named bitfield
18125       elements instead of an unnamed list of booleans. Closes
18126       ticket 12202.
18127     - Refactor and unit-test entry_is_time_to_retry() in entrynodes.c.
18128       Resolves ticket 12205.
18129     - Use calloc and reallocarray functions instead of multiply-
18130       then-malloc. This makes it less likely for us to fall victim to an
18131       integer overflow attack when allocating. Resolves ticket 12855.
18132     - Use the standard macro name SIZE_MAX, instead of our
18133       own SIZE_T_MAX.
18134     - Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in
18135       functions which take them as arguments. Replace 0 with NO_DIRINFO
18136       in a function call for clarity. Seeks to prevent future issues
18137       like 13163.
18138     - Avoid 4 null pointer errors under clang static analysis by using
18139       tor_assert() to prove that the pointers aren't null. Fixes
18140       bug 13284.
18141     - Rework the API of policies_parse_exit_policy() to use a bitmask to
18142       represent parsing options, instead of a confusing mess of
18143       booleans. Resolves ticket 8197.
18144     - Introduce a helper function to parse ExitPolicy in
18145       or_options_t structure.
18147   o Documentation:
18148     - Add a doc/TUNING document with tips for handling large numbers of
18149       TCP connections when running busy Tor relay. Update the warning
18150       message to point to this file when running out of sockets
18151       operating system is allowing to use simultaneously. Resolves
18152       ticket 9708.
18154   o Removed features:
18155     - We no longer remind the user about configuration options that have
18156       been obsolete since 0.2.3.x or earlier. Patch by Adrien Bak.
18157     - Remove our old, non-weighted bandwidth-based node selection code.
18158       Previously, we used it as a fallback when we couldn't perform
18159       weighted bandwidth-based node selection. But that would only
18160       happen in the cases where we had no consensus, or when we had a
18161       consensus generated by buggy or ancient directory authorities. In
18162       either case, it's better to use the more modern, better maintained
18163       algorithm, with reasonable defaults for the weights. Closes
18164       ticket 13126.
18165     - Remove the --disable-curve25519 configure option. Relays and
18166       clients now are required to support curve25519 and the
18167       ntor handshake.
18168     - The old "StrictEntryNodes" and "StrictExitNodes" options, which
18169       used to be deprecated synonyms for "StrictNodes", are now marked
18170       obsolete. Resolves ticket 12226.
18171     - Clients don't understand the BadDirectory flag in the consensus
18172       anymore, and ignore it.
18174   o Testing:
18175     - Refactor the function that chooses guard nodes so that it can more
18176       easily be tested; write some tests for it.
18177     - Fix and re-enable the fgets_eagain unit test. Fixes bug 12503;
18178       bugfix on 0.2.3.1-alpha. Patch from "cypherpunks."
18179     - Create unit tests for format_time_interval(). With bug 13393.
18180     - Add unit tests for tor_timegm signed overflow, tor_timegm and
18181       parse_rfc1123_time validity checks, correct_tm year clamping. Unit
18182       tests (visible) fixes in bug 13476.
18183     - Add a "coverage-html" make target to generate HTML-visualized
18184       coverage results when building with --enable-coverage. (Requires
18185       lcov.) Patch from Kevin Murray.
18186     - Enable the backtrace handler (where supported) when running the
18187       unit tests.
18188     - Revise all unit tests that used the legacy test_* macros to
18189       instead use the recommended tt_* macros. This patch was generated
18190       with coccinelle, to avoid manual errors. Closes ticket 13119.
18192   o Distribution (systemd):
18193     - systemd unit file: only allow tor to write to /var/lib/tor and
18194       /var/log/tor. The rest of the filesystem is accessible for reading
18195       only. Patch by intrigeri; resolves ticket 12751.
18196     - systemd unit file: ensure that the process and all its children
18197       can never gain new privileges. Patch by intrigeri; resolves
18198       ticket 12939.
18199     - systemd unit file: set up /var/run/tor as writable for the Tor
18200       service. Patch by intrigeri; resolves ticket 13196.
18202   o Removed features (directory authorities):
18203     - Remove code that prevented authorities from listing Tor relays
18204       affected by CVE-2011-2769 as guards. These relays are already
18205       rejected altogether due to the minimum version requirement of
18206       0.2.3.16-alpha. Closes ticket 13152.
18207     - The "AuthDirRejectUnlisted" option no longer has any effect, as
18208       the fingerprints file (approved-routers) has been deprecated.
18209     - Directory authorities do not support being Naming dirauths anymore.
18210       The "NamingAuthoritativeDir" config option is now obsolete.
18211     - Directory authorities do not support giving out the BadDirectory
18212       flag anymore.
18213     - Directory authorities no longer advertise or support consensus
18214       methods 1 through 12 inclusive. These consensus methods were
18215       obsolete and/or insecure: maintaining the ability to support them
18216       served no good purpose. Implements part of proposal 215; closes
18217       ticket 10163.
18219   o Testing (test-network.sh):
18220     - Stop using "echo -n", as some shells' built-in echo doesn't
18221       support "-n". Instead, use "/bin/echo -n". Partially fixes
18222       bug 13161.
18223     - Stop an apparent test-network hang when used with make -j2. Fixes
18224       bug 13331.
18225     - Add a --delay option to test-network.sh, which configures the
18226       delay before the chutney network tests for data transmission.
18227       Partially implements ticket 13161.
18230 Changes in version 0.2.5.10 - 2014-10-24
18231   Tor 0.2.5.10 is the first stable release in the 0.2.5 series.
18233   It adds several new security features, including improved
18234   denial-of-service resistance for relays, new compiler hardening
18235   options, and a system-call sandbox for hardened installations on Linux
18236   (requires seccomp2). The controller protocol has several new features,
18237   resolving IPv6 addresses should work better than before, and relays
18238   should be a little more CPU-efficient. We've added support for more
18239   OpenBSD and FreeBSD transparent proxy types. We've improved the build
18240   system and testing infrastructure to allow unit testing of more parts
18241   of the Tor codebase. Finally, we've addressed several nagging pluggable
18242   transport usability issues, and included numerous other small bugfixes
18243   and features mentioned below.
18245   This release marks end-of-life for Tor 0.2.3.x; those Tor versions
18246   have accumulated many known flaws; everyone should upgrade.
18248   o Deprecated versions:
18249     - Tor 0.2.3.x has reached end-of-life; it has received no patches or
18250       attention for some while.
18253 Changes in version 0.2.5.9-rc - 2014-10-20
18254   Tor 0.2.5.9-rc is the third release candidate for the Tor 0.2.5.x
18255   series. It disables SSL3 in response to the recent "POODLE" attack
18256   (even though POODLE does not affect Tor). It also works around a crash
18257   bug caused by some operating systems' response to the "POODLE" attack
18258   (which does affect Tor). It also contains a few miscellaneous fixes.
18260   o Major security fixes:
18261     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
18262       today support TLS 1.0 or later, so we can safely turn off support
18263       for this old (and insecure) protocol. Fixes bug 13426.
18265   o Major bugfixes (openssl bug workaround):
18266     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
18267       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
18268       13471. This is a workaround for an OpenSSL bug.
18270   o Minor bugfixes:
18271     - Disable the sandbox name resolver cache when running tor-resolve:
18272       tor-resolve doesn't use the sandbox code, and turning it on was
18273       breaking attempts to do tor-resolve on a non-default server on
18274       Linux. Fixes bug 13295; bugfix on 0.2.5.3-alpha.
18276   o Compilation fixes:
18277     - Build and run correctly on systems like OpenBSD-current that have
18278       patched OpenSSL to remove get_cipher_by_char and/or its
18279       implementations. Fixes issue 13325.
18281   o Downgraded warnings:
18282     - Downgrade the severity of the 'unexpected sendme cell from client'
18283       from 'warn' to 'protocol warning'. Closes ticket 8093.
18286 Changes in version 0.2.4.25 - 2014-10-20
18287   Tor 0.2.4.25 disables SSL3 in response to the recent "POODLE" attack
18288   (even though POODLE does not affect Tor). It also works around a crash
18289   bug caused by some operating systems' response to the "POODLE" attack
18290   (which does affect Tor).
18292   o Major security fixes (also in 0.2.5.9-rc):
18293     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
18294       today support TLS 1.0 or later, so we can safely turn off support
18295       for this old (and insecure) protocol. Fixes bug 13426.
18297   o Major bugfixes (openssl bug workaround, also in 0.2.5.9-rc):
18298     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
18299       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
18300       13471. This is a workaround for an OpenSSL bug.
18303 Changes in version 0.2.5.8-rc - 2014-09-22
18304   Tor 0.2.5.8-rc is the second release candidate for the Tor 0.2.5.x
18305   series. It fixes a bug that affects consistency and speed when
18306   connecting to hidden services, and it updates the location of one of
18307   the directory authorities.
18309   o Major bugfixes:
18310     - Clients now send the correct address for their chosen rendezvous
18311       point when trying to access a hidden service. They used to send
18312       the wrong address, which would still work some of the time because
18313       they also sent the identity digest of the rendezvous point, and if
18314       the hidden service happened to try connecting to the rendezvous
18315       point from a relay that already had a connection open to it,
18316       the relay would reuse that connection. Now connections to hidden
18317       services should be more robust and faster. Also, this bug meant
18318       that clients were leaking to the hidden service whether they were
18319       on a little-endian (common) or big-endian (rare) system, which for
18320       some users might have reduced their anonymity. Fixes bug 13151;
18321       bugfix on 0.2.1.5-alpha.
18323   o Directory authority changes:
18324     - Change IP address for gabelmoo (v3 directory authority).
18327 Changes in version 0.2.4.24 - 2014-09-22
18328   Tor 0.2.4.24 fixes a bug that affects consistency and speed when
18329   connecting to hidden services, and it updates the location of one of
18330   the directory authorities.
18332   o Major bugfixes:
18333     - Clients now send the correct address for their chosen rendezvous
18334       point when trying to access a hidden service. They used to send
18335       the wrong address, which would still work some of the time because
18336       they also sent the identity digest of the rendezvous point, and if
18337       the hidden service happened to try connecting to the rendezvous
18338       point from a relay that already had a connection open to it,
18339       the relay would reuse that connection. Now connections to hidden
18340       services should be more robust and faster. Also, this bug meant
18341       that clients were leaking to the hidden service whether they were
18342       on a little-endian (common) or big-endian (rare) system, which for
18343       some users might have reduced their anonymity. Fixes bug 13151;
18344       bugfix on 0.2.1.5-alpha.
18346   o Directory authority changes:
18347     - Change IP address for gabelmoo (v3 directory authority).
18349   o Minor features (geoip):
18350     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
18351       Country database.
18354 Changes in version 0.2.5.7-rc - 2014-09-11
18355   Tor 0.2.5.7-rc fixes several regressions from earlier in the 0.2.5.x
18356   release series, and some long-standing bugs related to ORPort reachability
18357   testing and failure to send CREATE cells. It is the first release
18358   candidate for the Tor 0.2.5.x series.
18360   o Major bugfixes (client, startup):
18361     - Start making circuits as soon as DisabledNetwork is turned off.
18362       When Tor started with DisabledNetwork set, it would correctly
18363       conclude that it shouldn't build circuits, but it would mistakenly
18364       cache this conclusion, and continue believing it even when
18365       DisableNetwork is set to 0. Fixes the bug introduced by the fix
18366       for bug 11200; bugfix on 0.2.5.4-alpha.
18367     - Resume expanding abbreviations for command-line options. The fix
18368       for bug 4647 accidentally removed our hack from bug 586 that
18369       rewrote HashedControlPassword to __HashedControlSessionPassword
18370       when it appears on the commandline (which allowed the user to set
18371       her own HashedControlPassword in the torrc file while the
18372       controller generates a fresh session password for each run). Fixes
18373       bug 12948; bugfix on 0.2.5.1-alpha.
18374     - Warn about attempts to run hidden services and relays in the same
18375       process: that's probably not a good idea. Closes ticket 12908.
18377   o Major bugfixes (relay):
18378     - Avoid queuing or sending destroy cells for circuit ID zero when we
18379       fail to send a CREATE cell. Fixes bug 12848; bugfix on 0.0.8pre1.
18380       Found and fixed by "cypherpunks".
18381     - Fix ORPort reachability detection on relays running behind a
18382       proxy, by correctly updating the "local" mark on the controlling
18383       channel when changing the address of an or_connection_t after the
18384       handshake. Fixes bug 12160; bugfix on 0.2.4.4-alpha.
18386   o Minor features (bridge):
18387     - Add an ExtORPortCookieAuthFileGroupReadable option to make the
18388       cookie file for the ExtORPort g+r by default.
18390   o Minor features (geoip):
18391     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
18392       Country database.
18394   o Minor bugfixes (logging):
18395     - Reduce the log severity of the "Pluggable transport proxy does not
18396       provide any needed transports and will not be launched." message,
18397       since Tor Browser includes several ClientTransportPlugin lines in
18398       its torrc-defaults file, leading every Tor Browser user who looks
18399       at her logs to see these notices and wonder if they're dangerous.
18400       Resolves bug 13124; bugfix on 0.2.5.3-alpha.
18401     - Downgrade "Unexpected onionskin length after decryption" warning
18402       to a protocol-warn, since there's nothing relay operators can do
18403       about a client that sends them a malformed create cell. Resolves
18404       bug 12996; bugfix on 0.0.6rc1.
18405     - Log more specific warnings when we get an ESTABLISH_RENDEZVOUS
18406       cell on a cannibalized or non-OR circuit. Resolves ticket 12997.
18407     - When logging information about an EXTEND2 or EXTENDED2 cell, log
18408       their names correctly. Fixes part of bug 12700; bugfix
18409       on 0.2.4.8-alpha.
18410     - When logging information about a relay cell whose command we don't
18411       recognize, log its command as an integer. Fixes part of bug 12700;
18412       bugfix on 0.2.1.10-alpha.
18413     - Escape all strings from the directory connection before logging
18414       them. Fixes bug 13071; bugfix on 0.1.1.15. Patch from "teor".
18416   o Minor bugfixes (controller):
18417     - Restore the functionality of CookieAuthFileGroupReadable. Fixes
18418       bug 12864; bugfix on 0.2.5.1-alpha.
18419     - Actually send TRANSPORT_LAUNCHED and HS_DESC events to
18420       controllers. Fixes bug 13085; bugfix on 0.2.5.1-alpha. Patch
18421       by "teor".
18423   o Minor bugfixes (compilation):
18424     - Fix compilation of test.h with MSVC. Patch from Gisle Vanem;
18425       bugfix on 0.2.5.5-alpha.
18426     - Make the nmake make files work again. Fixes bug 13081. Bugfix on
18427       0.2.5.1-alpha. Patch from "NewEraCracker".
18428     - In routerlist_assert_ok(), don't take the address of a
18429       routerinfo's cache_info member unless that routerinfo is non-NULL.
18430       Fixes bug 13096; bugfix on 0.1.1.9-alpha. Patch by "teor".
18431     - Fix a large number of false positive warnings from the clang
18432       analyzer static analysis tool. This should make real warnings
18433       easier for clang analyzer to find. Patch from "teor". Closes
18434       ticket 13036.
18436   o Distribution (systemd):
18437     - Verify configuration file via ExecStartPre in the systemd unit
18438       file. Patch from intrigeri; resolves ticket 12730.
18439     - Explicitly disable RunAsDaemon in the systemd unit file. Our
18440       current systemd unit uses "Type = simple", so systemd does not
18441       expect tor to fork. If the user has "RunAsDaemon 1" in their
18442       torrc, then things won't work as expected. This is e.g. the case
18443       on Debian (and derivatives), since there we pass "--defaults-torrc
18444       /usr/share/tor/tor-service-defaults-torrc" (that contains
18445       "RunAsDaemon 1") by default. Patch by intrigeri; resolves
18446       ticket 12731.
18448   o Documentation:
18449     - Adjust the URLs in the README to refer to the new locations of
18450       several documents on the website. Fixes bug 12830. Patch from
18451       Matt Pagan.
18452     - Document 'reject6' and 'accept6' ExitPolicy entries. Resolves
18453       ticket 12878.
18456 Changes in version 0.2.5.6-alpha - 2014-07-28
18457   Tor 0.2.5.6-alpha brings us a big step closer to slowing down the
18458   risk from guard rotation, and fixes a variety of other issues to get
18459   us closer to a release candidate.
18461   o Major features (also in 0.2.4.23):
18462     - Make the number of entry guards configurable via a new
18463       NumEntryGuards consensus parameter, and the number of directory
18464       guards configurable via a new NumDirectoryGuards consensus
18465       parameter. Implements ticket 12688.
18467   o Major bugfixes (also in 0.2.4.23):
18468     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
18469       implementation that caused incorrect results on 32-bit
18470       implementations when certain malformed inputs were used along with
18471       a small class of private ntor keys. This bug does not currently
18472       appear to allow an attacker to learn private keys or impersonate a
18473       Tor server, but it could provide a means to distinguish 32-bit Tor
18474       implementations from 64-bit Tor implementations. Fixes bug 12694;
18475       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
18476       Adam Langley.
18478   o Major bugfixes:
18479     - Perform circuit cleanup operations even when circuit
18480       construction operations are disabled (because the network is
18481       disabled, or because there isn't enough directory information).
18482       Previously, when we were not building predictive circuits, we
18483       were not closing expired circuits either. Fixes bug 8387; bugfix on
18484       0.1.1.11-alpha. This bug became visible in 0.2.4.10-alpha when we
18485       became more strict about when we have "enough directory information
18486       to build circuits".
18488   o Minor features:
18489     - Authorities now assign the Guard flag to the fastest 25% of the
18490       network (it used to be the fastest 50%). Also raise the consensus
18491       weight that guarantees the Guard flag from 250 to 2000. For the
18492       current network, this results in about 1100 guards, down from 2500.
18493       This step paves the way for moving the number of entry guards
18494       down to 1 (proposal 236) while still providing reasonable expected
18495       performance for most users. Implements ticket 12690.
18496     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
18497       Country database.
18498     - Slightly enhance the diagnostic message for bug 12184.
18500   o Minor bugfixes (also in 0.2.4.23):
18501     - Warn and drop the circuit if we receive an inbound 'relay early'
18502       cell. Those used to be normal to receive on hidden service circuits
18503       due to bug 1038, but the buggy Tor versions are long gone from
18504       the network so we can afford to resume watching for them. Resolves
18505       the rest of bug 1038; bugfix on 0.2.1.19.
18506     - Correct a confusing error message when trying to extend a circuit
18507       via the control protocol but we don't know a descriptor or
18508       microdescriptor for one of the specified relays. Fixes bug 12718;
18509       bugfix on 0.2.3.1-alpha.
18511   o Minor bugfixes:
18512     - Fix compilation when building with bufferevents enabled. (This
18513       configuration is still not expected to work, however.)
18514       Fixes bugs 12438, 12474, 11578; bugfixes on 0.2.5.1-alpha and
18515       0.2.5.3-alpha. Patches from Anthony G. Basile and Sathyanarayanan
18516       Gunasekaran.
18517     - Compile correctly with builds and forks of OpenSSL (such as
18518       LibreSSL) that disable compression. Fixes bug 12602; bugfix on
18519       0.2.1.1-alpha. Patch from "dhill".
18522 Changes in version 0.2.4.23 - 2014-07-28
18523   Tor 0.2.4.23 brings us a big step closer to slowing down the risk from
18524   guard rotation, and also backports several important fixes from the
18525   Tor 0.2.5 alpha release series.
18527   o Major features:
18528     - Clients now look at the "usecreatefast" consensus parameter to
18529       decide whether to use CREATE_FAST or CREATE cells for the first hop
18530       of their circuit. This approach can improve security on connections
18531       where Tor's circuit handshake is stronger than the available TLS
18532       connection security levels, but the tradeoff is more computational
18533       load on guard relays. Implements proposal 221. Resolves ticket 9386.
18534     - Make the number of entry guards configurable via a new
18535       NumEntryGuards consensus parameter, and the number of directory
18536       guards configurable via a new NumDirectoryGuards consensus
18537       parameter. Implements ticket 12688.
18539   o Major bugfixes:
18540     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
18541       implementation that caused incorrect results on 32-bit
18542       implementations when certain malformed inputs were used along with
18543       a small class of private ntor keys. This bug does not currently
18544       appear to allow an attacker to learn private keys or impersonate a
18545       Tor server, but it could provide a means to distinguish 32-bit Tor
18546       implementations from 64-bit Tor implementations. Fixes bug 12694;
18547       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
18548       Adam Langley.
18550   o Minor bugfixes:
18551     - Warn and drop the circuit if we receive an inbound 'relay early'
18552       cell. Those used to be normal to receive on hidden service circuits
18553       due to bug 1038, but the buggy Tor versions are long gone from
18554       the network so we can afford to resume watching for them. Resolves
18555       the rest of bug 1038; bugfix on 0.2.1.19.
18556     - Correct a confusing error message when trying to extend a circuit
18557       via the control protocol but we don't know a descriptor or
18558       microdescriptor for one of the specified relays. Fixes bug 12718;
18559       bugfix on 0.2.3.1-alpha.
18560     - Avoid an illegal read from stack when initializing the TLS
18561       module using a version of OpenSSL without all of the ciphers
18562       used by the v2 link handshake. Fixes bug 12227; bugfix on
18563       0.2.4.8-alpha.  Found by "starlight".
18565   o Minor features:
18566     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
18567       Country database.
18570 Changes in version 0.2.5.5-alpha - 2014-06-18
18571   Tor 0.2.5.5-alpha fixes a wide variety of remaining issues in the Tor
18572   0.2.5.x release series, including a couple of DoS issues, some
18573   performance regressions, a large number of bugs affecting the Linux
18574   seccomp2 sandbox code, and various other bugfixes. It also adds
18575   diagnostic bugfixes for a few tricky issues that we're trying to
18576   track down.
18578   o Major features (security, traffic analysis resistance):
18579     - Several major improvements to the algorithm used to decide when to
18580       close TLS connections. Previous versions of Tor closed connections
18581       at a fixed interval after the last time a non-padding cell was
18582       sent over the connection, regardless of the target of the
18583       connection. Now, we randomize the intervals by adding up to 50% of
18584       their base value, we measure the length of time since connection
18585       last had at least one circuit, and we allow connections to known
18586       ORs to remain open a little longer (15 minutes instead of 3
18587       minutes minimum). These changes should improve Tor's resistance
18588       against some kinds of traffic analysis, and lower some overhead
18589       from needlessly closed connections. Fixes ticket 6799.
18590       Incidentally fixes ticket 12023; bugfix on 0.2.5.1-alpha.
18592   o Major bugfixes (security, OOM, new since 0.2.5.4-alpha, also in 0.2.4.22):
18593     - Fix a memory leak that could occur if a microdescriptor parse
18594       fails during the tokenizing step. This bug could enable a memory
18595       exhaustion attack by directory servers. Fixes bug 11649; bugfix
18596       on 0.2.2.6-alpha.
18598   o Major bugfixes (security, directory authorities):
18599     - Directory authorities now include a digest of each relay's
18600       identity key as a part of its microdescriptor.
18602       This is a workaround for bug 11743 (reported by "cypherpunks"),
18603       where Tor clients do not support receiving multiple
18604       microdescriptors with the same SHA256 digest in the same
18605       consensus. When clients receive a consensus like this, they only
18606       use one of the relays. Without this fix, a hostile relay could
18607       selectively disable some client use of target relays by
18608       constructing a router descriptor with a different identity and the
18609       same microdescriptor parameters and getting the authorities to
18610       list it in a microdescriptor consensus. This fix prevents an
18611       attacker from causing a microdescriptor collision, because the
18612       router's identity is not forgeable.
18614   o Major bugfixes (relay):
18615     - Use a direct dirport connection when uploading non-anonymous
18616       descriptors to the directory authorities. Previously, relays would
18617       incorrectly use tunnel connections under a fairly wide variety of
18618       circumstances. Fixes bug 11469; bugfix on 0.2.4.3-alpha.
18619     - When a circuit accidentally has the same circuit ID for its
18620       forward and reverse direction, correctly detect the direction of
18621       cells using that circuit. Previously, this bug made roughly one
18622       circuit in a million non-functional. Fixes bug 12195; this is a
18623       bugfix on every version of Tor.
18625   o Major bugfixes (client, pluggable transports):
18626     - When managing pluggable transports, use OS notification facilities
18627       to learn if they have crashed, and don't attempt to kill any
18628       process that has already exited. Fixes bug 8746; bugfix
18629       on 0.2.3.6-alpha.
18631   o Minor features (diagnostic):
18632     - When logging a warning because of bug 7164, additionally check the
18633       hash table for consistency (as proposed on ticket 11737). This may
18634       help diagnose bug 7164.
18635     - When we log a heartbeat, log how many one-hop circuits we have
18636       that are at least 30 minutes old, and log status information about
18637       a few of them. This is an attempt to track down bug 8387.
18638     - When encountering an unexpected CR while writing text to a file on
18639       Windows, log the name of the file. Should help diagnosing
18640       bug 11233.
18641     - Give more specific warnings when a client notices that an onion
18642       handshake has failed. Fixes ticket 9635.
18643     - Add significant new logging code to attempt to diagnose bug 12184,
18644       where relays seem to run out of available circuit IDs.
18645     - Improve the diagnostic log message for bug 8387 even further to
18646       try to improve our odds of figuring out why one-hop directory
18647       circuits sometimes do not get closed.
18649   o Minor features (security, memory management):
18650     - Memory allocation tricks (mempools and buffer freelists) are now
18651       disabled by default. You can turn them back on with
18652       --enable-mempools and --enable-buf-freelists respectively. We're
18653       disabling these features because malloc performance is good enough
18654       on most platforms, and a similar feature in OpenSSL exacerbated
18655       exploitation of the Heartbleed attack. Resolves ticket 11476.
18657   o Minor features (security):
18658     - Apply the secure SipHash-2-4 function to the hash table mapping
18659       circuit IDs and channels to circuits. We missed this one when we
18660       were converting all the other hash functions to use SipHash back
18661       in 0.2.5.3-alpha. Resolves ticket 11750.
18663   o Minor features (build):
18664     - The configure script has a --disable-seccomp option to turn off
18665       support for libseccomp on systems that have it, in case it (or
18666       Tor's use of it) is broken. Resolves ticket 11628.
18668   o Minor features (other):
18669     - Update geoip and geoip6 to the June 4 2014 Maxmind GeoLite2
18670       Country database.
18672   o Minor bugfixes (security, new since 0.2.5.4-alpha, also in 0.2.4.22):
18673     - When running a hidden service, do not allow TunneledDirConns 0;
18674       this will keep the hidden service from running, and also
18675       make it publish its descriptors directly over HTTP. Fixes bug 10849;
18676       bugfix on 0.2.1.1-alpha.
18678   o Minor bugfixes (performance):
18679     - Avoid a bug where every successful connection made us recompute
18680       the flag telling us whether we have sufficient information to
18681       build circuits. Previously, we would forget our cached value
18682       whenever we successfully opened a channel (or marked a router as
18683       running or not running for any other reason), regardless of
18684       whether we had previously believed the router to be running. This
18685       forced us to run an expensive update operation far too often.
18686       Fixes bug 12170; bugfix on 0.1.2.1-alpha.
18687     - Avoid using tor_memeq() for checking relay cell integrity. This
18688       removes a possible performance bottleneck. Fixes part of bug
18689       12169; bugfix on 0.2.1.31.
18691   o Minor bugfixes (compilation):
18692     - Fix compilation of test_status.c when building with MVSC. Bugfix
18693       on 0.2.5.4-alpha. Patch from Gisle Vanem.
18694     - Resolve GCC complaints on OpenBSD about discarding constness in
18695       TO_{ORIGIN,OR}_CIRCUIT functions. Fixes part of bug 11633; bugfix
18696       on 0.1.1.23. Patch from Dana Koch.
18697     - Resolve clang complaints on OpenBSD with -Wshorten-64-to-32 due to
18698       treatment of long and time_t as comparable types. Fixes part of
18699       bug 11633. Patch from Dana Koch.
18700     - Make Tor compile correctly with --disable-buf-freelists. Fixes bug
18701       11623; bugfix on 0.2.5.3-alpha.
18702     - When deciding whether to build the 64-bit curve25519
18703       implementation, detect platforms where we can compile 128-bit
18704       arithmetic but cannot link it. Fixes bug 11729; bugfix on
18705       0.2.4.8-alpha. Patch from "conradev".
18706     - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761;
18707       bugfix on 0.2.3.13-alpha. Found by "cypherpunks".
18708     - Fix compilation with dmalloc. Fixes bug 11605; bugfix
18709       on 0.2.4.10-alpha.
18711   o Minor bugfixes (Directory server):
18712     - When sending a compressed set of descriptors or microdescriptors,
18713       make sure to finalize the zlib stream. Previously, we would write
18714       all the compressed data, but if the last descriptor we wanted to
18715       send was missing or too old, we would not mark the stream as
18716       finished. This caused problems for decompression tools. Fixes bug
18717       11648; bugfix on 0.1.1.23.
18719   o Minor bugfixes (Linux seccomp sandbox):
18720     - Make the seccomp sandbox code compile under ARM Linux. Fixes bug
18721       11622; bugfix on 0.2.5.1-alpha.
18722     - Avoid crashing when re-opening listener ports with the seccomp
18723       sandbox active. Fixes bug 12115; bugfix on 0.2.5.1-alpha.
18724     - Avoid crashing with the seccomp sandbox enabled along with
18725       ConstrainedSockets. Fixes bug 12139; bugfix on 0.2.5.1-alpha.
18726     - When we receive a SIGHUP with the sandbox enabled, correctly
18727       support rotating our log files. Fixes bug 12032; bugfix
18728       on 0.2.5.1-alpha.
18729     - Avoid crash when running with sandboxing enabled and
18730       DirReqStatistics not disabled. Fixes bug 12035; bugfix
18731       on 0.2.5.1-alpha.
18732     - Fix a "BUG" warning when trying to write bridge-stats files with
18733       the Linux syscall sandbox filter enabled. Fixes bug 12041; bugfix
18734       on 0.2.5.1-alpha.
18735     - Prevent the sandbox from crashing on startup when run with the
18736       --enable-expensive-hardening configuration option. Fixes bug
18737       11477; bugfix on 0.2.5.4-alpha.
18738     - When running with DirPortFrontPage and sandboxing both enabled,
18739       reload the DirPortFrontPage correctly when restarting. Fixes bug
18740       12028; bugfix on 0.2.5.1-alpha.
18741     - Don't try to enable the sandbox when using the Tor binary to check
18742       its configuration, hash a passphrase, or so on. Doing so was
18743       crashing on startup for some users. Fixes bug 11609; bugfix
18744       on 0.2.5.1-alpha.
18745     - Avoid warnings when running with sandboxing and node statistics
18746       enabled at the same time. Fixes part of 12064; bugfix on
18747       0.2.5.1-alpha. Patch from Michael Wolf.
18748     - Avoid warnings when running with sandboxing enabled at the same
18749       time as cookie authentication, hidden services, or directory
18750       authority voting. Fixes part of 12064; bugfix on 0.2.5.1-alpha.
18751     - Do not allow options that require calls to exec to be enabled
18752       alongside the seccomp2 sandbox: they will inevitably crash. Fixes
18753       bug 12043; bugfix on 0.2.5.1-alpha.
18754     - Handle failures in getpwnam()/getpwuid() when running with the
18755       User option set and the Linux syscall sandbox enabled. Fixes bug
18756       11946; bugfix on 0.2.5.1-alpha.
18757     - Refactor the getaddrinfo workaround that the seccomp sandbox uses
18758       to avoid calling getaddrinfo() after installing the sandbox
18759       filters. Previously, it preloaded a cache with the IPv4 address
18760       for our hostname, and nothing else. Now, it loads the cache with
18761       every address that it used to initialize the Tor process. Fixes
18762       bug 11970; bugfix on 0.2.5.1-alpha.
18764   o Minor bugfixes (pluggable transports):
18765     - Enable the ExtORPortCookieAuthFile option, to allow changing the
18766       default location of the authentication token for the extended OR
18767       Port as used by sever-side pluggable transports. We had
18768       implemented this option before, but the code to make it settable
18769       had been omitted. Fixes bug 11635; bugfix on 0.2.5.1-alpha.
18770     - Avoid another 60-second delay when starting Tor in a pluggable-
18771       transport-using configuration when we already have cached
18772       descriptors for our bridges. Fixes bug 11965; bugfix
18773       on 0.2.3.6-alpha.
18775   o Minor bugfixes (client):
18776     - Avoid "Tried to open a socket with DisableNetwork set" warnings
18777       when starting a client with bridges configured and DisableNetwork
18778       set. (Tor launcher starts Tor with DisableNetwork set the first
18779       time it runs.) Fixes bug 10405; bugfix on 0.2.3.9-alpha.
18781   o Minor bugfixes (testing):
18782     - The Python parts of the test scripts now work on Python 3 as well
18783       as Python 2, so systems where '/usr/bin/python' is Python 3 will
18784       no longer have the tests break. Fixes bug 11608; bugfix
18785       on 0.2.5.2-alpha.
18786     - When looking for versions of python that we could run the tests
18787       with, check for "python2.7" and "python3.3"; previously we were
18788       only looking for "python", "python2", and "python3". Patch from
18789       Dana Koch. Fixes bug 11632; bugfix on 0.2.5.2-alpha.
18790     - Fix all valgrind warnings produced by the unit tests. There were
18791       over a thousand memory leak warnings previously, mostly produced
18792       by forgetting to free things in the unit test code. Fixes bug
18793       11618, bugfixes on many versions of Tor.
18795   o Minor bugfixes (tor-fw-helper):
18796     - Give a correct log message when tor-fw-helper fails to launch.
18797       (Previously, we would say something like "tor-fw-helper sent us a
18798       string we could not parse".) Fixes bug 9781; bugfix
18799       on 0.2.4.2-alpha.
18801   o Minor bugfixes (relay, threading):
18802     - Check return code on spawn_func() in cpuworker code, so that we
18803       don't think we've spawned a nonworking cpuworker and write junk to
18804       it forever. Fix related to bug 4345; bugfix on all released Tor
18805       versions. Found by "skruffy".
18806     - Use a pthread_attr to make sure that spawn_func() cannot return an
18807       error while at the same time launching a thread. Fix related to
18808       bug 4345; bugfix on all released Tor versions. Reported
18809       by "cypherpunks".
18811   o Minor bugfixes (relay, oom prevention):
18812     - Correctly detect the total available system memory. We tried to do
18813       this in 0.2.5.4-alpha, but the code was set up to always return an
18814       error value, even on success. Fixes bug 11805; bugfix
18815       on 0.2.5.4-alpha.
18817   o Minor bugfixes (relay, other):
18818     - We now drop CREATE cells for already-existent circuit IDs and for
18819       zero-valued circuit IDs, regardless of other factors that might
18820       otherwise have called for DESTROY cells. Fixes bug 12191; bugfix
18821       on 0.0.8pre1.
18822     - Avoid an illegal read from stack when initializing the TLS module
18823       using a version of OpenSSL without all of the ciphers used by the
18824       v2 link handshake. Fixes bug 12227; bugfix on 0.2.4.8-alpha. Found
18825       by "starlight".
18826     - When rejecting DATA cells for stream_id zero, still count them
18827       against the circuit's deliver window so that we don't fail to send
18828       a SENDME. Fixes bug 11246; bugfix on 0.2.4.10-alpha.
18830   o Minor bugfixes (logging):
18831     - Fix a misformatted log message about delayed directory fetches.
18832       Fixes bug 11654; bugfix on 0.2.5.3-alpha.
18833     - Squelch a spurious LD_BUG message "No origin circuit for
18834       successful SOCKS stream" in certain hidden service failure cases;
18835       fixes bug 10616.
18837   o Distribution:
18838     - Include a tor.service file in contrib/dist for use with systemd.
18839       Some distributions will be able to use this file unmodified;
18840       others will need to tweak it, or write their own. Patch from Jamie
18841       Nguyen; resolves ticket 8368.
18843   o Documentation:
18844     - Clean up several option names in the manpage to match their real
18845       names, add the missing documentation for a couple of testing and
18846       directory authority options, remove the documentation for a
18847       V2-directory fetching option that no longer exists. Resolves
18848       ticket 11634.
18849     - Correct the documentation so that it lists the correct directory
18850       for the stats files. (They are in a subdirectory called "stats",
18851       not "status".)
18852     - In the manpage, move more authority-only options into the
18853       directory authority section so that operators of regular directory
18854       caches don't get confused.
18856   o Package cleanup:
18857     - The contrib directory has been sorted and tidied. Before, it was
18858       an unsorted dumping ground for useful and not-so-useful things.
18859       Now, it is divided based on functionality, and the items which
18860       seemed to be nonfunctional or useless have been removed. Resolves
18861       ticket 8966; based on patches from "rl1987".
18863   o Removed code:
18864     - Remove /tor/dbg-stability.txt URL that was meant to help debug WFU
18865       and MTBF calculations, but that nobody was using. Fixes ticket 11742.
18866     - The TunnelDirConns and PreferTunnelledDirConns options no longer
18867       exist; tunneled directory connections have been available since
18868       0.1.2.5-alpha, and turning them off is not a good idea. This is a
18869       brute-force fix for 10849, where "TunnelDirConns 0" would break
18870       hidden services.
18873 Changes in version 0.2.4.22 - 2014-05-16
18874   Tor 0.2.4.22 backports numerous high-priority fixes from the Tor 0.2.5
18875   alpha release series. These include blocking all authority signing
18876   keys that may have been affected by the OpenSSL "heartbleed" bug,
18877   choosing a far more secure set of TLS ciphersuites by default, closing
18878   a couple of memory leaks that could be used to run a target relay out
18879   of RAM, and several others.
18881   o Major features (security, backport from 0.2.5.4-alpha):
18882     - Block authority signing keys that were used on authorities
18883       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
18884       don't have any evidence that these keys _were_ compromised; we're
18885       doing this to be prudent.) Resolves ticket 11464.
18887   o Major bugfixes (security, OOM):
18888     - Fix a memory leak that could occur if a microdescriptor parse
18889       fails during the tokenizing step. This bug could enable a memory
18890       exhaustion attack by directory servers. Fixes bug 11649; bugfix
18891       on 0.2.2.6-alpha.
18893   o Major bugfixes (TLS cipher selection, backport from 0.2.5.4-alpha):
18894     - The relay ciphersuite list is now generated automatically based on
18895       uniform criteria, and includes all OpenSSL ciphersuites with
18896       acceptable strength and forward secrecy. Previously, we had left
18897       some perfectly fine ciphersuites unsupported due to omission or
18898       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
18899       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
18900     - Relays now trust themselves to have a better view than clients of
18901       which TLS ciphersuites are better than others. (Thanks to bug
18902       11513, the relay list is now well-considered, whereas the client
18903       list has been chosen mainly for anti-fingerprinting purposes.)
18904       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
18905       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
18906       AES128. Resolves ticket 11528.
18907     - Clients now try to advertise the same list of ciphersuites as
18908       Firefox 28. This change enables selection of (fast) GCM
18909       ciphersuites, disables some strange old ciphers, and stops
18910       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
18911       Resolves ticket 11438.
18913   o Minor bugfixes (configuration, security):
18914     - When running a hidden service, do not allow TunneledDirConns 0:
18915       trying to set that option together with a hidden service would
18916       otherwise prevent the hidden service from running, and also make
18917       it publish its descriptors directly over HTTP. Fixes bug 10849;
18918       bugfix on 0.2.1.1-alpha.
18920   o Minor bugfixes (controller, backport from 0.2.5.4-alpha):
18921     - Avoid sending a garbage value to the controller when a circuit is
18922       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
18924   o Minor bugfixes (exit relay, backport from 0.2.5.4-alpha):
18925     - Stop leaking memory when we successfully resolve a PTR record.
18926       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
18928   o Minor bugfixes (bridge client, backport from 0.2.5.4-alpha):
18929     - Avoid 60-second delays in the bootstrapping process when Tor is
18930       launching for a second time while using bridges. Fixes bug 9229;
18931       bugfix on 0.2.0.3-alpha.
18933   o Minor bugfixes (relays and bridges, backport from 0.2.5.4-alpha):
18934     - Give the correct URL in the warning message when trying to run a
18935       relay on an ancient version of Windows. Fixes bug 9393.
18937   o Minor bugfixes (compilation):
18938     - Fix a compilation error when compiling with --disable-curve25519.
18939       Fixes bug 9700; bugfix on 0.2.4.17-rc.
18941   o Minor bugfixes:
18942     - Downgrade the warning severity for the the "md was still
18943       referenced 1 node(s)" warning. Tor 0.2.5.4-alpha has better code
18944       for trying to diagnose this bug, and the current warning in
18945       earlier versions of tor achieves nothing useful. Addresses warning
18946       from bug 7164.
18948   o Minor features (log verbosity, backport from 0.2.5.4-alpha):
18949     - When we run out of usable circuit IDs on a channel, log only one
18950       warning for the whole channel, and describe how many circuits
18951       there were on the channel. Fixes part of ticket 11553.
18953   o Minor features (security, backport from 0.2.5.4-alpha):
18954     - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but
18955       leave the default at 8GBytes), to better support Raspberry Pi
18956       users. Fixes bug 9686; bugfix on 0.2.4.14-alpha.
18958   o Documentation (backport from 0.2.5.4-alpha):
18959     - Correctly document that we search for a system torrc file before
18960       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
18961       0.2.3.18-rc.
18964 Changes in version 0.2.5.4-alpha - 2014-04-25
18965   Tor 0.2.5.4-alpha includes several security and performance
18966   improvements for clients and relays, including blacklisting authority
18967   signing keys that were used while susceptible to the OpenSSL
18968   "heartbleed" bug, fixing two expensive functions on busy relays,
18969   improved TLS ciphersuite preference lists, support for run-time
18970   hardening on compilers that support AddressSanitizer, and more work on
18971   the Linux sandbox code.
18973   There are also several usability fixes for clients (especially clients
18974   that use bridges), two new TransPort protocols supported (one on
18975   OpenBSD, one on FreeBSD), and various other bugfixes.
18977   This release marks end-of-life for Tor 0.2.2.x; those Tor versions
18978   have accumulated many known flaws; everyone should upgrade.
18980   o Major features (security):
18981     - If you don't specify MaxMemInQueues yourself, Tor now tries to
18982       pick a good value based on your total system memory. Previously,
18983       the default was always 8 GB. You can still override the default by
18984       setting MaxMemInQueues yourself. Resolves ticket 11396.
18985     - Block authority signing keys that were used on authorities
18986       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
18987       don't have any evidence that these keys _were_ compromised; we're
18988       doing this to be prudent.) Resolves ticket 11464.
18990   o Major features (relay performance):
18991     - Speed up server-side lookups of rendezvous and introduction point
18992       circuits by using hashtables instead of linear searches. These
18993       functions previously accounted between 3 and 7% of CPU usage on
18994       some busy relays. Resolves ticket 9841.
18995     - Avoid wasting CPU when extending a circuit over a channel that is
18996       nearly out of circuit IDs. Previously, we would do a linear scan
18997       over possible circuit IDs before finding one or deciding that we
18998       had exhausted our possibilities. Now, we try at most 64 random
18999       circuit IDs before deciding that we probably won't succeed. Fixes
19000       a possible root cause of ticket 11553.
19002   o Major features (seccomp2 sandbox, Linux only):
19003     - The seccomp2 sandbox can now run a test network for multiple hours
19004       without crashing. The sandbox is still experimental, and more bugs
19005       will probably turn up. To try it, enable "Sandbox 1" on a Linux
19006       host. Resolves ticket 11351.
19007     - Strengthen sandbox code: the sandbox can now test the arguments
19008       for rename(), and blocks _sysctl() entirely. Resolves another part
19009       of ticket 11351.
19010     - When the sandbox blocks a system call, it now tries to log a stack
19011       trace before exiting. Resolves ticket 11465.
19013   o Major bugfixes (TLS cipher selection):
19014     - The relay ciphersuite list is now generated automatically based on
19015       uniform criteria, and includes all OpenSSL ciphersuites with
19016       acceptable strength and forward secrecy. Previously, we had left
19017       some perfectly fine ciphersuites unsupported due to omission or
19018       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
19019       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
19020     - Relays now trust themselves to have a better view than clients of
19021       which TLS ciphersuites are better than others. (Thanks to bug
19022       11513, the relay list is now well-considered, whereas the client
19023       list has been chosen mainly for anti-fingerprinting purposes.)
19024       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
19025       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
19026       AES128. Resolves ticket 11528.
19027     - Clients now try to advertise the same list of ciphersuites as
19028       Firefox 28. This change enables selection of (fast) GCM
19029       ciphersuites, disables some strange old ciphers, and stops
19030       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
19031       Resolves ticket 11438.
19033   o Major bugfixes (bridge client):
19034     - Avoid 60-second delays in the bootstrapping process when Tor is
19035       launching for a second time while using bridges. Fixes bug 9229;
19036       bugfix on 0.2.0.3-alpha.
19038   o Minor features (transparent proxy, *BSD):
19039     - Support FreeBSD's ipfw firewall interface for TransPort ports on
19040       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
19041       10267; patch from "yurivict".
19042     - Support OpenBSD's divert-to rules with the pf firewall for
19043       transparent proxy ports. To enable it, set "TransProxyType
19044       pf-divert". This allows Tor to run a TransPort transparent proxy
19045       port on OpenBSD 4.4 or later without root privileges. See the
19046       pf.conf(5) manual page for information on configuring pf to use
19047       divert-to rules. Closes ticket 10896; patch from Dana Koch.
19049   o Minor features (security):
19050     - New --enable-expensive-hardening option to enable security
19051       hardening options that consume nontrivial amounts of CPU and
19052       memory. Right now, this includes AddressSanitizer and UbSan, which
19053       are supported in newer versions of GCC and Clang. Closes ticket
19054       11477.
19056   o Minor features (log verbosity):
19057     - Demote the message that we give when a flushing connection times
19058       out for too long from NOTICE to INFO. It was usually meaningless.
19059       Resolves ticket 5286.
19060     - Don't log so many notice-level bootstrapping messages at startup
19061       about downloading descriptors. Previously, we'd log a notice
19062       whenever we learned about more routers. Now, we only log a notice
19063       at every 5% of progress. Fixes bug 9963.
19064     - Warn less verbosely when receiving a malformed
19065       ESTABLISH_RENDEZVOUS cell. Fixes ticket 11279.
19066     - When we run out of usable circuit IDs on a channel, log only one
19067       warning for the whole channel, and describe how many circuits
19068       there were on the channel. Fixes part of ticket 11553.
19070   o Minor features (relay):
19071     - If a circuit timed out for at least 3 minutes, check if we have a
19072       new external IP address, and publish a new descriptor with the new
19073       IP address if it changed. Resolves ticket 2454.
19075   o Minor features (controller):
19076     - Make the entire exit policy available from the control port via
19077       GETINFO exit-policy/*. Implements enhancement 7952. Patch from
19078       "rl1987".
19079     - Because of the fix for ticket 11396, the real limit for memory
19080       usage may no longer match the configured MaxMemInQueues value. The
19081       real limit is now exposed via GETINFO limits/max-mem-in-queues.
19083   o Minor features (bridge client):
19084     - Report a more useful failure message when we can't connect to a
19085       bridge because we don't have the right pluggable transport
19086       configured. Resolves ticket 9665. Patch from Fábio J. Bertinatto.
19088   o Minor features (diagnostic):
19089     - Add more log messages to diagnose bug 7164, which causes
19090       intermittent "microdesc_free() called but md was still referenced"
19091       warnings. We now include more information, to figure out why we
19092       might be cleaning a microdescriptor for being too old if it's
19093       still referenced by a live node_t object.
19095   o Minor bugfixes (client, DNSPort):
19096     - When using DNSPort, try to respond to AAAA requests with AAAA
19097       answers. Previously, we hadn't looked at the request type when
19098       deciding which answer type to prefer. Fixes bug 10468; bugfix on
19099       0.2.4.7-alpha.
19100     - When receiving a DNS query for an unsupported record type, reply
19101       with no answer rather than with a NOTIMPL error. This behavior
19102       isn't correct either, but it will break fewer client programs, we
19103       hope. Fixes bug 10268; bugfix on 0.2.0.1-alpha. Original patch
19104       from "epoch".
19106   o Minor bugfixes (exit relay):
19107     - Stop leaking memory when we successfully resolve a PTR record.
19108       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
19110   o Minor bugfixes (bridge client):
19111     - Stop accepting bridge lines containing hostnames. Doing so would
19112       cause clients to perform DNS requests on the hostnames, which was
19113       not sensible behavior. Fixes bug 10801; bugfix on 0.2.0.1-alpha.
19114     - Avoid a 60-second delay in the bootstrapping process when a Tor
19115       client with pluggable transports re-reads its configuration at
19116       just the wrong time. Re-fixes bug 11156; bugfix on 0.2.5.3-alpha.
19118   o Minor bugfixes (client, logging during bootstrap):
19119     - Warn only once if we start logging in an unsafe way. Previously,
19120       we complain as many times as we had problems. Fixes bug 9870;
19121       bugfix on 0.2.5.1-alpha.
19122     - Only report the first fatal bootstrap error on a given OR
19123       connection. This stops us from telling the controller bogus error
19124       messages like "DONE". Fixes bug 10431; bugfix on 0.2.1.1-alpha.
19125     - Be more helpful when trying to run sandboxed on Linux without
19126       libseccomp. Instead of saying "Sandbox is not implemented on this
19127       platform", we now explain that we need to be built with
19128       libseccomp. Fixes bug 11543; bugfix on 0.2.5.1-alpha.
19129     - Avoid generating spurious warnings when starting with
19130       DisableNetwork enabled. Fixes bug 11200 and bug 10405; bugfix on
19131       0.2.3.9-alpha.
19133   o Minor bugfixes (closing OR connections):
19134     - If write_to_buf() in connection_write_to_buf_impl_() ever fails,
19135       check if it's an or_connection_t and correctly call
19136       connection_or_close_for_error() rather than
19137       connection_mark_for_close() directly. Fixes bug 11304; bugfix on
19138       0.2.4.4-alpha.
19139     - When closing all connections on setting DisableNetwork to 1, use
19140       connection_or_close_normally() rather than closing OR connections
19141       out from under the channel layer. Fixes bug 11306; bugfix on
19142       0.2.4.4-alpha.
19144   o Minor bugfixes (controller):
19145     - Avoid sending a garbage value to the controller when a circuit is
19146       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
19148   o Minor bugfixes (tor-fw-helper):
19149     - Allow tor-fw-helper to build again by adding src/ext to its
19150       CPPFLAGS. Fixes bug 11296; bugfix on 0.2.5.3-alpha.
19152   o Minor bugfixes (bridges):
19153     - Avoid potential crashes or bad behavior when launching a
19154       server-side managed proxy with ORPort or ExtORPort temporarily
19155       disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha.
19157   o Minor bugfixes (platform-specific):
19158     - Fix compilation on Solaris, which does not have <endian.h>. Fixes
19159       bug 11426; bugfix on 0.2.5.3-alpha.
19160     - When dumping a malformed directory object to disk, save it in
19161       binary mode on Windows, not text mode. Fixes bug 11342; bugfix on
19162       0.2.2.1-alpha.
19163     - Don't report failures from make_socket_reuseable() on incoming
19164       sockets on OSX: this can happen when incoming connections close
19165       early. Fixes bug 10081.
19167   o Minor bugfixes (trivial memory leaks):
19168     - Fix a small memory leak when signing a directory object. Fixes bug
19169       11275; bugfix on 0.2.4.13-alpha.
19170     - Free placeholder entries in our circuit table at exit; fixes a
19171       harmless memory leak. Fixes bug 11278; bugfix on 0.2.5.1-alpha.
19172     - Don't re-initialize a second set of OpenSSL mutexes when starting
19173       up. Previously, we'd make one set of mutexes, and then immediately
19174       replace them with another. Fixes bug 11726; bugfix on
19175       0.2.5.3-alpha.
19176     - Resolve some memory leaks found by coverity in the unit tests, on
19177       exit in tor-gencert, and on a failure to compute digests for our
19178       own keys when generating a v3 networkstatus vote. These leaks
19179       should never have affected anyone in practice.
19181   o Minor bugfixes (hidden service):
19182     - Only retry attempts to connect to a chosen rendezvous point 8
19183       times, not 30. Fixes bug 4241; bugfix on 0.1.0.1-rc.
19185   o Minor bugfixes (misc code correctness):
19186     - Fix various instances of undefined behavior in channeltls.c,
19187       tor_memmem(), and eventdns.c that would cause us to construct
19188       pointers to memory outside an allocated object. (These invalid
19189       pointers were not accessed, but C does not even allow them to
19190       exist.) Fixes bug 10363; bugfixes on 0.1.1.1-alpha, 0.1.2.1-alpha,
19191       0.2.0.10-alpha, and 0.2.3.6-alpha. Reported by "bobnomnom".
19192     - Use the AddressSanitizer and Ubsan sanitizers (in clang-3.4) to
19193       fix some miscellaneous errors in our tests and codebase. Fixes bug
19194       11232. Bugfixes on versions back as far as 0.2.1.11-alpha.
19195     - Always check return values for unlink, munmap, UnmapViewOfFile;
19196       check strftime return values more often. In some cases all we can
19197       do is report a warning, but this may help prevent deeper bugs from
19198       going unnoticed. Closes ticket 8787; bugfixes on many, many tor
19199       versions.
19200     - Fix numerous warnings from the clang "scan-build" static analyzer.
19201       Some of these are programming style issues; some of them are false
19202       positives that indicated awkward code; some are undefined behavior
19203       cases related to constructing (but not using) invalid pointers;
19204       some are assumptions about API behavior; some are (harmlessly)
19205       logging sizeof(ptr) bytes from a token when sizeof(*ptr) would be
19206       correct; and one or two are genuine bugs that weren't reachable
19207       from the rest of the program. Fixes bug 8793; bugfixes on many,
19208       many tor versions.
19210   o Documentation:
19211     - Build the torify.1 manpage again. Previously, we were only trying
19212       to build it when also building tor-fw-helper. That's why we didn't
19213       notice that we'd broken the ability to build it. Fixes bug 11321;
19214       bugfix on 0.2.5.1-alpha.
19215     - Fix the layout of the SOCKSPort flags in the manpage. Fixes bug
19216       11061; bugfix on 0.2.4.7-alpha.
19217     - Correctly document that we search for a system torrc file before
19218       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
19219       0.2.3.18-rc.
19220     - Resolve warnings from Doxygen.
19222   o Code simplifications and refactoring:
19223     - Remove is_internal_IP() function. Resolves ticket 4645.
19224     - Remove unused function circuit_dump_by_chan from circuitlist.c.
19225       Closes issue 9107; patch from "marek".
19226     - Change our use of the ENUM_BF macro to avoid declarations that
19227       confuse Doxygen.
19229   o Deprecated versions:
19230     - Tor 0.2.2.x has reached end-of-life; it has received no patches or
19231       attention for some while. Directory authorities no longer accept
19232       descriptors from relays running any version of Tor prior to Tor
19233       0.2.3.16-alpha. Resolves ticket 11149.
19235   o Testing:
19236     - New macros in test.h to simplify writing mock-functions for unit
19237       tests. Part of ticket 11507. Patch from Dana Koch.
19238     - Complete tests for the status.c module. Resolves ticket 11507.
19239       Patch from Dana Koch.
19241   o Removed code:
19242     - Remove all code for the long unused v1 directory protocol.
19243       Resolves ticket 11070.
19246 Changes in version 0.2.5.3-alpha - 2014-03-22
19247   Tor 0.2.5.3-alpha includes all the fixes from 0.2.4.21. It contains
19248   two new anti-DoS features for Tor relays, resolves a bug that kept
19249   SOCKS5 support for IPv6 from working, fixes several annoying usability
19250   issues for bridge users, and removes more old code for unused
19251   directory formats.
19253   The Tor 0.2.5.x release series is now in patch-freeze: no feature
19254   patches not already written will be considered for inclusion in 0.2.5.x.
19256   o Major features (relay security, DoS-resistance):
19257     - When deciding whether we have run out of memory and we need to
19258       close circuits, also consider memory allocated in buffers for
19259       streams attached to each circuit.
19261       This change, which extends an anti-DoS feature introduced in
19262       0.2.4.13-alpha and improved in 0.2.4.14-alpha, lets Tor exit relays
19263       better resist more memory-based DoS attacks than before. Since the
19264       MaxMemInCellQueues option now applies to all queues, it is renamed
19265       to MaxMemInQueues. This feature fixes bug 10169.
19266     - Avoid hash-flooding denial-of-service attacks by using the secure
19267       SipHash-2-4 hash function for our hashtables. Without this
19268       feature, an attacker could degrade performance of a targeted
19269       client or server by flooding their data structures with a large
19270       number of entries to be stored at the same hash table position,
19271       thereby slowing down the Tor instance. With this feature, hash
19272       table positions are derived from a randomized cryptographic key,
19273       and an attacker cannot predict which entries will collide. Closes
19274       ticket 4900.
19275     - Decrease the lower limit of MaxMemInQueues to 256 MBytes (but leave
19276       the default at 8GBytes), to better support Raspberry Pi users. Fixes
19277       bug 9686; bugfix on 0.2.4.14-alpha.
19279   o Minor features (bridges, pluggable transports):
19280     - Bridges now write the SHA1 digest of their identity key
19281       fingerprint (that is, a hash of a hash of their public key) to
19282       notice-level logs, and to a new hashed-fingerprint file. This
19283       information will help bridge operators look up their bridge in
19284       Globe and similar tools. Resolves ticket 10884.
19285     - Improve the message that Tor displays when running as a bridge
19286       using pluggable transports without an Extended ORPort listener.
19287       Also, log the message in the log file too. Resolves ticket 11043.
19289   o Minor features (other):
19290     - Add a new option, PredictedPortsRelevanceTime, to control how long
19291       after having received a request to connect to a given port Tor
19292       will try to keep circuits ready in anticipation of future requests
19293       for that port. Patch from "unixninja92"; implements ticket 9176.
19294     - Generate a warning if any ports are listed in the SocksPolicy,
19295       DirPolicy, AuthDirReject, AuthDirInvalid, AuthDirBadDir, or
19296       AuthDirBadExit options. (These options only support address
19297       ranges.) Fixes part of ticket 11108.
19298     - Update geoip and geoip6 to the February 7 2014 Maxmind GeoLite2
19299       Country database.
19301   o Minor bugfixes (new since 0.2.5.2-alpha, also in 0.2.4.21):
19302     - Build without warnings under clang 3.4. (We have some macros that
19303       define static functions only some of which will get used later in
19304       the module. Starting with clang 3.4, these give a warning unless the
19305       unused attribute is set on them.) Resolves ticket 10904.
19306     - Fix build warnings about missing "a2x" comment when building the
19307       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
19308       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
19310   o Minor bugfixes (client):
19311     - Improve the log message when we can't connect to a hidden service
19312       because all of the hidden service directory nodes hosting its
19313       descriptor are excluded. Improves on our fix for bug 10722, which
19314       was a bugfix on 0.2.0.10-alpha.
19315     - Raise a control port warning when we fail to connect to all of
19316       our bridges. Previously, we didn't inform the controller, and
19317       the bootstrap process would stall. Fixes bug 11069; bugfix on
19318       0.2.1.2-alpha.
19319     - Exit immediately when a process-owning controller exits.
19320       Previously, tor relays would wait for a little while after their
19321       controller exited, as if they had gotten an INT signal -- but this
19322       was problematic, since there was no feedback for the user. To do a
19323       clean shutdown, controllers should send an INT signal and give Tor
19324       a chance to clean up. Fixes bug 10449; bugfix on 0.2.2.28-beta.
19325     - Stop attempting to connect to bridges before our pluggable
19326       transports are configured (harmless but resulted in some erroneous
19327       log messages). Fixes bug 11156; bugfix on 0.2.3.2-alpha.
19328     - Fix connections to IPv6 addresses over SOCKS5. Previously, we were
19329       generating incorrect SOCKS5 responses, and confusing client
19330       applications. Fixes bug 10987; bugfix on 0.2.4.7-alpha.
19332   o Minor bugfixes (relays and bridges):
19333     - Avoid crashing on a malformed resolv.conf file when running a
19334       relay using Libevent 1. Fixes bug 8788; bugfix on 0.1.1.23.
19335     - Non-exit relays no longer launch mock DNS requests to check for
19336       DNS hijacking. This has been unnecessary since 0.2.1.7-alpha, when
19337       non-exit relays stopped servicing DNS requests. Fixes bug 965;
19338       bugfix on 0.2.1.7-alpha. Patch from Matt Pagan.
19339     - Bridges now report complete directory request statistics. Related
19340       to bug 5824; bugfix on 0.2.2.1-alpha.
19341     - Bridges now never collect statistics that were designed for
19342       relays. Fixes bug 5824; bugfix on 0.2.3.8-alpha.
19343     - Stop giving annoying warning messages when we decide not to launch
19344       a pluggable transport proxy that we don't need (because there are
19345       no bridges configured to use it). Resolves ticket 5018; bugfix
19346       on 0.2.5.2-alpha.
19347     - Give the correct URL in the warning message when trying to run a
19348       relay on an ancient version of Windows. Fixes bug 9393.
19350   o Minor bugfixes (backtrace support):
19351     - Support automatic backtraces on more platforms by using the
19352       "-fasynchronous-unwind-tables" compiler option. This option is
19353       needed for platforms like 32-bit Intel where "-fomit-frame-pointer"
19354       is on by default and table generation is not. This doesn't yet
19355       add Windows support; only Linux, OSX, and some BSDs are affected.
19356       Reported by 'cypherpunks'; fixes bug 11047; bugfix on 0.2.5.2-alpha.
19357     - Avoid strange behavior if two threads hit failed assertions at the
19358       same time and both try to log backtraces at once. (Previously, if
19359       this had happened, both threads would have stored their intermediate
19360       results in the same buffer, and generated junk outputs.) Reported by
19361       "cypherpunks". Fixes bug 11048; bugfix on 0.2.5.2-alpha.
19362     - Fix a compiler warning in format_number_sigsafe(). Bugfix on
19363       0.2.5.2-alpha; patch from Nick Hopper.
19365   o Minor bugfixes (unit tests):
19366     - Fix a small bug in the unit tests that might have made the tests
19367       call 'chmod' with an uninitialized bitmask. Fixes bug 10928;
19368       bugfix on 0.2.5.1-alpha. Patch from Dana Koch.
19370   o Removed code:
19371     - Remove all remaining code related to version-0 hidden service
19372       descriptors: they have not been in use since 0.2.2.1-alpha. Fixes
19373       the rest of bug 10841.
19375   o Documentation:
19376     - Document in the manpage that "KBytes" may also be written as
19377       "kilobytes" or "KB", that "Kbits" may also be written as
19378       "kilobits", and so forth. Closes ticket 9222.
19379     - Document that the ClientOnly config option overrides ORPort.
19380       Our old explanation made ClientOnly sound as though it did
19381       nothing at all. Resolves bug 9059.
19382     - Explain that SocksPolicy, DirPolicy, and similar options don't
19383       take port arguments. Fixes the other part of ticket 11108.
19384     - Fix a comment about the rend_server_descriptor_t.protocols field
19385       to more accurately describe its range. Also, make that field
19386       unsigned, to more accurately reflect its usage. Fixes bug 9099;
19387       bugfix on 0.2.1.5-alpha.
19388     - Fix the manpage's description of HiddenServiceAuthorizeClient:
19389       the maximum client name length is 16, not 19. Fixes bug 11118;
19390       bugfix on 0.2.1.6-alpha.
19392   o Code simplifications and refactoring:
19393     - Get rid of router->address, since in all cases it was just the
19394       string representation of router->addr. Resolves ticket 5528.
19396   o Test infrastructure:
19397     - Update to the latest version of tinytest.
19398     - Improve the tinytest implementation of string operation tests so
19399       that comparisons with NULL strings no longer crash the tests; they
19400       now just fail, normally. Fixes bug 9004; bugfix on 0.2.2.4-alpha.
19403 Changes in version 0.2.4.21 - 2014-02-28
19404   Tor 0.2.4.21 further improves security against potential adversaries who
19405   find breaking 1024-bit crypto doable, and backports several stability
19406   and robustness patches from the 0.2.5 branch.
19408   o Major features (client security):
19409     - When we choose a path for a 3-hop circuit, make sure it contains
19410       at least one relay that supports the NTor circuit extension
19411       handshake. Otherwise, there is a chance that we're building
19412       a circuit that's worth attacking by an adversary who finds
19413       breaking 1024-bit crypto doable, and that chance changes the game
19414       theory. Implements ticket 9777.
19416   o Major bugfixes:
19417     - Do not treat streams that fail with reason
19418       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
19419       since it could also indicate an ENETUNREACH connection error. Fixes
19420       part of bug 10777; bugfix on 0.2.4.8-alpha.
19422   o Code simplification and refactoring:
19423     - Remove data structures which were introduced to implement the
19424       CellStatistics option: they are now redundant with the new timestamp
19425       field in the regular packed_cell_t data structure, which we did
19426       in 0.2.4.18-rc in order to resolve bug 9093. Resolves ticket 10870.
19428   o Minor features:
19429     - Always clear OpenSSL bignums before freeing them -- even bignums
19430       that don't contain secrets. Resolves ticket 10793. Patch by
19431       Florent Daigniere.
19432     - Build without warnings under clang 3.4. (We have some macros that
19433       define static functions only some of which will get used later in
19434       the module. Starting with clang 3.4, these give a warning unless the
19435       unused attribute is set on them.) Resolves ticket 10904.
19436     - Update geoip and geoip6 files to the February 7 2014 Maxmind
19437       GeoLite2 Country database.
19439   o Minor bugfixes:
19440     - Set the listen() backlog limit to the largest actually supported
19441       on the system, not to the value in a header file. Fixes bug 9716;
19442       bugfix on every released Tor.
19443     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
19444       exit node as a NOROUTE error, not an INTERNAL error, since they
19445       can apparently happen when trying to connect to the wrong sort
19446       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
19447     - Fix build warnings about missing "a2x" comment when building the
19448       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
19449       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
19450     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
19451       not entirely remove it from the connection lists. Fixes bug 9602;
19452       bugfix on 0.2.4.4-alpha.
19453     - Fix a segmentation fault in our benchmark code when running with
19454       Fedora's OpenSSL package, or any other OpenSSL that provides
19455       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
19456     - Turn "circuit handshake stats since last time" log messages into a
19457       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
19459   o Documentation fixes:
19460     - Document that all but one DirPort entry must have the NoAdvertise
19461       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
19464 Changes in version 0.2.5.2-alpha - 2014-02-13
19465   Tor 0.2.5.2-alpha includes all the fixes from 0.2.4.18-rc and 0.2.4.20,
19466   like the "poor random number generation" fix and the "building too many
19467   circuits" fix. It also further improves security against potential
19468   adversaries who find breaking 1024-bit crypto doable, and launches
19469   pluggable transports on demand (which gets us closer to integrating
19470   pluggable transport support by default -- not to be confused with Tor
19471   bundles enabling pluggable transports and bridges by default).
19473   o Major features (client security):
19474     - When we choose a path for a 3-hop circuit, make sure it contains
19475       at least one relay that supports the NTor circuit extension
19476       handshake. Otherwise, there is a chance that we're building
19477       a circuit that's worth attacking by an adversary who finds
19478       breaking 1024-bit crypto doable, and that chance changes the game
19479       theory. Implements ticket 9777.
19480     - Clients now look at the "usecreatefast" consensus parameter to
19481       decide whether to use CREATE_FAST or CREATE cells for the first hop
19482       of their circuit. This approach can improve security on connections
19483       where Tor's circuit handshake is stronger than the available TLS
19484       connection security levels, but the tradeoff is more computational
19485       load on guard relays. Implements proposal 221. Resolves ticket 9386.
19487   o Major features (bridges):
19488     - Don't launch pluggable transport proxies if we don't have any
19489       bridges configured that would use them. Now we can list many
19490       pluggable transports, and Tor will dynamically start one when it
19491       hears a bridge address that needs it. Resolves ticket 5018.
19492     - The bridge directory authority now assigns status flags (Stable,
19493       Guard, etc) to bridges based on thresholds calculated over all
19494       Running bridges. Now bridgedb can finally make use of its features
19495       to e.g. include at least one Stable bridge in its answers. Fixes
19496       bug 9859.
19498   o Major features (other):
19499     - Extend ORCONN controller event to include an "ID" parameter,
19500       and add four new controller event types CONN_BW, CIRC_BW,
19501       CELL_STATS, and TB_EMPTY that show connection and circuit usage.
19502       The new events are emitted in private Tor networks only, with the
19503       goal of being able to better track performance and load during
19504       full-network simulations. Implements proposal 218 and ticket 7359.
19505     - On some platforms (currently: recent OSX versions, glibc-based
19506       platforms that support the ELF format, and a few other
19507       Unix-like operating systems), Tor can now dump stack traces
19508       when a crash occurs or an assertion fails. By default, traces
19509       are dumped to stderr (if possible) and to any logs that are
19510       reporting errors. Implements ticket 9299.
19512   o Major bugfixes:
19513     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
19514       not entirely remove it from the connection lists. Fixes bug 9602;
19515       bugfix on 0.2.4.4-alpha.
19516     - Do not treat streams that fail with reason
19517       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
19518       since it could also indicate an ENETUNREACH connection error. Fixes
19519       part of bug 10777; bugfix on 0.2.4.8-alpha.
19521   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
19522     - Do not allow OpenSSL engines to replace the PRNG, even when
19523       HardwareAccel is set. The only default builtin PRNG engine uses
19524       the Intel RDRAND instruction to replace the entire PRNG, and
19525       ignores all attempts to seed it with more entropy. That's
19526       cryptographically stupid: the right response to a new alleged
19527       entropy source is never to discard all previously used entropy
19528       sources. Fixes bug 10402; works around behavior introduced in
19529       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
19530       and "rl1987".
19531     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
19532       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
19533     - Avoid launching spurious extra circuits when a stream is pending.
19534       This fixes a bug where any circuit that _wasn't_ unusable for new
19535       streams would be treated as if it were, causing extra circuits to
19536       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
19538   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
19539     - No longer stop reading or writing on cpuworker connections when
19540       our rate limiting buckets go empty. Now we should handle circuit
19541       handshake requests more promptly. Resolves bug 9731.
19542     - Stop trying to bootstrap all our directory information from
19543       only our first guard. Discovered while fixing bug 9946; bugfix
19544       on 0.2.4.8-alpha.
19546   o Minor features (bridges, pluggable transports):
19547     - Add threshold cutoffs to the networkstatus document created by
19548       the Bridge Authority. Fixes bug 1117.
19549     - On Windows, spawn background processes using the CREATE_NO_WINDOW
19550       flag. Now Tor Browser Bundle 3.5 with pluggable transports enabled
19551       doesn't pop up a blank console window. (In Tor Browser Bundle 2.x,
19552       Vidalia set this option for us.) Implements ticket 10297.
19554   o Minor features (security):
19555     - Always clear OpenSSL bignums before freeing them -- even bignums
19556       that don't contain secrets. Resolves ticket 10793. Patch by
19557       Florent Daignière.
19559   o Minor features (config options and command line):
19560     - Add an --allow-missing-torrc commandline option that tells Tor to
19561       run even if the configuration file specified by -f is not available.
19562       Implements ticket 10060.
19563     - Add support for the TPROXY transparent proxying facility on Linux.
19564       See documentation for the new TransProxyType option for more
19565       details. Implementation by "thomo". Closes ticket 10582.
19567   o Minor features (controller):
19568     - Add a new "HS_DESC" controller event that reports activities
19569       related to hidden service descriptors. Resolves ticket 8510.
19570     - New "DROPGUARDS" controller command to forget all current entry
19571       guards. Not recommended for ordinary use, since replacing guards
19572       too frequently makes several attacks easier. Resolves ticket 9934;
19573       patch from "ra".
19575   o Minor features (build):
19576     - Assume that a user using ./configure --host wants to cross-compile,
19577       and give an error if we cannot find a properly named
19578       tool-chain. Add a --disable-tool-name-check option to proceed
19579       nevertheless. Addresses ticket 9869. Patch by Benedikt Gollatz.
19580     - If we run ./configure and the compiler recognizes -fstack-protector
19581       but the linker rejects it, warn the user about a potentially missing
19582       libssp package. Addresses ticket 9948. Patch from Benedikt Gollatz.
19584   o Minor features (testing):
19585     - If Python is installed, "make check" now runs extra tests beyond
19586       the unit test scripts.
19587     - When bootstrapping a test network, sometimes very few relays get
19588       the Guard flag. Now a new option "TestingDirAuthVoteGuard" can
19589       specify a set of relays which should be voted Guard regardless of
19590       their uptime or bandwidth. Addresses ticket 9206.
19592   o Minor features (log messages):
19593     - When ServerTransportPlugin is set on a bridge, Tor can write more
19594       useful statistics about bridge use in its extrainfo descriptors,
19595       but only if the Extended ORPort ("ExtORPort") is set too. Add a
19596       log message to inform the user in this case. Resolves ticket 9651.
19597     - When receiving a new controller connection, log the origin address.
19598       Resolves ticket 9698; patch from "sigpipe".
19599     - When logging OpenSSL engine status at startup, log the status of
19600       more engines. Fixes ticket 10043; patch from Joshua Datko.
19601     - Turn "circuit handshake stats since last time" log messages into a
19602       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
19604   o Minor features (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
19605     - Improve the circuit queue out-of-memory handler. Previously, when
19606       we ran low on memory, we'd close whichever circuits had the most
19607       queued cells. Now, we close those that have the *oldest* queued
19608       cells, on the theory that those are most responsible for us
19609       running low on memory. Based on analysis from a forthcoming paper
19610       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
19611     - Generate bootstrapping status update events correctly when fetching
19612       microdescriptors. Fixes bug 9927.
19613     - Update to the October 2 2013 Maxmind GeoLite Country database.
19615   o Minor bugfixes (clients):
19616     - When closing a channel that has already been open, do not close
19617       pending circuits that were waiting to connect to the same relay.
19618       Fixes bug 9880; bugfix on 0.2.5.1-alpha. Thanks to skruffy for
19619       finding this bug.
19621   o Minor bugfixes (relays):
19622     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
19623       exit node as a NOROUTE error, not an INTERNAL error, since they
19624       can apparently happen when trying to connect to the wrong sort
19625       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
19627   o Minor bugfixes (bridges):
19628     - Fix a bug where the first connection works to a bridge that uses a
19629       pluggable transport with client-side parameters, but we don't send
19630       the client-side parameters on subsequent connections. (We don't
19631       use any pluggable transports with client-side parameters yet,
19632       but ScrambleSuit will soon become the first one.) Fixes bug 9162;
19633       bugfix on 0.2.0.3-alpha. Based on a patch from "rl1987".
19635   o Minor bugfixes (node selection):
19636     - If ExcludeNodes is set, consider non-excluded hidden service
19637       directory servers before excluded ones. Do not consider excluded
19638       hidden service directory servers at all if StrictNodes is
19639       set. (Previously, we would sometimes decide to connect to those
19640       servers, and then realize before we initiated a connection that
19641       we had excluded them.) Fixes bug 10722; bugfix on 0.2.0.10-alpha.
19642       Reported by "mr-4".
19643     - If we set the ExitNodes option but it doesn't include any nodes
19644       that have the Exit flag, we would choose not to bootstrap. Now we
19645       bootstrap so long as ExitNodes includes nodes which can exit to
19646       some port. Fixes bug 10543; bugfix on 0.2.4.10-alpha.
19648   o Minor bugfixes (controller and command-line):
19649     - If changing a config option via "setconf" fails in a recoverable
19650       way, we used to nonetheless write our new control ports to the
19651       file described by the "ControlPortWriteToFile" option. Now we only
19652       write out that file if we successfully switch to the new config
19653       option. Fixes bug 5605; bugfix on 0.2.2.26-beta. Patch from "Ryman".
19654     - When a command-line option such as --version or --help that
19655       ordinarily implies --hush appears on the command line along with
19656       --quiet, then actually obey --quiet. Previously, we obeyed --quiet
19657       only if it appeared later on the command line. Fixes bug 9578;
19658       bugfix on 0.2.5.1-alpha.
19660   o Minor bugfixes (code correctness):
19661     - Previously we used two temporary files when writing descriptors to
19662       disk; now we only use one. Fixes bug 1376.
19663     - Remove an erroneous (but impossible and thus harmless) pointer
19664       comparison that would have allowed compilers to skip a bounds
19665       check in channeltls.c. Fixes bugs 10313 and 9980; bugfix on
19666       0.2.0.10-alpha. Noticed by Jared L Wong and David Fifield.
19667     - Fix an always-true assertion in pluggable transports code so it
19668       actually checks what it was trying to check. Fixes bug 10046;
19669       bugfix on 0.2.3.9-alpha. Found by "dcb".
19671   o Minor bugfixes (protocol correctness):
19672     - When receiving a VERSIONS cell with an odd number of bytes, close
19673       the connection immediately since the cell is malformed. Fixes bug
19674       10365; bugfix on 0.2.0.10-alpha. Spotted by "bobnomnom"; fix by
19675       "rl1987".
19677   o Minor bugfixes (build):
19678     - Restore the ability to compile Tor with V2_HANDSHAKE_SERVER
19679       turned off (that is, without support for v2 link handshakes). Fixes
19680       bug 4677; bugfix on 0.2.3.2-alpha. Patch from "piet".
19681     - Fix compilation warnings and startup issues when running with
19682       "Sandbox 1" and libseccomp-2.1.0. Fixes bug 10563; bugfix on
19683       0.2.5.1-alpha.
19684     - Fix compilation on Solaris 9, which didn't like us having an
19685       identifier named "sun". Fixes bug 10565; bugfix in 0.2.5.1-alpha.
19687   o Minor bugfixes (testing):
19688     - Fix a segmentation fault in our benchmark code when running with
19689       Fedora's OpenSSL package, or any other OpenSSL that provides
19690       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
19692   o Minor bugfixes (log messages):
19693     - Fix a bug where clients using bridges would report themselves
19694       as 50% bootstrapped even without a live consensus document.
19695       Fixes bug 9922; bugfix on 0.2.1.1-alpha.
19696     - Suppress a warning where, if there's only one directory authority
19697       in the network, we would complain that votes and signatures cannot
19698       be uploaded to other directory authorities. Fixes bug 10842;
19699       bugfix on 0.2.2.26-beta.
19700     - Report bootstrapping progress correctly when we're downloading
19701       microdescriptors. We had updated our "do we have enough microdescs
19702       to begin building circuits?" logic most recently in 0.2.4.10-alpha
19703       (see bug 5956), but we left the bootstrap status event logic at
19704       "how far through getting 1/4 of them are we?" Fixes bug 9958;
19705       bugfix on 0.2.2.36, which is where they diverged (see bug 5343).
19707   o Minor bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
19708     - Avoid a crash bug when starting with a corrupted microdescriptor
19709       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
19710     - If we fail to dump a previously cached microdescriptor to disk, avoid
19711       freeing duplicate data later on. Fixes bug 10423; bugfix on
19712       0.2.4.13-alpha. Spotted by "bobnomnom".
19714   o Minor bugfixes on 0.2.4.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
19715     - Correctly log long IPv6 exit policies, instead of truncating them
19716       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
19717     - Our default TLS ecdhe groups were backwards: we meant to be using
19718       P224 for relays (for performance win) and P256 for bridges (since
19719       it is more common in the wild). Instead we had it backwards. After
19720       reconsideration, we decided that the default should be P256 on all
19721       hosts, since its security is probably better, and since P224 is
19722       reportedly used quite little in the wild.  Found by "skruffy" on
19723       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
19724     - Free directory authority certificate download statuses on exit
19725       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
19727   o Minor bugfixes on 0.2.3.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
19728     - If the guard we choose first doesn't answer, we would try the
19729       second guard, but once we connected to the second guard we would
19730       abandon it and retry the first one, slowing down bootstrapping.
19731       The fix is to treat all our initially chosen guards as acceptable
19732       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
19733     - Fix an assertion failure that would occur when disabling the
19734       ORPort setting on a running Tor process while accounting was
19735       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
19736     - When examining the list of network interfaces to find our address,
19737       do not consider non-running or disabled network interfaces. Fixes
19738       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
19739     - Avoid an off-by-one error when checking buffer boundaries when
19740       formatting the exit status of a pluggable transport helper.
19741       This is probably not an exploitable bug, but better safe than
19742       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
19743       Pedro Ribeiro.
19745   o Removed code and features:
19746     - Clients now reject any directory authority certificates lacking
19747       a dir-key-crosscert element. These have been included since
19748       0.2.1.9-alpha, so there's no real reason for them to be optional
19749       any longer. Completes proposal 157. Resolves ticket 10162.
19750     - Remove all code that existed to support the v2 directory system,
19751       since there are no longer any v2 directory authorities. Resolves
19752       ticket 10758.
19753     - Remove the HSAuthoritativeDir and AlternateHSAuthority torrc
19754       options, which were used for designating authorities as "Hidden
19755       service authorities". There has been no use of hidden service
19756       authorities since 0.2.2.1-alpha, when we stopped uploading or
19757       downloading v0 hidden service descriptors. Fixes bug 10881; also
19758       part of a fix for bug 10841.
19760   o Code simplification and refactoring:
19761     - Remove some old fallback code designed to keep Tor clients working
19762       in a network with only two working relays. Elsewhere in the code we
19763       have long since stopped supporting such networks, so there wasn't
19764       much point in keeping it around. Addresses ticket 9926.
19765     - Reject 0-length EXTEND2 cells more explicitly. Fixes bug 10536;
19766       bugfix on 0.2.4.8-alpha. Reported by "cypherpunks".
19767     - Remove data structures which were introduced to implement the
19768       CellStatistics option: they are now redundant with the addition
19769       of a timestamp to the regular packed_cell_t data structure, which
19770       we did in 0.2.4.18-rc in order to resolve ticket 9093. Implements
19771       ticket 10870.
19773   o Documentation (man page) fixes:
19774     - Update manpage to describe some of the files you can expect to
19775       find in Tor's DataDirectory. Addresses ticket 9839.
19776     - Document that all but one DirPort entry must have the NoAdvertise
19777       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
19779   o Documentation fixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
19780     - Clarify the usage and risks of setting the ContactInfo torrc line
19781       for your relay or bridge. Resolves ticket 9854.
19782     - Add anchors to the manpage so we can link to the html version of
19783       the documentation for specific options. Resolves ticket 9866.
19784     - Replace remaining references to DirServer in man page and
19785       log entries. Resolves ticket 10124.
19787   o Tool changes:
19788     - Make the "tor-gencert" tool used by directory authority operators
19789       create 2048-bit signing keys by default (rather than 1024-bit, since
19790       1024-bit is uncomfortably small these days). Addresses ticket 10324.
19793 Changes in version 0.2.4.20 - 2013-12-22
19794   Tor 0.2.4.20 fixes potentially poor random number generation for users
19795   who 1) use OpenSSL 1.0.0 or later, 2) set "HardwareAccel 1" in their
19796   torrc file, 3) have "Sandy Bridge" or "Ivy Bridge" Intel processors,
19797   and 4) have no state file in their DataDirectory (as would happen on
19798   first start). Users who generated relay or hidden service identity
19799   keys in such a situation should discard them and generate new ones.
19801   This release also fixes a logic error that caused Tor clients to build
19802   many more preemptive circuits than they actually need.
19804   o Major bugfixes:
19805     - Do not allow OpenSSL engines to replace the PRNG, even when
19806       HardwareAccel is set. The only default builtin PRNG engine uses
19807       the Intel RDRAND instruction to replace the entire PRNG, and
19808       ignores all attempts to seed it with more entropy. That's
19809       cryptographically stupid: the right response to a new alleged
19810       entropy source is never to discard all previously used entropy
19811       sources. Fixes bug 10402; works around behavior introduced in
19812       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
19813       and "rl1987".
19814     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
19815       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
19816     - Avoid launching spurious extra circuits when a stream is pending.
19817       This fixes a bug where any circuit that _wasn't_ unusable for new
19818       streams would be treated as if it were, causing extra circuits to
19819       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
19821   o Minor bugfixes:
19822     - Avoid a crash bug when starting with a corrupted microdescriptor
19823       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
19824     - If we fail to dump a previously cached microdescriptor to disk, avoid
19825       freeing duplicate data later on. Fixes bug 10423; bugfix on
19826       0.2.4.13-alpha. Spotted by "bobnomnom".
19829 Changes in version 0.2.4.19 - 2013-12-11
19830   The Tor 0.2.4 release series is dedicated to the memory of Aaron Swartz
19831   (1986-2013). Aaron worked on diverse projects including helping to guide
19832   Creative Commons, playing a key role in stopping SOPA/PIPA, bringing
19833   transparency to the U.S government's PACER documents, and contributing
19834   design and development for Tor and Tor2Web. Aaron was one of the latest
19835   martyrs in our collective fight for civil liberties and human rights,
19836   and his death is all the more painful because he was one of us.
19838   Tor 0.2.4.19, the first stable release in the 0.2.4 branch, features
19839   a new circuit handshake and link encryption that use ECC to provide
19840   better security and efficiency; makes relays better manage circuit
19841   creation requests; uses "directory guards" to reduce client enumeration
19842   risks; makes bridges collect and report statistics about the pluggable
19843   transports they support; cleans up and improves our geoip database;
19844   gets much closer to IPv6 support for clients, bridges, and relays; makes
19845   directory authorities use measured bandwidths rather than advertised
19846   ones when computing flags and thresholds; disables client-side DNS
19847   caching to reduce tracking risks; and fixes a big bug in bridge
19848   reachability testing. This release introduces two new design
19849   abstractions in the code: a new "channel" abstraction between circuits
19850   and or_connections to allow for implementing alternate relay-to-relay
19851   transports, and a new "circuitmux" abstraction storing the queue of
19852   circuits for a channel. The release also includes many stability,
19853   security, and privacy fixes.
19856 Changes in version 0.2.4.18-rc - 2013-11-16
19857   Tor 0.2.4.18-rc is the fourth release candidate for the Tor 0.2.4.x
19858   series. It takes a variety of fixes from the 0.2.5.x branch to improve
19859   stability, performance, and better handling of edge cases.
19861   o Major features:
19862     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
19863       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
19864       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
19865       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
19866       them to solve bug 6033.)
19868   o Major bugfixes:
19869     - No longer stop reading or writing on cpuworker connections when
19870       our rate limiting buckets go empty. Now we should handle circuit
19871       handshake requests more promptly. Resolves bug 9731.
19872     - If we are unable to save a microdescriptor to the journal, do not
19873       drop it from memory and then reattempt downloading it. Fixes bug
19874       9645; bugfix on 0.2.2.6-alpha.
19875     - Stop trying to bootstrap all our directory information from
19876       only our first guard. Discovered while fixing bug 9946; bugfix
19877       on 0.2.4.8-alpha.
19878     - The new channel code sometimes lost track of in-progress circuits,
19879       causing long-running clients to stop building new circuits. The
19880       fix is to always call circuit_n_chan_done(chan, 0) from
19881       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
19883   o Minor bugfixes (on 0.2.4.x):
19884     - Correctly log long IPv6 exit policies, instead of truncating them
19885       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
19886     - Our default TLS ecdhe groups were backwards: we meant to be using
19887       P224 for relays (for performance win) and P256 for bridges (since
19888       it is more common in the wild). Instead we had it backwards. After
19889       reconsideration, we decided that the default should be P256 on all
19890       hosts, since its security is probably better, and since P224 is
19891       reportedly used quite little in the wild.  Found by "skruffy" on
19892       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
19893     - Free directory authority certificate download statuses on exit
19894       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
19896   o Minor bugfixes (on 0.2.3.x and earlier):
19897     - If the guard we choose first doesn't answer, we would try the
19898       second guard, but once we connected to the second guard we would
19899       abandon it and retry the first one, slowing down bootstrapping.
19900       The fix is to treat all our initially chosen guards as acceptable
19901       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
19902     - Fix an assertion failure that would occur when disabling the
19903       ORPort setting on a running Tor process while accounting was
19904       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
19905     - When examining the list of network interfaces to find our address,
19906       do not consider non-running or disabled network interfaces. Fixes
19907       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
19908     - Avoid an off-by-one error when checking buffer boundaries when
19909       formatting the exit status of a pluggable transport helper.
19910       This is probably not an exploitable bug, but better safe than
19911       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
19912       Pedro Ribeiro.
19914   o Minor features (protecting client timestamps):
19915     - Clients no longer send timestamps in their NETINFO cells. These were
19916       not used for anything, and they provided one small way for clients
19917       to be distinguished from each other as they moved from network to
19918       network or behind NAT. Implements part of proposal 222.
19919     - Clients now round timestamps in INTRODUCE cells down to the nearest
19920       10 minutes. If a new Support022HiddenServices option is set to 0, or
19921       if it's set to "auto" and the feature is disabled in the consensus,
19922       the timestamp is sent as 0 instead. Implements part of proposal 222.
19923     - Stop sending timestamps in AUTHENTICATE cells. This is not such
19924       a big deal from a security point of view, but it achieves no actual
19925       good purpose, and isn't needed. Implements part of proposal 222.
19926     - Reduce down accuracy of timestamps in hidden service descriptors.
19927       Implements part of proposal 222.
19929   o Minor features (other):
19930     - Improve the circuit queue out-of-memory handler. Previously, when
19931       we ran low on memory, we'd close whichever circuits had the most
19932       queued cells. Now, we close those that have the *oldest* queued
19933       cells, on the theory that those are most responsible for us
19934       running low on memory. Based on analysis from a forthcoming paper
19935       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
19936     - Generate bootstrapping status update events correctly when fetching
19937       microdescriptors. Fixes bug 9927.
19938     - Update to the October 2 2013 Maxmind GeoLite Country database.
19940   o Documentation fixes:
19941     - Clarify the usage and risks of setting the ContactInfo torrc line
19942       for your relay or bridge. Resolves ticket 9854.
19943     - Add anchors to the manpage so we can link to the html version of
19944       the documentation for specific options. Resolves ticket 9866.
19945     - Replace remaining references to DirServer in man page and
19946       log entries. Resolves ticket 10124.
19949 Changes in version 0.2.5.1-alpha - 2013-10-02
19950   Tor 0.2.5.1-alpha introduces experimental support for syscall sandboxing
19951   on Linux, allows bridges that offer pluggable transports to report usage
19952   statistics, fixes many issues to make testing easier, and provides
19953   a pile of minor features and bugfixes that have been waiting for a
19954   release of the new branch.
19956   This is the first alpha release in a new series, so expect there to
19957   be bugs. Users who would rather test out a more stable branch should
19958   stay with 0.2.4.x for now.
19960   o Major features (security):
19961     - Use the seccomp2 syscall filtering facility on Linux to limit
19962       which system calls Tor can invoke. This is an experimental,
19963       Linux-only feature to provide defense-in-depth against unknown
19964       attacks. To try turning it on, set "Sandbox 1" in your torrc
19965       file. Please be ready to report bugs. We hope to add support
19966       for better sandboxing in the future, including more fine-grained
19967       filters, better division of responsibility, and support for more
19968       platforms. This work has been done by Cristian-Matei Toader for
19969       Google Summer of Code.
19970     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
19971       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
19972       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
19973       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
19974       them to solve bug 6033.)
19976   o Major features (other):
19977     - Add support for passing arguments to managed pluggable transport
19978       proxies. Implements ticket 3594.
19979     - Bridges now track GeoIP information and the number of their users
19980       even when pluggable transports are in use, and report usage
19981       statistics in their extra-info descriptors. Resolves tickets 4773
19982       and 5040.
19983     - Make testing Tor networks bootstrap better: lower directory fetch
19984       retry schedules and maximum interval without directory requests,
19985       and raise maximum download tries. Implements ticket 6752.
19986     - Add make target 'test-network' to run tests on a Chutney network.
19987       Implements ticket 8530.
19988     - The ntor handshake is now on-by-default, no matter what the
19989       directory authorities recommend. Implements ticket 8561.
19991   o Major bugfixes:
19992     - Instead of writing destroy cells directly to outgoing connection
19993       buffers, queue them and intersperse them with other outgoing cells.
19994       This can prevent a set of resource starvation conditions where too
19995       many pending destroy cells prevent data cells from actually getting
19996       delivered. Reported by "oftc_must_be_destroyed". Fixes bug 7912;
19997       bugfix on 0.2.0.1-alpha.
19998     - If we are unable to save a microdescriptor to the journal, do not
19999       drop it from memory and then reattempt downloading it. Fixes bug
20000       9645; bugfix on 0.2.2.6-alpha.
20001     - The new channel code sometimes lost track of in-progress circuits,
20002       causing long-running clients to stop building new circuits. The
20003       fix is to always call circuit_n_chan_done(chan, 0) from
20004       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
20006   o Build features:
20007     - Tor now builds each source file in two modes: a mode that avoids
20008       exposing identifiers needlessly, and another mode that exposes
20009       more identifiers for testing. This lets the compiler do better at
20010       optimizing the production code, while enabling us to take more
20011       radical measures to let the unit tests test things.
20012     - The production builds no longer include functions used only in
20013       the unit tests; all functions exposed from a module only for
20014       unit-testing are now static in production builds.
20015     - Add an --enable-coverage configuration option to make the unit
20016       tests (and a new src/or/tor-cov target) to build with gcov test
20017       coverage support.
20019   o Testing:
20020     - We now have rudimentary function mocking support that our unit
20021       tests can use to test functions in isolation. Function mocking
20022       lets the tests temporarily replace a function's dependencies with
20023       stub functions, so that the tests can check the function without
20024       invoking the other functions it calls.
20025     - Add more unit tests for the <circid,channel>->circuit map, and
20026       the destroy-cell-tracking code to fix bug 7912.
20027     - Unit tests for failing cases of the TAP onion handshake.
20028     - More unit tests for address-manipulation functions.
20030   o Minor features (protecting client timestamps):
20031     - Clients no longer send timestamps in their NETINFO cells. These were
20032       not used for anything, and they provided one small way for clients
20033       to be distinguished from each other as they moved from network to
20034       network or behind NAT. Implements part of proposal 222.
20035     - Clients now round timestamps in INTRODUCE cells down to the nearest
20036       10 minutes. If a new Support022HiddenServices option is set to 0, or
20037       if it's set to "auto" and the feature is disabled in the consensus,
20038       the timestamp is sent as 0 instead. Implements part of proposal 222.
20039     - Stop sending timestamps in AUTHENTICATE cells. This is not such
20040       a big deal from a security point of view, but it achieves no actual
20041       good purpose, and isn't needed. Implements part of proposal 222.
20042     - Reduce down accuracy of timestamps in hidden service descriptors.
20043       Implements part of proposal 222.
20045   o Minor features (config options):
20046     - Config (torrc) lines now handle fingerprints which are missing
20047       their initial '$'. Resolves ticket 4341; improvement over 0.0.9pre5.
20048     - Support a --dump-config option to print some or all of the
20049       configured options. Mainly useful for debugging the command-line
20050       option parsing code. Helps resolve ticket 4647.
20051     - Raise awareness of safer logging: notify user of potentially
20052       unsafe config options, like logging more verbosely than severity
20053       "notice" or setting SafeLogging to 0. Resolves ticket 5584.
20054     - Add a new configuration option TestingV3AuthVotingStartOffset
20055       that bootstraps a network faster by changing the timing for
20056       consensus votes. Addresses ticket 8532.
20057     - Add a new torrc option "ServerTransportOptions" that allows
20058       bridge operators to pass configuration parameters to their
20059       pluggable transports. Resolves ticket 8929.
20060     - The config (torrc) file now accepts bandwidth and space limits in
20061       bits as well as bytes. (Anywhere that you can say "2 Kilobytes",
20062       you can now say "16 kilobits", and so on.) Resolves ticket 9214.
20063       Patch by CharlieB.
20065   o Minor features (build):
20066     - Add support for `--library-versions` flag. Implements ticket 6384.
20067     - Return the "unexpected sendme" warnings to a warn severity, but make
20068       them rate limited, to help diagnose ticket 8093.
20069     - Detect a missing asciidoc, and warn the user about it, during
20070       configure rather than at build time. Fixes issue 6506. Patch from
20071       Arlo Breault.
20073   o Minor features (other):
20074     - Use the SOCK_NONBLOCK socket type, if supported, to open nonblocking
20075       sockets in a single system call. Implements ticket 5129.
20076     - Log current accounting state (bytes sent and received + remaining
20077       time for the current accounting period) in the relay's heartbeat
20078       message. Implements ticket 5526; patch from Peter Retzlaff.
20079     - Implement the TRANSPORT_LAUNCHED control port event that
20080       notifies controllers about new launched pluggable
20081       transports. Resolves ticket 5609.
20082     - If we're using the pure-C 32-bit curve25519_donna implementation
20083       of curve25519, build it with the -fomit-frame-pointer option to
20084       make it go faster on register-starved hosts. This improves our
20085       handshake performance by about 6% on i386 hosts without nacl.
20086       Closes ticket 8109.
20087     - Update to the September 4 2013 Maxmind GeoLite Country database.
20089   o Minor bugfixes:
20090     - Set the listen() backlog limit to the largest actually supported
20091       on the system, not to the value in a header file. Fixes bug 9716;
20092       bugfix on every released Tor.
20093     - No longer accept malformed http headers when parsing urls from
20094       headers. Now we reply with Bad Request ("400"). Fixes bug 2767;
20095       bugfix on 0.0.6pre1.
20096     - In munge_extrainfo_into_routerinfo(), check the return value of
20097       memchr(). This would have been a serious issue if we ever passed
20098       it a non-extrainfo. Fixes bug 8791; bugfix on 0.2.0.6-alpha. Patch
20099       from Arlo Breault.
20100     - On the chance that somebody manages to build Tor on a
20101       platform where time_t is unsigned, correct the way that
20102       microdesc_add_to_cache() handles negative time arguments.
20103       Fixes bug 8042; bugfix on 0.2.3.1-alpha.
20104     - Reject relative control socket paths and emit a warning. Previously,
20105       single-component control socket paths would be rejected, but Tor
20106       would not log why it could not validate the config. Fixes bug 9258;
20107       bugfix on 0.2.3.16-alpha.
20109   o Minor bugfixes (command line):
20110     - Use a single command-line parser for parsing torrc options on the
20111       command line and for finding special command-line options to avoid
20112       inconsistent behavior for torrc option arguments that have the same
20113       names as command-line options. Fixes bugs 4647 and 9578; bugfix on
20114       0.0.9pre5.
20115     - No longer allow 'tor --hash-password' with no arguments. Fixes bug
20116       9573; bugfix on 0.0.9pre5.
20118   o Minor fixes (build, auxiliary programs):
20119     - Stop preprocessing the "torify" script with autoconf, since
20120       it no longer refers to LOCALSTATEDIR. Fixes bug 5505; patch
20121       from Guilhem.
20122     - The tor-fw-helper program now follows the standard convention and
20123       exits with status code "0" on success. Fixes bug 9030; bugfix on
20124       0.2.3.1-alpha. Patch by Arlo Breault.
20125     - Corrected ./configure advice for what openssl dev package you should
20126       install on Debian. Fixes bug 9207; bugfix on 0.2.0.1-alpha.
20128   o Minor code improvements:
20129     - Remove constants and tests for PKCS1 padding; it's insecure and
20130       shouldn't be used for anything new. Fixes bug 8792; patch
20131       from Arlo Breault.
20132     - Remove instances of strcpy() from the unit tests. They weren't
20133       hurting anything, since they were only in the unit tests, but it's
20134       embarrassing to have strcpy() in the code at all, and some analysis
20135       tools don't like it. Fixes bug 8790; bugfix on 0.2.3.6-alpha and
20136       0.2.3.8-alpha. Patch from Arlo Breault.
20138   o Removed features:
20139     - Remove migration code from when we renamed the "cached-routers"
20140       file to "cached-descriptors" back in 0.2.0.8-alpha. This
20141       incidentally resolves ticket 6502 by cleaning up the related code
20142       a bit. Patch from Akshay Hebbar.
20144   o Code simplification and refactoring:
20145     - Extract the common duplicated code for creating a subdirectory
20146       of the data directory and writing to a file in it. Fixes ticket
20147       4282; patch from Peter Retzlaff.
20148     - Since OpenSSL 0.9.7, the i2d_*() functions support allocating output
20149       buffer. Avoid calling twice: i2d_RSAPublicKey(), i2d_DHparams(),
20150       i2d_X509(), and i2d_PublicKey(). Resolves ticket 5170.
20151     - Add a set of accessor functions for the circuit timeout data
20152       structure. Fixes ticket 6153; patch from "piet".
20153     - Clean up exit paths from connection_listener_new(). Closes ticket
20154       8789. Patch from Arlo Breault.
20155     - Since we rely on OpenSSL 0.9.8 now, we can use EVP_PKEY_cmp()
20156       and drop our own custom pkey_eq() implementation. Fixes bug 9043.
20157     - Use a doubly-linked list to implement the global circuit list.
20158       Resolves ticket 9108. Patch from Marek Majkowski.
20159     - Remove contrib/id_to_fp.c since it wasn't used anywhere.
20162 Changes in version 0.2.4.17-rc - 2013-09-05
20163   Tor 0.2.4.17-rc is the third release candidate for the Tor 0.2.4.x
20164   series. It adds an emergency step to help us tolerate the massive
20165   influx of users: 0.2.4 clients using the new (faster and safer) "NTor"
20166   circuit-level handshakes now effectively jump the queue compared to
20167   the 0.2.3 clients using "TAP" handshakes. This release also fixes a
20168   big bug hindering bridge reachability tests.
20170   o Major features:
20171     - Relays now process the new "NTor" circuit-level handshake requests
20172       with higher priority than the old "TAP" circuit-level handshake
20173       requests. We still process some TAP requests to not totally starve
20174       0.2.3 clients when NTor becomes popular. A new consensus parameter
20175       "NumNTorsPerTAP" lets us tune the balance later if we need to.
20176       Implements ticket 9574.
20178   o Major bugfixes:
20179     - If the circuit build timeout logic is disabled (via the consensus,
20180       or because we are an authority), then don't build testing circuits.
20181       Fixes bug 9657; bugfix on 0.2.2.14-alpha.
20182     - Bridges now send AUTH_CHALLENGE cells during their v3 handshakes;
20183       previously they did not, which prevented them from receiving
20184       successful connections from relays for self-test or bandwidth
20185       testing. Also, when a relay is extending a circuit to a bridge,
20186       it needs to send a NETINFO cell, even when the bridge hasn't sent
20187       an AUTH_CHALLENGE cell. Fixes bug 9546; bugfix on 0.2.3.6-alpha.
20188     - If the time to download the next old-style networkstatus is in
20189       the future, do not decline to consider whether to download the
20190       next microdescriptor networkstatus. Fixes bug 9564; bugfix on
20191       0.2.3.14-alpha.
20193   o Minor bugfixes:
20194     - Avoid double-closing the listener socket in our socketpair()
20195       replacement (used on Windows) in the case where the addresses on
20196       our opened sockets don't match what we expected. Fixes bug 9400;
20197       bugfix on 0.0.2pre7. Found by Coverity.
20199   o Minor fixes (config options):
20200     - Avoid overflows when the user sets MaxCircuitDirtiness to a
20201       ridiculously high value, by imposing a (ridiculously high) 30-day
20202       maximum on MaxCircuitDirtiness.
20203     - Fix the documentation of HeartbeatPeriod to say that the heartbeat
20204       message is logged at notice, not at info.
20205     - Warn and fail if a server is configured not to advertise any
20206       ORPorts at all. (We need *something* to put in our descriptor,
20207       or we just won't work.)
20209   o Minor features:
20210     - Track how many "TAP" and "NTor" circuit handshake requests we get,
20211       and how many we complete, and log it every hour to help relay
20212       operators follow trends in network load. Addresses ticket 9658.
20213     - Update to the August 7 2013 Maxmind GeoLite Country database.
20216 Changes in version 0.2.4.16-rc - 2013-08-10
20217   Tor 0.2.4.16-rc is the second release candidate for the Tor 0.2.4.x
20218   series. It fixes several crash bugs in the 0.2.4 branch.
20220   o Major bugfixes:
20221     - Fix a bug in the voting algorithm that could yield incorrect results
20222       when a non-naming authority declared too many flags. Fixes bug 9200;
20223       bugfix on 0.2.0.3-alpha.
20224     - Fix an uninitialized read that could in some cases lead to a remote
20225       crash while parsing INTRODUCE2 cells. Bugfix on 0.2.4.1-alpha.
20226       Anybody running a hidden service on the experimental 0.2.4.x
20227       branch should upgrade. (This is, so far as we know, unrelated to
20228       the recent news.)
20229     - Avoid an assertion failure when processing DNS replies without the
20230       answer types we expected. Fixes bug 9337; bugfix on 0.2.4.7-alpha.
20231     - Avoid a crash when using --hash-password. Fixes bug 9295; bugfix on
20232       0.2.4.15-rc. Found by stem integration tests.
20234   o Minor bugfixes:
20235     - Fix an invalid memory read that occurred when a pluggable
20236       transport proxy failed its configuration protocol.
20237       Fixes bug 9288; bugfix on 0.2.4.1-alpha.
20238     - When evaluating whether to use a connection that we haven't
20239       decided is canonical using a recent link protocol version,
20240       decide that it's canonical only if it used address _does_
20241       match the desired address. Fixes bug 9309; bugfix on
20242       0.2.4.4-alpha. Reported by skruffy.
20243     - Make the default behavior of NumDirectoryGuards be to track
20244       NumEntryGuards. Now a user who changes only NumEntryGuards will get
20245       the behavior she expects. Fixes bug 9354; bugfix on 0.2.4.8-alpha.
20246     - Fix a spurious compilation warning with some older versions of
20247       GCC on FreeBSD. Fixes bug 9254; bugfix on 0.2.4.14-alpha.
20249   o Minor features:
20250     - Update to the July 3 2013 Maxmind GeoLite Country database.
20253 Changes in version 0.2.4.15-rc - 2013-07-01
20254   Tor 0.2.4.15-rc is the first release candidate for the Tor 0.2.4.x
20255   series. It fixes a few smaller bugs, but generally appears stable.
20256   Please test it and let us know whether it is!
20258   o Major bugfixes:
20259     - When receiving a new configuration file via the control port's
20260       LOADCONF command, do not treat the defaults file as absent.
20261       Fixes bug 9122; bugfix on 0.2.3.9-alpha.
20263   o Minor features:
20264     - Issue a warning when running with the bufferevents backend enabled.
20265       It's still not stable, and people should know that they're likely
20266       to hit unexpected problems. Closes ticket 9147.
20269 Changes in version 0.2.4.14-alpha - 2013-06-18
20270   Tor 0.2.4.14-alpha fixes a pair of client guard enumeration problems
20271   present in 0.2.4.13-alpha.
20273   o Major bugfixes:
20274     - When we have too much memory queued in circuits (according to a new
20275       MaxMemInCellQueues option), close the circuits consuming the most
20276       memory. This prevents us from running out of memory as a relay if
20277       circuits fill up faster than they can be drained. Fixes bug 9063;
20278       bugfix on the 54th commit of Tor. This bug is a further fix beyond
20279       bug 6252, whose fix was merged into 0.2.3.21-rc.
20281       This change also fixes an earlier approach taken in 0.2.4.13-alpha,
20282       where we tried to solve this issue simply by imposing an upper limit
20283       on the number of queued cells for a single circuit. That approach
20284       proved to be problematic, since there are ways to provoke clients to
20285       send a number of cells in excess of any such reasonable limit. Fixes
20286       bug 9072; bugfix on 0.2.4.13-alpha.
20288     - Limit hidden service descriptors to at most ten introduction
20289       points, to slow one kind of guard enumeration. Fixes bug 9002;
20290       bugfix on 0.1.1.11-alpha.
20293 Changes in version 0.2.4.13-alpha - 2013-06-14
20294   Tor 0.2.4.13-alpha fixes a variety of potential remote crash
20295   vulnerabilities, makes socks5 username/password circuit isolation
20296   actually actually work (this time for sure!), and cleans up a bunch
20297   of other issues in preparation for a release candidate.
20299   o Major bugfixes (robustness):
20300     - Close any circuit that has too many cells queued on it. Fixes
20301       bug 9063; bugfix on the 54th commit of Tor. This bug is a further
20302       fix beyond bug 6252, whose fix was merged into 0.2.3.21-rc.
20303     - Prevent the get_freelists() function from running off the end of
20304       the list of freelists if it somehow gets an unrecognized
20305       allocation. Fixes bug 8844; bugfix on 0.2.0.16-alpha. Reported by
20306       eugenis.
20307     - Avoid an assertion failure on OpenBSD (and perhaps other BSDs)
20308       when an exit connection with optimistic data succeeds immediately
20309       rather than returning EINPROGRESS. Fixes bug 9017; bugfix on
20310       0.2.3.1-alpha.
20311     - Fix a directory authority crash bug when building a consensus
20312       using an older consensus as its basis. Fixes bug 8833. Bugfix
20313       on 0.2.4.12-alpha.
20315   o Major bugfixes:
20316     - Avoid a memory leak where we would leak a consensus body when we
20317       find that a consensus which we couldn't previously verify due to
20318       missing certificates is now verifiable. Fixes bug 8719; bugfix
20319       on 0.2.0.10-alpha.
20320     - We used to always request authority certificates by identity digest,
20321       meaning we'd get the newest one even when we wanted one with a
20322       different signing key. Then we would complain about being given
20323       a certificate we already had, and never get the one we really
20324       wanted. Now we use the "fp-sk/" resource as well as the "fp/"
20325       resource to request the one we want. Fixes bug 5595; bugfix on
20326       0.2.0.8-alpha.
20327     - Follow the socks5 protocol when offering username/password
20328       authentication. The fix for bug 8117 exposed this bug, and it
20329       turns out real-world applications like Pidgin do care. Bugfix on
20330       0.2.3.2-alpha; fixes bug 8879.
20331     - Prevent failures on Windows Vista and later when rebuilding the
20332       microdescriptor cache. Diagnosed by Robert Ransom. Fixes bug 8822;
20333       bugfix on 0.2.4.12-alpha.
20335   o Minor bugfixes:
20336     - Fix an impossible buffer overrun in the AES unit tests. Fixes
20337       bug 8845; bugfix on 0.2.0.7-alpha. Found by eugenis.
20338     - If for some reason we fail to write a microdescriptor while
20339       rebuilding the cache, do not let the annotations from that
20340       microdescriptor linger in the cache file, and do not let the
20341       microdescriptor stay recorded as present in its old location.
20342       Fixes bug 9047; bugfix on 0.2.2.6-alpha.
20343     - Fix a memory leak that would occur whenever a configuration
20344       option changed. Fixes bug 8718; bugfix on 0.2.3.3-alpha.
20345     - Paste the description for PathBias parameters from the man
20346       page into or.h, so the code documents them too. Fixes bug 7982;
20347       bugfix on 0.2.3.17-beta and 0.2.4.8-alpha.
20348     - Relays now treat a changed IPv6 ORPort as sufficient reason to
20349       publish an updated descriptor. Fixes bug 6026; bugfix on
20350       0.2.4.1-alpha.
20351     - When launching a resolve request on behalf of an AF_UNIX control
20352       socket, omit the address field of the new entry connection, used in
20353       subsequent controller events, rather than letting tor_dup_addr()
20354       set it to "<unknown address type>". Fixes bug 8639; bugfix on
20355       0.2.4.12-alpha.
20357   o Minor bugfixes (log messages):
20358     - Fix a scaling issue in the path bias accounting code that
20359       resulted in "Bug:" log messages from either
20360       pathbias_scale_close_rates() or pathbias_count_build_success().
20361       This represents a bugfix on a previous bugfix: the original fix
20362       attempted in 0.2.4.10-alpha was incomplete. Fixes bug 8235; bugfix
20363       on 0.2.4.1-alpha.
20364     - Give a less useless error message when the user asks for an IPv4
20365       address on an IPv6-only port, or vice versa. Fixes bug 8846; bugfix
20366       on 0.2.4.7-alpha.
20368   o Minor features:
20369     - Downgrade "unexpected SENDME" warnings to protocol-warn for 0.2.4.x,
20370       to tolerate bug 8093 for now.
20371     - Add an "ignoring-advertised-bws" boolean to the flag-threshold lines
20372       in directory authority votes to describe whether they have enough
20373       measured bandwidths to ignore advertised (relay descriptor)
20374       bandwidth claims. Resolves ticket 8711.
20375     - Update to the June 5 2013 Maxmind GeoLite Country database.
20377   o Removed documentation:
20378     - Remove some of the older contents of doc/ as obsolete; move others
20379       to torspec.git. Fixes bug 8965.
20381   o Code simplification and refactoring:
20382     - Avoid using character buffers when constructing most directory
20383       objects: this approach was unwieldy and error-prone. Instead,
20384       build smartlists of strings, and concatenate them when done.
20387 Changes in version 0.2.4.12-alpha - 2013-04-18
20388   Tor 0.2.4.12-alpha moves Tor forward on several fronts: it starts the
20389   process for lengthening the guard rotation period, makes directory
20390   authority opinions in the consensus a bit less gameable, makes socks5
20391   username/password circuit isolation actually work, and fixes a wide
20392   variety of other issues.
20394   o Major features:
20395     - Raise the default time that a client keeps an entry guard from
20396       "1-2 months" to "2-3 months", as suggested by Tariq Elahi's WPES
20397       2012 paper. (We would make it even longer, but we need better client
20398       load balancing first.) Also, make the guard lifetime controllable
20399       via a new GuardLifetime torrc option and a GuardLifetime consensus
20400       parameter. Start of a fix for bug 8240; bugfix on 0.1.1.11-alpha.
20401     - Directory authorities now prefer using measured bandwidths to
20402       advertised ones when computing flags and thresholds. Resolves
20403       ticket 8273.
20404     - Directory authorities that have more than a threshold number
20405       of relays with measured bandwidths now treat relays with unmeasured
20406       bandwidths as having bandwidth 0. Resolves ticket 8435.
20408   o Major bugfixes (assert / resource use):
20409     - Avoid a bug where our response to TLS renegotiation under certain
20410       network conditions could lead to a busy-loop, with 100% CPU
20411       consumption. Fixes bug 5650; bugfix on 0.2.0.16-alpha.
20412     - Avoid an assertion when we discover that we'd like to write a cell
20413       onto a closing connection: just discard the cell. Fixes another
20414       case of bug 7350; bugfix on 0.2.4.4-alpha.
20416   o Major bugfixes (client-side privacy):
20417     - When we mark a circuit as unusable for new circuits, have it
20418       continue to be unusable for new circuits even if MaxCircuitDirtiness
20419       is increased too much at the wrong time, or the system clock jumps
20420       backwards. Fixes bug 6174; bugfix on 0.0.2pre26.
20421     - If ClientDNSRejectInternalAddresses ("do not believe DNS queries
20422       which have resolved to internal addresses") is set, apply that
20423       rule to IPv6 as well. Fixes bug 8475; bugfix on 0.2.0.7-alpha.
20424     - When an exit relay rejects a stream with reason "exit policy", but
20425       we only know an exit policy summary (e.g. from the microdesc
20426       consensus) for it, do not mark the relay as useless for all exiting.
20427       Instead, mark just the circuit as unsuitable for that particular
20428       address. Fixes part of bug 7582; bugfix on 0.2.3.2-alpha.
20429     - Allow applications to get proper stream isolation with
20430       IsolateSOCKSAuth. Many SOCKS5 clients that want to offer
20431       username/password authentication also offer "no authentication". Tor
20432       had previously preferred "no authentication", so the applications
20433       never actually sent Tor their auth details. Now Tor selects
20434       username/password authentication if it's offered. You can disable
20435       this behavior on a per-SOCKSPort basis via PreferSOCKSNoAuth. Fixes
20436       bug 8117; bugfix on 0.2.3.3-alpha.
20438   o Major bugfixes (other):
20439     - When unable to find any working directory nodes to use as a
20440       directory guard, give up rather than adding the same non-working
20441       nodes to the directory guard list over and over. Fixes bug 8231;
20442       bugfix on 0.2.4.8-alpha.
20444   o Minor features:
20445     - Reject as invalid most directory objects containing a NUL.
20446       Belt-and-suspender fix for bug 8037.
20447     - In our testsuite, create temporary directories with a bit more
20448       entropy in their name to make name collisions less likely. Fixes
20449       bug 8638.
20450     - Add CACHED keyword to ADDRMAP events in the control protocol
20451       to indicate whether a DNS result will be cached or not. Resolves
20452       ticket 8596.
20453     - Update to the April 3 2013 Maxmind GeoLite Country database.
20455   o Minor features (build):
20456     - Detect and reject attempts to build Tor with threading support
20457       when OpenSSL has been compiled without threading support.
20458       Fixes bug 6673.
20459     - Clarify that when autoconf is checking for nacl, it is checking
20460       specifically for nacl with a fast curve25519 implementation.
20461       Fixes bug 8014.
20462     - Warn if building on a platform with an unsigned time_t: there
20463       are too many places where Tor currently assumes that time_t can
20464       hold negative values. We'd like to fix them all, but probably
20465       some will remain.
20467   o Minor bugfixes (build):
20468     - Fix some bugs in tor-fw-helper-natpmp when trying to build and
20469       run it on Windows. More bugs likely remain. Patch from Gisle Vanem.
20470       Fixes bug 7280; bugfix on 0.2.3.1-alpha.
20471     - Add the old src/or/micro-revision.i filename to CLEANFILES.
20472       On the off chance that somebody has one, it will go away as soon
20473       as they run "make clean". Fix for bug 7143; bugfix on 0.2.4.1-alpha.
20474     - Build Tor correctly on 32-bit platforms where the compiler can build
20475       but not run code using the "uint128_t" construction. Fixes bug 8587;
20476       bugfix on 0.2.4.8-alpha.
20477     - Fix compilation warning with some versions of clang that would
20478       prefer the -Wswitch-enum compiler flag to warn about switch
20479       statements with missing enum values, even if those switch
20480       statements have a "default:" statement. Fixes bug 8598; bugfix
20481       on 0.2.4.10-alpha.
20483   o Minor bugfixes (protocol):
20484     - Fix the handling of a TRUNCATE cell when it arrives while the
20485       circuit extension is in progress. Fixes bug 7947; bugfix on 0.0.7.1.
20486     - Fix a misframing issue when reading the version numbers in a
20487       VERSIONS cell. Previously we would recognize [00 01 00 02] as
20488       'version 1, version 2, and version 0x100', when it should have
20489       only included versions 1 and 2. Fixes bug 8059; bugfix on
20490       0.2.0.10-alpha. Reported pseudonymously.
20491     - Make the format and order of STREAM events for DNS lookups
20492       consistent among the various ways to launch DNS lookups. Fixes
20493       bug 8203; bugfix on 0.2.0.24-rc. Patch by "Desoxy".
20494     - Correct our check for which versions of Tor support the EXTEND2
20495       cell. We had been willing to send it to Tor 0.2.4.7-alpha and
20496       later, when support was really added in version 0.2.4.8-alpha.
20497       Fixes bug 8464; bugfix on 0.2.4.8-alpha.
20499   o Minor bugfixes (other):
20500     - Correctly store microdescriptors and extrainfo descriptors with
20501       an internal NUL byte. Fixes bug 8037; bugfix on 0.2.0.1-alpha.
20502       Bug reported by "cypherpunks".
20503     - Increase the width of the field used to remember a connection's
20504       link protocol version to two bytes. Harmless for now, since the
20505       only currently recognized versions are one byte long. Reported
20506       pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha.
20507     - If the state file's path bias counts are invalid (presumably from a
20508       buggy Tor prior to 0.2.4.10-alpha), make them correct. Also add
20509       additional checks and log messages to the scaling of Path Bias
20510       counts, in case there still are remaining issues with scaling.
20511       Should help resolve bug 8235.
20512     - Eliminate several instances where we use "Nickname=ID" to refer to
20513       nodes in logs. Use "Nickname (ID)" instead. (Elsewhere, we still use
20514       "$ID=Nickname", which is also acceptable.) Fixes bug 7065. Bugfix
20515       on 0.2.3.21-rc, 0.2.4.5-alpha, 0.2.4.8-alpha, and 0.2.4.10-alpha.
20517   o Minor bugfixes (syscalls):
20518     - Always check the return values of functions fcntl() and
20519       setsockopt(). We don't believe these are ever actually failing in
20520       practice, but better safe than sorry. Also, checking these return
20521       values should please analysis tools like Coverity. Patch from
20522       'flupzor'. Fixes bug 8206; bugfix on all versions of Tor.
20523     - Use direct writes rather than stdio when building microdescriptor
20524       caches, in an attempt to mitigate bug 8031, or at least make it
20525       less common.
20527   o Minor bugfixes (config):
20528     - When rejecting a configuration because we were unable to parse a
20529       quoted string, log an actual error message. Fixes bug 7950; bugfix
20530       on 0.2.0.16-alpha.
20531     - Behave correctly when the user disables LearnCircuitBuildTimeout
20532       but doesn't tell us what they would like the timeout to be. Fixes
20533       bug 6304; bugfix on 0.2.2.14-alpha.
20534     - When autodetecting the number of CPUs, use the number of available
20535       CPUs in preference to the number of configured CPUs. Inform the
20536       user if this reduces the number of available CPUs. Fixes bug 8002;
20537       bugfix on 0.2.3.1-alpha.
20538     - Make it an error when you set EntryNodes but disable UseGuardNodes,
20539       since it will (surprisingly to some users) ignore EntryNodes. Fixes
20540       bug 8180; bugfix on 0.2.3.11-alpha.
20541     - Allow TestingTorNetworks to override the 4096-byte minimum for
20542       the Fast threshold. Otherwise they can't bootstrap until they've
20543       observed more traffic. Fixes bug 8508; bugfix on 0.2.4.10-alpha.
20544     - Fix some logic errors when the user manually overrides the
20545       PathsNeededToBuildCircuits option in torrc. Fixes bug 8599; bugfix
20546       on 0.2.4.10-alpha.
20548   o Minor bugfixes (log messages to help diagnose bugs):
20549     - If we fail to free a microdescriptor because of bug 7164, log
20550       the filename and line number from which we tried to free it.
20551     - Add another diagnostic to the heartbeat message: track and log
20552       overhead that TLS is adding to the data we write. If this is
20553       high, we are sending too little data to SSL_write at a time.
20554       Diagnostic for bug 7707.
20555     - Add more detail to a log message about relaxed timeouts, to help
20556       track bug 7799.
20557     - Warn more aggressively when flushing microdescriptors to a
20558       microdescriptor cache fails, in an attempt to mitigate bug 8031,
20559       or at least make it more diagnosable.
20560     - Improve debugging output to help track down bug 8185 ("Bug:
20561       outgoing relay cell has n_chan==NULL. Dropping.")
20562     - Log the purpose of a path-bias testing circuit correctly.
20563       Improves a log message from bug 8477; bugfix on 0.2.4.8-alpha.
20565   o Minor bugfixes (0.2.4.x log messages that were too noisy):
20566     - Don't attempt to relax the timeout of already opened 1-hop circuits.
20567       They might never timeout. This should eliminate some/all cases of
20568       the relaxed timeout log message.
20569     - Use circuit creation time for network liveness evaluation. This
20570       should eliminate warning log messages about liveness caused
20571       by changes in timeout evaluation. Fixes bug 6572; bugfix on
20572       0.2.4.8-alpha.
20573     - Reduce a path bias length check from notice to info. The message
20574       is triggered when creating controller circuits. Fixes bug 8196;
20575       bugfix on 0.2.4.8-alpha.
20576     - Fix a path state issue that triggered a notice during relay startup.
20577       Fixes bug 8320; bugfix on 0.2.4.10-alpha.
20578     - Reduce occurrences of warns about circuit purpose in
20579       connection_ap_expire_building(). Fixes bug 8477; bugfix on
20580       0.2.4.11-alpha.
20582   o Minor bugfixes (pre-0.2.4.x log messages that were too noisy):
20583     - If we encounter a write failure on a SOCKS connection before we
20584       finish our SOCKS handshake, don't warn that we closed the
20585       connection before we could send a SOCKS reply. Fixes bug 8427;
20586       bugfix on 0.1.0.1-rc.
20587     - Correctly recognize that [::1] is a loopback address. Fixes
20588       bug 8377; bugfix on 0.2.1.3-alpha.
20589     - Fix a directory authority warn caused when we have a large amount
20590       of badexit bandwidth. Fixes bug 8419; bugfix on 0.2.2.10-alpha.
20591     - Don't log inappropriate heartbeat messages when hibernating: a
20592       hibernating node is _expected_ to drop out of the consensus,
20593       decide it isn't bootstrapped, and so forth. Fixes bug 7302;
20594       bugfix on 0.2.3.1-alpha.
20595     - Don't complain about bootstrapping problems while hibernating.
20596       These complaints reflect a general code problem, but not one
20597       with any problematic effects (no connections are actually
20598       opened). Fixes part of bug 7302; bugfix on 0.2.3.2-alpha.
20600   o Documentation fixes:
20601     - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option
20602       names match. Fixes bug 7768.
20603     - Make the torify manpage no longer refer to tsocks; torify hasn't
20604       supported tsocks since 0.2.3.14-alpha.
20605     - Make the tor manpage no longer reference tsocks.
20606     - Fix the GeoIPExcludeUnknown documentation to refer to
20607       ExcludeExitNodes rather than the currently nonexistent
20608       ExcludeEntryNodes. Spotted by "hamahangi" on tor-talk.
20610   o Removed files:
20611     - The tor-tsocks.conf is no longer distributed or installed. We
20612       recommend that tsocks users use torsocks instead. Resolves
20613       ticket 8290.
20616 Changes in version 0.2.4.11-alpha - 2013-03-11
20617   Tor 0.2.4.11-alpha makes relay measurement by directory authorities
20618   more robust, makes hidden service authentication work again, and
20619   resolves a DPI fingerprint for Tor's SSL transport.
20621   o Major features (directory authorities):
20622     - Directory authorities now support a new consensus method (17)
20623       where they cap the published bandwidth of servers for which
20624       insufficient bandwidth measurements exist. Fixes part of bug 2286.
20625     - Directory authorities that set "DisableV2DirectoryInfo_ 1" no longer
20626       serve any v2 directory information. Now we can test disabling the
20627       old deprecated v2 directory format, and see whether doing so has
20628       any effect on network load. Begins to fix bug 6783.
20629     - Directory authorities now include inside each vote a statement of
20630       the performance thresholds they used when assigning flags.
20631       Implements ticket 8151.
20633   o Major bugfixes (directory authorities):
20634     - Stop marking every relay as having been down for one hour every
20635       time we restart a directory authority. These artificial downtimes
20636       were messing with our Stable and Guard flag calculations. Fixes
20637       bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha.
20639   o Major bugfixes (hidden services):
20640     - Allow hidden service authentication to succeed again. When we
20641       refactored the hidden service introduction code back
20642       in 0.2.4.1-alpha, we didn't update the code that checks
20643       whether authentication information is present, causing all
20644       authentication checks to return "false". Fix for bug 8207; bugfix
20645       on 0.2.4.1-alpha. Found by Coverity; this is CID 718615.
20647   o Minor features (relays, bridges):
20648     - Make bridge relays check once a minute for whether their IP
20649       address has changed, rather than only every 15 minutes. Resolves
20650       bugs 1913 and 1992.
20651     - Refactor resolve_my_address() so it returns the method by which we
20652       decided our public IP address (explicitly configured, resolved from
20653       explicit hostname, guessed from interfaces, learned by gethostname).
20654       Now we can provide more helpful log messages when a relay guesses
20655       its IP address incorrectly (e.g. due to unexpected lines in
20656       /etc/hosts). Resolves ticket 2267.
20657     - Teach bridge-using clients to avoid 0.2.2 bridges when making
20658       microdescriptor-related dir requests, and only fall back to normal
20659       descriptors if none of their bridges can handle microdescriptors
20660       (as opposed to the fix in ticket 4013, which caused them to fall
20661       back to normal descriptors if *any* of their bridges preferred
20662       them). Resolves ticket 4994.
20663     - Randomize the lifetime of our SSL link certificate, so censors can't
20664       use the static value for filtering Tor flows. Resolves ticket 8443;
20665       related to ticket 4014 which was included in 0.2.2.33.
20666     - Support a new version of the link protocol that allows 4-byte circuit
20667       IDs. Previously, circuit IDs were limited to 2 bytes, which presented
20668       a possible resource exhaustion issue. Closes ticket 7351; implements
20669       proposal 214.
20671   o Minor features (portability):
20672     - Tweak the curve25519-donna*.c implementations to tolerate systems
20673       that lack stdint.h. Fixes bug 3894; bugfix on 0.2.4.8-alpha.
20674     - Use Ville Laurikari's implementation of AX_CHECK_SIGN() to determine
20675       the signs of types during autoconf. This is better than our old
20676       approach, which didn't work when cross-compiling.
20677     - Detect the sign of enum values, rather than assuming that MSC is the
20678       only compiler where enum types are all signed. Fixes bug 7727;
20679       bugfix on 0.2.4.10-alpha.
20681   o Minor features (other):
20682     - Say "KBytes" rather than "KB" in the man page (for various values
20683       of K), to further reduce confusion about whether Tor counts in
20684       units of memory or fractions of units of memory. Resolves ticket 7054.
20685     - Clear the high bit on curve25519 public keys before passing them to
20686       our backend, in case we ever wind up using a backend that doesn't do
20687       so itself. If we used such a backend, and *didn't* clear the high bit,
20688       we could wind up in a situation where users with such backends would
20689       be distinguishable from users without. Fixes bug 8121; bugfix on
20690       0.2.4.8-alpha.
20691     - Update to the March 6 2013 Maxmind GeoLite Country database.
20693   o Minor bugfixes (clients):
20694     - When we receive a RELAY_END cell with the reason DONE, or with no
20695       reason, before receiving a RELAY_CONNECTED cell, report the SOCKS
20696       status as "connection refused". Previously we reported these cases
20697       as success but then immediately closed the connection. Fixes bug
20698       7902; bugfix on 0.1.0.1-rc. Reported by "oftc_must_be_destroyed".
20699     - Downgrade an assertion in connection_ap_expire_beginning to an
20700       LD_BUG message. The fix for bug 8024 should prevent this message
20701       from displaying, but just in case, a warn that we can diagnose
20702       is better than more assert crashes. Fixes bug 8065; bugfix on
20703       0.2.4.8-alpha.
20704     - Lower path use bias thresholds to .80 for notice and .60 for warn.
20705       Also make the rate limiting flags for the path use bias log messages
20706       independent from the original path bias flags. Fixes bug 8161;
20707       bugfix on 0.2.4.10-alpha.
20709   o Minor bugfixes (relays):
20710     - Stop trying to resolve our hostname so often (e.g. every time we
20711       think about doing a directory fetch). Now we reuse the cached
20712       answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc)
20713       and 2410 (bugfix on 0.1.2.2-alpha).
20714     - Stop sending a stray "(null)" in some cases for the server status
20715       "EXTERNAL_ADDRESS" controller event. Resolves bug 8200; bugfix
20716       on 0.1.2.6-alpha.
20717     - When choosing which stream on a formerly stalled circuit to wake
20718       first, make better use of the platform's weak RNG. Previously,
20719       we had been using the % ("modulo") operator to try to generate a
20720       1/N chance of picking each stream, but this behaves badly with
20721       many platforms' choice of weak RNG. Fixes bug 7801; bugfix on
20722       0.2.2.20-alpha.
20723     - Use our own weak RNG when we need a weak RNG. Windows's rand() and
20724       Irix's random() only return 15 bits; Solaris's random() returns more
20725       bits but its RAND_MAX says it only returns 15, and so on. Motivated
20726       by the fix for bug 7801; bugfix on 0.2.2.20-alpha.
20728   o Minor bugfixes (directory authorities):
20729     - Directory authorities now use less space when formatting identical
20730       microdescriptor lines in directory votes. Fixes bug 8158; bugfix
20731       on 0.2.4.1-alpha.
20733   o Minor bugfixes (memory leaks spotted by Coverity -- bug 7816):
20734     - Avoid leaking memory if we fail to compute a consensus signature
20735       or we generate a consensus we can't parse. Bugfix on 0.2.0.5-alpha.
20736     - Fix a memory leak when receiving headers from an HTTPS proxy. Bugfix
20737       on 0.2.1.1-alpha.
20738     - Fix a memory leak during safe-cookie controller authentication.
20739       Bugfix on 0.2.3.13-alpha.
20740     - Avoid memory leak of IPv6 policy content if we fail to format it into
20741       a router descriptor. Bugfix on 0.2.4.7-alpha.
20743   o Minor bugfixes (other code correctness issues):
20744     - Avoid a crash if we fail to generate an extrainfo descriptor.
20745       Fixes bug 8208; bugfix on 0.2.3.16-alpha. Found by Coverity;
20746       this is CID 718634.
20747     - When detecting the largest possible file descriptor (in order to
20748       close all file descriptors when launching a new program), actually
20749       use _SC_OPEN_MAX. The old code for doing this was very, very broken.
20750       Fixes bug 8209; bugfix on 0.2.3.1-alpha. Found by Coverity; this
20751       is CID 743383.
20752     - Fix a copy-and-paste error when adding a missing A1 to a routerset
20753       because of GeoIPExcludeUnknown. Fix for Coverity CID 980650.
20754       Bugfix on 0.2.4.10-alpha.
20755     - Fix an impossible-to-trigger integer overflow when estimating how
20756       long our onionskin queue would take. (This overflow would require us
20757       to accept 4 million onionskins before processing 100 of them.) Fixes
20758       bug 8210; bugfix on 0.2.4.10-alpha.
20760   o Code simplification and refactoring:
20761     - Add a wrapper function for the common "log a message with a
20762       rate-limit" case.
20765 Changes in version 0.2.4.10-alpha - 2013-02-04
20766   Tor 0.2.4.10-alpha adds defenses at the directory authority level from
20767   certain attacks that flood the network with relays; changes the queue
20768   for circuit create requests from a sized-based limit to a time-based
20769   limit; resumes building with MSVC on Windows; and fixes a wide variety
20770   of other issues.
20772   o Major bugfixes (directory authority):
20773     - When computing directory thresholds, ignore any rejected-as-sybil
20774       nodes during the computation so that they can't influence Fast,
20775       Guard, etc. (We should have done this for proposal 109.) Fixes
20776       bug 8146.
20777     - When marking a node as a likely sybil, reset its uptime metrics
20778       to zero, so that it cannot time towards getting marked as Guard,
20779       Stable, or HSDir. (We should have done this for proposal 109.) Fixes
20780       bug 8147.
20782   o Major bugfixes:
20783     - When a TLS write is partially successful but incomplete, remember
20784       that the flushed part has been flushed, and notice that bytes were
20785       actually written. Reported and fixed pseudonymously. Fixes bug
20786       7708; bugfix on Tor 0.1.0.5-rc.
20787     - Reject bogus create and relay cells with 0 circuit ID or 0 stream
20788       ID: these could be used to create unexpected streams and circuits
20789       which would count as "present" to some parts of Tor but "absent"
20790       to others, leading to zombie circuits and streams or to a bandwidth
20791       denial-of-service. Fixes bug 7889; bugfix on every released version
20792       of Tor. Reported by "oftc_must_be_destroyed".
20793     - Rename all macros in our local copy of queue.h to begin with "TOR_".
20794       This change seems the only good way to permanently prevent conflicts
20795       with queue.h on various operating systems. Fixes bug 8107; bugfix
20796       on 0.2.4.6-alpha.
20798   o Major features (relay):
20799     - Instead of limiting the number of queued onionskins (aka circuit
20800       create requests) to a fixed, hard-to-configure number, we limit
20801       the size of the queue based on how many we expect to be able to
20802       process in a given amount of time. We estimate the time it will
20803       take to process an onionskin based on average processing time
20804       of previous onionskins. Closes ticket 7291. You'll never have to
20805       configure MaxOnionsPending again.
20807   o Major features (portability):
20808     - Resume building correctly with MSVC and Makefile.nmake. This patch
20809       resolves numerous bugs and fixes reported by ultramage, including
20810       7305, 7308, 7309, 7310, 7312, 7313, 7315, 7316, and 7669.
20811     - Make the ntor and curve25519 code build correctly with MSVC.
20812       Fix on 0.2.4.8-alpha.
20814   o Minor features:
20815     - When directory authorities are computing thresholds for flags,
20816       never let the threshold for the Fast flag fall below 4096
20817       bytes. Also, do not consider nodes with extremely low bandwidths
20818       when deciding thresholds for various directory flags. This change
20819       should raise our threshold for Fast relays, possibly in turn
20820       improving overall network performance; see ticket 1854. Resolves
20821       ticket 8145.
20822     - The Tor client now ignores sub-domain components of a .onion
20823       address. This change makes HTTP "virtual" hosting
20824       possible: http://foo.aaaaaaaaaaaaaaaa.onion/ and
20825       http://bar.aaaaaaaaaaaaaaaa.onion/ can be two different websites
20826       hosted on the same hidden service. Implements proposal 204.
20827     - We compute the overhead from passing onionskins back and forth to
20828       cpuworkers, and report it when dumping statistics in response to
20829       SIGUSR1. Supports ticket 7291.
20831   o Minor features (path selection):
20832     - When deciding whether we have enough descriptors to build circuits,
20833       instead of looking at raw relay counts, look at which fraction
20834       of (bandwidth-weighted) paths we're able to build. This approach
20835       keeps clients from building circuits if their paths are likely to
20836       stand out statistically. The default fraction of paths needed is
20837       taken from the consensus directory; you can override it with the
20838       new PathsNeededToBuildCircuits option. Fixes ticket 5956.
20839     - When any country code is listed in ExcludeNodes or ExcludeExitNodes,
20840       and we have GeoIP information, also exclude all nodes with unknown
20841       countries "??" and "A1". This behavior is controlled by the
20842       new GeoIPExcludeUnknown option: you can make such nodes always
20843       excluded with "GeoIPExcludeUnknown 1", and disable the feature
20844       with "GeoIPExcludeUnknown 0". Setting "GeoIPExcludeUnknown auto"
20845       gets you the default behavior. Implements feature 7706.
20846     - Path Use Bias: Perform separate accounting for successful circuit
20847       use. Keep separate statistics on stream attempt rates versus stream
20848       success rates for each guard. Provide configurable thresholds to
20849       determine when to emit log messages or disable use of guards that
20850       fail too many stream attempts. Resolves ticket 7802.
20852   o Minor features (log messages):
20853     - When learning a fingerprint for a bridge, log its corresponding
20854       transport type. Implements ticket 7896.
20855     - Improve the log message when "Bug/attack: unexpected sendme cell
20856       from client" occurs, to help us track bug 8093.
20858   o Minor bugfixes:
20859     - Remove a couple of extraneous semicolons that were upsetting the
20860       cparser library. Patch by Christian Grothoff. Fixes bug 7115;
20861       bugfix on 0.2.2.1-alpha.
20862     - Remove a source of rounding error during path bias count scaling;
20863       don't count cannibalized circuits as used for path bias until we
20864       actually try to use them; and fix a circuit_package_relay_cell()
20865       warning message about n_chan==NULL. Fixes bug 7802.
20866     - Detect nacl when its headers are in a nacl/ subdirectory. Also,
20867       actually link against nacl when we're configured to use it. Fixes
20868       bug 7972; bugfix on 0.2.4.8-alpha.
20869     - Compile correctly with the --disable-curve25519 option. Fixes
20870       bug 8153; bugfix on 0.2.4.8-alpha.
20872   o Build improvements:
20873     - Do not report status verbosely from autogen.sh unless the -v flag
20874       is specified. Fixes issue 4664. Patch from Onizuka.
20875     - Replace all calls to snprintf() outside of src/ext with
20876       tor_snprintf(). Also remove the #define to replace snprintf with
20877       _snprintf on Windows; they have different semantics, and all of
20878       our callers should be using tor_snprintf() anyway. Fixes bug 7304.
20879     - Try to detect if we are ever building on a platform where
20880       memset(...,0,...) does not set the value of a double to 0.0. Such
20881       platforms are permitted by the C standard, though in practice
20882       they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't
20883       currently support them, but it's better to detect them and fail
20884       than to perform erroneously.
20886   o Removed features:
20887     - Stop exporting estimates of v2 and v3 directory traffic shares
20888       in extrainfo documents. They were unneeded and sometimes inaccurate.
20889       Also stop exporting any v2 directory request statistics. Resolves
20890       ticket 5823.
20891     - Drop support for detecting and warning about versions of Libevent
20892       before 1.3e. Nothing reasonable ships with them any longer;
20893       warning the user about them shouldn't be needed. Resolves ticket
20894       6826.
20896   o Code simplifications and refactoring:
20897     - Rename "isin" functions to "contains", for grammar. Resolves
20898       ticket 5285.
20899     - Rename Tor's logging function log() to tor_log(), to avoid conflicts
20900       with the natural logarithm function from the system libm. Resolves
20901       ticket 7599.
20904 Changes in version 0.2.4.9-alpha - 2013-01-15
20905   Tor 0.2.4.9-alpha provides a quick fix to make the new ntor handshake
20906   work more robustly.
20908   o Major bugfixes:
20909     - Fix backward compatibility logic when receiving an embedded ntor
20910       handshake tunneled in a CREATE cell. This clears up the "Bug:
20911       couldn't format CREATED cell" warning. Fixes bug 7959; bugfix
20912       on 0.2.4.8-alpha.
20915 Changes in version 0.2.4.8-alpha - 2013-01-14
20916   Tor 0.2.4.8-alpha introduces directory guards to reduce user enumeration
20917   risks, adds a new stronger and faster circuit handshake, and offers
20918   stronger and faster link encryption when both sides support it.
20920   o Major features:
20921     - Preliminary support for directory guards (proposal 207): when
20922       possible, clients now use their entry guards for non-anonymous
20923       directory requests. This can help prevent client enumeration. Note
20924       that this behavior only works when we have a usable consensus
20925       directory, and when options about what to download are more or less
20926       standard. In the future we should re-bootstrap from our guards,
20927       rather than re-bootstrapping from the preconfigured list of
20928       directory sources that ships with Tor. Resolves ticket 6526.
20929     - Tor relays and clients now support a better CREATE/EXTEND cell
20930       format, allowing the sender to specify multiple address, identity,
20931       and handshake types. Implements Robert Ransom's proposal 200;
20932       closes ticket 7199.
20934   o Major features (new circuit handshake):
20935     - Tor now supports a new circuit extension handshake designed by Ian
20936       Goldberg, Douglas Stebila, and Berkant Ustaoglu. Our original
20937       circuit extension handshake, later called "TAP", was a bit slow
20938       (especially on the relay side), had a fragile security proof, and
20939       used weaker keys than we'd now prefer. The new circuit handshake
20940       uses Dan Bernstein's "curve25519" elliptic-curve Diffie-Hellman
20941       function, making it significantly more secure than the older
20942       handshake, and significantly faster. Tor can use one of two built-in
20943       pure-C curve25519-donna implementations by Adam Langley, or it
20944       can link against the "nacl" library for a tuned version if present.
20946       The built-in version is very fast for 64-bit systems when building
20947       with GCC. The built-in 32-bit version is still faster than the
20948       old TAP protocol, but using libnacl is better on most such hosts.
20950       Clients don't currently use this protocol by default, since
20951       comparatively few clients support it so far. To try it, set
20952       UseNTorHandshake to 1.
20954       Implements proposal 216; closes ticket 7202.
20956   o Major features (better link encryption):
20957     - Relays can now enable the ECDHE TLS ciphersuites when available
20958       and appropriate. These ciphersuites let us negotiate forward-secure
20959       TLS secret keys more safely and more efficiently than with our
20960       previous use of Diffie-Hellman modulo a 1024-bit prime. By default,
20961       public relays prefer the (faster) P224 group, and bridges prefer
20962       the (more common) P256 group; you can override this with the
20963       TLSECGroup option.
20965       Enabling these ciphers was a little tricky, since for a long time,
20966       clients had been claiming to support them without actually doing
20967       so, in order to foil fingerprinting. But with the client-side
20968       implementation of proposal 198 in 0.2.3.17-beta, clients can now
20969       match the ciphers from recent Firefox versions *and* list the
20970       ciphers they actually mean, so relays can believe such clients
20971       when they advertise ECDHE support in their TLS ClientHello messages.
20973       This feature requires clients running 0.2.3.17-beta or later,
20974       and requires both sides to be running OpenSSL 1.0.0 or later
20975       with ECC support. OpenSSL 1.0.1, with the compile-time option
20976       "enable-ec_nistp_64_gcc_128", is highly recommended.
20978       Implements the relay side of proposal 198; closes ticket 7200.
20980   o Major bugfixes:
20981     - Avoid crashing when, as a relay without IPv6-exit support, a
20982       client insists on getting an IPv6 address or nothing. Fixes bug
20983       7814; bugfix on 0.2.4.7-alpha.
20985   o Minor features:
20986     - Improve circuit build timeout handling for hidden services.
20987       In particular: adjust build timeouts more accurately depending
20988       upon the number of hop-RTTs that a particular circuit type
20989       undergoes. Additionally, launch intro circuits in parallel
20990       if they timeout, and take the first one to reply as valid.
20991     - Work correctly on Unix systems where EAGAIN and EWOULDBLOCK are
20992       separate error codes; or at least, don't break for that reason.
20993       Fixes bug 7935. Reported by "oftc_must_be_destroyed".
20994     - Update to the January 2 2013 Maxmind GeoLite Country database.
20996   o Minor features (testing):
20997     - Add benchmarks for DH (1024-bit multiplicative group) and ECDH
20998       (P-256) Diffie-Hellman handshakes to src/or/bench.
20999     - Add benchmark functions to test onion handshake performance.
21001   o Minor features (path bias detection):
21002     - Alter the Path Bias log messages to be more descriptive in terms
21003       of reporting timeouts and other statistics.
21004     - Create three levels of Path Bias log messages, as opposed to just
21005       two. These are configurable via consensus as well as via the torrc
21006       options PathBiasNoticeRate, PathBiasWarnRate, PathBiasExtremeRate.
21007       The default values are 0.70, 0.50, and 0.30 respectively.
21008     - Separate the log message levels from the decision to drop guards,
21009       which also is available via torrc option PathBiasDropGuards.
21010       PathBiasDropGuards still defaults to 0 (off).
21011     - Deprecate PathBiasDisableRate in favor of PathBiasDropGuards
21012       in combination with PathBiasExtremeRate.
21013     - Increase the default values for PathBiasScaleThreshold and
21014       PathBiasCircThreshold from (200, 20) to (300, 150).
21015     - Add in circuit usage accounting to path bias. If we try to use a
21016       built circuit but fail for any reason, it counts as path bias.
21017       Certain classes of circuits where the adversary gets to pick your
21018       destination node are exempt from this accounting. Usage accounting
21019       can be specifically disabled via consensus parameter or torrc.
21020     - Convert all internal path bias state to double-precision floating
21021       point, to avoid roundoff error and other issues.
21022     - Only record path bias information for circuits that have completed
21023       *two* hops. Assuming end-to-end tagging is the attack vector, this
21024       makes us more resilient to ambient circuit failure without any
21025       detection capability loss.
21027   o Minor bugfixes (log messages):
21028     - Rate-limit the "No circuits are opened. Relaxed timeout for a
21029       circuit with channel state open..." message to once per hour to
21030       keep it from filling the notice logs. Mitigates bug 7799 but does
21031       not fix the underlying cause. Bugfix on 0.2.4.7-alpha.
21032     - Avoid spurious warnings when configuring multiple client ports of
21033       which only some are nonlocal. Previously, we had claimed that some
21034       were nonlocal when in fact they weren't. Fixes bug 7836; bugfix on
21035       0.2.3.3-alpha.
21037   o Code simplifications and refactoring:
21038     - Get rid of a couple of harmless clang warnings, where we compared
21039       enums to ints. These warnings are newly introduced in clang 3.2.
21040     - Split the onion.c file into separate modules for the onion queue
21041       and the different handshakes it supports.
21042     - Remove the marshalling/unmarshalling code for sending requests to
21043       cpuworkers over a socket, and instead just send structs. The
21044       recipient will always be the same Tor binary as the sender, so
21045       any encoding is overkill.
21048 Changes in version 0.2.4.7-alpha - 2012-12-24
21049   Tor 0.2.4.7-alpha introduces a new approach to providing fallback
21050   directory mirrors for more robust bootstrapping; fixes more issues where
21051   clients with changing network conditions refuse to make any circuits;
21052   adds initial support for exiting to IPv6 addresses; resumes being able
21053   to update our GeoIP database, and includes the geoip6 file this time;
21054   turns off the client-side DNS cache by default due to privacy risks;
21055   and fixes a variety of other issues.
21057   o Major features (client resilience):
21058     - Add a new "FallbackDir" torrc option to use when we can't use
21059       a directory mirror from the consensus (either because we lack a
21060       consensus, or because they're all down). Currently, all authorities
21061       are fallbacks by default, and there are no other default fallbacks,
21062       but that will change. This option will allow us to give clients a
21063       longer list of servers to try to get a consensus from when first
21064       connecting to the Tor network, and thereby reduce load on the
21065       directory authorities. Implements proposal 206, "Preconfigured
21066       directory sources for bootstrapping". We also removed the old
21067       "FallbackNetworkstatus" option, since we never got it working well
21068       enough to use it. Closes bug 572.
21069     - If we have no circuits open, use a relaxed timeout (the
21070       95-percentile cutoff) until a circuit succeeds. This heuristic
21071       should allow Tor to succeed at building circuits even when the
21072       network connection drastically changes. Should help with bug 3443.
21074   o Major features (IPv6):
21075     - Relays can now exit to IPv6 addresses: make sure that you have IPv6
21076       connectivity, then set the IPv6Exit flag to 1. Also make sure your
21077       exit policy reads as you would like: the address * applies to all
21078       address families, whereas *4 is IPv4 address only, and *6 is IPv6
21079       addresses only. On the client side, you'll need to wait until the
21080       authorities have upgraded, wait for enough exits to support IPv6,
21081       apply the "IPv6Traffic" flag to a SocksPort, and use Socks5. Closes
21082       ticket 5547, implements proposal 117 as revised in proposal 208.
21084       We DO NOT recommend that clients with actual anonymity needs start
21085       using IPv6 over Tor yet, since not enough exits support it yet.
21087   o Major features (geoip database):
21088     - Maxmind began labelling Tor relays as being in country "A1",
21089       which breaks by-country node selection inside Tor. Now we use a
21090       script to replace "A1" ("Anonymous Proxy") entries in our geoip
21091       file with real country codes. This script fixes about 90% of "A1"
21092       entries automatically and uses manual country code assignments to
21093       fix the remaining 10%. See src/config/README.geoip for details.
21094       Fixes bug 6266. Also update to the December 5 2012 Maxmind GeoLite
21095       Country database, as modified above.
21097   o Major bugfixes (client-side DNS):
21098     - Turn off the client-side DNS cache by default. Updating and using
21099       the DNS cache is now configurable on a per-client-port
21100       level. SOCKSPort, DNSPort, etc lines may now contain
21101       {No,}Cache{IPv4,IPv6,}DNS lines to indicate that we shouldn't
21102       cache these types of DNS answers when we receive them from an
21103       exit node in response to an application request on this port, and
21104       {No,}UseCached{IPv4,IPv6,DNS} lines to indicate that if we have
21105       cached DNS answers of these types, we shouldn't use them. It's
21106       potentially risky to use cached DNS answers at the client, since
21107       doing so can indicate to one exit what answers we've gotten
21108       for DNS lookups in the past. With IPv6, this becomes especially
21109       problematic. Using cached DNS answers for requests on the same
21110       circuit would present less linkability risk, since all traffic
21111       on a circuit is already linkable, but it would also provide
21112       little performance benefit: the exit node caches DNS replies
21113       too. Implements a simplified version of Proposal 205. Implements
21114       ticket 7570.
21116   o Major bugfixes (other):
21117     - Alter circuit build timeout measurement to start at the point
21118       where we begin the CREATE/CREATE_FAST step (as opposed to circuit
21119       initialization). This should make our timeout measurements more
21120       uniform. Previously, we were sometimes including ORconn setup time
21121       in our circuit build time measurements. Should resolve bug 3443.
21122     - Fix an assertion that could trigger in hibernate_go_dormant() when
21123       closing an or_connection_t: call channel_mark_for_close() rather
21124       than connection_mark_for_close(). Fixes bug 7267. Bugfix on
21125       0.2.4.4-alpha.
21126     - Include the geoip6 IPv6 GeoIP database in the tarball. Fixes bug
21127       7655; bugfix on 0.2.4.6-alpha.
21129   o Minor features:
21130     - Add a new torrc option "ServerTransportListenAddr" to let bridge
21131       operators select the address where their pluggable transports will
21132       listen for connections. Resolves ticket 7013.
21133     - Allow an optional $ before the node identity digest in the
21134       controller command GETINFO ns/id/<identity>, for consistency with
21135       md/id/<identity> and desc/id/<identity>. Resolves ticket 7059.
21136     - Log packaged cell fullness as part of the heartbeat message.
21137       Diagnosis to try to determine the extent of bug 7743.
21139   o Minor features (IPv6):
21140     - AutomapHostsOnResolve now supports IPv6 addresses. By default, we
21141       prefer to hand out virtual IPv6 addresses, since there are more of
21142       them and we can't run out. To override this behavior and make IPv4
21143       addresses preferred, set NoPreferIPv6Automap on whatever SOCKSPort
21144       or DNSPort you're using for resolving. Implements ticket 7571.
21145     - AutomapHostsOnResolve responses are now randomized, to avoid
21146       annoying situations where Tor is restarted and applications
21147       connect to the wrong addresses.
21148     - Never try more than 1000 times to pick a new virtual address when
21149       AutomapHostsOnResolve is set. That's good enough so long as we
21150       aren't close to handing out our entire virtual address space;
21151       if you're getting there, it's best to switch to IPv6 virtual
21152       addresses anyway.
21154   o Minor bugfixes:
21155     - The ADDRMAP command can no longer generate an ill-formed error
21156       code on a failed MAPADDRESS. It now says "internal" rather than
21157       an English sentence fragment with spaces in the middle. Bugfix on
21158       Tor 0.2.0.19-alpha.
21159     - Fix log messages and comments to avoid saying "GMT" when we mean
21160       "UTC". Fixes bug 6113.
21161     - Compile on win64 using mingw64. Fixes bug 7260; patches from
21162       "yayooo".
21163     - Fix a crash when debugging unit tests on Windows: deallocate a
21164       shared library with FreeLibrary, not CloseHandle. Fixes bug 7306;
21165       bugfix on 0.2.2.17-alpha. Reported by "ultramage".
21167   o Renamed options:
21168     - The DirServer option is now DirAuthority, for consistency with
21169       current naming patterns. You can still use the old DirServer form.
21171   o Code simplification and refactoring:
21172     - Move the client-side address-map/virtual-address/DNS-cache code
21173       out of connection_edge.c into a new addressmap.c module.
21174     - Remove unused code for parsing v1 directories and "running routers"
21175       documents. Fixes bug 6887.
21178 Changes in version 0.2.3.25 - 2012-11-19
21179   The Tor 0.2.3 release series is dedicated to the memory of Len "rabbi"
21180   Sassaman (1980-2011), a long-time cypherpunk, anonymity researcher,
21181   Mixmaster maintainer, Pynchon Gate co-designer, CodeCon organizer,
21182   programmer, and friend. Unstinting in his dedication to the cause of
21183   freedom, he inspired and helped many of us as we began our work on
21184   anonymity, and inspires us still. Please honor his memory by writing
21185   software to protect people's freedoms, and by helping others to do so.
21187   Tor 0.2.3.25, the first stable release in the 0.2.3 branch, features
21188   significantly reduced directory overhead (via microdescriptors),
21189   enormous crypto performance improvements for fast relays on new
21190   enough hardware, a new v3 TLS handshake protocol that can better
21191   resist fingerprinting, support for protocol obfuscation plugins (aka
21192   pluggable transports), better scalability for hidden services, IPv6
21193   support for bridges, performance improvements like allowing clients
21194   to skip the first round-trip on the circuit ("optimistic data") and
21195   refilling token buckets more often, a new "stream isolation" design
21196   to isolate different applications on different circuits, and many
21197   stability, security, and privacy fixes.
21199   o Major bugfixes:
21200     - Tor tries to wipe potentially sensitive data after using it, so
21201       that if some subsequent security failure exposes Tor's memory,
21202       the damage will be limited. But we had a bug where the compiler
21203       was eliminating these wipe operations when it decided that the
21204       memory was no longer visible to a (correctly running) program,
21205       hence defeating our attempt at defense in depth. We fix that
21206       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
21207       is unlikely to optimize away. Future versions of Tor may use
21208       a less ridiculously heavy approach for this. Fixes bug 7352.
21209       Reported in an article by Andrey Karpov.
21211   o Minor bugfixes:
21212     - Fix a harmless bug when opting against publishing a relay descriptor
21213       because DisableNetwork is set. Fixes bug 7464; bugfix on
21214       0.2.3.9-alpha.
21217 Changes in version 0.2.4.6-alpha - 2012-11-13
21218   Tor 0.2.4.6-alpha fixes an assert bug that has been plaguing relays,
21219   makes our defense-in-depth memory wiping more reliable, and begins to
21220   count IPv6 addresses in bridge statistics,
21222   o Major bugfixes:
21223     - Fix an assertion failure that could occur when closing a connection
21224       with a spliced rendezvous circuit. Fix for bug 7212; bugfix on
21225       Tor 0.2.4.4-alpha.
21226     - Tor tries to wipe potentially sensitive data after using it, so
21227       that if some subsequent security failure exposes Tor's memory,
21228       the damage will be limited. But we had a bug where the compiler
21229       was eliminating these wipe operations when it decided that the
21230       memory was no longer visible to a (correctly running) program,
21231       hence defeating our attempt at defense in depth. We fix that
21232       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
21233       is unlikely to optimize away. Future versions of Tor may use
21234       a less ridiculously heavy approach for this. Fixes bug 7352.
21235       Reported in an article by Andrey Karpov.
21237   o Minor features:
21238     - Add GeoIP database for IPv6 addresses. The new config option
21239       is GeoIPv6File.
21240     - Bridge statistics now count bridge clients connecting over IPv6:
21241       bridge statistics files now list "bridge-ip-versions" and
21242       extra-info documents list "geoip6-db-digest". The control protocol
21243       "CLIENTS_SEEN" and "ip-to-country" queries now support IPv6. Initial
21244       implementation by "shkoo", addressing ticket 5055.
21246   o Minor bugfixes:
21247     - Warn when we are binding low ports when hibernation is enabled;
21248       previously we had warned when we were _advertising_ low ports with
21249       hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
21250     - Fix a harmless bug when opting against publishing a relay descriptor
21251       because DisableNetwork is set. Fixes bug 7464; bugfix on
21252       0.2.3.9-alpha.
21253     - Add warning message when a managed proxy dies during configuration.
21254       Fixes bug 7195; bugfix on 0.2.4.2-alpha.
21255     - Fix a linking error when building tor-fw-helper without miniupnp.
21256       Fixes bug 7235; bugfix on 0.2.4.2-alpha. Fix by Anthony G. Basile.
21257     - Check for closing an or_connection_t without going through correct
21258       channel functions; emit a warning and then call
21259       connection_or_close_for_error() so we don't assert as in bugs 7212
21260       and 7267.
21261     - Compile correctly on compilers without C99 designated initializer
21262       support. Fixes bug 7286; bugfix on 0.2.4.4-alpha.
21263     - Avoid a possible assert that can occur when channel_send_destroy() is
21264       called on a channel in CHANNEL_STATE_CLOSING, CHANNEL_STATE_CLOSED,
21265       or CHANNEL_STATE_ERROR when the Tor process is resumed after being
21266       blocked for a long interval. Fixes bug 7350; bugfix on 0.2.4.4-alpha.
21267     - Fix a memory leak on failing cases of channel_tls_process_certs_cell.
21268       Fixes bug 7422; bugfix on 0.2.4.4-alpha.
21270   o Code simplification and refactoring:
21271     - Start using OpenBSD's implementation of queue.h, so that we don't
21272       need to hand-roll our own pointer and list structures whenever we
21273       need them. (We can't rely on a sys/queue.h, since some operating
21274       systems don't have them, and the ones that do have them don't all
21275       present the same extensions.)
21278 Changes in version 0.2.4.5-alpha - 2012-10-25
21279   Tor 0.2.4.5-alpha comes hard at the heels of 0.2.4.4-alpha, to fix
21280   two important security vulnerabilities that could lead to remotely
21281   triggerable relay crashes, fix a major bug that was preventing clients
21282   from choosing suitable exit nodes, and refactor some of our code.
21284   o Major bugfixes (security, also in 0.2.3.24-rc):
21285     - Fix a group of remotely triggerable assertion failures related to
21286       incorrect link protocol negotiation. Found, diagnosed, and fixed
21287       by "some guy from France". Fix for CVE-2012-2250; bugfix on
21288       0.2.3.6-alpha.
21289     - Fix a denial of service attack by which any directory authority
21290       could crash all the others, or by which a single v2 directory
21291       authority could crash everybody downloading v2 directory
21292       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
21294   o Major bugfixes (also in 0.2.3.24-rc):
21295     - When parsing exit policy summaries from microdescriptors, we had
21296       previously been ignoring the last character in each one, so that
21297       "accept 80,443,8080" would be treated by clients as indicating
21298       a node that allows access to ports 80, 443, and 808. That would
21299       lead to clients attempting connections that could never work,
21300       and ignoring exit nodes that would support their connections. Now
21301       clients parse these exit policy summaries correctly. Fixes bug 7192;
21302       bugfix on 0.2.3.1-alpha.
21304   o Minor bugfixes (also in 0.2.3.24-rc):
21305     - Clients now consider the ClientRejectInternalAddresses config option
21306       when using a microdescriptor consensus stanza to decide whether
21307       an exit relay would allow exiting to an internal address. Fixes
21308       bug 7190; bugfix on 0.2.3.1-alpha.
21310   o Minor bugfixes:
21311     - Only disable TLS session ticket support when running as a TLS
21312       server. Now clients will blend better with regular Firefox
21313       connections. Fixes bug 7189; bugfix on Tor 0.2.3.23-rc.
21315   o Code simplification and refactoring:
21316     - Start using OpenBSD's implementation of queue.h (originally by
21317       Niels Provos).
21318     - Move the entry node code from circuitbuild.c to its own file.
21319     - Move the circuit build timeout tracking code from circuitbuild.c
21320       to its own file.
21323 Changes in version 0.2.3.24-rc - 2012-10-25
21324   Tor 0.2.3.24-rc fixes two important security vulnerabilities that
21325   could lead to remotely triggerable relay crashes, and fixes
21326   a major bug that was preventing clients from choosing suitable exit
21327   nodes.
21329   o Major bugfixes (security):
21330     - Fix a group of remotely triggerable assertion failures related to
21331       incorrect link protocol negotiation. Found, diagnosed, and fixed
21332       by "some guy from France". Fix for CVE-2012-2250; bugfix on
21333       0.2.3.6-alpha.
21334     - Fix a denial of service attack by which any directory authority
21335       could crash all the others, or by which a single v2 directory
21336       authority could crash everybody downloading v2 directory
21337       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
21339   o Major bugfixes:
21340     - When parsing exit policy summaries from microdescriptors, we had
21341       previously been ignoring the last character in each one, so that
21342       "accept 80,443,8080" would be treated by clients as indicating
21343       a node that allows access to ports 80, 443, and 808. That would
21344       lead to clients attempting connections that could never work,
21345       and ignoring exit nodes that would support their connections. Now
21346       clients parse these exit policy summaries correctly. Fixes bug 7192;
21347       bugfix on 0.2.3.1-alpha.
21349   o Minor bugfixes:
21350     - Clients now consider the ClientRejectInternalAddresses config option
21351       when using a microdescriptor consensus stanza to decide whether
21352       an exit relay would allow exiting to an internal address. Fixes
21353       bug 7190; bugfix on 0.2.3.1-alpha.
21356 Changes in version 0.2.4.4-alpha - 2012-10-20
21357   Tor 0.2.4.4-alpha adds a new v3 directory authority, fixes a privacy
21358   vulnerability introduced by a change in OpenSSL, fixes a remotely
21359   triggerable assert, and adds new channel_t and circuitmux_t abstractions
21360   that will make it easier to test new connection transport and cell
21361   scheduling algorithms.
21363   o New directory authorities (also in 0.2.3.23-rc):
21364     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
21365       authority. Closes ticket 5749.
21367   o Major bugfixes (security/privacy, also in 0.2.3.23-rc):
21368     - Disable TLS session tickets. OpenSSL's implementation was giving
21369       our TLS session keys the lifetime of our TLS context objects, when
21370       perfect forward secrecy would want us to discard anything that
21371       could decrypt a link connection as soon as the link connection
21372       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
21373       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
21374     - Discard extraneous renegotiation attempts once the V3 link
21375       protocol has been initiated. Failure to do so left us open to
21376       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
21377       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
21379   o Internal abstraction features:
21380     - Introduce new channel_t abstraction between circuits and
21381       or_connection_t to allow for implementing alternate OR-to-OR
21382       transports. A channel_t is an abstract object which can either be a
21383       cell-bearing channel, which is responsible for authenticating and
21384       handshaking with the remote OR and transmitting cells to and from
21385       it, or a listening channel, which spawns new cell-bearing channels
21386       at the request of remote ORs. Implements part of ticket 6465.
21387     - Also new is the channel_tls_t subclass of channel_t, adapting it
21388       to the existing or_connection_t code. The V2/V3 protocol handshaking
21389       code which formerly resided in command.c has been moved below the
21390       channel_t abstraction layer and may be found in channeltls.c now.
21391       Implements the rest of ticket 6465.
21392     - Introduce new circuitmux_t storing the queue of circuits for
21393       a channel; this encapsulates and abstracts the queue logic and
21394       circuit selection policy, and allows the latter to be overridden
21395       easily by switching out a policy object. The existing EWMA behavior
21396       is now implemented as a circuitmux_policy_t. Resolves ticket 6816.
21398   o Required libraries:
21399     - Tor now requires OpenSSL 0.9.8 or later. OpenSSL 1.0.0 or later is
21400       strongly recommended.
21402   o Minor features:
21403     - Warn users who run hidden services on a Tor client with
21404       UseEntryGuards disabled that their hidden services will be
21405       vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the
21406       attack which motivated Tor to support entry guards in the first
21407       place). Resolves ticket 6889.
21408     - Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from
21409       dhill. Resolves ticket 6982.
21410     - Option OutboundBindAddress can be specified multiple times and
21411       accepts IPv6 addresses. Resolves ticket 6876.
21413   o Minor bugfixes (also in 0.2.3.23-rc):
21414     - Don't serve or accept v2 hidden service descriptors over a
21415       relay's DirPort. It's never correct to do so, and disabling it
21416       might make it more annoying to exploit any bugs that turn up in the
21417       descriptor-parsing code. Fixes bug 7149.
21418     - Fix two cases in src/or/transports.c where we were calling
21419       fmt_addr() twice in a parameter list. Bug found by David
21420       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
21421     - Fix memory leaks whenever we logged any message about the "path
21422       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
21423     - When relays refuse a "create" cell because their queue of pending
21424       create cells is too big (typically because their cpu can't keep up
21425       with the arrival rate), send back reason "resource limit" rather
21426       than reason "internal", so network measurement scripts can get a
21427       more accurate picture. Fixes bug 7037; bugfix on 0.1.1.11-alpha.
21429   o Minor bugfixes:
21430     - Command-line option "--version" implies "--quiet". Fixes bug 6997.
21431     - Free some more still-in-use memory at exit, to make hunting for
21432       memory leaks easier. Resolves bug 7029.
21433     - When a Tor client gets a "truncated" relay cell, the first byte of
21434       its payload specifies why the circuit was truncated. We were
21435       ignoring this 'reason' byte when tearing down the circuit, resulting
21436       in the controller not being told why the circuit closed. Now we
21437       pass the reason from the truncated cell to the controller. Bugfix
21438       on 0.1.2.3-alpha; fixes bug 7039.
21439     - Downgrade "Failed to hand off onionskin" messages to "debug"
21440       severity, since they're typically redundant with the "Your computer
21441       is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.
21442     - Make clients running with IPv6 bridges connect over IPv6 again,
21443       even without setting new config options ClientUseIPv6 and
21444       ClientPreferIPv6ORPort. Fixes bug 6757; bugfix on 0.2.4.1-alpha.
21445     - Use square brackets around IPv6 addresses in numerous places
21446       that needed them, including log messages, HTTPS CONNECT proxy
21447       requests, TransportProxy statefile entries, and pluggable transport
21448       extra-info lines. Fixes bug 7011; patch by David Fifield.
21450   o Code refactoring and cleanup:
21451     - Source files taken from other packages now reside in src/ext;
21452       previously they were scattered around the rest of Tor.
21453     - Avoid use of reserved identifiers in our C code. The C standard
21454       doesn't like us declaring anything that starts with an
21455       underscore, so let's knock it off before we get in trouble. Fix
21456       for bug 1031; bugfix on the first Tor commit.
21459 Changes in version 0.2.3.23-rc - 2012-10-20
21460   Tor 0.2.3.23-rc adds a new v3 directory authority, fixes a privacy
21461   vulnerability introduced by a change in OpenSSL, and fixes a variety
21462   of smaller bugs in preparation for the release.
21464   o New directory authorities:
21465     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
21466       authority. Closes ticket 5749.
21468   o Major bugfixes (security/privacy):
21469     - Disable TLS session tickets. OpenSSL's implementation was giving
21470       our TLS session keys the lifetime of our TLS context objects, when
21471       perfect forward secrecy would want us to discard anything that
21472       could decrypt a link connection as soon as the link connection
21473       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
21474       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
21475     - Discard extraneous renegotiation attempts once the V3 link
21476       protocol has been initiated. Failure to do so left us open to
21477       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
21478       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
21480   o Major bugfixes:
21481     - Fix a possible crash bug when checking for deactivated circuits
21482       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
21483       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
21485   o Minor bugfixes (on 0.2.3.x):
21486     - Fix two cases in src/or/transports.c where we were calling
21487       fmt_addr() twice in a parameter list. Bug found by David
21488       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
21489     - Convert an assert in the pathbias code to a log message. The assert
21490       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
21491       bugfix on 0.2.3.17-beta.
21492     - Fix memory leaks whenever we logged any message about the "path
21493       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
21495   o Minor bugfixes (on 0.2.2.x and earlier):
21496     - Don't serve or accept v2 hidden service descriptors over a relay's
21497       DirPort. It's never correct to do so, and disabling it might
21498       make it more annoying to exploit any bugs that turn up in the
21499       descriptor-parsing code. Fixes bug 7149.
21500     - When relays refuse a "create" cell because their queue of pending
21501       create cells is too big (typically because their cpu can't keep up
21502       with the arrival rate), send back reason "resource limit" rather
21503       than reason "internal", so network measurement scripts can get a
21504       more accurate picture. Bugfix on 0.1.1.11-alpha; fixes bug 7037.
21505     - Correct file sizes when reading binary files on Cygwin, to avoid
21506       a bug where Tor would fail to read its state file. Fixes bug 6844;
21507       bugfix on 0.1.2.7-alpha.
21508     - Avoid undefined behavior when parsing the list of supported
21509       rendezvous/introduction protocols in a hidden service descriptor.
21510       Previously, Tor would have confused (as-yet-unused) protocol version
21511       numbers greater than 32 with lower ones on many platforms. Fixes
21512       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
21514   o Documentation fixes:
21515     - Clarify that hidden services are TCP only. Fixes bug 6024.
21518 Changes in version 0.2.4.3-alpha - 2012-09-22
21519   Tor 0.2.4.3-alpha fixes another opportunity for a remotely triggerable
21520   assertion, resumes letting relays test reachability of their DirPort,
21521   and cleans up a bunch of smaller bugs.
21523   o Security fixes:
21524     - Fix an assertion failure in tor_timegm() that could be triggered
21525       by a badly formatted directory object. Bug found by fuzzing with
21526       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
21528   o Major bugfixes:
21529     - Fix a possible crash bug when checking for deactivated circuits
21530       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
21531       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
21532     - Allow routers to detect that their own DirPorts are running. When
21533       we removed support for versions_supports_begindir, we also
21534       accidentally removed the mechanism we used to self-test our
21535       DirPort. Diagnosed with help from kargig. Fixes bugs 6814 and 6815;
21536       bugfix on 0.2.4.2-alpha.
21538   o Security features:
21539     - Switch to a completely time-invariant approach for picking nodes
21540       weighted by bandwidth. Our old approach would run through the
21541       part of the loop after it had made its choice slightly slower
21542       than it ran through the part of the loop before it had made its
21543       choice. Addresses ticket 6538.
21544     - Disable the use of Guard nodes when in Tor2WebMode. Guard usage
21545       by tor2web clients allows hidden services to identify tor2web
21546       clients through their repeated selection of the same rendezvous
21547       and introduction point circuit endpoints (their guards). Resolves
21548       ticket 6888.
21550   o Minor features:
21551     - Enable Tor to read configuration, state, and key information from
21552       a FIFO. Previously Tor would only read from files with a positive
21553       stat.st_size. Code from meejah; fixes bug 6044.
21555   o Minor bugfixes:
21556     - Correct file sizes when reading binary files on Cygwin, to avoid
21557       a bug where Tor would fail to read its state file. Fixes bug 6844;
21558       bugfix on 0.1.2.7-alpha.
21559     - Correctly handle votes with more than 31 flags. Fixes bug 6853;
21560       bugfix on 0.2.0.3-alpha.
21561     - When complaining about a client port on a public address, log
21562       which address we're complaining about. Fixes bug 4020; bugfix on
21563       0.2.3.3-alpha. Patch by Tom Fitzhenry.
21564     - Convert an assert in the pathbias code to a log message. The assert
21565       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
21566       bugfix on 0.2.3.17-beta.
21567     - Our new buildsystem was overzealous about rebuilding manpages: it
21568       would rebuild them all whenever any one of them changed. Now our
21569       dependency checking should be correct. Fixes bug 6843; bugfix on
21570       0.2.4.1-alpha.
21571     - Don't do reachability testing over IPv6 unless AuthDirPublishIPv6
21572       is set. Fixes bug 6880. Bugfix on 0.2.4.1-alpha.
21573     - Correct log printout about which address family is preferred
21574       when connecting to a bridge with both an IPv4 and IPv6 OR port.
21575       Fixes bug 6884; bugfix on 0.2.4.1-alpha.
21577   o Minor bugfixes (code cleanliness):
21578     - Fix round_to_power_of_2() so it doesn't invoke undefined behavior
21579       with large values. This situation was untriggered, but nevertheless
21580       incorrect. Fixes bug 6831; bugfix on 0.2.0.1-alpha.
21581     - Reject consensus votes with more than 64 known-flags. We aren't even
21582       close to that limit yet, and our code doesn't handle it correctly.
21583       Fixes bug 6833; bugfix on 0.2.0.1-alpha.
21584     - Avoid undefined behavior when parsing the list of supported
21585       rendezvous/introduction protocols in a hidden service descriptor.
21586       Previously, Tor would have confused (as-yet-unused) protocol version
21587       numbers greater than 32 with lower ones on many platforms. Fixes
21588       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
21589     - Fix handling of rendezvous client authorization types over 8.
21590       Fixes bug 6861; bugfix on 0.2.1.5-alpha.
21591     - Fix building with older versions of GCC (2.95, for one) that don't
21592       like preprocessor directives inside macro arguments. Found by
21593       grarpamp. Fixes bug 6842; bugfix on 0.2.4.2-alpha.
21594     - Switch weighted node selection rule from using a list of doubles
21595       to using a list of int64_t. This change should make the process
21596       slightly easier to debug and maintain. Needed to finish ticket 6538.
21598   o Code simplification and refactoring:
21599     - Move the generic "config" code into a new file, and have "config.c"
21600       hold only torrc- and state-related code. Resolves ticket 6823.
21601     - Move the core of our "choose a weighted element at random" logic
21602       into its own function, and give it unit tests. Now the logic is
21603       testable, and a little less fragile too.
21604     - Removed the testing_since field of node_t, which hasn't been used
21605       for anything since 0.2.0.9-alpha.
21607   o Documentation fixes:
21608     - Clarify that hidden services are TCP only. Fixes bug 6024.
21609     - Resolve a typo in torrc.sample.in. Fixes bug 6819; bugfix on
21610       0.2.3.14-alpha.
21613 Changes in version 0.2.3.22-rc - 2012-09-11
21614   Tor 0.2.3.22-rc fixes another opportunity for a remotely triggerable
21615   assertion.
21617   o Security fixes:
21618     - Fix an assertion failure in tor_timegm() that could be triggered
21619       by a badly formatted directory object. Bug found by fuzzing with
21620       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
21622   o Minor bugfixes:
21623     - Avoid segfault when starting up having run with an extremely old
21624       version of Tor and parsing its state file. Fixes bug 6801; bugfix
21625       on 0.2.2.23-alpha.
21628 Changes in version 0.2.2.39 - 2012-09-11
21629   Tor 0.2.2.39 fixes two more opportunities for remotely triggerable
21630   assertions.
21632   o Security fixes:
21633     - Fix an assertion failure in tor_timegm() that could be triggered
21634       by a badly formatted directory object. Bug found by fuzzing with
21635       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
21636     - Do not crash when comparing an address with port value 0 to an
21637       address policy. This bug could have been used to cause a remote
21638       assertion failure by or against directory authorities, or to
21639       allow some applications to crash clients. Fixes bug 6690; bugfix
21640       on 0.2.1.10-alpha.
21643 Changes in version 0.2.4.2-alpha - 2012-09-10
21644   Tor 0.2.4.2-alpha enables port forwarding for pluggable transports,
21645   raises the default rate limiting even more, and makes the bootstrapping
21646   log messages less noisy.
21648   o Major features:
21649     - Automatically forward the TCP ports of pluggable transport
21650       proxies using tor-fw-helper if PortForwarding is enabled. Implements
21651       ticket 4567.
21653   o Major bugfixes:
21654     - Raise the default BandwidthRate/BandwidthBurst values from 5MB/10MB
21655       to 1GB/1GB. The previous defaults were intended to be "basically
21656       infinite", but it turns out they're now limiting our 100mbit+
21657       relays and bridges. Fixes bug 6605; bugfix on 0.2.0.10-alpha (the
21658       last time we raised it).
21660   o Minor features:
21661     - Detect when we're running with a version of OpenSSL other than the
21662       one we compiled with. This has occasionally given people hard-to-
21663       track-down errors.
21664     - Log fewer lines at level "notice" about our OpenSSL and Libevent
21665       versions and capabilities when everything is going right. Resolves
21666       part of ticket 6736.
21667     - Directory authorities no long accept descriptors for any version of
21668       Tor before 0.2.2.35, or for any 0.2.3 release before 0.2.3.10-alpha.
21669       These versions are insecure, unsupported, or both. Implements
21670       ticket 6789.
21672   o Minor bugfixes:
21673     - Rename the (internal-use-only) UsingTestingNetworkDefaults option
21674       to start with a triple-underscore so the controller won't touch it.
21675       Patch by Meejah. Fixes bug 3155. Bugfix on 0.2.2.23-alpha.
21676     - Avoid segfault when starting up having run with an extremely old
21677       version of Tor and parsing its state file. Fixes bug 6801; bugfix
21678       on 0.2.2.23-alpha.
21679     - Rename the (testing-use-only) _UseFilteringSSLBufferevents option
21680       so it doesn't start with _. Fixes bug 3155. Bugfix on 0.2.3.1-alpha.
21681     - Don't follow the NULL pointer if microdescriptor generation fails.
21682       (This does not appear to be triggerable, but it's best to be safe.)
21683       Found by "f. tp.". Fixes bug 6797; bugfix on 0.2.4.1-alpha.
21684     - Fix mis-declared dependencies on src/common/crypto.c and
21685       src/or/tor_main.c that could break out-of-tree builds under some
21686       circumstances. Fixes bug 6778; bugfix on 0.2.4.1-alpha.
21687     - Avoid a warning when building common_sha1.i out of tree. Fixes bug
21688       6778; bugfix on 0.2.4.1-alpha.
21689     - Fix a harmless (in this case) build warning for implicitly
21690       converting a strlen() to an int. Bugfix on 0.2.4.1-alpha.
21692   o Removed features:
21693     - Now that all versions before 0.2.2.x are disallowed, we no longer
21694       need to work around their missing features. Thus we can remove a
21695       bunch of compatibility code.
21697   o Code refactoring:
21698     - Tweak tor-fw-helper to accept an arbitrary amount of arbitrary
21699       TCP ports to forward. In the past it only accepted two ports:
21700       the ORPort and the DirPort.
21703 Changes in version 0.2.4.1-alpha - 2012-09-05
21704   Tor 0.2.4.1-alpha lets bridges publish their pluggable transports to
21705   bridgedb; lets relays use IPv6 addresses and directory authorities
21706   advertise them; and switches to a cleaner build interface.
21708   This is the first alpha release in a new series, so expect there to
21709   be bugs. Users who would rather test out a more stable branch should
21710   stay with 0.2.3.x for now.
21712   o Major features (bridges):
21713     - Bridges now report the pluggable transports they support to the
21714       bridge authority, so it can pass the supported transports on to
21715       bridgedb and/or eventually do reachability testing. Implements
21716       ticket 3589.
21718   o Major features (IPv6):
21719     - Bridge authorities now accept IPv6 bridge addresses and include
21720       them in network status documents. Implements ticket 5534.
21721     - Clients who set "ClientUseIPv6 1" may connect to entry nodes over
21722       IPv6. Set "ClientPreferIPv6ORPort 1" to make this even more likely
21723       to happen. Implements ticket 5535.
21724     - All kind of relays, not just bridges, can now advertise an IPv6
21725       OR port. Implements ticket 6362.
21726     - Directory authorities vote on IPv6 OR ports using the new consensus
21727       method 14. Implements ticket 6363.
21729   o Major features (build):
21730     - Switch to a nonrecursive Makefile structure. Now instead of each
21731       Makefile.am invoking other Makefile.am's, there is a master
21732       Makefile.am that includes the others. This change makes our build
21733       process slightly more maintainable, and improves parallelism for
21734       building with make -j. Original patch by Stewart Smith; various
21735       fixes by Jim Meyering.
21736     - Where available, we now use automake's "silent" make rules by
21737       default, so that warnings are easier to spot. You can get the old
21738       behavior with "make V=1". Patch by Stewart Smith for ticket 6522.
21740   o Minor features (code security and spec conformance):
21741     - Clear keys and key-derived material left on the stack in
21742       rendservice.c and rendclient.c. Check return value of
21743       crypto_pk_write_private_key_to_string() in rend_service_load_keys().
21744       These fixes should make us more forward-secure against cold-boot
21745       attacks and the like. Fixes bug 2385.
21746     - Reject EXTEND cells sent to nonexistent streams. According to the
21747       spec, an EXTEND cell sent to _any_ nonzero stream ID is invalid, but
21748       we were only checking for stream IDs that were currently in use.
21749       Found while hunting for more instances of bug 6271. Bugfix on
21750       0.0.2pre8, which introduced incremental circuit construction.
21752   o Minor features (streamlining);
21753     - No longer include the "opt" prefix when generating routerinfos
21754       or v2 directories: it has been needless since Tor 0.1.2. Closes
21755       ticket 5124.
21756     - Remove some now-needless code that tried to aggressively flush
21757       OR connections as data was added to them. Since 0.2.0.1-alpha, our
21758       cell queue logic has saved us from the failure mode that this code
21759       was supposed to prevent. Removing this code will limit the number
21760       of baroque control flow paths through Tor's network logic. Reported
21761       pseudonymously on IRC. Fixes bug 6468; bugfix on 0.2.0.1-alpha.
21763   o Minor features (controller):
21764     - Add a "GETINFO signal/names" control port command. Implements
21765       ticket 3842.
21766     - Provide default values for all options via "GETINFO config/defaults".
21767       Implements ticket 4971.
21769   o Minor features (IPv6):
21770     - New config option "AuthDirHasIPv6Connectivity 1" that directory
21771       authorities should set if they have IPv6 connectivity and want to
21772       do reachability tests for IPv6 relays. Implements feature 5974.
21773     - A relay with an IPv6 OR port now sends that address in NETINFO
21774       cells (in addition to its other address). Implements ticket 6364.
21776   o Minor features (log messages):
21777     - Omit the first heartbeat log message, because it never has anything
21778       useful to say, and it clutters up the bootstrapping messages.
21779       Resolves ticket 6758.
21780     - Don't log about reloading the microdescriptor cache at startup. Our
21781       bootstrap warnings are supposed to tell the user when there's a
21782       problem, and our bootstrap notices say when there isn't. Resolves
21783       ticket 6759; bugfix on 0.2.2.6-alpha.
21784     - Don't log "I learned some more directory information" when we're
21785       reading cached directory information. Reserve it for when new
21786       directory information arrives in response to a fetch. Resolves
21787       ticket 6760.
21788     - Prevent rounding error in path bias counts when scaling
21789       them down, and use the correct scale factor default. Also demote
21790       some path bias related log messages down a level and make others
21791       less scary sounding. Fixes bug 6647. Bugfix against 0.2.3.17-beta.
21792     - We no longer warn so much when generating manpages from their
21793       asciidoc source.
21795   o Code simplifications and refactoring:
21796     - Enhance our internal sscanf replacement so that we can eliminate
21797       the last remaining uses of the system sscanf. (Though those uses
21798       of sscanf were safe, sscanf itself is generally error prone, so
21799       we want to eliminate when we can.) Fixes ticket 4195 and Coverity
21800       CID 448.
21801     - Move ipv6_preferred from routerinfo_t to node_t. Addresses bug 4620.
21802     - Move last_reachable and testing_since from routerinfo_t to node_t.
21803       Implements ticket 5529.
21804     - Add replaycache_t structure, functions and unit tests, then refactor
21805       rend_service_introduce() to be more clear to read, improve, debug,
21806       and test. Resolves bug 6177.
21807     - Finally remove support for malloc_good_size and malloc_usable_size.
21808       We had hoped that these functions would let us eke a little more
21809       memory out of our malloc implementation. Unfortunately, the only
21810       implementations that provided these functions are also ones that
21811       are already efficient about not overallocation: they never got us
21812       more than 7 or so bytes per allocation. Removing them saves us a
21813       little code complexity and a nontrivial amount of build complexity.
21815   o New requirements:
21816     - Tor maintainers now require Automake version 1.9 or later to build
21817       Tor from the Git repository. (Automake is not required when building
21818       from a source distribution.)
21821 Changes in version 0.2.3.21-rc - 2012-09-05
21822   Tor 0.2.3.21-rc is the fourth release candidate for the Tor 0.2.3.x
21823   series. It fixes a trio of potential security bugs, fixes a bug where
21824   we were leaving some of the fast relays out of the microdescriptor
21825   consensus, resumes interpreting "ORPort 0" and "DirPort 0" correctly,
21826   and cleans up other smaller issues.
21828   o Major bugfixes (security):
21829     - Tear down the circuit if we get an unexpected SENDME cell. Clients
21830       could use this trick to make their circuits receive cells faster
21831       than our flow control would have allowed, or to gum up the network,
21832       or possibly to do targeted memory denial-of-service attacks on
21833       entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor --
21834       from July 2002, before the release of Tor 0.0.0. We had committed
21835       this patch previously, but we had to revert it because of bug 6271.
21836       Now that 6271 is fixed, this patch appears to work.
21837     - Reject any attempt to extend to an internal address. Without
21838       this fix, a router could be used to probe addresses on an internal
21839       network to see whether they were accepting connections. Fixes bug
21840       6710; bugfix on 0.0.8pre1.
21841     - Do not crash when comparing an address with port value 0 to an
21842       address policy. This bug could have been used to cause a remote
21843       assertion failure by or against directory authorities, or to
21844       allow some applications to crash clients. Fixes bug 6690; bugfix
21845       on 0.2.1.10-alpha.
21847   o Major bugfixes:
21848     - Remove the upper bound on microdescriptor length. We were hitting
21849       the limit for routers with complex exit policies or family
21850       declarations, causing clients to not use them. Fixes the first
21851       piece of bug 6404; fix on 0.2.2.6-alpha.
21852     - Detect "ORPort 0" as meaning, uniformly, that we're not running
21853       as a relay. Previously, some of our code would treat the presence
21854       of any ORPort line as meaning that we should act like a relay,
21855       even though our new listener code would correctly not open any
21856       ORPorts for ORPort 0. Similar bugs in other Port options are also
21857       fixed. Fixes the first half of bug 6507; bugfix on 0.2.3.3-alpha.
21859   o Minor bugfixes:
21860     - Avoid a pair of double-free and use-after-mark bugs that can
21861       occur with certain timings in canceled and re-received DNS
21862       requests. Fixes bug 6472; bugfix on 0.0.7rc1.
21863     - Fix build and 64-bit compile warnings from --enable-openbsd-malloc.
21864       Fixes bug 6379. Bugfix on 0.2.0.20-rc.
21865     - Allow one-hop directory fetching circuits the full "circuit build
21866       timeout" period, rather than just half of it, before failing them
21867       and marking the relay down. This fix should help reduce cases where
21868       clients declare relays (or worse, bridges) unreachable because
21869       the TLS handshake takes a few seconds to complete. Fixes bug 6743;
21870       bugfix on 0.2.2.2-alpha, where we changed the timeout from a static
21871       30 seconds.
21872     - Authorities no longer include any router in their microdescriptor
21873       consensuses for which they couldn't generate or agree on a
21874       microdescriptor. Fixes the second piece of bug 6404; fix on
21875       0.2.2.6-alpha.
21876     - Detect and reject attempts to specify both "FooPort" and
21877       "FooPort 0" in the same configuration domain. (It's still okay
21878       to have a FooPort in your configuration file, and use "FooPort 0"
21879       on the command line to disable it.) Fixes the second half of bug
21880       6507; bugfix on 0.2.3.3-alpha.
21881     - Make wildcarded addresses (that is, ones beginning with "*.") work
21882       when provided via the controller's MapAddress command. Previously,
21883       they were accepted, but we never actually noticed that they were
21884       wildcards. Fixes bug 6244; bugfix on 0.2.3.9-alpha.
21885     - Avoid crashing on a malformed state file where EntryGuardPathBias
21886       precedes EntryGuard. Fix for bug 6774; bugfix on 0.2.3.17-beta.
21887     - Add a (probably redundant) memory clear between iterations of
21888       the router status voting loop, to prevent future coding errors
21889       where data might leak between iterations of the loop. Resolves
21890       ticket 6514.
21892   o Minor bugfixes (log messages):
21893     - Downgrade "set buildtimeout to low value" messages to "info"
21894       severity; they were never an actual problem, there was never
21895       anything reasonable to do about them, and they tended to spam logs
21896       from time to time. Fixes bug 6251; bugfix on 0.2.2.2-alpha.
21897     - Downgrade path-bias warning messages to "info". We'll try to get
21898       them working better in 0.2.4. Add internal circuit construction
21899       state to protect against the noisy warn message "Unexpectedly high
21900       circuit_successes". Also add some additional rate-limited notice
21901       messages to help determine the root cause of the warn. Fixes bug
21902       6475. Bugfix against 0.2.3.17-beta.
21903     - Move log message when unable to find a microdesc in a routerstatus
21904       entry to parse time. Previously we'd spam this warning every time
21905       we tried to figure out which microdescriptors to download. Fixes
21906       the third piece of bug 6404; fix on 0.2.3.18-rc.
21908   o Minor features:
21909     - Consider new, removed or changed IPv6 OR ports a non-cosmetic
21910       change when the authority is deciding whether to accept a newly
21911       uploaded descriptor. Implements ticket 6423.
21912     - Add missing documentation for consensus and microdesc files.
21913       Resolves ticket 6732.
21916 Changes in version 0.2.2.38 - 2012-08-12
21917   Tor 0.2.2.38 fixes a remotely triggerable crash bug, and fixes a timing
21918   attack that could in theory leak path information.
21920   o Security fixes:
21921     - Avoid an uninitialized memory read when reading a vote or consensus
21922       document that has an unrecognized flavor name. This read could
21923       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
21924     - Try to leak less information about what relays a client is
21925       choosing to a side-channel attacker. Previously, a Tor client would
21926       stop iterating through the list of available relays as soon as it
21927       had chosen one, thus finishing a little earlier when it picked
21928       a router earlier in the list. If an attacker can recover this
21929       timing information (nontrivial but not proven to be impossible),
21930       they could learn some coarse-grained information about which relays
21931       a client was picking (middle nodes in particular are likelier to
21932       be affected than exits). The timing attack might be mitigated by
21933       other factors (see bug 6537 for some discussion), but it's best
21934       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
21937 Changes in version 0.2.3.20-rc - 2012-08-05
21938   Tor 0.2.3.20-rc is the third release candidate for the Tor 0.2.3.x
21939   series. It fixes a pair of code security bugs and a potential anonymity
21940   issue, updates our RPM spec files, and cleans up other smaller issues.
21942   o Security fixes:
21943     - Avoid read-from-freed-memory and double-free bugs that could occur
21944       when a DNS request fails while launching it. Fixes bug 6480;
21945       bugfix on 0.2.0.1-alpha.
21946     - Avoid an uninitialized memory read when reading a vote or consensus
21947       document that has an unrecognized flavor name. This read could
21948       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
21949     - Try to leak less information about what relays a client is
21950       choosing to a side-channel attacker. Previously, a Tor client would
21951       stop iterating through the list of available relays as soon as it
21952       had chosen one, thus finishing a little earlier when it picked
21953       a router earlier in the list. If an attacker can recover this
21954       timing information (nontrivial but not proven to be impossible),
21955       they could learn some coarse-grained information about which relays
21956       a client was picking (middle nodes in particular are likelier to
21957       be affected than exits). The timing attack might be mitigated by
21958       other factors (see bug 6537 for some discussion), but it's best
21959       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
21961   o Minor features:
21962     - Try to make the warning when giving an obsolete SOCKSListenAddress
21963       a little more useful.
21964     - Terminate active server managed proxies if Tor stops being a
21965       relay. Addresses parts of bug 6274; bugfix on 0.2.3.6-alpha.
21966     - Provide a better error message about possible OSX Asciidoc failure
21967       reasons. Fixes bug 6436.
21968     - Warn when Tor is configured to use accounting in a way that can
21969       link a hidden service to some other hidden service or public
21970       address. Resolves ticket 6490.
21972   o Minor bugfixes:
21973     - Check return value of fputs() when writing authority certificate
21974       file. Fixes Coverity issue 709056; bugfix on 0.2.0.1-alpha.
21975     - Ignore ServerTransportPlugin lines when Tor is not configured as
21976       a relay. Fixes bug 6274; bugfix on 0.2.3.6-alpha.
21977     - When disabling guards for having too high a proportion of failed
21978       circuits, make sure to look at each guard. Fixes bug 6397; bugfix
21979       on 0.2.3.17-beta.
21981   o Packaging (RPM):
21982     - Update our default RPM spec files to work with mock and rpmbuild
21983       on RHEL/Fedora. They have an updated set of dependencies and
21984       conflicts, a fix for an ancient typo when creating the "_tor"
21985       user, and better instructions. Thanks to Ondrej Mikle for the
21986       patch series. Fixes bug 6043.
21988   o Testing:
21989     - Make it possible to set the TestingTorNetwork configuration
21990       option using AlternateDirAuthority and AlternateBridgeAuthority
21991       as an alternative to setting DirServer. Addresses ticket 6377.
21993   o Documentation:
21994     - Clarify the documentation for the Alternate*Authority options.
21995       Fixes bug 6387.
21996     - Fix some typos in the manpages. Patch from A. Costa. Fixes bug 6500.
21998   o Code simplification and refactoring:
21999     - Do not use SMARTLIST_FOREACH for any loop whose body exceeds
22000       10 lines. Also, don't nest them. Doing so in the past has
22001       led to hard-to-debug code. The new style is to use the
22002       SMARTLIST_FOREACH_{BEGIN,END} pair. Addresses issue 6400.
22005 Changes in version 0.2.3.19-rc - 2012-07-06
22006   Tor 0.2.3.19-rc is the second release candidate for the Tor 0.2.3.x
22007   series. It fixes the compile on Windows, reverts to a GeoIP database
22008   that isn't as broken, and fixes a flow control bug that has been around
22009   since the beginning of Tor.
22011   o Major bugfixes:
22012     - Fix a bug handling SENDME cells on nonexistent streams that could
22013       result in bizarre window values. Report and patch contributed
22014       pseudonymously. Fixes part of bug 6271. This bug was introduced
22015       before the first Tor release, in svn commit r152.
22016     - Revert to the May 1 2012 Maxmind GeoLite Country database. In the
22017       June 2012 database, Maxmind marked many Tor relays as country "A1",
22018       which will cause risky behavior for clients that set EntryNodes
22019       or ExitNodes. Addresses bug 6334; bugfix on 0.2.3.17-beta.
22020     - Instead of ENOBUFS on Windows, say WSAENOBUFS. Fixes compilation
22021       on Windows. Fixes bug 6296; bugfix on 0.2.3.18-rc.
22023   o Minor bugfixes:
22024     - Fix wrong TCP port range in parse_port_range(). Fixes bug 6218;
22025       bugfix on 0.2.1.10-alpha.
22028 Changes in version 0.2.3.18-rc - 2012-06-28
22029   Tor 0.2.3.18-rc is the first release candidate for the Tor 0.2.3.x
22030   series. It fixes a few smaller bugs, but generally appears stable.
22031   Please test it and let us know whether it is!
22033   o Major bugfixes:
22034     - Allow wildcarded mapaddress targets to be specified on the
22035       controlport. Partially fixes bug 6244; bugfix on 0.2.3.9-alpha.
22036     - Make our linker option detection code more robust against linkers
22037       such as on FreeBSD 8, where a bad combination of options completes
22038       successfully but makes an unrunnable binary. Fixes bug 6173;
22039       bugfix on 0.2.3.17-beta.
22041   o Minor bugfixes (on 0.2.2.x and earlier):
22042     - Avoid a false positive in the util/threads unit test by increasing
22043       the maximum timeout time. Fixes bug 6227; bugfix on 0.2.0.4-alpha.
22044     - Replace "Sending publish request" log messages with "Launching
22045       upload", so that they no longer confusingly imply that we're
22046       sending something to a directory we might not even be connected
22047       to yet. Fixes bug 3311; bugfix on 0.2.0.10-alpha.
22048     - Make sure to set *socket_error in all error cases in
22049       connection_connect(), so it can't produce a warning about
22050       errno being zero from errno_to_orconn_end_reason(). Bugfix on
22051       0.2.1.1-alpha; resolves ticket 6028.
22052     - Downgrade "Got a certificate, but we already have it" log messages
22053       from warning to info, except when we're a dirauth. Fixes bug 5238;
22054       bugfix on 0.2.1.7-alpha.
22055     - When checking for requested signatures on the latest consensus
22056       before serving it to a client, make sure to check the right
22057       consensus flavor. Bugfix on 0.2.2.6-alpha.
22058     - Downgrade "eventdns rejected address" message to LOG_PROTOCOL_WARN.
22059       Fixes bug 5932; bugfix on 0.2.2.7-alpha.
22061   o Minor bugfixes (on 0.2.3.x):
22062     - Make format_helper_exit_status() avoid unnecessary space padding
22063       and stop confusing log_from_pipe(). Fixes ticket 5557; bugfix
22064       on 0.2.3.1-alpha.
22065     - Downgrade a message about cleaning the microdescriptor cache to
22066       "info" from "notice". Fixes bug 6238; bugfix on 0.2.3.1-alpha.
22067     - Log a BUG message at severity INFO if we have a networkstatus with
22068       a missing entry for some microdescriptor. Continues on a patch
22069       to 0.2.3.2-alpha.
22070     - Improve the log message when a managed proxy fails to launch. Fixes
22071       bug 5099; bugfix on 0.2.3.6-alpha.
22072     - Don't do DNS lookups when parsing corrupted managed proxy protocol
22073       messages. Fixes bug 6226; bugfix on 0.2.3.6-alpha.
22074     - When formatting wildcarded address mappings for the controller,
22075       be sure to include "*." as appropriate. Partially fixes bug 6244;
22076       bugfix on 0.2.3.9-alpha.
22077     - Avoid a warning caused by using strcspn() from glibc with clang 3.0.
22078       Bugfix on 0.2.3.13-alpha.
22079     - Stop logging messages about running with circuit timeout learning
22080       enabled at severity LD_BUG. Fixes bug 6169; bugfix on 0.2.3.17-beta.
22081     - Disable a spurious warning about reading on a marked and flushing
22082       connection. We shouldn't be doing that, but apparently we
22083       sometimes do. Fixes bug 6203; bugfix on 0.2.3.17-beta.
22084     - Fix a bug that stopped AllowDotExit from working on addresses
22085       that had an entry in the DNS cache. Fixes bug 6211; bugfix on
22086       0.2.3.17-beta.
22088   o Code simplification, refactoring, unit tests:
22089     - Move tor_gettimeofday_cached() into compat_libevent.c, and use
22090       Libevent's notion of cached time when possible.
22091     - Remove duplicate code for invoking getrlimit() from control.c.
22092     - Add a unit test for the environment_variable_names_equal function.
22094   o Documentation:
22095     - Document the --defaults-torrc option, and the new (in 0.2.3)
22096       semantics for overriding, extending, and clearing lists of
22097       options. Closes bug 4748.
22100 Changes in version 0.2.3.17-beta - 2012-06-15
22101   Tor 0.2.3.17-beta enables compiler and linker hardening by default,
22102   gets our TLS handshake back on track for being able to blend in with
22103   Firefox, fixes a big bug in 0.2.3.16-alpha that broke Tor's interaction
22104   with Vidalia, and otherwise continues to get us closer to a release
22105   candidate.
22107   o Major features:
22108     - Enable gcc and ld hardening by default. Resolves ticket 5210.
22109     - Update TLS cipher list to match Firefox 8 and later. Resolves
22110       ticket 4744.
22111     - Implement the client side of proposal 198: remove support for
22112       clients falsely claiming to support standard ciphersuites that
22113       they can actually provide. As of modern OpenSSL versions, it's not
22114       necessary to fake any standard ciphersuite, and doing so prevents
22115       us from using better ciphersuites in the future, since servers
22116       can't know whether an advertised ciphersuite is really supported or
22117       not. Some hosts -- notably, ones with very old versions of OpenSSL
22118       or where OpenSSL has been built with ECC disabled -- will stand
22119       out because of this change; TBB users should not be affected.
22121   o Major bugfixes:
22122     - Change the default value for DynamicDHGroups (introduced in
22123       0.2.3.9-alpha) to 0. This feature can make Tor relays less
22124       identifiable by their use of the mod_ssl DH group, but at
22125       the cost of some usability (#4721) and bridge tracing (#6087)
22126       regressions. Resolves ticket 5598.
22127     - Send a CRLF at the end of each STATUS_* control protocol event. This
22128       bug tickled a bug in Vidalia which would make it freeze. Fixes
22129       bug 6094; bugfix on 0.2.3.16-alpha.
22131   o Minor bugfixes:
22132     - Disable writing on marked-for-close connections when they are
22133       blocked on bandwidth, to prevent busy-looping in Libevent. Fixes
22134       bug 5263; bugfix on 0.0.2pre13, where we first added a special
22135       case for flushing marked connections.
22136     - Detect SSL handshake even when the initial attempt to write the
22137       server hello fails. Fixes bug 4592; bugfix on 0.2.0.13-alpha.
22138     - Change the AllowDotExit rules so they should actually work.
22139       We now enforce AllowDotExit only immediately after receiving an
22140       address via SOCKS or DNSPort: other sources are free to provide
22141       .exit addresses after the resolution occurs. Fixes bug 3940;
22142       bugfix on 0.2.2.1-alpha.
22143     - Fix a (harmless) integer overflow in cell statistics reported by
22144       some fast relays. Fixes bug 5849; bugfix on 0.2.2.1-alpha.
22145     - Make sure circuitbuild.c checks LearnCircuitBuildTimeout in all the
22146       right places and never depends on the consensus parameters or
22147       computes adaptive timeouts when it is disabled. Fixes bug 5049;
22148       bugfix on 0.2.2.14-alpha.
22149     - When building Tor on Windows with -DUNICODE (not default), ensure
22150       that error messages, filenames, and DNS server names are always
22151       NUL-terminated when we convert them to a single-byte encoding.
22152       Fixes bug 5909; bugfix on 0.2.2.16-alpha.
22153     - Make Tor build correctly again with -DUNICODE -D_UNICODE defined.
22154       Fixes bug 6097; bugfix on 0.2.2.16-alpha.
22155     - Fix an edge case where TestingTorNetwork is set but the authorities
22156       and relays all have an uptime of zero, where the private Tor network
22157       could briefly lack support for hidden services. Fixes bug 3886;
22158       bugfix on 0.2.2.18-alpha.
22159     - Correct the manpage's descriptions for the default values of
22160       DirReqStatistics and ExtraInfoStatistics. Fixes bug 2865; bugfix
22161       on 0.2.3.1-alpha.
22162     - Fix the documentation for the --hush and --quiet command line
22163       options, which changed their behavior back in 0.2.3.3-alpha.
22164     - Fix compilation warning with clang 3.1. Fixes bug 6141; bugfix on
22165       0.2.3.11-alpha.
22167   o Minor features:
22168     - Rate-limit the "Weighted bandwidth is 0.000000" message, and add
22169       more information to it, so that we can track it down in case it
22170       returns again. Mitigates bug 5235.
22171     - Check CircuitBuildTimeout and LearnCircuitBuildTimeout in
22172       options_validate(); warn if LearnCircuitBuildTimeout is disabled and
22173       CircuitBuildTimeout is set unreasonably low. Resolves ticket 5452.
22174     - Warn the user when HTTPProxy, but no other proxy type, is
22175       configured. This can cause surprising behavior: it doesn't send
22176       all of Tor's traffic over the HTTPProxy -- it sends unencrypted
22177       directory traffic only. Resolves ticket 4663.
22178     - Issue a notice if a guard completes less than 40% of your circuits.
22179       Threshold is configurable by torrc option PathBiasNoticeRate and
22180       consensus parameter pb_noticepct. There is additional, off-by-
22181       default code to disable guards which fail too many circuits.
22182       Addresses ticket 5458.
22183     - Update to the June 6 2012 Maxmind GeoLite Country database.
22185   o Code simplifications and refactoring:
22186     - Remove validate_pluggable_transports_config(): its warning
22187       message is now handled by connection_or_connect().
22190 Changes in version 0.2.2.37 - 2012-06-06
22191   Tor 0.2.2.37 introduces a workaround for a critical renegotiation
22192   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
22193   currently).
22195   o Major bugfixes:
22196     - Work around a bug in OpenSSL that broke renegotiation with TLS
22197       1.1 and TLS 1.2. Without this workaround, all attempts to speak
22198       the v2 Tor connection protocol when both sides were using OpenSSL
22199       1.0.1 would fail. Resolves ticket 6033.
22200     - When waiting for a client to renegotiate, don't allow it to add
22201       any bytes to the input buffer. This fixes a potential DoS issue.
22202       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
22203     - Fix an edge case where if we fetch or publish a hidden service
22204       descriptor, we might build a 4-hop circuit and then use that circuit
22205       for exiting afterwards -- even if the new last hop doesn't obey our
22206       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
22208   o Minor bugfixes:
22209     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
22210       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
22212   o Minor features:
22213     - Tell GCC and Clang to check for any errors in format strings passed
22214       to the tor_v*(print|scan)f functions.
22217 Changes in version 0.2.3.16-alpha - 2012-06-05
22218   Tor 0.2.3.16-alpha introduces a workaround for a critical renegotiation
22219   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
22220   currently). It also fixes a variety of smaller bugs and other cleanups
22221   that get us closer to a release candidate.
22223   o Major bugfixes (general):
22224     - Work around a bug in OpenSSL that broke renegotiation with TLS
22225       1.1 and TLS 1.2. Without this workaround, all attempts to speak
22226       the v2 Tor connection protocol when both sides were using OpenSSL
22227       1.0.1 would fail. Resolves ticket 6033.
22228     - When waiting for a client to renegotiate, don't allow it to add
22229       any bytes to the input buffer. This fixes a potential DoS issue.
22230       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
22231     - Pass correct OR address to managed proxies (like obfsproxy),
22232       even when ORListenAddress is used. Fixes bug 4865; bugfix on
22233       0.2.3.9-alpha.
22234     - The advertised platform of a router now includes only its operating
22235       system's name (e.g., "Linux", "Darwin", "Windows 7"), and not its
22236       service pack level (for Windows) or its CPU architecture (for Unix).
22237       We also no longer include the "git-XYZ" tag in the version. Resolves
22238       part of bug 2988.
22240   o Major bugfixes (clients):
22241     - If we are unable to find any exit that supports our predicted ports,
22242       stop calling them predicted, so that we don't loop and build
22243       hopeless circuits indefinitely. Fixes bug 3296; bugfix on 0.0.9pre6,
22244       which introduced predicted ports.
22245     - Fix an edge case where if we fetch or publish a hidden service
22246       descriptor, we might build a 4-hop circuit and then use that circuit
22247       for exiting afterwards -- even if the new last hop doesn't obey our
22248       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
22249     - Check at each new consensus whether our entry guards were picked
22250       long enough ago that we should rotate them. Previously, we only
22251       did this check at startup, which could lead to us holding a guard
22252       indefinitely. Fixes bug 5380; bugfix on 0.2.1.14-rc.
22253     - When fetching a bridge descriptor from a bridge authority,
22254       always do so anonymously, whether we have been able to open
22255       circuits or not. Partial fix for bug 1938; bugfix on 0.2.0.7-alpha.
22256       This behavior makes it *safer* to use UpdateBridgesFromAuthority,
22257       but we'll need to wait for bug 6010 before it's actually usable.
22259   o Major bugfixes (directory authorities):
22260     - When computing weight parameters, behave more robustly in the
22261       presence of a bad bwweightscale value. Previously, the authorities
22262       would crash if they agreed on a sufficiently broken weight_scale
22263       value: now, they use a reasonable default and carry on. Partial
22264       fix for 5786; bugfix on 0.2.2.17-alpha.
22265     - Check more thoroughly to prevent a rogue authority from
22266       double-voting on any consensus directory parameter. Previously,
22267       authorities would crash in this case if the total number of
22268       votes for any parameter exceeded the number of active voters,
22269       but would let it pass otherwise. Partial fix for bug 5786; bugfix
22270       on 0.2.2.2-alpha.
22272   o Minor features:
22273     - Rate-limit log messages when asked to connect anonymously to
22274       a private address. When these hit, they tended to hit fast and
22275       often. Also, don't bother trying to connect to addresses that we
22276       are sure will resolve to 127.0.0.1: getting 127.0.0.1 in a directory
22277       reply makes us think we have been lied to, even when the address the
22278       client tried to connect to was "localhost." Resolves ticket 2822.
22279     - Allow packagers to insert an extra string in server descriptor
22280       platform lines by setting the preprocessor variable TOR_BUILD_TAG.
22281       Resolves the rest of ticket 2988.
22282     - Raise the threshold of server descriptors needed (75%) and exit
22283       server descriptors needed (50%) before we will declare ourselves
22284       bootstrapped. This will make clients start building circuits a
22285       little later, but makes the initially constructed circuits less
22286       skewed and less in conflict with further directory fetches. Fixes
22287       ticket 3196.
22288     - Close any connection that sends unrecognized junk before the
22289       handshake. Solves an issue noted in bug 4369.
22290     - Improve log messages about managed transports. Resolves ticket 5070.
22291     - Tag a bridge's descriptor as "never to be sent unencrypted".
22292       This shouldn't matter, since bridges don't open non-anonymous
22293       connections to the bridge authority and don't allow unencrypted
22294       directory connections from clients, but we might as well make
22295       sure. Closes bug 5139.
22296     - Expose our view of whether we have gone dormant to the controller,
22297       via a new "GETINFO dormant" value. Torbutton and other controllers
22298       can use this to avoid doing periodic requests through Tor while
22299       it's dormant (bug 4718). Fixes bug 5954.
22300     - Tell GCC and Clang to check for any errors in format strings passed
22301       to the tor_v*(print|scan)f functions.
22302     - Update to the May 1 2012 Maxmind GeoLite Country database.
22304   o Minor bugfixes (already included in 0.2.2.36):
22305     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
22306       Fixes bug 5346; bugfix on 0.0.8pre3.
22307     - Correct parsing of certain date types in parse_http_time().
22308       Without this patch, If-Modified-Since would behave
22309       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
22310       Esteban Manchado Velázques.
22311     - Make our number-parsing functions always treat too-large values
22312       as an error, even when those values exceed the width of the
22313       underlying type. Previously, if the caller provided these
22314       functions with minima or maxima set to the extreme values of the
22315       underlying integer type, these functions would return those
22316       values on overflow rather than treating overflow as an error.
22317       Fixes part of bug 5786; bugfix on 0.0.9.
22318     - If we hit the error case where routerlist_insert() replaces an
22319       existing (old) server descriptor, make sure to remove that
22320       server descriptor from the old_routers list. Fix related to bug
22321       1776. Bugfix on 0.2.2.18-alpha.
22322     - Clarify the behavior of MaxCircuitDirtiness with hidden service
22323       circuits. Fixes issue 5259.
22325   o Minor bugfixes (coding cleanup, on 0.2.2.x and earlier):
22326     - Prevent a null-pointer dereference when receiving a data cell
22327       for a nonexistent stream when the circuit in question has an
22328       empty deliver window. We don't believe this is triggerable,
22329       since we don't currently allow deliver windows to become empty,
22330       but the logic is tricky enough that it's better to make the code
22331       robust. Fixes bug 5541; bugfix on 0.0.2pre14.
22332     - Fix a memory leak when trying to launch a DNS request when the
22333       network is disabled or the nameservers are unconfigurable. Fixes
22334       bug 5916; bugfix on Tor 0.1.2.1-alpha (for the unconfigurable
22335       nameserver case) and on 0.2.3.9-alpha (for the DisableNetwork case).
22336     - Don't hold a Windows file handle open for every file mapping;
22337       the file mapping handle is sufficient. Fixes bug 5951; bugfix on
22338       0.1.2.1-alpha.
22339     - Avoid O(n^2) performance characteristics when parsing a large
22340       extrainfo cache. Fixes bug 5828; bugfix on 0.2.0.1-alpha.
22341     - Format more doubles with %f, not %lf. Patch from grarpamp to make
22342       Tor build correctly on older BSDs again. Fixes bug 3894; bugfix on
22343       Tor 0.2.0.8-alpha.
22344     - Make our replacement implementation of strtok_r() compatible with
22345       the standard behavior of strtok_r(). Patch by nils. Fixes bug 5091;
22346       bugfix on 0.2.2.1-alpha.
22347     - Fix a NULL-pointer dereference on a badly formed
22348       SETCIRCUITPURPOSE command. Found by mikeyc. Fixes bug 5796;
22349       bugfix on 0.2.2.9-alpha.
22350     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
22351       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
22352     - Defensively refactor rend_mid_rendezvous() so that protocol
22353       violations and length checks happen in the beginning. Fixes
22354       bug 5645.
22355     - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so
22356       that IPv6 stuff will compile on MSVC, and compilation issues
22357       will be easier to track down. Fixes bug 5861.
22359   o Minor bugfixes (correctness, on 0.2.2.x and earlier):
22360     - Exit nodes now correctly report EADDRINUSE and EADDRNOTAVAIL as
22361       resource exhaustion, so that clients can adjust their load to
22362       try other exits. Fixes bug 4710; bugfix on 0.1.0.1-rc, which
22363       started using END_STREAM_REASON_RESOURCELIMIT.
22364     - Don't check for whether the address we're using for outbound
22365       connections has changed until after the outbound connection has
22366       completed. On Windows, getsockname() doesn't succeed until the
22367       connection is finished. Fixes bug 5374; bugfix on 0.1.1.14-alpha.
22368     - If the configuration tries to set MyFamily on a bridge, refuse to
22369       do so, and warn about the security implications. Fixes bug 4657;
22370       bugfix on 0.2.0.3-alpha.
22371     - If the client fails to set a reasonable set of ciphersuites
22372       during its v2 handshake renegotiation, allow the renegotiation to
22373       continue nevertheless (i.e. send all the required certificates).
22374       Fixes bug 4591; bugfix on 0.2.0.20-rc.
22375     - When we receive a SIGHUP and the controller __ReloadTorrcOnSIGHUP
22376       option is set to 0 (which Vidalia version 0.2.16 now does when
22377       a SAVECONF attempt fails), perform other actions that SIGHUP
22378       usually causes (like reopening the logs). Fixes bug 5095; bugfix
22379       on 0.2.1.9-alpha.
22380     - If we fail to write a microdescriptor to the disk cache, do not
22381       continue replacing the old microdescriptor file. Fixes bug 2954;
22382       bugfix on 0.2.2.6-alpha.
22383     - Exit nodes don't need to fetch certificates for authorities that
22384       they don't recognize; only directory authorities, bridges,
22385       and caches need to do that. Fixes part of bug 2297; bugfix on
22386       0.2.2.11-alpha.
22387     - Correctly handle checking the permissions on the parent
22388       directory of a control socket in the root directory. Bug found
22389       by Esteban Manchado Velázquez. Fixes bug 5089; bugfix on Tor
22390       0.2.2.26-beta.
22391     - When told to add a bridge with the same digest as a preexisting
22392       bridge but a different addr:port, change the addr:port as
22393       requested. Previously we would not notice the change. Fixes half
22394       of bug 5603; fix on 0.2.2.26-beta.
22395     - End AUTHCHALLENGE error messages (in the control protocol) with
22396       a CRLF. Fixes bug 5760; bugfix on 0.2.2.36 and 0.2.3.13-alpha.
22398   o Minor bugfixes (on 0.2.3.x):
22399     - Turn an assertion (that the number of handshakes received as a
22400       server is not < 1) into a warning. Fixes bug 4873; bugfix on
22401       0.2.3.1-alpha.
22402     - Format IPv4 addresses correctly in ADDRMAP events. (Previously,
22403       we had reversed them when the answer was cached.) Fixes bug
22404       5723; bugfix on 0.2.3.1-alpha.
22405     - Work correctly on Linux systems with accept4 support advertised in
22406       their headers, but without accept4 support in the kernel. Fix
22407       by murb. Fixes bug 5762; bugfix on 0.2.3.1-alpha.
22408     - When told to add a bridge with the same addr:port as a preexisting
22409       bridge but a different transport, change the transport as
22410       requested. Previously we would not notice the change. Fixes half
22411       of bug 5603; fix on 0.2.3.2-alpha.
22412     - Avoid a "double-reply" warning when replying to a SOCKS request
22413       with a parse error. Patch from Fabian Keil. Fixes bug 4108;
22414       bugfix on 0.2.3.4-alpha.
22415     - Fix a bug where a bridge authority crashes if it has seen no
22416       directory requests when it's time to write statistics to disk.
22417       Fixes bug 5891; bugfix on 0.2.3.6-alpha. Also fixes bug 5508 in
22418       a better way.
22419     - Don't try to open non-control listeners when DisableNetwork is set.
22420       Previously, we'd open all listeners, then immediately close them.
22421       Fixes bug 5604; bugfix on 0.2.3.9-alpha.
22422     - Don't abort the managed proxy protocol if the managed proxy
22423       sends us an unrecognized line; ignore it instead. Fixes bug
22424       5910; bugfix on 0.2.3.9-alpha.
22425     - Fix a compile warning in crypto.c when compiling with clang 3.1.
22426       Fixes bug 5969, bugfix on 0.2.3.9-alpha.
22427     - Fix a compilation issue on GNU Hurd, which doesn't have PATH_MAX.
22428       Fixes bug 5355; bugfix on 0.2.3.11-alpha.
22429     - Remove bogus definition of "_WIN32" from src/win32/orconfig.h, to
22430       unbreak the MSVC build. Fixes bug 5858; bugfix on 0.2.3.12-alpha.
22431     - Resolve numerous small warnings and build issues with MSVC. Resolves
22432       bug 5859.
22434   o Documentation fixes:
22435     - Improve the manual's documentation for the NT Service command-line
22436       options. Addresses ticket 3964.
22437     - Clarify SessionGroup documentation slightly; resolves ticket 5437.
22438     - Document the changes to the ORPort and DirPort options, and the
22439       fact that {OR/Dir}ListenAddress is now unnecessary (and
22440       therefore deprecated). Resolves ticket 5597.
22442   o Removed files:
22443     - Remove the torrc.bridge file: we don't use it for anything, and
22444       it had become badly desynchronized from torrc.sample. Resolves
22445       bug 5622.
22448 Changes in version 0.2.2.36 - 2012-05-24
22449   Tor 0.2.2.36 updates the addresses for two of the eight directory
22450   authorities, fixes some potential anonymity and security issues,
22451   and fixes several crash bugs.
22453   Tor 0.2.1.x has reached its end-of-life. Those Tor versions have many
22454   known flaws, and nobody should be using them. You should upgrade. If
22455   you're using a Linux or BSD and its packages are obsolete, stop using
22456   those packages and upgrade anyway.
22458   o Directory authority changes:
22459     - Change IP address for maatuska (v3 directory authority).
22460     - Change IP address for ides (v3 directory authority), and rename
22461       it to turtles.
22463   o Security fixes:
22464     - When building or running with any version of OpenSSL earlier
22465       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
22466       versions have a bug (CVE-2011-4576) in which their block cipher
22467       padding includes uninitialized data, potentially leaking sensitive
22468       information to any peer with whom they make a SSLv3 connection. Tor
22469       does not use SSL v3 by default, but a hostile client or server
22470       could force an SSLv3 connection in order to gain information that
22471       they shouldn't have been able to get. The best solution here is to
22472       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
22473       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
22474       to make sure that the bug can't happen.
22475     - Never use a bridge or a controller-supplied node as an exit, even
22476       if its exit policy allows it. Found by wanoskarnet. Fixes bug
22477       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
22478       and 0.2.0.3-alpha (for bridge-purpose descriptors).
22479     - Only build circuits if we have a sufficient threshold of the total
22480       descriptors that are marked in the consensus with the "Exit"
22481       flag. This mitigates an attack proposed by wanoskarnet, in which
22482       all of a client's bridges collude to restrict the exit nodes that
22483       the client knows about. Fixes bug 5343.
22484     - Provide controllers with a safer way to implement the cookie
22485       authentication mechanism. With the old method, if another locally
22486       running program could convince a controller that it was the Tor
22487       process, then that program could trick the controller into telling
22488       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
22489       authentication method uses a challenge-response approach to prevent
22490       this attack. Fixes bug 5185; implements proposal 193.
22492   o Major bugfixes:
22493     - Avoid logging uninitialized data when unable to decode a hidden
22494       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
22495     - Avoid a client-side assertion failure when receiving an INTRODUCE2
22496       cell on a general purpose circuit. Fixes bug 5644; bugfix on
22497       0.2.1.6-alpha.
22498     - Fix builds when the path to sed, openssl, or sha1sum contains
22499       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
22500       on 0.2.2.1-alpha.
22501     - Correct our replacements for the timeradd() and timersub() functions
22502       on platforms that lack them (for example, Windows). The timersub()
22503       function is used when expiring circuits, while timeradd() is
22504       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
22505       bugfix on 0.2.2.24-alpha.
22506     - Fix the SOCKET_OK test that we use to tell when socket
22507       creation fails so that it works on Win64. Fixes part of bug 4533;
22508       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
22510   o Minor bugfixes:
22511     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
22512       Fixes bug 5346; bugfix on 0.0.8pre3.
22513     - Make our number-parsing functions always treat too-large values
22514       as an error, even when those values exceed the width of the
22515       underlying type. Previously, if the caller provided these
22516       functions with minima or maxima set to the extreme values of the
22517       underlying integer type, these functions would return those
22518       values on overflow rather than treating overflow as an error.
22519       Fixes part of bug 5786; bugfix on 0.0.9.
22520     - Older Linux kernels erroneously respond to strange nmap behavior
22521       by having accept() return successfully with a zero-length
22522       socket. When this happens, just close the connection. Previously,
22523       we would try harder to learn the remote address: but there was
22524       no such remote address to learn, and our method for trying to
22525       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
22526       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
22527     - Correct parsing of certain date types in parse_http_time().
22528       Without this patch, If-Modified-Since would behave
22529       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
22530       Esteban Manchado Velázques.
22531     - Change the BridgePassword feature (part of the "bridge community"
22532       design, which is not yet implemented) to use a time-independent
22533       comparison. The old behavior might have allowed an adversary
22534       to use timing to guess the BridgePassword value. Fixes bug 5543;
22535       bugfix on 0.2.0.14-alpha.
22536     - Detect and reject certain misformed escape sequences in
22537       configuration values. Previously, these values would cause us
22538       to crash if received in a torrc file or over an authenticated
22539       control port. Bug found by Esteban Manchado Velázquez, and
22540       independently by Robert Connolly from Matta Consulting who further
22541       noted that it allows a post-authentication heap overflow. Patch
22542       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
22543       bugfix on 0.2.0.16-alpha.
22544     - Fix a compile warning when using the --enable-openbsd-malloc
22545       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
22546     - During configure, detect when we're building with clang version
22547       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
22548       CFLAGS. clang doesn't support them yet.
22549     - When sending an HTTP/1.1 proxy request, include a Host header.
22550       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
22551     - Fix a NULL-pointer dereference on a badly formed SETCIRCUITPURPOSE
22552       command. Found by mikeyc. Fixes bug 5796; bugfix on 0.2.2.9-alpha.
22553     - If we hit the error case where routerlist_insert() replaces an
22554       existing (old) server descriptor, make sure to remove that
22555       server descriptor from the old_routers list. Fix related to bug
22556       1776. Bugfix on 0.2.2.18-alpha.
22558   o Minor bugfixes (documentation and log messages):
22559     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
22560       Fixes bug 4856; bugfix on Tor 0.0.6.
22561     - Update "ClientOnly" man page entry to explain that there isn't
22562       really any point to messing with it. Resolves ticket 5005.
22563     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
22564       directory authority option (introduced in Tor 0.2.2.34).
22565     - Downgrade the "We're missing a certificate" message from notice
22566       to info: people kept mistaking it for a real problem, whereas it
22567       is seldom the problem even when we are failing to bootstrap. Fixes
22568       bug 5067; bugfix on 0.2.0.10-alpha.
22569     - Correctly spell "connect" in a log message on failure to create a
22570       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta.
22571     - Clarify the behavior of MaxCircuitDirtiness with hidden service
22572       circuits. Fixes issue 5259.
22574   o Minor features:
22575     - Directory authorities now reject versions of Tor older than
22576       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
22577       inclusive. These versions accounted for only a small fraction of
22578       the Tor network, and have numerous known security issues. Resolves
22579       issue 4788.
22580     - Update to the May 1 2012 Maxmind GeoLite Country database.
22582   o Feature removal:
22583     - When sending or relaying a RELAY_EARLY cell, we used to convert
22584       it to a RELAY cell if the connection was using the v1 link
22585       protocol. This was a workaround for older versions of Tor, which
22586       didn't handle RELAY_EARLY cells properly. Now that all supported
22587       versions can handle RELAY_EARLY cells, and now that we're enforcing
22588       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
22589       remove this workaround. Addresses bug 4786.
22592 Changes in version 0.2.3.15-alpha - 2012-04-30
22593   Tor 0.2.3.15-alpha fixes a variety of smaller bugs, including making
22594   the development branch build on Windows again.
22596   o Minor bugfixes (on 0.2.2.x and earlier):
22597     - Make sure that there are no unhandled pending TLS errors before
22598       reading from a TLS stream. We had checks in 0.1.0.3-rc, but
22599       lost them in 0.1.0.5-rc when we refactored read_to_buf_tls().
22600       Bugfix on 0.1.0.5-rc; fixes bug 4528.
22601     - Fix an assert that directory authorities could trigger on sighup
22602       during some configuration state transitions. We now don't treat
22603       it as a fatal error when the new descriptor we just generated in
22604       init_keys() isn't accepted. Fixes bug 4438; bugfix on 0.2.1.9-alpha.
22605     - After we pick a directory mirror, we would refuse to use it if
22606       it's in our ExcludeExitNodes list, resulting in mysterious failures
22607       to bootstrap for people who just wanted to avoid exiting from
22608       certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha.
22609     - When building with --enable-static-tor on OpenBSD, do not
22610       erroneously attempt to link -lrt. Fixes bug 5103.
22612   o Minor bugfixes (on 0.2.3.x):
22613     - When Tor is built with kernel headers from a recent (last few
22614       years) Linux kernel, do not fail to run on older (pre-2.6.28
22615       Linux kernels). Fixes bug 5112; bugfix on 0.2.3.1-alpha.
22616     - Fix cross-compilation issues with mingw. Bugfixes on 0.2.3.6-alpha
22617       and 0.2.3.12-alpha.
22618     - Fix compilation with miniupnpc version 1.6; patch from
22619       Anthony G. Basile. Fixes bug 5434; bugfix on 0.2.3.12-alpha.
22620     - Fix compilation with MSVC, which had defined MS_WINDOWS. Bugfix
22621       on 0.2.3.13-alpha; found and fixed by Gisle Vanem.
22622     - Fix compilation on platforms without unistd.h, or where environ
22623       is defined in stdlib.h. Fixes bug 5704; bugfix on 0.2.3.13-alpha.
22625   o Minor features:
22626     - Directory authorities are now a little more lenient at accepting
22627       older router descriptors, or newer router descriptors that don't
22628       make big changes. This should help ameliorate past and future
22629       issues where routers think they have uploaded valid descriptors,
22630       but the authorities don't think so. Fix for ticket 2479.
22631     - Make the code that clients use to detect an address change be
22632       IPv6-aware, so that it won't fill clients' logs with error
22633       messages when trying to get the IPv4 address of an IPv6
22634       connection. Implements ticket 5537.
22636   o Removed features:
22637     - Remove the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays option;
22638       authorities needed to use it for a while to keep the network working
22639       as people upgraded to 0.2.1.31, 0.2.2.34, or 0.2.3.6-alpha, but
22640       that was six months ago. As of now, it should no longer be needed
22641       or used.
22644 Changes in version 0.2.3.14-alpha - 2012-04-23
22645   Tor 0.2.3.14-alpha fixes yet more bugs to get us closer to a release
22646   candidate. It also dramatically speeds up AES: fast relays should
22647   consider switching to the newer OpenSSL library.
22649   o Directory authority changes:
22650     - Change IP address for ides (v3 directory authority), and rename
22651       it to turtles.
22653   o Major bugfixes:
22654     - Avoid logging uninitialized data when unable to decode a hidden
22655       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
22656     - Avoid a client-side assertion failure when receiving an INTRODUCE2
22657       cell on a general purpose circuit. Fixes bug 5644; bugfix on
22658       0.2.1.6-alpha.
22659     - If authorities are unable to get a v2 consensus document from other
22660       directory authorities, they no longer fall back to fetching
22661       them from regular directory caches. Fixes bug 5635; bugfix on
22662       0.2.2.26-beta, where routers stopped downloading v2 consensus
22663       documents entirely.
22664     - When we start a Tor client with a normal consensus already cached,
22665       be willing to download a microdescriptor consensus. Fixes bug 4011;
22666       fix on 0.2.3.1-alpha.
22668   o Major features (performance):
22669     - When built to use OpenSSL 1.0.1, and built for an x86 or x86_64
22670       instruction set, take advantage of OpenSSL's AESNI, bitsliced, or
22671       vectorized AES implementations as appropriate. These can be much,
22672       much faster than other AES implementations.
22674   o Minor bugfixes (0.2.2.x and earlier):
22675     - Don't launch more than 10 service-side introduction-point circuits
22676       for a hidden service in five minutes. Previously, we would consider
22677       launching more introduction-point circuits if at least one second
22678       had passed without any introduction-point circuits failing. Fixes
22679       bug 4607; bugfix on 0.0.7pre1.
22680     - Change the BridgePassword feature (part of the "bridge community"
22681       design, which is not yet implemented) to use a time-independent
22682       comparison. The old behavior might have allowed an adversary
22683       to use timing to guess the BridgePassword value. Fixes bug 5543;
22684       bugfix on 0.2.0.14-alpha.
22685     - Enforce correct return behavior of tor_vsscanf() when the '%%'
22686       pattern is used. Fixes bug 5558. Bugfix on 0.2.1.13.
22687     - When sending an HTTP/1.1 proxy request, include a Host header.
22688       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
22689     - Don't log that we have "decided to publish new relay descriptor"
22690       unless we are actually publishing a descriptor. Fixes bug 3942;
22691       bugfix on 0.2.2.28-beta.
22693   o Minor bugfixes (0.2.3.x):
22694     - Fix a bug where a bridge authority crashes (on a failed assert)
22695       if it has seen no directory requests when it's time to write
22696       statistics to disk. Fixes bug 5508. Bugfix on 0.2.3.6-alpha.
22697     - Fix bug stomping on ORPort option NoListen and ignoring option
22698       NoAdvertise. Fixes bug 5151; bugfix on 0.2.3.9-alpha.
22699     - In the testsuite, provide a large enough buffer in the tor_sscanf
22700       unit test. Otherwise we'd overrun that buffer and crash during
22701       the unit tests. Found by weasel. Fixes bug 5449; bugfix on
22702       0.2.3.12-alpha.
22703     - Make sure we create the keys directory if it doesn't exist and we're
22704       about to store the dynamic Diffie-Hellman parameters. Fixes bug
22705       5572; bugfix on 0.2.3.13-alpha.
22706     - Fix a small memory leak when trying to decode incorrect base16
22707       authenticator during SAFECOOKIE authentication. Found by
22708       Coverity Scan. Fixes CID 507. Bugfix on 0.2.3.13-alpha.
22710   o Minor features:
22711     - Add more information to a log statement that might help track down
22712       bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a
22713       non-IP address" messages (or any Bug messages, for that matter!),
22714       please let us know about it.
22715     - Relays now understand an IPv6 address when they get one from a
22716       directory server. Resolves ticket 4875.
22717     - Resolve IPv6 addresses in bridge and entry statistics to country
22718       code "??" which means we at least count them. Resolves ticket 5053;
22719       improves on 0.2.3.9-alpha.
22720     - Update to the April 3 2012 Maxmind GeoLite Country database.
22721     - Begin a doc/state-contents.txt file to explain the contents of
22722       the Tor state file. Fixes bug 2987.
22724   o Default torrc changes:
22725     - Stop listing "socksport 9050" in torrc.sample. We open a socks
22726       port on 9050 by default anyway, so this should not change anything
22727       in practice.
22728     - Stop mentioning the deprecated *ListenAddress options in
22729       torrc.sample. Fixes bug 5438.
22730     - Document unit of bandwidth related options in sample torrc.
22731       Fixes bug 5621.
22733   o Removed features:
22734     - The "torify" script no longer supports the "tsocks" socksifier
22735       tool, since tsocks doesn't support DNS and UDP right for Tor.
22736       Everyone should be using torsocks instead. Fixes bugs 3530 and
22737       5180. Based on a patch by "ugh".
22739   o Code refactoring:
22740     - Change the symmetric cipher interface so that creating and
22741       initializing a stream cipher are no longer separate functions.
22742     - Remove all internal support for unpadded RSA. We never used it, and
22743       it would be a bad idea to start.
22746 Changes in version 0.2.3.13-alpha - 2012-03-26
22747   Tor 0.2.3.13-alpha fixes a variety of stability and correctness bugs
22748   in managed pluggable transports, as well as providing other cleanups
22749   that get us closer to a release candidate.
22751   o Directory authority changes:
22752     - Change IP address for maatuska (v3 directory authority).
22754   o Security fixes:
22755     - Provide controllers with a safer way to implement the cookie
22756       authentication mechanism. With the old method, if another locally
22757       running program could convince a controller that it was the Tor
22758       process, then that program could trick the controller into telling
22759       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
22760       authentication method uses a challenge-response approach to prevent
22761       this attack. Fixes bug 5185, implements proposal 193.
22762     - Never use a bridge or a controller-supplied node as an exit, even
22763       if its exit policy allows it. Found by wanoskarnet. Fixes bug
22764       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
22765       and 0.2.0.3-alpha (for bridge-purpose descriptors).
22766     - Only build circuits if we have a sufficient threshold of the total
22767       descriptors that are marked in the consensus with the "Exit"
22768       flag. This mitigates an attack proposed by wanoskarnet, in which
22769       all of a client's bridges collude to restrict the exit nodes that
22770       the client knows about. Fixes bug 5343.
22772   o Major bugfixes (on Tor 0.2.3.x):
22773     - Avoid an assert when managed proxies like obfsproxy are configured,
22774       and we receive HUP signals or setconf attempts too rapidly. This
22775       situation happens most commonly when Vidalia tries to attach to
22776       Tor or tries to configure the Tor it's attached to. Fixes bug 5084;
22777       bugfix on 0.2.3.6-alpha.
22778     - Fix a relay-side pluggable transports bug where managed proxies were
22779       unreachable from the Internet, because Tor asked them to bind on
22780       localhost. Fixes bug 4725; bugfix on 0.2.3.9-alpha.
22781     - Stop discarding command-line arguments when TestingTorNetwork
22782       is set. Discovered by Kevin Bauer. Fixes bug 5373; bugfix on
22783       0.2.3.9-alpha, where task 4552 added support for two layers of
22784       torrc files.
22785     - Resume allowing the unit tests to run in gdb. This was accidentally
22786       made impossible when the DisableDebuggerAttachment option was
22787       introduced. Fixes bug 5448; bugfix on 0.2.3.9-alpha.
22788     - Resume building with nat-pmp support. Fixes bug 4955; bugfix on
22789       0.2.3.11-alpha. Reported by Anthony G. Basile.
22791   o Minor bugfixes (on 0.2.2.x and earlier):
22792     - Ensure we don't cannibalize circuits that are longer than three hops
22793       already, so we don't end up making circuits with 5 or more
22794       hops. Patch contributed by wanoskarnet. Fixes bug 5231; bugfix on
22795       0.1.0.1-rc which introduced cannibalization.
22796     - Detect and reject certain misformed escape sequences in
22797       configuration values. Previously, these values would cause us
22798       to crash if received in a torrc file or over an authenticated
22799       control port. Bug found by Esteban Manchado Velázquez, and
22800       independently by Robert Connolly from Matta Consulting who further
22801       noted that it allows a post-authentication heap overflow. Patch
22802       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
22803       bugfix on 0.2.0.16-alpha.
22804     - Fix a compile warning when using the --enable-openbsd-malloc
22805       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
22806     - Directory caches no longer refuse to clean out descriptors because
22807       of missing v2 networkstatus documents, unless they're configured
22808       to retrieve v2 networkstatus documents. Fixes bug 4838; bugfix on
22809       0.2.2.26-beta. Patch by Daniel Bryg.
22810     - Update to the latest version of the tinytest unit testing framework.
22811       This includes a couple of bugfixes that can be relevant for
22812       running forked unit tests on Windows, and removes all reserved
22813       identifiers.
22815   o Minor bugfixes (on 0.2.3.x):
22816     - On a failed pipe() call, don't leak file descriptors. Fixes bug
22817       4296; bugfix on 0.2.3.1-alpha.
22818     - Spec conformance: on a v3 handshake, do not send a NETINFO cell
22819       until after we have received a CERTS cell. Fixes bug 4361; bugfix
22820       on 0.2.3.6-alpha. Patch by "frosty".
22821     - When binding to an IPv6 address, set the IPV6_V6ONLY socket
22822       option, so that the IP stack doesn't decide to use it for IPv4
22823       too. Fixes bug 4760; bugfix on 0.2.3.9-alpha.
22824     - Ensure that variables set in Tor's environment cannot override
22825       environment variables that Tor passes to a managed
22826       pluggable-transport proxy. Previously, Tor would pass every
22827       variable in its environment to managed proxies along with the new
22828       ones, in such a way that on many operating systems, the inherited
22829       environment variables would override those which Tor tried to
22830       explicitly set. Bugfix on 0.2.3.12-alpha for most Unixoid systems;
22831       bugfix on 0.2.3.9-alpha for Windows.
22833   o Minor features:
22834     - A wide variety of new unit tests by Esteban Manchado Velázquez.
22835     - Shorten links in the tor-exit-notice file. Patch by Christian Kujau.
22836     - Update to the March 6 2012 Maxmind GeoLite Country database.
22839 Changes in version 0.2.3.12-alpha - 2012-02-13
22840   Tor 0.2.3.12-alpha lets fast exit relays scale better, allows clients
22841   to use bridges that run Tor 0.2.2.x, and resolves several big bugs
22842   when Tor is configured to use a pluggable transport like obfsproxy.
22844   o Major bugfixes:
22845     - Fix builds when the path to sed, openssl, or sha1sum contains
22846       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
22847       on 0.2.2.1-alpha.
22848     - Set the SO_REUSEADDR socket option before we call bind() on outgoing
22849       connections. This change should allow busy exit relays to stop
22850       running out of available sockets as quickly. Fixes bug 4950;
22851       bugfix on 0.2.2.26-beta.
22852     - Allow 0.2.3.x clients to use 0.2.2.x bridges. Previously the client
22853       would ask the bridge for microdescriptors, which are only supported
22854       in 0.2.3.x, and then fail to bootstrap when it didn't get the
22855       answers it wanted. Fixes bug 4013; bugfix on 0.2.3.2-alpha.
22856     - Properly set up obfsproxy's environment when in managed mode. The
22857       Tor Browser Bundle needs LD_LIBRARY_PATH to be passed to obfsproxy,
22858       and when you run your Tor as a daemon, there's no HOME. Fixes bugs
22859       5076 and 5082; bugfix on 0.2.3.6-alpha.
22861   o Minor features:
22862     - Use the dead_strip option when building Tor on OS X. This reduces
22863       binary size by almost 19% when linking openssl and libevent
22864       statically, which we do for Tor Browser Bundle.
22865     - Fix broken URLs in the sample torrc file, and tell readers about
22866       the OutboundBindAddress, ExitPolicyRejectPrivate, and
22867       PublishServerDescriptor options. Addresses bug 4652.
22868     - Update to the February 7 2012 Maxmind GeoLite Country database.
22870   o Minor bugfixes:
22871     - Downgrade the "We're missing a certificate" message from notice
22872       to info: people kept mistaking it for a real problem, whereas it
22873       is seldom the problem even when we are failing to bootstrap. Fixes
22874       bug 5067; bugfix on 0.2.0.10-alpha.
22875     - Don't put "TOR_PT_EXTENDED_SERVER_PORT=127.0.0.1:4200" in a
22876       managed pluggable transport server proxy's environment.
22877       Previously, we would put it there, even though Tor doesn't
22878       implement an 'extended server port' yet, and even though Tor
22879       almost certainly isn't listening at that address. For now, we set
22880       it to an empty string to avoid crashing older obfsproxies. Bugfix
22881       on 0.2.3.6-alpha.
22882     - Log the heartbeat message every HeartbeatPeriod seconds, not every
22883       HeartbeatPeriod + 1 seconds. Fixes bug 4942; bugfix on
22884       0.2.3.1-alpha. Bug reported by Scott Bennett.
22885     - Calculate absolute paths correctly on Windows. Fixes bug 4973;
22886       bugfix on 0.2.3.11-alpha.
22887     - Update "ClientOnly" man page entry to explain that there isn't
22888       really any point to messing with it. Resolves ticket 5005.
22889     - Use the correct CVE number for CVE-2011-4576 in our comments and
22890       log messages. Found by "fermenthor". Resolves bug 5066; bugfix on
22891       0.2.3.11-alpha.
22893   o Code simplifications and refactoring:
22894     - Use the _WIN32 macro throughout our code to detect Windows.
22895       (Previously we had used the obsolete 'WIN32' and the idiosyncratic
22896       'MS_WINDOWS'.)
22899 Changes in version 0.2.3.11-alpha - 2012-01-22
22900   Tor 0.2.3.11-alpha marks feature-freeze for the 0.2.3 tree. It deploys
22901   the last step of the plan to limit maximum circuit length, includes
22902   a wide variety of hidden service performance and correctness fixes,
22903   works around an OpenSSL security flaw if your distro is too stubborn
22904   to upgrade, and fixes a bunch of smaller issues.
22906   o Major features:
22907     - Now that Tor 0.2.0.x is completely deprecated, enable the final
22908       part of "Proposal 110: Avoiding infinite length circuits" by
22909       refusing all circuit-extend requests that do not use a relay_early
22910       cell. This change helps Tor resist a class of denial-of-service
22911       attacks by limiting the maximum circuit length.
22912     - Adjust the number of introduction points that a hidden service
22913       will try to maintain based on how long its introduction points
22914       remain in use and how many introductions they handle. Fixes
22915       part of bug 3825.
22916     - Try to use system facilities for enumerating local interface
22917       addresses, before falling back to our old approach (which was
22918       binding a UDP socket, and calling getsockname() on it). That
22919       approach was scaring OS X users whose draconian firewall
22920       software warned about binding to UDP sockets, regardless of
22921       whether packets were sent. Now we try to use getifaddrs(),
22922       SIOCGIFCONF, or GetAdaptersAddresses(), depending on what the
22923       system supports. Resolves ticket 1827.
22925   o Major security workaround:
22926     - When building or running with any version of OpenSSL earlier
22927       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
22928       versions have a bug (CVE-2011-4576) in which their block cipher
22929       padding includes uninitialized data, potentially leaking sensitive
22930       information to any peer with whom they make a SSLv3 connection. Tor
22931       does not use SSL v3 by default, but a hostile client or server
22932       could force an SSLv3 connection in order to gain information that
22933       they shouldn't have been able to get. The best solution here is to
22934       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
22935       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
22936       to make sure that the bug can't happen.
22938   o Major bugfixes:
22939     - Fix the SOCKET_OK test that we use to tell when socket
22940       creation fails so that it works on Win64. Fixes part of bug 4533;
22941       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
22942     - Correct our replacements for the timeradd() and timersub() functions
22943       on platforms that lack them (for example, Windows). The timersub()
22944       function is used when expiring circuits, while timeradd() is
22945       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
22946       bugfix on 0.2.2.24-alpha and 0.2.3.1-alpha.
22947     - Do not use OpenSSL 1.0.0's counter mode: it has a critical bug
22948       that was fixed in OpenSSL 1.0.0a. We test for the counter mode
22949       bug at runtime, not compile time, because some distributions hack
22950       their OpenSSL to mis-report its version. Fixes bug 4779; bugfix
22951       on 0.2.3.9-alpha. Found by Pascal.
22953   o Minor features (controller):
22954     - Use absolute path names when reporting the torrc filename in the
22955       control protocol, so a controller can more easily find the torrc
22956       file. Resolves bug 1101.
22957     - Extend the control protocol to report flags that control a circuit's
22958       path selection in CIRC events and in replies to 'GETINFO
22959       circuit-status'. Implements part of ticket 2411.
22960     - Extend the control protocol to report the hidden service address
22961       and current state of a hidden-service-related circuit in CIRC
22962       events and in replies to 'GETINFO circuit-status'. Implements part
22963       of ticket 2411.
22964     - When reporting the path to the cookie file to the controller,
22965       give an absolute path. Resolves ticket 4881.
22966     - Allow controllers to request an event notification whenever a
22967       circuit is cannibalized or its purpose is changed. Implements
22968       part of ticket 3457.
22969     - Include the creation time of a circuit in CIRC and CIRC2
22970       control-port events and the list produced by the 'GETINFO
22971       circuit-status' control-port command.
22973   o Minor features (directory authorities):
22974     - Directory authorities now reject versions of Tor older than
22975       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
22976       inclusive. These versions accounted for only a small fraction of
22977       the Tor network, and have numerous known security issues. Resolves
22978       issue 4788.
22979     - Authority operators can now vote for all relays in a given
22980       set of countries to be BadDir/BadExit/Invalid/Rejected.
22981     - Provide two consensus parameters (FastFlagMinThreshold and
22982       FastFlagMaxThreshold) to control the range of allowable bandwidths
22983       for the Fast directory flag. These allow authorities to run
22984       experiments on appropriate requirements for being a "Fast" node.
22985       The AuthDirFastGuarantee config value still applies. Implements
22986       ticket 3946.
22987     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
22988       directory authority option (introduced in Tor 0.2.2.34).
22990   o Minor features (other):
22991     - Don't disable the DirPort when we cannot exceed our AccountingMax
22992       limit during this interval because the effective bandwidthrate is
22993       low enough. This is useful in a situation where AccountMax is only
22994       used as an additional safeguard or to provide statistics.
22995     - Prepend an informative header to generated dynamic_dh_params files.
22996     - If EntryNodes are given, but UseEntryGuards is set to 0, warn that
22997       EntryNodes will have no effect. Resolves issue 2571.
22998     - Log more useful messages when we fail to disable debugger
22999       attachment.
23000     - Log which authority we're missing votes from when we go to fetch
23001       them from the other auths.
23002     - Log (at debug level) whenever a circuit's purpose is changed.
23003     - Add missing documentation for the MaxClientCircuitsPending,
23004       UseMicrodescriptors, UserspaceIOCPBuffers, and
23005       _UseFilteringSSLBufferevents options, all introduced during
23006       the 0.2.3.x series.
23007     - Update to the January 3 2012 Maxmind GeoLite Country database.
23009   o Minor bugfixes (hidden services):
23010     - Don't close hidden service client circuits which have almost
23011       finished connecting to their destination when they reach
23012       the normal circuit-build timeout. Previously, we would close
23013       introduction circuits which are waiting for an acknowledgement
23014       from the introduction point, and rendezvous circuits which have
23015       been specified in an INTRODUCE1 cell sent to a hidden service,
23016       after the normal CBT. Now, we mark them as 'timed out', and launch
23017       another rendezvous attempt in parallel. This behavior change can
23018       be disabled using the new CloseHSClientCircuitsImmediatelyOnTimeout
23019       option. Fixes part of bug 1297; bugfix on 0.2.2.2-alpha.
23020     - Don't close hidden-service-side rendezvous circuits when they
23021       reach the normal circuit-build timeout. This behavior change can
23022       be disabled using the new
23023       CloseHSServiceRendCircuitsImmediatelyOnTimeout option. Fixes the
23024       remaining part of bug 1297; bugfix on 0.2.2.2-alpha.
23025     - Make sure we never mark the wrong rendezvous circuit as having
23026       had its introduction cell acknowledged by the introduction-point
23027       relay. Previously, when we received an INTRODUCE_ACK cell on a
23028       client-side hidden-service introduction circuit, we might have
23029       marked a rendezvous circuit other than the one we specified in
23030       the INTRODUCE1 cell as INTRO_ACKED, which would have produced
23031       a warning message and interfered with the hidden service
23032       connection-establishment process. Fixes bug 4759; bugfix on
23033       0.2.3.3-alpha, when we added the stream-isolation feature which
23034       might cause Tor to open multiple rendezvous circuits for the same
23035       hidden service.
23036     - Don't trigger an assertion failure when we mark a new client-side
23037       hidden-service introduction circuit for close during the process
23038       of creating it. Fixes bug 4796; bugfix on 0.2.3.6-alpha. Reported
23039       by murb.
23041   o Minor bugfixes (log messages):
23042     - Correctly spell "connect" in a log message on failure to create a
23043       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta and
23044       0.2.3.2-alpha.
23045     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
23046       Fixes bug 4856; bugfix on Tor 0.0.6.
23047     - Fix the log message describing how we work around discovering
23048       that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug
23049       4837; bugfix on 0.2.2.9-alpha.
23050     - When logging about a disallowed .exit name, do not also call it
23051       an "invalid onion address". Fixes bug 3325; bugfix on 0.2.2.9-alpha.
23053   o Minor bugfixes (build fixes):
23054     - During configure, detect when we're building with clang version
23055       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
23056       CFLAGS. clang doesn't support them yet.
23057     - During configure, search for library containing cos function as
23058       libm lives in libcore on some platforms (BeOS/Haiku). Linking
23059       against libm was hard-coded before. Fixes the first part of bug
23060       4727; bugfix on 0.2.2.2-alpha. Patch and analysis by Martin Hebnes
23061       Pedersen.
23062     - Detect attempts to build Tor on (as yet hypothetical) versions
23063       of Windows where sizeof(intptr_t) != sizeof(SOCKET). Partial
23064       fix for bug 4533. Bugfix on 0.2.2.28-beta.
23065     - Preprocessor directives should not be put inside the arguments
23066       of a macro. This would break compilation with GCC releases prior
23067       to version 3.3. We would never recommend such an old GCC version,
23068       but it is apparently required for binary compatibility on some
23069       platforms (namely, certain builds of Haiku). Fixes the other part
23070       of bug 4727; bugfix on 0.2.3.3-alpha. Patch and analysis by Martin
23071       Hebnes Pedersen.
23073   o Minor bugfixes (other):
23074     - Older Linux kernels erroneously respond to strange nmap behavior
23075       by having accept() return successfully with a zero-length
23076       socket. When this happens, just close the connection. Previously,
23077       we would try harder to learn the remote address: but there was
23078       no such remote address to learn, and our method for trying to
23079       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
23080       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
23081     - Fix null-pointer access that could occur if TLS allocation failed.
23082       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un". This was
23083       erroneously listed as fixed in 0.2.3.9-alpha, but the fix had
23084       accidentally been reverted.
23085     - Fix our implementation of crypto_random_hostname() so it can't
23086       overflow on ridiculously large inputs. (No Tor version has ever
23087       provided this kind of bad inputs, but let's be correct in depth.)
23088       Fixes bug 4413; bugfix on 0.2.2.9-alpha. Fix by Stephen Palmateer.
23089     - Find more places in the code that should have been testing for
23090       invalid sockets using the SOCKET_OK macro. Required for a fix
23091       for bug 4533. Bugfix on 0.2.2.28-beta.
23092     - Fix an assertion failure when, while running with bufferevents, a
23093       connection finishes connecting after it is marked for close, but
23094       before it is closed. Fixes bug 4697; bugfix on 0.2.3.1-alpha.
23095     - test_util_spawn_background_ok() hardcoded the expected value
23096       for ENOENT to 2. This isn't portable as error numbers are
23097       platform specific, and particularly the hurd has ENOENT at
23098       0x40000002. Construct expected string at runtime, using the correct
23099       value for ENOENT. Fixes bug 4733; bugfix on 0.2.3.1-alpha.
23100     - Reject attempts to disable DisableDebuggerAttachment while Tor is
23101       running. Fixes bug 4650; bugfix on 0.2.3.9-alpha.
23102     - Use an appropriate-width type for sockets in tor-fw-helper on
23103       win64. Fixes bug 1983 at last. Bugfix on 0.2.3.9-alpha.
23105   o Feature removal:
23106     - When sending or relaying a RELAY_EARLY cell, we used to convert
23107       it to a RELAY cell if the connection was using the v1 link
23108       protocol. This was a workaround for older versions of Tor, which
23109       didn't handle RELAY_EARLY cells properly. Now that all supported
23110       versions can handle RELAY_EARLY cells, and now that we're enforcing
23111       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
23112       remove this workaround. Addresses bug 4786.
23114   o Code simplifications and refactoring:
23115     - Use OpenSSL's built-in SSL_state_string_long() instead of our
23116       own homebrewed ssl_state_to_string() replacement. Patch from
23117       Emile Snyder. Fixes bug 4653.
23118     - Use macros to indicate OpenSSL versions, so we don't need to worry
23119       about accidental hexadecimal bit shifts.
23120     - Remove some workaround code for OpenSSL 0.9.6 (which is no longer
23121       supported).
23122     - Convert more instances of tor_snprintf+tor_strdup into tor_asprintf.
23123     - Use the smartlist_add_asprintf() alias more consistently.
23124     - Use a TOR_INVALID_SOCKET macro when initializing a socket to an
23125       invalid value, rather than just -1.
23126     - Rename a handful of old identifiers, mostly related to crypto
23127       structures and crypto functions. By convention, our "create an
23128       object" functions are called "type_new()", our "free an object"
23129       functions are called "type_free()", and our types indicate that
23130       they are types only with a final "_t". But a handful of older
23131       types and functions broke these rules, with function names like
23132       "type_create" or "subsystem_op_type", or with type names like
23133       type_env_t.
23136 Changes in version 0.2.3.10-alpha - 2011-12-16
23137   Tor 0.2.3.10-alpha fixes a critical heap-overflow security issue in
23138   Tor's buffers code. Absolutely everybody should upgrade.
23140   The bug relied on an incorrect calculation when making data continuous
23141   in one of our IO buffers, if the first chunk of the buffer was
23142   misaligned by just the wrong amount. The miscalculation would allow an
23143   attacker to overflow a piece of heap-allocated memory. To mount this
23144   attack, the attacker would need to either open a SOCKS connection to
23145   Tor's SocksPort (usually restricted to localhost), or target a Tor
23146   instance configured to make its connections through a SOCKS proxy
23147   (which Tor does not do by default).
23149   Good security practice requires that all heap-overflow bugs should be
23150   presumed to be exploitable until proven otherwise, so we are treating
23151   this as a potential code execution attack. Please upgrade immediately!
23152   This bug does not affect bufferevents-based builds of Tor. Special
23153   thanks to "Vektor" for reporting this issue to us!
23155   This release also contains a few minor bugfixes for issues discovered
23156   in 0.2.3.9-alpha.
23158   o Major bugfixes:
23159     - Fix a heap overflow bug that could occur when trying to pull
23160       data into the first chunk of a buffer, when that chunk had
23161       already had some data drained from it. Fixes CVE-2011-2778;
23162       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
23164   o Minor bugfixes:
23165     - If we can't attach streams to a rendezvous circuit when we
23166       finish connecting to a hidden service, clear the rendezvous
23167       circuit's stream-isolation state and try to attach streams
23168       again. Previously, we cleared rendezvous circuits' isolation
23169       state either too early (if they were freshly built) or not at all
23170       (if they had been built earlier and were cannibalized). Bugfix on
23171       0.2.3.3-alpha; fixes bug 4655.
23172     - Fix compilation of the libnatpmp helper on non-Windows. Bugfix on
23173       0.2.3.9-alpha; fixes bug 4691. Reported by Anthony G. Basile.
23174     - Fix an assertion failure when a relay with accounting enabled
23175       starts up while dormant. Fixes bug 4702; bugfix on 0.2.3.9-alpha.
23177   o Minor features:
23178     - Update to the December 6 2011 Maxmind GeoLite Country database.
23181 Changes in version 0.2.2.35 - 2011-12-16
23182   Tor 0.2.2.35 fixes a critical heap-overflow security issue in Tor's
23183   buffers code. Absolutely everybody should upgrade.
23185   The bug relied on an incorrect calculation when making data continuous
23186   in one of our IO buffers, if the first chunk of the buffer was
23187   misaligned by just the wrong amount. The miscalculation would allow an
23188   attacker to overflow a piece of heap-allocated memory. To mount this
23189   attack, the attacker would need to either open a SOCKS connection to
23190   Tor's SocksPort (usually restricted to localhost), or target a Tor
23191   instance configured to make its connections through a SOCKS proxy
23192   (which Tor does not do by default).
23194   Good security practice requires that all heap-overflow bugs should be
23195   presumed to be exploitable until proven otherwise, so we are treating
23196   this as a potential code execution attack. Please upgrade immediately!
23197   This bug does not affect bufferevents-based builds of Tor. Special
23198   thanks to "Vektor" for reporting this issue to us!
23200   Tor 0.2.2.35 also fixes several bugs in previous versions, including
23201   crash bugs for unusual configurations, and a long-term bug that
23202   would prevent Tor from starting on Windows machines with draconian
23203   AV software.
23205   With this release, we remind everyone that 0.2.0.x has reached its
23206   formal end-of-life. Those Tor versions have many known flaws, and
23207   nobody should be using them. You should upgrade -- ideally to the
23208   0.2.2.x series. If you're using a Linux or BSD and its packages are
23209   obsolete, stop using those packages and upgrade anyway.
23211   The Tor 0.2.1.x series is also approaching its end-of-life: it will no
23212   longer receive support after some time in early 2012.
23214   o Major bugfixes:
23215     - Fix a heap overflow bug that could occur when trying to pull
23216       data into the first chunk of a buffer, when that chunk had
23217       already had some data drained from it. Fixes CVE-2011-2778;
23218       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
23219     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
23220       that it doesn't attempt to allocate a socketpair. This could cause
23221       some problems on Windows systems with overzealous firewalls. Fix for
23222       bug 4457; workaround for Libevent versions 2.0.1-alpha through
23223       2.0.15-stable.
23224     - If we mark an OR connection for close based on a cell we process,
23225       don't process any further cells on it. We already avoid further
23226       reads on marked-for-close connections, but now we also discard the
23227       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
23228       which was the first version where we might mark a connection for
23229       close based on processing a cell on it.
23230     - Correctly sanity-check that we don't underflow on a memory
23231       allocation (and then assert) for hidden service introduction
23232       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
23233       bugfix on 0.2.1.5-alpha.
23234     - Fix a memory leak when we check whether a hidden service
23235       descriptor has any usable introduction points left. Fixes bug
23236       4424. Bugfix on 0.2.2.25-alpha.
23237     - Don't crash when we're running as a relay and don't have a GeoIP
23238       file. Bugfix on 0.2.2.34; fixes bug 4340. This backports a fix
23239       we've had in the 0.2.3.x branch already.
23240     - When running as a client, do not print a misleading (and plain
23241       wrong) log message that we're collecting "directory request"
23242       statistics: clients don't collect statistics. Also don't create a
23243       useless (because empty) stats file in the stats/ directory. Fixes
23244       bug 4353; bugfix on 0.2.2.34.
23246   o Minor bugfixes:
23247     - Detect failure to initialize Libevent. This fix provides better
23248       detection for future instances of bug 4457.
23249     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
23250       function. This was eating up hideously large amounts of time on some
23251       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
23252     - Resolve an integer overflow bug in smartlist_ensure_capacity().
23253       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
23254       Mansour Moufid.
23255     - Don't warn about unused log_mutex in log.c when building with
23256       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
23257       0.1.0.6-rc which introduced --disable-threads.
23258     - When configuring, starting, or stopping an NT service, stop
23259       immediately after the service configuration attempt has succeeded
23260       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
23261     - When sending a NETINFO cell, include the original address
23262       received for the other side, not its canonical address. Found
23263       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
23264     - Fix a typo in a hibernation-related log message. Fixes bug 4331;
23265       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
23266     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
23267       occurred when a client tried to fetch a descriptor for a bridge
23268       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
23269     - Backport fixes for a pair of compilation warnings on Windows.
23270       Fixes bug 4521; bugfix on 0.2.2.28-beta and on 0.2.2.29-beta.
23271     - If we had ever tried to call tor_addr_to_str on an address of
23272       unknown type, we would have done a strdup on an uninitialized
23273       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
23274       Reported by "troll_un".
23275     - Correctly detect and handle transient lookup failures from
23276       tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha.
23277       Reported by "troll_un".
23278     - Fix null-pointer access that could occur if TLS allocation failed.
23279       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
23280     - Use tor_socket_t type for listener argument to accept(). Fixes bug
23281       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
23283   o Minor features:
23284     - Add two new config options for directory authorities:
23285       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
23286       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
23287       that is always sufficient to satisfy the bandwidth requirement for
23288       the Guard flag. Now it will be easier for researchers to simulate
23289       Tor networks with different values. Resolves ticket 4484.
23290     - When Tor ignores a hidden service specified in its configuration,
23291       include the hidden service's directory in the warning message.
23292       Previously, we would only tell the user that some hidden service
23293       was ignored. Bugfix on 0.0.6; fixes bug 4426.
23294     - Update to the December 6 2011 Maxmind GeoLite Country database.
23296   o Packaging changes:
23297     - Make it easier to automate expert package builds on Windows,
23298       by removing an absolute path from makensis.exe command.
23301 Changes in version 0.2.1.32 - 2011-12-16
23302   Tor 0.2.1.32 backports important security and privacy fixes for
23303   oldstable. This release is intended only for package maintainers and
23304   others who cannot use the 0.2.2 stable series. All others should be
23305   using Tor 0.2.2.x or newer.
23307   The Tor 0.2.1.x series will reach formal end-of-life some time in
23308   early 2012; we will stop releasing patches for it then.
23310   o Major bugfixes (also included in 0.2.2.x):
23311     - Correctly sanity-check that we don't underflow on a memory
23312       allocation (and then assert) for hidden service introduction
23313       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
23314       bugfix on 0.2.1.5-alpha.
23315     - Fix a heap overflow bug that could occur when trying to pull
23316       data into the first chunk of a buffer, when that chunk had
23317       already had some data drained from it. Fixes CVE-2011-2778;
23318       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
23320   o Minor features:
23321     - Update to the December 6 2011 Maxmind GeoLite Country database.
23324 Changes in version 0.2.3.9-alpha - 2011-12-08
23325   Tor 0.2.3.9-alpha introduces initial IPv6 support for bridges, adds
23326   a "DisableNetwork" security feature that bundles can use to avoid
23327   touching the network until bridges are configured, moves forward on
23328   the pluggable transport design, fixes a flaw in the hidden service
23329   design that unnecessarily prevented clients with wrong clocks from
23330   reaching hidden services, and fixes a wide variety of other issues.
23332   o Major features:
23333     - Clients can now connect to private bridges over IPv6. Bridges
23334       still need at least one IPv4 address in order to connect to
23335       other relays. Note that we don't yet handle the case where the
23336       user has two bridge lines for the same bridge (one IPv4, one
23337       IPv6). Implements parts of proposal 186.
23338     - New "DisableNetwork" config option to prevent Tor from launching any
23339       connections or accepting any connections except on a control port.
23340       Bundles and controllers can set this option before letting Tor talk
23341       to the rest of the network, for example to prevent any connections
23342       to a non-bridge address. Packages like Orbot can also use this
23343       option to instruct Tor to save power when the network is off.
23344     - Clients and bridges can now be configured to use a separate
23345       "transport" proxy. This approach makes the censorship arms race
23346       easier by allowing bridges to use protocol obfuscation plugins. It
23347       implements the "managed proxy" part of proposal 180 (ticket 3472).
23348     - When using OpenSSL 1.0.0 or later, use OpenSSL's counter mode
23349       implementation. It makes AES_CTR about 7% faster than our old one
23350       (which was about 10% faster than the one OpenSSL used to provide).
23351       Resolves ticket 4526.
23352     - Add a "tor2web mode" for clients that want to connect to hidden
23353       services non-anonymously (and possibly more quickly). As a safety
23354       measure to try to keep users from turning this on without knowing
23355       what they are doing, tor2web mode must be explicitly enabled at
23356       compile time, and a copy of Tor compiled to run in tor2web mode
23357       cannot be used as a normal Tor client. Implements feature 2553.
23358     - Add experimental support for running on Windows with IOCP and no
23359       kernel-space socket buffers. This feature is controlled by a new
23360       "UserspaceIOCPBuffers" config option (off by default), which has
23361       no effect unless Tor has been built with support for bufferevents,
23362       is running on Windows, and has enabled IOCP. This may, in the long
23363       run, help solve or mitigate bug 98.
23364     - Use a more secure consensus parameter voting algorithm. Now at
23365       least three directory authorities or a majority of them must
23366       vote on a given parameter before it will be included in the
23367       consensus. Implements proposal 178.
23369   o Major bugfixes:
23370     - Hidden services now ignore the timestamps on INTRODUCE2 cells.
23371       They used to check that the timestamp was within 30 minutes
23372       of their system clock, so they could cap the size of their
23373       replay-detection cache, but that approach unnecessarily refused
23374       service to clients with wrong clocks. Bugfix on 0.2.1.6-alpha, when
23375       the v3 intro-point protocol (the first one which sent a timestamp
23376       field in the INTRODUCE2 cell) was introduced; fixes bug 3460.
23377     - Only use the EVP interface when AES acceleration is enabled,
23378       to avoid a 5-7% performance regression. Resolves issue 4525;
23379       bugfix on 0.2.3.8-alpha.
23381   o Privacy/anonymity features (bridge detection):
23382     - Make bridge SSL certificates a bit more stealthy by using random
23383       serial numbers, in the same fashion as OpenSSL when generating
23384       self-signed certificates. Implements ticket 4584.
23385     - Introduce a new config option "DynamicDHGroups", enabled by
23386       default, which provides each bridge with a unique prime DH modulus
23387       to be used during SSL handshakes. This option attempts to help
23388       against censors who might use the Apache DH modulus as a static
23389       identifier for bridges. Addresses ticket 4548.
23391   o Minor features (new/different config options):
23392     - New configuration option "DisableDebuggerAttachment" (on by default)
23393       to prevent basic debugging attachment attempts by other processes.
23394       Supports Mac OS X and Gnu/Linux. Resolves ticket 3313.
23395     - Allow MapAddress directives to specify matches against super-domains,
23396       as in "MapAddress *.torproject.org *.torproject.org.torserver.exit".
23397       Implements issue 933.
23398     - Slightly change behavior of "list" options (that is, config
23399       options that can appear more than once) when they appear both in
23400       torrc and on the command line. Previously, the command-line options
23401       would be appended to the ones from torrc. Now, the command-line
23402       options override the torrc options entirely. This new behavior
23403       allows the user to override list options (like exit policies and
23404       ports to listen on) from the command line, rather than simply
23405       appending to the list.
23406     - You can get the old (appending) command-line behavior for "list"
23407       options by prefixing the option name with a "+".
23408     - You can remove all the values for a "list" option from the command
23409       line without adding any new ones by prefixing the option name
23410       with a "/".
23411     - Add experimental support for a "defaults" torrc file to be parsed
23412       before the regular torrc. Torrc options override the defaults file's
23413       options in the same way that the command line overrides the torrc.
23414       The SAVECONF controller command saves only those options which
23415       differ between the current configuration and the defaults file. HUP
23416       reloads both files. (Note: This is an experimental feature; its
23417       behavior will probably be refined in future 0.2.3.x-alpha versions
23418       to better meet packagers' needs.) Implements task 4552.
23420   o Minor features:
23421     - Try to make the introductory warning message that Tor prints on
23422       startup more useful for actually finding help and information.
23423       Resolves ticket 2474.
23424     - Running "make version" now displays the version of Tor that
23425       we're about to build. Idea from katmagic; resolves issue 4400.
23426     - Expire old or over-used hidden service introduction points.
23427       Required by fix for bug 3460.
23428     - Move the replay-detection cache for the RSA-encrypted parts of
23429       INTRODUCE2 cells to the introduction point data structures.
23430       Previously, we would use one replay-detection cache per hidden
23431       service. Required by fix for bug 3460.
23432     - Reduce the lifetime of elements of hidden services' Diffie-Hellman
23433       public key replay-detection cache from 60 minutes to 5 minutes. This
23434       replay-detection cache is now used only to detect multiple
23435       INTRODUCE2 cells specifying the same rendezvous point, so we can
23436       avoid launching multiple simultaneous attempts to connect to it.
23438   o Minor bugfixes (on Tor 0.2.2.x and earlier):
23439     - Resolve an integer overflow bug in smartlist_ensure_capacity().
23440       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
23441       Mansour Moufid.
23442     - Fix a minor formatting issue in one of tor-gencert's error messages.
23443       Fixes bug 4574.
23444     - Prevent a false positive from the check-spaces script, by disabling
23445       the "whitespace between function name and (" check for functions
23446       named 'op()'.
23447     - Fix a log message suggesting that people contact a non-existent
23448       email address. Fixes bug 3448.
23449     - Fix null-pointer access that could occur if TLS allocation failed.
23450       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
23451     - Report a real bootstrap problem to the controller on router
23452       identity mismatch. Previously we just said "foo", which probably
23453       made a lot of sense at the time. Fixes bug 4169; bugfix on
23454       0.2.1.1-alpha.
23455     - If we had ever tried to call tor_addr_to_str() on an address of
23456       unknown type, we would have done a strdup() on an uninitialized
23457       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
23458       Reported by "troll_un".
23459     - Correctly detect and handle transient lookup failures from
23460       tor_addr_lookup(). Fixes bug 4530; bugfix on 0.2.1.5-alpha.
23461       Reported by "troll_un".
23462     - Use tor_socket_t type for listener argument to accept(). Fixes bug
23463       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
23464     - Initialize conn->addr to a valid state in spawn_cpuworker(). Fixes
23465       bug 4532; found by "troll_un".
23467   o Minor bugfixes (on Tor 0.2.3.x):
23468     - Fix a compile warning in tor_inet_pton(). Bugfix on 0.2.3.8-alpha;
23469       fixes bug 4554.
23470     - Don't send two ESTABLISH_RENDEZVOUS cells when opening a new
23471       circuit for use as a hidden service client's rendezvous point.
23472       Fixes bugs 4641 and 4171; bugfix on 0.2.3.3-alpha. Diagnosed
23473       with help from wanoskarnet.
23474     - Restore behavior of overriding SocksPort, ORPort, and similar
23475       options from the command line. Bugfix on 0.2.3.3-alpha.
23477   o Build fixes:
23478     - Properly handle the case where the build-tree is not the same
23479       as the source tree when generating src/common/common_sha1.i,
23480       src/or/micro-revision.i, and src/or/or_sha1.i. Fixes bug 3953;
23481       bugfix on 0.2.0.1-alpha.
23483   o Code simplifications, cleanups, and refactorings:
23484     - Remove the pure attribute from all functions that used it
23485       previously. In many cases we assigned it incorrectly, because the
23486       functions might assert or call impure functions, and we don't have
23487       evidence that keeping the pure attribute is worthwhile. Implements
23488       changes suggested in ticket 4421.
23489     - Remove some dead code spotted by coverity. Fixes cid 432.
23490       Bugfix on 0.2.3.1-alpha, closes bug 4637.
23493 Changes in version 0.2.3.8-alpha - 2011-11-22
23494   Tor 0.2.3.8-alpha fixes some crash and assert bugs, including a
23495   socketpair-related bug that has been bothering Windows users. It adds
23496   support to serve microdescriptors to controllers, so Vidalia's network
23497   map can resume listing relays (once Vidalia implements its side),
23498   and adds better support for hardware AES acceleration. Finally, it
23499   starts the process of adjusting the bandwidth cutoff for getting the
23500   "Fast" flag from 20KB to (currently) 32KB -- preliminary results show
23501   that tiny relays harm performance more than they help network capacity.
23503   o Major bugfixes:
23504     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
23505       that it doesn't attempt to allocate a socketpair. This could cause
23506       some problems on Windows systems with overzealous firewalls. Fix for
23507       bug 4457; workaround for Libevent versions 2.0.1-alpha through
23508       2.0.15-stable.
23509     - Correctly sanity-check that we don't underflow on a memory
23510       allocation (and then assert) for hidden service introduction
23511       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
23512       bugfix on 0.2.1.5-alpha.
23513     - Remove the artificially low cutoff of 20KB to guarantee the Fast
23514       flag. In the past few years the average relay speed has picked
23515       up, and while the "top 7/8 of the network get the Fast flag" and
23516       "all relays with 20KB or more of capacity get the Fast flag" rules
23517       used to have the same result, now the top 7/8 of the network has
23518       a capacity more like 32KB. Bugfix on 0.2.1.14-rc. Fixes bug 4489.
23519     - Fix a rare assertion failure when checking whether a v0 hidden
23520       service descriptor has any usable introduction points left, and
23521       we don't have enough information to build a circuit to the first
23522       intro point named in the descriptor. The HS client code in
23523       0.2.3.x no longer uses v0 HS descriptors, but this assertion can
23524       trigger on (and crash) v0 HS authorities. Fixes bug 4411.
23525       Bugfix on 0.2.3.1-alpha; diagnosed by frosty_un.
23526     - Make bridge authorities not crash when they are asked for their own
23527       descriptor. Bugfix on 0.2.3.7-alpha, reported by Lucky Green.
23528     - When running as a client, do not print a misleading (and plain
23529       wrong) log message that we're collecting "directory request"
23530       statistics: clients don't collect statistics. Also don't create a
23531       useless (because empty) stats file in the stats/ directory. Fixes
23532       bug 4353; bugfix on 0.2.2.34 and 0.2.3.7-alpha.
23534   o Major features:
23535     - Allow Tor controllers like Vidalia to obtain the microdescriptor
23536       for a relay by identity digest or nickname. Previously,
23537       microdescriptors were only available by their own digests, so a
23538       controller would have to ask for and parse the whole microdescriptor
23539       consensus in order to look up a single relay's microdesc. Fixes
23540       bug 3832; bugfix on 0.2.3.1-alpha.
23541     - Use OpenSSL's EVP interface for AES encryption, so that all AES
23542       operations can use hardware acceleration (if present). Resolves
23543       ticket 4442.
23545   o Minor bugfixes (on 0.2.2.x and earlier):
23546     - Detect failure to initialize Libevent. This fix provides better
23547       detection for future instances of bug 4457.
23548     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
23549       function. This was eating up hideously large amounts of time on some
23550       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
23551     - Don't warn about unused log_mutex in log.c when building with
23552       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
23553       0.1.0.6-rc which introduced --disable-threads.
23554     - Allow manual 'authenticate' commands to the controller interface
23555       from netcat (nc) as well as telnet. We were rejecting them because
23556       they didn't come with the expected whitespace at the end of the
23557       command. Bugfix on 0.1.1.1-alpha; fixes bug 2893.
23558     - Fix some (not actually triggerable) buffer size checks in usage of
23559       tor_inet_ntop. Fixes bug 4434; bugfix on Tor 0.2.0.1-alpha. Patch
23560       by Anders Sundman.
23561     - Fix parsing of some corner-cases with tor_inet_pton(). Fixes
23562       bug 4515; bugfix on 0.2.0.1-alpha; fix by Anders Sundman.
23563     - When configuring, starting, or stopping an NT service, stop
23564       immediately after the service configuration attempt has succeeded
23565       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
23566     - When sending a NETINFO cell, include the original address
23567       received for the other side, not its canonical address. Found
23568       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
23569     - Rename the bench_{aes,dmap} functions to test_*, so that tinytest
23570       can pick them up when the tests aren't disabled. Bugfix on
23571       0.2.2.4-alpha which introduced tinytest.
23572     - Fix a memory leak when we check whether a hidden service
23573       descriptor has any usable introduction points left. Fixes bug
23574       4424. Bugfix on 0.2.2.25-alpha.
23575     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
23576       occurred when a client tried to fetch a descriptor for a bridge
23577       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
23579   o Minor bugfixes (on 0.2.3.x):
23580     - Make util unit tests build correctly with MSVC. Bugfix on
23581       0.2.3.3-alpha. Patch by Gisle Vanem.
23582     - Successfully detect AUTH_CHALLENGE cells with no recognized
23583       authentication type listed. Fixes bug 4367; bugfix on 0.2.3.6-alpha.
23584       Found by frosty_un.
23585     - If a relay receives an AUTH_CHALLENGE cell it can't answer,
23586       it should still send a NETINFO cell to allow the connection to
23587       become open. Fixes bug 4368; fix on 0.2.3.6-alpha; bug found by
23588       "frosty".
23589     - Log less loudly when we get an invalid authentication certificate
23590       from a source other than a directory authority: it's not unusual
23591       to see invalid certs because of clock skew. Fixes bug 4370; bugfix
23592       on 0.2.3.6-alpha.
23593     - Tolerate servers with more clock skew in their authentication
23594       certificates than previously. Fixes bug 4371; bugfix on
23595       0.2.3.6-alpha.
23596     - Fix a couple of compile warnings on Windows. Fixes bug 4469; bugfix
23597       on 0.2.3.4-alpha and 0.2.3.6-alpha.
23599   o Minor features:
23600     - Add two new config options for directory authorities:
23601       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
23602       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
23603       that is always sufficient to satisfy the bandwidth requirement for
23604       the Guard flag. Now it will be easier for researchers to simulate
23605       Tor networks with different values. Resolves ticket 4484.
23606     - When Tor ignores a hidden service specified in its configuration,
23607       include the hidden service's directory in the warning message.
23608       Previously, we would only tell the user that some hidden service
23609       was ignored. Bugfix on 0.0.6; fixes bug 4426.
23610     - When we fail to initialize Libevent, retry with IOCP disabled so we
23611       don't need to turn on multi-threading support in Libevent, which in
23612       turn requires a working socketpair(). This is a workaround for bug
23613       4457, which affects Libevent versions from 2.0.1-alpha through
23614       2.0.15-stable.
23615     - Detect when we try to build on a platform that doesn't define
23616       AF_UNSPEC to 0. We don't work there, so refuse to compile.
23617     - Update to the November 1 2011 Maxmind GeoLite Country database.
23619   o Packaging changes:
23620     - Make it easier to automate expert package builds on Windows,
23621       by removing an absolute path from makensis.exe command.
23623   o Code simplifications and refactoring:
23624     - Remove some redundant #include directives throughout the code.
23625       Patch from Andrea Gelmini.
23626     - Unconditionally use OpenSSL's AES implementation instead of our
23627       old built-in one. OpenSSL's AES has been better for a while, and
23628       relatively few servers should still be on any version of OpenSSL
23629       that doesn't have good optimized assembly AES.
23630     - Use the name "CERTS" consistently to refer to the new cell type;
23631       we were calling it CERT in some places and CERTS in others.
23633   o Testing:
23634     - Numerous new unit tests for functions in util.c and address.c by
23635       Anders Sundman.
23636     - The long-disabled benchmark tests are now split into their own
23637       ./src/test/bench binary.
23638     - The benchmark tests can now use more accurate timers than
23639       gettimeofday() when such timers are available.
23642 Changes in version 0.2.3.7-alpha - 2011-10-30
23643   Tor 0.2.3.7-alpha fixes a crash bug in 0.2.3.6-alpha introduced by
23644   the new v3 handshake. It also resolves yet another bridge address
23645   enumeration issue.
23647   o Major bugfixes:
23648     - If we mark an OR connection for close based on a cell we process,
23649       don't process any further cells on it. We already avoid further
23650       reads on marked-for-close connections, but now we also discard the
23651       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
23652       which was the first version where we might mark a connection for
23653       close based on processing a cell on it.
23654     - Fix a double-free bug that would occur when we received an invalid
23655       certificate in a CERT cell in the new v3 handshake. Fixes bug 4343;
23656       bugfix on 0.2.3.6-alpha.
23657     - Bridges no longer include their address in NETINFO cells on outgoing
23658       OR connections, to allow them to blend in better with clients.
23659       Removes another avenue for enumerating bridges. Reported by
23660       "troll_un". Fixes bug 4348; bugfix on 0.2.0.10-alpha, when NETINFO
23661       cells were introduced.
23663   o Trivial fixes:
23664     - Fixed a typo in a hibernation-related log message. Fixes bug 4331;
23665       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
23668 Changes in version 0.2.3.6-alpha - 2011-10-26
23669   Tor 0.2.3.6-alpha includes the fix from 0.2.2.34 for a critical
23670   anonymity vulnerability where an attacker can deanonymize Tor
23671   users. Everybody should upgrade.
23673   This release also features support for a new v3 connection handshake
23674   protocol, and fixes to make hidden service connections more robust.
23676   o Major features:
23677     - Implement a new handshake protocol (v3) for authenticating Tors to
23678       each other over TLS. It should be more resistant to fingerprinting
23679       than previous protocols, and should require less TLS hacking for
23680       future Tor implementations. Implements proposal 176.
23681     - Allow variable-length padding cells to disguise the length of
23682       Tor's TLS records. Implements part of proposal 184.
23684   o Privacy/anonymity fixes (clients):
23685     - Clients and bridges no longer send TLS certificate chains on
23686       outgoing OR connections. Previously, each client or bridge would
23687       use the same cert chain for all outgoing OR connections until
23688       its IP address changes, which allowed any relay that the client
23689       or bridge contacted to determine which entry guards it is using.
23690       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
23691     - If a relay receives a CREATE_FAST cell on a TLS connection, it
23692       no longer considers that connection as suitable for satisfying a
23693       circuit EXTEND request. Now relays can protect clients from the
23694       CVE-2011-2768 issue even if the clients haven't upgraded yet.
23695     - Directory authorities no longer assign the Guard flag to relays
23696       that haven't upgraded to the above "refuse EXTEND requests
23697       to client connections" fix. Now directory authorities can
23698       protect clients from the CVE-2011-2768 issue even if neither
23699       the clients nor the relays have upgraded yet. There's a new
23700       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
23701       to let us transition smoothly, else tomorrow there would be no
23702       guard relays.
23704   o Major bugfixes (hidden services):
23705     - Improve hidden service robustness: when an attempt to connect to
23706       a hidden service ends, be willing to refetch its hidden service
23707       descriptors from each of the HSDir relays responsible for them
23708       immediately. Previously, we would not consider refetching the
23709       service's descriptors from each HSDir for 15 minutes after the last
23710       fetch, which was inconvenient if the hidden service was not running
23711       during the first attempt. Bugfix on 0.2.0.18-alpha; fixes bug 3335.
23712     - When one of a hidden service's introduction points appears to be
23713       unreachable, stop trying it. Previously, we would keep trying
23714       to build circuits to the introduction point until we lost the
23715       descriptor, usually because the user gave up and restarted Tor.
23716       Partly fixes bug 3825.
23717     - Don't launch a useless circuit after failing to use one of a
23718       hidden service's introduction points. Previously, we would
23719       launch a new introduction circuit, but not set the hidden service
23720       which that circuit was intended to connect to, so it would never
23721       actually be used. A different piece of code would then create a
23722       new introduction circuit correctly. Bug reported by katmagic and
23723       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
23725   o Major bugfixes (other):
23726     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
23727       that they initiated. Relays could distinguish incoming bridge
23728       connections from client connections, creating another avenue for
23729       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
23730       Found by "frosty_un".
23731     - Don't update the AccountingSoftLimitHitAt state file entry whenever
23732       tor gets started. This prevents a wrong average bandwidth
23733       estimate, which would cause relays to always start a new accounting
23734       interval at the earliest possible moment. Fixes bug 2003; bugfix
23735       on 0.2.2.7-alpha. Reported by BryonEldridge, who also helped
23736       immensely in tracking this bug down.
23737     - Fix a crash bug when changing node restrictions while a DNS lookup
23738       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
23739       by "Tey'".
23741   o Minor bugfixes (on 0.2.2.x and earlier):
23742     - When a hidden service turns an extra service-side introduction
23743       circuit into a general-purpose circuit, free the rend_data and
23744       intro_key fields first, so we won't leak memory if the circuit
23745       is cannibalized for use as another service-side introduction
23746       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
23747     - Rephrase the log message emitted if the TestSocks check is
23748       successful. Patch from Fabian Keil; fixes bug 4094.
23749     - Bridges now skip DNS self-tests, to act a little more stealthily.
23750       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
23751       bridges. Patch by "warms0x".
23752     - Remove a confusing dollar sign from the example fingerprint in the
23753       man page, and also make the example fingerprint a valid one. Fixes
23754       bug 4309; bugfix on 0.2.1.3-alpha.
23755     - Fix internal bug-checking logic that was supposed to catch
23756       failures in digest generation so that it will fail more robustly
23757       if we ask for a nonexistent algorithm. Found by Coverity Scan.
23758       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
23759     - Report any failure in init_keys() calls launched because our
23760       IP address has changed. Spotted by Coverity Scan. Bugfix on
23761       0.1.1.4-alpha; fixes CID 484.
23763   o Minor bugfixes (on 0.2.3.x):
23764     - Fix a bug in configure.in that kept it from building a configure
23765       script with autoconf versions earlier than 2.61. Fixes bug 2430;
23766       bugfix on 0.2.3.1-alpha.
23767     - Don't warn users that they are exposing a client port to the
23768       Internet if they have specified an RFC1918 address. Previously,
23769       we would warn if the user had specified any non-loopback
23770       address. Bugfix on 0.2.3.3-alpha. Fixes bug 4018; reported by Tas.
23771     - Fix memory leaks in the failing cases of the new SocksPort and
23772       ControlPort code. Found by Coverity Scan. Bugfix on 0.2.3.3-alpha;
23773       fixes coverity CIDs 485, 486, and 487.
23775   o Minor features:
23776     - When a hidden service's introduction point times out, consider
23777       trying it again during the next attempt to connect to the
23778       HS. Previously, we would not try it again unless a newly fetched
23779       descriptor contained it. Required by fixes for bugs 1297 and 3825.
23780     - The next version of Windows will be called Windows 8, and it has
23781       a major version of 6, minor version of 2. Correctly identify that
23782       version instead of calling it "Very recent version". Resolves
23783       ticket 4153; reported by funkstar.
23784     - The Bridge Authority now writes statistics on how many bridge
23785       descriptors it gave out in total, and how many unique descriptors
23786       it gave out. It also lists how often the most and least commonly
23787       fetched descriptors were given out, as well as the median and
23788       25th/75th percentile. Implements tickets 4200 and 4294.
23789     - Update to the October 4 2011 Maxmind GeoLite Country database.
23791   o Code simplifications and refactoring:
23792     - Remove some old code to remember statistics about which descriptors
23793       we've served as a directory mirror. The feature wasn't used and
23794       is outdated now that microdescriptors are around.
23795     - Rename Tor functions that turn strings into addresses, so that
23796       "parse" indicates that no hostname resolution occurs, and
23797       "lookup" indicates that hostname resolution may occur. This
23798       should help prevent mistakes in the future. Fixes bug 3512.
23801 Changes in version 0.2.2.34 - 2011-10-26
23802   Tor 0.2.2.34 fixes a critical anonymity vulnerability where an attacker
23803   can deanonymize Tor users. Everybody should upgrade.
23805   The attack relies on four components: 1) Clients reuse their TLS cert
23806   when talking to different relays, so relays can recognize a user by
23807   the identity key in her cert. 2) An attacker who knows the client's
23808   identity key can probe each guard relay to see if that identity key
23809   is connected to that guard relay right now. 3) A variety of active
23810   attacks in the literature (starting from "Low-Cost Traffic Analysis
23811   of Tor" by Murdoch and Danezis in 2005) allow a malicious website to
23812   discover the guard relays that a Tor user visiting the website is using.
23813   4) Clients typically pick three guards at random, so the set of guards
23814   for a given user could well be a unique fingerprint for her. This
23815   release fixes components #1 and #2, which is enough to block the attack;
23816   the other two remain as open research problems. Special thanks to
23817   "frosty_un" for reporting the issue to us!
23819   Clients should upgrade so they are no longer recognizable by the TLS
23820   certs they present. Relays should upgrade so they no longer allow a
23821   remote attacker to probe them to test whether unpatched clients are
23822   currently connected to them.
23824   This release also fixes several vulnerabilities that allow an attacker
23825   to enumerate bridge relays. Some bridge enumeration attacks still
23826   remain; see for example proposal 188.
23828   o Privacy/anonymity fixes (clients):
23829     - Clients and bridges no longer send TLS certificate chains on
23830       outgoing OR connections. Previously, each client or bridge would
23831       use the same cert chain for all outgoing OR connections until
23832       its IP address changes, which allowed any relay that the client
23833       or bridge contacted to determine which entry guards it is using.
23834       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
23835     - If a relay receives a CREATE_FAST cell on a TLS connection, it
23836       no longer considers that connection as suitable for satisfying a
23837       circuit EXTEND request. Now relays can protect clients from the
23838       CVE-2011-2768 issue even if the clients haven't upgraded yet.
23839     - Directory authorities no longer assign the Guard flag to relays
23840       that haven't upgraded to the above "refuse EXTEND requests
23841       to client connections" fix. Now directory authorities can
23842       protect clients from the CVE-2011-2768 issue even if neither
23843       the clients nor the relays have upgraded yet. There's a new
23844       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
23845       to let us transition smoothly, else tomorrow there would be no
23846       guard relays.
23848   o Privacy/anonymity fixes (bridge enumeration):
23849     - Bridge relays now do their directory fetches inside Tor TLS
23850       connections, like all the other clients do, rather than connecting
23851       directly to the DirPort like public relays do. Removes another
23852       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
23853     - Bridges relays now build circuits for themselves in a more similar
23854       way to how clients build them. Removes another avenue for
23855       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
23856       when bridges were introduced.
23857     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
23858       that they initiated. Relays could distinguish incoming bridge
23859       connections from client connections, creating another avenue for
23860       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
23861       Found by "frosty_un".
23863   o Major bugfixes:
23864     - Fix a crash bug when changing node restrictions while a DNS lookup
23865       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
23866       by "Tey'".
23867     - Don't launch a useless circuit after failing to use one of a
23868       hidden service's introduction points. Previously, we would
23869       launch a new introduction circuit, but not set the hidden service
23870       which that circuit was intended to connect to, so it would never
23871       actually be used. A different piece of code would then create a
23872       new introduction circuit correctly. Bug reported by katmagic and
23873       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
23875   o Minor bugfixes:
23876     - Change an integer overflow check in the OpenBSD_Malloc code so
23877       that GCC is less likely to eliminate it as impossible. Patch
23878       from Mansour Moufid. Fixes bug 4059.
23879     - When a hidden service turns an extra service-side introduction
23880       circuit into a general-purpose circuit, free the rend_data and
23881       intro_key fields first, so we won't leak memory if the circuit
23882       is cannibalized for use as another service-side introduction
23883       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
23884     - Bridges now skip DNS self-tests, to act a little more stealthily.
23885       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
23886       bridges. Patch by "warms0x".
23887     - Fix internal bug-checking logic that was supposed to catch
23888       failures in digest generation so that it will fail more robustly
23889       if we ask for a nonexistent algorithm. Found by Coverity Scan.
23890       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
23891     - Report any failure in init_keys() calls launched because our
23892       IP address has changed. Spotted by Coverity Scan. Bugfix on
23893       0.1.1.4-alpha; fixes CID 484.
23895   o Minor bugfixes (log messages and documentation):
23896     - Remove a confusing dollar sign from the example fingerprint in the
23897       man page, and also make the example fingerprint a valid one. Fixes
23898       bug 4309; bugfix on 0.2.1.3-alpha.
23899     - The next version of Windows will be called Windows 8, and it has
23900       a major version of 6, minor version of 2. Correctly identify that
23901       version instead of calling it "Very recent version". Resolves
23902       ticket 4153; reported by funkstar.
23903     - Downgrade log messages about circuit timeout calibration from
23904       "notice" to "info": they don't require or suggest any human
23905       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
23906       bugfix on 0.2.2.14-alpha.
23908   o Minor features:
23909     - Turn on directory request statistics by default and include them in
23910       extra-info descriptors. Don't break if we have no GeoIP database.
23911       Backported from 0.2.3.1-alpha; implements ticket 3951.
23912     - Update to the October 4 2011 Maxmind GeoLite Country database.
23915 Changes in version 0.2.1.31 - 2011-10-26
23916   Tor 0.2.1.31 backports important security and privacy fixes for
23917   oldstable. This release is intended only for package maintainers and
23918   others who cannot use the 0.2.2 stable series. All others should be
23919   using Tor 0.2.2.x or newer.
23921   o Security fixes (also included in 0.2.2.x):
23922     - Replace all potentially sensitive memory comparison operations
23923       with versions whose runtime does not depend on the data being
23924       compared. This will help resist a class of attacks where an
23925       adversary can use variations in timing information to learn
23926       sensitive data. Fix for one case of bug 3122. (Safe memcmp
23927       implementation by Robert Ransom based partially on code by DJB.)
23928     - Fix an assert in parsing router descriptors containing IPv6
23929       addresses. This one took down the directory authorities when
23930       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
23932   o Privacy/anonymity fixes (also included in 0.2.2.x):
23933     - Clients and bridges no longer send TLS certificate chains on
23934       outgoing OR connections. Previously, each client or bridge would
23935       use the same cert chain for all outgoing OR connections until
23936       its IP address changes, which allowed any relay that the client
23937       or bridge contacted to determine which entry guards it is using.
23938       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
23939     - If a relay receives a CREATE_FAST cell on a TLS connection, it
23940       no longer considers that connection as suitable for satisfying a
23941       circuit EXTEND request. Now relays can protect clients from the
23942       CVE-2011-2768 issue even if the clients haven't upgraded yet.
23943     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
23944       that they initiated. Relays could distinguish incoming bridge
23945       connections from client connections, creating another avenue for
23946       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
23947       Found by "frosty_un".
23948     - When receiving a hidden service descriptor, check that it is for
23949       the hidden service we wanted. Previously, Tor would store any
23950       hidden service descriptors that a directory gave it, whether it
23951       wanted them or not. This wouldn't have let an attacker impersonate
23952       a hidden service, but it did let directories pre-seed a client
23953       with descriptors that it didn't want. Bugfix on 0.0.6.
23954     - Avoid linkability based on cached hidden service descriptors: forget
23955       all hidden service descriptors cached as a client when processing a
23956       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
23957     - Make the bridge directory authority refuse to answer directory
23958       requests for "all" descriptors. It used to include bridge
23959       descriptors in its answer, which was a major information leak.
23960       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
23961     - Don't attach new streams to old rendezvous circuits after SIGNAL
23962       NEWNYM. Previously, we would keep using an existing rendezvous
23963       circuit if it remained open (i.e. if it were kept open by a
23964       long-lived stream, or if a new stream were attached to it before
23965       Tor could notice that it was old and no longer in use). Bugfix on
23966       0.1.1.15-rc; fixes bug 3375.
23968   o Minor bugfixes (also included in 0.2.2.x):
23969     - When we restart our relay, we might get a successful connection
23970       from the outside before we've started our reachability tests,
23971       triggering a warning: "ORPort found reachable, but I have no
23972       routerinfo yet. Failing to inform controller of success." This
23973       bug was harmless unless Tor is running under a controller
23974       like Vidalia, in which case the controller would never get a
23975       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
23976       fixes bug 1172.
23977     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
23978       enabled. Fixes bug 1526.
23979     - Remove undocumented option "-F" from tor-resolve: it hasn't done
23980       anything since 0.2.1.16-rc.
23981     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
23982       None of the cases where we did this before were wrong, but by making
23983       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
23984     - Fix a rare crash bug that could occur when a client was configured
23985       with a large number of bridges. Fixes bug 2629; bugfix on
23986       0.2.1.2-alpha. Bugfix by trac user "shitlei".
23987     - Correct the warning displayed when a rendezvous descriptor exceeds
23988       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
23989       John Brooks.
23990     - Fix an uncommon assertion failure when running with DNSPort under
23991       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
23992     - When warning about missing zlib development packages during compile,
23993       give the correct package names. Bugfix on 0.2.0.1-alpha.
23994     - Require that introduction point keys and onion keys have public
23995       exponent 65537. Bugfix on 0.2.0.10-alpha.
23996     - Do not crash when our configuration file becomes unreadable, for
23997       example due to a permissions change, between when we start up
23998       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
23999       on 0.0.9pre6.
24000     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
24001       Fixes bug 3208.
24002     - Always NUL-terminate the sun_path field of a sockaddr_un before
24003       passing it to the kernel. (Not a security issue: kernels are
24004       smart enough to reject bad sockaddr_uns.) Found by Coverity;
24005       CID #428. Bugfix on Tor 0.2.0.3-alpha.
24006     - Don't stack-allocate the list of supplementary GIDs when we're
24007       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
24008       could take up to 256K, which is way too much stack. Found by
24009       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
24011   o Minor bugfixes (only in 0.2.1.x):
24012     - Resume using micro-version numbers in 0.2.1.x: our Debian packages
24013       rely on them. Bugfix on 0.2.1.30.
24014     - Use git revisions instead of svn revisions when generating our
24015       micro-version numbers. Bugfix on 0.2.1.15-rc; fixes bug 2402.
24017   o Minor features (also included in 0.2.2.x):
24018     - Adjust the expiration time on our SSL session certificates to
24019       better match SSL certs seen in the wild. Resolves ticket 4014.
24020     - Allow nameservers with IPv6 address. Resolves bug 2574.
24021     - Update to the October 4 2011 Maxmind GeoLite Country database.
24024 Changes in version 0.2.3.5-alpha - 2011-09-28
24025   Tor 0.2.3.5-alpha fixes two bugs that make it possible to enumerate
24026   bridge relays; fixes an assertion error that many users started hitting
24027   today; and adds the ability to refill token buckets more often than
24028   once per second, allowing significant performance improvements.
24030   o Security fixes:
24031     - Bridge relays now do their directory fetches inside Tor TLS
24032       connections, like all the other clients do, rather than connecting
24033       directly to the DirPort like public relays do. Removes another
24034       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
24035     - Bridges relays now build circuits for themselves in a more similar
24036       way to how clients build them. Removes another avenue for
24037       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
24038       when bridges were introduced.
24040   o Major bugfixes:
24041     - Fix an "Assertion md->held_by_node == 1 failed" error that could
24042       occur when the same microdescriptor was referenced by two node_t
24043       objects at once. Fix for bug 4118; bugfix on Tor 0.2.3.1-alpha.
24045   o Major features (networking):
24046     - Add a new TokenBucketRefillInterval option to refill token buckets
24047       more frequently than once per second. This should improve network
24048       performance, alleviate queueing problems, and make traffic less
24049       bursty. Implements proposal 183; closes ticket 3630. Design by
24050       Florian Tschorsch and Björn Scheuermann; implementation by
24051       Florian Tschorsch.
24053   o Minor bugfixes:
24054     - Change an integer overflow check in the OpenBSD_Malloc code so
24055       that GCC is less likely to eliminate it as impossible. Patch
24056       from Mansour Moufid. Fixes bug 4059.
24058   o Minor bugfixes (usability):
24059     - Downgrade log messages about circuit timeout calibration from
24060       "notice" to "info": they don't require or suggest any human
24061       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
24062       bugfix on 0.2.2.14-alpha.
24064   o Minor features (diagnostics):
24065     - When the system call to create a listener socket fails, log the
24066       error message explaining why. This may help diagnose bug 4027.
24069 Changes in version 0.2.3.4-alpha - 2011-09-13
24070   Tor 0.2.3.4-alpha includes the fixes from 0.2.2.33, including a slight
24071   tweak to Tor's TLS handshake that makes relays and bridges that run
24072   this new version reachable from Iran again. It also fixes a few new
24073   bugs in 0.2.3.x, and teaches relays to recognize when they're not
24074   listed in the network consensus and republish.
24076   o Major bugfixes (also part of 0.2.2.33):
24077     - Avoid an assertion failure when reloading a configuration with
24078       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
24079       3923; bugfix on 0.2.2.25-alpha.
24081   o Minor features (security, also part of 0.2.2.33):
24082     - Check for replays of the public-key encrypted portion of an
24083       INTRODUCE1 cell, in addition to the current check for replays of
24084       the g^x value. This prevents a possible class of active attacks
24085       by an attacker who controls both an introduction point and a
24086       rendezvous point, and who uses the malleability of AES-CTR to
24087       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
24088       that these attacks are infeasible (requiring the attacker to send
24089       on the order of zettabytes of altered cells in a short interval),
24090       but we'd rather block them off in case there are any classes of
24091       this attack that we missed. Reported by Willem Pinckaers.
24093   o Minor features (also part of 0.2.2.33):
24094     - Adjust the expiration time on our SSL session certificates to
24095       better match SSL certs seen in the wild. Resolves ticket 4014.
24096     - Change the default required uptime for a relay to be accepted as
24097       a HSDir (hidden service directory) from 24 hours to 25 hours.
24098       Improves on 0.2.0.10-alpha; resolves ticket 2649.
24099     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
24100       authorities to abstain from voting on assignment of the HSDir
24101       consensus flag. Related to bug 2649.
24102     - Update to the September 6 2011 Maxmind GeoLite Country database.
24104   o Minor bugfixes (also part of 0.2.2.33):
24105     - Demote the 'replay detected' log message emitted when a hidden
24106       service receives the same Diffie-Hellman public key in two different
24107       INTRODUCE2 cells to info level. A normal Tor client can cause that
24108       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
24109       fixes part of bug 2442.
24110     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
24111       level. There is nothing that a hidden service's operator can do
24112       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
24113       of bug 2442.
24114     - Clarify a log message specifying the characters permitted in
24115       HiddenServiceAuthorizeClient client names. Previously, the log
24116       message said that "[A-Za-z0-9+-_]" were permitted; that could have
24117       given the impression that every ASCII character between "+" and "_"
24118       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
24120   o Build fixes (also part of 0.2.2.33):
24121     - Clean up some code issues that prevented Tor from building on older
24122       BSDs. Fixes bug 3894; reported by "grarpamp".
24123     - Search for a platform-specific version of "ar" when cross-compiling.
24124       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
24126   o Major bugfixes:
24127     - Fix a bug where the SocksPort option (for example) would get
24128       ignored and replaced by the default if a SocksListenAddress
24129       option was set. Bugfix on 0.2.3.3-alpha; fixes bug 3936. Fix by
24130       Fabian Keil.
24132   o Major features:
24133     - Relays now try regenerating and uploading their descriptor more
24134       frequently if they are not listed in the consensus, or if the
24135       version of their descriptor listed in the consensus is too
24136       old. This fix should prevent situations where a server declines
24137       to re-publish itself because it has done so too recently, even
24138       though the authorities decided not to list its recent-enough
24139       descriptor. Fix for bug 3327.
24141   o Minor features:
24142     - Relays now include a reason for regenerating their descriptors
24143       in an HTTP header when uploading to the authorities. This will
24144       make it easier to debug descriptor-upload issues in the future.
24145     - When starting as root and then changing our UID via the User
24146       control option, and we have a ControlSocket configured, make sure
24147       that the ControlSocket is owned by the same account that Tor will
24148       run under. Implements ticket 3421; fix by Jérémy Bobbio.
24150   o Minor bugfixes:
24151     - Abort if tor_vasprintf fails in connection_printf_to_buf (a
24152       utility function used in the control-port code). This shouldn't
24153       ever happen unless Tor is completely out of memory, but if it did
24154       happen and Tor somehow recovered from it, Tor could have sent a log
24155       message to a control port in the middle of a reply to a controller
24156       command. Fixes part of bug 3428; bugfix on 0.1.2.3-alpha.
24157     - Make 'FetchUselessDescriptors' cause all descriptor types and
24158       all consensus types (including microdescriptors) to get fetched.
24159       Fixes bug 3851; bugfix on 0.2.3.1-alpha.
24161   o Code refactoring:
24162     - Make a new "entry connection" struct as an internal subtype of "edge
24163       connection", to simplify the code and make exit connections smaller.
24166 Changes in version 0.2.2.33 - 2011-09-13
24167   Tor 0.2.2.33 fixes several bugs, and includes a slight tweak to Tor's
24168   TLS handshake that makes relays and bridges that run this new version
24169   reachable from Iran again.
24171   o Major bugfixes:
24172     - Avoid an assertion failure when reloading a configuration with
24173       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
24174       3923; bugfix on 0.2.2.25-alpha.
24176   o Minor features (security):
24177     - Check for replays of the public-key encrypted portion of an
24178       INTRODUCE1 cell, in addition to the current check for replays of
24179       the g^x value. This prevents a possible class of active attacks
24180       by an attacker who controls both an introduction point and a
24181       rendezvous point, and who uses the malleability of AES-CTR to
24182       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
24183       that these attacks are infeasible (requiring the attacker to send
24184       on the order of zettabytes of altered cells in a short interval),
24185       but we'd rather block them off in case there are any classes of
24186       this attack that we missed. Reported by Willem Pinckaers.
24188   o Minor features:
24189     - Adjust the expiration time on our SSL session certificates to
24190       better match SSL certs seen in the wild. Resolves ticket 4014.
24191     - Change the default required uptime for a relay to be accepted as
24192       a HSDir (hidden service directory) from 24 hours to 25 hours.
24193       Improves on 0.2.0.10-alpha; resolves ticket 2649.
24194     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
24195       authorities to abstain from voting on assignment of the HSDir
24196       consensus flag. Related to bug 2649.
24197     - Update to the September 6 2011 Maxmind GeoLite Country database.
24199   o Minor bugfixes (documentation and log messages):
24200     - Correct the man page to explain that HashedControlPassword and
24201       CookieAuthentication can both be set, in which case either method
24202       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
24203       when we decided to allow these config options to both be set. Issue
24204       raised by bug 3898.
24205     - Demote the 'replay detected' log message emitted when a hidden
24206       service receives the same Diffie-Hellman public key in two different
24207       INTRODUCE2 cells to info level. A normal Tor client can cause that
24208       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
24209       fixes part of bug 2442.
24210     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
24211       level. There is nothing that a hidden service's operator can do
24212       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
24213       of bug 2442.
24214     - Clarify a log message specifying the characters permitted in
24215       HiddenServiceAuthorizeClient client names. Previously, the log
24216       message said that "[A-Za-z0-9+-_]" were permitted; that could have
24217       given the impression that every ASCII character between "+" and "_"
24218       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
24220   o Build fixes:
24221     - Provide a substitute implementation of lround() for MSVC, which
24222       apparently lacks it. Patch from Gisle Vanem.
24223     - Clean up some code issues that prevented Tor from building on older
24224       BSDs. Fixes bug 3894; reported by "grarpamp".
24225     - Search for a platform-specific version of "ar" when cross-compiling.
24226       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
24229 Changes in version 0.2.3.3-alpha - 2011-09-01
24230   Tor 0.2.3.3-alpha adds a new "stream isolation" feature to improve Tor's
24231   security, and provides client-side support for the microdescriptor
24232   and optimistic data features introduced earlier in the 0.2.3.x
24233   series. It also includes numerous critical bugfixes in the (optional)
24234   bufferevent-based networking backend.
24236   o Major features (stream isolation):
24237     - You can now configure Tor so that streams from different
24238       applications are isolated on different circuits, to prevent an
24239       attacker who sees your streams as they leave an exit node from
24240       linking your sessions to one another. To do this, choose some way
24241       to distinguish the applications: have them connect to different
24242       SocksPorts, or have one of them use SOCKS4 while the other uses
24243       SOCKS5, or have them pass different authentication strings to the
24244       SOCKS proxy. Then, use the new SocksPort syntax to configure the
24245       degree of isolation you need. This implements Proposal 171.
24246     - There's a new syntax for specifying multiple client ports (such as
24247       SOCKSPort, TransPort, DNSPort, NATDPort): you can now just declare
24248       multiple *Port entries with full addr:port syntax on each.
24249       The old *ListenAddress format is still supported, but you can't
24250       mix it with the new *Port syntax.
24252   o Major features (other):
24253     - Enable microdescriptor fetching by default for clients. This allows
24254       clients to download a much smaller amount of directory information.
24255       To disable it (and go back to the old-style consensus and
24256       descriptors), set "UseMicrodescriptors 0" in your torrc file.
24257     - Tor's firewall-helper feature, introduced in 0.2.3.1-alpha (see the
24258       "PortForwarding" config option), now supports Windows.
24259     - When using an exit relay running 0.2.3.x, clients can now
24260       "optimistically" send data before the exit relay reports that
24261       the stream has opened. This saves a round trip when starting
24262       connections where the client speaks first (such as web browsing).
24263       This behavior is controlled by a consensus parameter (currently
24264       disabled). To turn it on or off manually, use the "OptimisticData"
24265       torrc option. Implements proposal 181; code by Ian Goldberg.
24267   o Major bugfixes (bufferevents, fixes on 0.2.3.1-alpha):
24268     - When using IOCP on Windows, we need to enable Libevent windows
24269       threading support.
24270     - The IOCP backend now works even when the user has not specified
24271       the (internal, debugging-only) _UseFilteringSSLBufferevents option.
24272       Fixes part of bug 3752.
24273     - Correctly record the bytes we've read and written when using
24274       bufferevents, so that we can include them in our bandwidth history
24275       and advertised bandwidth. Fixes bug 3803.
24276     - Apply rate-limiting only at the bottom of a chain of filtering
24277       bufferevents. This prevents us from filling up internal read
24278       buffers and violating rate-limits when filtering bufferevents
24279       are enabled. Fixes part of bug 3804.
24280     - Add high-watermarks to the output buffers for filtered
24281       bufferevents. This prevents us from filling up internal write
24282       buffers and wasting CPU cycles when filtering bufferevents are
24283       enabled. Fixes part of bug 3804.
24284     - Correctly notice when data has been written from a bufferevent
24285       without flushing it completely. Fixes bug 3805.
24286     - Fix a bug where server-side tunneled bufferevent-based directory
24287       streams would get closed prematurely. Fixes bug 3814.
24288     - Fix a use-after-free error with per-connection rate-limiting
24289       buckets. Fixes bug 3888.
24291   o Major bugfixes (also part of 0.2.2.31-rc):
24292     - If we're configured to write our ControlPorts to disk, only write
24293       them after switching UID and creating the data directory. This way,
24294       we don't fail when starting up with a nonexistent DataDirectory
24295       and a ControlPortWriteToFile setting based on that directory. Fixes
24296       bug 3747; bugfix on Tor 0.2.2.26-beta.
24298   o Minor features:
24299     - Added a new CONF_CHANGED event so that controllers can be notified
24300       of any configuration changes made by other controllers, or by the
24301       user. Implements ticket 1692.
24302     - Use evbuffer_copyout() in inspect_evbuffer(). This fixes a memory
24303       leak when using bufferevents, and lets Libevent worry about how to
24304       best copy data out of a buffer.
24305     - Replace files in stats/ rather than appending to them. Now that we
24306       include statistics in extra-info descriptors, it makes no sense to
24307       keep old statistics forever. Implements ticket 2930.
24309   o Minor features (build compatibility):
24310     - Limited, experimental support for building with nmake and MSVC.
24311     - Provide a substitute implementation of lround() for MSVC, which
24312       apparently lacks it. Patch from Gisle Vanem.
24314   o Minor features (also part of 0.2.2.31-rc):
24315     - Update to the August 2 2011 Maxmind GeoLite Country database.
24317   o Minor bugfixes (on 0.2.3.x-alpha):
24318     - Fix a spurious warning when parsing SOCKS requests with
24319       bufferevents enabled. Fixes bug 3615; bugfix on 0.2.3.2-alpha.
24320     - Get rid of a harmless warning that could happen on relays running
24321       with bufferevents. The warning was caused by someone doing an http
24322       request to a relay's orport. Also don't warn for a few related
24323       non-errors. Fixes bug 3700; bugfix on 0.2.3.1-alpha.
24325   o Minor bugfixes (on 2.2.x and earlier):
24326     - Correct the man page to explain that HashedControlPassword and
24327       CookieAuthentication can both be set, in which case either method
24328       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
24329       when we decided to allow these config options to both be set. Issue
24330       raised by bug 3898.
24331     - The "--quiet" and "--hush" options now apply not only to Tor's
24332       behavior before logs are configured, but also to Tor's behavior in
24333       the absence of configured logs. Fixes bug 3550; bugfix on
24334       0.2.0.10-alpha.
24336   o Minor bugfixes (also part of 0.2.2.31-rc):
24337     - Write several files in text mode, on OSes that distinguish text
24338       mode from binary mode (namely, Windows). These files are:
24339       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
24340       that collect those statistics; 'client_keys' and 'hostname' for
24341       hidden services that use authentication; and (in the tor-gencert
24342       utility) newly generated identity and signing keys. Previously,
24343       we wouldn't specify text mode or binary mode, leading to an
24344       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
24345       the DirRecordUsageByCountry option which would have triggered
24346       the assertion failure was added), although this assertion failure
24347       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
24348     - Selectively disable deprecation warnings on OS X because Lion
24349       started deprecating the shipped copy of openssl. Fixes bug 3643.
24350     - Remove an extra pair of quotation marks around the error
24351       message in control-port STATUS_GENERAL BUG events. Bugfix on
24352       0.1.2.6-alpha; fixes bug 3732.
24353     - When unable to format an address as a string, report its value
24354       as "???" rather than reusing the last formatted address. Bugfix
24355       on 0.2.1.5-alpha.
24357   o Code simplifications and refactoring:
24358     - Rewrite the listener-selection logic so that parsing which ports
24359       we want to listen on is now separate from binding to the ports
24360       we want.
24362   o Build changes:
24363     - Building Tor with bufferevent support now requires Libevent
24364       2.0.13-stable or later. Previous versions of Libevent had bugs in
24365       SSL-related bufferevents and related issues that would make Tor
24366       work badly with bufferevents. Requiring 2.0.13-stable also allows
24367       Tor with bufferevents to take advantage of Libevent APIs
24368       introduced after 2.0.8-rc.
24371 Changes in version 0.2.2.32 - 2011-08-27
24372   The Tor 0.2.2 release series is dedicated to the memory of Andreas
24373   Pfitzmann (1958-2010), a pioneer in anonymity and privacy research,
24374   a founder of the PETS community, a leader in our field, a mentor,
24375   and a friend. He left us with these words: "I had the possibility
24376   to contribute to this world that is not as it should be. I hope I
24377   could help in some areas to make the world a better place, and that
24378   I could also encourage other people to be engaged in improving the
24379   world. Please, stay engaged. This world needs you, your love, your
24380   initiative -- now I cannot be part of that anymore."
24382   Tor 0.2.2.32, the first stable release in the 0.2.2 branch, is finally
24383   ready. More than two years in the making, this release features improved
24384   client performance and hidden service reliability, better compatibility
24385   for Android, correct behavior for bridges that listen on more than
24386   one address, more extensible and flexible directory object handling,
24387   better reporting of network statistics, improved code security, and
24388   many many other features and bugfixes.
24391 Changes in version 0.2.2.31-rc - 2011-08-17
24392   Tor 0.2.2.31-rc is the second and hopefully final release candidate
24393   for the Tor 0.2.2.x series.
24395   o Major bugfixes:
24396     - Remove an extra pair of quotation marks around the error
24397       message in control-port STATUS_GENERAL BUG events. Bugfix on
24398       0.1.2.6-alpha; fixes bug 3732.
24399     - If we're configured to write our ControlPorts to disk, only write
24400       them after switching UID and creating the data directory. This way,
24401       we don't fail when starting up with a nonexistent DataDirectory
24402       and a ControlPortWriteToFile setting based on that directory. Fixes
24403       bug 3747; bugfix on Tor 0.2.2.26-beta.
24405   o Minor features:
24406     - Update to the August 2 2011 Maxmind GeoLite Country database.
24408   o Minor bugfixes:
24409     - Allow GETINFO fingerprint to return a fingerprint even when
24410       we have not yet built a router descriptor. Fixes bug 3577;
24411       bugfix on 0.2.0.1-alpha.
24412     - Write several files in text mode, on OSes that distinguish text
24413       mode from binary mode (namely, Windows). These files are:
24414       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
24415       that collect those statistics; 'client_keys' and 'hostname' for
24416       hidden services that use authentication; and (in the tor-gencert
24417       utility) newly generated identity and signing keys. Previously,
24418       we wouldn't specify text mode or binary mode, leading to an
24419       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
24420       the DirRecordUsageByCountry option which would have triggered
24421       the assertion failure was added), although this assertion failure
24422       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
24423     - Selectively disable deprecation warnings on OS X because Lion
24424       started deprecating the shipped copy of openssl. Fixes bug 3643.
24425     - When unable to format an address as a string, report its value
24426       as "???" rather than reusing the last formatted address. Bugfix
24427       on 0.2.1.5-alpha.
24430 Changes in version 0.2.3.2-alpha - 2011-07-18
24431   Tor 0.2.3.2-alpha introduces two new experimental features:
24432   microdescriptors and pluggable transports. It also continues cleaning
24433   up a variety of recently introduced features.
24435   o Major features:
24436     - Clients can now use microdescriptors instead of regular descriptors
24437       to build circuits. Microdescriptors are authority-generated
24438       summaries of regular descriptors' contents, designed to change
24439       very rarely (see proposal 158 for details). This feature is
24440       designed to save bandwidth, especially for clients on slow internet
24441       connections. It's off by default for now, since nearly no caches
24442       support it, but it will be on-by-default for clients in a future
24443       version. You can use the UseMicrodescriptors option to turn it on.
24444     - Tor clients using bridges can now be configured to use a separate
24445       'transport' proxy for each bridge. This approach helps to resist
24446       censorship by allowing bridges to use protocol obfuscation
24447       plugins. It implements part of proposal 180. Implements ticket 2841.
24448     - While we're trying to bootstrap, record how many TLS connections
24449       fail in each state, and report which states saw the most failures
24450       in response to any bootstrap failures. This feature may speed up
24451       diagnosis of censorship events. Implements ticket 3116.
24453   o Major bugfixes (on 0.2.3.1-alpha):
24454     - When configuring a large set of nodes in EntryNodes (as with
24455       'EntryNodes {cc}' or 'EntryNodes 1.1.1.1/16'), choose only a
24456       random subset to be guards, and choose them in random
24457       order. Fixes bug 2798.
24458     - Tor could crash when remembering a consensus in a non-used consensus
24459       flavor without having a current consensus set. Fixes bug 3361.
24460     - Comparing an unknown address to a microdescriptor's shortened exit
24461       policy would always give a "rejected" result. Fixes bug 3599.
24462     - Using microdescriptors as a client no longer prevents Tor from
24463       uploading and downloading hidden service descriptors. Fixes
24464       bug 3601.
24466   o Minor features:
24467     - Allow nameservers with IPv6 address. Resolves bug 2574.
24468     - Accept attempts to include a password authenticator in the
24469       handshake, as supported by SOCKS5. This handles SOCKS clients that
24470       don't know how to omit a password when authenticating. Resolves
24471       bug 1666.
24472     - When configuring a large set of nodes in EntryNodes, and there are
24473       enough of them listed as Guard so that we don't need to consider
24474       the non-guard entries, prefer the ones listed with the Guard flag.
24475     - Check for and recover from inconsistency in the microdescriptor
24476       cache. This will make it harder for us to accidentally free a
24477       microdescriptor without removing it from the appropriate data
24478       structures. Fixes issue 3135; issue noted by "wanoskarnet".
24479     - Log SSL state transitions at log level DEBUG, log domain
24480       HANDSHAKE. This can be useful for debugging censorship events.
24481       Implements ticket 3264.
24482     - Add port 6523 (Gobby) to LongLivedPorts. Patch by intrigeri;
24483       implements ticket 3439.
24485   o Minor bugfixes (on 0.2.3.1-alpha):
24486     - Do not free all general-purpose regular descriptors just
24487       because microdescriptor use is enabled. Fixes bug 3113.
24488     - Correctly link libevent_openssl when --enable-static-libevent
24489       is passed to configure. Fixes bug 3118.
24490     - Bridges should not complain during their heartbeat log messages that
24491       they are unlisted in the consensus: that's more or less the point
24492       of being a bridge. Fixes bug 3183.
24493     - Report a SIGNAL event to controllers when acting on a delayed
24494       SIGNAL NEWNYM command. Previously, we would report a SIGNAL
24495       event to the controller if we acted on a SIGNAL NEWNYM command
24496       immediately, and otherwise not report a SIGNAL event for the
24497       command at all. Fixes bug 3349.
24498     - Fix a crash when handling the SIGNAL controller command or
24499       reporting ERR-level status events with bufferevents enabled. Found
24500       by Robert Ransom. Fixes bug 3367.
24501     - Always ship the tor-fw-helper manpage in our release tarballs.
24502       Fixes bug 3389. Reported by Stephen Walker.
24503     - Fix a class of double-mark-for-close bugs when bufferevents
24504       are enabled. Fixes bug 3403.
24505     - Update tor-fw-helper to support libnatpmp-20110618. Fixes bug 3434.
24506     - Add SIGNAL to the list returned by the 'GETINFO events/names'
24507       control-port command. Fixes part of bug 3465.
24508     - Prevent using negative indices during unit test runs when read_all()
24509       fails. Spotted by coverity.
24510     - Fix a rare memory leak when checking the nodelist without it being
24511       present. Found by coverity.
24512     - Only try to download a microdescriptor-flavored consensus from
24513       a directory cache that provides them.
24515   o Minor bugfixes (on 0.2.2.x and earlier):
24516     - Assert that hidden-service-related operations are not performed
24517       using single-hop circuits. Previously, Tor would assert that
24518       client-side streams are not attached to single-hop circuits,
24519       but not that other sensitive operations on the client and service
24520       side are not performed using single-hop circuits. Fixes bug 3332;
24521       bugfix on 0.0.6.
24522     - Don't publish a new relay descriptor when we reload our onion key,
24523       unless the onion key has actually changed. Fixes bug 3263 and
24524       resolves another cause of bug 1810. Bugfix on 0.1.1.11-alpha.
24525     - Allow GETINFO fingerprint to return a fingerprint even when
24526       we have not yet built a router descriptor. Fixes bug 3577;
24527       bugfix on 0.2.0.1-alpha.
24528     - Make 'tor --digests' list hashes of all Tor source files. Bugfix
24529       on 0.2.2.4-alpha; fixes bug 3427.
24531   o Code simplification and refactoring:
24532     - Use tor_sscanf() in place of scanf() in more places through the
24533       code. This makes us a little more locale-independent, and
24534       should help shut up code-analysis tools that can't tell
24535       a safe sscanf string from a dangerous one.
24536     - Use tt_assert(), not tor_assert(), for checking for test failures.
24537       This makes the unit tests more able to go on in the event that
24538       one of them fails.
24539     - Split connection_about_to_close() into separate functions for each
24540       connection type.
24542   o Build changes:
24543     - On Windows, we now define the _WIN32_WINNT macros only if they
24544       are not already defined. This lets the person building Tor decide,
24545       if they want, to require a later version of Windows.
24548 Changes in version 0.2.2.30-rc - 2011-07-07
24549   Tor 0.2.2.30-rc is the first release candidate for the Tor 0.2.2.x
24550   series. It fixes a few smaller bugs, but generally appears stable.
24551   Please test it and let us know whether it is!
24553   o Minor bugfixes:
24554     - Send a SUCCEEDED stream event to the controller when a reverse
24555       resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue
24556       discovered by katmagic.
24557     - Always NUL-terminate the sun_path field of a sockaddr_un before
24558       passing it to the kernel. (Not a security issue: kernels are
24559       smart enough to reject bad sockaddr_uns.) Found by Coverity;
24560       CID #428. Bugfix on Tor 0.2.0.3-alpha.
24561     - Don't stack-allocate the list of supplementary GIDs when we're
24562       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
24563       could take up to 256K, which is way too much stack. Found by
24564       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
24565     - Add BUILDTIMEOUT_SET to the list returned by the 'GETINFO
24566       events/names' control-port command. Bugfix on 0.2.2.9-alpha;
24567       fixes part of bug 3465.
24568     - Fix a memory leak when receiving a descriptor for a hidden
24569       service we didn't ask for. Found by Coverity; CID #30. Bugfix
24570       on 0.2.2.26-beta.
24572   o Minor features:
24573     - Update to the July 1 2011 Maxmind GeoLite Country database.
24576 Changes in version 0.2.2.29-beta - 2011-06-20
24577   Tor 0.2.2.29-beta reverts an accidental behavior change for users who
24578   have bridge lines in their torrc but don't want to use them; gets
24579   us closer to having the control socket feature working on Debian;
24580   and fixes a variety of smaller bugs.
24582   o Major bugfixes:
24583     - Revert the UseBridges option to its behavior before 0.2.2.28-beta.
24584       When we changed the default behavior to "use bridges if any
24585       are listed in the torrc", we surprised users who had bridges
24586       in their torrc files but who didn't actually want to use them.
24587       Partial resolution for bug 3354.
24589   o Privacy fixes:
24590     - Don't attach new streams to old rendezvous circuits after SIGNAL
24591       NEWNYM. Previously, we would keep using an existing rendezvous
24592       circuit if it remained open (i.e. if it were kept open by a
24593       long-lived stream, or if a new stream were attached to it before
24594       Tor could notice that it was old and no longer in use). Bugfix on
24595       0.1.1.15-rc; fixes bug 3375.
24597   o Minor bugfixes:
24598     - Fix a bug when using ControlSocketsGroupWritable with User. The
24599       directory's group would be checked against the current group, not
24600       the configured group. Patch by Jérémy Bobbio. Fixes bug 3393;
24601       bugfix on 0.2.2.26-beta.
24602     - Make connection_printf_to_buf()'s behavior sane. Its callers
24603       expect it to emit a CRLF iff the format string ends with CRLF;
24604       it actually emitted a CRLF iff (a) the format string ended with
24605       CRLF or (b) the resulting string was over 1023 characters long or
24606       (c) the format string did not end with CRLF *and* the resulting
24607       string was 1021 characters long or longer. Bugfix on 0.1.1.9-alpha;
24608       fixes part of bug 3407.
24609     - Make send_control_event_impl()'s behavior sane. Its callers
24610       expect it to always emit a CRLF at the end of the string; it
24611       might have emitted extra control characters as well. Bugfix on
24612       0.1.1.9-alpha; fixes another part of bug 3407.
24613     - Make crypto_rand_int() check the value of its input correctly.
24614       Previously, it accepted values up to UINT_MAX, but could return a
24615       negative number if given a value above INT_MAX+1. Found by George
24616       Kadianakis. Fixes bug 3306; bugfix on 0.2.2pre14.
24617     - Avoid a segfault when reading a malformed circuit build state
24618       with more than INT_MAX entries. Found by wanoskarnet. Bugfix on
24619       0.2.2.4-alpha.
24620     - When asked about a DNS record type we don't support via a
24621       client DNSPort, reply with NOTIMPL rather than an empty
24622       reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha.
24623     - Fix a rare memory leak during stats writing. Found by coverity.
24625   o Minor features:
24626     - Update to the June 1 2011 Maxmind GeoLite Country database.
24628   o Code simplifications and refactoring:
24629     - Remove some dead code as indicated by coverity.
24630     - Remove a few dead assignments during router parsing. Found by
24631       coverity.
24632     - Add some forgotten return value checks during unit tests. Found
24633       by coverity.
24634     - Don't use 1-bit wide signed bit fields. Found by coverity.
24637 Changes in version 0.2.2.28-beta - 2011-06-04
24638   Tor 0.2.2.28-beta makes great progress towards a new stable release: we
24639   fixed a big bug in whether relays stay in the consensus consistently,
24640   we moved closer to handling bridges and hidden services correctly,
24641   and we started the process of better handling the dreaded "my Vidalia
24642   died, and now my Tor demands a password when I try to reconnect to it"
24643   usability issue.
24645   o Major bugfixes:
24646     - Don't decide to make a new descriptor when receiving a HUP signal.
24647       This bug has caused a lot of 0.2.2.x relays to disappear from the
24648       consensus periodically. Fixes the most common case of triggering
24649       bug 1810; bugfix on 0.2.2.7-alpha.
24650     - Actually allow nameservers with IPv6 addresses. Fixes bug 2574.
24651     - Don't try to build descriptors if "ORPort auto" is set and we
24652       don't know our actual ORPort yet. Fix for bug 3216; bugfix on
24653       0.2.2.26-beta.
24654     - Resolve a crash that occurred when setting BridgeRelay to 1 with
24655       accounting enabled. Fixes bug 3228; bugfix on 0.2.2.18-alpha.
24656     - Apply circuit timeouts to opened hidden-service-related circuits
24657       based on the correct start time. Previously, we would apply the
24658       circuit build timeout based on time since the circuit's creation;
24659       it was supposed to be applied based on time since the circuit
24660       entered its current state. Bugfix on 0.0.6; fixes part of bug 1297.
24661     - Use the same circuit timeout for client-side introduction
24662       circuits as for other four-hop circuits, rather than the timeout
24663       for single-hop directory-fetch circuits; the shorter timeout may
24664       have been appropriate with the static circuit build timeout in
24665       0.2.1.x and earlier, but caused many hidden service access attempts
24666       to fail with the adaptive CBT introduced in 0.2.2.2-alpha. Bugfix
24667       on 0.2.2.2-alpha; fixes another part of bug 1297.
24668     - In ticket 2511 we fixed a case where you could use an unconfigured
24669       bridge if you had configured it as a bridge the last time you ran
24670       Tor. Now fix another edge case: if you had configured it as a bridge
24671       but then switched to a different bridge via the controller, you
24672       would still be willing to use the old one. Bugfix on 0.2.0.1-alpha;
24673       fixes bug 3321.
24675   o Major features:
24676     - Add an __OwningControllerProcess configuration option and a
24677       TAKEOWNERSHIP control-port command. Now a Tor controller can ensure
24678       that when it exits, Tor will shut down. Implements feature 3049.
24679     - If "UseBridges 1" is set and no bridges are configured, Tor will
24680       now refuse to build any circuits until some bridges are set.
24681       If "UseBridges auto" is set, Tor will use bridges if they are
24682       configured and we are not running as a server, but otherwise will
24683       make circuits as usual. The new default is "auto". Patch by anonym,
24684       so the Tails LiveCD can stop automatically revealing you as a Tor
24685       user on startup.
24687   o Minor bugfixes:
24688     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
24689     - Remove a trailing asterisk from "exit-policy/default" in the
24690       output of the control port command "GETINFO info/names". Bugfix
24691       on 0.1.2.5-alpha.
24692     - Use a wide type to hold sockets when built for 64-bit Windows builds.
24693       Fixes bug 3270.
24694     - Warn when the user configures two HiddenServiceDir lines that point
24695       to the same directory. Bugfix on 0.0.6 (the version introducing
24696       HiddenServiceDir); fixes bug 3289.
24697     - Remove dead code from rend_cache_lookup_v2_desc_as_dir. Fixes
24698       part of bug 2748; bugfix on 0.2.0.10-alpha.
24699     - Log malformed requests for rendezvous descriptors as protocol
24700       warnings, not warnings. Also, use a more informative log message
24701       in case someone sees it at log level warning without prior
24702       info-level messages. Fixes the other part of bug 2748; bugfix
24703       on 0.2.0.10-alpha.
24704     - Clear the table recording the time of the last request for each
24705       hidden service descriptor from each HS directory on SIGNAL NEWNYM.
24706       Previously, we would clear our HS descriptor cache on SIGNAL
24707       NEWNYM, but if we had previously retrieved a descriptor (or tried
24708       to) from every directory responsible for it, we would refuse to
24709       fetch it again for up to 15 minutes. Bugfix on 0.2.2.25-alpha;
24710       fixes bug 3309.
24711     - Fix a log message that said "bits" while displaying a value in
24712       bytes. Found by wanoskarnet. Fixes bug 3318; bugfix on
24713       0.2.0.1-alpha.
24714     - When checking for 1024-bit keys, check for 1024 bits, not 128
24715       bytes. This allows Tor to correctly discard keys of length 1017
24716       through 1023. Bugfix on 0.0.9pre5.
24718   o Minor features:
24719     - Relays now log the reason for publishing a new relay descriptor,
24720       so we have a better chance of hunting down instances of bug 1810.
24721       Resolves ticket 3252.
24722     - Revise most log messages that refer to nodes by nickname to
24723       instead use the "$key=nickname at address" format. This should be
24724       more useful, especially since nicknames are less and less likely
24725       to be unique. Resolves ticket 3045.
24726     - Log (at info level) when purging pieces of hidden-service-client
24727       state because of SIGNAL NEWNYM.
24729   o Removed options:
24730     - Remove undocumented option "-F" from tor-resolve: it hasn't done
24731       anything since 0.2.1.16-rc.
24734 Changes in version 0.2.2.27-beta - 2011-05-18
24735   Tor 0.2.2.27-beta fixes a bridge-related stability bug in the previous
24736   release, and also adds a few more general bugfixes.
24738   o Major bugfixes:
24739     - Fix a crash bug when changing bridges in a running Tor process.
24740       Fixes bug 3213; bugfix on 0.2.2.26-beta.
24741     - When the controller configures a new bridge, don't wait 10 to 60
24742       seconds before trying to fetch its descriptor. Bugfix on
24743       0.2.0.3-alpha; fixes bug 3198 (suggested by 2355).
24745   o Minor bugfixes:
24746     - Require that onion keys have exponent 65537 in microdescriptors too.
24747       Fixes more of bug 3207; bugfix on 0.2.2.26-beta.
24748     - Tor used to limit HttpProxyAuthenticator values to 48 characters.
24749       Changed the limit to 512 characters by removing base64 newlines.
24750       Fixes bug 2752. Fix by Michael Yakubovich.
24751     - When a client starts or stops using bridges, never use a circuit
24752       that was built before the configuration change. This behavior could
24753       put at risk a user who uses bridges to ensure that her traffic
24754       only goes to the chosen addresses. Bugfix on 0.2.0.3-alpha; fixes
24755       bug 3200.
24758 Changes in version 0.2.2.26-beta - 2011-05-17
24759   Tor 0.2.2.26-beta fixes a variety of potential privacy problems. It
24760   also introduces a new "socksport auto" approach that should make it
24761   easier to run multiple Tors on the same system, and does a lot of
24762   cleanup to get us closer to a release candidate.
24764   o Security/privacy fixes:
24765     - Replace all potentially sensitive memory comparison operations
24766       with versions whose runtime does not depend on the data being
24767       compared. This will help resist a class of attacks where an
24768       adversary can use variations in timing information to learn
24769       sensitive data. Fix for one case of bug 3122. (Safe memcmp
24770       implementation by Robert Ransom based partially on code by DJB.)
24771     - When receiving a hidden service descriptor, check that it is for
24772       the hidden service we wanted. Previously, Tor would store any
24773       hidden service descriptors that a directory gave it, whether it
24774       wanted them or not. This wouldn't have let an attacker impersonate
24775       a hidden service, but it did let directories pre-seed a client
24776       with descriptors that it didn't want. Bugfix on 0.0.6.
24777     - On SIGHUP, do not clear out all TrackHostExits mappings, client
24778       DNS cache entries, and virtual address mappings: that's what
24779       NEWNYM is for. Fixes bug 1345; bugfix on 0.1.0.1-rc.
24781   o Major features:
24782     - The options SocksPort, ControlPort, and so on now all accept a
24783       value "auto" that opens a socket on an OS-selected port. A
24784       new ControlPortWriteToFile option tells Tor to write its
24785       actual control port or ports to a chosen file. If the option
24786       ControlPortFileGroupReadable is set, the file is created as
24787       group-readable. Now users can run two Tor clients on the same
24788       system without needing to manually mess with parameters. Resolves
24789       part of ticket 3076.
24790     - Set SO_REUSEADDR on all sockets, not just listeners. This should
24791       help busy exit nodes avoid running out of useable ports just
24792       because all the ports have been used in the near past. Resolves
24793       issue 2850.
24795   o Minor features:
24796     - New "GETINFO net/listeners/(type)" controller command to return
24797       a list of addresses and ports that are bound for listeners for a
24798       given connection type. This is useful when the user has configured
24799       "SocksPort auto" and the controller needs to know which port got
24800       chosen. Resolves another part of ticket 3076.
24801     - Add a new ControlSocketsGroupWritable configuration option: when
24802       it is turned on, ControlSockets are group-writeable by the default
24803       group of the current user. Patch by Jérémy Bobbio; implements
24804       ticket 2972.
24805     - Tor now refuses to create a ControlSocket in a directory that is
24806       world-readable (or group-readable if ControlSocketsGroupWritable
24807       is 0). This is necessary because some operating systems do not
24808       enforce permissions on an AF_UNIX sockets. Permissions on the
24809       directory holding the socket, however, seems to work everywhere.
24810     - Rate-limit a warning about failures to download v2 networkstatus
24811       documents. Resolves part of bug 1352.
24812     - Backport code from 0.2.3.x that allows directory authorities to
24813       clean their microdescriptor caches. Needed to resolve bug 2230.
24814     - When an HTTPS proxy reports "403 Forbidden", we now explain
24815       what it means rather than calling it an unexpected status code.
24816       Closes bug 2503. Patch from Michael Yakubovich.
24817     - Update to the May 1 2011 Maxmind GeoLite Country database.
24819   o Minor bugfixes:
24820     - Authorities now clean their microdesc cache periodically and when
24821       reading from disk initially, not only when adding new descriptors.
24822       This prevents a bug where we could lose microdescriptors. Bugfix
24823       on 0.2.2.6-alpha. Fixes bug 2230.
24824     - Do not crash when our configuration file becomes unreadable, for
24825       example due to a permissions change, between when we start up
24826       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
24827       on 0.0.9pre6.
24828     - Avoid a bug that would keep us from replacing a microdescriptor
24829       cache on Windows. (We would try to replace the file while still
24830       holding it open. That's fine on Unix, but Windows doesn't let us
24831       do that.) Bugfix on 0.2.2.6-alpha; bug found by wanoskarnet.
24832     - Add missing explanations for the authority-related torrc options
24833       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey in the
24834       man page. Resolves issue 2379.
24835     - As an authority, do not upload our own vote or signature set to
24836       ourself. It would tell us nothing new, and as of 0.2.2.24-alpha,
24837       it would get flagged as a duplicate. Resolves bug 3026.
24838     - Accept hidden service descriptors if we think we might be a hidden
24839       service directory, regardless of what our consensus says. This
24840       helps robustness, since clients and hidden services can sometimes
24841       have a more up-to-date view of the network consensus than we do,
24842       and if they think that the directory authorities list us a HSDir,
24843       we might actually be one. Related to bug 2732; bugfix on
24844       0.2.0.10-alpha.
24845     - When a controller changes TrackHostExits, remove mappings for
24846       hosts that should no longer have their exits tracked. Bugfix on
24847       0.1.0.1-rc.
24848     - When a controller changes VirtualAddrNetwork, remove any mappings
24849       for hosts that were automapped to the old network. Bugfix on
24850       0.1.1.19-rc.
24851     - When a controller changes one of the AutomapHosts* options, remove
24852       any mappings for hosts that should no longer be automapped. Bugfix
24853       on 0.2.0.1-alpha.
24854     - Do not reset the bridge descriptor download status every time we
24855       re-parse our configuration or get a configuration change. Fixes
24856       bug 3019; bugfix on 0.2.0.3-alpha.
24858   o Minor bugfixes (code cleanup):
24859     - When loading the microdesc journal, remember its current size.
24860       In 0.2.2, this helps prevent the microdesc journal from growing
24861       without limit on authorities (who are the only ones to use it in
24862       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
24863       Fix posted by "cypherpunks."
24864     - The microdesc journal is supposed to get rebuilt only if it is
24865       at least _half_ the length of the store, not _twice_ the length
24866       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
24867     - Fix a potential null-pointer dereference while computing a
24868       consensus. Bugfix on 0.2.0.3-alpha, found with the help of
24869       clang's analyzer.
24870     - Avoid a possible null-pointer dereference when rebuilding the mdesc
24871       cache without actually having any descriptors to cache. Bugfix on
24872       0.2.2.6-alpha. Issue discovered using clang's static analyzer.
24873     - If we fail to compute the identity digest of a v3 legacy keypair,
24874       warn, and don't use a buffer-full of junk instead. Bugfix on
24875       0.2.1.1-alpha; fixes bug 3106.
24876     - Resolve an untriggerable issue in smartlist_string_num_isin(),
24877       where if the function had ever in the future been used to check
24878       for the presence of a too-large number, it would have given an
24879       incorrect result. (Fortunately, we only used it for 16-bit
24880       values.) Fixes bug 3175; bugfix on 0.1.0.1-rc.
24881     - Require that introduction point keys and onion handshake keys
24882       have a public exponent of 65537. Starts to fix bug 3207; bugfix
24883       on 0.2.0.10-alpha.
24885   o Removed features:
24886     - Caches no longer download and serve v2 networkstatus documents
24887       unless FetchV2Networkstatus flag is set: these documents haven't
24888       haven't been used by clients or relays since 0.2.0.x. Resolves
24889       bug 3022.
24892 Changes in version 0.2.3.1-alpha - 2011-05-05
24893   Tor 0.2.3.1-alpha adds some new experimental features, including support
24894   for an improved network IO backend, IOCP networking on Windows,
24895   microdescriptor caching, "fast-start" support for streams, and automatic
24896   home router configuration. There are also numerous internal improvements
24897   to try to make the code easier for developers to work with.
24899   This is the first alpha release in a new series, so expect there to be
24900   bugs. Users who would rather test out a more stable branch should
24901   stay with 0.2.2.x for now.
24903   o Major features:
24904     - Tor can now optionally build with the "bufferevents" buffered IO
24905       backend provided by Libevent 2. To use this feature, make sure you
24906       have the latest possible version of Libevent, and pass the
24907       --enable-bufferevents flag to configure when building Tor from
24908       source. This feature will make our networking code more flexible,
24909       let us stack layers on each other, and let us use more efficient
24910       zero-copy transports where available.
24911     - As an experimental feature, Tor can use IOCP for networking on Windows.
24912       Once this code is tuned and optimized, it promises much better
24913       performance than the select-based backend we've used in the past. To
24914       try this feature, you must build Tor with Libevent 2, configure Tor
24915       with the "bufferevents" buffered IO backend, and add "DisableIOCP 0" to
24916       your torrc. There are known bugs here: only try this if you can help
24917       debug it as it breaks.
24918     - The EntryNodes option can now include country codes like {de} or IP
24919       addresses or network masks. Previously we had disallowed these options
24920       because we didn't have an efficient way to keep the list up to
24921       date. Fixes bug 1982, but see bug 2798 for an unresolved issue here.
24922     - Exit nodes now accept and queue data on not-yet-connected streams.
24923       Previously, the client wasn't allowed to send data until the stream was
24924       connected, which slowed down all connections. This change will enable
24925       clients to perform a "fast-start" on streams and send data without
24926       having to wait for a confirmation that the stream has opened. (Patch
24927       from Ian Goldberg; implements the server side of Proposal 174.)
24928     - Tor now has initial support for automatic port mapping on the many
24929       home routers that support NAT-PMP or UPnP. (Not yet supported on
24930       Windows). To build the support code, you'll need to have libnatpnp
24931       library and/or the libminiupnpc library, and you'll need to enable the
24932       feature specifically by passing "--enable-upnp" and/or
24933       "--enable-natpnp" to configure. To turn it on, use the new
24934       PortForwarding option.
24935     - Caches now download, cache, and serve multiple "flavors" of the
24936       consensus, including a flavor that describes microdescriptors.
24937     - Caches now download, cache, and serve microdescriptors -- small
24938       summaries of router descriptors that are authenticated by all of the
24939       directory authorities. Once enough caches are running this code,
24940       clients will be able to save significant amounts of directory bandwidth
24941       by downloading microdescriptors instead of router descriptors.
24943   o Minor features:
24944     - Make logging resolution configurable with a new LogTimeGranularity
24945       option, and change the default from 1 millisecond to 1 second.
24946       Implements enhancement 1668.
24947     - We log which torrc file we're using on startup. Implements ticket
24948       2444.
24949     - Ordinarily, Tor does not count traffic from private addresses (like
24950       127.0.0.1 or 10.0.0.1) when calculating rate limits or accounting.
24951       There is now a new option, CountPrivateBandwidth, to disable this
24952       behavior. Patch from Daniel Cagara.
24953     - New --enable-static-tor configure option for building Tor as
24954       statically as possible. Idea, general hackery and thoughts from
24955       Alexei Czeskis, John Gilmore, Jacob Appelbaum. Implements ticket
24956       2702.
24957     - If you set the NumCPUs option to 0, Tor will now try to detect how
24958       many CPUs you have. This is the new default behavior.
24959     - Turn on directory request statistics by default and include them in
24960       extra-info descriptors. Don't break if we have no GeoIP database.
24961     - Relays that set "ConnDirectionStatistics 1" write statistics on the
24962       bidirectional use of connections to disk every 24 hours.
24963     - Add a GeoIP file digest to the extra-info descriptor. Implements
24964       enhancement 1883.
24965     - The NodeFamily option -- which let you declare that you want to
24966       consider nodes to be part of a family whether they list themselves
24967       that way or not -- now allows IP address ranges and country codes.
24968     - Add a new 'Heartbeat' log message type to periodically log a message
24969       describing Tor's status at level Notice. This feature is meant for
24970       operators who log at notice, and want to make sure that their Tor
24971       server is still working. Implementation by George Kadianakis.
24973   o Minor bugfixes (on 0.2.2.25-alpha):
24974     - When loading the microdesc journal, remember its current size.
24975       In 0.2.2, this helps prevent the microdesc journal from growing
24976       without limit on authorities (who are the only ones to use it in
24977       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
24978       Fix posted by "cypherpunks."
24979     - The microdesc journal is supposed to get rebuilt only if it is
24980       at least _half_ the length of the store, not _twice_ the length
24981       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
24982     - If as an authority we fail to compute the identity digest of a v3
24983       legacy keypair, warn, and don't use a buffer-full of junk instead.
24984       Bugfix on 0.2.1.1-alpha; fixes bug 3106.
24985     - Authorities now clean their microdesc cache periodically and when
24986       reading from disk initially, not only when adding new descriptors.
24987       This prevents a bug where we could lose microdescriptors. Bugfix
24988       on 0.2.2.6-alpha.
24990   o Minor features (controller):
24991     - Add a new SIGNAL event to the controller interface so that
24992       controllers can be notified when Tor handles a signal. Resolves
24993       issue 1955. Patch by John Brooks.
24994     - Add a new GETINFO option to get total bytes read and written. Patch
24995       from pipe, revised by atagar. Resolves ticket 2345.
24996     - Implement some GETINFO controller fields to provide information about
24997       the Tor process's pid, euid, username, and resource limits.
24999   o Build changes:
25000     - Our build system requires automake 1.6 or later to create the
25001       Makefile.in files. Previously, you could have used 1.4.
25002       This only affects developers and people building Tor from git;
25003       people who build Tor from the source distribution without changing
25004       the Makefile.am files should be fine.
25005     - Our autogen.sh script uses autoreconf to launch autoconf, automake, and
25006       so on. This is more robust against some of the failure modes
25007       associated with running the autotools pieces on their own.
25009   o Minor packaging issues:
25010     - On OpenSUSE, create the /var/run/tor directory on startup if it is not
25011       already created. Patch from Andreas Stieger. Fixes bug 2573.
25013   o Code simplifications and refactoring:
25014     - A major revision to our internal node-selecting and listing logic.
25015       Tor already had at least two major ways to look at the question of
25016       "which Tor servers do we know about": a list of router descriptors,
25017       and a list of entries in the current consensus. With
25018       microdescriptors, we're adding a third. Having so many systems
25019       without an abstraction layer over them was hurting the codebase.
25020       Now, we have a new "node_t" abstraction that presents a consistent
25021       interface to a client's view of a Tor node, and holds (nearly) all
25022       of the mutable state formerly in routerinfo_t and routerstatus_t.
25023     - The helper programs tor-gencert, tor-resolve, and tor-checkkey
25024       no longer link against Libevent: they never used it, but
25025       our library structure used to force them to link it.
25027   o Removed features:
25028     - Remove some old code to work around even older versions of Tor that
25029       used forked processes to handle DNS requests. Such versions of Tor
25030       are no longer in use as servers.
25032   o Documentation fixes:
25033     - Correct a broken faq link in the INSTALL file. Fixes bug 2307.
25034     - Add missing documentation for the authority-related torrc options
25035       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey. Resolves
25036       issue 2379.
25039 Changes in version 0.2.2.25-alpha - 2011-04-29
25040   Tor 0.2.2.25-alpha fixes many bugs: hidden service clients are more
25041   robust, routers no longer overreport their bandwidth, Win7 should crash
25042   a little less, and NEWNYM (as used by Vidalia's "new identity" button)
25043   now prevents hidden service-related activity from being linkable. It
25044   provides more information to Vidalia so you can see if your bridge is
25045   working. Also, 0.2.2.25-alpha revamps the Entry/Exit/ExcludeNodes and
25046   StrictNodes configuration options to make them more reliable, more
25047   understandable, and more regularly applied. If you use those options,
25048   please see the revised documentation for them in the manual page.
25050   o Major bugfixes:
25051     - Relays were publishing grossly inflated bandwidth values because
25052       they were writing their state files wrong--now they write the
25053       correct value. Also, resume reading bandwidth history from the
25054       state file correctly. Fixes bug 2704; bugfix on 0.2.2.23-alpha.
25055     - Improve hidden service robustness: When we find that we have
25056       extended a hidden service's introduction circuit to a relay not
25057       listed as an introduction point in the HS descriptor we currently
25058       have, retry with an introduction point from the current
25059       descriptor. Previously we would just give up. Fixes bugs 1024 and
25060       1930; bugfix on 0.2.0.10-alpha.
25061     - Clients now stop trying to use an exit node associated with a given
25062       destination by TrackHostExits if they fail to reach that exit node.
25063       Fixes bug 2999. Bugfix on 0.2.0.20-rc.
25064     - Fix crash bug on platforms where gmtime and localtime can return
25065       NULL. Windows 7 users were running into this one. Fixes part of bug
25066       2077. Bugfix on all versions of Tor. Found by boboper.
25068   o Security and stability fixes:
25069     - Don't double-free a parsable, but invalid, microdescriptor, even if
25070       it is followed in the blob we're parsing by an unparsable
25071       microdescriptor. Fixes an issue reported in a comment on bug 2954.
25072       Bugfix on 0.2.2.6-alpha; fix by "cypherpunks".
25073     - If the Nickname configuration option isn't given, Tor would pick a
25074       nickname based on the local hostname as the nickname for a relay.
25075       Because nicknames are not very important in today's Tor and the
25076       "Unnamed" nickname has been implemented, this is now problematic
25077       behavior: It leaks information about the hostname without being
25078       useful at all. Fixes bug 2979; bugfix on 0.1.2.2-alpha, which
25079       introduced the Unnamed nickname. Reported by tagnaq.
25080     - Fix an uncommon assertion failure when running with DNSPort under
25081       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
25082     - Avoid linkability based on cached hidden service descriptors: forget
25083       all hidden service descriptors cached as a client when processing a
25084       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
25086   o Major features:
25087     - Export GeoIP information on bridge usage to controllers even if we
25088       have not yet been running for 24 hours. Now Vidalia bridge operators
25089       can get more accurate and immediate feedback about their
25090       contributions to the network.
25092   o Major features and bugfixes (node selection):
25093     - Revise and reconcile the meaning of the ExitNodes, EntryNodes,
25094       ExcludeEntryNodes, ExcludeExitNodes, ExcludeNodes, and StrictNodes
25095       options. Previously, we had been ambiguous in describing what
25096       counted as an "exit" node, and what operations exactly "StrictNodes
25097       0" would permit. This created confusion when people saw nodes built
25098       through unexpected circuits, and made it hard to tell real bugs from
25099       surprises. Now the intended behavior is:
25100         . "Exit", in the context of ExitNodes and ExcludeExitNodes, means
25101           a node that delivers user traffic outside the Tor network.
25102         . "Entry", in the context of EntryNodes, means a node used as the
25103           first hop of a multihop circuit. It doesn't include direct
25104           connections to directory servers.
25105         . "ExcludeNodes" applies to all nodes.
25106         . "StrictNodes" changes the behavior of ExcludeNodes only. When
25107           StrictNodes is set, Tor should avoid all nodes listed in
25108           ExcludeNodes, even when it will make user requests fail. When
25109           StrictNodes is *not* set, then Tor should follow ExcludeNodes
25110           whenever it can, except when it must use an excluded node to
25111           perform self-tests, connect to a hidden service, provide a
25112           hidden service, fulfill a .exit request, upload directory
25113           information, or fetch directory information.
25114       Collectively, the changes to implement the behavior fix bug 1090.
25115     - ExcludeNodes now takes precedence over EntryNodes and ExitNodes: if
25116       a node is listed in both, it's treated as excluded.
25117     - ExcludeNodes now applies to directory nodes -- as a preference if
25118       StrictNodes is 0, or an absolute requirement if StrictNodes is 1.
25119       Don't exclude all the directory authorities and set StrictNodes to 1
25120       unless you really want your Tor to break.
25121     - ExcludeNodes and ExcludeExitNodes now override exit enclaving.
25122     - ExcludeExitNodes now overrides .exit requests.
25123     - We don't use bridges listed in ExcludeNodes.
25124     - When StrictNodes is 1:
25125        . We now apply ExcludeNodes to hidden service introduction points
25126          and to rendezvous points selected by hidden service users. This
25127          can make your hidden service less reliable: use it with caution!
25128        . If we have used ExcludeNodes on ourself, do not try relay
25129          reachability self-tests.
25130        . If we have excluded all the directory authorities, we will not
25131          even try to upload our descriptor if we're a relay.
25132        . Do not honor .exit requests to an excluded node.
25133     - Remove a misfeature that caused us to ignore the Fast/Stable flags
25134       when ExitNodes is set. Bugfix on 0.2.2.7-alpha.
25135     - When the set of permitted nodes changes, we now remove any mappings
25136       introduced via TrackExitHosts to now-excluded nodes. Bugfix on
25137       0.1.0.1-rc.
25138     - We never cannibalize a circuit that had excluded nodes on it, even
25139       if StrictNodes is 0. Bugfix on 0.1.0.1-rc.
25140     - Revert a change where we would be laxer about attaching streams to
25141       circuits than when building the circuits. This was meant to prevent
25142       a set of bugs where streams were never attachable, but our improved
25143       code here should make this unnecessary. Bugfix on 0.2.2.7-alpha.
25144     - Keep track of how many times we launch a new circuit to handle a
25145       given stream. Too many launches could indicate an inconsistency
25146       between our "launch a circuit to handle this stream" logic and our
25147       "attach this stream to one of the available circuits" logic.
25148     - Improve log messages related to excluded nodes.
25150   o Minor bugfixes:
25151     - Fix a spurious warning when moving from a short month to a long
25152       month on relays with month-based BandwidthAccounting. Bugfix on
25153       0.2.2.17-alpha; fixes bug 3020.
25154     - When a client finds that an origin circuit has run out of 16-bit
25155       stream IDs, we now mark it as unusable for new streams. Previously,
25156       we would try to close the entire circuit. Bugfix on 0.0.6.
25157     - Add a forgotten cast that caused a compile warning on OS X 10.6.
25158       Bugfix on 0.2.2.24-alpha.
25159     - Be more careful about reporting the correct error from a failed
25160       connect() system call. Under some circumstances, it was possible to
25161       look at an incorrect value for errno when sending the end reason.
25162       Bugfix on 0.1.0.1-rc.
25163     - Correctly handle an "impossible" overflow cases in connection byte
25164       counting, where we write or read more than 4GB on an edge connection
25165       in a single second. Bugfix on 0.1.2.8-beta.
25166     - Correct the warning displayed when a rendezvous descriptor exceeds
25167       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
25168       John Brooks.
25169     - Clients and hidden services now use HSDir-flagged relays for hidden
25170       service descriptor downloads and uploads even if the relays have no
25171       DirPort set and the client has disabled TunnelDirConns. This will
25172       eventually allow us to give the HSDir flag to relays with no
25173       DirPort. Fixes bug 2722; bugfix on 0.2.1.6-alpha.
25174     - Downgrade "no current certificates known for authority" message from
25175       Notice to Info. Fixes bug 2899; bugfix on 0.2.0.10-alpha.
25176     - Make the SIGNAL DUMP control-port command work on FreeBSD. Fixes bug
25177       2917. Bugfix on 0.1.1.1-alpha.
25178     - Only limit the lengths of single HS descriptors, even when multiple
25179       HS descriptors are published to an HSDir relay in a single POST
25180       operation. Fixes bug 2948; bugfix on 0.2.1.5-alpha. Found by hsdir.
25181     - Write the current time into the LastWritten line in our state file,
25182       rather than the time from the previous write attempt. Also, stop
25183       trying to use a time of -1 in our log statements. Fixes bug 3039;
25184       bugfix on 0.2.2.14-alpha.
25185     - Be more consistent in our treatment of file system paths. "~" should
25186       get expanded to the user's home directory in the Log config option.
25187       Fixes bug 2971; bugfix on 0.2.0.1-alpha, which introduced the
25188       feature for the -f and --DataDirectory options.
25190   o Minor features:
25191     - Make sure every relay writes a state file at least every 12 hours.
25192       Previously, a relay could go for weeks without writing its state
25193       file, and on a crash could lose its bandwidth history, capacity
25194       estimates, client country statistics, and so on. Addresses bug 3012.
25195     - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors.
25196       Clients before 0.2.1.27 didn't handle NOROUTE correctly, but such
25197       clients are already deprecated because of security bugs.
25198     - Don't allow v0 hidden service authorities to act as clients.
25199       Required by fix for bug 3000.
25200     - Ignore SIGNAL NEWNYM commands on relay-only Tor instances. Required
25201       by fix for bug 3000.
25202     - Ensure that no empty [dirreq-](read|write)-history lines are added
25203       to an extrainfo document. Implements ticket 2497.
25205   o Code simplification and refactoring:
25206     - Remove workaround code to handle directory responses from servers
25207       that had bug 539 (they would send HTTP status 503 responses _and_
25208       send a body too). Since only server versions before
25209       0.2.0.16-alpha/0.1.2.19 were affected, there is no longer reason to
25210       keep the workaround in place.
25211     - Remove the old 'fuzzy time' logic. It was supposed to be used for
25212       handling calculations where we have a known amount of clock skew and
25213       an allowed amount of unknown skew. But we only used it in three
25214       places, and we never adjusted the known/unknown skew values. This is
25215       still something we might want to do someday, but if we do, we'll
25216       want to do it differently.
25217     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
25218       None of the cases where we did this before were wrong, but by making
25219       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
25220     - Use GetTempDir to find the proper temporary directory location on
25221       Windows when generating temporary files for the unit tests. Patch by
25222       Gisle Vanem.
25225 Changes in version 0.2.2.24-alpha - 2011-04-08
25226   Tor 0.2.2.24-alpha fixes a variety of bugs, including a big bug that
25227   prevented Tor clients from effectively using "multihomed" bridges,
25228   that is, bridges that listen on multiple ports or IP addresses so users
25229   can continue to use some of their addresses even if others get blocked.
25231   o Major bugfixes:
25232     - Fix a bug where bridge users who configure the non-canonical
25233       address of a bridge automatically switch to its canonical
25234       address. If a bridge listens at more than one address, it should be
25235       able to advertise those addresses independently and any non-blocked
25236       addresses should continue to work. Bugfix on Tor 0.2.0.x. Fixes
25237       bug 2510.
25238     - If you configured Tor to use bridge A, and then quit and
25239       configured Tor to use bridge B instead, it would happily continue
25240       to use bridge A if it's still reachable. While this behavior is
25241       a feature if your goal is connectivity, in some scenarios it's a
25242       dangerous bug. Bugfix on Tor 0.2.0.1-alpha; fixes bug 2511.
25243     - Directory authorities now use data collected from their own
25244       uptime observations when choosing whether to assign the HSDir flag
25245       to relays, instead of trusting the uptime value the relay reports in
25246       its descriptor. This change helps prevent an attack where a small
25247       set of nodes with frequently-changing identity keys can blackhole
25248       a hidden service. (Only authorities need upgrade; others will be
25249       fine once they do.) Bugfix on 0.2.0.10-alpha; fixes bug 2709.
25251   o Minor bugfixes:
25252     - When we restart our relay, we might get a successful connection
25253       from the outside before we've started our reachability tests,
25254       triggering a warning: "ORPort found reachable, but I have no
25255       routerinfo yet. Failing to inform controller of success." This
25256       bug was harmless unless Tor is running under a controller
25257       like Vidalia, in which case the controller would never get a
25258       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
25259       fixes bug 1172.
25260     - Make directory authorities more accurate at recording when
25261       relays that have failed several reachability tests became
25262       unreachable, so we can provide more accuracy at assigning Stable,
25263       Guard, HSDir, etc flags. Bugfix on 0.2.0.6-alpha. Resolves bug 2716.
25264     - Fix an issue that prevented static linking of libevent on
25265       some platforms (notably Linux). Fixes bug 2698; bugfix on
25266       versions 0.2.1.23/0.2.2.8-alpha (the versions introducing
25267       the --with-static-libevent configure option).
25268     - We now ask the other side of a stream (the client or the exit)
25269       for more data on that stream when the amount of queued data on
25270       that stream dips low enough. Previously, we wouldn't ask the
25271       other side for more data until either it sent us more data (which
25272       it wasn't supposed to do if it had exhausted its window!) or we
25273       had completely flushed all our queued data. This flow control fix
25274       should improve throughput. Fixes bug 2756; bugfix on the earliest
25275       released versions of Tor (svn commit r152).
25276     - Avoid a double-mark-for-free warning when failing to attach a
25277       transparent proxy connection. (We thought we had fixed this in
25278       0.2.2.23-alpha, but it turns out our fix was checking the wrong
25279       connection.) Fixes bug 2757; bugfix on 0.1.2.1-alpha (the original
25280       bug) and 0.2.2.23-alpha (the incorrect fix).
25281     - When warning about missing zlib development packages during compile,
25282       give the correct package names. Bugfix on 0.2.0.1-alpha.
25284   o Minor features:
25285     - Directory authorities now log the source of a rejected POSTed v3
25286       networkstatus vote.
25287     - Make compilation with clang possible when using
25288       --enable-gcc-warnings by removing two warning options that clang
25289       hasn't implemented yet and by fixing a few warnings. Implements
25290       ticket 2696.
25291     - When expiring circuits, use microsecond timers rather than
25292       one-second timers. This can avoid an unpleasant situation where a
25293       circuit is launched near the end of one second and expired right
25294       near the beginning of the next, and prevent fluctuations in circuit
25295       timeout values.
25296     - Use computed circuit-build timeouts to decide when to launch
25297       parallel introduction circuits for hidden services. (Previously,
25298       we would retry after 15 seconds.)
25299     - Update to the April 1 2011 Maxmind GeoLite Country database.
25301   o Packaging fixes:
25302     - Create the /var/run/tor directory on startup on OpenSUSE if it is
25303       not already created. Patch from Andreas Stieger. Fixes bug 2573.
25305   o Documentation changes:
25306     - Modernize the doxygen configuration file slightly. Fixes bug 2707.
25307     - Resolve all doxygen warnings except those for missing documentation.
25308       Fixes bug 2705.
25309     - Add doxygen documentation for more functions, fields, and types.
25312 Changes in version 0.2.2.23-alpha - 2011-03-08
25313   Tor 0.2.2.23-alpha lets relays record their bandwidth history so when
25314   they restart they don't lose their bandwidth capacity estimate. This
25315   release also fixes a diverse set of user-facing bugs, ranging from
25316   relays overrunning their rate limiting to clients falsely warning about
25317   clock skew to bridge descriptor leaks by our bridge directory authority.
25319   o Major bugfixes:
25320     - Stop sending a CLOCK_SKEW controller status event whenever
25321       we fetch directory information from a relay that has a wrong clock.
25322       Instead, only inform the controller when it's a trusted authority
25323       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
25324       the rest of bug 1074.
25325     - Fix an assert in parsing router descriptors containing IPv6
25326       addresses. This one took down the directory authorities when
25327       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
25328     - Make the bridge directory authority refuse to answer directory
25329       requests for "all" descriptors. It used to include bridge
25330       descriptors in its answer, which was a major information leak.
25331       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
25332     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
25333       Tor would ignore their RelayBandwidthBurst setting,
25334       potentially using more bandwidth than expected. Bugfix on
25335       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
25336     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
25337       hidserv" in her torrc. The 'hidserv' argument never controlled
25338       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
25340   o Major features:
25341     - Relays now save observed peak bandwidth throughput rates to their
25342       state file (along with total usage, which was already saved)
25343       so that they can determine their correct estimated bandwidth on
25344       restart. Resolves bug 1863, where Tor relays would reset their
25345       estimated bandwidth to 0 after restarting.
25346     - Directory authorities now take changes in router IP address and
25347       ORPort into account when determining router stability. Previously,
25348       if a router changed its IP or ORPort, the authorities would not
25349       treat it as having any downtime for the purposes of stability
25350       calculation, whereas clients would experience downtime since the
25351       change could take a while to propagate to them. Resolves issue 1035.
25352     - Enable Address Space Layout Randomization (ASLR) and Data Execution
25353       Prevention (DEP) by default on Windows to make it harder for
25354       attackers to exploit vulnerabilities. Patch from John Brooks.
25356   o Minor bugfixes (on 0.2.1.x and earlier):
25357     - Fix a rare crash bug that could occur when a client was configured
25358       with a large number of bridges. Fixes bug 2629; bugfix on
25359       0.2.1.2-alpha. Bugfix by trac user "shitlei".
25360     - Avoid a double mark-for-free warning when failing to attach a
25361       transparent proxy connection. Bugfix on 0.1.2.1-alpha. Fixes
25362       bug 2279.
25363     - Correctly detect failure to allocate an OpenSSL BIO. Fixes bug 2378;
25364       found by "cypherpunks". This bug was introduced before the first
25365       Tor release, in svn commit r110.
25366     - Country codes aren't supported in EntryNodes until 0.2.3.x, so
25367       don't mention them in the manpage. Fixes bug 2450; issue
25368       spotted by keb and G-Lo.
25369     - Fix a bug in bandwidth history state parsing that could have been
25370       triggered if a future version of Tor ever changed the timing
25371       granularity at which bandwidth history is measured. Bugfix on
25372       Tor 0.1.1.11-alpha.
25373     - When a relay decides that its DNS is too broken for it to serve
25374       as an exit server, it advertised itself as a non-exit, but
25375       continued to act as an exit. This could create accidental
25376       partitioning opportunities for users. Instead, if a relay is
25377       going to advertise reject *:* as its exit policy, it should
25378       really act with exit policy "reject *:*". Fixes bug 2366.
25379       Bugfix on Tor 0.1.2.5-alpha. Bugfix by user "postman" on trac.
25380     - In the special case where you configure a public exit relay as your
25381       bridge, Tor would be willing to use that exit relay as the last
25382       hop in your circuit as well. Now we fail that circuit instead.
25383       Bugfix on 0.2.0.12-alpha. Fixes bug 2403. Reported by "piebeer".
25384     - Fix a bug with our locking implementation on Windows that couldn't
25385       correctly detect when a file was already locked. Fixes bug 2504,
25386       bugfix on 0.2.1.6-alpha.
25387     - Fix IPv6-related connect() failures on some platforms (BSD, OS X).
25388       Bugfix on 0.2.0.3-alpha; fixes first part of bug 2660. Patch by
25389       "piebeer".
25390     - Set target port in get_interface_address6() correctly. Bugfix
25391       on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug 2660.
25392     - Directory authorities are now more robust to hops back in time
25393       when calculating router stability. Previously, if a run of uptime
25394       or downtime appeared to be negative, the calculation could give
25395       incorrect results. Bugfix on 0.2.0.6-alpha; noticed when fixing
25396       bug 1035.
25397     - Fix an assert that got triggered when using the TestingTorNetwork
25398       configuration option and then issuing a GETINFO config-text control
25399       command. Fixes bug 2250; bugfix on 0.2.1.2-alpha.
25401   o Minor bugfixes (on 0.2.2.x):
25402     - Clients should not weight BadExit nodes as Exits in their node
25403       selection. Similarly, directory authorities should not count BadExit
25404       bandwidth as Exit bandwidth when computing bandwidth-weights.
25405       Bugfix on 0.2.2.10-alpha; fixes bug 2203.
25406     - Correctly clear our dir_read/dir_write history when there is an
25407       error parsing any bw history value from the state file. Bugfix on
25408       Tor 0.2.2.15-alpha.
25409     - Resolve a bug in verifying signatures of directory objects
25410       with digests longer than SHA1. Bugfix on 0.2.2.20-alpha.
25411       Fixes bug 2409. Found by "piebeer".
25412     - Bridge authorities no longer crash on SIGHUP when they try to
25413       publish their relay descriptor to themselves. Fixes bug 2572. Bugfix
25414       on 0.2.2.22-alpha.
25416   o Minor features:
25417     - Log less aggressively about circuit timeout changes, and improve
25418       some other circuit timeout messages. Resolves bug 2004.
25419     - Log a little more clearly about the times at which we're no longer
25420       accepting new connections. Resolves bug 2181.
25421     - Reject attempts at the client side to open connections to private
25422       IP addresses (like 127.0.0.1, 10.0.0.1, and so on) with
25423       a randomly chosen exit node. Attempts to do so are always
25424       ill-defined, generally prevented by exit policies, and usually
25425       in error. This will also help to detect loops in transparent
25426       proxy configurations. You can disable this feature by setting
25427       "ClientRejectInternalAddresses 0" in your torrc.
25428     - Always treat failure to allocate an RSA key as an unrecoverable
25429       allocation error.
25430     - Update to the March 1 2011 Maxmind GeoLite Country database.
25432   o Minor features (log subsystem):
25433     - Add documentation for configuring logging at different severities in
25434       different log domains. We've had this feature since 0.2.1.1-alpha,
25435       but for some reason it never made it into the manpage. Fixes
25436       bug 2215.
25437     - Make it simpler to specify "All log domains except for A and B".
25438       Previously you needed to say "[*,~A,~B]". Now you can just say
25439       "[~A,~B]".
25440     - Add a "LogMessageDomains 1" option to include the domains of log
25441       messages along with the messages. Without this, there's no way
25442       to use log domains without reading the source or doing a lot
25443       of guessing.
25445   o Packaging changes:
25446     - Stop shipping the Tor specs files and development proposal documents
25447       in the tarball. They are now in a separate git repository at
25448       git://git.torproject.org/torspec.git
25451 Changes in version 0.2.1.30 - 2011-02-23
25452   Tor 0.2.1.30 fixes a variety of less critical bugs. The main other
25453   change is a slight tweak to Tor's TLS handshake that makes relays
25454   and bridges that run this new version reachable from Iran again.
25455   We don't expect this tweak will win the arms race long-term, but it
25456   buys us time until we roll out a better solution.
25458   o Major bugfixes:
25459     - Stop sending a CLOCK_SKEW controller status event whenever
25460       we fetch directory information from a relay that has a wrong clock.
25461       Instead, only inform the controller when it's a trusted authority
25462       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
25463       the rest of bug 1074.
25464     - Fix a bounds-checking error that could allow an attacker to
25465       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
25466       Found by "piebeer".
25467     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
25468       Tor would ignore their RelayBandwidthBurst setting,
25469       potentially using more bandwidth than expected. Bugfix on
25470       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
25471     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
25472       hidserv" in her torrc. The 'hidserv' argument never controlled
25473       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
25475   o Minor features:
25476     - Adjust our TLS Diffie-Hellman parameters to match those used by
25477       Apache's mod_ssl.
25478     - Update to the February 1 2011 Maxmind GeoLite Country database.
25480   o Minor bugfixes:
25481     - Check for and reject overly long directory certificates and
25482       directory tokens before they have a chance to hit any assertions.
25483       Bugfix on 0.2.1.28. Found by "doorss".
25484     - Bring the logic that gathers routerinfos and assesses the
25485       acceptability of circuits into line. This prevents a Tor OP from
25486       getting locked in a cycle of choosing its local OR as an exit for a
25487       path (due to a .exit request) and then rejecting the circuit because
25488       its OR is not listed yet. It also prevents Tor clients from using an
25489       OR running in the same instance as an exit (due to a .exit request)
25490       if the OR does not meet the same requirements expected of an OR
25491       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
25493   o Packaging changes:
25494     - Stop shipping the Tor specs files and development proposal documents
25495       in the tarball. They are now in a separate git repository at
25496       git://git.torproject.org/torspec.git
25497     - Do not include Git version tags as though they are SVN tags when
25498       generating a tarball from inside a repository that has switched
25499       between branches. Bugfix on 0.2.1.15-rc; fixes bug 2402.
25502 Changes in version 0.2.2.22-alpha - 2011-01-25
25503   Tor 0.2.2.22-alpha fixes a few more less-critical security issues. The
25504   main other change is a slight tweak to Tor's TLS handshake that makes
25505   relays and bridges that run this new version reachable from Iran again.
25506   We don't expect this tweak will win the arms race long-term, but it
25507   will buy us a bit more time until we roll out a better solution.
25509   o Major bugfixes:
25510     - Fix a bounds-checking error that could allow an attacker to
25511       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
25512       Found by "piebeer".
25513     - Don't assert when changing from bridge to relay or vice versa
25514       via the controller. The assert happened because we didn't properly
25515       initialize our keys in this case. Bugfix on 0.2.2.18-alpha; fixes
25516       bug 2433. Reported by bastik.
25518   o Minor features:
25519     - Adjust our TLS Diffie-Hellman parameters to match those used by
25520       Apache's mod_ssl.
25521     - Provide a log message stating which geoip file we're parsing
25522       instead of just stating that we're parsing the geoip file.
25523       Implements ticket 2432.
25525   o Minor bugfixes:
25526     - Check for and reject overly long directory certificates and
25527       directory tokens before they have a chance to hit any assertions.
25528       Bugfix on 0.2.1.28 / 0.2.2.20-alpha. Found by "doorss".
25531 Changes in version 0.2.2.21-alpha - 2011-01-15
25532   Tor 0.2.2.21-alpha includes all the patches from Tor 0.2.1.29, which
25533   continues our recent code security audit work. The main fix resolves
25534   a remote heap overflow vulnerability that can allow remote code
25535   execution (CVE-2011-0427). Other fixes address a variety of assert
25536   and crash bugs, most of which we think are hard to exploit remotely.
25538   o Major bugfixes (security), also included in 0.2.1.29:
25539     - Fix a heap overflow bug where an adversary could cause heap
25540       corruption. This bug probably allows remote code execution
25541       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
25542       0.1.2.10-rc.
25543     - Prevent a denial-of-service attack by disallowing any
25544       zlib-compressed data whose compression factor is implausibly
25545       high. Fixes part of bug 2324; reported by "doorss".
25546     - Zero out a few more keys in memory before freeing them. Fixes
25547       bug 2384 and part of bug 2385. These key instances found by
25548       "cypherpunks", based on Andrew Case's report about being able
25549       to find sensitive data in Tor's memory space if you have enough
25550       permissions. Bugfix on 0.0.2pre9.
25552   o Major bugfixes (crashes), also included in 0.2.1.29:
25553     - Prevent calls to Libevent from inside Libevent log handlers.
25554       This had potential to cause a nasty set of crashes, especially
25555       if running Libevent with debug logging enabled, and running
25556       Tor with a controller watching for low-severity log messages.
25557       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
25558     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
25559       underflow errors there too. Fixes the other part of bug 2324.
25560     - Fix a bug where we would assert if we ever had a
25561       cached-descriptors.new file (or another file read directly into
25562       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
25563       on 0.2.1.25. Found by doorss.
25564     - Fix some potential asserts and parsing issues with grossly
25565       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
25566       Found by doorss.
25568   o Minor bugfixes (other), also included in 0.2.1.29:
25569     - Fix a bug with handling misformed replies to reverse DNS lookup
25570       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
25571       bug reported by doorss.
25572     - Fix compilation on mingw when a pthreads compatibility library
25573       has been installed. (We don't want to use it, so we shouldn't
25574       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
25575     - Fix a bug where we would declare that we had run out of virtual
25576       addresses when the address space was only half-exhausted. Bugfix
25577       on 0.1.2.1-alpha.
25578     - Correctly handle the case where AutomapHostsOnResolve is set but
25579       no virtual addresses are available. Fixes bug 2328; bugfix on
25580       0.1.2.1-alpha. Bug found by doorss.
25581     - Correctly handle wrapping around when we run out of virtual
25582       address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha.
25584   o Minor features, also included in 0.2.1.29:
25585     - Update to the January 1 2011 Maxmind GeoLite Country database.
25586     - Introduce output size checks on all of our decryption functions.
25588   o Build changes, also included in 0.2.1.29:
25589     - Tor does not build packages correctly with Automake 1.6 and earlier;
25590       added a check to Makefile.am to make sure that we're building with
25591       Automake 1.7 or later.
25592     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
25593       because we built it with a too-old version of automake. Thus that
25594       release broke ./configure --enable-openbsd-malloc, which is popular
25595       among really fast exit relays on Linux.
25597   o Major bugfixes, new in 0.2.2.21-alpha:
25598     - Prevent crash/heap corruption when the cbtnummodes consensus
25599       parameter is set to 0 or large values. Fixes bug 2317; bugfix
25600       on 0.2.2.14-alpha.
25602   o Major features, new in 0.2.2.21-alpha:
25603     - Introduce minimum/maximum values that clients will believe
25604       from the consensus. Now we'll have a better chance to avoid crashes
25605       or worse when a consensus param has a weird value.
25607   o Minor features, new in 0.2.2.21-alpha:
25608     - Make sure to disable DirPort if running as a bridge. DirPorts aren't
25609       used on bridges, and it makes bridge scanning somewhat easier.
25610     - If writing the state file to disk fails, wait up to an hour before
25611       retrying again, rather than trying again each second. Fixes bug
25612       2346; bugfix on Tor 0.1.1.3-alpha.
25613     - Make Libevent log messages get delivered to controllers later,
25614       and not from inside the Libevent log handler. This prevents unsafe
25615       reentrant Libevent calls while still letting the log messages
25616       get through.
25617     - Detect platforms that brokenly use a signed size_t, and refuse to
25618       build there. Found and analyzed by doorss and rransom.
25619     - Fix a bunch of compile warnings revealed by mingw with gcc 4.5.
25620       Resolves bug 2314.
25622   o Minor bugfixes, new in 0.2.2.21-alpha:
25623     - Handle SOCKS messages longer than 128 bytes long correctly, rather
25624       than waiting forever for them to finish. Fixes bug 2330; bugfix
25625       on 0.2.0.16-alpha. Found by doorss.
25626     - Add assertions to check for overflow in arguments to
25627       base32_encode() and base32_decode(); fix a signed-unsigned
25628       comparison there too. These bugs are not actually reachable in Tor,
25629       but it's good to prevent future errors too. Found by doorss.
25630     - Correctly detect failures to create DNS requests when using Libevent
25631       versions before v2. (Before Libevent 2, we used our own evdns
25632       implementation. Its return values for Libevent's evdns_resolve_*()
25633       functions are not consistent with those from Libevent.) Fixes bug
25634       2363; bugfix on 0.2.2.6-alpha. Found by "lodger".
25636   o Documentation, new in 0.2.2.21-alpha:
25637     - Document the default socks host and port (127.0.0.1:9050) for
25638       tor-resolve.
25641 Changes in version 0.2.1.29 - 2011-01-15
25642   Tor 0.2.1.29 continues our recent code security audit work. The main
25643   fix resolves a remote heap overflow vulnerability that can allow remote
25644   code execution. Other fixes address a variety of assert and crash bugs,
25645   most of which we think are hard to exploit remotely.
25647   o Major bugfixes (security):
25648     - Fix a heap overflow bug where an adversary could cause heap
25649       corruption. This bug probably allows remote code execution
25650       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
25651       0.1.2.10-rc.
25652     - Prevent a denial-of-service attack by disallowing any
25653       zlib-compressed data whose compression factor is implausibly
25654       high. Fixes part of bug 2324; reported by "doorss".
25655     - Zero out a few more keys in memory before freeing them. Fixes
25656       bug 2384 and part of bug 2385. These key instances found by
25657       "cypherpunks", based on Andrew Case's report about being able
25658       to find sensitive data in Tor's memory space if you have enough
25659       permissions. Bugfix on 0.0.2pre9.
25661   o Major bugfixes (crashes):
25662     - Prevent calls to Libevent from inside Libevent log handlers.
25663       This had potential to cause a nasty set of crashes, especially
25664       if running Libevent with debug logging enabled, and running
25665       Tor with a controller watching for low-severity log messages.
25666       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
25667     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
25668       underflow errors there too. Fixes the other part of bug 2324.
25669     - Fix a bug where we would assert if we ever had a
25670       cached-descriptors.new file (or another file read directly into
25671       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
25672       on 0.2.1.25. Found by doorss.
25673     - Fix some potential asserts and parsing issues with grossly
25674       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
25675       Found by doorss.
25677   o Minor bugfixes (other):
25678     - Fix a bug with handling misformed replies to reverse DNS lookup
25679       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
25680       bug reported by doorss.
25681     - Fix compilation on mingw when a pthreads compatibility library
25682       has been installed. (We don't want to use it, so we shouldn't
25683       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
25684     - Fix a bug where we would declare that we had run out of virtual
25685       addresses when the address space was only half-exhausted. Bugfix
25686       on 0.1.2.1-alpha.
25687     - Correctly handle the case where AutomapHostsOnResolve is set but
25688       no virtual addresses are available. Fixes bug 2328; bugfix on
25689       0.1.2.1-alpha. Bug found by doorss.
25690     - Correctly handle wrapping around to when we run out of virtual
25691       address space. Found by cypherpunks, bugfix on 0.2.0.5-alpha.
25692     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
25693       because we built it with a too-old version of automake. Thus that
25694       release broke ./configure --enable-openbsd-malloc, which is popular
25695       among really fast exit relays on Linux.
25697   o Minor features:
25698     - Update to the January 1 2011 Maxmind GeoLite Country database.
25699     - Introduce output size checks on all of our decryption functions.
25701   o Build changes:
25702     - Tor does not build packages correctly with Automake 1.6 and earlier;
25703       added a check to Makefile.am to make sure that we're building with
25704       Automake 1.7 or later.
25707 Changes in version 0.2.2.20-alpha - 2010-12-17
25708   Tor 0.2.2.20-alpha does some code cleanup to reduce the risk of remotely
25709   exploitable bugs. We also fix a variety of other significant bugs,
25710   change the IP address for one of our directory authorities, and update
25711   the minimum version that Tor relays must run to join the network.
25713   o Major bugfixes:
25714     - Fix a remotely exploitable bug that could be used to crash instances
25715       of Tor remotely by overflowing on the heap. Remote-code execution
25716       hasn't been confirmed, but can't be ruled out. Everyone should
25717       upgrade. Bugfix on the 0.1.1 series and later.
25718     - Fix a bug that could break accounting on 64-bit systems with large
25719       time_t values, making them hibernate for impossibly long intervals.
25720       Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper.
25721     - Fix a logic error in directory_fetches_from_authorities() that
25722       would cause all _non_-exits refusing single-hop-like circuits
25723       to fetch from authorities, when we wanted to have _exits_ fetch
25724       from authorities. Fixes more of 2097. Bugfix on 0.2.2.16-alpha;
25725       fix by boboper.
25726     - Fix a stream fairness bug that would cause newer streams on a given
25727       circuit to get preference when reading bytes from the origin or
25728       destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was
25729       introduced before the first Tor release, in svn revision r152.
25731   o Directory authority changes:
25732     - Change IP address and ports for gabelmoo (v3 directory authority).
25734   o Minor bugfixes:
25735     - Avoid crashes when AccountingMax is set on clients. Fixes bug 2235.
25736       Bugfix on 0.2.2.18-alpha. Diagnosed by boboper.
25737     - Fix an off-by-one error in calculating some controller command
25738       argument lengths. Fortunately, this mistake is harmless since
25739       the controller code does redundant NUL termination too. Found by
25740       boboper. Bugfix on 0.1.1.1-alpha.
25741     - Do not dereference NULL if a bridge fails to build its
25742       extra-info descriptor. Found by an anonymous commenter on
25743       Trac. Bugfix on 0.2.2.19-alpha.
25745   o Minor features:
25746     - Update to the December 1 2010 Maxmind GeoLite Country database.
25747     - Directory authorities now reject relays running any versions of
25748       Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
25749       known bugs that keep RELAY_EARLY cells from working on rendezvous
25750       circuits. Followup to fix for bug 2081.
25751     - Directory authorities now reject relays running any version of Tor
25752       older than 0.2.0.26-rc. That version is the earliest that fetches
25753       current directory information correctly. Fixes bug 2156.
25754     - Report only the top 10 ports in exit-port stats in order not to
25755       exceed the maximum extra-info descriptor length of 50 KB. Implements
25756       task 2196.
25759 Changes in version 0.2.1.28 - 2010-12-17
25760   Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely
25761   exploitable bugs. We also took this opportunity to change the IP address
25762   for one of our directory authorities, and to update the geoip database
25763   we ship.
25765   o Major bugfixes:
25766     - Fix a remotely exploitable bug that could be used to crash instances
25767       of Tor remotely by overflowing on the heap. Remote-code execution
25768       hasn't been confirmed, but can't be ruled out. Everyone should
25769       upgrade. Bugfix on the 0.1.1 series and later.
25771   o Directory authority changes:
25772     - Change IP address and ports for gabelmoo (v3 directory authority).
25774   o Minor features:
25775     - Update to the December 1 2010 Maxmind GeoLite Country database.
25778 Changes in version 0.2.1.27 - 2010-11-23
25779   Yet another OpenSSL security patch broke its compatibility with Tor:
25780   Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We
25781   also took this opportunity to fix several crash bugs, integrate a new
25782   directory authority, and update the bundled GeoIP database.
25784   o Major bugfixes:
25785     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
25786       No longer set the tlsext_host_name extension on server SSL objects;
25787       but continue to set it on client SSL objects. Our goal in setting
25788       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
25789       bugfix on 0.2.1.1-alpha.
25790     - Do not log messages to the controller while shrinking buffer
25791       freelists. Doing so would sometimes make the controller connection
25792       try to allocate a buffer chunk, which would mess up the internals
25793       of the freelist and cause an assertion failure. Fixes bug 1125;
25794       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
25795     - Learn our external IP address when we're a relay or bridge, even if
25796       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
25797       where we introduced bridge relays that don't need to publish to
25798       be useful. Fixes bug 2050.
25799     - Do even more to reject (and not just ignore) annotations on
25800       router descriptors received anywhere but from the cache. Previously
25801       we would ignore such annotations at first, but cache them to disk
25802       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
25803     - When you're using bridges and your network goes away and your
25804       bridges get marked as down, recover when you attempt a new socks
25805       connection (if the network is back), rather than waiting up to an
25806       hour to try fetching new descriptors for your bridges. Bugfix on
25807       0.2.0.3-alpha; fixes bug 1981.
25809   o Major features:
25810     - Move to the November 2010 Maxmind GeoLite country db (rather
25811       than the June 2009 ip-to-country GeoIP db) for our statistics that
25812       count how many users relays are seeing from each country. Now we'll
25813       have more accurate data, especially for many African countries.
25815   o New directory authorities:
25816     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
25817       authority.
25819   o Minor bugfixes:
25820     - Fix an assertion failure that could occur in directory caches or
25821       bridge users when using a very short voting interval on a testing
25822       network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on
25823       0.2.0.8-alpha.
25824     - Enforce multiplicity rules when parsing annotations. Bugfix on
25825       0.2.0.8-alpha. Found by piebeer.
25826     - Allow handshaking OR connections to take a full KeepalivePeriod
25827       seconds to handshake. Previously, we would close them after
25828       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
25829       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
25830       for analysis help.
25831     - When building with --enable-gcc-warnings on OpenBSD, disable
25832       warnings in system headers. This makes --enable-gcc-warnings
25833       pass on OpenBSD 4.8.
25835   o Minor features:
25836     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
25837       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
25838       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
25839       Servers can start sending this code when enough clients recognize
25840       it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793.
25841     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
25842       Patch from mingw-san.
25844   o Removed files:
25845     - Remove the old debian/ directory from the main Tor distribution.
25846       The official Tor-for-debian git repository lives at the URL
25847       https://git.torproject.org/debian/tor.git
25848     - Stop shipping the old doc/website/ directory in the tarball. We
25849       changed the website format in late 2010, and what we shipped in
25850       0.2.1.26 really wasn't that useful anyway.
25853 Changes in version 0.2.2.19-alpha - 2010-11-22
25854   Yet another OpenSSL security patch broke its compatibility with Tor:
25855   Tor 0.2.2.19-alpha makes relays work with OpenSSL 0.9.8p and 1.0.0.b.
25857   o Major bugfixes:
25858     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
25859       No longer set the tlsext_host_name extension on server SSL objects;
25860       but continue to set it on client SSL objects. Our goal in setting
25861       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
25862       bugfix on 0.2.1.1-alpha.
25864   o Minor bugfixes:
25865     - Try harder not to exceed the maximum length of 50 KB when writing
25866       statistics to extra-info descriptors. This bug was triggered by very
25867       fast relays reporting exit-port, entry, and dirreq statistics.
25868       Reported by Olaf Selke. Bugfix on 0.2.2.1-alpha. Fixes bug 2183.
25869     - Publish a router descriptor even if generating an extra-info
25870       descriptor fails. Previously we would not publish a router
25871       descriptor without an extra-info descriptor; this can cause fast
25872       exit relays collecting exit-port statistics to drop from the
25873       consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195.
25876 Changes in version 0.2.2.18-alpha - 2010-11-16
25877   Tor 0.2.2.18-alpha fixes several crash bugs that have been nagging
25878   us lately, makes unpublished bridge relays able to detect their IP
25879   address, and fixes a wide variety of other bugs to get us much closer
25880   to a stable release.
25882   o Major bugfixes:
25883     - Do even more to reject (and not just ignore) annotations on
25884       router descriptors received anywhere but from the cache. Previously
25885       we would ignore such annotations at first, but cache them to disk
25886       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
25887     - Do not log messages to the controller while shrinking buffer
25888       freelists. Doing so would sometimes make the controller connection
25889       try to allocate a buffer chunk, which would mess up the internals
25890       of the freelist and cause an assertion failure. Fixes bug 1125;
25891       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
25892     - Learn our external IP address when we're a relay or bridge, even if
25893       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
25894       where we introduced bridge relays that don't need to publish to
25895       be useful. Fixes bug 2050.
25896     - Maintain separate TLS contexts and certificates for incoming and
25897       outgoing connections in bridge relays. Previously we would use the
25898       same TLS contexts and certs for incoming and outgoing connections.
25899       Bugfix on 0.2.0.3-alpha; addresses bug 988.
25900     - Maintain separate identity keys for incoming and outgoing TLS
25901       contexts in bridge relays. Previously we would use the same
25902       identity keys for incoming and outgoing TLS contexts. Bugfix on
25903       0.2.0.3-alpha; addresses the other half of bug 988.
25904     - Avoid an assertion failure when we as an authority receive a
25905       duplicate upload of a router descriptor that we already have,
25906       but which we previously considered an obsolete descriptor.
25907       Fixes another case of bug 1776. Bugfix on 0.2.2.16-alpha.
25908     - Avoid a crash bug triggered by looking at a dangling pointer while
25909       setting the network status consensus. Found by Robert Ransom.
25910       Bugfix on 0.2.2.17-alpha. Fixes bug 2097.
25911     - Fix a logic error where servers that _didn't_ act as exits would
25912       try to keep their server lists more aggressively up to date than
25913       exits, when it was supposed to be the other way around. Bugfix
25914       on 0.2.2.17-alpha.
25916   o Minor bugfixes (on Tor 0.2.1.x and earlier):
25917     - When we're trying to guess whether we know our IP address as
25918       a relay, we would log various ways that we failed to guess
25919       our address, but never log that we ended up guessing it
25920       successfully. Now add a log line to help confused and anxious
25921       relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534.
25922     - Bring the logic that gathers routerinfos and assesses the
25923       acceptability of circuits into line. This prevents a Tor OP from
25924       getting locked in a cycle of choosing its local OR as an exit for a
25925       path (due to a .exit request) and then rejecting the circuit because
25926       its OR is not listed yet. It also prevents Tor clients from using an
25927       OR running in the same instance as an exit (due to a .exit request)
25928       if the OR does not meet the same requirements expected of an OR
25929       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
25930     - Correctly describe errors that occur when generating a TLS object.
25931       Previously we would attribute them to a failure while generating a
25932       TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes
25933       bug 1994.
25934     - Enforce multiplicity rules when parsing annotations. Bugfix on
25935       0.2.0.8-alpha. Found by piebeer.
25936     - Fix warnings that newer versions of autoconf produced during
25937       ./autogen.sh. These warnings appear to be harmless in our case,
25938       but they were extremely verbose. Fixes bug 2020.
25940   o Minor bugfixes (on Tor 0.2.2.x):
25941     - Enable protection of small arrays whenever we build with gcc
25942       hardening features, not only when also building with warnings
25943       enabled. Fixes bug 2031; bugfix on 0.2.2.14-alpha. Reported by keb.
25945   o Minor features:
25946     - Make hidden services work better in private Tor networks by not
25947       requiring any uptime to join the hidden service descriptor
25948       DHT. Implements ticket 2088.
25949     - Rate-limit the "your application is giving Tor only an IP address"
25950       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
25951     - When AllowSingleHopExits is set, print a warning to explain to the
25952       relay operator why most clients are avoiding her relay.
25953     - Update to the November 1 2010 Maxmind GeoLite Country database.
25955   o Code simplifications and refactoring:
25956     - When we fixed bug 1038 we had to put in a restriction not to send
25957       RELAY_EARLY cells on rend circuits. This was necessary as long
25958       as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
25959       active. Now remove this obsolete check. Resolves bug 2081.
25960     - Some options used different conventions for uppercasing of acronyms
25961       when comparing manpage and source. Fix those in favor of the
25962       manpage, as it makes sense to capitalize acronyms.
25963     - Remove the torrc.complete file. It hasn't been kept up to date
25964       and users will have better luck checking out the manpage.
25965     - Remove the obsolete "NoPublish" option; it has been flagged
25966       as obsolete and has produced a warning since 0.1.1.18-rc.
25967     - Remove everything related to building the expert bundle for OS X.
25968       It has confused many users, doesn't work right on OS X 10.6,
25969       and is hard to get rid of once installed. Resolves bug 1274.
25972 Changes in version 0.2.2.17-alpha - 2010-09-30
25973   Tor 0.2.2.17-alpha introduces a feature to make it harder for clients
25974   to use one-hop circuits (which can put the exit relays at higher risk,
25975   plus unbalance the network); fixes a big bug in bandwidth accounting
25976   for relays that want to limit their monthly bandwidth use; fixes a
25977   big pile of bugs in how clients tolerate temporary network failure;
25978   and makes our adaptive circuit build timeout feature (which improves
25979   client performance if your network is fast while not breaking things
25980   if your network is slow) better handle bad networks.
25982   o Major features:
25983     - Exit relays now try harder to block exit attempts from unknown
25984       relays, to make it harder for people to use them as one-hop proxies
25985       a la tortunnel. Controlled by the refuseunknownexits consensus
25986       parameter (currently enabled), or you can override it on your
25987       relay with the RefuseUnknownExits torrc option. Resolves bug 1751.
25989   o Major bugfixes (0.2.1.x and earlier):
25990     - Fix a bug in bandwidth accounting that could make us use twice
25991       the intended bandwidth when our interval start changes due to
25992       daylight saving time. Now we tolerate skew in stored vs computed
25993       interval starts: if the start of the period changes by no more than
25994       50% of the period's duration, we remember bytes that we transferred
25995       in the old period. Fixes bug 1511; bugfix on 0.0.9pre5.
25996     - Always search the Windows system directory for system DLLs, and
25997       nowhere else. Bugfix on 0.1.1.23; fixes bug 1954.
25998     - When you're using bridges and your network goes away and your
25999       bridges get marked as down, recover when you attempt a new socks
26000       connection (if the network is back), rather than waiting up to an
26001       hour to try fetching new descriptors for your bridges. Bugfix on
26002       0.2.0.3-alpha; fixes bug 1981.
26004   o Major bugfixes (on 0.2.2.x):
26005     - Fix compilation on Windows. Bugfix on 0.2.2.16-alpha; related to
26006       bug 1797.
26007     - Fix a segfault that could happen when operating a bridge relay with
26008       no GeoIP database set. Fixes bug 1964; bugfix on 0.2.2.15-alpha.
26009     - The consensus bandwidth-weights (used by clients to choose fast
26010       relays) entered an unexpected edge case in September where
26011       Exits were much scarcer than Guards, resulting in bad weight
26012       recommendations. Now we compute them using new constraints that
26013       should succeed in all cases. Also alter directory authorities to
26014       not include the bandwidth-weights line if they fail to produce
26015       valid values. Fixes bug 1952; bugfix on 0.2.2.10-alpha.
26016     - When weighting bridges during path selection, we used to trust
26017       the bandwidths they provided in their descriptor, only capping them
26018       at 10MB/s. This turned out to be problematic for two reasons:
26019       Bridges could claim to handle a lot more traffic then they
26020       actually would, thus making more clients pick them and have a
26021       pretty effective DoS attack. The other issue is that new bridges
26022       that might not have a good estimate for their bw capacity yet
26023       would not get used at all unless no other bridges are available
26024       to a client. Fixes bug 1912; bugfix on 0.2.2.7-alpha.
26026   o Major bugfixes (on the circuit build timeout feature, 0.2.2.x):
26027     - Ignore cannibalized circuits when recording circuit build times.
26028       This should provide for a minor performance improvement for hidden
26029       service users using 0.2.2.14-alpha, and should remove two spurious
26030       notice log messages. Bugfix on 0.2.2.14-alpha; fixes bug 1740.
26031     - Simplify the logic that causes us to decide if the network is
26032       unavailable for purposes of recording circuit build times. If we
26033       receive no cells whatsoever for the entire duration of a circuit's
26034       full measured lifetime, the network is probably down. Also ignore
26035       one-hop directory fetching circuit timeouts when calculating our
26036       circuit build times. These changes should hopefully reduce the
26037       cases where we see ridiculous circuit build timeouts for people
26038       with spotty wireless connections. Fixes part of bug 1772; bugfix
26039       on 0.2.2.2-alpha.
26040     - Prevent the circuit build timeout from becoming larger than
26041       the maximum build time we have ever seen. Also, prevent the time
26042       period for measurement circuits from becoming larger than twice that
26043       value. Fixes the other part of bug 1772; bugfix on 0.2.2.2-alpha.
26045   o Minor features:
26046     - When we run out of directory information such that we can't build
26047       circuits, but then get enough that we can build circuits, log when
26048       we actually construct a circuit, so the user has a better chance of
26049       knowing what's going on. Fixes bug 1362.
26050     - Be more generous with how much bandwidth we'd use up (with
26051       accounting enabled) before entering "soft hibernation". Previously,
26052       we'd refuse new connections and circuits once we'd used up 95% of
26053       our allotment. Now, we use up 95% of our allotment, AND make sure
26054       that we have no more than 500MB (or 3 hours of expected traffic,
26055       whichever is lower) remaining before we enter soft hibernation.
26056     - If we've configured EntryNodes and our network goes away and/or all
26057       our entrynodes get marked down, optimistically retry them all when
26058       a new socks application request appears. Fixes bug 1882.
26059     - Add some more defensive programming for architectures that can't
26060       handle unaligned integer accesses. We don't know of any actual bugs
26061       right now, but that's the best time to fix them. Fixes bug 1943.
26062     - Support line continuations in the torrc config file. If a line
26063       ends with a single backslash character, the newline is ignored, and
26064       the configuration value is treated as continuing on the next line.
26065       Resolves bug 1929.
26067   o Minor bugfixes (on 0.2.1.x and earlier):
26068     - For bandwidth accounting, calculate our expected bandwidth rate
26069       based on the time during which we were active and not in
26070       soft-hibernation during the last interval. Previously, we were
26071       also considering the time spent in soft-hibernation. If this
26072       was a long time, we would wind up underestimating our bandwidth
26073       by a lot, and skewing our wakeup time towards the start of the
26074       accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.
26076   o Minor bugfixes (on 0.2.2.x):
26077     - Resume generating CIRC FAILED REASON=TIMEOUT control port messages,
26078       which were disabled by the circuit build timeout changes in
26079       0.2.2.14-alpha. Bugfix on 0.2.2.14-alpha; fixes bug 1739.
26080     - Make sure we don't warn about missing bandwidth weights when
26081       choosing bridges or other relays not in the consensus. Bugfix on
26082       0.2.2.10-alpha; fixes bug 1805.
26083     - In our logs, do not double-report signatures from unrecognized
26084       authorities both as "from unknown authority" and "not
26085       present". Fixes bug 1956, bugfix on 0.2.2.16-alpha.
26088 Changes in version 0.2.2.16-alpha - 2010-09-17
26089   Tor 0.2.2.16-alpha fixes a variety of old stream fairness bugs (most
26090   evident at exit relays), and also continues to resolve all the little
26091   bugs that have been filling up trac lately.
26093   o Major bugfixes (stream-level fairness):
26094     - When receiving a circuit-level SENDME for a blocked circuit, try
26095       to package cells fairly from all the streams that had previously
26096       been blocked on that circuit. Previously, we had started with the
26097       oldest stream, and allowed each stream to potentially exhaust
26098       the circuit's package window. This gave older streams on any
26099       given circuit priority over newer ones. Fixes bug 1937. Detected
26100       originally by Camilo Viecco. This bug was introduced before the
26101       first Tor release, in svn commit r152: it is the new winner of
26102       the longest-lived bug prize.
26103     - When the exit relay got a circuit-level sendme cell, it started
26104       reading on the exit streams, even if had 500 cells queued in the
26105       circuit queue already, so the circuit queue just grew and grew in
26106       some cases. We fix this by not re-enabling reading on receipt of a
26107       sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix
26108       on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by
26109       "yetonetime".
26110     - Newly created streams were allowed to read cells onto circuits,
26111       even if the circuit's cell queue was blocked and waiting to drain.
26112       This created potential unfairness, as older streams would be
26113       blocked, but newer streams would gladly fill the queue completely.
26114       We add code to detect this situation and prevent any stream from
26115       getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially
26116       fixes bug 1298.
26118   o Minor features:
26119     - Update to the September 1 2010 Maxmind GeoLite Country database.
26120     - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is
26121       not. This would lead to a cookie that is still not group readable.
26122       Closes bug 1843. Suggested by katmagic.
26123     - When logging a rate-limited warning, we now mention how many messages
26124       got suppressed since the last warning.
26125     - Add new "perconnbwrate" and "perconnbwburst" consensus params to
26126       do individual connection-level rate limiting of clients. The torrc
26127       config options with the same names trump the consensus params, if
26128       both are present. Replaces the old "bwconnrate" and "bwconnburst"
26129       consensus params which were broken from 0.2.2.7-alpha through
26130       0.2.2.14-alpha. Closes bug 1947.
26131     - When a router changes IP address or port, authorities now launch
26132       a new reachability test for it. Implements ticket 1899.
26133     - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad,
26134       2 no signature, 4 required" messages about consensus signatures
26135       easier to read, and make sure they get logged at the same severity
26136       as the messages explaining which keys are which. Fixes bug 1290.
26137     - Don't warn when we have a consensus that we can't verify because
26138       of missing certificates, unless those certificates are ones
26139       that we have been trying and failing to download. Fixes bug 1145.
26140     - If you configure your bridge with a known identity fingerprint,
26141       and the bridge authority is unreachable (as it is in at least
26142       one country now), fall back to directly requesting the descriptor
26143       from the bridge. Finishes the feature started in 0.2.0.10-alpha;
26144       closes bug 1138.
26145     - When building with --enable-gcc-warnings on OpenBSD, disable
26146       warnings in system headers. This makes --enable-gcc-warnings
26147       pass on OpenBSD 4.8.
26149   o Minor bugfixes (on 0.2.1.x and earlier):
26150     - Authorities will now attempt to download consensuses if their
26151       own efforts to make a live consensus have failed. This change
26152       means authorities that restart will fetch a valid consensus, and
26153       it means authorities that didn't agree with the current consensus
26154       will still fetch and serve it if it has enough signatures. Bugfix
26155       on 0.2.0.9-alpha; fixes bug 1300.
26156     - Ensure DNS requests launched by "RESOLVE" commands from the
26157       controller respect the __LeaveStreamsUnattached setconf options. The
26158       same goes for requests launched via DNSPort or transparent
26159       proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525.
26160     - Allow handshaking OR connections to take a full KeepalivePeriod
26161       seconds to handshake. Previously, we would close them after
26162       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
26163       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
26164       for analysis help.
26165     - Rate-limit "Failed to hand off onionskin" warnings.
26166     - Never relay a cell for a circuit we have already destroyed.
26167       Between marking a circuit as closeable and finally closing it,
26168       it may have been possible for a few queued cells to get relayed,
26169       even though they would have been immediately dropped by the next
26170       OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha.
26171     - Never queue a cell for a circuit that's already been marked
26172       for close.
26173     - Never vote for a server as "Running" if we have a descriptor for
26174       it claiming to be hibernating, and that descriptor was published
26175       more recently than our last contact with the server. Bugfix on
26176       0.2.0.3-alpha; fixes bug 911.
26177     - Squash a compile warning on OpenBSD. Reported by Tas; fixes
26178       bug 1848.
26180   o Minor bugfixes (on 0.2.2.x):
26181     - Fix a regression introduced in 0.2.2.7-alpha that marked relays
26182       down if a directory fetch fails and you've configured either
26183       bridges or EntryNodes. The intent was to mark the relay as down
26184       _unless_ you're using bridges or EntryNodes, since if you are
26185       then you could quickly run out of entry points.
26186     - Fix the Windows directory-listing code. A bug introduced in
26187       0.2.2.14-alpha could make Windows directory servers forget to load
26188       some of their cached v2 networkstatus files.
26189     - Really allow clients to use relays as bridges. Fixes bug 1776;
26190       bugfix on 0.2.2.15-alpha.
26191     - Demote a warn to info that happens when the CellStatistics option
26192       was just enabled. Bugfix on 0.2.2.15-alpha; fixes bug 1921.
26193       Reported by Moritz Bartl.
26194     - On Windows, build correctly either with or without Unicode support.
26195       This is necessary so that Tor can support fringe platforms like
26196       Windows 98 (which has no Unicode), or Windows CE (which has no
26197       non-Unicode). Bugfix on 0.2.2.14-alpha; fixes bug 1797.
26199   o Testing
26200     - Add a unit test for cross-platform directory-listing code.
26203 Changes in version 0.2.2.15-alpha - 2010-08-18
26204   Tor 0.2.2.15-alpha fixes a big bug in hidden service availability,
26205   fixes a variety of other bugs that were preventing performance
26206   experiments from moving forward, fixes several bothersome memory leaks,
26207   and generally closes a lot of smaller bugs that have been filling up
26208   trac lately.
26210   o Major bugfixes:
26211     - Stop assigning the HSDir flag to relays that disable their
26212       DirPort (and thus will refuse to answer directory requests). This
26213       fix should dramatically improve the reachability of hidden services:
26214       hidden services and hidden service clients pick six HSDir relays
26215       to store and retrieve the hidden service descriptor, and currently
26216       about half of the HSDir relays will refuse to work. Bugfix on
26217       0.2.0.10-alpha; fixes part of bug 1693.
26218     - The PerConnBWRate and Burst config options, along with the
26219       bwconnrate and bwconnburst consensus params, initialized each conn's
26220       token bucket values only when the connection is established. Now we
26221       update them if the config options change, and update them every time
26222       we get a new consensus. Otherwise we can encounter an ugly edge
26223       case where we initialize an OR conn to client-level bandwidth,
26224       but then later the relay joins the consensus and we leave it
26225       throttled. Bugfix on 0.2.2.7-alpha; fixes bug 1830.
26226     - Fix a regression that caused Tor to rebind its ports if it receives
26227       SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919.
26229   o Major features:
26230     - Lower the maximum weighted-fractional-uptime cutoff to 98%. This
26231       should give us approximately 40-50% more Guard-flagged nodes,
26232       improving the anonymity the Tor network can provide and also
26233       decreasing the dropoff in throughput that relays experience when
26234       they first get the Guard flag.
26235     - Allow enabling or disabling the *Statistics config options while
26236       Tor is running.
26238   o Minor features:
26239     - Update to the August 1 2010 Maxmind GeoLite Country database.
26240     - Have the controller interface give a more useful message than
26241       "Internal Error" in response to failed GETINFO requests.
26242     - Warn when the same option is provided more than once in a torrc
26243       file, on the command line, or in a single SETCONF statement, and
26244       the option is one that only accepts a single line. Closes bug 1384.
26245     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
26246       Patch from mingw-san.
26247     - Add support for the country code "{??}" in torrc options like
26248       ExcludeNodes, to indicate all routers of unknown country. Closes
26249       bug 1094.
26250     - Relays report the number of bytes spent on answering directory
26251       requests in extra-info descriptors similar to {read,write}-history.
26252       Implements enhancement 1790.
26254   o Minor bugfixes (on 0.2.1.x and earlier):
26255     - Complain if PublishServerDescriptor is given multiple arguments that
26256       include 0 or 1. This configuration will be rejected in the future.
26257       Bugfix on 0.2.0.1-alpha; closes bug 1107.
26258     - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration.
26259       Bugfix on 0.2.0.13-alpha; closes bug 928.
26260     - Change "Application request when we're believed to be offline."
26261       notice to "Application request when we haven't used client
26262       functionality lately.", to clarify that it's not an error. Bugfix
26263       on 0.0.9.3; fixes bug 1222.
26264     - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl"
26265       would return "551 Internal error" rather than "552 Unrecognized key
26266       ns/asdaskljkl". Bugfix on 0.1.2.3-alpha.
26267     - Users can't configure a regular relay to be their bridge. It didn't
26268       work because when Tor fetched the bridge descriptor, it found
26269       that it already had it, and didn't realize that the purpose of the
26270       descriptor had changed. Now we replace routers with a purpose other
26271       than bridge with bridge descriptors when fetching them. Bugfix on
26272       0.1.1.9-alpha. Bug 1776 not yet fixed because now we immediately
26273       refetch the descriptor with router purpose 'general', disabling
26274       it as a bridge.
26275     - Fix a rare bug in rend_fn unit tests: we would fail a test when
26276       a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix
26277       on 0.2.0.10-alpha; fixes bug 1808.
26278     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
26279       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
26280       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
26281       Servers can start sending this code when enough clients recognize
26282       it. Also update the spec to reflect this new reason. Bugfix on
26283       0.1.0.1-rc; fixes part of bug 1793.
26284     - Delay geoip stats collection by bridges for 6 hours, not 2 hours,
26285       when we switch from being a public relay to a bridge. Otherwise
26286       there will still be clients that see the relay in their consensus,
26287       and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes bug
26288       932 even more.
26289     - Instead of giving an assertion failure on an internal mismatch
26290       on estimated freelist size, just log a BUG warning and try later.
26291       Mitigates but does not fix bug 1125.
26292     - Fix an assertion failure that could occur in caches or bridge users
26293       when using a very short voting interval on a testing network.
26294       Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 0.2.0.8-alpha.
26296   o Minor bugfixes (on 0.2.2.x):
26297     - Alter directory authorities to always consider Exit-flagged nodes
26298       as potential Guard nodes in their votes. The actual decision to
26299       use Exits as Guards is done in the consensus bandwidth weights.
26300       Fixes bug 1294; bugfix on 0.2.2.10-alpha.
26301     - When the controller is reporting the purpose of circuits that
26302       didn't finish building before the circuit build timeout, it was
26303       printing UNKNOWN_13. Now print EXPIRED. Bugfix on 0.2.2.14-alpha.
26304     - Our libevent version parsing code couldn't handle versions like
26305       1.4.14b-stable and incorrectly warned the user about using an
26306       old and broken version of libevent. Treat 1.4.14b-stable like
26307       1.4.14-stable when parsing the version. Fixes bug 1731; bugfix
26308       on 0.2.2.1-alpha.
26309     - Don't use substitution references like $(VAR:MOD) when
26310       $(asciidoc_files) is empty -- make(1) on NetBSD transforms
26311       '$(:x)' to 'x' rather than the empty string. This bites us in
26312       doc/ when configured with --disable-asciidoc. Bugfix on
26313       0.2.2.9-alpha; fixes bug 1773.
26314     - Remove a spurious hidden service server-side log notice about
26315       "Ancient non-dirty circuits". Bugfix on 0.2.2.14-alpha; fixes
26316       bug 1741.
26317     - Fix compilation with --with-dmalloc set. Bugfix on 0.2.2.6-alpha;
26318       fixes bug 1832.
26319     - Correctly report written bytes on linked connections. Found while
26320       implementing 1790. Bugfix on 0.2.2.4-alpha.
26321     - Fix three memory leaks: one in circuit_build_times_parse_state(),
26322       one in dirvote_add_signatures_to_pending_consensus(), and one every
26323       time we parse a v3 network consensus. Bugfixes on 0.2.2.14-alpha,
26324       0.2.2.6-alpha, and 0.2.2.10-alpha respectively; fixes bug 1831.
26326   o Code simplifications and refactoring:
26327     - Take a first step towards making or.h smaller by splitting out
26328       function definitions for all source files in src/or/. Leave
26329       structures and defines in or.h for now.
26330     - Remove a bunch of unused function declarations as well as a block of
26331       #if 0'd code from the unit tests. Closes bug 1824.
26332     - New unit tests for exit-port history statistics; refactored exit
26333       statistics code to be more easily tested.
26334     - Remove the old debian/ directory from the main Tor distribution.
26335       The official Tor-for-debian git repository lives at the URL
26336       https://git.torproject.org/debian/tor.git
26339 Changes in version 0.2.2.14-alpha - 2010-07-12
26340   Tor 0.2.2.14-alpha greatly improves client-side handling of
26341   circuit build timeouts, which are used to estimate speed and improve
26342   performance. We also move to a much better GeoIP database, port Tor to
26343   Windows CE, introduce new compile flags that improve code security,
26344   add an eighth v3 directory authority, and address a lot of more
26345   minor issues.
26347   o Major bugfixes:
26348     - Tor directory authorities no longer crash when started with a
26349       cached-microdesc-consensus file in their data directory. Bugfix
26350       on 0.2.2.6-alpha; fixes bug 1532.
26351     - Treat an unset $HOME like an empty $HOME rather than triggering an
26352       assert. Bugfix on 0.0.8pre1; fixes bug 1522.
26353     - Ignore negative and large circuit build timeout values that can
26354       happen during a suspend or hibernate. These values caused various
26355       asserts to fire. Bugfix on 0.2.2.2-alpha; fixes bug 1245.
26356     - Alter calculation of Pareto distribution parameter 'Xm' for
26357       Circuit Build Timeout learning to use the weighted average of the
26358       top N=3 modes (because we have three entry guards). Considering
26359       multiple modes should improve the timeout calculation in some cases,
26360       and prevent extremely high timeout values. Bugfix on 0.2.2.2-alpha;
26361       fixes bug 1335.
26362     - Alter calculation of Pareto distribution parameter 'Alpha' to use a
26363       right censored distribution model. This approach improves over the
26364       synthetic timeout generation approach that was producing insanely
26365       high timeout values. Now we calculate build timeouts using truncated
26366       times. Bugfix on 0.2.2.2-alpha; fixes bugs 1245 and 1335.
26367     - Do not close circuits that are under construction when they reach
26368       the circuit build timeout. Instead, leave them building (but do not
26369       use them) for up until the time corresponding to the 95th percentile
26370       on the Pareto CDF or 60 seconds, whichever is greater. This is done
26371       to provide better data for the new Pareto model. This percentile
26372       can be controlled by the consensus.
26374   o Major features:
26375     - Move to the June 2010 Maxmind GeoLite country db (rather than the
26376       June 2009 ip-to-country GeoIP db) for our statistics that count
26377       how many users relays are seeing from each country. Now we have
26378       more accurate data for many African countries.
26379     - Port Tor to build and run correctly on Windows CE systems, using
26380       the wcecompat library. Contributed by Valerio Lupi.
26381     - New "--enable-gcc-hardening" ./configure flag (off by default)
26382       to turn on gcc compile time hardening options. It ensures
26383       that signed ints have defined behavior (-fwrapv), enables
26384       -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
26385       with canaries (-fstack-protector-all), turns on ASLR protection if
26386       supported by the kernel (-fPIE, -pie), and adds additional security
26387       related warnings. Verified to work on Mac OS X and Debian Lenny.
26388     - New "--enable-linker-hardening" ./configure flag (off by default)
26389       to turn on ELF specific hardening features (relro, now). This does
26390       not work with Mac OS X or any other non-ELF binary format.
26392   o New directory authorities:
26393     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
26394       authority.
26396   o Minor features:
26397     - New config option "WarnUnsafeSocks 0" disables the warning that
26398       occurs whenever Tor receives a socks handshake using a version of
26399       the socks protocol that can only provide an IP address (rather
26400       than a hostname). Setups that do DNS locally over Tor are fine,
26401       and we shouldn't spam the logs in that case.
26402     - Convert the HACKING file to asciidoc, and add a few new sections
26403       to it, explaining how we use Git, how we make changelogs, and
26404       what should go in a patch.
26405     - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port
26406       event, to give information on the current rate of circuit timeouts
26407       over our stored history.
26408     - Add ability to disable circuit build time learning via consensus
26409       parameter and via a LearnCircuitBuildTimeout config option. Also
26410       automatically disable circuit build time calculation if we are
26411       either a AuthoritativeDirectory, or if we fail to write our state
26412       file. Fixes bug 1296.
26413     - More gracefully handle corrupt state files, removing asserts
26414       in favor of saving a backup and resetting state.
26415     - Rename the "log.h" header to "torlog.h" so as to conflict with fewer
26416       system headers.
26418   o Minor bugfixes:
26419     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
26420       enabled.
26421     - When a2x fails, mention that the user could disable manpages instead
26422       of trying to fix their asciidoc installation.
26423     - Where available, use Libevent 2.0's periodic timers so that our
26424       once-per-second cleanup code gets called even more closely to
26425       once per second than it would otherwise. Fixes bug 943.
26426     - If you run a bridge that listens on multiple IP addresses, and
26427       some user configures a bridge address that uses a different IP
26428       address than your bridge writes in its router descriptor, and the
26429       user doesn't specify an identity key, their Tor would discard the
26430       descriptor because "it isn't one of our configured bridges", and
26431       fail to bootstrap. Now believe the descriptor and bootstrap anyway.
26432       Bugfix on 0.2.0.3-alpha.
26433     - If OpenSSL fails to make a duplicate of a private or public key, log
26434       an error message and try to exit cleanly. May help with debugging
26435       if bug 1209 ever remanifests.
26436     - Save a couple bytes in memory allocation every time we escape
26437       certain characters in a string. Patch from Florian Zumbiehl.
26438     - Make it explicit that we don't cannibalize one-hop circuits. This
26439       happens in the wild, but doesn't turn out to be a problem because
26440       we fortunately don't use those circuits. Many thanks to outofwords
26441       for the initial analysis and to swissknife who confirmed that
26442       two-hop circuits are actually created.
26443     - Make directory mirrors report non-zero dirreq-v[23]-shares again.
26444       Fixes bug 1564; bugfix on 0.2.2.9-alpha.
26445     - Eliminate a case where a circuit build time warning was displayed
26446       after network connectivity resumed. Bugfix on 0.2.2.2-alpha.
26449 Changes in version 0.2.1.26 - 2010-05-02
26450   Tor 0.2.1.26 addresses the recent connection and memory overload
26451   problems we've been seeing on relays, especially relays with their
26452   DirPort open. If your relay has been crashing, or you turned it off
26453   because it used too many resources, give this release a try.
26455   This release also fixes yet another instance of broken OpenSSL libraries
26456   that was causing some relays to drop out of the consensus.
26458   o Major bugfixes:
26459     - Teach relays to defend themselves from connection overload. Relays
26460       now close idle circuits early if it looks like they were intended
26461       for directory fetches. Relays are also more aggressive about closing
26462       TLS connections that have no circuits on them. Such circuits are
26463       unlikely to be re-used, and tens of thousands of them were piling
26464       up at the fast relays, causing the relays to run out of sockets
26465       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
26466       their directory fetches over TLS).
26467     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
26468       that claim to be earlier than 0.9.8m, but which have in reality
26469       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
26470       behavior. Possible fix for some cases of bug 1346.
26471     - Directory mirrors were fetching relay descriptors only from v2
26472       directory authorities, rather than v3 authorities like they should.
26473       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
26474       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
26476   o Minor bugfixes:
26477     - Finally get rid of the deprecated and now harmful notion of "clique
26478       mode", where directory authorities maintain TLS connections to
26479       every other relay.
26481   o Testsuite fixes:
26482     - In the util/threads test, no longer free the test_mutex before all
26483       worker threads have finished. Bugfix on 0.2.1.6-alpha.
26484     - The master thread could starve the worker threads quite badly on
26485       certain systems, causing them to run only partially in the allowed
26486       window. This resulted in test failures. Now the master thread sleeps
26487       occasionally for a few microseconds while the two worker-threads
26488       compete for the mutex. Bugfix on 0.2.0.1-alpha.
26491 Changes in version 0.2.2.13-alpha - 2010-04-24
26492   Tor 0.2.2.13-alpha addresses the recent connection and memory overload
26493   problems we've been seeing on relays, especially relays with their
26494   DirPort open. If your relay has been crashing, or you turned it off
26495   because it used too many resources, give this release a try.
26497   o Major bugfixes:
26498     - Teach relays to defend themselves from connection overload. Relays
26499       now close idle circuits early if it looks like they were intended
26500       for directory fetches. Relays are also more aggressive about closing
26501       TLS connections that have no circuits on them. Such circuits are
26502       unlikely to be re-used, and tens of thousands of them were piling
26503       up at the fast relays, causing the relays to run out of sockets
26504       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
26505       their directory fetches over TLS).
26507   o Minor features:
26508     - Finally get rid of the deprecated and now harmful notion of "clique
26509       mode", where directory authorities maintain TLS connections to
26510       every other relay.
26511     - Directory authorities now do an immediate reachability check as soon
26512       as they hear about a new relay. This change should slightly reduce
26513       the time between setting up a relay and getting listed as running
26514       in the consensus. It should also improve the time between setting
26515       up a bridge and seeing use by bridge users.
26516     - Directory authorities no longer launch a TLS connection to every
26517       relay as they startup. Now that we have 2k+ descriptors cached,
26518       the resulting network hiccup is becoming a burden. Besides,
26519       authorities already avoid voting about Running for the first half
26520       hour of their uptime.
26523 Changes in version 0.2.2.12-alpha - 2010-04-20
26524   Tor 0.2.2.12-alpha fixes a critical bug in how directory authorities
26525   handle and vote on descriptors. It was causing relays to drop out of
26526   the consensus.
26528   o Major bugfixes:
26529     - Many relays have been falling out of the consensus lately because
26530       not enough authorities know about their descriptor for them to get
26531       a majority of votes. When we deprecated the v2 directory protocol,
26532       we got rid of the only way that v3 authorities can hear from each
26533       other about other descriptors. Now authorities examine every v3
26534       vote for new descriptors, and fetch them from that authority. Bugfix
26535       on 0.2.1.23.
26536     - Fix two typos in tor_vasprintf() that broke the compile on Windows,
26537       and a warning in or.h related to bandwidth_weight_rule_t that
26538       prevented clean compile on OS X. Fixes bug 1363; bugfix on
26539       0.2.2.11-alpha.
26540     - Fix a segfault on relays when DirReqStatistics is enabled
26541       and 24 hours pass. Bug found by keb. Fixes bug 1365; bugfix on
26542       0.2.2.11-alpha.
26544   o Minor bugfixes:
26545     - Demote a confusing TLS warning that relay operators might get when
26546       someone tries to talk to their OrPort. It is neither the operator's
26547       fault nor can they do anything about it. Fixes bug 1364; bugfix
26548       on 0.2.0.14-alpha.
26551 Changes in version 0.2.2.11-alpha - 2010-04-15
26552   Tor 0.2.2.11-alpha fixes yet another instance of broken OpenSSL
26553   libraries that was causing some relays to drop out of the consensus.
26555   o Major bugfixes:
26556     - Directory mirrors were fetching relay descriptors only from v2
26557       directory authorities, rather than v3 authorities like they should.
26558       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
26559       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
26560     - Fix a parsing error that made every possible value of
26561       CircPriorityHalflifeMsec get treated as "1 msec". Bugfix
26562       on 0.2.2.7-alpha. Rename CircPriorityHalflifeMsec to
26563       CircuitPriorityHalflifeMsec, so authorities can tell newer relays
26564       about the option without breaking older ones.
26565     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
26566       that claim to be earlier than 0.9.8m, but which have in reality
26567       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
26568       behavior. Possible fix for some cases of bug 1346.
26570   o Minor features:
26571     - Experiment with a more aggressive approach to preventing clients
26572       from making one-hop exit streams. Exit relays who want to try it
26573       out can set "RefuseUnknownExits 1" in their torrc, and then look
26574       for "Attempt by %s to open a stream" log messages. Let us know
26575       how it goes!
26576     - Add support for statically linking zlib by specifying
26577       --enable-static-zlib, to go with our support for statically linking
26578       openssl and libevent. Resolves bug 1358.
26580   o Minor bugfixes:
26581     - Fix a segfault that happens whenever a Tor client that is using
26582       libevent2's bufferevents gets a hup signal. Bugfix on 0.2.2.5-alpha;
26583       fixes bug 1341.
26584     - When we cleaned up the contrib/tor-exit-notice.html file, we left
26585       out the first line. Fixes bug 1295.
26586     - When building the manpage from a tarball, we required asciidoc, but
26587       the asciidoc -> roff/html conversion was already done for the
26588       tarball. Make 'make' complain only when we need asciidoc (either
26589       because we're compiling directly from git, or because we altered
26590       the asciidoc manpage in the tarball). Bugfix on 0.2.2.9-alpha.
26591     - When none of the directory authorities vote on any params, Tor
26592       segfaulted when trying to make the consensus from the votes. We
26593       didn't trigger the bug in practice, because authorities do include
26594       params in their votes. Bugfix on 0.2.2.10-alpha; fixes bug 1322.
26596   o Testsuite fixes:
26597     - In the util/threads test, no longer free the test_mutex before all
26598       worker threads have finished. Bugfix on 0.2.1.6-alpha.
26599     - The master thread could starve the worker threads quite badly on
26600       certain systems, causing them to run only partially in the allowed
26601       window. This resulted in test failures. Now the master thread sleeps
26602       occasionally for a few microseconds while the two worker-threads
26603       compete for the mutex. Bugfix on 0.2.0.1-alpha.
26606 Changes in version 0.2.2.10-alpha - 2010-03-07
26607   Tor 0.2.2.10-alpha fixes a regression introduced in 0.2.2.9-alpha that
26608   could prevent relays from guessing their IP address correctly. It also
26609   starts the groundwork for another client-side performance boost, since
26610   currently we're not making efficient use of relays that have both the
26611   Guard flag and the Exit flag.
26613   o Major bugfixes:
26614     - Fix a regression from our patch for bug 1244 that caused relays
26615       to guess their IP address incorrectly if they didn't set Address
26616       in their torrc and/or their address fails to resolve. Bugfix on
26617       0.2.2.9-alpha; fixes bug 1269.
26619   o Major features (performance):
26620     - Directory authorities now compute consensus weightings that instruct
26621       clients how to weight relays flagged as Guard, Exit, Guard+Exit,
26622       and no flag. Clients that use these weightings will distribute
26623       network load more evenly across these different relay types. The
26624       weightings are in the consensus so we can change them globally in
26625       the future. Extra thanks to "outofwords" for finding some nasty
26626       security bugs in the first implementation of this feature.
26628   o Minor features (performance):
26629     - Always perform router selections using weighted relay bandwidth,
26630       even if we don't need a high capacity circuit at the time. Non-fast
26631       circuits now only differ from fast ones in that they can use relays
26632       not marked with the Fast flag. This "feature" could turn out to
26633       be a horrible bug; we should investigate more before it goes into
26634       a stable release.
26636   o Minor features:
26637     - Allow disabling building of the manpages. Skipping the manpage
26638       speeds up the build considerably.
26640   o Minor bugfixes (on 0.2.2.x):
26641     - Fix a memleak in the EXTENDCIRCUIT logic. Spotted by coverity.
26642       Bugfix on 0.2.2.9-alpha.
26643     - Disallow values larger than INT32_MAX for PerConnBWRate|Burst
26644       config option. Bugfix on 0.2.2.7-alpha.
26645     - Ship the asciidoc-helper file in the tarball, so that people can
26646       build from source if they want to, and touching the .1.txt files
26647       doesn't break the build. Bugfix on 0.2.2.9-alpha.
26649   o Minor bugfixes (on 0.2.1.x or earlier):
26650     - Fix a dereference-then-NULL-check sequence when publishing
26651       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
26652       bug 1255.
26653     - Fix another dereference-then-NULL-check sequence. Bugfix on
26654       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
26655     - Make sure we treat potentially not NUL-terminated strings correctly.
26656       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
26658   o Code simplifications and refactoring:
26659     - Fix some urls in the exit notice file and make it XHTML1.1 strict
26660       compliant. Based on a patch from Christian Kujau.
26661     - Don't use sed in asciidoc-helper anymore.
26662     - Make the build process fail if asciidoc cannot be found and
26663       building with asciidoc isn't disabled.
26666 Changes in version 0.2.2.9-alpha - 2010-02-22
26667   Tor 0.2.2.9-alpha makes Tor work again on the latest OS X, updates the
26668   location of a directory authority, and cleans up a bunch of small bugs.
26670   o Directory authority changes:
26671     - Change IP address for dannenberg (v3 directory authority), and
26672       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
26673       service directory authority) from the list.
26675   o Major bugfixes:
26676     - Make Tor work again on the latest OS X: when deciding whether to
26677       use strange flags to turn TLS renegotiation on, detect the OpenSSL
26678       version at run-time, not compile time. We need to do this because
26679       Apple doesn't update its dev-tools headers when it updates its
26680       libraries in a security patch.
26681     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
26682       that could happen on 32-bit platforms with 64-bit time_t. Also fix
26683       a memory leak when requesting a hidden service descriptor we've
26684       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
26685       by aakova.
26686     - Authorities could be tricked into giving out the Exit flag to relays
26687       that didn't allow exiting to any ports. This bug could screw
26688       with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug
26689       1238. Bug discovered by Martin Kowalczyk.
26690     - When freeing a session key, zero it out completely. We only zeroed
26691       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
26692       patched by ekir. Fixes bug 1254.
26694   o Minor bugfixes:
26695     - Fix static compilation by listing the openssl libraries in the right
26696       order. Bugfix on Tor 0.2.2.8-alpha; fixes bug 1237.
26697     - Resume handling .exit hostnames in a special way: originally we
26698       stripped the .exit part and used the requested exit relay. In
26699       0.2.2.1-alpha we stopped treating them in any special way, meaning
26700       if you use a .exit address then Tor will pass it on to the exit
26701       relay. Now we reject the .exit stream outright, since that behavior
26702       might be more expected by the user. Found and diagnosed by Scott
26703       Bennett and Downie on or-talk.
26704     - Don't spam the controller with events when we have no file
26705       descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting
26706       for log messages was already solved from bug 748.)
26707     - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by
26708       "memcpyfail".
26709     - Make the DNSPort option work with libevent 2.x. Don't alter the
26710       behavior for libevent 1.x. Fixes bug 1143. Found by SwissTorExit.
26711     - Emit a GUARD DROPPED controller event for a case we missed.
26712     - Make more fields in the controller protocol case-insensitive, since
26713       control-spec.txt said they were.
26714     - Refactor resolve_my_address() to not use gethostbyname() anymore.
26715       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
26716     - Fix a spec conformance issue: the network-status-version token
26717       must be the first token in a v3 consensus or vote. Discovered by
26718       parakeep. Bugfix on 0.2.0.3-alpha.
26720   o Code simplifications and refactoring:
26721     - Generate our manpage and HTML documentation using Asciidoc. This
26722       change should make it easier to maintain the documentation, and
26723       produce nicer HTML.
26724     - Remove the --enable-iphone option. According to reports from Marco
26725       Bonetti, Tor builds fine without any special tweaking on recent
26726       iPhone SDK versions.
26727     - Removed some unnecessary files from the source distribution. The
26728       AUTHORS file has now been merged into the people page on the
26729       website. The roadmaps and design doc can now be found in the
26730       projects directory in svn.
26731     - Enabled various circuit build timeout constants to be controlled
26732       by consensus parameters. Also set better defaults for these
26733       parameters based on experimentation on broadband and simulated
26734       high latency links.
26736   o Minor features:
26737     - The 'EXTENDCIRCUIT' control port command can now be used with
26738       a circ id of 0 and no path. This feature will cause Tor to build
26739       a new 'fast' general purpose circuit using its own path selection
26740       algorithms.
26741     - Added a BUILDTIMEOUT_SET controller event to describe changes
26742       to the circuit build timeout.
26743     - Future-proof the controller protocol a bit by ignoring keyword
26744       arguments we do not recognize.
26745     - Expand homedirs passed to tor-checkkey. This should silence a
26746       coverity complaint about passing a user-supplied string into
26747       open() without checking it.
26750 Changes in version 0.2.1.25 - 2010-03-16
26751   Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could
26752   prevent relays from guessing their IP address correctly. It also fixes
26753   several minor potential security bugs.
26755   o Major bugfixes:
26756     - Fix a regression from our patch for bug 1244 that caused relays
26757       to guess their IP address incorrectly if they didn't set Address
26758       in their torrc and/or their address fails to resolve. Bugfix on
26759       0.2.1.23; fixes bug 1269.
26760     - When freeing a session key, zero it out completely. We only zeroed
26761       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
26762       patched by ekir. Fixes bug 1254.
26764   o Minor bugfixes:
26765     - Fix a dereference-then-NULL-check sequence when publishing
26766       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
26767       bug 1255.
26768     - Fix another dereference-then-NULL-check sequence. Bugfix on
26769       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
26770     - Make sure we treat potentially not NUL-terminated strings correctly.
26771       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
26775 Changes in version 0.2.1.24 - 2010-02-21
26776   Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time
26777   for sure!
26779   o Minor bugfixes:
26780     - Work correctly out-of-the-box with even more vendor-patched versions
26781       of OpenSSL. In particular, make it so Debian and OS X don't need
26782       customized patches to run/build.
26785 Changes in version 0.2.1.23 - 2010-02-13
26786   Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work
26787   again on the latest OS X, and updates the location of a directory
26788   authority.
26790   o Major bugfixes (performance):
26791     - We were selecting our guards uniformly at random, and then weighting
26792       which of our guards we'd use uniformly at random. This imbalance
26793       meant that Tor clients were severely limited on throughput (and
26794       probably latency too) by the first hop in their circuit. Now we
26795       select guards weighted by currently advertised bandwidth. We also
26796       automatically discard guards picked using the old algorithm. Fixes
26797       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
26799   o Major bugfixes:
26800     - Make Tor work again on the latest OS X: when deciding whether to
26801       use strange flags to turn TLS renegotiation on, detect the OpenSSL
26802       version at run-time, not compile time. We need to do this because
26803       Apple doesn't update its dev-tools headers when it updates its
26804       libraries in a security patch.
26805     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
26806       that could happen on 32-bit platforms with 64-bit time_t. Also fix
26807       a memory leak when requesting a hidden service descriptor we've
26808       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
26809       by aakova.
26811   o Directory authority changes:
26812     - Change IP address for dannenberg (v3 directory authority), and
26813       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
26814       service directory authority) from the list.
26816   o Minor bugfixes:
26817     - Refactor resolve_my_address() to not use gethostbyname() anymore.
26818       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
26820   o Minor features:
26821     - Avoid a mad rush at the beginning of each month when each client
26822       rotates half of its guards. Instead we spread the rotation out
26823       throughout the month, but we still avoid leaving a precise timestamp
26824       in the state file about when we first picked the guard. Improves
26825       over the behavior introduced in 0.1.2.17.
26828 Changes in version 0.2.2.8-alpha - 2010-01-26
26829   Tor 0.2.2.8-alpha fixes a crash bug in 0.2.2.7-alpha that has been
26830   causing bridge relays to disappear. If you're running a bridge,
26831   please upgrade.
26833   o Major bugfixes:
26834     - Fix a memory corruption bug on bridges that occurred during the
26835       inclusion of stats data in extra-info descriptors. Also fix the
26836       interface for geoip_get_bridge_stats* to prevent similar bugs in
26837       the future. Diagnosis by Tas, patch by Karsten and Sebastian.
26838       Fixes bug 1208; bugfix on 0.2.2.7-alpha.
26840   o Minor bugfixes:
26841     - Ignore OutboundBindAddress when connecting to localhost.
26842       Connections to localhost need to come _from_ localhost, or else
26843       local servers (like DNS and outgoing HTTP/SOCKS proxies) will often
26844       refuse to listen.
26847 Changes in version 0.2.2.7-alpha - 2010-01-19
26848   Tor 0.2.2.7-alpha fixes a huge client-side performance bug, as well
26849   as laying the groundwork for further relay-side performance fixes. It
26850   also starts cleaning up client behavior with respect to the EntryNodes,
26851   ExitNodes, and StrictNodes config options.
26853   This release also rotates two directory authority keys, due to a
26854   security breach of some of the Torproject servers.
26856   o Directory authority changes:
26857     - Rotate keys (both v3 identity and relay identity) for moria1
26858       and gabelmoo.
26860   o Major features (performance):
26861     - We were selecting our guards uniformly at random, and then weighting
26862       which of our guards we'd use uniformly at random. This imbalance
26863       meant that Tor clients were severely limited on throughput (and
26864       probably latency too) by the first hop in their circuit. Now we
26865       select guards weighted by currently advertised bandwidth. We also
26866       automatically discard guards picked using the old algorithm. Fixes
26867       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
26868     - When choosing which cells to relay first, relays can now favor
26869       circuits that have been quiet recently, to provide lower latency
26870       for low-volume circuits. By default, relays enable or disable this
26871       feature based on a setting in the consensus. You can override
26872       this default by using the new "CircuitPriorityHalflife" config
26873       option. Design and code by Ian Goldberg, Can Tang, and Chris
26874       Alexander.
26875     - Add separate per-conn write limiting to go with the per-conn read
26876       limiting. We added a global write limit in Tor 0.1.2.5-alpha,
26877       but never per-conn write limits.
26878     - New consensus params "bwconnrate" and "bwconnburst" to let us
26879       rate-limit client connections as they enter the network. It's
26880       controlled in the consensus so we can turn it on and off for
26881       experiments. It's starting out off. Based on proposal 163.
26883   o Major features (relay selection options):
26884     - Switch to a StrictNodes config option, rather than the previous
26885       "StrictEntryNodes" / "StrictExitNodes" separation that was missing a
26886       "StrictExcludeNodes" option.
26887     - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes
26888       change during a config reload, mark and discard all our origin
26889       circuits. This fix should address edge cases where we change the
26890       config options and but then choose a circuit that we created before
26891       the change.
26892     - If EntryNodes or ExitNodes are set, be more willing to use an
26893       unsuitable (e.g. slow or unstable) circuit. The user asked for it,
26894       they get it.
26895     - Make EntryNodes config option much more aggressive even when
26896       StrictNodes is not set. Before it would prepend your requested
26897       entrynodes to your list of guard nodes, but feel free to use others
26898       after that. Now it chooses only from your EntryNodes if any of
26899       those are available, and only falls back to others if a) they're
26900       all down and b) StrictNodes is not set.
26901     - Now we refresh your entry guards from EntryNodes at each consensus
26902       fetch -- rather than just at startup and then they slowly rot as
26903       the network changes.
26905   o Major bugfixes:
26906     - Stop bridge directory authorities from answering dbg-stability.txt
26907       directory queries, which would let people fetch a list of all
26908       bridge identities they track. Bugfix on 0.2.1.6-alpha.
26910   o Minor features:
26911     - Log a notice when we get a new control connection. Now it's easier
26912       for security-conscious users to recognize when a local application
26913       is knocking on their controller door. Suggested by bug 1196.
26914     - New config option "CircuitStreamTimeout" to override our internal
26915       timeout schedule for how many seconds until we detach a stream from
26916       a circuit and try a new circuit. If your network is particularly
26917       slow, you might want to set this to a number like 60.
26918     - New controller command "getinfo config-text". It returns the
26919       contents that Tor would write if you send it a SAVECONF command,
26920       so the controller can write the file to disk itself.
26921     - New options for SafeLogging to allow scrubbing only log messages
26922       generated while acting as a relay.
26923     - Ship the bridges spec file in the tarball too.
26924     - Avoid a mad rush at the beginning of each month when each client
26925       rotates half of its guards. Instead we spread the rotation out
26926       throughout the month, but we still avoid leaving a precise timestamp
26927       in the state file about when we first picked the guard. Improves
26928       over the behavior introduced in 0.1.2.17.
26930   o Minor bugfixes (compiling):
26931     - Fix compilation on OS X 10.3, which has a stub mlockall() but
26932       hides it. Bugfix on 0.2.2.6-alpha.
26933     - Fix compilation on Solaris by removing support for the
26934       DisableAllSwap config option. Solaris doesn't have an rlimit for
26935       mlockall, so we cannot use it safely. Fixes bug 1198; bugfix on
26936       0.2.2.6-alpha.
26938   o Minor bugfixes (crashes):
26939     - Do not segfault when writing buffer stats when we haven't observed
26940       a single circuit to report about. Found by Fabian Lanze. Bugfix on
26941       0.2.2.1-alpha.
26942     - If we're in the pathological case where there's no exit bandwidth
26943       but there is non-exit bandwidth, or no guard bandwidth but there
26944       is non-guard bandwidth, don't crash during path selection. Bugfix
26945       on 0.2.0.3-alpha.
26946     - Fix an impossible-to-actually-trigger buffer overflow in relay
26947       descriptor generation. Bugfix on 0.1.0.15.
26949   o Minor bugfixes (privacy):
26950     - Fix an instance where a Tor directory mirror might accidentally
26951       log the IP address of a misbehaving Tor client. Bugfix on
26952       0.1.0.1-rc.
26953     - Don't list Windows capabilities in relay descriptors. We never made
26954       use of them, and maybe it's a bad idea to publish them. Bugfix
26955       on 0.1.1.8-alpha.
26957   o Minor bugfixes (other):
26958     - Resolve an edge case in path weighting that could make us misweight
26959       our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1.
26960     - Fix statistics on client numbers by country as seen by bridges that
26961       were broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour
26962       intervals instead of variable 12-to-48-hour intervals.
26963     - After we free an internal connection structure, overwrite it
26964       with a different memory value than we use for overwriting a freed
26965       internal circuit structure. Should help with debugging. Suggested
26966       by bug 1055.
26967     - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m
26968       too.
26970   o Removed features:
26971     - Remove the HSAuthorityRecordStats option that version 0 hidden
26972       service authorities could have used to track statistics of overall
26973       hidden service usage.
26976 Changes in version 0.2.1.22 - 2010-01-19
26977   Tor 0.2.1.22 fixes a critical privacy problem in bridge directory
26978   authorities -- it would tell you its whole history of bridge descriptors
26979   if you make the right directory request. This stable update also
26980   rotates two of the seven v3 directory authority keys and locations.
26982   o Directory authority changes:
26983     - Rotate keys (both v3 identity and relay identity) for moria1
26984       and gabelmoo.
26986   o Major bugfixes:
26987     - Stop bridge directory authorities from answering dbg-stability.txt
26988       directory queries, which would let people fetch a list of all
26989       bridge identities they track. Bugfix on 0.2.1.6-alpha.
26992 Changes in version 0.2.1.21 - 2009-12-21
26993   Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL
26994   library. If you use Tor on Linux / Unix and you're getting SSL
26995   renegotiation errors, upgrading should help. We also recommend an
26996   upgrade if you're an exit relay.
26998   o Major bugfixes:
26999     - Work around a security feature in OpenSSL 0.9.8l that prevents our
27000       handshake from working unless we explicitly tell OpenSSL that we
27001       are using SSL renegotiation safely. We are, of course, but OpenSSL
27002       0.9.8l won't work unless we say we are.
27003     - Avoid crashing if the client is trying to upload many bytes and the
27004       circuit gets torn down at the same time, or if the flip side
27005       happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150.
27007   o Minor bugfixes:
27008     - Do not refuse to learn about authority certs and v2 networkstatus
27009       documents that are older than the latest consensus. This bug might
27010       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
27011       Spotted and fixed by xmux.
27012     - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to-
27013       trigger platform-specific option misparsing case found by Coverity
27014       Scan.
27015     - Fix a compilation warning on Fedora 12 by removing an impossible-to-
27016       trigger assert. Fixes bug 1173.
27019 Changes in version 0.2.2.6-alpha - 2009-11-19
27020   Tor 0.2.2.6-alpha lays the groundwork for many upcoming features:
27021   support for the new lower-footprint "microdescriptor" directory design,
27022   future-proofing our consensus format against new hash functions or
27023   other changes, and an Android port. It also makes Tor compatible with
27024   the upcoming OpenSSL 0.9.8l release, and fixes a variety of bugs.
27026   o Major features:
27027     - Directory authorities can now create, vote on, and serve multiple
27028       parallel formats of directory data as part of their voting process.
27029       Partially implements Proposal 162: "Publish the consensus in
27030       multiple flavors".
27031     - Directory authorities can now agree on and publish small summaries
27032       of router information that clients can use in place of regular
27033       server descriptors. This transition will eventually allow clients
27034       to use far less bandwidth for downloading information about the
27035       network. Begins the implementation of Proposal 158: "Clients
27036       download consensus + microdescriptors".
27037     - The directory voting system is now extensible to use multiple hash
27038       algorithms for signatures and resource selection. Newer formats
27039       are signed with SHA256, with a possibility for moving to a better
27040       hash algorithm in the future.
27041     - New DisableAllSwap option. If set to 1, Tor will attempt to lock all
27042       current and future memory pages via mlockall(). On supported
27043       platforms (modern Linux and probably BSD but not Windows or OS X),
27044       this should effectively disable any and all attempts to page out
27045       memory. This option requires that you start your Tor as root --
27046       if you use DisableAllSwap, please consider using the User option
27047       to properly reduce the privileges of your Tor.
27048     - Numerous changes, bugfixes, and workarounds from Nathan Freitas
27049       to help Tor build correctly for Android phones.
27051   o Major bugfixes:
27052     - Work around a security feature in OpenSSL 0.9.8l that prevents our
27053       handshake from working unless we explicitly tell OpenSSL that we
27054       are using SSL renegotiation safely. We are, but OpenSSL 0.9.8l
27055       won't work unless we say we are.
27057   o Minor bugfixes:
27058     - Fix a crash bug when trying to initialize the evdns module in
27059       Libevent 2. Bugfix on 0.2.1.16-rc.
27060     - Stop logging at severity 'warn' when some other Tor client tries
27061       to establish a circuit with us using weak DH keys. It's a protocol
27062       violation, but that doesn't mean ordinary users need to hear about
27063       it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13.
27064     - Do not refuse to learn about authority certs and v2 networkstatus
27065       documents that are older than the latest consensus. This bug might
27066       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
27067       Spotted and fixed by xmux.
27068     - Fix numerous small code-flaws found by Coverity Scan Rung 3.
27069     - If all authorities restart at once right before a consensus vote,
27070       nobody will vote about "Running", and clients will get a consensus
27071       with no usable relays. Instead, authorities refuse to build a
27072       consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066.
27073     - If your relay can't keep up with the number of incoming create
27074       cells, it would log one warning per failure into your logs. Limit
27075       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
27076     - Bridges now use "reject *:*" as their default exit policy. Bugfix
27077       on 0.2.0.3-alpha; fixes bug 1113.
27078     - Fix a memory leak on directory authorities during voting that was
27079       introduced in 0.2.2.1-alpha. Found via valgrind.
27082 Changes in version 0.2.1.20 - 2009-10-15
27083   Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden
27084   services at once, prepares for more performance improvements, and
27085   fixes a bunch of smaller bugs.
27087   The Windows and OS X bundles also include a more recent Vidalia,
27088   and switch from Privoxy to Polipo.
27090   The OS X installers are now drag and drop. It's best to un-install
27091   Tor/Vidalia and then install this new bundle, rather than upgrade. If
27092   you want to upgrade, you'll need to update the paths for Tor and Polipo
27093   in the Vidalia Settings window.
27095   o Major bugfixes:
27096     - Send circuit or stream sendme cells when our window has decreased
27097       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
27098       by Karsten when testing the "reduce circuit window" performance
27099       patch. Bugfix on the 54th commit on Tor -- from July 2002,
27100       before the release of Tor 0.0.0. This is the new winner of the
27101       oldest-bug prize.
27102     - Fix a remotely triggerable memory leak when a consensus document
27103       contains more than one signature from the same voter. Bugfix on
27104       0.2.0.3-alpha.
27105     - Avoid segfault in rare cases when finishing an introduction circuit
27106       as a client and finding out that we don't have an introduction key
27107       for it. Fixes bug 1073. Reported by Aaron Swartz.
27109   o Major features:
27110     - Tor now reads the "circwindow" parameter out of the consensus,
27111       and uses that value for its circuit package window rather than the
27112       default of 1000 cells. Begins the implementation of proposal 168.
27114   o New directory authorities:
27115     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
27116       authority.
27117     - Move moria1 and tonga to alternate IP addresses.
27119   o Minor bugfixes:
27120     - Fix a signed/unsigned compile warning in 0.2.1.19.
27121     - Fix possible segmentation fault on directory authorities. Bugfix on
27122       0.2.1.14-rc.
27123     - Fix an extremely rare infinite recursion bug that could occur if
27124       we tried to log a message after shutting down the log subsystem.
27125       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
27126     - Fix an obscure bug where hidden services on 64-bit big-endian
27127       systems might mis-read the timestamp in v3 introduce cells, and
27128       refuse to connect back to the client. Discovered by "rotor".
27129       Bugfix on 0.2.1.6-alpha.
27130     - We were triggering a CLOCK_SKEW controller status event whenever
27131       we connect via the v2 connection protocol to any relay that has
27132       a wrong clock. Instead, we should only inform the controller when
27133       it's a trusted authority that claims our clock is wrong. Bugfix
27134       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
27135     - We were telling the controller about CHECKING_REACHABILITY and
27136       REACHABILITY_FAILED status events whenever we launch a testing
27137       circuit or notice that one has failed. Instead, only tell the
27138       controller when we want to inform the user of overall success or
27139       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
27140       by SwissTorExit.
27141     - Don't warn when we're using a circuit that ends with a node
27142       excluded in ExcludeExitNodes, but the circuit is not used to access
27143       the outside world. This should help fix bug 1090. Bugfix on
27144       0.2.1.6-alpha.
27145     - Work around a small memory leak in some versions of OpenSSL that
27146       stopped the memory used by the hostname TLS extension from being
27147       freed.
27149   o Minor features:
27150     - Add a "getinfo status/accepted-server-descriptor" controller
27151       command, which is the recommended way for controllers to learn
27152       whether our server descriptor has been successfully received by at
27153       least on directory authority. Un-recommend good-server-descriptor
27154       getinfo and status events until we have a better design for them.
27157 Changes in version 0.2.2.5-alpha - 2009-10-11
27158   Tor 0.2.2.5-alpha fixes a few compile problems in 0.2.2.4-alpha.
27160   o Major bugfixes:
27161     - Make the tarball compile again. Oops. Bugfix on 0.2.2.4-alpha.
27163   o Directory authorities:
27164     - Temporarily (just for this release) move dizum to an alternate
27165       IP address.
27168 Changes in version 0.2.2.4-alpha - 2009-10-10
27169   Tor 0.2.2.4-alpha fixes more crash bugs in 0.2.2.2-alpha. It also
27170   introduces a new unit test framework, shifts directry authority
27171   addresses around to reduce the impact from recent blocking events,
27172   and fixes a few smaller bugs.
27174   o Major bugfixes:
27175     - Fix several more asserts in the circuit_build_times code, for
27176       example one that causes Tor to fail to start once we have
27177       accumulated 5000 build times in the state file. Bugfixes on
27178       0.2.2.2-alpha; fixes bug 1108.
27180   o New directory authorities:
27181     - Move moria1 and Tonga to alternate IP addresses.
27183   o Minor features:
27184     - Log SSL state transitions at debug level during handshake, and
27185       include SSL states in error messages. This may help debug future
27186       SSL handshake issues.
27187     - Add a new "Handshake" log domain for activities that happen
27188       during the TLS handshake.
27189     - Revert to the "June 3 2009" ip-to-country file. The September one
27190       seems to have removed most US IP addresses.
27191     - Directory authorities now reject Tor relays with versions less than
27192       0.1.2.14. This step cuts out four relays from the current network,
27193       none of which are very big.
27195   o Minor bugfixes:
27196     - Fix a couple of smaller issues with gathering statistics. Bugfixes
27197       on 0.2.2.1-alpha.
27198     - Fix two memory leaks in the error case of
27199       circuit_build_times_parse_state(). Bugfix on 0.2.2.2-alpha.
27200     - Don't count one-hop circuits when we're estimating how long it
27201       takes circuits to build on average. Otherwise we'll set our circuit
27202       build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
27203     - Directory authorities no longer change their opinion of, or vote on,
27204       whether a router is Running, unless they have themselves been
27205       online long enough to have some idea. Bugfix on 0.2.0.6-alpha.
27206       Fixes bug 1023.
27208   o Code simplifications and refactoring:
27209     - Revise our unit tests to use the "tinytest" framework, so we
27210       can run tests in their own processes, have smarter setup/teardown
27211       code, and so on. The unit test code has moved to its own
27212       subdirectory, and has been split into multiple modules.
27215 Changes in version 0.2.2.3-alpha - 2009-09-23
27216   Tor 0.2.2.3-alpha fixes a few crash bugs in 0.2.2.2-alpha.
27218   o Major bugfixes:
27219     - Fix an overzealous assert in our new circuit build timeout code.
27220       Bugfix on 0.2.2.2-alpha; fixes bug 1103.
27222   o Minor bugfixes:
27223     - If the networkstatus consensus tells us that we should use a
27224       negative circuit package window, ignore it. Otherwise we'll
27225       believe it and then trigger an assert. Bugfix on 0.2.2.2-alpha.
27228 Changes in version 0.2.2.2-alpha - 2009-09-21
27229   Tor 0.2.2.2-alpha introduces our latest performance improvement for
27230   clients: Tor tracks the average time it takes to build a circuit, and
27231   avoids using circuits that take too long to build. For fast connections,
27232   this feature can cut your expected latency in half. For slow or flaky
27233   connections, it could ruin your Tor experience. Let us know if it does!
27235   o Major features:
27236     - Tor now tracks how long it takes to build client-side circuits
27237       over time, and adapts its timeout to local network performance.
27238       Since a circuit that takes a long time to build will also provide
27239       bad performance, we get significant latency improvements by
27240       discarding the slowest 20% of circuits. Specifically, Tor creates
27241       circuits more aggressively than usual until it has enough data
27242       points for a good timeout estimate. Implements proposal 151.
27243       We are especially looking for reports (good and bad) from users with
27244       both EDGE and broadband connections that can move from broadband
27245       to EDGE and find out if the build-time data in the .tor/state gets
27246       reset without loss of Tor usability. You should also see a notice
27247       log message telling you that Tor has reset its timeout.
27248     - Directory authorities can now vote on arbitrary integer values as
27249       part of the consensus process. This is designed to help set
27250       network-wide parameters. Implements proposal 167.
27251     - Tor now reads the "circwindow" parameter out of the consensus,
27252       and uses that value for its circuit package window rather than the
27253       default of 1000 cells. Begins the implementation of proposal 168.
27255   o Major bugfixes:
27256     - Fix a remotely triggerable memory leak when a consensus document
27257       contains more than one signature from the same voter. Bugfix on
27258       0.2.0.3-alpha.
27260   o Minor bugfixes:
27261     - Fix an extremely rare infinite recursion bug that could occur if
27262       we tried to log a message after shutting down the log subsystem.
27263       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
27264     - Fix parsing for memory or time units given without a space between
27265       the number and the unit. Bugfix on 0.2.2.1-alpha; fixes bug 1076.
27266     - A networkstatus vote must contain exactly one signature. Spec
27267       conformance issue. Bugfix on 0.2.0.3-alpha.
27268     - Fix an obscure bug where hidden services on 64-bit big-endian
27269       systems might mis-read the timestamp in v3 introduce cells, and
27270       refuse to connect back to the client. Discovered by "rotor".
27271       Bugfix on 0.2.1.6-alpha.
27272     - We were triggering a CLOCK_SKEW controller status event whenever
27273       we connect via the v2 connection protocol to any relay that has
27274       a wrong clock. Instead, we should only inform the controller when
27275       it's a trusted authority that claims our clock is wrong. Bugfix
27276       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
27277     - We were telling the controller about CHECKING_REACHABILITY and
27278       REACHABILITY_FAILED status events whenever we launch a testing
27279       circuit or notice that one has failed. Instead, only tell the
27280       controller when we want to inform the user of overall success or
27281       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
27282       by SwissTorExit.
27283     - Don't warn when we're using a circuit that ends with a node
27284       excluded in ExcludeExitNodes, but the circuit is not used to access
27285       the outside world. This should help fix bug 1090, but more problems
27286       remain. Bugfix on 0.2.1.6-alpha.
27287     - Work around a small memory leak in some versions of OpenSSL that
27288       stopped the memory used by the hostname TLS extension from being
27289       freed.
27290     - Make our 'torify' script more portable; if we have only one of
27291       'torsocks' or 'tsocks' installed, don't complain to the user;
27292       and explain our warning about tsocks better.
27294   o Minor features:
27295     - Add a "getinfo status/accepted-server-descriptor" controller
27296       command, which is the recommended way for controllers to learn
27297       whether our server descriptor has been successfully received by at
27298       least on directory authority. Un-recommend good-server-descriptor
27299       getinfo and status events until we have a better design for them.
27300     - Update to the "September 4 2009" ip-to-country file.
27303 Changes in version 0.2.2.1-alpha - 2009-08-26
27304   Tor 0.2.2.1-alpha disables ".exit" address notation by default, allows
27305   Tor clients to bootstrap on networks where only port 80 is reachable,
27306   makes it more straightforward to support hardware crypto accelerators,
27307   and starts the groundwork for gathering stats safely at relays.
27309   o Security fixes:
27310     - Start the process of disabling ".exit" address notation, since it
27311       can be used for a variety of esoteric application-level attacks
27312       on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix
27313       on 0.0.9rc5.
27315   o New directory authorities:
27316     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
27317       authority.
27319   o Major features:
27320     - New AccelName and AccelDir options add support for dynamic OpenSSL
27321       hardware crypto acceleration engines.
27322     - Tor now supports tunneling all of its outgoing connections over
27323       a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy
27324       configuration options. Code by Christopher Davis.
27326   o Major bugfixes:
27327     - Send circuit or stream sendme cells when our window has decreased
27328       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
27329       by Karsten when testing the "reduce circuit window" performance
27330       patch. Bugfix on the 54th commit on Tor -- from July 2002,
27331       before the release of Tor 0.0.0. This is the new winner of the
27332       oldest-bug prize.
27334   o New options for gathering stats safely:
27335     - Directory mirrors that set "DirReqStatistics 1" write statistics
27336       about directory requests to disk every 24 hours. As compared to the
27337       --enable-geoip-stats flag in 0.2.1.x, there are a few improvements:
27338       1) stats are written to disk exactly every 24 hours; 2) estimated
27339       shares of v2 and v3 requests are determined as mean values, not at
27340       the end of a measurement period; 3) unresolved requests are listed
27341       with country code '??'; 4) directories also measure download times.
27342     - Exit nodes that set "ExitPortStatistics 1" write statistics on the
27343       number of exit streams and transferred bytes per port to disk every
27344       24 hours.
27345     - Relays that set "CellStatistics 1" write statistics on how long
27346       cells spend in their circuit queues to disk every 24 hours.
27347     - Entry nodes that set "EntryStatistics 1" write statistics on the
27348       rough number and origins of connecting clients to disk every 24
27349       hours.
27350     - Relays that write any of the above statistics to disk and set
27351       "ExtraInfoStatistics 1" include the past 24 hours of statistics in
27352       their extra-info documents.
27354   o Minor features:
27355     - New --digests command-line switch to output the digests of the
27356       source files Tor was built with.
27357     - The "torify" script now uses torsocks where available.
27358     - The memarea code now uses a sentinel value at the end of each area
27359       to make sure nothing writes beyond the end of an area. This might
27360       help debug some conceivable causes of bug 930.
27361     - Time and memory units in the configuration file can now be set to
27362       fractional units. For example, "2.5 GB" is now a valid value for
27363       AccountingMax.
27364     - Certain Tor clients (such as those behind check.torproject.org) may
27365       want to fetch the consensus in an extra early manner. To enable this
27366       a user may now set FetchDirInfoExtraEarly to 1. This also depends on
27367       setting FetchDirInfoEarly to 1. Previous behavior will stay the same
27368       as only certain clients who must have this information sooner should
27369       set this option.
27370     - Instead of adding the svn revision to the Tor version string, report
27371       the git commit (when we're building from a git checkout).
27373   o Minor bugfixes:
27374     - If any of the v3 certs we download are unparseable, we should
27375       actually notice the failure so we don't retry indefinitely. Bugfix
27376       on 0.2.0.x; reported by "rotator".
27377     - If the cached cert file is unparseable, warn but don't exit.
27378     - Fix possible segmentation fault on directory authorities. Bugfix on
27379       0.2.1.14-rc.
27380     - When Tor fails to parse a descriptor of any kind, dump it to disk.
27381       Might help diagnosing bug 1051.
27383   o Deprecated and removed features:
27384     - The controller no longer accepts the old obsolete "addr-mappings/"
27385       or "unregistered-servers-" GETINFO values.
27386     - Hidden services no longer publish version 0 descriptors, and clients
27387       do not request or use version 0 descriptors. However, the old hidden
27388       service authorities still accept and serve version 0 descriptors
27389       when contacted by older hidden services/clients.
27390     - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now
27391       always on; using them is necessary for correct forward-compatible
27392       controllers.
27393     - Remove support for .noconnect style addresses. Nobody was using
27394       them, and they provided another avenue for detecting Tor users
27395       via application-level web tricks.
27397   o Packaging changes:
27398     - Upgrade Vidalia from 0.1.15 to 0.2.3 in the Windows and OS X
27399       installer bundles. See
27400       https://trac.vidalia-project.net/browser/vidalia/tags/vidalia-0.2.3/CHANGELOG
27401       for details of what's new in Vidalia 0.2.3.
27402     - Windows Vidalia Bundle: update Privoxy from 3.0.6 to 3.0.14-beta.
27403     - OS X Vidalia Bundle: move to Polipo 1.0.4 with Tor specific
27404       configuration file, rather than the old Privoxy.
27405     - OS X Vidalia Bundle: Vidalia, Tor, and Polipo are compiled as
27406       x86-only for better compatibility with OS X 10.6, aka Snow Leopard.
27407     - OS X Tor Expert Bundle: Tor is compiled as x86-only for
27408       better compatibility with OS X 10.6, aka Snow Leopard.
27409     - OS X Vidalia Bundle: The multi-package installer is now replaced
27410       by a simple drag and drop to the /Applications folder. This change
27411       occurred with the upgrade to Vidalia 0.2.3.
27414 Changes in version 0.2.1.19 - 2009-07-28
27415   Tor 0.2.1.19 fixes a major bug with accessing and providing hidden
27416   services on Tor 0.2.1.3-alpha through 0.2.1.18.
27418   o Major bugfixes:
27419     - Make accessing hidden services on 0.2.1.x work right again.
27420       Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and
27421       part of patch provided by "optimist".
27423   o Minor features:
27424     - When a relay/bridge is writing out its identity key fingerprint to
27425       the "fingerprint" file and to its logs, write it without spaces. Now
27426       it will look like the fingerprints in our bridges documentation,
27427       and confuse fewer users.
27429   o Minor bugfixes:
27430     - Relays no longer publish a new server descriptor if they change
27431       their MaxAdvertisedBandwidth config option but it doesn't end up
27432       changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc;
27433       fixes bug 1026. Patch from Sebastian.
27434     - Avoid leaking memory every time we get a create cell but we have
27435       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
27436       fixes bug 1034. Reported by BarkerJr.
27439 Changes in version 0.2.1.18 - 2009-07-24
27440   Tor 0.2.1.18 lays the foundations for performance improvements,
27441   adds status events to help users diagnose bootstrap problems, adds
27442   optional authentication/authorization for hidden services, fixes a
27443   variety of potential anonymity problems, and includes a huge pile of
27444   other features and bug fixes.
27446   o Build fixes:
27447     - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent.
27450 Changes in version 0.2.1.17-rc - 2009-07-07
27451   Tor 0.2.1.17-rc marks the fourth -- and hopefully last -- release
27452   candidate for the 0.2.1.x series. It lays the groundwork for further
27453   client performance improvements, and also fixes a big bug with directory
27454   authorities that were causing them to assign Guard and Stable flags
27455   poorly.
27457   The Windows bundles also finally include the geoip database that we
27458   thought we'd been shipping since 0.2.0.x (oops), and the OS X bundles
27459   should actually install Torbutton rather than giving you a cryptic
27460   failure message (oops).
27462   o Major features:
27463     - Clients now use the bandwidth values in the consensus, rather than
27464       the bandwidth values in each relay descriptor. This approach opens
27465       the door to more accurate bandwidth estimates once the directory
27466       authorities start doing active measurements. Implements more of
27467       proposal 141.
27469   o Major bugfixes:
27470     - When Tor clients restart after 1-5 days, they discard all their
27471       cached descriptors as too old, but they still use the cached
27472       consensus document. This approach is good for robustness, but
27473       bad for performance: since they don't know any bandwidths, they
27474       end up choosing at random rather than weighting their choice by
27475       speed. Fixed by the above feature of putting bandwidths in the
27476       consensus. Bugfix on 0.2.0.x.
27477     - Directory authorities were neglecting to mark relays down in their
27478       internal histories if the relays fall off the routerlist without
27479       ever being found unreachable. So there were relays in the histories
27480       that haven't been seen for eight months, and are listed as being
27481       up for eight months. This wreaked havoc on the "median wfu"
27482       and "median mtbf" calculations, in turn making Guard and Stable
27483       flags very wrong, hurting network performance. Fixes bugs 696 and
27484       969. Bugfix on 0.2.0.6-alpha.
27486   o Minor bugfixes:
27487     - Serve the DirPortFrontPage page even when we have been approaching
27488       our quotas recently. Fixes bug 1013; bugfix on 0.2.1.8-alpha.
27489     - The control port would close the connection before flushing long
27490       replies, such as the network consensus, if a QUIT command was issued
27491       before the reply had completed. Now, the control port flushes all
27492       pending replies before closing the connection. Also fixed a spurious
27493       warning when a QUIT command is issued after a malformed or rejected
27494       AUTHENTICATE command, but before the connection was closed. Patch
27495       by Marcus Griep. Bugfix on 0.2.0.x; fixes bugs 1015 and 1016.
27496     - When we can't find an intro key for a v2 hidden service descriptor,
27497       fall back to the v0 hidden service descriptor and log a bug message.
27498       Workaround for bug 1024.
27499     - Fix a log message that did not respect the SafeLogging option.
27500       Resolves bug 1027.
27502   o Minor features:
27503     - If we're a relay and we change our IP address, be more verbose
27504       about the reason that made us change. Should help track down
27505       further bugs for relays on dynamic IP addresses.
27508 Changes in version 0.2.0.35 - 2009-06-24
27509   o Security fix:
27510     - Avoid crashing in the presence of certain malformed descriptors.
27511       Found by lark, and by automated fuzzing.
27512     - Fix an edge case where a malicious exit relay could convince a
27513       controller that the client's DNS question resolves to an internal IP
27514       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
27516   o Major bugfixes:
27517     - Finally fix the bug where dynamic-IP relays disappear when their
27518       IP address changes: directory mirrors were mistakenly telling
27519       them their old address if they asked via begin_dir, so they
27520       never got an accurate answer about their new address, so they
27521       just vanished after a day. For belt-and-suspenders, relays that
27522       don't set Address in their config now avoid using begin_dir for
27523       all direct connections. Should fix bugs 827, 883, and 900.
27524     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
27525       that would occur on some exit nodes when DNS failures and timeouts
27526       occurred in certain patterns. Fix for bug 957.
27528   o Minor bugfixes:
27529     - When starting with a cache over a few days old, do not leak
27530       memory for the obsolete router descriptors in it. Bugfix on
27531       0.2.0.33; fixes bug 672.
27532     - Hidden service clients didn't use a cached service descriptor that
27533       was older than 15 minutes, but wouldn't fetch a new one either,
27534       because there was already one in the cache. Now, fetch a v2
27535       descriptor unless the same descriptor was added to the cache within
27536       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
27539 Changes in version 0.2.1.16-rc - 2009-06-20
27540   Tor 0.2.1.16-rc speeds up performance for fast exit relays, and fixes
27541   a bunch of minor bugs.
27543   o Security fixes:
27544     - Fix an edge case where a malicious exit relay could convince a
27545       controller that the client's DNS question resolves to an internal IP
27546       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
27548   o Major performance improvements (on 0.2.0.x):
27549     - Disable and refactor some debugging checks that forced a linear scan
27550       over the whole server-side DNS cache. These accounted for over 50%
27551       of CPU time on a relatively busy exit node's gprof profile. Found
27552       by Jacob.
27553     - Disable some debugging checks that appeared in exit node profile
27554       data.
27556   o Minor features:
27557     - Update to the "June 3 2009" ip-to-country file.
27558     - Do not have tor-resolve automatically refuse all .onion addresses;
27559       if AutomapHostsOnResolve is set in your torrc, this will work fine.
27561   o Minor bugfixes (on 0.2.0.x):
27562     - Log correct error messages for DNS-related network errors on
27563       Windows.
27564     - Fix a race condition that could cause crashes or memory corruption
27565       when running as a server with a controller listening for log
27566       messages.
27567     - Avoid crashing when we have a policy specified in a DirPolicy or
27568       SocksPolicy or ReachableAddresses option with ports set on it,
27569       and we re-load the policy. May fix bug 996.
27570     - Hidden service clients didn't use a cached service descriptor that
27571       was older than 15 minutes, but wouldn't fetch a new one either,
27572       because there was already one in the cache. Now, fetch a v2
27573       descriptor unless the same descriptor was added to the cache within
27574       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
27576   o Minor bugfixes (on 0.2.1.x):
27577     - Don't warn users about low port and hibernation mix when they
27578       provide a *ListenAddress directive to fix that. Bugfix on
27579       0.2.1.15-rc.
27580     - When switching back and forth between bridge mode, do not start
27581       gathering GeoIP data until two hours have passed.
27582     - Do not complain that the user has requested an excluded node as
27583       an exit when the node is not really an exit. This could happen
27584       because the circuit was for testing, or an introduction point.
27585       Fix for bug 984.
27588 Changes in version 0.2.1.15-rc - 2009-05-25
27589   Tor 0.2.1.15-rc marks the second release candidate for the 0.2.1.x
27590   series. It fixes a major bug on fast exit relays, as well as a variety
27591   of more minor bugs.
27593   o Major bugfixes (on 0.2.0.x):
27594     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
27595       that would occur on some exit nodes when DNS failures and timeouts
27596       occurred in certain patterns. Fix for bug 957.
27598   o Minor bugfixes (on 0.2.0.x):
27599     - Actually return -1 in the error case for read_bandwidth_usage().
27600       Harmless bug, since we currently don't care about the return value
27601       anywhere. Bugfix on 0.2.0.9-alpha.
27602     - Provide a more useful log message if bug 977 (related to buffer
27603       freelists) ever reappears, and do not crash right away.
27604     - Fix an assertion failure on 64-bit platforms when we allocated
27605       memory right up to the end of a memarea, then realigned the memory
27606       one step beyond the end. Fixes a possible cause of bug 930.
27607     - Protect the count of open sockets with a mutex, so we can't
27608       corrupt it when two threads are closing or opening sockets at once.
27609       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
27610     - Don't allow a bridge to publish its router descriptor to a
27611       non-bridge directory authority. Fixes part of bug 932.
27612     - When we change to or from being a bridge, reset our counts of
27613       client usage by country. Fixes bug 932.
27614     - Fix a bug that made stream bandwidth get misreported to the
27615       controller.
27616     - Stop using malloc_usable_size() to use more area than we had
27617       actually allocated: it was safe, but made valgrind really unhappy.
27618     - Fix a memory leak when v3 directory authorities load their keys
27619       and cert from disk. Bugfix on 0.2.0.1-alpha.
27621   o Minor bugfixes (on 0.2.1.x):
27622     - Fix use of freed memory when deciding to mark a non-addable
27623       descriptor as never-downloadable. Bugfix on 0.2.1.9-alpha.
27626 Changes in version 0.2.1.14-rc - 2009-04-12
27627   Tor 0.2.1.14-rc marks the first release candidate for the 0.2.1.x
27628   series. It begins fixing some major performance problems, and also
27629   finally addresses the bug that was causing relays on dynamic IP
27630   addresses to fall out of the directory.
27632   o Major features:
27633     - Clients replace entry guards that were chosen more than a few months
27634       ago. This change should significantly improve client performance,
27635       especially once more people upgrade, since relays that have been
27636       a guard for a long time are currently overloaded.
27638   o Major bugfixes (on 0.2.0):
27639     - Finally fix the bug where dynamic-IP relays disappear when their
27640       IP address changes: directory mirrors were mistakenly telling
27641       them their old address if they asked via begin_dir, so they
27642       never got an accurate answer about their new address, so they
27643       just vanished after a day. For belt-and-suspenders, relays that
27644       don't set Address in their config now avoid using begin_dir for
27645       all direct connections. Should fix bugs 827, 883, and 900.
27646     - Relays were falling out of the networkstatus consensus for
27647       part of a day if they changed their local config but the
27648       authorities discarded their new descriptor as "not sufficiently
27649       different". Now directory authorities accept a descriptor as changed
27650       if bandwidthrate or bandwidthburst changed. Partial fix for bug 962;
27651       patch by Sebastian.
27652     - Avoid crashing in the presence of certain malformed descriptors.
27653       Found by lark, and by automated fuzzing.
27655   o Minor features:
27656     - When generating circuit events with verbose nicknames for
27657       controllers, try harder to look up nicknames for routers on a
27658       circuit. (Previously, we would look in the router descriptors we had
27659       for nicknames, but not in the consensus.) Partial fix for bug 941.
27660     - If the bridge config line doesn't specify a port, assume 443.
27661       This makes bridge lines a bit smaller and easier for users to
27662       understand.
27663     - Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
27664       bytes (aka 20KB/s), to match our documentation. Also update
27665       directory authorities so they always assign the Fast flag to relays
27666       with 20KB/s of capacity. Now people running relays won't suddenly
27667       find themselves not seeing any use, if the network gets faster
27668       on average.
27669     - Update to the "April 3 2009" ip-to-country file.
27671   o Minor bugfixes:
27672     - Avoid trying to print raw memory to the logs when we decide to
27673       give up on downloading a given relay descriptor. Bugfix on
27674       0.2.1.9-alpha.
27675     - In tor-resolve, when the Tor client to use is specified by
27676       <hostname>:<port>, actually use the specified port rather than
27677       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
27678     - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
27679     - When starting with a cache over a few days old, do not leak
27680       memory for the obsolete router descriptors in it. Bugfix on
27681       0.2.0.33.
27682     - Avoid double-free on list of successfully uploaded hidden
27683       service discriptors. Fix for bug 948. Bugfix on 0.2.1.6-alpha.
27684     - Change memarea_strndup() implementation to work even when
27685       duplicating a string at the end of a page. This bug was
27686       harmless for now, but could have meant crashes later. Fix by
27687       lark. Bugfix on 0.2.1.1-alpha.
27688     - Limit uploaded directory documents to be 16M rather than 500K.
27689       The directory authorities were refusing v3 consensus votes from
27690       other authorities, since the votes are now 504K. Fixes bug 959;
27691       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
27692     - Directory authorities should never send a 503 "busy" response to
27693       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
27694       bug 959.
27697 Changes in version 0.2.1.13-alpha - 2009-03-09
27698   Tor 0.2.1.13-alpha includes another big pile of minor bugfixes and
27699   cleanups. We're finally getting close to a release candidate.
27701   o Major bugfixes:
27702     - Correctly update the list of which countries we exclude as
27703       exits, when the GeoIP file is loaded or reloaded. Diagnosed by
27704       lark. Bugfix on 0.2.1.6-alpha.
27706   o Minor bugfixes (on 0.2.0.x and earlier):
27707     - Automatically detect MacOSX versions earlier than 10.4.0, and
27708       disable kqueue from inside Tor when running with these versions.
27709       We previously did this from the startup script, but that was no
27710       help to people who didn't use the startup script. Resolves bug 863.
27711     - When we had picked an exit node for a connection, but marked it as
27712       "optional", and it turned out we had no onion key for the exit,
27713       stop wanting that exit and try again. This situation may not
27714       be possible now, but will probably become feasible with proposal
27715       158. Spotted by rovv. Fixes another case of bug 752.
27716     - Clients no longer cache certificates for authorities they do not
27717       recognize. Bugfix on 0.2.0.9-alpha.
27718     - When we can't transmit a DNS request due to a network error, retry
27719       it after a while, and eventually transmit a failing response to
27720       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
27721     - If the controller claimed responsibility for a stream, but that
27722       stream never finished making its connection, it would live
27723       forever in circuit_wait state. Now we close it after SocksTimeout
27724       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
27725     - Drop begin cells to a hidden service if they come from the middle
27726       of a circuit. Patch from lark.
27727     - When we erroneously receive two EXTEND cells for the same circuit
27728       ID on the same connection, drop the second. Patch from lark.
27729     - Fix a crash that occurs on exit nodes when a nameserver request
27730       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
27731       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
27732       bug 929.
27733     - Do not assume that a stack-allocated character array will be
27734       64-bit aligned on platforms that demand that uint64_t access is
27735       aligned. Possible fix for bug 604.
27736     - Parse dates and IPv4 addresses in a locale- and libc-independent
27737       manner, to avoid platform-dependent behavior on malformed input.
27738     - Build correctly when configured to build outside the main source
27739       path. Patch from Michael Gold.
27740     - We were already rejecting relay begin cells with destination port
27741       of 0. Now also reject extend cells with destination port or address
27742       of 0. Suggested by lark.
27744   o Minor bugfixes (on 0.2.1.x):
27745     - Don't re-extend introduction circuits if we ran out of RELAY_EARLY
27746       cells. Bugfix on 0.2.1.3-alpha. Fixes more of bug 878.
27747     - If we're an exit node, scrub the IP address to which we are exiting
27748       in the logs. Bugfix on 0.2.1.8-alpha.
27750   o Minor features:
27751     - On Linux, use the prctl call to re-enable core dumps when the user
27752       is option is set.
27753     - New controller event NEWCONSENSUS that lists the networkstatus
27754       lines for every recommended relay. Now controllers like Torflow
27755       can keep up-to-date on which relays they should be using.
27756     - Update to the "February 26 2009" ip-to-country file.
27759 Changes in version 0.2.0.34 - 2009-02-08
27760   Tor 0.2.0.34 features several more security-related fixes. You should
27761   upgrade, especially if you run an exit relay (remote crash) or a
27762   directory authority (remote infinite loop), or you're on an older
27763   (pre-XP) or not-recently-patched Windows (remote exploit).
27765   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
27766   have many known flaws, and nobody should be using them. You should
27767   upgrade. If you're using a Linux or BSD and its packages are obsolete,
27768   stop using those packages and upgrade anyway.
27770   o Security fixes:
27771     - Fix an infinite-loop bug on handling corrupt votes under certain
27772       circumstances. Bugfix on 0.2.0.8-alpha.
27773     - Fix a temporary DoS vulnerability that could be performed by
27774       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
27775     - Avoid a potential crash on exit nodes when processing malformed
27776       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
27777     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
27778       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
27780   o Minor bugfixes:
27781     - Fix compilation on systems where time_t is a 64-bit integer.
27782       Patch from Matthias Drochner.
27783     - Don't consider expiring already-closed client connections. Fixes
27784       bug 893. Bugfix on 0.0.2pre20.
27787 Changes in version 0.2.1.12-alpha - 2009-02-08
27788   Tor 0.2.1.12-alpha features several more security-related fixes. You
27789   should upgrade, especially if you run an exit relay (remote crash) or
27790   a directory authority (remote infinite loop), or you're on an older
27791   (pre-XP) or not-recently-patched Windows (remote exploit). It also
27792   includes a big pile of minor bugfixes and cleanups.
27794   o Security fixes:
27795     - Fix an infinite-loop bug on handling corrupt votes under certain
27796       circumstances. Bugfix on 0.2.0.8-alpha.
27797     - Fix a temporary DoS vulnerability that could be performed by
27798       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
27799     - Avoid a potential crash on exit nodes when processing malformed
27800       input. Remote DoS opportunity. Bugfix on 0.2.1.7-alpha.
27802   o Minor bugfixes:
27803     - Let controllers actually ask for the "clients_seen" event for
27804       getting usage summaries on bridge relays. Bugfix on 0.2.1.10-alpha;
27805       reported by Matt Edman.
27806     - Fix a compile warning on OSX Panther. Fixes bug 913; bugfix against
27807       0.2.1.11-alpha.
27808     - Fix a bug in address parsing that was preventing bridges or hidden
27809       service targets from being at IPv6 addresses.
27810     - Solve a bug that kept hardware crypto acceleration from getting
27811       enabled when accounting was turned on. Fixes bug 907. Bugfix on
27812       0.0.9pre6.
27813     - Remove a bash-ism from configure.in to build properly on non-Linux
27814       platforms. Bugfix on 0.2.1.1-alpha.
27815     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
27816       headers. Bugfix on 0.2.0.10-alpha.
27817     - Don't consider expiring already-closed client connections. Fixes
27818       bug 893. Bugfix on 0.0.2pre20.
27819     - Fix another interesting corner-case of bug 891 spotted by rovv:
27820       Previously, if two hosts had different amounts of clock drift, and
27821       one of them created a new connection with just the wrong timing,
27822       the other might decide to deprecate the new connection erroneously.
27823       Bugfix on 0.1.1.13-alpha.
27824     - Resolve a very rare crash bug that could occur when the user forced
27825       a nameserver reconfiguration during the middle of a nameserver
27826       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
27827     - Support changing value of ServerDNSRandomizeCase during SIGHUP.
27828       Bugfix on 0.2.1.7-alpha.
27829     - If we're using bridges and our network goes away, be more willing
27830       to forgive our bridges and try again when we get an application
27831       request. Bugfix on 0.2.0.x.
27833   o Minor features:
27834     - Support platforms where time_t is 64 bits long. (Congratulations,
27835       NetBSD!) Patch from Matthias Drochner.
27836     - Add a 'getinfo status/clients-seen' controller command, in case
27837       controllers want to hear clients_seen events but connect late.
27839   o Build changes:
27840     - Disable GCC's strict alias optimization by default, to avoid the
27841       likelihood of its introducing subtle bugs whenever our code violates
27842       the letter of C99's alias rules.
27845 Changes in version 0.2.0.33 - 2009-01-21
27846   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
27847   useful to users. It also finally fixes a bug where a relay or client
27848   that's been off for many days would take a long time to bootstrap.
27850   This update also fixes an important security-related bug reported by
27851   Ilja van Sprundel. You should upgrade. (We'll send out more details
27852   about the bug once people have had some time to upgrade.)
27854   o Security fixes:
27855     - Fix a heap-corruption bug that may be remotely triggerable on
27856       some platforms. Reported by Ilja van Sprundel.
27858   o Major bugfixes:
27859     - When a stream at an exit relay is in state "resolving" or
27860       "connecting" and it receives an "end" relay cell, the exit relay
27861       would silently ignore the end cell and not close the stream. If
27862       the client never closes the circuit, then the exit relay never
27863       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
27864       reported by "wood".
27865     - When sending CREATED cells back for a given circuit, use a 64-bit
27866       connection ID to find the right connection, rather than an addr:port
27867       combination. Now that we can have multiple OR connections between
27868       the same ORs, it is no longer possible to use addr:port to uniquely
27869       identify a connection.
27870     - Bridge relays that had DirPort set to 0 would stop fetching
27871       descriptors shortly after startup, and then briefly resume
27872       after a new bandwidth test and/or after publishing a new bridge
27873       descriptor. Bridge users that try to bootstrap from them would
27874       get a recent networkstatus but would get descriptors from up to
27875       18 hours earlier, meaning most of the descriptors were obsolete
27876       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
27877     - Prevent bridge relays from serving their 'extrainfo' document
27878       to anybody who asks, now that extrainfo docs include potentially
27879       sensitive aggregated client geoip summaries. Bugfix on
27880       0.2.0.13-alpha.
27881     - If the cached networkstatus consensus is more than five days old,
27882       discard it rather than trying to use it. In theory it could be
27883       useful because it lists alternate directory mirrors, but in practice
27884       it just means we spend many minutes trying directory mirrors that
27885       are long gone from the network. Also discard router descriptors as
27886       we load them if they are more than five days old, since the onion
27887       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
27889   o Minor bugfixes:
27890     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
27891       could make gcc generate non-functional binary search code. Bugfix
27892       on 0.2.0.10-alpha.
27893     - Build correctly on platforms without socklen_t.
27894     - Compile without warnings on solaris.
27895     - Avoid potential crash on internal error during signature collection.
27896       Fixes bug 864. Patch from rovv.
27897     - Correct handling of possible malformed authority signing key
27898       certificates with internal signature types. Fixes bug 880.
27899       Bugfix on 0.2.0.3-alpha.
27900     - Fix a hard-to-trigger resource leak when logging credential status.
27901       CID 349.
27902     - When we can't initialize DNS because the network is down, do not
27903       automatically stop Tor from starting. Instead, we retry failed
27904       dns_init() every 10 minutes, and change the exit policy to reject
27905       *:* until one succeeds. Fixes bug 691.
27906     - Use 64 bits instead of 32 bits for connection identifiers used with
27907       the controller protocol, to greatly reduce risk of identifier reuse.
27908     - When we're choosing an exit node for a circuit, and we have
27909       no pending streams, choose a good general exit rather than one that
27910       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
27911     - Fix another case of assuming, when a specific exit is requested,
27912       that we know more than the user about what hosts it allows.
27913       Fixes one case of bug 752. Patch from rovv.
27914     - Clip the MaxCircuitDirtiness config option to a minimum of 10
27915       seconds. Warn the user if lower values are given in the
27916       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
27917     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
27918       user if lower values are given in the configuration. Bugfix on
27919       0.1.1.17-rc. Patch by Sebastian.
27920     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
27921       the cache because we already had a v0 descriptor with the same ID.
27922       Bugfix on 0.2.0.18-alpha.
27923     - Fix a race condition when freeing keys shared between main thread
27924       and CPU workers that could result in a memory leak. Bugfix on
27925       0.1.0.1-rc. Fixes bug 889.
27926     - Send a valid END cell back when a client tries to connect to a
27927       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
27928       840. Patch from rovv.
27929     - Check which hops rendezvous stream cells are associated with to
27930       prevent possible guess-the-streamid injection attacks from
27931       intermediate hops. Fixes another case of bug 446. Based on patch
27932       from rovv.
27933     - If a broken client asks a non-exit router to connect somewhere,
27934       do not even do the DNS lookup before rejecting the connection.
27935       Fixes another case of bug 619. Patch from rovv.
27936     - When a relay gets a create cell it can't decrypt (e.g. because it's
27937       using the wrong onion key), we were dropping it and letting the
27938       client time out. Now actually answer with a destroy cell. Fixes
27939       bug 904. Bugfix on 0.0.2pre8.
27941   o Minor bugfixes (hidden services):
27942     - Do not throw away existing introduction points on SIGHUP. Bugfix on
27943       0.0.6pre1. Patch by Karsten. Fixes bug 874.
27945   o Minor features:
27946     - Report the case where all signatures in a detached set are rejected
27947       differently than the case where there is an error handling the
27948       detached set.
27949     - When we realize that another process has modified our cached
27950       descriptors, print out a more useful error message rather than
27951       triggering an assertion. Fixes bug 885. Patch from Karsten.
27952     - Implement the 0x20 hack to better resist DNS poisoning: set the
27953       case on outgoing DNS requests randomly, and reject responses that do
27954       not match the case correctly. This logic can be disabled with the
27955       ServerDNSRamdomizeCase setting, if you are using one of the 0.3%
27956       of servers that do not reliably preserve case in replies. See
27957       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
27958       for more info.
27959     - Check DNS replies for more matching fields to better resist DNS
27960       poisoning.
27961     - Never use OpenSSL compression: it wastes RAM and CPU trying to
27962       compress cells, which are basically all encrypted, compressed, or
27963       both.
27966 Changes in version 0.2.1.11-alpha - 2009-01-20
27967   Tor 0.2.1.11-alpha finishes fixing the "if your Tor is off for a
27968   week it will take a long time to bootstrap again" bug. It also fixes
27969   an important security-related bug reported by Ilja van Sprundel. You
27970   should upgrade. (We'll send out more details about the bug once people
27971   have had some time to upgrade.)
27973   o Security fixes:
27974     - Fix a heap-corruption bug that may be remotely triggerable on
27975       some platforms. Reported by Ilja van Sprundel.
27977   o Major bugfixes:
27978     - Discard router descriptors as we load them if they are more than
27979       five days old. Otherwise if Tor is off for a long time and then
27980       starts with cached descriptors, it will try to use the onion
27981       keys in those obsolete descriptors when building circuits. Bugfix
27982       on 0.2.0.x. Fixes bug 887.
27984   o Minor features:
27985     - Try to make sure that the version of Libevent we're running with
27986       is binary-compatible with the one we built with. May address bug
27987       897 and others.
27988     - Make setting ServerDNSRandomizeCase to 0 actually work. Bugfix
27989       for bug 905. Bugfix on 0.2.1.7-alpha.
27990     - Add a new --enable-local-appdata configuration switch to change
27991       the default location of the datadir on win32 from APPDATA to
27992       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
27993       entirely. Patch from coderman.
27995   o Minor bugfixes:
27996     - Make outbound DNS packets respect the OutboundBindAddress setting.
27997       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
27998     - When our circuit fails at the first hop (e.g. we get a destroy
27999       cell back), avoid using that OR connection anymore, and also
28000       tell all the one-hop directory requests waiting for it that they
28001       should fail. Bugfix on 0.2.1.3-alpha.
28002     - In the torify(1) manpage, mention that tsocks will leak your
28003       DNS requests.
28006 Changes in version 0.2.1.10-alpha - 2009-01-06
28007   Tor 0.2.1.10-alpha fixes two major bugs in bridge relays (one that
28008   would make the bridge relay not so useful if it had DirPort set to 0,
28009   and one that could let an attacker learn a little bit of information
28010   about the bridge's users), and a bug that would cause your Tor relay
28011   to ignore a circuit create request it can't decrypt (rather than reply
28012   with an error). It also fixes a wide variety of other bugs.
28014   o Major bugfixes:
28015     - If the cached networkstatus consensus is more than five days old,
28016       discard it rather than trying to use it. In theory it could
28017       be useful because it lists alternate directory mirrors, but in
28018       practice it just means we spend many minutes trying directory
28019       mirrors that are long gone from the network. Helps bug 887 a bit;
28020       bugfix on 0.2.0.x.
28021     - Bridge relays that had DirPort set to 0 would stop fetching
28022       descriptors shortly after startup, and then briefly resume
28023       after a new bandwidth test and/or after publishing a new bridge
28024       descriptor. Bridge users that try to bootstrap from them would
28025       get a recent networkstatus but would get descriptors from up to
28026       18 hours earlier, meaning most of the descriptors were obsolete
28027       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
28028     - Prevent bridge relays from serving their 'extrainfo' document
28029       to anybody who asks, now that extrainfo docs include potentially
28030       sensitive aggregated client geoip summaries. Bugfix on
28031       0.2.0.13-alpha.
28033   o Minor features:
28034     - New controller event "clients_seen" to report a geoip-based summary
28035       of which countries we've seen clients from recently. Now controllers
28036       like Vidalia can show bridge operators that they're actually making
28037       a difference.
28038     - Build correctly against versions of OpenSSL 0.9.8 or later built
28039       without support for deprecated functions.
28040     - Update to the "December 19 2008" ip-to-country file.
28042   o Minor bugfixes (on 0.2.0.x):
28043     - Authorities now vote for the Stable flag for any router whose
28044       weighted MTBF is at least 5 days, regardless of the mean MTBF.
28045     - Do not remove routers as too old if we do not have any consensus
28046       document. Bugfix on 0.2.0.7-alpha.
28047     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
28048       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
28049     - When an exit relay resolves a stream address to a local IP address,
28050       do not just keep retrying that same exit relay over and
28051       over. Instead, just close the stream. Addresses bug 872. Bugfix
28052       on 0.2.0.32. Patch from rovv.
28053     - If a hidden service sends us an END cell, do not consider
28054       retrying the connection; just close it. Patch from rovv.
28055     - When we made bridge authorities stop serving bridge descriptors over
28056       unencrypted links, we also broke DirPort reachability testing for
28057       bridges. So bridges with a non-zero DirPort were printing spurious
28058       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
28059     - When a relay gets a create cell it can't decrypt (e.g. because it's
28060       using the wrong onion key), we were dropping it and letting the
28061       client time out. Now actually answer with a destroy cell. Fixes
28062       bug 904. Bugfix on 0.0.2pre8.
28063     - Squeeze 2-5% out of client performance (according to oprofile) by
28064       improving the implementation of some policy-manipulation functions.
28066   o Minor bugfixes (on 0.2.1.x):
28067     - Make get_interface_address() function work properly again; stop
28068       guessing the wrong parts of our address as our address.
28069     - Do not cannibalize a circuit if we're out of RELAY_EARLY cells to
28070       send on that circuit. Otherwise we might violate the proposal-110
28071       limit. Bugfix on 0.2.1.3-alpha. Partial fix for bug 878. Diagnosis
28072       thanks to Karsten.
28073     - When we're sending non-EXTEND cells to the first hop in a circuit,
28074       for example to use an encrypted directory connection, we don't need
28075       to use RELAY_EARLY cells: the first hop knows what kind of cell
28076       it is, and nobody else can even see the cell type. Conserving
28077       RELAY_EARLY cells makes it easier to cannibalize circuits like
28078       this later.
28079     - Stop logging nameserver addresses in reverse order.
28080     - If we are retrying a directory download slowly over and over, do
28081       not automatically give up after the 254th failure. Bugfix on
28082       0.2.1.9-alpha.
28083     - Resume reporting accurate "stream end" reasons to the local control
28084       port. They were lost in the changes for Proposal 148. Bugfix on
28085       0.2.1.9-alpha.
28087   o Deprecated and removed features:
28088     - The old "tor --version --version" command, which would print out
28089       the subversion "Id" of most of the source files, is now removed. It
28090       turned out to be less useful than we'd expected, and harder to
28091       maintain.
28093   o Code simplifications and refactoring:
28094     - Change our header file guard macros to be less likely to conflict
28095       with system headers. Adam Langley noticed that we were conflicting
28096       with log.h on Android.
28097     - Tool-assisted documentation cleanup. Nearly every function or
28098       static variable in Tor should have its own documentation now.
28101 Changes in version 0.2.1.9-alpha - 2008-12-25
28102   Tor 0.2.1.9-alpha fixes many more bugs, some of them security-related.
28104   o New directory authorities:
28105     - gabelmoo (the authority run by Karsten Loesing) now has a new
28106       IP address.
28108   o Security fixes:
28109     - Never use a connection with a mismatched address to extend a
28110       circuit, unless that connection is canonical. A canonical
28111       connection is one whose address is authenticated by the router's
28112       identity key, either in a NETINFO cell or in a router descriptor.
28113     - Avoid a possible memory corruption bug when receiving hidden service
28114       descriptors. Bugfix on 0.2.1.6-alpha.
28116   o Major bugfixes:
28117     - Fix a logic error that would automatically reject all but the first
28118       configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for
28119       part of bug 813/868. Bug spotted by coderman.
28120     - When a stream at an exit relay is in state "resolving" or
28121       "connecting" and it receives an "end" relay cell, the exit relay
28122       would silently ignore the end cell and not close the stream. If
28123       the client never closes the circuit, then the exit relay never
28124       closes the TCP connection. Bug introduced in 0.1.2.1-alpha;
28125       reported by "wood".
28126     - When we can't initialize DNS because the network is down, do not
28127       automatically stop Tor from starting. Instead, retry failed
28128       dns_init() every 10 minutes, and change the exit policy to reject
28129       *:* until one succeeds. Fixes bug 691.
28131   o Minor features:
28132     - Give a better error message when an overzealous init script says
28133       "sudo -u username tor --user username". Makes Bug 882 easier for
28134       users to diagnose.
28135     - When a directory authority gives us a new guess for our IP address,
28136       log which authority we used. Hopefully this will help us debug
28137       the recent complaints about bad IP address guesses.
28138     - Detect svn revision properly when we're using git-svn.
28139     - Try not to open more than one descriptor-downloading connection
28140       to an authority at once. This should reduce load on directory
28141       authorities. Fixes bug 366.
28142     - Add cross-certification to newly generated certificates, so that
28143       a signing key is enough information to look up a certificate.
28144       Partial implementation of proposal 157.
28145     - Start serving certificates by <identity digest, signing key digest>
28146       pairs. Partial implementation of proposal 157.
28147     - Clients now never report any stream end reason except 'MISC'.
28148       Implements proposal 148.
28149     - On platforms with a maximum syslog string length, truncate syslog
28150       messages to that length ourselves, rather than relying on the
28151       system to do it for us.
28152     - Optimize out calls to time(NULL) that occur for every IO operation,
28153       or for every cell. On systems where time() is a slow syscall,
28154       this fix will be slightly helpful.
28155     - Exit servers can now answer resolve requests for ip6.arpa addresses.
28156     - When we download a descriptor that we then immediately (as
28157       a directory authority) reject, do not retry downloading it right
28158       away. Should save some bandwidth on authorities. Fix for bug
28159       888. Patch by Sebastian Hahn.
28160     - When a download gets us zero good descriptors, do not notify
28161       Tor that new directory information has arrived.
28162     - Avoid some nasty corner cases in the logic for marking connections
28163       as too old or obsolete or noncanonical for circuits. Partial
28164       bugfix on bug 891.
28166   o Minor features (controller):
28167     - New CONSENSUS_ARRIVED event to note when a new consensus has
28168       been fetched and validated.
28169     - When we realize that another process has modified our cached
28170       descriptors file, print out a more useful error message rather
28171       than triggering an assertion. Fixes bug 885. Patch from Karsten.
28172     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
28173       controllers to prevent SIGHUP from reloading the
28174       configuration. Fixes bug 856.
28176   o Minor bugfixes:
28177     - Resume using the correct "REASON=" stream when telling the
28178       controller why we closed a stream. Bugfix in 0.2.1.1-alpha.
28179     - When a canonical connection appears later in our internal list
28180       than a noncanonical one for a given OR ID, always use the
28181       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
28182       Spotted by rovv.
28183     - Clip the MaxCircuitDirtiness config option to a minimum of 10
28184       seconds. Warn the user if lower values are given in the
28185       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
28186     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
28187       user if lower values are given in the configuration. Bugfix on
28188       0.1.1.17-rc. Patch by Sebastian.
28189     - Fix a race condition when freeing keys shared between main thread
28190       and CPU workers that could result in a memory leak. Bugfix on
28191       0.1.0.1-rc. Fixes bug 889.
28193   o Minor bugfixes (hidden services):
28194     - Do not throw away existing introduction points on SIGHUP (bugfix on
28195       0.0.6pre1); also, do not stall hidden services because we're
28196       throwing away introduction points; bugfix on 0.2.1.7-alpha. Spotted
28197       by John Brooks. Patch by Karsten. Fixes bug 874.
28198     - Fix a memory leak when we decline to add a v2 rendezvous
28199       descriptor to the cache because we already had a v0 descriptor
28200       with the same ID. Bugfix on 0.2.0.18-alpha.
28202   o Deprecated and removed features:
28203     - RedirectExits has been removed. It was deprecated since
28204       0.2.0.3-alpha.
28205     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
28206       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
28207     - Cell pools are now always enabled; --disable-cell-pools is ignored.
28209   o Code simplifications and refactoring:
28210     - Rename the confusing or_is_obsolete field to the more appropriate
28211       is_bad_for_new_circs, and move it to or_connection_t where it
28212       belongs.
28213     - Move edge-only flags from connection_t to edge_connection_t: not
28214       only is this better coding, but on machines of plausible alignment,
28215       it should save 4-8 bytes per connection_t. "Every little bit helps."
28216     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
28217       for consistency; keep old option working for backward compatibility.
28218     - Simplify the code for finding connections to use for a circuit.
28221 Changes in version 0.2.1.8-alpha - 2008-12-08
28222   Tor 0.2.1.8-alpha fixes some crash bugs in earlier alpha releases,
28223   builds better on unusual platforms like Solaris and old OS X, and
28224   fixes a variety of other issues.
28226   o Major features:
28227     - New DirPortFrontPage option that takes an html file and publishes
28228       it as "/" on the DirPort. Now relay operators can provide a
28229       disclaimer without needing to set up a separate webserver. There's
28230       a sample disclaimer in contrib/tor-exit-notice.html.
28232   o Security fixes:
28233     - When the client is choosing entry guards, now it selects at most
28234       one guard from a given relay family. Otherwise we could end up with
28235       all of our entry points into the network run by the same operator.
28236       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
28238   o Major bugfixes:
28239     - Fix a DOS opportunity during the voting signature collection process
28240       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
28241     - Fix a possible segfault when establishing an exit connection. Bugfix
28242       on 0.2.1.5-alpha.
28244   o Minor bugfixes:
28245     - Get file locking working on win32. Bugfix on 0.2.1.6-alpha. Fixes
28246       bug 859.
28247     - Made Tor a little less aggressive about deleting expired
28248       certificates. Partial fix for bug 854.
28249     - Stop doing unaligned memory access that generated bus errors on
28250       sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
28251     - Fix a crash bug when changing EntryNodes from the controller. Bugfix
28252       on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
28253     - Make USR2 log-level switch take effect immediately. Bugfix on
28254       0.1.2.8-beta.
28255     - If one win32 nameserver fails to get added, continue adding the
28256       rest, and don't automatically fail.
28257     - Use fcntl() for locking when flock() is not available. Should fix
28258       compilation on Solaris. Should fix Bug 873. Bugfix on 0.2.1.6-alpha.
28259     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
28260       could make gcc generate non-functional binary search code. Bugfix
28261       on 0.2.0.10-alpha.
28262     - Build correctly on platforms without socklen_t.
28263     - Avoid potential crash on internal error during signature collection.
28264       Fixes bug 864. Patch from rovv.
28265     - Do not use C's stdio library for writing to log files. This will
28266       improve logging performance by a minute amount, and will stop
28267       leaking fds when our disk is full. Fixes bug 861.
28268     - Stop erroneous use of O_APPEND in cases where we did not in fact
28269       want to re-seek to the end of a file before every last write().
28270     - Correct handling of possible malformed authority signing key
28271       certificates with internal signature types. Fixes bug 880. Bugfix
28272       on 0.2.0.3-alpha.
28273     - Fix a hard-to-trigger resource leak when logging credential status.
28274       CID 349.
28276   o Minor features:
28277     - Directory mirrors no longer fetch the v1 directory or
28278       running-routers files. They are obsolete, and nobody asks for them
28279       anymore. This is the first step to making v1 authorities obsolete.
28281   o Minor features (controller):
28282     - Return circuit purposes in response to GETINFO circuit-status. Fixes
28283       bug 858.
28286 Changes in version 0.2.0.32 - 2008-11-20
28287   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
28288   packages (and maybe other packages) noticed by Theo de Raadt, fixes
28289   a smaller security flaw that might allow an attacker to access local
28290   services, further improves hidden service performance, and fixes a
28291   variety of other issues.
28293   o Security fixes:
28294     - The "User" and "Group" config options did not clear the
28295       supplementary group entries for the Tor process. The "User" option
28296       is now more robust, and we now set the groups to the specified
28297       user's primary group. The "Group" option is now ignored. For more
28298       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
28299       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
28300       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
28301     - The "ClientDNSRejectInternalAddresses" config option wasn't being
28302       consistently obeyed: if an exit relay refuses a stream because its
28303       exit policy doesn't allow it, we would remember what IP address
28304       the relay said the destination address resolves to, even if it's
28305       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
28307   o Major bugfixes:
28308     - Fix a DOS opportunity during the voting signature collection process
28309       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
28311   o Major bugfixes (hidden services):
28312     - When fetching v0 and v2 rendezvous service descriptors in parallel,
28313       we were failing the whole hidden service request when the v0
28314       descriptor fetch fails, even if the v2 fetch is still pending and
28315       might succeed. Similarly, if the last v2 fetch fails, we were
28316       failing the whole hidden service request even if a v0 fetch is
28317       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
28318     - When extending a circuit to a hidden service directory to upload a
28319       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
28320       requests failed, because the router descriptor has not been
28321       downloaded yet. In these cases, do not attempt to upload the
28322       rendezvous descriptor, but wait until the router descriptor is
28323       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
28324       descriptor from a hidden service directory for which the router
28325       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
28326       on 0.2.0.10-alpha.
28328   o Minor bugfixes:
28329     - Fix several infrequent memory leaks spotted by Coverity.
28330     - When testing for libevent functions, set the LDFLAGS variable
28331       correctly. Found by Riastradh.
28332     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
28333       bootstrapping with tunneled directory connections. Bugfix on
28334       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
28335     - When asked to connect to A.B.exit:80, if we don't know the IP for A
28336       and we know that server B rejects most-but-not all connections to
28337       port 80, we would previously reject the connection. Now, we assume
28338       the user knows what they were asking for. Fixes bug 752. Bugfix
28339       on 0.0.9rc5. Diagnosed by BarkerJr.
28340     - If we overrun our per-second write limits a little, count this as
28341       having used up our write allocation for the second, and choke
28342       outgoing directory writes. Previously, we had only counted this when
28343       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
28344       Bugfix on 0.2.0.x (??).
28345     - Remove the old v2 directory authority 'lefkada' from the default
28346       list. It has been gone for many months.
28347     - Stop doing unaligned memory access that generated bus errors on
28348       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
28349     - Make USR2 log-level switch take effect immediately. Bugfix on
28350       0.1.2.8-beta.
28352   o Minor bugfixes (controller):
28353     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
28354       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
28357 Changes in version 0.2.1.7-alpha - 2008-11-08
28358   Tor 0.2.1.7-alpha fixes a major security problem in Debian and Ubuntu
28359   packages (and maybe other packages) noticed by Theo de Raadt, fixes
28360   a smaller security flaw that might allow an attacker to access local
28361   services, adds better defense against DNS poisoning attacks on exit
28362   relays, further improves hidden service performance, and fixes a
28363   variety of other issues.
28365   o Security fixes:
28366     - The "ClientDNSRejectInternalAddresses" config option wasn't being
28367       consistently obeyed: if an exit relay refuses a stream because its
28368       exit policy doesn't allow it, we would remember what IP address
28369       the relay said the destination address resolves to, even if it's
28370       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
28371     - The "User" and "Group" config options did not clear the
28372       supplementary group entries for the Tor process. The "User" option
28373       is now more robust, and we now set the groups to the specified
28374       user's primary group. The "Group" option is now ignored. For more
28375       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
28376       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
28377       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848.
28378     - Do not use or believe expired v3 authority certificates. Patch
28379       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
28381   o Minor features:
28382     - Now NodeFamily and MyFamily config options allow spaces in
28383       identity fingerprints, so it's easier to paste them in.
28384       Suggested by Lucky Green.
28385     - Implement the 0x20 hack to better resist DNS poisoning: set the
28386       case on outgoing DNS requests randomly, and reject responses that do
28387       not match the case correctly. This logic can be disabled with the
28388       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
28389       of servers that do not reliably preserve case in replies. See
28390       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
28391       for more info.
28392     - Preserve case in replies to DNSPort requests in order to support
28393       the 0x20 hack for resisting DNS poisoning attacks.
28395   o Hidden service performance improvements:
28396     - When the client launches an introduction circuit, retry with a
28397       new circuit after 30 seconds rather than 60 seconds.
28398     - Launch a second client-side introduction circuit in parallel
28399       after a delay of 15 seconds (based on work by Christian Wilms).
28400     - Hidden services start out building five intro circuits rather
28401       than three, and when the first three finish they publish a service
28402       descriptor using those. Now we publish our service descriptor much
28403       faster after restart.
28405   o Minor bugfixes:
28406     - Minor fix in the warning messages when you're having problems
28407       bootstrapping; also, be more forgiving of bootstrap problems when
28408       we're still making incremental progress on a given bootstrap phase.
28409     - When we're choosing an exit node for a circuit, and we have
28410       no pending streams, choose a good general exit rather than one that
28411       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
28412     - Send a valid END cell back when a client tries to connect to a
28413       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
28414       840. Patch from rovv.
28415     - If a broken client asks a non-exit router to connect somewhere,
28416       do not even do the DNS lookup before rejecting the connection.
28417       Fixes another case of bug 619. Patch from rovv.
28418     - Fix another case of assuming, when a specific exit is requested,
28419       that we know more than the user about what hosts it allows.
28420       Fixes another case of bug 752. Patch from rovv.
28421     - Check which hops rendezvous stream cells are associated with to
28422       prevent possible guess-the-streamid injection attacks from
28423       intermediate hops. Fixes another case of bug 446. Based on patch
28424       from rovv.
28425     - Avoid using a negative right-shift when comparing 32-bit
28426       addresses. Possible fix for bug 845 and bug 811.
28427     - Make the assert_circuit_ok() function work correctly on circuits that
28428       have already been marked for close.
28429     - Fix read-off-the-end-of-string error in unit tests when decoding
28430       introduction points.
28431     - Fix uninitialized size field for memory area allocation: may improve
28432       memory performance during directory parsing.
28433     - Treat duplicate certificate fetches as failures, so that we do
28434       not try to re-fetch an expired certificate over and over and over.
28435     - Do not say we're fetching a certificate when we'll in fact skip it
28436       because of a pending download.
28439 Changes in version 0.2.1.6-alpha - 2008-09-30
28440   Tor 0.2.1.6-alpha further improves performance and robustness of
28441   hidden services, starts work on supporting per-country relay selection,
28442   and fixes a variety of smaller issues.
28444   o Major features:
28445     - Implement proposal 121: make it possible to build hidden services
28446       that only certain clients are allowed to connect to. This is
28447       enforced at several points, so that unauthorized clients are unable
28448       to send INTRODUCE cells to the service, or even (depending on the
28449       type of authentication) to learn introduction points. This feature
28450       raises the bar for certain kinds of active attacks against hidden
28451       services. Code by Karsten Loesing.
28452     - Relays now store and serve v2 hidden service descriptors by default,
28453       i.e., the new default value for HidServDirectoryV2 is 1. This is
28454       the last step in proposal 114, which aims to make hidden service
28455       lookups more reliable.
28456     - Start work to allow node restrictions to include country codes. The
28457       syntax to exclude nodes in a country with country code XX is
28458       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
28459       refinement to decide what config options should take priority if
28460       you ask to both use a particular node and exclude it.
28461     - Allow ExitNodes list to include IP ranges and country codes, just
28462       like the Exclude*Nodes lists. Patch from Robert Hogan.
28464   o Major bugfixes:
28465     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
28466       Tor to fail to start if you had it configured to use a bridge
28467       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
28468     - When extending a circuit to a hidden service directory to upload a
28469       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
28470       requests failed, because the router descriptor had not been
28471       downloaded yet. In these cases, we now wait until the router
28472       descriptor is downloaded, and then retry. Likewise, clients
28473       now skip over a hidden service directory if they don't yet have
28474       its router descriptor, rather than futilely requesting it and
28475       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
28476       on 0.2.0.10-alpha.
28477     - When fetching v0 and v2 rendezvous service descriptors in parallel,
28478       we were failing the whole hidden service request when the v0
28479       descriptor fetch fails, even if the v2 fetch is still pending and
28480       might succeed. Similarly, if the last v2 fetch fails, we were
28481       failing the whole hidden service request even if a v0 fetch is
28482       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
28483     - DNS replies need to have names matching their requests, but
28484       these names should be in the questions section, not necessarily
28485       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
28487   o Minor features:
28488     - Update to the "September 1 2008" ip-to-country file.
28489     - Allow ports 465 and 587 in the default exit policy again. We had
28490       rejected them in 0.1.0.15, because back in 2005 they were commonly
28491       misconfigured and ended up as spam targets. We hear they are better
28492       locked down these days.
28493     - Use a lockfile to make sure that two Tor processes are not
28494       simultaneously running with the same datadir.
28495     - Serve the latest v3 networkstatus consensus via the control
28496       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
28497     - Better logging about stability/reliability calculations on directory
28498       servers.
28499     - Drop the requirement to have an open dir port for storing and
28500       serving v2 hidden service descriptors.
28501     - Directory authorities now serve a /tor/dbg-stability.txt URL to
28502       help debug WFU and MTBF calculations.
28503     - Implement most of Proposal 152: allow specialized servers to permit
28504       single-hop circuits, and clients to use those servers to build
28505       single-hop circuits when using a specialized controller. Patch
28506       from Josh Albrecht. Resolves feature request 768.
28507     - Add a -p option to tor-resolve for specifying the SOCKS port: some
28508       people find host:port too confusing.
28509     - Make TrackHostExit mappings expire a while after their last use, not
28510       after their creation. Patch from Robert Hogan.
28511     - Provide circuit purposes along with circuit events to the controller.
28513   o Minor bugfixes:
28514     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
28515       Reported by Tas.
28516     - Fixed some memory leaks -- some quite frequent, some almost
28517       impossible to trigger -- based on results from Coverity.
28518     - When testing for libevent functions, set the LDFLAGS variable
28519       correctly. Found by Riastradh.
28520     - Fix an assertion bug in parsing policy-related options; possible fix
28521       for bug 811.
28522     - Catch and report a few more bootstrapping failure cases when Tor
28523       fails to establish a TCP connection. Cleanup on 0.2.1.x.
28524     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
28525       bootstrapping with tunneled directory connections. Bugfix on
28526       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
28527     - When asked to connect to A.B.exit:80, if we don't know the IP for A
28528       and we know that server B rejects most-but-not all connections to
28529       port 80, we would previously reject the connection. Now, we assume
28530       the user knows what they were asking for. Fixes bug 752. Bugfix
28531       on 0.0.9rc5. Diagnosed by BarkerJr.
28532     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
28533       service directories if they have no advertised dir port. Bugfix
28534       on 0.2.0.10-alpha.
28535     - If we overrun our per-second write limits a little, count this as
28536       having used up our write allocation for the second, and choke
28537       outgoing directory writes. Previously, we had only counted this when
28538       we had met our limits precisely. Fixes bug 824. Patch by rovv.
28539       Bugfix on 0.2.0.x (??).
28540     - Avoid a "0 divided by 0" calculation when calculating router uptime
28541       at directory authorities. Bugfix on 0.2.0.8-alpha.
28542     - Make DNS resolved controller events into "CLOSED", not
28543       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
28544       bug 807.
28545     - Fix a bug where an unreachable relay would establish enough
28546       reachability testing circuits to do a bandwidth test -- if
28547       we already have a connection to the middle hop of the testing
28548       circuit, then it could establish the last hop by using the existing
28549       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
28550       circuits no longer use entry guards in 0.2.1.3-alpha.
28551     - If we have correct permissions on $datadir, we complain to stdout
28552       and fail to start. But dangerous permissions on
28553       $datadir/cached-status/ would cause us to open a log and complain
28554       there. Now complain to stdout and fail to start in both cases. Fixes
28555       bug 820, reported by seeess.
28556     - Remove the old v2 directory authority 'lefkada' from the default
28557       list. It has been gone for many months.
28559   o Code simplifications and refactoring:
28560     - Revise the connection_new functions so that a more typesafe variant
28561       exists. This will work better with Coverity, and let us find any
28562       actual mistakes we're making here.
28563     - Refactor unit testing logic so that dmalloc can be used sensibly
28564       with unit tests to check for memory leaks.
28565     - Move all hidden-service related fields from connection and circuit
28566       structure to substructures: this way they won't eat so much memory.
28569 Changes in version 0.2.0.31 - 2008-09-03
28570   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
28571   a big bug we're seeing where in rare cases traffic from one Tor stream
28572   gets mixed into another stream, and fixes a variety of smaller issues.
28574   o Major bugfixes:
28575     - Make sure that two circuits can never exist on the same connection
28576       with the same circuit ID, even if one is marked for close. This
28577       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
28578     - Relays now reject risky extend cells: if the extend cell includes
28579       a digest of all zeroes, or asks to extend back to the relay that
28580       sent the extend cell, tear down the circuit. Ideas suggested
28581       by rovv.
28582     - If not enough of our entry guards are available so we add a new
28583       one, we might use the new one even if it overlapped with the
28584       current circuit's exit relay (or its family). Anonymity bugfix
28585       pointed out by rovv.
28587   o Minor bugfixes:
28588     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
28589       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
28590     - Correctly detect the presence of the linux/netfilter_ipv4.h header
28591       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
28592     - Pick size of default geoip filename string correctly on windows.
28593       Fixes bug 806. Bugfix on 0.2.0.30.
28594     - Make the autoconf script accept the obsolete --with-ssl-dir
28595       option as an alias for the actually-working --with-openssl-dir
28596       option. Fix the help documentation to recommend --with-openssl-dir.
28597       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
28598     - When using the TransPort option on OpenBSD, and using the User
28599       option to change UID and drop privileges, make sure to open
28600       /dev/pf before dropping privileges. Fixes bug 782. Patch from
28601       Christopher Davis. Bugfix on 0.1.2.1-alpha.
28602     - Try to attach connections immediately upon receiving a RENDEZVOUS2
28603       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
28604       on the client side when connecting to a hidden service. Bugfix
28605       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
28606     - When closing an application-side connection because its circuit is
28607       getting torn down, generate the stream event correctly. Bugfix on
28608       0.1.2.x. Anonymous patch.
28611 Changes in version 0.2.1.5-alpha - 2008-08-31
28612   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
28613   in a lot of the infrastructure for adding authorization to hidden
28614   services, lays the groundwork for having clients read their load
28615   balancing information out of the networkstatus consensus rather than
28616   the individual router descriptors, addresses two potential anonymity
28617   issues, and fixes a variety of smaller issues.
28619   o Major features:
28620     - Convert many internal address representations to optionally hold
28621       IPv6 addresses.
28622     - Generate and accept IPv6 addresses in many protocol elements.
28623     - Make resolver code handle nameservers located at ipv6 addresses.
28624     - Begin implementation of proposal 121 ("Client authorization for
28625       hidden services"): configure hidden services with client
28626       authorization, publish descriptors for them, and configure
28627       authorization data for hidden services at clients. The next
28628       step is to actually access hidden services that perform client
28629       authorization.
28630     - More progress toward proposal 141: Network status consensus
28631       documents and votes now contain bandwidth information for each
28632       router and a summary of that router's exit policy. Eventually this
28633       will be used by clients so that they do not have to download every
28634       known descriptor before building circuits.
28636   o Major bugfixes (on 0.2.0.x and before):
28637     - When sending CREATED cells back for a given circuit, use a 64-bit
28638       connection ID to find the right connection, rather than an addr:port
28639       combination. Now that we can have multiple OR connections between
28640       the same ORs, it is no longer possible to use addr:port to uniquely
28641       identify a connection.
28642     - Relays now reject risky extend cells: if the extend cell includes
28643       a digest of all zeroes, or asks to extend back to the relay that
28644       sent the extend cell, tear down the circuit. Ideas suggested
28645       by rovv.
28646     - If not enough of our entry guards are available so we add a new
28647       one, we might use the new one even if it overlapped with the
28648       current circuit's exit relay (or its family). Anonymity bugfix
28649       pointed out by rovv.
28651   o Minor bugfixes:
28652     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
28653       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
28654     - When using the TransPort option on OpenBSD, and using the User
28655       option to change UID and drop privileges, make sure to open /dev/pf
28656       before dropping privileges. Fixes bug 782. Patch from Christopher
28657       Davis. Bugfix on 0.1.2.1-alpha.
28658     - Correctly detect the presence of the linux/netfilter_ipv4.h header
28659       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
28660     - Add a missing safe_str() call for a debug log message.
28661     - Use 64 bits instead of 32 bits for connection identifiers used with
28662       the controller protocol, to greatly reduce risk of identifier reuse.
28663     - Make the autoconf script accept the obsolete --with-ssl-dir
28664       option as an alias for the actually-working --with-openssl-dir
28665       option. Fix the help documentation to recommend --with-openssl-dir.
28666       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
28668   o Minor features:
28669     - Rate-limit too-many-sockets messages: when they happen, they happen
28670       a lot. Resolves bug 748.
28671     - Resist DNS poisoning a little better by making sure that names in
28672       answer sections match.
28673     - Print the SOCKS5 error message string as well as the error code
28674       when a tor-resolve request fails. Patch from Jacob.
28677 Changes in version 0.2.1.4-alpha - 2008-08-04
28678   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
28680   o Major bugfixes:
28681     - The address part of exit policies was not correctly written
28682       to router descriptors. This generated router descriptors that failed
28683       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
28684       on 0.2.1.3-alpha.
28685     - Tor triggered a false assert when extending a circuit to a relay
28686       but we already have a connection open to that relay. Noticed by
28687       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
28689   o Minor bugfixes:
28690     - Fix a hidden service logging bug: in some edge cases, the router
28691       descriptor of a previously picked introduction point becomes
28692       obsolete and we need to give up on it rather than continually
28693       complaining that it has become obsolete. Observed by xiando. Bugfix
28694       on 0.2.1.3-alpha.
28696   o Removed features:
28697     - Take out the TestVia config option, since it was a workaround for
28698       a bug that was fixed in Tor 0.1.1.21.
28701 Changes in version 0.2.1.3-alpha - 2008-08-03
28702   Tor 0.2.1.3-alpha implements most of the pieces to prevent
28703   infinite-length circuit attacks (see proposal 110); fixes a bug that
28704   might cause exit relays to corrupt streams they send back; allows
28705   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
28706   ExcludeExitNodes config options; and fixes a big pile of bugs.
28708   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
28709     - Send a bootstrap problem "warn" event on the first problem if the
28710       reason is NO_ROUTE (that is, our network is down).
28712   o Major features:
28713     - Implement most of proposal 110: The first K cells to be sent
28714       along a circuit are marked as special "early" cells; only K "early"
28715       cells will be allowed. Once this code is universal, we can block
28716       certain kinds of DOS attack by requiring that EXTEND commands must
28717       be sent using an "early" cell.
28719   o Major bugfixes:
28720     - Try to attach connections immediately upon receiving a RENDEZVOUS2
28721       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
28722       on the client side when connecting to a hidden service. Bugfix
28723       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
28724     - Ensure that two circuits can never exist on the same connection
28725       with the same circuit ID, even if one is marked for close. This
28726       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
28728   o Minor features:
28729     - When relays do their initial bandwidth measurement, don't limit
28730       to just our entry guards for the test circuits. Otherwise we tend
28731       to have multiple test circuits going through a single entry guard,
28732       which makes our bandwidth test less accurate. Fixes part of bug 654;
28733       patch contributed by Josh Albrecht.
28734     - Add an ExcludeExitNodes option so users can list a set of nodes
28735       that should be be excluded from the exit node position, but
28736       allowed elsewhere. Implements proposal 151.
28737     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
28738       ExcludeNodes and ExcludeExitNodes lists.
28739     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
28740       be more efficient. Formerly it was quadratic in the number of
28741       servers; now it should be linear. Fixes bug 509.
28742     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
28743       and n_conn_id_digest fields into a separate structure that's
28744       only needed when the circuit has not yet attached to an n_conn.
28746   o Minor bugfixes:
28747     - Change the contrib/tor.logrotate script so it makes the new
28748       logs as "_tor:_tor" rather than the default, which is generally
28749       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
28750     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
28751       warnings (occasionally), but it can also cause the compiler to
28752       eliminate error-checking code. Suggested by Peter Gutmann.
28753     - When a hidden service is giving up on an introduction point candidate
28754       that was not included in the last published rendezvous descriptor,
28755       don't reschedule publication of the next descriptor. Fixes bug 763.
28756       Bugfix on 0.0.9.3.
28757     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
28758       HiddenServiceExcludeNodes as obsolete: they never worked properly,
28759       and nobody claims to be using them. Fixes bug 754. Bugfix on
28760       0.1.0.1-rc. Patch from Christian Wilms.
28761     - Fix a small alignment and memory-wasting bug on buffer chunks.
28762       Spotted by rovv.
28764   o Minor bugfixes (controller):
28765     - When closing an application-side connection because its circuit
28766       is getting torn down, generate the stream event correctly.
28767       Bugfix on 0.1.2.x. Anonymous patch.
28769   o Removed features:
28770     - Remove all backward-compatibility code to support relays running
28771       versions of Tor so old that they no longer work at all on the
28772       Tor network.
28775 Changes in version 0.2.0.30 - 2008-07-15
28776   o Minor bugfixes:
28777     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
28778       warnings (occasionally), but it can also cause the compiler to
28779       eliminate error-checking code. Suggested by Peter Gutmann.
28782 Changes in version 0.2.0.29-rc - 2008-07-08
28783   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
28784   hidden-service performance bugs, and fixes a bunch of smaller bugs.
28786   o Major bugfixes:
28787     - If you have more than one bridge but don't know their keys,
28788       you would only launch a request for the descriptor of the first one
28789       on your list. (Tor considered launching requests for the others, but
28790       found that it already had a connection on the way for $0000...0000
28791       so it didn't open another.) Bugfix on 0.2.0.x.
28792     - If you have more than one bridge but don't know their keys, and the
28793       connection to one of the bridges failed, you would cancel all
28794       pending bridge connections. (After all, they all have the same
28795       digest.) Bugfix on 0.2.0.x.
28796     - When a hidden service was trying to establish an introduction point,
28797       and Tor had built circuits preemptively for such purposes, we
28798       were ignoring all the preemptive circuits and launching a new one
28799       instead. Bugfix on 0.2.0.14-alpha.
28800     - When a hidden service was trying to establish an introduction point,
28801       and Tor *did* manage to reuse one of the preemptively built
28802       circuits, it didn't correctly remember which one it used,
28803       so it asked for another one soon after, until there were no
28804       more preemptive circuits, at which point it launched one from
28805       scratch. Bugfix on 0.0.9.x.
28806     - Make directory servers include the X-Your-Address-Is: http header in
28807       their responses even for begin_dir conns. Now clients who only
28808       ever use begin_dir connections still have a way to learn their IP
28809       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
28811   o Minor bugfixes:
28812     - Fix a macro/CPP interaction that was confusing some compilers:
28813       some GCCs don't like #if/#endif pairs inside macro arguments.
28814       Fixes bug 707.
28815     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
28816       Fixes bug 704; fix from Steven Murdoch.
28817     - When opening /dev/null in finish_daemonize(), do not pass the
28818       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
28819       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
28820     - Correctly detect transparent proxy support on Linux hosts that
28821       require in.h to be included before netfilter_ipv4.h. Patch
28822       from coderman.
28823     - Disallow session resumption attempts during the renegotiation
28824       stage of the v2 handshake protocol. Clients should never be trying
28825       session resumption at this point, but apparently some did, in
28826       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
28827       found by Geoff Goodell.
28830 Changes in version 0.2.1.2-alpha - 2008-06-20
28831   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
28832   make it easier to set up your own private Tor network; fixes several
28833   big bugs with using more than one bridge relay; fixes a big bug with
28834   offering hidden services quickly after Tor starts; and uses a better
28835   API for reporting potential bootstrapping problems to the controller.
28837   o Major features:
28838     - New TestingTorNetwork config option to allow adjustment of
28839       previously constant values that, while reasonable, could slow
28840       bootstrapping. Implements proposal 135. Patch from Karsten.
28842   o Major bugfixes:
28843     - If you have more than one bridge but don't know their digests,
28844       you would only learn a request for the descriptor of the first one
28845       on your list. (Tor considered launching requests for the others, but
28846       found that it already had a connection on the way for $0000...0000
28847       so it didn't open another.) Bugfix on 0.2.0.x.
28848     - If you have more than one bridge but don't know their digests,
28849       and the connection to one of the bridges failed, you would cancel
28850       all pending bridge connections. (After all, they all have the
28851       same digest.) Bugfix on 0.2.0.x.
28852     - When establishing a hidden service, introduction points that
28853       originate from cannibalized circuits are completely ignored and not
28854       included in rendezvous service descriptors. This might be another
28855       reason for delay in making a hidden service available. Bugfix
28856       from long ago (0.0.9.x?)
28858   o Minor features:
28859     - Allow OpenSSL to use dynamic locks if it wants.
28860     - When building a consensus, do not include routers that are down.
28861       This will cut down 30% to 40% on consensus size. Implements
28862       proposal 138.
28863     - In directory authorities' approved-routers files, allow
28864       fingerprints with or without space.
28865     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
28866       controller can query our current bootstrap state in case it attaches
28867       partway through and wants to catch up.
28868     - Send an initial "Starting" bootstrap status event, so we have a
28869       state to start out in.
28871   o Minor bugfixes:
28872     - Asking for a conditional consensus at .../consensus/<fingerprints>
28873       would crash a dirserver if it did not already have a
28874       consensus. Bugfix on 0.2.1.1-alpha.
28875     - Clean up some macro/CPP interactions: some GCC versions don't like
28876       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
28877       0.2.0.x.
28879   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
28880     - Directory authorities shouldn't complain about bootstrapping
28881       problems just because they do a lot of reachability testing and
28882       some of the connection attempts fail.
28883     - Start sending "count" and "recommendation" key/value pairs in
28884       bootstrap problem status events, so the controller can hear about
28885       problems even before Tor decides they're worth reporting for sure.
28886     - If you're using bridges, generate "bootstrap problem" warnings
28887       as soon as you run out of working bridges, rather than waiting
28888       for ten failures -- which will never happen if you have less than
28889       ten bridges.
28890     - If we close our OR connection because there's been a circuit
28891       pending on it for too long, we were telling our bootstrap status
28892       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
28895 Changes in version 0.2.1.1-alpha - 2008-06-13
28896   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
28897   were making the Tor process bloat especially on Linux; makes our TLS
28898   handshake blend in better; sends "bootstrap phase" status events to
28899   the controller, so it can keep the user informed of progress (and
28900   problems) fetching directory information and establishing circuits;
28901   and adds a variety of smaller features.
28903   o Major features:
28904     - More work on making our TLS handshake blend in: modify the list
28905       of ciphers advertised by OpenSSL in client mode to even more
28906       closely resemble a common web browser. We cheat a little so that
28907       we can advertise ciphers that the locally installed OpenSSL doesn't
28908       know about.
28909     - Start sending "bootstrap phase" status events to the controller,
28910       so it can keep the user informed of progress fetching directory
28911       information and establishing circuits. Also inform the controller
28912       if we think we're stuck at a particular bootstrap phase. Implements
28913       proposal 137.
28914     - Resume using OpenSSL's RAND_poll() for better (and more portable)
28915       cross-platform entropy collection again. We used to use it, then
28916       stopped using it because of a bug that could crash systems that
28917       called RAND_poll when they had a lot of fds open. It looks like the
28918       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
28919       at startup, and to call RAND_poll() when we reseed later only if
28920       we have a non-buggy OpenSSL version.
28922   o Major bugfixes:
28923     - When we choose to abandon a new entry guard because we think our
28924       older ones might be better, close any circuits pending on that
28925       new entry guard connection. This fix should make us recover much
28926       faster when our network is down and then comes back. Bugfix on
28927       0.1.2.8-beta; found by lodger.
28929   o Memory fixes and improvements:
28930     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
28931       to avoid unused RAM in buffer chunks and memory pools.
28932     - Speed up parsing and cut down on memory fragmentation by using
28933       stack-style allocations for parsing directory objects. Previously,
28934       this accounted for over 40% of allocations from within Tor's code
28935       on a typical directory cache.
28936     - Use a Bloom filter rather than a digest-based set to track which
28937       descriptors we need to keep around when we're cleaning out old
28938       router descriptors. This speeds up the computation significantly,
28939       and may reduce fragmentation.
28940     - Reduce the default smartlist size from 32 to 16; it turns out that
28941       most smartlists hold around 8-12 elements tops.
28942     - Make dumpstats() log the fullness and size of openssl-internal
28943       buffers.
28944     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
28945       patch to their OpenSSL, turn it on to save memory on servers. This
28946       patch will (with any luck) get included in a mainline distribution
28947       before too long.
28948     - Never use OpenSSL compression: it wastes RAM and CPU trying to
28949       compress cells, which are basically all encrypted, compressed,
28950       or both.
28952   o Minor bugfixes:
28953     - Stop reloading the router list from disk for no reason when we
28954       run out of reachable directory mirrors. Once upon a time reloading
28955       it would set the 'is_running' flag back to 1 for them. It hasn't
28956       done that for a long time.
28957     - In very rare situations new hidden service descriptors were
28958       published earlier than 30 seconds after the last change to the
28959       service. (We currently think that a hidden service descriptor
28960       that's been stable for 30 seconds is worth publishing.)
28962   o Minor features:
28963     - Allow separate log levels to be configured for different logging
28964       domains. For example, this allows one to log all notices, warnings,
28965       or errors, plus all memory management messages of level debug or
28966       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
28967     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
28968       and stop using a warning that had become unfixably verbose under
28969       GCC 4.3.
28970     - New --hush command-line option similar to --quiet. While --quiet
28971       disables all logging to the console on startup, --hush limits the
28972       output to messages of warning and error severity.
28973     - Servers support a new URL scheme for consensus downloads that
28974       allows the client to specify which authorities are trusted.
28975       The server then only sends the consensus if the client will trust
28976       it. Otherwise a 404 error is sent back. Clients use this
28977       new scheme when the server supports it (meaning it's running
28978       0.2.1.1-alpha or later). Implements proposal 134.
28979     - New configure/torrc options (--enable-geoip-stats,
28980       DirRecordUsageByCountry) to record how many IPs we've served
28981       directory info to in each country code, how many status documents
28982       total we've sent to each country code, and what share of the total
28983       directory requests we should expect to see.
28984     - Use the TLS1 hostname extension to more closely resemble browser
28985       behavior.
28986     - Lots of new unit tests.
28987     - Add a macro to implement the common pattern of iterating through
28988       two parallel lists in lockstep.
28991 Changes in version 0.2.0.28-rc - 2008-06-13
28992   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
28993   performance bug, and fixes a bunch of smaller bugs.
28995   o Anonymity fixes:
28996     - Fix a bug where, when we were choosing the 'end stream reason' to
28997       put in our relay end cell that we send to the exit relay, Tor
28998       clients on Windows were sometimes sending the wrong 'reason'. The
28999       anonymity problem is that exit relays may be able to guess whether
29000       the client is running Windows, thus helping partition the anonymity
29001       set. Down the road we should stop sending reasons to exit relays,
29002       or otherwise prevent future versions of this bug.
29004   o Major bugfixes:
29005     - While setting up a hidden service, some valid introduction circuits
29006       were overlooked and abandoned. This might be the reason for
29007       the long delay in making a hidden service available. Bugfix on
29008       0.2.0.14-alpha.
29010   o Minor features:
29011     - Update to the "June 9 2008" ip-to-country file.
29012     - Run 'make test' as part of 'make dist', so we stop releasing so
29013       many development snapshots that fail their unit tests.
29015   o Minor bugfixes:
29016     - When we're checking if we have enough dir info for each relay
29017       to begin establishing circuits, make sure that we actually have
29018       the descriptor listed in the consensus, not just any descriptor.
29019       Bugfix on 0.1.2.x.
29020     - Bridge relays no longer print "xx=0" in their extrainfo document
29021       for every single country code in the geoip db. Bugfix on
29022       0.2.0.27-rc.
29023     - Only warn when we fail to load the geoip file if we were planning to
29024       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
29025     - If we change our MaxAdvertisedBandwidth and then reload torrc,
29026       Tor won't realize it should publish a new relay descriptor. Fixes
29027       bug 688, reported by mfr. Bugfix on 0.1.2.x.
29028     - When we haven't had any application requests lately, don't bother
29029       logging that we have expired a bunch of descriptors. Bugfix
29030       on 0.1.2.x.
29031     - Make relay cells written on a connection count as non-padding when
29032       tracking how long a connection has been in use. Bugfix on
29033       0.2.0.1-alpha. Spotted by lodger.
29034     - Fix unit tests in 0.2.0.27-rc.
29035     - Fix compile on Windows.
29038 Changes in version 0.2.0.27-rc - 2008-06-03
29039   Tor 0.2.0.27-rc adds a few features we left out of the earlier
29040   release candidates. In particular, we now include an IP-to-country
29041   GeoIP database, so controllers can easily look up what country a
29042   given relay is in, and so bridge relays can give us some sanitized
29043   summaries about which countries are making use of bridges. (See proposal
29044   126-geoip-fetching.txt for details.)
29046   o Major features:
29047     - Include an IP-to-country GeoIP file in the tarball, so bridge
29048       relays can report sanitized summaries of the usage they're seeing.
29050   o Minor features:
29051     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
29052       Robert Hogan. Fixes the first part of bug 681.
29053     - Make bridge authorities never serve extrainfo docs.
29054     - Add support to detect Libevent versions in the 1.4.x series
29055       on mingw.
29056     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
29057     - Include a new contrib/tor-exit-notice.html file that exit relay
29058       operators can put on their website to help reduce abuse queries.
29060   o Minor bugfixes:
29061     - When tunneling an encrypted directory connection, and its first
29062       circuit fails, do not leave it unattached and ask the controller
29063       to deal. Fixes the second part of bug 681.
29064     - Make bridge authorities correctly expire old extrainfo documents
29065       from time to time.
29068 Changes in version 0.2.0.26-rc - 2008-05-13
29069   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
29070   in Debian's OpenSSL packages. All users running any 0.2.0.x version
29071   should upgrade, whether they're running Debian or not.
29073   o Major security fixes:
29074     - Use new V3 directory authority keys on the tor26, gabelmoo, and
29075       moria1 V3 directory authorities. The old keys were generated with
29076       a vulnerable version of Debian's OpenSSL package, and must be
29077       considered compromised. Other authorities' keys were not generated
29078       with an affected version of OpenSSL.
29080   o Major bugfixes:
29081     - List authority signatures as "unrecognized" based on DirServer
29082       lines, not on cert cache. Bugfix on 0.2.0.x.
29084   o Minor features:
29085     - Add a new V3AuthUseLegacyKey option to make it easier for
29086       authorities to change their identity keys if they have to.
29089 Changes in version 0.2.0.25-rc - 2008-04-23
29090   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
29092   o Major bugfixes:
29093     - Remember to initialize threading before initializing logging.
29094       Otherwise, many BSD-family implementations will crash hard on
29095       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
29097   o Minor bugfixes:
29098     - Authorities correctly free policies on bad servers on
29099       exit. Fixes bug 672. Bugfix on 0.2.0.x.
29102 Changes in version 0.2.0.24-rc - 2008-04-22
29103   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
29104   v3 directory authority, makes relays with dynamic IP addresses and no
29105   DirPort notice more quickly when their IP address changes, fixes a few
29106   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
29108   o New directory authorities:
29109     - Take lefkada out of the list of v3 directory authorities, since
29110       it has been down for months.
29111     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
29112       authority.
29114   o Major bugfixes:
29115     - Detect address changes more quickly on non-directory mirror
29116       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
29118   o Minor features (security):
29119     - Reject requests for reverse-dns lookup of names that are in
29120       a private address space. Patch from lodger.
29121     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
29122       from lodger.
29124   o Minor bugfixes (crashes):
29125     - Avoid a rare assert that can trigger when Tor doesn't have much
29126       directory information yet and it tries to fetch a v2 hidden
29127       service descriptor. Fixes bug 651, reported by nwf.
29128     - Initialize log mutex before initializing dmalloc. Otherwise,
29129       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
29130     - Use recursive pthread mutexes in order to avoid deadlock when
29131       logging debug-level messages to a controller. Bug spotted by nwf,
29132       bugfix on 0.2.0.16-alpha.
29134   o Minor bugfixes (resource management):
29135     - Keep address policies from leaking memory: start their refcount
29136       at 1, not 2. Bugfix on 0.2.0.16-alpha.
29137     - Free authority certificates on exit, so they don't look like memory
29138       leaks. Bugfix on 0.2.0.19-alpha.
29139     - Free static hashtables for policy maps and for TLS connections on
29140       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
29141     - Avoid allocating extra space when computing consensuses on 64-bit
29142       platforms. Bug spotted by aakova.
29144   o Minor bugfixes (misc):
29145     - Do not read the configuration file when we've only been told to
29146       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
29147       based on patch from Sebastian Hahn.
29148     - Exit relays that are used as a client can now reach themselves
29149       using the .exit notation, rather than just launching an infinite
29150       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
29151     - When attempting to open a logfile fails, tell us why.
29152     - Fix a dumb bug that was preventing us from knowing that we should
29153       preemptively build circuits to handle expected directory requests.
29154       Fixes bug 660. Bugfix on 0.1.2.x.
29155     - Warn less verbosely about clock skew from netinfo cells from
29156       untrusted sources. Fixes bug 663.
29157     - Make controller stream events for DNS requests more consistent,
29158       by adding "new stream" events for DNS requests, and removing
29159       spurious "stream closed" events" for cached reverse resolves.
29160       Patch from mwenge. Fixes bug 646.
29161     - Correctly notify one-hop connections when a circuit build has
29162       failed. Possible fix for bug 669. Found by lodger.
29165 Changes in version 0.2.0.23-rc - 2008-03-24
29166   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
29167   makes bootstrapping faster if the first directory mirror you contact
29168   is down. The bundles also include the new Vidalia 0.1.2 release.
29170   o Major bugfixes:
29171     - When a tunneled directory request is made to a directory server
29172       that's down, notice after 30 seconds rather than 120 seconds. Also,
29173       fail any begindir streams that are pending on it, so they can
29174       retry elsewhere. This was causing multi-minute delays on bootstrap.
29177 Changes in version 0.2.0.22-rc - 2008-03-18
29178   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
29179   enables encrypted directory connections by default for non-relays, fixes
29180   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
29181   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
29183   o Major features:
29184     - Enable encrypted directory connections by default for non-relays,
29185       so censor tools that block Tor directory connections based on their
29186       plaintext patterns will no longer work. This means Tor works in
29187       certain censored countries by default again.
29189   o Major bugfixes:
29190     - Make sure servers always request certificates from clients during
29191       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
29192     - Do not enter a CPU-eating loop when a connection is closed in
29193       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
29194       diagnosed by lodger; bugfix on 0.2.0.20-rc.
29195     - Fix assertion failure that could occur when a blocked circuit
29196       became unblocked, and it had pending client DNS requests. Bugfix
29197       on 0.2.0.1-alpha. Fixes bug 632.
29199   o Minor bugfixes (on 0.1.2.x):
29200     - Generate "STATUS_SERVER" events rather than misspelled
29201       "STATUS_SEVER" events. Caught by mwenge.
29202     - When counting the number of bytes written on a TLS connection,
29203       look at the BIO actually used for writing to the network, not
29204       at the BIO used (sometimes) to buffer data for the network.
29205       Looking at different BIOs could result in write counts on the
29206       order of ULONG_MAX. Fixes bug 614.
29207     - On Windows, correctly detect errors when listing the contents of
29208       a directory. Fix from lodger.
29210   o Minor bugfixes (on 0.2.0.x):
29211     - Downgrade "sslv3 alert handshake failure" message to INFO.
29212     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
29213       left BandwidthRate and BandwidthBurst at the default, we would be
29214       silently limited by those defaults. Now raise them to match the
29215       RelayBandwidth* values.
29216     - Fix the SVK version detection logic to work correctly on a branch.
29217     - Make --enable-openbsd-malloc work correctly on Linux with alpha
29218       CPUs. Fixes bug 625.
29219     - Logging functions now check that the passed severity is sane.
29220     - Use proper log levels in the testsuite call of
29221       get_interface_address6().
29222     - When using a nonstandard malloc, do not use the platform values for
29223       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
29224     - Make the openbsd malloc code use 8k pages on alpha CPUs and
29225       16k pages on ia64.
29226     - Detect mismatched page sizes when using --enable-openbsd-malloc.
29227     - Avoid double-marked-for-close warning when certain kinds of invalid
29228       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
29229       for bug 617. Bugfix on 0.2.0.1-alpha.
29230     - Make sure that the "NULL-means-reject *:*" convention is followed by
29231       all the policy manipulation functions, avoiding some possible crash
29232       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
29233     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
29234       actually works, and doesn't warn about every single reverse lookup.
29235       Fixes the other part of bug 617. Bugfix on 0.2.0.1-alpha.
29237   o Minor features:
29238     - Only log guard node status when guard node status has changed.
29239     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
29240       make "INFO" 75% less verbose.
29243 Changes in version 0.2.0.21-rc - 2008-03-02
29244   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
29245   makes Tor work well with Vidalia again, fixes a rare assert bug,
29246   and fixes a pair of more minor bugs. The bundles also include Vidalia
29247   0.1.0 and Torbutton 1.1.16.
29249   o Major bugfixes:
29250     - The control port should declare that it requires password auth
29251       when HashedControlSessionPassword is set too. Patch from Matt Edman;
29252       bugfix on 0.2.0.20-rc. Fixes bug 615.
29253     - Downgrade assert in connection_buckets_decrement() to a log message.
29254       This may help us solve bug 614, and in any case will make its
29255       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
29256     - We were sometimes miscounting the number of bytes read from the
29257       network, causing our rate limiting to not be followed exactly.
29258       Bugfix on 0.2.0.16-alpha. Reported by lodger.
29260   o Minor bugfixes:
29261     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a. All other supported
29262       OpenSSL versions should have been working fine. Diagnosis and patch
29263       from lodger, Karsten Loesing, and Sebastian Hahn. Fixes bug 616.
29264       Bugfix on 0.2.0.20-rc.
29267 Changes in version 0.2.0.20-rc - 2008-02-24
29268   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
29269   makes more progress towards normalizing Tor's TLS handshake, makes
29270   hidden services work better again, helps relays bootstrap if they don't
29271   know their IP address, adds optional support for linking in openbsd's
29272   allocator or tcmalloc, allows really fast relays to scale past 15000
29273   sockets, and fixes a bunch of minor bugs reported by Veracode.
29275   o Major features:
29276     - Enable the revised TLS handshake based on the one designed by
29277       Steven Murdoch in proposal 124, as revised in proposal 130. It
29278       includes version negotiation for OR connections as described in
29279       proposal 105. The new handshake is meant to be harder for censors
29280       to fingerprint, and it adds the ability to detect certain kinds of
29281       man-in-the-middle traffic analysis attacks. The version negotiation
29282       feature will allow us to improve Tor's link protocol more safely
29283       in the future.
29284     - Choose which bridge to use proportional to its advertised bandwidth,
29285       rather than uniformly at random. This should speed up Tor for
29286       bridge users. Also do this for people who set StrictEntryNodes.
29287     - When a TrackHostExits-chosen exit fails too many times in a row,
29288       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
29290   o Major bugfixes:
29291     - Resolved problems with (re-)fetching hidden service descriptors.
29292       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
29293       and 0.2.0.19-alpha.
29294     - If we only ever used Tor for hidden service lookups or posts, we
29295       would stop building circuits and start refusing connections after
29296       24 hours, since we falsely believed that Tor was dormant. Reported
29297       by nwf; bugfix on 0.1.2.x.
29298     - Servers that don't know their own IP address should go to the
29299       authorities for their first directory fetch, even if their DirPort
29300       is off or if they don't know they're reachable yet. This will help
29301       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
29302     - When counting the number of open sockets, count not only the number
29303       of sockets we have received from the socket() call, but also
29304       the number we've gotten from accept() and socketpair(). This bug
29305       made us fail to count all sockets that we were using for incoming
29306       connections. Bugfix on 0.2.0.x.
29307     - Fix code used to find strings within buffers, when those strings
29308       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
29309     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
29310     - Add a new __HashedControlSessionPassword option for controllers
29311       to use for one-off session password hashes that shouldn't get
29312       saved to disk by SAVECONF --- Vidalia users were accumulating a
29313       pile of HashedControlPassword lines in their torrc files, one for
29314       each time they had restarted Tor and then clicked Save. Make Tor
29315       automatically convert "HashedControlPassword" to this new option but
29316       only when it's given on the command line. Partial fix for bug 586.
29318   o Minor features (performance):
29319     - Tune parameters for cell pool allocation to minimize amount of
29320       RAM overhead used.
29321     - Add OpenBSD malloc code from phk as an optional malloc
29322       replacement on Linux: some glibc libraries do very poorly
29323       with Tor's memory allocation patterns. Pass
29324       --enable-openbsd-malloc to get the replacement malloc code.
29325     - Add a --with-tcmalloc option to the configure script to link
29326       against tcmalloc (if present). Does not yet search for
29327       non-system include paths.
29328     - Stop imposing an arbitrary maximum on the number of file descriptors
29329       used for busy servers. Bug reported by Olaf Selke; patch from
29330       Sebastian Hahn.
29332   o Minor features (other):
29333     - When SafeLogging is disabled, log addresses along with all TLS
29334       errors.
29335     - When building with --enable-gcc-warnings, check for whether Apple's
29336       warning "-Wshorten-64-to-32" is available.
29337     - Add a --passphrase-fd argument to the tor-gencert command for
29338       scriptability.
29340   o Minor bugfixes (memory leaks and code problems):
29341     - We were leaking a file descriptor if Tor started with a zero-length
29342       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
29343     - Detect size overflow in zlib code. Reported by Justin Ferguson and
29344       Dan Kaminsky.
29345     - We were comparing the raw BridgePassword entry with a base64'ed
29346       version of it, when handling a "/tor/networkstatus-bridges"
29347       directory request. Now compare correctly. Noticed by Veracode.
29348     - Recover from bad tracked-since value in MTBF-history file.
29349       Should fix bug 537.
29350     - Alter the code that tries to recover from unhandled write
29351       errors, to not try to flush onto a socket that's given us
29352       unhandled errors. Bugfix on 0.1.2.x.
29353     - Make Unix controlsockets work correctly on OpenBSD. Patch from
29354       tup. Bugfix on 0.2.0.3-alpha.
29356   o Minor bugfixes (other):
29357     - If we have an extra-info document for our server, always make
29358       it available on the control port, even if we haven't gotten
29359       a copy of it from an authority yet. Patch from mwenge.
29360     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
29361     - Directory mirrors no longer include a guess at the client's IP
29362       address if the connection appears to be coming from the same /24
29363       network; it was producing too many wrong guesses.
29364     - Make the new hidden service code respect the SafeLogging setting.
29365       Bugfix on 0.2.0.x. Patch from Karsten.
29366     - When starting as an authority, do not overwrite all certificates
29367       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
29368     - If we're trying to flush the last bytes on a connection (for
29369       example, when answering a directory request), reset the
29370       time-to-give-up timeout every time we manage to write something
29371       on the socket. Bugfix on 0.1.2.x.
29372     - Change the behavior of "getinfo status/good-server-descriptor"
29373       so it doesn't return failure when any authority disappears.
29374     - Even though the man page said that "TrackHostExits ." should
29375       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
29376     - Report TLS "zero return" case as a "clean close" and "IO error"
29377       as a "close". Stop calling closes "unexpected closes": existing
29378       Tors don't use SSL_close(), so having a connection close without
29379       the TLS shutdown handshake is hardly unexpected.
29380     - Send NAMESERVER_STATUS messages for a single failed nameserver
29381       correctly.
29383   o Code simplifications and refactoring:
29384     - Remove the tor_strpartition function: its logic was confused,
29385       and it was only used for one thing that could be implemented far
29386       more easily.
29389 Changes in version 0.2.0.19-alpha - 2008-02-09
29390   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
29391   handshake, makes path selection for relays more secure and IP address
29392   guessing more robust, and generally fixes a lot of bugs in preparation
29393   for calling the 0.2.0 branch stable.
29395   o Major features:
29396     - Do not include recognizeable strings in the commonname part of
29397       Tor's x509 certificates.
29399   o Major bugfixes:
29400     - If we're a relay, avoid picking ourselves as an introduction point,
29401       a rendezvous point, or as the final hop for internal circuits. Bug
29402       reported by taranis and lodger. Bugfix on 0.1.2.x.
29403     - Patch from "Andrew S. Lists" to catch when we contact a directory
29404       mirror at IP address X and he says we look like we're coming from
29405       IP address X. Bugfix on 0.1.2.x.
29407   o Minor features (security):
29408     - Be more paranoid about overwriting sensitive memory on free(),
29409       as a defensive programming tactic to ensure forward secrecy.
29411   o Minor features (directory authority):
29412     - Actually validate the options passed to AuthDirReject,
29413       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
29414     - Reject router descriptors with out-of-range bandwidthcapacity or
29415       bandwidthburst values.
29417   o Minor features (controller):
29418     - Reject controller commands over 1MB in length. This keeps rogue
29419       processes from running us out of memory.
29421   o Minor features (misc):
29422     - Give more descriptive well-formedness errors for out-of-range
29423       hidden service descriptor/protocol versions.
29424     - Make memory debugging information describe more about history
29425       of cell allocation, so we can help reduce our memory use.
29427   o Deprecated features (controller):
29428     - The status/version/num-versioning and status/version/num-concurring
29429       GETINFO options are no longer useful in the v3 directory protocol:
29430       treat them as deprecated, and warn when they're used.
29432   o Minor bugfixes:
29433     - When our consensus networkstatus has been expired for a while, stop
29434       being willing to build circuits using it. Fixes bug 401. Bugfix
29435       on 0.1.2.x.
29436     - Directory caches now fetch certificates from all authorities
29437       listed in a networkstatus consensus, even when they do not
29438       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
29439     - When connecting to a bridge without specifying its key, insert
29440       the connection into the identity-to-connection map as soon as
29441       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
29442     - Detect versions of OS X where malloc_good_size() is present in the
29443       library but never actually declared. Resolves bug 587. Bugfix
29444       on 0.2.0.x.
29445     - Stop incorrectly truncating zlib responses to directory authority
29446       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
29447     - Stop recommending that every server operator send mail to tor-ops.
29448       Resolves bug 597. Bugfix on 0.1.2.x.
29449     - Don't trigger an assert if we start a directory authority with a
29450       private IP address (like 127.0.0.1).
29451     - Avoid possible failures when generating a directory with routers
29452       with over-long versions strings, or too many flags set. Bugfix
29453       on 0.1.2.x.
29454     - If an attempt to launch a DNS resolve request over the control
29455       port fails because we have overrun the limit on the number of
29456       connections, tell the controller that the request has failed.
29457     - Avoid using too little bandwidth when our clock skips a few
29458       seconds. Bugfix on 0.1.2.x.
29459     - Fix shell error when warning about missing packages in configure
29460       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
29461     - Do not become confused when receiving a spurious VERSIONS-like
29462       cell from a confused v1 client. Bugfix on 0.2.0.x.
29463     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
29464       introduction points for a hidden service have failed. Patch from
29465       Karsten Loesing. Bugfix on 0.2.0.x.
29467   o Code simplifications and refactoring:
29468     - Remove some needless generality from cpuworker code, for improved
29469       type-safety.
29470     - Stop overloading the circuit_t.onionskin field for both "onionskin
29471       from a CREATE cell that we are waiting for a cpuworker to be
29472       assigned" and "onionskin from an EXTEND cell that we are going to
29473       send to an OR as soon as we are connected". Might help with bug 600.
29474     - Add an in-place version of aes_crypt() so that we can avoid doing a
29475       needless memcpy() call on each cell payload.
29478 Changes in version 0.2.0.18-alpha - 2008-01-25
29479   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
29480   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
29481   that can warn or reject connections to ports generally associated with
29482   vulnerable-plaintext protocols.
29484   o New directory authorities:
29485     - Set up dannenberg (run by CCC) as the sixth v3 directory
29486       authority.
29488   o Major bugfixes:
29489     - Fix a major memory leak when attempting to use the v2 TLS
29490       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
29491     - We accidentally enabled the under-development v2 TLS handshake
29492       code, which was causing log entries like "TLS error while
29493       renegotiating handshake". Disable it again. Resolves bug 590.
29494     - We were computing the wrong Content-Length: header for directory
29495       responses that need to be compressed on the fly, causing clients
29496       asking for those items to always fail. Bugfix on 0.2.0.x; partially
29497       fixes bug 593.
29499   o Major features:
29500     - Avoid going directly to the directory authorities even if you're a
29501       relay, if you haven't found yourself reachable yet or if you've
29502       decided not to advertise your dirport yet. Addresses bug 556.
29503     - If we've gone 12 hours since our last bandwidth check, and we
29504       estimate we have less than 50KB bandwidth capacity but we could
29505       handle more, do another bandwidth test.
29506     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
29507       Tor can warn and/or refuse connections to ports commonly used with
29508       vulnerable-plaintext protocols. Currently we warn on ports 23,
29509       109, 110, and 143, but we don't reject any.
29511   o Minor bugfixes:
29512     - When we setconf ClientOnly to 1, close any current OR and Dir
29513       listeners. Reported by mwenge.
29514     - When we get a consensus that's been signed by more people than
29515       we expect, don't log about it; it's not a big deal. Reported
29516       by Kyle Williams.
29518   o Minor features:
29519     - Don't answer "/tor/networkstatus-bridges" directory requests if
29520       the request isn't encrypted.
29521     - Make "ClientOnly 1" config option disable directory ports too.
29522     - Patches from Karsten Loesing to make v2 hidden services more
29523       robust: work even when there aren't enough HSDir relays available;
29524       retry when a v2 rend desc fetch fails; but don't retry if we
29525       already have a usable v0 rend desc.
29528 Changes in version 0.2.0.17-alpha - 2008-01-17
29529   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
29531   o Compile fixes:
29532     - Make the tor-gencert man page get included correctly in the tarball.
29535 Changes in version 0.2.0.16-alpha - 2008-01-17
29536   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
29537   Loesing, and generally cleans up a lot of features and minor bugs.
29539   o New directory authorities:
29540     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
29541       authority.
29543   o Major performance improvements:
29544     - Switch our old ring buffer implementation for one more like that
29545       used by free Unix kernels. The wasted space in a buffer with 1mb
29546       of data will now be more like 8k than 1mb. The new implementation
29547       also avoids realloc();realloc(); patterns that can contribute to
29548       memory fragmentation.
29550   o Minor features:
29551     - Configuration files now accept C-style strings as values. This
29552       helps encode characters not allowed in the current configuration
29553       file format, such as newline or #. Addresses bug 557.
29554     - Although we fixed bug 539 (where servers would send HTTP status 503
29555       responses _and_ send a body too), there are still servers out
29556       there that haven't upgraded. Therefore, make clients parse such
29557       bodies when they receive them.
29558     - When we're not serving v2 directory information, there is no reason
29559       to actually keep any around. Remove the obsolete files and directory
29560       on startup if they are very old and we aren't going to serve them.
29562   o Minor performance improvements:
29563     - Reference-count and share copies of address policy entries; only 5%
29564       of them were actually distinct.
29565     - Never walk through the list of logs if we know that no log is
29566       interested in a given message.
29568   o Minor bugfixes:
29569     - When an authority has not signed a consensus, do not try to
29570       download a nonexistent "certificate with key 00000000". Bugfix
29571       on 0.2.0.x. Fixes bug 569.
29572     - Fix a rare assert error when we're closing one of our threads:
29573       use a mutex to protect the list of logs, so we never write to the
29574       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
29575       bug 575, which is kind of the revenge of bug 222.
29576     - Patch from Karsten Loesing to complain less at both the client
29577       and the relay when a relay used to have the HSDir flag but doesn't
29578       anymore, and we try to upload a hidden service descriptor.
29579     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
29580       0.2.0.15-alpha.
29581     - Do not try to download missing certificates until we have tried
29582       to check our fallback consensus. Fixes bug 583.
29583     - Make bridges round reported GeoIP stats info up to the nearest
29584       estimate, not down. Now we can distinguish between "0 people from
29585       this country" and "1 person from this country".
29586     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
29587     - Avoid possible segfault if key generation fails in
29588       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
29589     - Avoid segfault in the case where a badly behaved v2 versioning
29590       directory sends a signed networkstatus with missing client-versions.
29591       Bugfix on 0.1.2.
29592     - Avoid segfaults on certain complex invocations of
29593       router_get_by_hexdigest(). Bugfix on 0.1.2.
29594     - Correct bad index on array access in parse_http_time(). Bugfix
29595       on 0.2.0.
29596     - Fix possible bug in vote generation when server versions are present
29597       but client versions are not.
29598     - Fix rare bug on REDIRECTSTREAM control command when called with no
29599       port set: it could erroneously report an error when none had
29600       happened.
29601     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
29602       compressing large objects and find ourselves with more than 4k
29603       left over. Bugfix on 0.2.0.
29604     - Fix a small memory leak when setting up a hidden service.
29605     - Fix a few memory leaks that could in theory happen under bizarre
29606       error conditions.
29607     - Fix an assert if we post a general-purpose descriptor via the
29608       control port but that descriptor isn't mentioned in our current
29609       network consensus. Bug reported by Jon McLachlan; bugfix on
29610       0.2.0.9-alpha.
29612   o Minor features (controller):
29613     - Get NS events working again. Patch from tup.
29614     - The GETCONF command now escapes and quotes configuration values
29615       that don't otherwise fit into the torrc file.
29616     - The SETCONF command now handles quoted values correctly.
29618   o Minor features (directory authorities):
29619     - New configuration options to override default maximum number of
29620       servers allowed on a single IP address. This is important for
29621       running a test network on a single host.
29622     - Actually implement the -s option to tor-gencert.
29623     - Add a manual page for tor-gencert.
29625   o Minor features (bridges):
29626     - Bridge authorities no longer serve bridge descriptors over
29627       unencrypted connections.
29629   o Minor features (other):
29630     - Add hidden services and DNSPorts to the list of things that make
29631       Tor accept that it has running ports. Change starting Tor with no
29632       ports from a fatal error to a warning; we might change it back if
29633       this turns out to confuse anybody. Fixes bug 579.
29636 Changes in version 0.1.2.19 - 2008-01-17
29637   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
29638   exit policy a little bit more conservative so it's safer to run an
29639   exit relay on a home system, and fixes a variety of smaller issues.
29641   o Security fixes:
29642     - Exit policies now reject connections that are addressed to a
29643       relay's public (external) IP address too, unless
29644       ExitPolicyRejectPrivate is turned off. We do this because too
29645       many relays are running nearby to services that trust them based
29646       on network address.
29648   o Major bugfixes:
29649     - When the clock jumps forward a lot, do not allow the bandwidth
29650       buckets to become negative. Fixes bug 544.
29651     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
29652       on every successful resolve. Reported by Mike Perry.
29653     - Purge old entries from the "rephist" database and the hidden
29654       service descriptor database even when DirPort is zero.
29655     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
29656       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
29657       crashing or mis-answering these requests.
29658     - When we decide to send a 503 response to a request for servers, do
29659       not then also send the server descriptors: this defeats the whole
29660       purpose. Fixes bug 539.
29662   o Minor bugfixes:
29663     - Changing the ExitPolicyRejectPrivate setting should cause us to
29664       rebuild our server descriptor.
29665     - Fix handling of hex nicknames when answering controller requests for
29666       networkstatus by name, or when deciding whether to warn about
29667       unknown routers in a config option. (Patch from mwenge.)
29668     - Fix a couple of hard-to-trigger autoconf problems that could result
29669       in really weird results on platforms whose sys/types.h files define
29670       nonstandard integer types.
29671     - Don't try to create the datadir when running --verify-config or
29672       --hash-password. Resolves bug 540.
29673     - If we were having problems getting a particular descriptor from the
29674       directory caches, and then we learned about a new descriptor for
29675       that router, we weren't resetting our failure count. Reported
29676       by lodger.
29677     - Although we fixed bug 539 (where servers would send HTTP status 503
29678       responses _and_ send a body too), there are still servers out there
29679       that haven't upgraded. Therefore, make clients parse such bodies
29680       when they receive them.
29681     - Run correctly on systems where rlim_t is larger than unsigned long.
29682       This includes some 64-bit systems.
29683     - Run correctly on platforms (like some versions of OS X 10.5) where
29684       the real limit for number of open files is OPEN_FILES, not rlim_max
29685       from getrlimit(RLIMIT_NOFILES).
29686     - Avoid a spurious free on base64 failure.
29687     - Avoid segfaults on certain complex invocations of
29688       router_get_by_hexdigest().
29689     - Fix rare bug on REDIRECTSTREAM control command when called with no
29690       port set: it could erroneously report an error when none had
29691       happened.
29694 Changes in version 0.2.0.15-alpha - 2007-12-25
29695   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
29696   features added in 0.2.0.13-alpha.
29698   o Major bugfixes:
29699     - Fix several remotely triggerable asserts based on DirPort requests
29700       for a v2 or v3 networkstatus object before we were prepared. This
29701       was particularly bad for 0.2.0.13 and later bridge relays, who
29702       would never have a v2 networkstatus and would thus always crash
29703       when used. Bugfixes on 0.2.0.x.
29704     - Estimate the v3 networkstatus size more accurately, rather than
29705       estimating it at zero bytes and giving it artificially high priority
29706       compared to other directory requests. Bugfix on 0.2.0.x.
29708   o Minor bugfixes:
29709     - Fix configure.in logic for cross-compilation.
29710     - When we load a bridge descriptor from the cache, and it was
29711       previously unreachable, mark it as retriable so we won't just
29712       ignore it. Also, try fetching a new copy immediately. Bugfixes
29713       on 0.2.0.13-alpha.
29714     - The bridge GeoIP stats were counting other relays, for example
29715       self-reachability and authority-reachability tests.
29717   o Minor features:
29718     - Support compilation to target iPhone; patch from cjacker huang.
29719       To build for iPhone, pass the --enable-iphone option to configure.
29722 Changes in version 0.2.0.14-alpha - 2007-12-23
29723   o Major bugfixes:
29724     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
29725       without a datadirectory from a previous Tor install. Reported
29726       by Zax.
29727     - Fix a crash when we fetch a descriptor that turns out to be
29728       unexpected (it used to be in our networkstatus when we started
29729       fetching it, but it isn't in our current networkstatus), and we
29730       aren't using bridges. Bugfix on 0.2.0.x.
29731     - Fix a crash when accessing hidden services: it would work the first
29732       time you use a given introduction point for your service, but
29733       on subsequent requests we'd be using garbage memory. Fixed by
29734       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
29735     - Fix a crash when we load a bridge descriptor from disk but we don't
29736       currently have a Bridge line for it in our torrc. Bugfix on
29737       0.2.0.13-alpha.
29739   o Major features:
29740     - If bridge authorities set BridgePassword, they will serve a
29741       snapshot of known bridge routerstatuses from their DirPort to
29742       anybody who knows that password. Unset by default.
29744   o Minor bugfixes:
29745     - Make the unit tests build again.
29746     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
29747     - Make PublishServerDescriptor default to 1, so the default doesn't
29748       have to change as we invent new directory protocol versions.
29749     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
29750       be included unless sys/time.h is already included. Fixes
29751       bug 553. Bugfix on 0.2.0.x.
29752     - If we receive a general-purpose descriptor and then receive an
29753       identical bridge-purpose descriptor soon after, don't discard
29754       the next one as a duplicate.
29756   o Minor features:
29757     - If BridgeRelay is set to 1, then the default for
29758       PublishServerDescriptor is now "bridge" rather than "v2,v3".
29759     - If the user sets RelayBandwidthRate but doesn't set
29760       RelayBandwidthBurst, then make them equal rather than erroring out.
29763 Changes in version 0.2.0.13-alpha - 2007-12-21
29764   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
29765   Goodell, fixes many more bugs, and adds a lot of infrastructure for
29766   upcoming features.
29768   o New directory authorities:
29769     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
29770       authority.
29772   o Major bugfixes:
29773     - Only update guard status (usable / not usable) once we have
29774       enough directory information. This was causing us to always pick
29775       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
29776       causing us to discard all our guards on startup if we hadn't been
29777       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
29778     - Purge old entries from the "rephist" database and the hidden
29779       service descriptor databases even when DirPort is zero. Bugfix
29780       on 0.1.2.x.
29781     - We were ignoring our RelayBandwidthRate for the first 30 seconds
29782       after opening a circuit -- even a relayed circuit. Bugfix on
29783       0.2.0.3-alpha.
29784     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
29785       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
29786       crashing or mis-answering these types of requests.
29787     - Relays were publishing their server descriptor to v1 and v2
29788       directory authorities, but they didn't try publishing to v3-only
29789       authorities. Fix this; and also stop publishing to v1 authorities.
29790       Bugfix on 0.2.0.x.
29791     - When we were reading router descriptors from cache, we were ignoring
29792       the annotations -- so for example we were reading in bridge-purpose
29793       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
29794     - When we decided to send a 503 response to a request for servers, we
29795       were then also sending the server descriptors: this defeats the
29796       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
29798   o Major features:
29799     - Bridge relays now behave like clients with respect to time
29800       intervals for downloading new consensus documents -- otherwise they
29801       stand out. Bridge users now wait until the end of the interval,
29802       so their bridge relay will be sure to have a new consensus document.
29803     - Three new config options (AlternateDirAuthority,
29804       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
29805       user selectively replace the default directory authorities by type,
29806       rather than the all-or-nothing replacement that DirServer offers.
29807     - Tor can now be configured to read a GeoIP file from disk in one
29808       of two formats. This can be used by controllers to map IP addresses
29809       to countries. Eventually, it may support exit-by-country.
29810     - When possible, bridge relays remember which countries users
29811       are coming from, and report aggregate information in their
29812       extra-info documents, so that the bridge authorities can learn
29813       where Tor is blocked.
29814     - Bridge directory authorities now do reachability testing on the
29815       bridges they know. They provide router status summaries to the
29816       controller via "getinfo ns/purpose/bridge", and also dump summaries
29817       to a file periodically.
29818     - Stop fetching directory info so aggressively if your DirPort is
29819       on but your ORPort is off; stop fetching v2 dir info entirely.
29820       You can override these choices with the new FetchDirInfoEarly
29821       config option.
29823   o Minor bugfixes:
29824     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
29825       consensus documents when there are too many relays at a single
29826       IP address. Now clear it in v2 network status documents too, and
29827       also clear it in routerinfo_t when the relay is no longer listed
29828       in the relevant networkstatus document.
29829     - Don't crash if we get an unexpected value for the
29830       PublishServerDescriptor config option. Reported by Matt Edman;
29831       bugfix on 0.2.0.9-alpha.
29832     - Our new v2 hidden service descriptor format allows descriptors
29833       that have no introduction points. But Tor crashed when we tried
29834       to build a descriptor with no intro points (and it would have
29835       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
29836       by Karsten Loesing.
29837     - Fix building with dmalloc 5.5.2 with glibc.
29838     - Reject uploaded descriptors and extrainfo documents if they're
29839       huge. Otherwise we'll cache them all over the network and it'll
29840       clog everything up. Reported by Aljosha Judmayer.
29841     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
29842       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
29843     - When the DANGEROUS_VERSION controller status event told us we're
29844       running an obsolete version, it used the string "OLD" to describe
29845       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
29846       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
29847     - If we can't expand our list of entry guards (e.g. because we're
29848       using bridges or we have StrictEntryNodes set), don't mark relays
29849       down when they fail a directory request. Otherwise we're too quick
29850       to mark all our entry points down. Bugfix on 0.1.2.x.
29851     - Fix handling of hex nicknames when answering controller requests for
29852       networkstatus by name, or when deciding whether to warn about unknown
29853       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
29854     - Fix a couple of hard-to-trigger autoconf problems that could result
29855       in really weird results on platforms whose sys/types.h files define
29856       nonstandard integer types. Bugfix on 0.1.2.x.
29857     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
29858     - Don't crash on name lookup when we have no current consensus. Fixes
29859       bug 538; bugfix on 0.2.0.x.
29860     - Only Tors that want to mirror the v2 directory info should
29861       create the "cached-status" directory in their datadir. (All Tors
29862       used to create it.) Bugfix on 0.2.0.9-alpha.
29863     - Directory authorities should only automatically download Extra Info
29864       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
29866   o Minor features:
29867     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
29868       consumers. (We already do this on HUP.)
29869     - Authorities and caches fetch the v2 networkstatus documents
29870       less often, now that v3 is encouraged.
29871     - Add a new config option BridgeRelay that specifies you want to
29872       be a bridge relay. Right now the only difference is that it makes
29873       you answer begin_dir requests, and it makes you cache dir info,
29874       even if your DirPort isn't on.
29875     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
29876       ask about source, timestamp of arrival, purpose, etc. We need
29877       something like this to help Vidalia not do GeoIP lookups on bridge
29878       addresses.
29879     - Allow multiple HashedControlPassword config lines, to support
29880       multiple controller passwords.
29881     - Authorities now decide whether they're authoritative for a given
29882       router based on the router's purpose.
29883     - New config options AuthDirBadDir and AuthDirListBadDirs for
29884       authorities to mark certain relays as "bad directories" in the
29885       networkstatus documents. Also supports the "!baddir" directive in
29886       the approved-routers file.
29889 Changes in version 0.2.0.12-alpha - 2007-11-16
29890   This twelfth development snapshot fixes some more build problems as
29891   well as a few minor bugs.
29893   o Compile fixes:
29894     - Make it build on OpenBSD again. Patch from tup.
29895     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
29896       package-building for Red Hat, OS X, etc.
29898   o Minor bugfixes (on 0.1.2.x):
29899     - Changing the ExitPolicyRejectPrivate setting should cause us to
29900       rebuild our server descriptor.
29902   o Minor bugfixes (on 0.2.0.x):
29903     - When we're lacking a consensus, don't try to perform rendezvous
29904       operations. Reported by Karsten Loesing.
29905     - Fix a small memory leak whenever we decide against using a
29906       newly picked entry guard. Reported by Mike Perry.
29907     - When authorities detected more than two relays running on the same
29908       IP address, they were clearing all the status flags but forgetting
29909       to clear the "hsdir" flag. So clients were being told that a
29910       given relay was the right choice for a v2 hsdir lookup, yet they
29911       never had its descriptor because it was marked as 'not running'
29912       in the consensus.
29913     - If we're trying to fetch a bridge descriptor and there's no way
29914       the bridge authority could help us (for example, we don't know
29915       a digest, or there is no bridge authority), don't be so eager to
29916       fall back to asking the bridge authority.
29917     - If we're using bridges or have strictentrynodes set, and our
29918       chosen exit is in the same family as all our bridges/entry guards,
29919       then be flexible about families.
29921   o Minor features:
29922     - When we negotiate a v2 link-layer connection (not yet implemented),
29923       accept RELAY_EARLY cells and turn them into RELAY cells if we've
29924       negotiated a v1 connection for their next step. Initial code for
29925       proposal 110.
29928 Changes in version 0.2.0.11-alpha - 2007-11-12
29929   This eleventh development snapshot fixes some build problems with
29930   the previous snapshot. It also includes a more secure-by-default exit
29931   policy for relays, fixes an enormous memory leak for exit relays, and
29932   fixes another bug where servers were falling out of the directory list.
29934   o Security fixes:
29935     - Exit policies now reject connections that are addressed to a
29936       relay's public (external) IP address too, unless
29937       ExitPolicyRejectPrivate is turned off. We do this because too
29938       many relays are running nearby to services that trust them based
29939       on network address. Bugfix on 0.1.2.x.
29941   o Major bugfixes:
29942     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
29943       on every successful resolve. Reported by Mike Perry; bugfix
29944       on 0.1.2.x.
29945     - On authorities, never downgrade to old router descriptors simply
29946       because they're listed in the consensus. This created a catch-22
29947       where we wouldn't list a new descriptor because there was an
29948       old one in the consensus, and we couldn't get the new one in the
29949       consensus because we wouldn't list it. Possible fix for bug 548.
29950       Also, this might cause bug 543 to appear on authorities; if so,
29951       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
29953   o Packaging fixes on 0.2.0.10-alpha:
29954     - We were including instructions about what to do with the
29955       src/config/fallback-consensus file, but we weren't actually
29956       including it in the tarball. Disable all of that for now.
29958   o Minor features:
29959     - Allow people to say PreferTunnelledDirConns rather than
29960       PreferTunneledDirConns, for those alternate-spellers out there.
29962   o Minor bugfixes:
29963     - Don't reevaluate all the information from our consensus document
29964       just because we've downloaded a v2 networkstatus that we intend
29965       to cache. Fixes bug 545; bugfix on 0.2.0.x.
29968 Changes in version 0.2.0.10-alpha - 2007-11-10
29969   This tenth development snapshot adds a third v3 directory authority
29970   run by Mike Perry, adds most of Karsten Loesing's new hidden service
29971   descriptor format, fixes a bad crash bug and new bridge bugs introduced
29972   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
29973   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
29974   addresses many more minor issues.
29976   o New directory authorities:
29977     - Set up ides (run by Mike Perry) as the third v3 directory authority.
29979   o Major features:
29980     - Allow tunnelled directory connections to ask for an encrypted
29981       "begin_dir" connection or an anonymized "uses a full Tor circuit"
29982       connection independently. Now we can make anonymized begin_dir
29983       connections for (e.g.) more secure hidden service posting and
29984       fetching.
29985     - More progress on proposal 114: code from Karsten Loesing to
29986       implement new hidden service descriptor format.
29987     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
29988       accommodate the growing number of servers that use the default
29989       and are reaching it.
29990     - Directory authorities use a new formula for selecting which nodes
29991       to advertise as Guards: they must be in the top 7/8 in terms of
29992       how long we have known about them, and above the median of those
29993       nodes in terms of weighted fractional uptime.
29994     - Make "not enough dir info yet" warnings describe *why* Tor feels
29995       it doesn't have enough directory info yet.
29997   o Major bugfixes:
29998     - Stop servers from crashing if they set a Family option (or
29999       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
30000       by Fabian Keil.
30001     - Make bridge users work again -- the move to v3 directories in
30002       0.2.0.9-alpha had introduced a number of bugs that made bridges
30003       no longer work for clients.
30004     - When the clock jumps forward a lot, do not allow the bandwidth
30005       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
30007   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
30008     - When the consensus lists a router descriptor that we previously were
30009       mirroring, but that we considered non-canonical, reload the
30010       descriptor as canonical. This fixes bug 543 where Tor servers
30011       would start complaining after a few days that they don't have
30012       enough directory information to build a circuit.
30013     - Consider replacing the current consensus when certificates arrive
30014       that make the pending consensus valid. Previously, we were only
30015       considering replacement when the new certs _didn't_ help.
30016     - Fix an assert error on startup if we didn't already have the
30017       consensus and certs cached in our datadirectory: we were caching
30018       the consensus in consensus_waiting_for_certs but then free'ing it
30019       right after.
30020     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
30021       Request) if we need more v3 certs but we've already got pending
30022       requests for all of them.
30023     - Correctly back off from failing certificate downloads. Fixes
30024       bug 546.
30025     - Authorities don't vote on the Running flag if they have been running
30026       for less than 30 minutes themselves. Fixes bug 547, where a newly
30027       started authority would vote that everyone was down.
30029   o New requirements:
30030     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
30031       it, it had no AES, and it hasn't seen any security patches since
30032       2004.
30034   o Minor features:
30035     - Clients now hold circuitless TLS connections open for 1.5 times
30036       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
30037       rebuild a new circuit over them within that timeframe. Previously,
30038       they held them open only for KeepalivePeriod (5 minutes).
30039     - Use "If-Modified-Since" to avoid retrieving consensus
30040       networkstatuses that we already have.
30041     - When we have no consensus, check FallbackNetworkstatusFile (defaults
30042       to $PREFIX/share/tor/fallback-consensus) for a consensus. This way
30043       we start knowing some directory caches.
30044     - When we receive a consensus from the future, warn about skew.
30045     - Improve skew reporting: try to give the user a better log message
30046       about how skewed they are, and how much this matters.
30047     - When we have a certificate for an authority, believe that
30048       certificate's claims about the authority's IP address.
30049     - New --quiet command-line option to suppress the default console log.
30050       Good in combination with --hash-password.
30051     - Authorities send back an X-Descriptor-Not-New header in response to
30052       an accepted-but-discarded descriptor upload. Partially implements
30053       fix for bug 535.
30054     - Make the log message for "tls error. breaking." more useful.
30055     - Better log messages about certificate downloads, to attempt to
30056       track down the second incarnation of bug 546.
30058   o Minor features (bridges):
30059     - If bridge users set UpdateBridgesFromAuthority, but the digest
30060       they ask for is a 404 from the bridge authority, they now fall
30061       back to trying the bridge directly.
30062     - Bridges now use begin_dir to publish their server descriptor to
30063       the bridge authority, even when they haven't set TunnelDirConns.
30065   o Minor features (controller):
30066     - When reporting clock skew, and we know that the clock is _at least
30067       as skewed_ as some value, but we don't know the actual value,
30068       report the value as a "minimum skew."
30070   o Utilities:
30071     - Update linux-tor-prio.sh script to allow QoS based on the uid of
30072       the Tor process. Patch from Marco Bonetti with tweaks from Mike
30073       Perry.
30075   o Minor bugfixes:
30076     - Refuse to start if both ORPort and UseBridges are set. Bugfix
30077       on 0.2.0.x, suggested by Matt Edman.
30078     - Don't stop fetching descriptors when FetchUselessDescriptors is
30079       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
30080       reported by tup and ioerror.
30081     - Better log message on vote from unknown authority.
30082     - Don't log "Launching 0 request for 0 router" message.
30084   o Minor bugfixes (memory leaks):
30085     - Stop leaking memory every time we parse a v3 certificate. Bugfix
30086       on 0.2.0.1-alpha.
30087     - Stop leaking memory every time we load a v3 certificate. Bugfix
30088       on 0.2.0.1-alpha. Fixes bug 536.
30089     - Stop leaking a cached networkstatus on exit. Bugfix on
30090       0.2.0.3-alpha.
30091     - Stop leaking voter information every time we free a consensus.
30092       Bugfix on 0.2.0.3-alpha.
30093     - Stop leaking signed data every time we check a voter signature.
30094       Bugfix on 0.2.0.3-alpha.
30095     - Stop leaking a signature every time we fail to parse a consensus or
30096       a vote. Bugfix on 0.2.0.3-alpha.
30097     - Stop leaking v2_download_status_map on shutdown. Bugfix on
30098       0.2.0.9-alpha.
30099     - Stop leaking conn->nickname every time we make a connection to a
30100       Tor relay without knowing its expected identity digest (e.g. when
30101       using bridges). Bugfix on 0.2.0.3-alpha.
30103   - Minor bugfixes (portability):
30104     - Run correctly on platforms where rlim_t is larger than unsigned
30105       long, and/or where the real limit for number of open files is
30106       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
30107       particular, these may be needed for OS X 10.5.
30110 Changes in version 0.1.2.18 - 2007-10-28
30111   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
30112   hidden service introduction that were causing huge delays, and a big
30113   bug that was causing some servers to disappear from the network status
30114   lists for a few hours each day.
30116   o Major bugfixes (crashes):
30117     - If a connection is shut down abruptly because of something that
30118       happened inside connection_flushed_some(), do not call
30119       connection_finished_flushing(). Should fix bug 451:
30120       "connection_stop_writing: Assertion conn->write_event failed"
30121       Bugfix on 0.1.2.7-alpha.
30122     - Fix possible segfaults in functions called from
30123       rend_process_relay_cell().
30125   o Major bugfixes (hidden services):
30126     - Hidden services were choosing introduction points uniquely by
30127       hexdigest, but when constructing the hidden service descriptor
30128       they merely wrote the (potentially ambiguous) nickname.
30129     - Clients now use the v2 intro format for hidden service
30130       connections: they specify their chosen rendezvous point by identity
30131       digest rather than by (potentially ambiguous) nickname. These
30132       changes could speed up hidden service connections dramatically.
30134   o Major bugfixes (other):
30135     - Stop publishing a new server descriptor just because we get a
30136       HUP signal. This led (in a roundabout way) to some servers getting
30137       dropped from the networkstatus lists for a few hours each day.
30138     - When looking for a circuit to cannibalize, consider family as well
30139       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
30140       circuit cannibalization).
30141     - When a router wasn't listed in a new networkstatus, we were leaving
30142       the flags for that router alone -- meaning it remained Named,
30143       Running, etc -- even though absence from the networkstatus means
30144       that it shouldn't be considered to exist at all anymore. Now we
30145       clear all the flags for routers that fall out of the networkstatus
30146       consensus. Fixes bug 529.
30148   o Minor bugfixes:
30149     - Don't try to access (or alter) the state file when running
30150       --list-fingerprint or --verify-config or --hash-password. Resolves
30151       bug 499.
30152     - When generating information telling us how to extend to a given
30153       router, do not try to include the nickname if it is
30154       absent. Resolves bug 467.
30155     - Fix a user-triggerable segfault in expand_filename(). (There isn't
30156       a way to trigger this remotely.)
30157     - When sending a status event to the controller telling it that an
30158       OR address is reachable, set the port correctly. (Previously we
30159       were reporting the dir port.)
30160     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
30161       command. Bugfix on 0.1.2.17.
30162     - When loading bandwidth history, do not believe any information in
30163       the future. Fixes bug 434.
30164     - When loading entry guard information, do not believe any information
30165       in the future.
30166     - When we have our clock set far in the future and generate an
30167       onion key, then re-set our clock to be correct, we should not stop
30168       the onion key from getting rotated.
30169     - On some platforms, accept() can return a broken address. Detect
30170       this more quietly, and deal accordingly. Fixes bug 483.
30171     - It's not actually an error to find a non-pending entry in the DNS
30172       cache when canceling a pending resolve. Don't log unless stuff
30173       is fishy. Resolves bug 463.
30174     - Don't reset trusted dir server list when we set a configuration
30175       option. Patch from Robert Hogan.
30176     - Don't try to create the datadir when running --verify-config or
30177       --hash-password. Resolves bug 540.
30180 Changes in version 0.2.0.9-alpha - 2007-10-24
30181   This ninth development snapshot switches clients to the new v3 directory
30182   system; allows servers to be listed in the network status even when they
30183   have the same nickname as a registered server; and fixes many other
30184   bugs including a big one that was causing some servers to disappear
30185   from the network status lists for a few hours each day.
30187   o Major features (directory system):
30188     - Clients now download v3 consensus networkstatus documents instead
30189       of v2 networkstatus documents. Clients and caches now base their
30190       opinions about routers on these consensus documents. Clients only
30191       download router descriptors listed in the consensus.
30192     - Authorities now list servers who have the same nickname as
30193       a different named server, but list them with a new flag,
30194       "Unnamed". Now we can list servers that happen to pick the same
30195       nickname as a server that registered two years ago and then
30196       disappeared. Partially implements proposal 122.
30197     - If the consensus lists a router as "Unnamed", the name is assigned
30198       to a different router: do not identify the router by that name.
30199       Partially implements proposal 122.
30200     - Authorities can now come to a consensus on which method to use to
30201       compute the consensus. This gives us forward compatibility.
30203   o Major bugfixes:
30204     - Stop publishing a new server descriptor just because we HUP or
30205       when we find our DirPort to be reachable but won't actually publish
30206       it. New descriptors without any real changes are dropped by the
30207       authorities, and can screw up our "publish every 18 hours" schedule.
30208       Bugfix on 0.1.2.x.
30209     - When a router wasn't listed in a new networkstatus, we were leaving
30210       the flags for that router alone -- meaning it remained Named,
30211       Running, etc -- even though absence from the networkstatus means
30212       that it shouldn't be considered to exist at all anymore. Now we
30213       clear all the flags for routers that fall out of the networkstatus
30214       consensus. Fixes bug 529; bugfix on 0.1.2.x.
30215     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
30216       extrainfo documents and then discard them immediately for not
30217       matching the latest router. Bugfix on 0.2.0.1-alpha.
30219   o Minor features (v3 directory protocol):
30220     - Allow tor-gencert to generate a new certificate without replacing
30221       the signing key.
30222     - Allow certificates to include an address.
30223     - When we change our directory-cache settings, reschedule all voting
30224       and download operations.
30225     - Reattempt certificate downloads immediately on failure, as long as
30226       we haven't failed a threshold number of times yet.
30227     - Delay retrying consensus downloads while we're downloading
30228       certificates to verify the one we just got. Also, count getting a
30229       consensus that we already have (or one that isn't valid) as a failure,
30230       and count failing to get the certificates after 20 minutes as a
30231       failure.
30232     - Build circuits and download descriptors even if our consensus is a
30233       little expired. (This feature will go away once authorities are
30234       more reliable.)
30236   o Minor features (router descriptor cache):
30237     - If we find a cached-routers file that's been sitting around for more
30238       than 28 days unmodified, then most likely it's a leftover from
30239       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
30240       routers anyway.
30241     - When we (as a cache) download a descriptor because it was listed
30242       in a consensus, remember when the consensus was supposed to expire,
30243       and don't expire the descriptor until then.
30245   o Minor features (performance):
30246     - Call routerlist_remove_old_routers() much less often. This should
30247       speed startup, especially on directory caches.
30248     - Don't try to launch new descriptor downloads quite so often when we
30249       already have enough directory information to build circuits.
30250     - Base64 decoding was actually showing up on our profile when parsing
30251       the initial descriptor file; switch to an in-process all-at-once
30252       implementation that's about 3.5x times faster than calling out to
30253       OpenSSL.
30255   o Minor features (compilation):
30256     - Detect non-ASCII platforms (if any still exist) and refuse to
30257       build there: some of our code assumes that 'A' is 65 and so on.
30259   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
30260     - Make the "next period" votes into "current period" votes immediately
30261       after publishing the consensus; avoid a heisenbug that made them
30262       stick around indefinitely.
30263     - When we discard a vote as a duplicate, do not report this as
30264       an error.
30265     - Treat missing v3 keys or certificates as an error when running as a
30266       v3 directory authority.
30267     - When we're configured to be a v3 authority, but we're only listed
30268       as a non-v3 authority in our DirServer line for ourself, correct
30269       the listing.
30270     - If an authority doesn't have a qualified hostname, just put
30271       its address in the vote. This fixes the problem where we referred to
30272       "moria on moria:9031."
30273     - Distinguish between detached signatures for the wrong period, and
30274       detached signatures for a divergent vote.
30275     - Fix a small memory leak when computing a consensus.
30276     - When there's no consensus, we were forming a vote every 30
30277       minutes, but writing the "valid-after" line in our vote based
30278       on our configured V3AuthVotingInterval: so unless the intervals
30279       matched up, we immediately rejected our own vote because it didn't
30280       start at the voting interval that caused us to construct a vote.
30282   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
30283     - Delete unverified-consensus when the real consensus is set.
30284     - Consider retrying a consensus networkstatus fetch immediately
30285       after one fails: don't wait 60 seconds to notice.
30286     - When fetching a consensus as a cache, wait until a newer consensus
30287       should exist before trying to replace the current one.
30288     - Use a more forgiving schedule for retrying failed consensus
30289       downloads than for other types.
30291   o Minor bugfixes (other directory issues):
30292     - Correct the implementation of "download votes by digest." Bugfix on
30293       0.2.0.8-alpha.
30294     - Authorities no longer send back "400 you're unreachable please fix
30295       it" errors to Tor servers that aren't online all the time. We're
30296       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
30298   o Minor bugfixes (controller):
30299     - Don't reset trusted dir server list when we set a configuration
30300       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
30301     - Respond to INT and TERM SIGNAL commands before we execute the
30302       signal, in case the signal shuts us down. We had a patch in
30303       0.1.2.1-alpha that tried to do this by queueing the response on
30304       the connection's buffer before shutting down, but that really
30305       isn't the same thing at all. Bug located by Matt Edman.
30307   o Minor bugfixes (misc):
30308     - Correctly check for bad options to the "PublishServerDescriptor"
30309       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
30310     - Stop leaking memory on failing case of base32_decode, and make
30311       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
30312     - Don't try to download extrainfo documents when we're trying to
30313       fetch enough directory info to build a circuit: having enough
30314       info should get priority. Bugfix on 0.2.0.x.
30315     - Don't complain that "your server has not managed to confirm that its
30316       ports are reachable" if we haven't been able to build any circuits
30317       yet. Bug found by spending four hours without a v3 consensus. Bugfix
30318       on 0.1.2.x.
30319     - Detect the reason for failing to mmap a descriptor file we just
30320       wrote, and give a more useful log message. Fixes bug 533. Bugfix
30321       on 0.1.2.x.
30323   o Code simplifications and refactoring:
30324     - Remove support for the old bw_accounting file: we've been storing
30325       bandwidth accounting information in the state file since
30326       0.1.2.5-alpha. This may result in bandwidth accounting errors
30327       if you try to upgrade from 0.1.1.x or earlier, or if you try to
30328       downgrade to 0.1.1.x or earlier.
30329     - New convenience code to locate a file within the DataDirectory.
30330     - Move non-authority functionality out of dirvote.c.
30331     - Refactor the arguments for router_pick_{directory_|trusteddir}server
30332       so that they all take the same named flags.
30334   o Utilities
30335     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
30336       Unix users an easy way to script their Tor process (e.g. by
30337       adjusting bandwidth based on the time of the day).
30340 Changes in version 0.2.0.8-alpha - 2007-10-12
30341   This eighth development snapshot fixes a crash bug that's been bothering
30342   us since February 2007, lets bridge authorities store a list of bridge
30343   descriptors they've seen, gets v3 directory voting closer to working,
30344   starts caching v3 directory consensus documents on directory mirrors,
30345   and fixes a variety of smaller issues including some minor memory leaks.
30347   o Major features (router descriptor cache):
30348     - Store routers in a file called cached-descriptors instead of in
30349       cached-routers. Initialize cached-descriptors from cached-routers
30350       if the old format is around. The new format allows us to store
30351       annotations along with descriptors.
30352     - Use annotations to record the time we received each descriptor, its
30353       source, and its purpose.
30354     - Disable the SETROUTERPURPOSE controller command: it is now
30355       obsolete.
30356     - Controllers should now specify cache=no or cache=yes when using
30357       the +POSTDESCRIPTOR command.
30358     - Bridge authorities now write bridge descriptors to disk, meaning
30359       we can export them to other programs and begin distributing them
30360       to blocked users.
30362   o Major features (directory authorities):
30363     - When a v3 authority is missing votes or signatures, it now tries
30364       to fetch them.
30365     - Directory authorities track weighted fractional uptime as well as
30366       weighted mean-time-between failures. WFU is suitable for deciding
30367       whether a node is "usually up", while MTBF is suitable for deciding
30368       whether a node is "likely to stay up." We need both, because
30369       "usually up" is a good requirement for guards, while "likely to
30370       stay up" is a good requirement for long-lived connections.
30372   o Major features (v3 directory system):
30373     - Caches now download v3 network status documents as needed,
30374       and download the descriptors listed in them.
30375     - All hosts now attempt to download and keep fresh v3 authority
30376       certificates, and re-attempt after failures.
30377     - More internal-consistency checks for vote parsing.
30379   o Major bugfixes (crashes):
30380     - If a connection is shut down abruptly because of something that
30381       happened inside connection_flushed_some(), do not call
30382       connection_finished_flushing(). Should fix bug 451. Bugfix on
30383       0.1.2.7-alpha.
30385   o Major bugfixes (performance):
30386     - Fix really bad O(n^2) performance when parsing a long list of
30387       routers: Instead of searching the entire list for an "extra-info "
30388       string which usually wasn't there, once for every routerinfo
30389       we read, just scan lines forward until we find one we like.
30390       Bugfix on 0.2.0.1.
30391     - When we add data to a write buffer in response to the data on that
30392       write buffer getting low because of a flush, do not consider the
30393       newly added data as a candidate for immediate flushing, but rather
30394       make it wait until the next round of writing. Otherwise, we flush
30395       and refill recursively, and a single greedy TLS connection can
30396       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
30398   o Minor features (v3 authority system):
30399     - Add more ways for tools to download the votes that lead to the
30400       current consensus.
30401     - Send a 503 when low on bandwidth and a vote, consensus, or
30402       certificate is requested.
30403     - If-modified-since is now implemented properly for all kinds of
30404       certificate requests.
30406   o Minor bugfixes (network statuses):
30407     - Tweak the implementation of proposal 109 slightly: allow at most
30408       two Tor servers on the same IP address, except if it's the location
30409       of a directory authority, in which case allow five. Bugfix on
30410       0.2.0.3-alpha.
30412   o Minor bugfixes (controller):
30413     - When sending a status event to the controller telling it that an
30414       OR address is reachable, set the port correctly. (Previously we
30415       were reporting the dir port.) Bugfix on 0.1.2.x.
30417   o Minor bugfixes (v3 directory system):
30418     - Fix logic to look up a cert by its signing key digest. Bugfix on
30419       0.2.0.7-alpha.
30420     - Only change the reply to a vote to "OK" if it's not already
30421       set. This gets rid of annoying "400 OK" log messages, which may
30422       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
30423     - When we get a valid consensus, recompute the voting schedule.
30424     - Base the valid-after time of a vote on the consensus voting
30425       schedule, not on our preferred schedule.
30426     - Make the return values and messages from signature uploads and
30427       downloads more sensible.
30428     - Fix a memory leak when serving votes and consensus documents, and
30429       another when serving certificates.
30431   o Minor bugfixes (performance):
30432     - Use a slightly simpler string hashing algorithm (copying Python's
30433       instead of Java's) and optimize our digest hashing algorithm to take
30434       advantage of 64-bit platforms and to remove some possibly-costly
30435       voodoo.
30436     - Fix a minor memory leak whenever we parse guards from our state
30437       file. Bugfix on 0.2.0.7-alpha.
30438     - Fix a minor memory leak whenever we write out a file. Bugfix on
30439       0.2.0.7-alpha.
30440     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
30441       command. Bugfix on 0.2.0.5-alpha.
30443   o Minor bugfixes (portability):
30444     - On some platforms, accept() can return a broken address. Detect
30445       this more quietly, and deal accordingly. Fixes bug 483.
30446     - Stop calling tor_strlower() on uninitialized memory in some cases.
30447       Bugfix in 0.2.0.7-alpha.
30449   o Minor bugfixes (usability):
30450     - Treat some 403 responses from directory servers as INFO rather than
30451       WARN-severity events.
30452     - It's not actually an error to find a non-pending entry in the DNS
30453       cache when canceling a pending resolve. Don't log unless stuff is
30454       fishy. Resolves bug 463.
30456   o Minor bugfixes (anonymity):
30457     - Never report that we've used more bandwidth than we're willing to
30458       relay: it leaks how much non-relay traffic we're using. Resolves
30459       bug 516.
30460     - When looking for a circuit to cannibalize, consider family as well
30461       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
30462       circuit cannibalization).
30464   o Code simplifications and refactoring:
30465     - Make a bunch of functions static. Remove some dead code.
30466     - Pull out about a third of the really big routerlist.c; put it in a
30467       new module, networkstatus.c.
30468     - Merge the extra fields in local_routerstatus_t back into
30469       routerstatus_t: we used to need one routerstatus_t for each
30470       authority's opinion, plus a local_routerstatus_t for the locally
30471       computed consensus opinion. To save space, we put the locally
30472       modified fields into local_routerstatus_t, and only the common
30473       stuff into routerstatus_t. But once v3 directories are in use,
30474       clients and caches will no longer need to hold authority opinions;
30475       thus, the rationale for keeping the types separate is now gone.
30476     - Make the code used to reschedule and reattempt downloads more
30477       uniform.
30478     - Turn all 'Are we a directory server/mirror?' logic into a call to
30479       dirserver_mode().
30480     - Remove the code to generate the oldest (v1) directory format.
30481       The code has been disabled since 0.2.0.5-alpha.
30484 Changes in version 0.2.0.7-alpha - 2007-09-21
30485   This seventh development snapshot makes bridges work again, makes bridge
30486   authorities work for the first time, fixes two huge performance flaws
30487   in hidden services, and fixes a variety of minor issues.
30489   o New directory authorities:
30490     - Set up moria1 and tor26 as the first v3 directory authorities. See
30491       doc/spec/dir-spec.txt for details on the new directory design.
30493   o Major bugfixes (crashes):
30494     - Fix possible segfaults in functions called from
30495       rend_process_relay_cell(). Bugfix on 0.1.2.x.
30497   o Major bugfixes (bridges):
30498     - Fix a bug that made servers send a "404 Not found" in response to
30499       attempts to fetch their server descriptor. This caused Tor servers
30500       to take many minutes to establish reachability for their DirPort,
30501       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
30502     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
30503       users configure that and specify a bridge with an identity
30504       fingerprint, now they will lookup the bridge descriptor at the
30505       default bridge authority via a one-hop tunnel, but once circuits
30506       are established they will switch to a three-hop tunnel for later
30507       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
30509   o Major bugfixes (hidden services):
30510     - Hidden services were choosing introduction points uniquely by
30511       hexdigest, but when constructing the hidden service descriptor
30512       they merely wrote the (potentially ambiguous) nickname.
30513     - Clients now use the v2 intro format for hidden service
30514       connections: they specify their chosen rendezvous point by identity
30515       digest rather than by (potentially ambiguous) nickname. Both
30516       are bugfixes on 0.1.2.x, and they could speed up hidden service
30517       connections dramatically. Thanks to Karsten Loesing.
30519   o Minor features (security):
30520     - As a client, do not believe any server that tells us that an
30521       address maps to an internal address space.
30522     - Make it possible to enable HashedControlPassword and
30523       CookieAuthentication at the same time.
30525   o Minor features (guard nodes):
30526     - Tag every guard node in our state file with the version that
30527       we believe added it, or with our own version if we add it. This way,
30528       if a user temporarily runs an old version of Tor and then switches
30529       back to a new one, she doesn't automatically lose her guards.
30531   o Minor features (speed):
30532     - When implementing AES counter mode, update only the portions of the
30533       counter buffer that need to change, and don't keep separate
30534       network-order and host-order counters when they are the same (i.e.,
30535       on big-endian hosts.)
30537   o Minor features (controller):
30538     - Accept LF instead of CRLF on controller, since some software has a
30539       hard time generating real Internet newlines.
30540     - Add GETINFO values for the server status events
30541       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
30542       Robert Hogan.
30544   o Removed features:
30545      - Routers no longer include bandwidth-history lines in their
30546        descriptors; this information is already available in extra-info
30547        documents, and including it in router descriptors took up 60%
30548        (!) of compressed router descriptor downloads. Completes
30549        implementation of proposal 104.
30550      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
30551        and TorControl.py, as they use the old v0 controller protocol,
30552        and are obsoleted by TorFlow anyway.
30553      - Drop support for v1 rendezvous descriptors, since we never used
30554        them anyway, and the code has probably rotted by now. Based on
30555        patch from Karsten Loesing.
30556      - On OSX, stop warning the user that kqueue support in libevent is
30557       "experimental", since it seems to have worked fine for ages.
30559   o Minor bugfixes:
30560     - When generating information telling us how to extend to a given
30561       router, do not try to include the nickname if it is absent. Fixes
30562       bug 467. Bugfix on 0.2.0.3-alpha.
30563     - Fix a user-triggerable (but not remotely-triggerable) segfault
30564       in expand_filename(). Bugfix on 0.1.2.x.
30565     - Fix a memory leak when freeing incomplete requests from DNSPort.
30566       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
30567     - Don't try to access (or alter) the state file when running
30568       --list-fingerprint or --verify-config or --hash-password. (Resolves
30569       bug 499.) Bugfix on 0.1.2.x.
30570     - Servers used to decline to publish their DirPort if their
30571       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
30572       were below a threshold. Now they only look at BandwidthRate and
30573       RelayBandwidthRate. Bugfix on 0.1.2.x.
30574     - Remove an optimization in the AES counter-mode code that assumed
30575       that the counter never exceeded 2^68. When the counter can be set
30576       arbitrarily as an IV (as it is by Karsten's new hidden services
30577       code), this assumption no longer holds. Bugfix on 0.1.2.x.
30578     - Resume listing "AUTHORITY" flag for authorities in network status.
30579       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
30581   o Code simplifications and refactoring:
30582     - Revamp file-writing logic so we don't need to have the entire
30583       contents of a file in memory at once before we write to disk. Tor,
30584       meet stdio.
30585     - Turn "descriptor store" into a full-fledged type.
30586     - Move all NT services code into a separate source file.
30587     - Unify all code that computes medians, percentile elements, etc.
30588     - Get rid of a needless malloc when parsing address policies.
30591 Changes in version 0.1.2.17 - 2007-08-30
30592   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
30593   X bundles. Vidalia 0.0.14 makes authentication required for the
30594   ControlPort in the default configuration, which addresses important
30595   security risks. Everybody who uses Vidalia (or another controller)
30596   should upgrade.
30598   In addition, this Tor update fixes major load balancing problems with
30599   path selection, which should speed things up a lot once many people
30600   have upgraded.
30602   o Major bugfixes (security):
30603     - We removed support for the old (v0) control protocol. It has been
30604       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
30605       become more of a headache than it's worth.
30607   o Major bugfixes (load balancing):
30608     - When choosing nodes for non-guard positions, weight guards
30609       proportionally less, since they already have enough load. Patch
30610       from Mike Perry.
30611     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
30612       will allow fast Tor servers to get more attention.
30613     - When we're upgrading from an old Tor version, forget our current
30614       guards and pick new ones according to the new weightings. These
30615       three load balancing patches could raise effective network capacity
30616       by a factor of four. Thanks to Mike Perry for measurements.
30618   o Major bugfixes (stream expiration):
30619     - Expire not-yet-successful application streams in all cases if
30620       they've been around longer than SocksTimeout. Right now there are
30621       some cases where the stream will live forever, demanding a new
30622       circuit every 15 seconds. Fixes bug 454; reported by lodger.
30624   o Minor features (controller):
30625     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
30626       is valid before any authentication has been received. It tells
30627       a controller what kind of authentication is expected, and what
30628       protocol is spoken. Implements proposal 119.
30630   o Minor bugfixes (performance):
30631     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
30632       greatly speeding up loading cached-routers from disk on startup.
30633     - Disable sentinel-based debugging for buffer code: we squashed all
30634       the bugs that this was supposed to detect a long time ago, and now
30635       its only effect is to change our buffer sizes from nice powers of
30636       two (which platform mallocs tend to like) to values slightly over
30637       powers of two (which make some platform mallocs sad).
30639   o Minor bugfixes (misc):
30640     - If exit bandwidth ever exceeds one third of total bandwidth, then
30641       use the correct formula to weight exit nodes when choosing paths.
30642       Based on patch from Mike Perry.
30643     - Choose perfectly fairly among routers when choosing by bandwidth and
30644       weighting by fraction of bandwidth provided by exits. Previously, we
30645       would choose with only approximate fairness, and correct ourselves
30646       if we ran off the end of the list.
30647     - If we require CookieAuthentication but we fail to write the
30648       cookie file, we would warn but not exit, and end up in a state
30649       where no controller could authenticate. Now we exit.
30650     - If we require CookieAuthentication, stop generating a new cookie
30651       every time we change any piece of our config.
30652     - Refuse to start with certain directory authority keys, and
30653       encourage people using them to stop.
30654     - Terminate multi-line control events properly. Original patch
30655       from tup.
30656     - Fix a minor memory leak when we fail to find enough suitable
30657       servers to choose a circuit.
30658     - Stop leaking part of the descriptor when we run into a particularly
30659       unparseable piece of it.
30662 Changes in version 0.2.0.6-alpha - 2007-08-26
30663   This sixth development snapshot features a new Vidalia version in the
30664   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
30665   the ControlPort in the default configuration, which addresses important
30666   security risks.
30668   In addition, this snapshot fixes major load balancing problems
30669   with path selection, which should speed things up a lot once many
30670   people have upgraded. The directory authorities also use a new
30671   mean-time-between-failure approach to tracking which servers are stable,
30672   rather than just looking at the most recent uptime.
30674   o New directory authorities:
30675     - Set up Tonga as the default bridge directory authority.
30677   o Major features:
30678     - Directory authorities now track servers by weighted
30679       mean-times-between-failures. When we have 4 or more days of data,
30680       use measured MTBF rather than declared uptime to decide whether
30681       to call a router Stable. Implements proposal 108.
30683   o Major bugfixes (load balancing):
30684     - When choosing nodes for non-guard positions, weight guards
30685       proportionally less, since they already have enough load. Patch
30686       from Mike Perry.
30687     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
30688       will allow fast Tor servers to get more attention.
30689     - When we're upgrading from an old Tor version, forget our current
30690       guards and pick new ones according to the new weightings. These
30691       three load balancing patches could raise effective network capacity
30692       by a factor of four. Thanks to Mike Perry for measurements.
30694   o Major bugfixes (descriptor parsing):
30695     - Handle unexpected whitespace better in malformed descriptors. Bug
30696       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
30698   o Minor features:
30699     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
30700       GETINFO for Torstat to use until it can switch to using extrainfos.
30701     - Optionally (if built with -DEXPORTMALLINFO) export the output
30702       of mallinfo via http, as tor/mallinfo.txt. Only accessible
30703       from localhost.
30705   o Minor bugfixes:
30706     - Do not intermix bridge routers with controller-added
30707       routers. (Bugfix on 0.2.0.x)
30708     - Do not fail with an assert when accept() returns an unexpected
30709       address family. Addresses but does not wholly fix bug 483. (Bugfix
30710       on 0.2.0.x)
30711     - Let directory authorities startup even when they can't generate
30712       a descriptor immediately, e.g. because they don't know their
30713       address.
30714     - Stop putting the authentication cookie in a file called "0"
30715       in your working directory if you don't specify anything for the
30716       new CookieAuthFile option. Reported by Matt Edman.
30717     - Make it possible to read the PROTOCOLINFO response in a way that
30718       conforms to our control-spec. Reported by Matt Edman.
30719     - Fix a minor memory leak when we fail to find enough suitable
30720       servers to choose a circuit. Bugfix on 0.1.2.x.
30721     - Stop leaking part of the descriptor when we run into a particularly
30722       unparseable piece of it. Bugfix on 0.1.2.x.
30723     - Unmap the extrainfo cache file on exit.
30726 Changes in version 0.2.0.5-alpha - 2007-08-19
30727   This fifth development snapshot fixes compilation on Windows again;
30728   fixes an obnoxious client-side bug that slowed things down and put
30729   extra load on the network; gets us closer to using the v3 directory
30730   voting scheme; makes it easier for Tor controllers to use cookie-based
30731   authentication; and fixes a variety of other bugs.
30733   o Removed features:
30734     - Version 1 directories are no longer generated in full. Instead,
30735       authorities generate and serve "stub" v1 directories that list
30736       no servers. This will stop Tor versions 0.1.0.x and earlier from
30737       working, but (for security reasons) nobody should be running those
30738       versions anyway.
30740   o Major bugfixes (compilation, 0.2.0.x):
30741     - Try to fix Win32 compilation again: improve checking for IPv6 types.
30742     - Try to fix MSVC compilation: build correctly on platforms that do
30743       not define s6_addr16 or s6_addr32.
30744     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
30745       Zhou.
30747   o Major bugfixes (stream expiration):
30748     - Expire not-yet-successful application streams in all cases if
30749       they've been around longer than SocksTimeout. Right now there are
30750       some cases where the stream will live forever, demanding a new
30751       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
30752       reported by lodger.
30754   o Minor features (directory servers):
30755     - When somebody requests a list of statuses or servers, and we have
30756       none of those, return a 404 rather than an empty 200.
30758   o Minor features (directory voting):
30759     - Store v3 consensus status consensuses on disk, and reload them
30760       on startup.
30762   o Minor features (security):
30763     - Warn about unsafe ControlPort configurations.
30764     - Refuse to start with certain directory authority keys, and
30765       encourage people using them to stop.
30767   o Minor features (controller):
30768     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
30769       is valid before any authentication has been received. It tells
30770       a controller what kind of authentication is expected, and what
30771       protocol is spoken. Implements proposal 119.
30772     - New config option CookieAuthFile to choose a new location for the
30773       cookie authentication file, and config option
30774       CookieAuthFileGroupReadable to make it group-readable.
30776   o Minor features (unit testing):
30777     - Add command-line arguments to unit-test executable so that we can
30778       invoke any chosen test from the command line rather than having
30779       to run the whole test suite at once; and so that we can turn on
30780       logging for the unit tests.
30782   o Minor bugfixes (on 0.1.2.x):
30783     - If we require CookieAuthentication but we fail to write the
30784       cookie file, we would warn but not exit, and end up in a state
30785       where no controller could authenticate. Now we exit.
30786     - If we require CookieAuthentication, stop generating a new cookie
30787       every time we change any piece of our config.
30788     - When loading bandwidth history, do not believe any information in
30789       the future. Fixes bug 434.
30790     - When loading entry guard information, do not believe any information
30791       in the future.
30792     - When we have our clock set far in the future and generate an
30793       onion key, then re-set our clock to be correct, we should not stop
30794       the onion key from getting rotated.
30795     - Clean up torrc sample config file.
30796     - Do not automatically run configure from autogen.sh. This
30797       non-standard behavior tended to annoy people who have built other
30798       programs.
30800   o Minor bugfixes (on 0.2.0.x):
30801     - Fix a bug with AutomapHostsOnResolve that would always cause
30802       the second request to fail. Bug reported by Kate. Bugfix on
30803       0.2.0.3-alpha.
30804     - Fix a bug in ADDRMAP controller replies that would sometimes
30805       try to print a NULL. Patch from tup.
30806     - Read v3 directory authority keys from the right location.
30807     - Numerous bugfixes to directory voting code.
30810 Changes in version 0.1.2.16 - 2007-08-01
30811   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
30812   remote attacker in certain situations to rewrite the user's torrc
30813   configuration file. This can completely compromise anonymity of users
30814   in most configurations, including those running the Vidalia bundles,
30815   TorK, etc. Or worse.
30817   o Major security fixes:
30818     - Close immediately after missing authentication on control port;
30819       do not allow multiple authentication attempts.
30822 Changes in version 0.2.0.4-alpha - 2007-08-01
30823   This fourth development snapshot fixes a critical security vulnerability
30824   for most users, specifically those running Vidalia, TorK, etc. Everybody
30825   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
30827   o Major security fixes:
30828     - Close immediately after missing authentication on control port;
30829       do not allow multiple authentication attempts.
30831   o Major bugfixes (compilation):
30832     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
30833       defined there.
30835   o Minor features (performance):
30836     - Be even more aggressive about releasing RAM from small
30837       empty buffers. Thanks to our free-list code, this shouldn't be too
30838       performance-intensive.
30839     - Disable sentinel-based debugging for buffer code: we squashed all
30840       the bugs that this was supposed to detect a long time ago, and
30841       now its only effect is to change our buffer sizes from nice
30842       powers of two (which platform mallocs tend to like) to values
30843       slightly over powers of two (which make some platform mallocs sad).
30844     - Log malloc statistics from mallinfo() on platforms where it
30845       exists.
30848 Changes in version 0.2.0.3-alpha - 2007-07-29
30849   This third development snapshot introduces new experimental
30850   blocking-resistance features and a preliminary version of the v3
30851   directory voting design, and includes many other smaller features
30852   and bugfixes.
30854   o Major features:
30855     - The first pieces of our "bridge" design for blocking-resistance
30856       are implemented. People can run bridge directory authorities;
30857       people can run bridges; and people can configure their Tor clients
30858       with a set of bridges to use as the first hop into the Tor network.
30859       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
30860       details.
30861     - Create listener connections before we setuid to the configured
30862       User and Group. Now non-Windows users can choose port values
30863       under 1024, start Tor as root, and have Tor bind those ports
30864       before it changes to another UID. (Windows users could already
30865       pick these ports.)
30866     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
30867       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
30868       on "vserver" accounts. (Patch from coderman.)
30869     - Be even more aggressive about separating local traffic from relayed
30870       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
30872   o Major features (experimental):
30873     - First cut of code for "v3 dir voting": directory authorities will
30874       vote on a common network status document rather than each publishing
30875       their own opinion. This code needs more testing and more corner-case
30876       handling before it's ready for use.
30878   o Security fixes:
30879     - Directory authorities now call routers Fast if their bandwidth is
30880       at least 100KB/s, and consider their bandwidth adequate to be a
30881       Guard if it is at least 250KB/s, no matter the medians. This fix
30882       complements proposal 107. [Bugfix on 0.1.2.x]
30883     - Directory authorities now never mark more than 3 servers per IP as
30884       Valid and Running. (Implements proposal 109, by Kevin Bauer and
30885       Damon McCoy.)
30886     - Minor change to organizationName and commonName generation
30887       procedures in TLS certificates during Tor handshakes, to invalidate
30888       some earlier censorware approaches. This is not a long-term
30889       solution, but applying it will give us a bit of time to look into
30890       the epidemiology of countermeasures as they spread.
30892   o Major bugfixes (directory):
30893     - Rewrite directory tokenization code to never run off the end of
30894       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
30896   o Minor features (controller):
30897     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
30898       match requests to applications. (Patch from Robert Hogan.)
30899     - Report address and port correctly on connections to DNSPort. (Patch
30900       from Robert Hogan.)
30901     - Add a RESOLVE command to launch hostname lookups. (Original patch
30902       from Robert Hogan.)
30903     - Add GETINFO status/enough-dir-info to let controllers tell whether
30904       Tor has downloaded sufficient directory information. (Patch
30905       from Tup.)
30906     - You can now use the ControlSocket option to tell Tor to listen for
30907       controller connections on Unix domain sockets on systems that
30908       support them. (Patch from Peter Palfrader.)
30909     - STREAM NEW events are generated for DNSPort requests and for
30910       tunneled directory connections. (Patch from Robert Hogan.)
30911     - New "GETINFO address-mappings/*" command to get address mappings
30912       with expiry information. "addr-mappings/*" is now deprecated.
30913       (Patch from Tup.)
30915   o Minor features (misc):
30916     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
30917       from croup.)
30918     - The tor-gencert tool for v3 directory authorities now creates all
30919       files as readable to the file creator only, and write-protects
30920       the authority identity key.
30921     - When dumping memory usage, list bytes used in buffer memory
30922       free-lists.
30923     - When running with dmalloc, dump more stats on hup and on exit.
30924     - Directory authorities now fail quickly and (relatively) harmlessly
30925       if they generate a network status document that is somehow
30926       malformed.
30928   o Traffic load balancing improvements:
30929     - If exit bandwidth ever exceeds one third of total bandwidth, then
30930       use the correct formula to weight exit nodes when choosing paths.
30931       (Based on patch from Mike Perry.)
30932     - Choose perfectly fairly among routers when choosing by bandwidth and
30933       weighting by fraction of bandwidth provided by exits. Previously, we
30934       would choose with only approximate fairness, and correct ourselves
30935       if we ran off the end of the list. [Bugfix on 0.1.2.x]
30937   o Performance improvements:
30938     - Be more aggressive with freeing buffer RAM or putting it on the
30939       memory free lists.
30940     - Use Critical Sections rather than Mutexes for synchronizing threads
30941       on win32; Mutexes are heavier-weight, and designed for synchronizing
30942       between processes.
30944   o Deprecated and removed features:
30945     - RedirectExits is now deprecated.
30946     - Stop allowing address masks that do not correspond to bit prefixes.
30947       We have warned about these for a really long time; now it's time
30948       to reject them. (Patch from croup.)
30950   o Minor bugfixes (directory):
30951     - Fix another crash bug related to extra-info caching. (Bug found by
30952       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
30953     - Directories no longer return a "304 not modified" when they don't
30954       have the networkstatus the client asked for. Also fix a memory
30955       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
30956     - We had accidentally labelled 0.1.2.x directory servers as not
30957       suitable for begin_dir requests, and had labelled no directory
30958       servers as suitable for uploading extra-info documents. [Bugfix
30959       on 0.2.0.1-alpha]
30961   o Minor bugfixes (dns):
30962     - Fix a crash when DNSPort is set more than once. (Patch from Robert
30963       Hogan.) [Bugfix on 0.2.0.2-alpha]
30964     - Add DNSPort connections to the global connection list, so that we
30965       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
30966       on 0.2.0.2-alpha]
30967     - Fix a dangling reference that could lead to a crash when DNSPort is
30968       changed or closed (Patch from Robert Hogan.) [Bugfix on
30969       0.2.0.2-alpha]
30971   o Minor bugfixes (controller):
30972     - Provide DNS expiry times in GMT, not in local time. For backward
30973       compatibility, ADDRMAP events only provide GMT expiry in an extended
30974       field. "GETINFO address-mappings" always does the right thing.
30975     - Use CRLF line endings properly in NS events.
30976     - Terminate multi-line control events properly. (Original patch
30977       from tup.) [Bugfix on 0.1.2.x-alpha]
30978     - Do not include spaces in SOURCE_ADDR fields in STREAM
30979       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
30982 Changes in version 0.1.2.15 - 2007-07-17
30983   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
30984   problems, fixes compilation on BSD, and fixes a variety of other
30985   bugs. Everybody should upgrade.
30987   o Major bugfixes (compilation):
30988     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
30990   o Major bugfixes (crashes):
30991     - Try even harder not to dereference the first character after
30992       an mmap(). Reported by lodger.
30993     - Fix a crash bug in directory authorities when we re-number the
30994       routerlist while inserting a new router.
30995     - When the cached-routers file is an even multiple of the page size,
30996       don't run off the end and crash. (Fixes bug 455; based on idea
30997       from croup.)
30998     - Fix eventdns.c behavior on Solaris: It is critical to include
30999       orconfig.h _before_ sys/types.h, so that we can get the expected
31000       definition of _FILE_OFFSET_BITS.
31002   o Major bugfixes (security):
31003     - Fix a possible buffer overrun when using BSD natd support. Bug
31004       found by croup.
31005     - When sending destroy cells from a circuit's origin, don't include
31006       the reason for tearing down the circuit. The spec says we didn't,
31007       and now we actually don't. Reported by lodger.
31008     - Keep streamids from different exits on a circuit separate. This
31009       bug may have allowed other routers on a given circuit to inject
31010       cells into streams. Reported by lodger; fixes bug 446.
31011     - If there's a never-before-connected-to guard node in our list,
31012       never choose any guards past it. This way we don't expand our
31013       guard list unless we need to.
31015   o Minor bugfixes (guard nodes):
31016     - Weight guard selection by bandwidth, so that low-bandwidth nodes
31017       don't get overused as guards.
31019   o Minor bugfixes (directory):
31020     - Correctly count the number of authorities that recommend each
31021       version. Previously, we were under-counting by 1.
31022     - Fix a potential crash bug when we load many server descriptors at
31023       once and some of them make others of them obsolete. Fixes bug 458.
31025   o Minor bugfixes (hidden services):
31026     - Stop tearing down the whole circuit when the user asks for a
31027       connection to a port that the hidden service didn't configure.
31028       Resolves bug 444.
31030   o Minor bugfixes (misc):
31031     - On Windows, we were preventing other processes from reading
31032       cached-routers while Tor was running. Reported by janbar.
31033     - Fix a possible (but very unlikely) bug in picking routers by
31034       bandwidth. Add a log message to confirm that it is in fact
31035       unlikely. Patch from lodger.
31036     - Backport a couple of memory leak fixes.
31037     - Backport miscellaneous cosmetic bugfixes.
31040 Changes in version 0.2.0.2-alpha - 2007-06-02
31041   o Major bugfixes on 0.2.0.1-alpha:
31042     - Fix an assertion failure related to servers without extra-info digests.
31043       Resolves bugs 441 and 442.
31045   o Minor features (directory):
31046     - Support "If-Modified-Since" when answering HTTP requests for
31047       directories, running-routers documents, and network-status documents.
31048       (There's no need to support it for router descriptors, since those
31049       are downloaded by descriptor digest.)
31051   o Minor build issues:
31052     - Clear up some MIPSPro compiler warnings.
31053     - When building from a tarball on a machine that happens to have SVK
31054       installed, report the micro-revision as whatever version existed
31055       in the tarball, not as "x".
31058 Changes in version 0.2.0.1-alpha - 2007-06-01
31059   This early development snapshot provides new features for people running
31060   Tor as both a client and a server (check out the new RelayBandwidth
31061   config options); lets Tor run as a DNS proxy; and generally moves us
31062   forward on a lot of fronts.
31064   o Major features, server usability:
31065     - New config options RelayBandwidthRate and RelayBandwidthBurst:
31066       a separate set of token buckets for relayed traffic. Right now
31067       relayed traffic is defined as answers to directory requests, and
31068       OR connections that don't have any local circuits on them.
31070   o Major features, client usability:
31071     - A client-side DNS proxy feature to replace the need for
31072       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
31073       for DNS requests on port 9999, use the Tor network to resolve them
31074       anonymously, and send the reply back like a regular DNS server.
31075       The code still only implements a subset of DNS.
31076     - Make PreferTunneledDirConns and TunnelDirConns work even when
31077       we have no cached directory info. This means Tor clients can now
31078       do all of their connections protected by TLS.
31080   o Major features, performance and efficiency:
31081     - Directory authorities accept and serve "extra info" documents for
31082       routers. These documents contain fields from router descriptors
31083       that aren't usually needed, and that use a lot of excess
31084       bandwidth. Once these fields are removed from router descriptors,
31085       the bandwidth savings should be about 60%. [Partially implements
31086       proposal 104.]
31087     - Servers upload extra-info documents to any authority that accepts
31088       them. Authorities (and caches that have been configured to download
31089       extra-info documents) download them as needed. [Partially implements
31090       proposal 104.]
31091     - Change the way that Tor buffers data that it is waiting to write.
31092       Instead of queueing data cells in an enormous ring buffer for each
31093       client->OR or OR->OR connection, we now queue cells on a separate
31094       queue for each circuit. This lets us use less slack memory, and
31095       will eventually let us be smarter about prioritizing different kinds
31096       of traffic.
31097     - Use memory pools to allocate cells with better speed and memory
31098       efficiency, especially on platforms where malloc() is inefficient.
31099     - Stop reading on edge connections when their corresponding circuit
31100       buffers are full; start again as the circuits empty out.
31102   o Major features, other:
31103     - Add an HSAuthorityRecordStats option that hidden service authorities
31104       can use to track statistics of overall hidden service usage without
31105       logging information that would be very useful to an attacker.
31106     - Start work implementing multi-level keys for directory authorities:
31107       Add a standalone tool to generate key certificates. (Proposal 103.)
31109   o Security fixes:
31110     - Directory authorities now call routers Stable if they have an
31111       uptime of at least 30 days, even if that's not the median uptime
31112       in the network. Implements proposal 107, suggested by Kevin Bauer
31113       and Damon McCoy.
31115   o Minor fixes (resource management):
31116     - Count the number of open sockets separately from the number
31117       of active connection_t objects. This will let us avoid underusing
31118       our allocated connection limit.
31119     - We no longer use socket pairs to link an edge connection to an
31120       anonymous directory connection or a DirPort test connection.
31121       Instead, we track the link internally and transfer the data
31122       in-process. This saves two sockets per "linked" connection (at the
31123       client and at the server), and avoids the nasty Windows socketpair()
31124       workaround.
31125     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
31126       for every single inactive connection_t. Free items from the
31127       4k/16k-buffer free lists when they haven't been used for a while.
31129   o Minor features (build):
31130     - Make autoconf search for libevent, openssl, and zlib consistently.
31131     - Update deprecated macros in configure.in.
31132     - When warning about missing headers, tell the user to let us
31133       know if the compile succeeds anyway, so we can downgrade the
31134       warning.
31135     - Include the current subversion revision as part of the version
31136       string: either fetch it directly if we're in an SVN checkout, do
31137       some magic to guess it if we're in an SVK checkout, or use
31138       the last-detected version if we're building from a .tar.gz.
31139       Use this version consistently in log messages.
31141   o Minor features (logging):
31142     - Always prepend "Bug: " to any log message about a bug.
31143     - Put a platform string (e.g. "Linux i686") in the startup log
31144       message, so when people paste just their logs, we know if it's
31145       OpenBSD or Windows or what.
31146     - When logging memory usage, break down memory used in buffers by
31147       buffer type.
31149   o Minor features (directory system):
31150     - New config option V2AuthoritativeDirectory that all directory
31151       authorities should set. This will let future authorities choose
31152       not to serve V2 directory information.
31153     - Directory authorities allow multiple router descriptors and/or extra
31154       info documents to be uploaded in a single go. This will make
31155       implementing proposal 104 simpler.
31157   o Minor features (controller):
31158     - Add a new config option __DisablePredictedCircuits designed for
31159       use by the controller, when we don't want Tor to build any circuits
31160       preemptively.
31161     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
31162       so we can exit from the middle of the circuit.
31163     - Implement "getinfo status/circuit-established".
31164     - Implement "getinfo status/version/..." so a controller can tell
31165       whether the current version is recommended, and whether any versions
31166       are good, and how many authorities agree. (Patch from shibz.)
31168   o Minor features (hidden services):
31169     - Allow multiple HiddenServicePort directives with the same virtual
31170       port; when they occur, the user is sent round-robin to one
31171       of the target ports chosen at random. Partially fixes bug 393 by
31172       adding limited ad-hoc round-robining.
31174   o Minor features (other):
31175     - More unit tests.
31176     - Add a new AutomapHostsOnResolve option: when it is enabled, any
31177       resolve request for hosts matching a given pattern causes Tor to
31178       generate an internal virtual address mapping for that host. This
31179       allows DNSPort to work sensibly with hidden service users. By
31180       default, .exit and .onion addresses are remapped; the list of
31181       patterns can be reconfigured with AutomapHostsSuffixes.
31182     - Add an "-F" option to tor-resolve to force a resolve for a .onion
31183       address. Thanks to the AutomapHostsOnResolve option, this is no
31184       longer a completely silly thing to do.
31185     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
31186       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
31187     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
31188       minus 1 byte: the actual maximum declared bandwidth.
31190   o Removed features:
31191     - Removed support for the old binary "version 0" controller protocol.
31192       This has been deprecated since 0.1.1, and warnings have been issued
31193       since 0.1.2. When we encounter a v0 control message, we now send
31194       back an error and close the connection.
31195     - Remove the old "dns worker" server DNS code: it hasn't been default
31196       since 0.1.2.2-alpha, and all the servers seem to be using the new
31197       eventdns code.
31199   o Minor bugfixes (portability):
31200     - Even though Windows is equally happy with / and \ as path separators,
31201       try to use \ consistently on Windows and / consistently on Unix: it
31202       makes the log messages nicer.
31203     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
31204     - Read resolv.conf files correctly on platforms where read() returns
31205       partial results on small file reads.
31207   o Minor bugfixes (directory):
31208     - Correctly enforce that elements of directory objects do not appear
31209       more often than they are allowed to appear.
31210     - When we are reporting the DirServer line we just parsed, we were
31211       logging the second stanza of the key fingerprint, not the first.
31213   o Minor bugfixes (logging):
31214     - When we hit an EOF on a log (probably because we're shutting down),
31215       don't try to remove the log from the list: just mark it as
31216       unusable. (Bulletproofs against bug 222.)
31218   o Minor bugfixes (other):
31219     - In the exitlist script, only consider the most recently published
31220       server descriptor for each server. Also, when the user requests
31221       a list of servers that _reject_ connections to a given address,
31222       explicitly exclude the IPs that also have servers that accept
31223       connections to that address. (Resolves bug 405.)
31224     - Stop allowing hibernating servers to be "stable" or "fast".
31225     - On Windows, we were preventing other processes from reading
31226       cached-routers while Tor was running. (Reported by janbar)
31227     - Make the NodeFamilies config option work. (Reported by
31228       lodger -- it has never actually worked, even though we added it
31229       in Oct 2004.)
31230     - Check return values from pthread_mutex functions.
31231     - Don't save non-general-purpose router descriptors to the disk cache,
31232       because we have no way of remembering what their purpose was when
31233       we restart.
31234     - Add even more asserts to hunt down bug 417.
31235     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
31236     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
31237       Add a log message to confirm that it is in fact unlikely.
31239   o Minor bugfixes (controller):
31240     - Make 'getinfo fingerprint' return a 551 error if we're not a
31241       server, so we match what the control spec claims we do. Reported
31242       by daejees.
31243     - Fix a typo in an error message when extendcircuit fails that
31244       caused us to not follow the \r\n-based delimiter protocol. Reported
31245       by daejees.
31247   o Code simplifications and refactoring:
31248     - Stop passing around circuit_t and crypt_path_t pointers that are
31249       implicit in other procedure arguments.
31250     - Drop the old code to choke directory connections when the
31251       corresponding OR connections got full: thanks to the cell queue
31252       feature, OR conns don't get full any more.
31253     - Make dns_resolve() handle attaching connections to circuits
31254       properly, so the caller doesn't have to.
31255     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
31256     - Keep the connection array as a dynamic smartlist_t, rather than as
31257       a fixed-sized array. This is important, as the number of connections
31258       is becoming increasingly decoupled from the number of sockets.
31261 Changes in version 0.1.2.14 - 2007-05-25
31262   Tor 0.1.2.14 changes the addresses of two directory authorities (this
31263   change especially affects those who serve or use hidden services),
31264   and fixes several other crash- and security-related bugs.
31266   o Directory authority changes:
31267     - Two directory authorities (moria1 and moria2) just moved to new
31268       IP addresses. This change will particularly affect those who serve
31269       or use hidden services.
31271   o Major bugfixes (crashes):
31272     - If a directory server runs out of space in the connection table
31273       as it's processing a begin_dir request, it will free the exit stream
31274       but leave it attached to the circuit, leading to unpredictable
31275       behavior. (Reported by seeess, fixes bug 425.)
31276     - Fix a bug in dirserv_remove_invalid() that would cause authorities
31277       to corrupt memory under some really unlikely scenarios.
31278     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
31279     - Avoid segfaults when reading from mmaped descriptor file. (Reported
31280       by lodger.)
31282   o Major bugfixes (security):
31283     - When choosing an entry guard for a circuit, avoid using guards
31284       that are in the same family as the chosen exit -- not just guards
31285       that are exactly the chosen exit. (Reported by lodger.)
31287   o Major bugfixes (resource management):
31288     - If a directory authority is down, skip it when deciding where to get
31289       networkstatus objects or descriptors. Otherwise we keep asking
31290       every 10 seconds forever. Fixes bug 384.
31291     - Count it as a failure if we fetch a valid network-status but we
31292       don't want to keep it. Otherwise we'll keep fetching it and keep
31293       not wanting to keep it. Fixes part of bug 422.
31294     - If all of our dirservers have given us bad or no networkstatuses
31295       lately, then stop hammering them once per minute even when we
31296       think they're failed. Fixes another part of bug 422.
31298   o Minor bugfixes:
31299     - Actually set the purpose correctly for descriptors inserted with
31300       purpose=controller.
31301     - When we have k non-v2 authorities in our DirServer config,
31302       we ignored the last k authorities in the list when updating our
31303       network-statuses.
31304     - Correctly back-off from requesting router descriptors that we are
31305       having a hard time downloading.
31306     - Read resolv.conf files correctly on platforms where read() returns
31307       partial results on small file reads.
31308     - Don't rebuild the entire router store every time we get 32K of
31309       routers: rebuild it when the journal gets very large, or when
31310       the gaps in the store get very large.
31312   o Minor features:
31313     - When routers publish SVN revisions in their router descriptors,
31314       authorities now include those versions correctly in networkstatus
31315       documents.
31316     - Warn when using a version of libevent before 1.3b to run a server on
31317       OSX or BSD: these versions interact badly with userspace threads.
31320 Changes in version 0.1.2.13 - 2007-04-24
31321   This release features some major anonymity fixes, such as safer path
31322   selection; better client performance; faster bootstrapping, better
31323   address detection, and better DNS support for servers; write limiting as
31324   well as read limiting to make servers easier to run; and a huge pile of
31325   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
31327   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
31328   of the Freenode IRC network, remembering his patience and vision for
31329   free speech on the Internet.
31331   o Minor fixes:
31332     - Fix a memory leak when we ask for "all" networkstatuses and we
31333       get one we don't recognize.
31334     - Add more asserts to hunt down bug 417.
31335     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
31338 Changes in version 0.1.2.12-rc - 2007-03-16
31339   o Major bugfixes:
31340     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
31341       directory information requested inside Tor connections (i.e. via
31342       begin_dir cells). It only triggered when the same connection was
31343       serving other data at the same time. Reported by seeess.
31345   o Minor bugfixes:
31346     - When creating a circuit via the controller, send a 'launched'
31347       event when we're done, so we follow the spec better.
31350 Changes in version 0.1.2.11-rc - 2007-03-15
31351   o Minor bugfixes (controller), reported by daejees:
31352     - Correct the control spec to match how the code actually responds
31353       to 'getinfo addr-mappings/*'.
31354     - The control spec described a GUARDS event, but the code
31355       implemented a GUARD event. Standardize on GUARD, but let people
31356       ask for GUARDS too.
31359 Changes in version 0.1.2.10-rc - 2007-03-07
31360   o Major bugfixes (Windows):
31361     - Do not load the NT services library functions (which may not exist)
31362       just to detect if we're a service trying to shut down. Now we run
31363       on Win98 and friends again.
31365   o Minor bugfixes (other):
31366     - Clarify a couple of log messages.
31367     - Fix a misleading socks5 error number.
31370 Changes in version 0.1.2.9-rc - 2007-03-02
31371   o Major bugfixes (Windows):
31372     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
31373       of the usual GCC "%llu". This prevents a bug when saving 64-bit
31374       int configuration values: the high-order 32 bits would get
31375       truncated. In particular, we were being bitten by the default
31376       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
31377       and maybe also bug 397.)
31379   o Minor bugfixes (performance):
31380     - Use OpenSSL's AES implementation on platforms where it's faster.
31381       This could save us as much as 10% CPU usage.
31383   o Minor bugfixes (server):
31384     - Do not rotate onion key immediately after setting it for the first
31385       time.
31387   o Minor bugfixes (directory authorities):
31388     - Stop calling servers that have been hibernating for a long time
31389       "stable". Also, stop letting hibernating or obsolete servers affect
31390       uptime and bandwidth cutoffs.
31391     - Stop listing hibernating servers in the v1 directory.
31393   o Minor bugfixes (hidden services):
31394     - Upload hidden service descriptors slightly less often, to reduce
31395       load on authorities.
31397   o Minor bugfixes (other):
31398     - Fix an assert that could trigger if a controller quickly set then
31399       cleared EntryNodes. Bug found by Udo van den Heuvel.
31400     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
31401       to INT32_MAX.
31402     - Fix a potential race condition in the rpm installer. Found by
31403       Stefan Nordhausen.
31404     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
31405       of 2 as indicating that the server is completely bad; it sometimes
31406       means that the server is just bad for the request in question. (may fix
31407       the last of bug 326.)
31408     - Disable encrypted directory connections when we don't have a server
31409       descriptor for the destination. We'll get this working again in
31410       the 0.2.0 branch.
31413 Changes in version 0.1.2.8-beta - 2007-02-26
31414   o Major bugfixes (crashes):
31415     - Stop crashing when the controller asks us to resetconf more than
31416       one config option at once. (Vidalia 0.0.11 does this.)
31417     - Fix a crash that happened on Win98 when we're given command-line
31418       arguments: don't try to load NT service functions from advapi32.dll
31419       except when we need them. (Bug introduced in 0.1.2.7-alpha;
31420       resolves bug 389.)
31421     - Fix a longstanding obscure crash bug that could occur when
31422       we run out of DNS worker processes. (Resolves bug 390.)
31424   o Major bugfixes (hidden services):
31425     - Correctly detect whether hidden service descriptor downloads are
31426       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
31428   o Major bugfixes (accounting):
31429     - When we start during an accounting interval before it's time to wake
31430       up, remember to wake up at the correct time. (May fix bug 342.)
31432   o Minor bugfixes (controller):
31433     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
31434       clear the corresponding on_circuit variable, and remember later
31435       that we don't need to send a redundant CLOSED event. Resolves part
31436       3 of bug 367.
31437     - Report events where a resolve succeeded or where we got a socks
31438       protocol error correctly, rather than calling both of them
31439       "INTERNAL".
31440     - Change reported stream target addresses to IP consistently when
31441       we finally get the IP from an exit node.
31442     - Send log messages to the controller even if they happen to be very
31443       long.
31445   o Minor bugfixes (other):
31446     - Display correct results when reporting which versions are
31447       recommended, and how recommended they are. (Resolves bug 383.)
31448     - Improve our estimates for directory bandwidth to be less random:
31449       guess that an unrecognized directory will have the average bandwidth
31450       from all known directories, not that it will have the average
31451       bandwidth from those directories earlier than it on the list.
31452     - If we start a server with ClientOnly 1, then set ClientOnly to 0
31453       and hup, stop triggering an assert based on an empty onion_key.
31454     - On platforms with no working mmap() equivalent, don't warn the
31455       user when cached-routers doesn't exist.
31456     - Warn the user when mmap() [or its equivalent] fails for some reason
31457       other than file-not-found.
31458     - Don't warn the user when cached-routers.new doesn't exist: that's
31459       perfectly fine when starting up for the first time.
31460     - When EntryNodes are configured, rebuild the guard list to contain,
31461       in order: the EntryNodes that were guards before; the rest of the
31462       EntryNodes; the nodes that were guards before.
31463     - Mask out all signals in sub-threads; only the libevent signal
31464       handler should be processing them. This should prevent some crashes
31465       on some machines using pthreads. (Patch from coderman.)
31466     - Fix switched arguments on memset in the implementation of
31467       tor_munmap() for systems with no mmap() call.
31468     - When Tor receives a router descriptor that it asked for, but
31469       no longer wants (because it has received fresh networkstatuses
31470       in the meantime), do not warn the user. Cache the descriptor if
31471       we're a cache; drop it if we aren't.
31472     - Make earlier entry guards _really_ get retried when the network
31473       comes back online.
31474     - On a malformed DNS reply, always give an error to the corresponding
31475       DNS request.
31476     - Build with recent libevents on platforms that do not define the
31477       nonstandard types "u_int8_t" and friends.
31479   o Minor features (controller):
31480     - Warn the user when an application uses the obsolete binary v0
31481       control protocol. We're planning to remove support for it during
31482       the next development series, so it's good to give people some
31483       advance warning.
31484     - Add STREAM_BW events to report per-entry-stream bandwidth
31485       use. (Patch from Robert Hogan.)
31486     - Rate-limit SIGNEWNYM signals in response to controllers that
31487       impolitely generate them for every single stream. (Patch from
31488       mwenge; closes bug 394.)
31489     - Make REMAP stream events have a SOURCE (cache or exit), and
31490       make them generated in every case where we get a successful
31491       connected or resolved cell.
31493   o Minor bugfixes (performance):
31494     - Call router_have_min_dir_info half as often. (This is showing up in
31495       some profiles, but not others.)
31496     - When using GCC, make log_debug never get called at all, and its
31497       arguments never get evaluated, when no debug logs are configured.
31498       (This is showing up in some profiles, but not others.)
31500   o Minor features:
31501     - Remove some never-implemented options. Mark PathlenCoinWeight as
31502       obsolete.
31503     - Implement proposal 106: Stop requiring clients to have well-formed
31504       certificates; stop checking nicknames in certificates. (Clients
31505       have certificates so that they can look like Tor servers, but in
31506       the future we might want to allow them to look like regular TLS
31507       clients instead. Nicknames in certificates serve no purpose other
31508       than making our protocol easier to recognize on the wire.)
31509     - Revise messages on handshake failure again to be even more clear about
31510       which are incoming connections and which are outgoing.
31511     - Discard any v1 directory info that's over 1 month old (for
31512       directories) or over 1 week old (for running-routers lists).
31513     - Do not warn when individual nodes in the configuration's EntryNodes,
31514       ExitNodes, etc are down: warn only when all possible nodes
31515       are down. (Fixes bug 348.)
31516     - Always remove expired routers and networkstatus docs before checking
31517       whether we have enough information to build circuits. (Fixes
31518       bug 373.)
31519     - Put a lower-bound on MaxAdvertisedBandwidth.
31522 Changes in version 0.1.2.7-alpha - 2007-02-06
31523   o Major bugfixes (rate limiting):
31524     - Servers decline directory requests much more aggressively when
31525       they're low on bandwidth. Otherwise they end up queueing more and
31526       more directory responses, which can't be good for latency.
31527     - But never refuse directory requests from local addresses.
31528     - Fix a memory leak when sending a 503 response for a networkstatus
31529       request.
31530     - Be willing to read or write on local connections (e.g. controller
31531       connections) even when the global rate limiting buckets are empty.
31532     - If our system clock jumps back in time, don't publish a negative
31533       uptime in the descriptor. Also, don't let the global rate limiting
31534       buckets go absurdly negative.
31535     - Flush local controller connection buffers periodically as we're
31536       writing to them, so we avoid queueing 4+ megabytes of data before
31537       trying to flush.
31539   o Major bugfixes (NT services):
31540     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
31541       command-line flag so that admins can override the default by saying
31542       "tor --service install --user "SomeUser"". This will not affect
31543       existing installed services. Also, warn the user that the service
31544       will look for its configuration file in the service user's
31545       %appdata% directory. (We can't do the 'hardwire the user's appdata
31546       directory' trick any more, since we may not have read access to that
31547       directory.)
31549   o Major bugfixes (other):
31550     - Previously, we would cache up to 16 old networkstatus documents
31551       indefinitely, if they came from nontrusted authorities. Now we
31552       discard them if they are more than 10 days old.
31553     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
31554       Del Vecchio).
31555     - Detect and reject malformed DNS responses containing circular
31556       pointer loops.
31557     - If exits are rare enough that we're not marking exits as guards,
31558       ignore exit bandwidth when we're deciding the required bandwidth
31559       to become a guard.
31560     - When we're handling a directory connection tunneled over Tor,
31561       don't fill up internal memory buffers with all the data we want
31562       to tunnel; instead, only add it if the OR connection that will
31563       eventually receive it has some room for it. (This can lead to
31564       slowdowns in tunneled dir connections; a better solution will have
31565       to wait for 0.2.0.)
31567   o Minor bugfixes (dns):
31568     - Add some defensive programming to eventdns.c in an attempt to catch
31569       possible memory-stomping bugs.
31570     - Detect and reject DNS replies containing IPv4 or IPv6 records with
31571       an incorrect number of bytes. (Previously, we would ignore the
31572       extra bytes.)
31573     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
31574       in the correct order, and doesn't crash.
31575     - Free memory held in recently-completed DNS lookup attempts on exit.
31576       This was not a memory leak, but may have been hiding memory leaks.
31577     - Handle TTL values correctly on reverse DNS lookups.
31578     - Treat failure to parse resolv.conf as an error.
31580   o Minor bugfixes (other):
31581     - Fix crash with "tor --list-fingerprint" (reported by seeess).
31582     - When computing clock skew from directory HTTP headers, consider what
31583       time it was when we finished asking for the directory, not what
31584       time it is now.
31585     - Expire socks connections if they spend too long waiting for the
31586       handshake to finish. Previously we would let them sit around for
31587       days, if the connecting application didn't close them either.
31588     - And if the socks handshake hasn't started, don't send a
31589       "DNS resolve socks failed" handshake reply; just close it.
31590     - Stop using C functions that OpenBSD's linker doesn't like.
31591     - Don't launch requests for descriptors unless we have networkstatuses
31592       from at least half of the authorities. This delays the first
31593       download slightly under pathological circumstances, but can prevent
31594       us from downloading a bunch of descriptors we don't need.
31595     - Do not log IPs with TLS failures for incoming TLS
31596       connections. (Fixes bug 382.)
31597     - If the user asks to use invalid exit nodes, be willing to use
31598       unstable ones.
31599     - Stop using the reserved ac_cv namespace in our configure script.
31600     - Call stat() slightly less often; use fstat() when possible.
31601     - Refactor the way we handle pending circuits when an OR connection
31602       completes or fails, in an attempt to fix a rare crash bug.
31603     - Only rewrite a conn's address based on X-Forwarded-For: headers
31604       if it's a parseable public IP address; and stop adding extra quotes
31605       to the resulting address.
31607   o Major features:
31608     - Weight directory requests by advertised bandwidth. Now we can
31609       let servers enable write limiting but still allow most clients to
31610       succeed at their directory requests. (We still ignore weights when
31611       choosing a directory authority; I hope this is a feature.)
31613   o Minor features:
31614     - Create a new file ReleaseNotes which was the old ChangeLog. The
31615       new ChangeLog file now includes the summaries for all development
31616       versions too.
31617     - Check for addresses with invalid characters at the exit as well
31618       as at the client, and warn less verbosely when they fail. You can
31619       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
31620     - Adapt a patch from goodell to let the contrib/exitlist script
31621       take arguments rather than require direct editing.
31622     - Inform the server operator when we decide not to advertise a
31623       DirPort due to AccountingMax enabled or a low BandwidthRate. It
31624       was confusing Zax, so now we're hopefully more helpful.
31625     - Bring us one step closer to being able to establish an encrypted
31626       directory tunnel without knowing a descriptor first. Still not
31627       ready yet. As part of the change, now assume we can use a
31628       create_fast cell if we don't know anything about a router.
31629     - Allow exit nodes to use nameservers running on ports other than 53.
31630     - Servers now cache reverse DNS replies.
31631     - Add an --ignore-missing-torrc command-line option so that we can
31632       get the "use sensible defaults if the configuration file doesn't
31633       exist" behavior even when specifying a torrc location on the command
31634       line.
31636   o Minor features (controller):
31637     - Track reasons for OR connection failure; make these reasons
31638       available via the controller interface. (Patch from Mike Perry.)
31639     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
31640       can learn when clients are sending malformed hostnames to Tor.
31641     - Clean up documentation for controller status events.
31642     - Add a REMAP status to stream events to note that a stream's
31643       address has changed because of a cached address or a MapAddress
31644       directive.
31647 Changes in version 0.1.2.6-alpha - 2007-01-09
31648   o Major bugfixes:
31649     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
31650       connection handles more than 4 gigs in either direction, we crash.
31651     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
31652       advertised exit node, somebody might try to exit from us when
31653       we're bootstrapping and before we've built our descriptor yet.
31654       Refuse the connection rather than crashing.
31656   o Minor bugfixes:
31657     - Warn if we (as a server) find that we've resolved an address that we
31658       weren't planning to resolve.
31659     - Warn that using select() on any libevent version before 1.1 will be
31660       unnecessarily slow (even for select()).
31661     - Flush ERR-level controller status events just like we currently
31662       flush ERR-level log events, so that a Tor shutdown doesn't prevent
31663       the controller from learning about current events.
31665   o Minor features (more controller status events):
31666     - Implement EXTERNAL_ADDRESS server status event so controllers can
31667       learn when our address changes.
31668     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
31669       can learn when directories reject our descriptor.
31670     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
31671       can learn when a client application is speaking a non-socks protocol
31672       to our SocksPort.
31673     - Implement DANGEROUS_SOCKS client status event so controllers
31674       can learn when a client application is leaking DNS addresses.
31675     - Implement BUG general status event so controllers can learn when
31676       Tor is unhappy about its internal invariants.
31677     - Implement CLOCK_SKEW general status event so controllers can learn
31678       when Tor thinks the system clock is set incorrectly.
31679     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
31680       server status events so controllers can learn when their descriptors
31681       are accepted by a directory.
31682     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
31683       server status events so controllers can learn about Tor's progress in
31684       deciding whether it's reachable from the outside.
31685     - Implement BAD_LIBEVENT general status event so controllers can learn
31686       when we have a version/method combination in libevent that needs to
31687       be changed.
31688     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
31689       and DNS_USELESS server status events so controllers can learn
31690       about changes to DNS server status.
31692   o Minor features (directory):
31693     - Authorities no longer recommend exits as guards if this would shift
31694       too much load to the exit nodes.
31697 Changes in version 0.1.2.5-alpha - 2007-01-06
31698   o Major features:
31699     - Enable write limiting as well as read limiting. Now we sacrifice
31700       capacity if we're pushing out lots of directory traffic, rather
31701       than overrunning the user's intended bandwidth limits.
31702     - Include TLS overhead when counting bandwidth usage; previously, we
31703       would count only the bytes sent over TLS, but not the bytes used
31704       to send them.
31705     - Support running the Tor service with a torrc not in the same
31706       directory as tor.exe and default to using the torrc located in
31707       the %appdata%\Tor\ of the user who installed the service. Patch
31708       from Matt Edman.
31709     - Servers now check for the case when common DNS requests are going to
31710       wildcarded addresses (i.e. all getting the same answer), and change
31711       their exit policy to reject *:* if it's happening.
31712     - Implement BEGIN_DIR cells, so we can connect to the directory
31713       server via TLS to do encrypted directory requests rather than
31714       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
31715       config options if you like.
31717   o Minor features (config and docs):
31718     - Start using the state file to store bandwidth accounting data:
31719       the bw_accounting file is now obsolete. We'll keep generating it
31720       for a while for people who are still using 0.1.2.4-alpha.
31721     - Try to batch changes to the state file so that we do as few
31722       disk writes as possible while still storing important things in
31723       a timely fashion.
31724     - The state file and the bw_accounting file get saved less often when
31725       the AvoidDiskWrites config option is set.
31726     - Make PIDFile work on Windows (untested).
31727     - Add internal descriptions for a bunch of configuration options:
31728       accessible via controller interface and in comments in saved
31729       options files.
31730     - Reject *:563 (NNTPS) in the default exit policy. We already reject
31731       NNTP by default, so this seems like a sensible addition.
31732     - Clients now reject hostnames with invalid characters. This should
31733       avoid some inadvertent info leaks. Add an option
31734       AllowNonRFC953Hostnames to disable this behavior, in case somebody
31735       is running a private network with hosts called @, !, and #.
31736     - Add a maintainer script to tell us which options are missing
31737       documentation: "make check-docs".
31738     - Add a new address-spec.txt document to describe our special-case
31739       addresses: .exit, .onion, and .noconnnect.
31741   o Minor features (DNS):
31742     - Ongoing work on eventdns infrastructure: now it has dns server
31743       and ipv6 support. One day Tor will make use of it.
31744     - Add client-side caching for reverse DNS lookups.
31745     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
31746     - When we change nameservers or IP addresses, reset and re-launch
31747       our tests for DNS hijacking.
31749   o Minor features (directory):
31750     - Authorities now specify server versions in networkstatus. This adds
31751       about 2% to the size of compressed networkstatus docs, and allows
31752       clients to tell which servers support BEGIN_DIR and which don't.
31753       The implementation is forward-compatible with a proposed future
31754       protocol version scheme not tied to Tor versions.
31755     - DirServer configuration lines now have an orport= option so
31756       clients can open encrypted tunnels to the authorities without
31757       having downloaded their descriptors yet. Enabled for moria1,
31758       moria2, tor26, and lefkada now in the default configuration.
31759     - Directory servers are more willing to send a 503 "busy" if they
31760       are near their write limit, especially for v1 directory requests.
31761       Now they can use their limited bandwidth for actual Tor traffic.
31762     - Clients track responses with status 503 from dirservers. After a
31763       dirserver has given us a 503, we try not to use it until an hour has
31764       gone by, or until we have no dirservers that haven't given us a 503.
31765     - When we get a 503 from a directory, and we're not a server, we don't
31766       count the failure against the total number of failures allowed
31767       for the thing we're trying to download.
31768     - Report X-Your-Address-Is correctly from tunneled directory
31769       connections; don't report X-Your-Address-Is when it's an internal
31770       address; and never believe reported remote addresses when they're
31771       internal.
31772     - Protect against an unlikely DoS attack on directory servers.
31773     - Add a BadDirectory flag to network status docs so that authorities
31774       can (eventually) tell clients about caches they believe to be
31775       broken.
31777   o Minor features (controller):
31778     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
31779     - Reimplement GETINFO so that info/names stays in sync with the
31780       actual keys.
31781     - Implement "GETINFO fingerprint".
31782     - Implement "SETEVENTS GUARD" so controllers can get updates on
31783       entry guard status as it changes.
31785   o Minor features (clean up obsolete pieces):
31786     - Remove some options that have been deprecated since at least
31787       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
31788       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
31789       to set log options.
31790     - We no longer look for identity and onion keys in "identity.key" and
31791       "onion.key" -- these were replaced by secret_id_key and
31792       secret_onion_key in 0.0.8pre1.
31793     - We no longer require unrecognized directory entries to be
31794       preceded by "opt".
31796   o Major bugfixes (security):
31797     - Stop sending the HttpProxyAuthenticator string to directory
31798       servers when directory connections are tunnelled through Tor.
31799     - Clients no longer store bandwidth history in the state file.
31800     - Do not log introduction points for hidden services if SafeLogging
31801       is set.
31802     - When generating bandwidth history, round down to the nearest
31803       1k. When storing accounting data, round up to the nearest 1k.
31804     - When we're running as a server, remember when we last rotated onion
31805       keys, so that we will rotate keys once they're a week old even if
31806       we never stay up for a week ourselves.
31808   o Major bugfixes (other):
31809     - Fix a longstanding bug in eventdns that prevented the count of
31810       timed-out resolves from ever being reset. This bug caused us to
31811       give up on a nameserver the third time it timed out, and try it
31812       10 seconds later... and to give up on it every time it timed out
31813       after that.
31814     - Take out the '5 second' timeout from the connection retry
31815       schedule. Now the first connect attempt will wait a full 10
31816       seconds before switching to a new circuit. Perhaps this will help
31817       a lot. Based on observations from Mike Perry.
31818     - Fix a bug on the Windows implementation of tor_mmap_file() that
31819       would prevent the cached-routers file from ever loading. Reported
31820       by John Kimble.
31822   o Minor bugfixes:
31823     - Fix an assert failure when a directory authority sets
31824       AuthDirRejectUnlisted and then receives a descriptor from an
31825       unlisted router. Reported by seeess.
31826     - Avoid a double-free when parsing malformed DirServer lines.
31827     - Fix a bug when a BSD-style PF socket is first used. Patch from
31828       Fabian Keil.
31829     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
31830       to resolve an address at a given exit node even when they ask for
31831       it by name.
31832     - Servers no longer ever list themselves in their "family" line,
31833       even if configured to do so. This makes it easier to configure
31834       family lists conveniently.
31835     - When running as a server, don't fall back to 127.0.0.1 when no
31836       nameservers are configured in /etc/resolv.conf; instead, make the
31837       user fix resolv.conf or specify nameservers explicitly. (Resolves
31838       bug 363.)
31839     - Stop accepting certain malformed ports in configured exit policies.
31840     - Don't re-write the fingerprint file every restart, unless it has
31841       changed.
31842     - Stop warning when a single nameserver fails: only warn when _all_ of
31843       our nameservers have failed. Also, when we only have one nameserver,
31844       raise the threshold for deciding that the nameserver is dead.
31845     - Directory authorities now only decide that routers are reachable
31846       if their identity keys are as expected.
31847     - When the user uses bad syntax in the Log config line, stop
31848       suggesting other bad syntax as a replacement.
31849     - Correctly detect ipv6 DNS capability on OpenBSD.
31851   o Minor bugfixes (controller):
31852     - Report the circuit number correctly in STREAM CLOSED events. Bug
31853       reported by Mike Perry.
31854     - Do not report bizarre values for results of accounting GETINFOs
31855       when the last second's write or read exceeds the allotted bandwidth.
31856     - Report "unrecognized key" rather than an empty string when the
31857       controller tries to fetch a networkstatus that doesn't exist.
31860 Changes in version 0.1.1.26 - 2006-12-14
31861   o Security bugfixes:
31862     - Stop sending the HttpProxyAuthenticator string to directory
31863       servers when directory connections are tunnelled through Tor.
31864     - Clients no longer store bandwidth history in the state file.
31865     - Do not log introduction points for hidden services if SafeLogging
31866       is set.
31868   o Minor bugfixes:
31869     - Fix an assert failure when a directory authority sets
31870       AuthDirRejectUnlisted and then receives a descriptor from an
31871       unlisted router (reported by seeess).
31874 Changes in version 0.1.2.4-alpha - 2006-12-03
31875   o Major features:
31876     - Add support for using natd; this allows FreeBSDs earlier than
31877       5.1.2 to have ipfw send connections through Tor without using
31878       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
31880   o Minor features:
31881     - Make all connections to addresses of the form ".noconnect"
31882       immediately get closed. This lets application/controller combos
31883       successfully test whether they're talking to the same Tor by
31884       watching for STREAM events.
31885     - Make cross.sh cross-compilation script work even when autogen.sh
31886       hasn't been run. (Patch from Michael Mohr.)
31887     - Statistics dumped by -USR2 now include a breakdown of public key
31888       operations, for profiling.
31890   o Major bugfixes:
31891     - Fix a major leak when directory authorities parse their
31892       approved-routers list, a minor memory leak when we fail to pick
31893       an exit node, and a few rare leaks on errors.
31894     - Handle TransPort connections even when the server sends data before
31895       the client sends data. Previously, the connection would just hang
31896       until the client sent data. (Patch from tup based on patch from
31897       Zajcev Evgeny.)
31898     - Avoid assert failure when our cached-routers file is empty on
31899       startup.
31901   o Minor bugfixes:
31902     - Don't log spurious warnings when we see a circuit close reason we
31903       don't recognize; it's probably just from a newer version of Tor.
31904     - Have directory authorities allow larger amounts of drift in uptime
31905       without replacing the server descriptor: previously, a server that
31906       restarted every 30 minutes could have 48 "interesting" descriptors
31907       per day.
31908     - Start linking to the Tor specification and Tor reference manual
31909       correctly in the Windows installer.
31910     - Add Vidalia to the OS X uninstaller script, so when we uninstall
31911       Tor/Privoxy we also uninstall Vidalia.
31912     - Resume building on Irix64, and fix a lot of warnings from its
31913       MIPSpro C compiler.
31914     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
31915       when we're running as a client.
31918 Changes in version 0.1.1.25 - 2006-11-04
31919   o Major bugfixes:
31920     - When a client asks us to resolve (rather than connect to)
31921       an address, and we have a cached answer, give them the cached
31922       answer. Previously, we would give them no answer at all.
31923     - We were building exactly the wrong circuits when we predict
31924       hidden service requirements, meaning Tor would have to build all
31925       its circuits on demand.
31926     - If none of our live entry guards have a high uptime, but we
31927       require a guard with a high uptime, try adding a new guard before
31928       we give up on the requirement. This patch should make long-lived
31929       connections more stable on average.
31930     - When testing reachability of our DirPort, don't launch new
31931       tests when there's already one in progress -- unreachable
31932       servers were stacking up dozens of testing streams.
31934   o Security bugfixes:
31935     - When the user sends a NEWNYM signal, clear the client-side DNS
31936       cache too. Otherwise we continue to act on previous information.
31938   o Minor bugfixes:
31939     - Avoid a memory corruption bug when creating a hash table for
31940       the first time.
31941     - Avoid possibility of controller-triggered crash when misusing
31942       certain commands from a v0 controller on platforms that do not
31943       handle printf("%s",NULL) gracefully.
31944     - Avoid infinite loop on unexpected controller input.
31945     - Don't log spurious warnings when we see a circuit close reason we
31946       don't recognize; it's probably just from a newer version of Tor.
31947     - Add Vidalia to the OS X uninstaller script, so when we uninstall
31948       Tor/Privoxy we also uninstall Vidalia.
31951 Changes in version 0.1.2.3-alpha - 2006-10-29
31952   o Minor features:
31953     - Prepare for servers to publish descriptors less often: never
31954       discard a descriptor simply for being too old until either it is
31955       recommended by no authorities, or until we get a better one for
31956       the same router. Make caches consider retaining old recommended
31957       routers for even longer.
31958     - If most authorities set a BadExit flag for a server, clients
31959       don't think of it as a general-purpose exit. Clients only consider
31960       authorities that advertise themselves as listing bad exits.
31961     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
31962       headers for content, so that we can work better in the presence of
31963       caching HTTP proxies.
31964     - Allow authorities to list nodes as bad exits by fingerprint or by
31965       address.
31967   o Minor features, controller:
31968     - Add a REASON field to CIRC events; for backward compatibility, this
31969       field is sent only to controllers that have enabled the extended
31970       event format. Also, add additional reason codes to explain why
31971       a given circuit has been destroyed or truncated. (Patches from
31972       Mike Perry)
31973     - Add a REMOTE_REASON field to extended CIRC events to tell the
31974       controller about why a remote OR told us to close a circuit.
31975     - Stream events also now have REASON and REMOTE_REASON fields,
31976       working much like those for circuit events.
31977     - There's now a GETINFO ns/... field so that controllers can ask Tor
31978       about the current status of a router.
31979     - A new event type "NS" to inform a controller when our opinion of
31980       a router's status has changed.
31981     - Add a GETINFO events/names and GETINFO features/names so controllers
31982       can tell which events and features are supported.
31983     - A new CLEARDNSCACHE signal to allow controllers to clear the
31984       client-side DNS cache without expiring circuits.
31986   o Security bugfixes:
31987     - When the user sends a NEWNYM signal, clear the client-side DNS
31988       cache too. Otherwise we continue to act on previous information.
31990   o Minor bugfixes:
31991     - Avoid sending junk to controllers or segfaulting when a controller
31992       uses EVENT_NEW_DESC with verbose nicknames.
31993     - Stop triggering asserts if the controller tries to extend hidden
31994       service circuits (reported by mwenge).
31995     - Avoid infinite loop on unexpected controller input.
31996     - When the controller does a "GETINFO network-status", tell it
31997       about even those routers whose descriptors are very old, and use
31998       long nicknames where appropriate.
31999     - Change NT service functions to be loaded on demand. This lets us
32000       build with MinGW without breaking Tor for Windows 98 users.
32001     - Do DirPort reachability tests less often, since a single test
32002       chews through many circuits before giving up.
32003     - In the hidden service example in torrc.sample, stop recommending
32004       esoteric and discouraged hidden service options.
32005     - When stopping an NT service, wait up to 10 sec for it to actually
32006       stop. Patch from Matt Edman; resolves bug 295.
32007     - Fix handling of verbose nicknames with ORCONN controller events:
32008       make them show up exactly when requested, rather than exactly when
32009       not requested.
32010     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
32011       printing a duplicate "$" in the keys we send (reported by mwenge).
32012     - Correctly set maximum connection limit on Cygwin. (This time
32013       for sure!)
32014     - Try to detect Windows correctly when cross-compiling.
32015     - Detect the size of the routers file correctly even if it is
32016       corrupted (on systems without mmap) or not page-aligned (on systems
32017       with mmap). This bug was harmless.
32018     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
32019       to open a stream fails; now we do in more cases. This should
32020       make clients able to find a good exit faster in some cases, since
32021       unhandleable requests will now get an error rather than timing out.
32022     - Resolve two memory leaks when rebuilding the on-disk router cache
32023       (reported by fookoowa).
32024     - Clean up minor code warnings suggested by the MIPSpro C compiler,
32025       and reported by some Centos users.
32026     - Controller signals now work on non-Unix platforms that don't define
32027       SIGUSR1 and SIGUSR2 the way we expect.
32028     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
32029       values before failing, and always enables eventdns.
32030     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
32031       Try to fix this in configure.in by checking for most functions
32032       before we check for libevent.
32035 Changes in version 0.1.2.2-alpha - 2006-10-07
32036   o Major features:
32037     - Make our async eventdns library on-by-default for Tor servers,
32038       and plan to deprecate the separate dnsworker threads.
32039     - Add server-side support for "reverse" DNS lookups (using PTR
32040       records so clients can determine the canonical hostname for a given
32041       IPv4 address). Only supported by servers using eventdns; servers
32042       now announce in their descriptors whether they support eventdns.
32043     - Specify and implement client-side SOCKS5 interface for reverse DNS
32044       lookups (see doc/socks-extensions.txt).
32045     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
32046       connect to directory servers through Tor. Previously, clients needed
32047       to find Tor exits to make private connections to directory servers.
32048     - Avoid choosing Exit nodes for entry or middle hops when the
32049       total bandwidth available from non-Exit nodes is much higher than
32050       the total bandwidth available from Exit nodes.
32051     - Workaround for name servers (like Earthlink's) that hijack failing
32052       DNS requests and replace the no-such-server answer with a "helpful"
32053       redirect to an advertising-driven search portal. Also work around
32054       DNS hijackers who "helpfully" decline to hijack known-invalid
32055       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
32056       lets you turn it off.
32057     - Send out a burst of long-range padding cells once we've established
32058       that we're reachable. Spread them over 4 circuits, so hopefully
32059       a few will be fast. This exercises our bandwidth and bootstraps
32060       us into the directory more quickly.
32062   o New/improved config options:
32063     - Add new config option "ResolvConf" to let the server operator
32064       choose an alternate resolve.conf file when using eventdns.
32065     - Add an "EnforceDistinctSubnets" option to control our "exclude
32066       servers on the same /16" behavior. It's still on by default; this
32067       is mostly for people who want to operate private test networks with
32068       all the machines on the same subnet.
32069     - If one of our entry guards is on the ExcludeNodes list, or the
32070       directory authorities don't think it's a good guard, treat it as
32071       if it were unlisted: stop using it as a guard, and throw it off
32072       the guards list if it stays that way for a long time.
32073     - Allow directory authorities to be marked separately as authorities
32074       for the v1 directory protocol, the v2 directory protocol, and
32075       as hidden service directories, to make it easier to retire old
32076       authorities. V1 authorities should set "HSAuthoritativeDir 1"
32077       to continue being hidden service authorities too.
32078     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
32080   o Minor features, controller:
32081     - Fix CIRC controller events so that controllers can learn the
32082       identity digests of non-Named servers used in circuit paths.
32083     - Let controllers ask for more useful identifiers for servers. Instead
32084       of learning identity digests for un-Named servers and nicknames
32085       for Named servers, the new identifiers include digest, nickname,
32086       and indication of Named status. Off by default; see control-spec.txt
32087       for more information.
32088     - Add a "getinfo address" controller command so it can display Tor's
32089       best guess to the user.
32090     - New controller event to alert the controller when our server
32091       descriptor has changed.
32092     - Give more meaningful errors on controller authentication failure.
32094   o Minor features, other:
32095     - When asked to resolve a hostname, don't use non-exit servers unless
32096       requested to do so. This allows servers with broken DNS to be
32097       useful to the network.
32098     - Divide eventdns log messages into warn and info messages.
32099     - Reserve the nickname "Unnamed" for routers that can't pick
32100       a hostname: any router can call itself Unnamed; directory
32101       authorities will never allocate Unnamed to any particular router;
32102       clients won't believe that any router is the canonical Unnamed.
32103     - Only include function names in log messages for info/debug messages.
32104       For notice/warn/err, the content of the message should be clear on
32105       its own, and printing the function name only confuses users.
32106     - Avoid some false positives during reachability testing: don't try
32107       to test via a server that's on the same /24 as us.
32108     - If we fail to build a circuit to an intended enclave, and it's
32109       not mandatory that we use that enclave, stop wanting it.
32110     - When eventdns is enabled, allow multithreaded builds on NetBSD and
32111       OpenBSD. (We had previously disabled threads on these platforms
32112       because they didn't have working thread-safe resolver functions.)
32114   o Major bugfixes, anonymity/security:
32115     - If a client asked for a server by name, and there's a named server
32116       in our network-status but we don't have its descriptor yet, we
32117       could return an unnamed server instead.
32118     - Fix NetBSD bug that could allow someone to force uninitialized RAM
32119       to be sent to a server's DNS resolver. This only affects NetBSD
32120       and other platforms that do not bounds-check tolower().
32121     - Reject (most) attempts to use Tor circuits with length one. (If
32122       many people start using Tor as a one-hop proxy, exit nodes become
32123       a more attractive target for compromise.)
32124     - Just because your DirPort is open doesn't mean people should be
32125       able to remotely teach you about hidden service descriptors. Now
32126       only accept rendezvous posts if you've got HSAuthoritativeDir set.
32128   o Major bugfixes, other:
32129     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
32130     - When a client asks the server to resolve (not connect to)
32131       an address, and it has a cached answer, give them the cached answer.
32132       Previously, the server would give them no answer at all.
32133     - Allow really slow clients to not hang up five minutes into their
32134       directory downloads (suggested by Adam J. Richter).
32135     - We were building exactly the wrong circuits when we anticipated
32136       hidden service requirements, meaning Tor would have to build all
32137       its circuits on demand.
32138     - Avoid crashing when we mmap a router cache file of size 0.
32139     - When testing reachability of our DirPort, don't launch new
32140       tests when there's already one in progress -- unreachable
32141       servers were stacking up dozens of testing streams.
32143   o Minor bugfixes, correctness:
32144     - If we're a directory mirror and we ask for "all" network status
32145       documents, we would discard status documents from authorities
32146       we don't recognize.
32147     - Avoid a memory corruption bug when creating a hash table for
32148       the first time.
32149     - Avoid controller-triggered crash when misusing certain commands
32150       from a v0 controller on platforms that do not handle
32151       printf("%s",NULL) gracefully.
32152     - Don't crash when a controller sends a third argument to an
32153       "extendcircuit" request.
32154     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
32155       response; fix error code when "getinfo dir/status/" fails.
32156     - Avoid crash when telling controller stream-status and a stream
32157       is detached.
32158     - Patch from Adam Langley to fix assert() in eventdns.c.
32159     - Fix a debug log message in eventdns to say "X resolved to Y"
32160       instead of "X resolved to X".
32161     - Make eventdns give strings for DNS errors, not just error numbers.
32162     - Track unreachable entry guards correctly: don't conflate
32163       'unreachable by us right now' with 'listed as down by the directory
32164       authorities'. With the old code, if a guard was unreachable by
32165       us but listed as running, it would clog our guard list forever.
32166     - Behave correctly in case we ever have a network with more than
32167       2GB/s total advertised capacity.
32168     - Make TrackExitHosts case-insensitive, and fix the behavior of
32169       ".suffix" TrackExitHosts items to avoid matching in the middle of
32170       an address.
32171     - Finally fix the openssl warnings from newer gccs that believe that
32172       ignoring a return value is okay, but casting a return value and
32173       then ignoring it is a sign of madness.
32174     - Prevent the contrib/exitlist script from printing the same
32175       result more than once.
32176     - Patch from Steve Hildrey: Generate network status correctly on
32177       non-versioning dirservers.
32178     - Don't listen to the X-Your-Address-Is hint if you did the lookup
32179       via Tor; otherwise you'll think you're the exit node's IP address.
32181   o Minor bugfixes, performance:
32182     - Two small performance improvements on parsing descriptors.
32183     - Major performance improvement on inserting descriptors: change
32184       algorithm from O(n^2) to O(n).
32185     - Make the common memory allocation path faster on machines where
32186       malloc(0) returns a pointer.
32187     - Start remembering X-Your-Address-Is directory hints even if you're
32188       a client, so you can become a server more smoothly.
32189     - Avoid duplicate entries on MyFamily line in server descriptor.
32191   o Packaging, features:
32192     - Remove architecture from OS X builds. The official builds are
32193       now universal binaries.
32194     - The Debian package now uses --verify-config when (re)starting,
32195       to distinguish configuration errors from other errors.
32196     - Update RPMs to require libevent 1.1b.
32198   o Packaging, bugfixes:
32199     - Patches so Tor builds with MinGW on Windows.
32200     - Patches so Tor might run on Cygwin again.
32201     - Resume building on non-gcc compilers and ancient gcc. Resume
32202       building with the -O0 compile flag. Resume building cleanly on
32203       Debian woody.
32204     - Run correctly on OS X platforms with case-sensitive filesystems.
32205     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
32206     - Add autoconf checks so Tor can build on Solaris x86 again.
32208   o Documentation
32209     - Documented (and renamed) ServerDNSSearchDomains and
32210       ServerDNSResolvConfFile options.
32211     - Be clearer that the *ListenAddress directives can be repeated
32212       multiple times.
32215 Changes in version 0.1.1.24 - 2006-09-29
32216   o Major bugfixes:
32217     - Allow really slow clients to not hang up five minutes into their
32218       directory downloads (suggested by Adam J. Richter).
32219     - Fix major performance regression from 0.1.0.x: instead of checking
32220       whether we have enough directory information every time we want to
32221       do something, only check when the directory information has changed.
32222       This should improve client CPU usage by 25-50%.
32223     - Don't crash if, after a server has been running for a while,
32224       it can't resolve its hostname.
32226   o Minor bugfixes:
32227     - Allow Tor to start when RunAsDaemon is set but no logs are set.
32228     - Don't crash when the controller receives a third argument to an
32229       "extendcircuit" request.
32230     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
32231       response; fix error code when "getinfo dir/status/" fails.
32232     - Fix configure.in to not produce broken configure files with
32233       more recent versions of autoconf. Thanks to Clint for his auto*
32234       voodoo.
32235     - Fix security bug on NetBSD that could allow someone to force
32236       uninitialized RAM to be sent to a server's DNS resolver. This
32237       only affects NetBSD and other platforms that do not bounds-check
32238       tolower().
32239     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
32240       methods: these are known to be buggy.
32241     - If we're a directory mirror and we ask for "all" network status
32242       documents, we would discard status documents from authorities
32243       we don't recognize.
32246 Changes in version 0.1.2.1-alpha - 2006-08-27
32247   o Major features:
32248     - Add "eventdns" async dns library from Adam Langley, tweaked to
32249       build on OSX and Windows. Only enabled if you pass the
32250       --enable-eventdns argument to configure.
32251     - Allow servers with no hostname or IP address to learn their
32252       IP address by asking the directory authorities. This code only
32253       kicks in when you would normally have exited with a "no address"
32254       error. Nothing's authenticated, so use with care.
32255     - Rather than waiting a fixed amount of time between retrying
32256       application connections, we wait only 5 seconds for the first,
32257       10 seconds for the second, and 15 seconds for each retry after
32258       that. Hopefully this will improve the expected user experience.
32259     - Patch from Tup to add support for transparent AP connections:
32260       this basically bundles the functionality of trans-proxy-tor
32261       into the Tor mainline. Now hosts with compliant pf/netfilter
32262       implementations can redirect TCP connections straight to Tor
32263       without diverting through SOCKS. Needs docs.
32264     - Busy directory servers save lots of memory by spooling server
32265       descriptors, v1 directories, and v2 networkstatus docs to buffers
32266       as needed rather than en masse. Also mmap the cached-routers
32267       files, so we don't need to keep the whole thing in memory too.
32268     - Automatically avoid picking more than one node from the same
32269       /16 network when constructing a circuit.
32270     - Revise and clean up the torrc.sample that we ship with; add
32271       a section for BandwidthRate and BandwidthBurst.
32273   o Minor features:
32274     - Split circuit_t into origin_circuit_t and or_circuit_t, and
32275       split connection_t into edge, or, dir, control, and base structs.
32276       These will save quite a bit of memory on busy servers, and they'll
32277       also help us track down bugs in the code and bugs in the spec.
32278     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
32279       or later. Log when we are doing this, so we can diagnose it when
32280       it fails. (Also, recommend libevent 1.1b for kqueue and
32281       win32 methods; deprecate libevent 1.0b harder; make libevent
32282       recommendation system saner.)
32283     - Start being able to build universal binaries on OS X (thanks
32284       to Phobos).
32285     - Export the default exit policy via the control port, so controllers
32286       don't need to guess what it is / will be later.
32287     - Add a man page entry for ProtocolWarnings.
32288     - Add TestVia config option to the man page.
32289     - Remove even more protocol-related warnings from Tor server logs,
32290       such as bad TLS handshakes and malformed begin cells.
32291     - Stop fetching descriptors if you're not a dir mirror and you
32292       haven't tried to establish any circuits lately. [This currently
32293       causes some dangerous behavior, because when you start up again
32294       you'll use your ancient server descriptors.]
32295     - New DirPort behavior: if you have your dirport set, you download
32296       descriptors aggressively like a directory mirror, whether or not
32297       your ORPort is set.
32298     - Get rid of the router_retry_connections notion. Now routers
32299       no longer try to rebuild long-term connections to directory
32300       authorities, and directory authorities no longer try to rebuild
32301       long-term connections to all servers. We still don't hang up
32302       connections in these two cases though -- we need to look at it
32303       more carefully to avoid flapping, and we likely need to wait til
32304       0.1.1.x is obsolete.
32305     - Drop compatibility with obsolete Tors that permit create cells
32306       to have the wrong circ_id_type.
32307     - Re-enable per-connection rate limiting. Get rid of the "OP
32308       bandwidth" concept. Lay groundwork for "bandwidth classes" --
32309       separate global buckets that apply depending on what sort of conn
32310       it is.
32311     - Start publishing one minute or so after we find our ORPort
32312       to be reachable. This will help reduce the number of descriptors
32313       we have for ourselves floating around, since it's quite likely
32314       other things (e.g. DirPort) will change during that minute too.
32315     - Fork the v1 directory protocol into its own spec document,
32316       and mark dir-spec.txt as the currently correct (v2) spec.
32318   o Major bugfixes:
32319     - When we find our DirPort to be reachable, publish a new descriptor
32320       so we'll tell the world (reported by pnx).
32321     - Publish a new descriptor after we hup/reload. This is important
32322       if our config has changed such that we'll want to start advertising
32323       our DirPort now, etc.
32324     - Allow Tor to start when RunAsDaemon is set but no logs are set.
32325     - When we have a state file we cannot parse, tell the user and
32326       move it aside. Now we avoid situations where the user starts
32327       Tor in 1904, Tor writes a state file with that timestamp in it,
32328       the user fixes her clock, and Tor refuses to start.
32329     - Fix configure.in to not produce broken configure files with
32330       more recent versions of autoconf. Thanks to Clint for his auto*
32331       voodoo.
32332     - "tor --verify-config" now exits with -1(255) or 0 depending on
32333       whether the config options are bad or good.
32334     - Resolve bug 321 when using dnsworkers: append a period to every
32335       address we resolve at the exit node, so that we do not accidentally
32336       pick up local addresses, and so that failing searches are retried
32337       in the resolver search domains. (This is already solved for
32338       eventdns.) (This breaks Blossom servers for now.)
32339     - If we are using an exit enclave and we can't connect, e.g. because
32340       its webserver is misconfigured to not listen on localhost, then
32341       back off and try connecting from somewhere else before we fail.
32343   o Minor bugfixes:
32344     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
32345     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
32346     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
32347       when the IP address is mapped through MapAddress to a hostname.
32348     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
32349       useless IPv6 DNS resolves.
32350     - Patch suggested by Karsten Loesing: respond to SIGNAL command
32351       before we execute the signal, in case the signal shuts us down.
32352     - Clean up AllowInvalidNodes man page entry.
32353     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
32354     - Add more asserts to track down an assert error on a windows Tor
32355       server with connection_add being called with socket == -1.
32356     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
32357     - Fix misleading log messages: an entry guard that is "unlisted",
32358       as well as not known to be "down" (because we've never heard
32359       of it), is not therefore "up".
32360     - Remove code to special-case "-cvs" ending, since it has not
32361       actually mattered since 0.0.9.
32362     - Make our socks5 handling more robust to broken socks clients:
32363       throw out everything waiting on the buffer in between socks
32364       handshake phases, since they can't possibly (so the theory
32365       goes) have predicted what we plan to respond to them.
32368 Changes in version 0.1.1.23 - 2006-07-30
32369   o Major bugfixes:
32370     - Fast Tor servers, especially exit nodes, were triggering asserts
32371       due to a bug in handling the list of pending DNS resolves. Some
32372       bugs still remain here; we're hunting them.
32373     - Entry guards could crash clients by sending unexpected input.
32374     - More fixes on reachability testing: if you find yourself reachable,
32375       then don't ever make any client requests (so you stop predicting
32376       circuits), then hup or have your clock jump, then later your IP
32377       changes, you won't think circuits are working, so you won't try to
32378       test reachability, so you won't publish.
32380   o Minor bugfixes:
32381     - Avoid a crash if the controller does a resetconf firewallports
32382       and then a setconf fascistfirewall=1.
32383     - Avoid an integer underflow when the dir authority decides whether
32384       a router is stable: we might wrongly label it stable, and compute
32385       a slightly wrong median stability, when a descriptor is published
32386       later than now.
32387     - Fix a place where we might trigger an assert if we can't build our
32388       own server descriptor yet.
32391 Changes in version 0.1.1.22 - 2006-07-05
32392   o Major bugfixes:
32393     - Fix a big bug that was causing servers to not find themselves
32394       reachable if they changed IP addresses. Since only 0.1.1.22+
32395       servers can do reachability testing correctly, now we automatically
32396       make sure to test via one of these.
32397     - Fix to allow clients and mirrors to learn directory info from
32398       descriptor downloads that get cut off partway through.
32399     - Directory authorities had a bug in deciding if a newly published
32400       descriptor was novel enough to make everybody want a copy -- a few
32401       servers seem to be publishing new descriptors many times a minute.
32402   o Minor bugfixes:
32403     - Fix a rare bug that was causing some servers to complain about
32404       "closing wedged cpuworkers" and skip some circuit create requests.
32405     - Make the Exit flag in directory status documents actually work.
32408 Changes in version 0.1.1.21 - 2006-06-10
32409   o Crash and assert fixes from 0.1.1.20:
32410     - Fix a rare crash on Tor servers that have enabled hibernation.
32411     - Fix a seg fault on startup for Tor networks that use only one
32412       directory authority.
32413     - Fix an assert from a race condition that occurs on Tor servers
32414       while exiting, where various threads are trying to log that they're
32415       exiting, and delete the logs, at the same time.
32416     - Make our unit tests pass again on certain obscure platforms.
32418   o Other fixes:
32419     - Add support for building SUSE RPM packages.
32420     - Speed up initial bootstrapping for clients: if we are making our
32421       first ever connection to any entry guard, then don't mark it down
32422       right after that.
32423     - When only one Tor server in the network is labelled as a guard,
32424       and we've already picked him, we would cycle endlessly picking him
32425       again, being unhappy about it, etc. Now we specifically exclude
32426       current guards when picking a new guard.
32427     - Servers send create cells more reliably after the TLS connection
32428       is established: we were sometimes forgetting to send half of them
32429       when we had more than one pending.
32430     - If we get a create cell that asks us to extend somewhere, but the
32431       Tor server there doesn't match the expected digest, we now send
32432       a destroy cell back, rather than silently doing nothing.
32433     - Make options->RedirectExit work again.
32434     - Make cookie authentication for the controller work again.
32435     - Stop being picky about unusual characters in the arguments to
32436       mapaddress. It's none of our business.
32437     - Add a new config option "TestVia" that lets you specify preferred
32438       middle hops to use for test circuits. Perhaps this will let me
32439       debug the reachability problems better.
32441   o Log / documentation fixes:
32442     - If we're a server and some peer has a broken TLS certificate, don't
32443       log about it unless ProtocolWarnings is set, i.e., we want to hear
32444       about protocol violations by others.
32445     - Fix spelling of VirtualAddrNetwork in man page.
32446     - Add a better explanation at the top of the autogenerated torrc file
32447       about what happened to our old torrc.
32450 Changes in version 0.1.1.20 - 2006-05-23
32451   o Bugfixes:
32452     - Downgrade a log severity where servers complain that they're
32453       invalid.
32454     - Avoid a compile warning on FreeBSD.
32455     - Remove string size limit on NEWDESC messages; solve bug 291.
32456     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
32457       more thoroughly when we're running on windows.
32460 Changes in version 0.1.1.19-rc - 2006-05-03
32461   o Minor bugs:
32462     - Regenerate our local descriptor if it's dirty and we try to use
32463       it locally (e.g. if it changes during reachability detection).
32464     - If we setconf our ORPort to 0, we continued to listen on the
32465       old ORPort and receive connections.
32466     - Avoid a second warning about machine/limits.h on Debian
32467       GNU/kFreeBSD.
32468     - Be willing to add our own routerinfo into the routerlist.
32469       Now authorities will include themselves in their directories
32470       and network-statuses.
32471     - Stop trying to upload rendezvous descriptors to every
32472       directory authority: only try the v1 authorities.
32473     - Servers no longer complain when they think they're not
32474       registered with the directory authorities. There were too many
32475       false positives.
32476     - Backport dist-rpm changes so rpms can be built without errors.
32478   o Features:
32479     - Implement an option, VirtualAddrMask, to set which addresses
32480       get handed out in response to mapaddress requests. This works
32481       around a bug in tsocks where 127.0.0.0/8 is never socksified.
32484 Changes in version 0.1.1.18-rc - 2006-04-10
32485   o Major fixes:
32486     - Work harder to download live network-statuses from all the
32487       directory authorities we know about. Improve the threshold
32488       decision logic so we're more robust to edge cases.
32489     - When fetching rendezvous descriptors, we were willing to ask
32490       v2 authorities too, which would always return 404.
32492   o Minor fixes:
32493     - Stop listing down or invalid nodes in the v1 directory. This will
32494       reduce its bulk by about 1/3, and reduce load on directory
32495       mirrors.
32496     - When deciding whether a router is Fast or Guard-worthy, consider
32497       his advertised BandwidthRate and not just the BandwidthCapacity.
32498     - No longer ship INSTALL and README files -- they are useless now.
32499     - Force rpmbuild to behave and honor target_cpu.
32500     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
32501     - Start to include translated versions of the tor-doc-*.html
32502       files, along with the screenshots. Still needs more work.
32503     - Start sending back 512 and 451 errors if mapaddress fails,
32504       rather than not sending anything back at all.
32505     - When we fail to bind or listen on an incoming or outgoing
32506       socket, we should close it before failing. otherwise we just
32507       leak it. (thanks to weasel for finding.)
32508     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
32509       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
32510     - Make NoPublish (even though deprecated) work again.
32511     - Fix a minor security flaw where a versioning auth dirserver
32512       could list a recommended version many times in a row to make
32513       clients more convinced that it's recommended.
32514     - Fix crash bug if there are two unregistered servers running
32515       with the same nickname, one of them is down, and you ask for
32516       them by nickname in your EntryNodes or ExitNodes. Also, try
32517       to pick the one that's running rather than an arbitrary one.
32518     - Fix an infinite loop we could hit if we go offline for too long.
32519     - Complain when we hit WSAENOBUFS on recv() or write() too.
32520       Perhaps this will help us hunt the bug.
32521     - If you're not a versioning dirserver, don't put the string
32522       "client-versions \nserver-versions \n" in your network-status.
32523     - Lower the minimum required number of file descriptors to 1000,
32524       so we can have some overhead for Valgrind on Linux, where the
32525       default ulimit -n is 1024.
32527   o New features:
32528     - Add tor.dizum.com as the fifth authoritative directory server.
32529     - Add a new config option FetchUselessDescriptors, off by default,
32530       for when you plan to run "exitlist" on your client and you want
32531       to know about even the non-running descriptors.
32534 Changes in version 0.1.1.17-rc - 2006-03-28
32535   o Major fixes:
32536     - Clients and servers since 0.1.1.10-alpha have been expiring
32537       connections whenever they are idle for 5 minutes and they *do*
32538       have circuits on them. Oops. With this new version, clients will
32539       discard their previous entry guard choices and avoid choosing
32540       entry guards running these flawed versions.
32541     - Fix memory leak when uncompressing concatenated zlib streams. This
32542       was causing substantial leaks over time on Tor servers.
32543     - The v1 directory was including servers as much as 48 hours old,
32544       because that's how the new routerlist->routers works. Now only
32545       include them if they're 20 hours old or less.
32547   o Minor fixes:
32548     - Resume building on irix64, netbsd 2.0, etc.
32549     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
32550       "-Wall -g -O2".
32551     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
32552       and it is confusing some users.
32553     - Mirrors stop caching the v1 directory so often.
32554     - Make the max number of old descriptors that a cache will hold
32555       rise with the number of directory authorities, so we can scale.
32556     - Change our win32 uname() hack to be more forgiving about what
32557       win32 versions it thinks it's found.
32559   o New features:
32560     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
32561       server.
32562     - When the controller's *setconf commands fail, collect an error
32563       message in a string and hand it back to the controller.
32564     - Make the v2 dir's "Fast" flag based on relative capacity, just
32565       like "Stable" is based on median uptime. Name everything in the
32566       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
32567     - Log server fingerprint on startup, so new server operators don't
32568       have to go hunting around their filesystem for it.
32569     - Return a robots.txt on our dirport to discourage google indexing.
32570     - Let the controller ask for GETINFO dir/status/foo so it can ask
32571       directly rather than connecting to the dir port. Only works when
32572       dirport is set for now.
32574   o New config options rather than constants in the code:
32575     - SocksTimeout: How long do we let a socks connection wait
32576       unattached before we fail it?
32577     - CircuitBuildTimeout: Cull non-open circuits that were born
32578       at least this many seconds ago.
32579     - CircuitIdleTimeout: Cull open clean circuits that were born
32580       at least this many seconds ago.
32583 Changes in version 0.1.1.16-rc - 2006-03-18
32584   o Bugfixes on 0.1.1.15-rc:
32585     - Fix assert when the controller asks to attachstream a connect-wait
32586       or resolve-wait stream.
32587     - Now do address rewriting when the controller asks us to attach
32588       to a particular circuit too. This will let Blossom specify
32589       "moria2.exit" without having to learn what moria2's IP address is.
32590     - Make the "tor --verify-config" command-line work again, so people
32591       can automatically check if their torrc will parse.
32592     - Authoritative dirservers no longer require an open connection from
32593       a server to consider him "reachable". We need this change because
32594       when we add new auth dirservers, old servers won't know not to
32595       hang up on them.
32596     - Let Tor build on Sun CC again.
32597     - Fix an off-by-one buffer size in dirserv.c that magically never
32598       hit our three authorities but broke sjmurdoch's own tor network.
32599     - If we as a directory mirror don't know of any v1 directory
32600       authorities, then don't try to cache any v1 directories.
32601     - Stop warning about unknown servers in our family when they are
32602       given as hex digests.
32603     - Stop complaining as quickly to the server operator that he
32604       hasn't registered his nickname/key binding.
32605     - Various cleanups so we can add new V2 Auth Dirservers.
32606     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
32607       reflect the updated flags in our v2 dir protocol.
32608     - Resume allowing non-printable characters for exit streams (both
32609       for connecting and for resolving). Now we tolerate applications
32610       that don't follow the RFCs. But continue to block malformed names
32611       at the socks side.
32613   o Bugfixes on 0.1.0.x:
32614     - Fix assert bug in close_logs(): when we close and delete logs,
32615       remove them all from the global "logfiles" list.
32616     - Fix minor integer overflow in calculating when we expect to use up
32617       our bandwidth allocation before hibernating.
32618     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
32619       there are multiple SSLs installed with different versions.
32620     - When we try to be a server and Address is not explicitly set and
32621       our hostname resolves to a private IP address, try to use an
32622       interface address if it has a public address. Now Windows machines
32623       that think of themselves as localhost can work by default.
32625   o New features:
32626     - Let the controller ask for GETINFO dir/server/foo so it can ask
32627       directly rather than connecting to the dir port.
32628     - Let the controller tell us about certain router descriptors
32629       that it doesn't want Tor to use in circuits. Implement
32630       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
32631     - New config option SafeSocks to reject all application connections
32632       using unsafe socks protocols. Defaults to off.
32635 Changes in version 0.1.1.15-rc - 2006-03-11
32636   o Bugfixes and cleanups:
32637     - When we're printing strings from the network, don't try to print
32638       non-printable characters. This protects us against shell escape
32639       sequence exploits, and also against attacks to fool humans into
32640       misreading their logs.
32641     - Fix a bug where Tor would fail to establish any connections if you
32642       left it off for 24 hours and then started it: we were happy with
32643       the obsolete network statuses, but they all referred to router
32644       descriptors that were too old to fetch, so we ended up with no
32645       valid router descriptors.
32646     - Fix a seg fault in the controller's "getinfo orconn-status"
32647       command while listing status on incoming handshaking connections.
32648       Introduce a status name "NEW" for these connections.
32649     - If we get a linelist or linelist_s config option from the torrc
32650       (e.g. ExitPolicy) and it has no value, warn and skip rather than
32651       silently resetting it to its default.
32652     - Don't abandon entry guards until they've been down or gone for
32653       a whole month.
32654     - Cleaner and quieter log messages.
32656   o New features:
32657     - New controller signal NEWNYM that makes new application requests
32658       use clean circuits.
32659     - Add a new circuit purpose 'controller' to let the controller ask
32660       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
32661       controller command to let you specify the purpose if you're
32662       starting a new circuit. Add a new SETCIRCUITPURPOSE controller
32663       command to let you change a circuit's purpose after it's been
32664       created.
32665     - Accept "private:*" in routerdesc exit policies; not generated yet
32666       because older Tors do not understand it.
32667     - Add BSD-style contributed startup script "rc.subr" from Peter
32668       Thoenen.
32671 Changes in version 0.1.1.14-alpha - 2006-02-20
32672   o Bugfixes on 0.1.1.x:
32673     - Don't die if we ask for a stdout or stderr log (even implicitly)
32674       and we're set to RunAsDaemon -- just warn.
32675     - We still had a few bugs in the OR connection rotation code that
32676       caused directory servers to slowly aggregate connections to other
32677       fast Tor servers. This time for sure!
32678     - Make log entries on Win32 include the name of the function again.
32679     - We were treating a pair of exit policies if they were equal even
32680       if one said accept and the other said reject -- causing us to
32681       not always publish a new descriptor since we thought nothing
32682       had changed.
32683     - Retry pending server downloads as well as pending networkstatus
32684       downloads when we unexpectedly get a socks request.
32685     - We were ignoring the IS_FAST flag in the directory status,
32686       meaning we were willing to pick trivial-bandwidth nodes for "fast"
32687       connections.
32688     - If the controller's SAVECONF command fails (e.g. due to file
32689       permissions), let the controller know that it failed.
32691   o Features:
32692     - If we're trying to be a Tor server and running Windows 95/98/ME
32693       as a server, explain that we'll likely crash.
32694     - When we're a server, a client asks for an old-style directory,
32695       and our write bucket is empty, don't give it to him. This way
32696       small servers can continue to serve the directory *sometimes*,
32697       without getting overloaded.
32698     - Compress exit policies even more -- look for duplicate lines
32699       and remove them.
32700     - Clients now honor the "guard" flag in the router status when
32701       picking entry guards, rather than looking at is_fast or is_stable.
32702     - Retain unrecognized lines in $DATADIR/state file, so that we can
32703       be forward-compatible.
32704     - Generate 18.0.0.0/8 address policy format in descs when we can;
32705       warn when the mask is not reducible to a bit-prefix.
32706     - Let the user set ControlListenAddress in the torrc. This can be
32707       dangerous, but there are some cases (like a secured LAN) where it
32708       makes sense.
32709     - Split ReachableAddresses into ReachableDirAddresses and
32710       ReachableORAddresses, so we can restrict Dir conns to port 80
32711       and OR conns to port 443.
32712     - Now we can target arch and OS in rpm builds (contributed by
32713       Phobos). Also make the resulting dist-rpm filename match the
32714       target arch.
32715     - New config options to help controllers: FetchServerDescriptors
32716       and FetchHidServDescriptors for whether to fetch server
32717       info and hidserv info or let the controller do it, and
32718       PublishServerDescriptor and PublishHidServDescriptors.
32719     - Also let the controller set the __AllDirActionsPrivate config
32720       option if you want all directory fetches/publishes to happen via
32721       Tor (it assumes your controller bootstraps your circuits).
32724 Changes in version 0.1.0.17 - 2006-02-17
32725   o Crash bugfixes on 0.1.0.x:
32726     - When servers with a non-zero DirPort came out of hibernation,
32727       sometimes they would trigger an assert.
32729   o Other important bugfixes:
32730     - On platforms that don't have getrlimit (like Windows), we were
32731       artificially constraining ourselves to a max of 1024
32732       connections. Now just assume that we can handle as many as 15000
32733       connections. Hopefully this won't cause other problems.
32735   o Backported features:
32736     - When we're a server, a client asks for an old-style directory,
32737       and our write bucket is empty, don't give it to him. This way
32738       small servers can continue to serve the directory *sometimes*,
32739       without getting overloaded.
32740     - Whenever you get a 503 in response to a directory fetch, try
32741       once more. This will become important once servers start sending
32742       503's whenever they feel busy.
32743     - Fetch a new directory every 120 minutes, not every 40 minutes.
32744       Now that we have hundreds of thousands of users running the old
32745       directory algorithm, it's starting to hurt a lot.
32746     - Bump up the period for forcing a hidden service descriptor upload
32747       from 20 minutes to 1 hour.
32750 Changes in version 0.1.1.13-alpha - 2006-02-09
32751   o Crashes in 0.1.1.x:
32752     - When you tried to setconf ORPort via the controller, Tor would
32753       crash. So people using TorCP to become a server were sad.
32754     - Solve (I hope) the stack-smashing bug that we were seeing on fast
32755       servers. The problem appears to be something do with OpenSSL's
32756       random number generation, or how we call it, or something. Let me
32757       know if the crashes continue.
32758     - Turn crypto hardware acceleration off by default, until we find
32759       somebody smart who can test it for us. (It appears to produce
32760       seg faults in at least some cases.)
32761     - Fix a rare assert error when we've tried all intro points for
32762       a hidden service and we try fetching the service descriptor again:
32763       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
32765   o Major fixes:
32766     - Fix a major load balance bug: we were round-robining in 16 KB
32767       chunks, and servers with bandwidthrate of 20 KB, while downloading
32768       a 600 KB directory, would starve their other connections. Now we
32769       try to be a bit more fair.
32770     - Dir authorities and mirrors were never expiring the newest
32771       descriptor for each server, causing memory and directory bloat.
32772     - Fix memory-bloating and connection-bloating bug on servers: We
32773       were never closing any connection that had ever had a circuit on
32774       it, because we were checking conn->n_circuits == 0, yet we had a
32775       bug that let it go negative.
32776     - Make Tor work using squid as your http proxy again -- squid
32777       returns an error if you ask for a URL that's too long, and it uses
32778       a really generic error message. Plus, many people are behind a
32779       transparent squid so they don't even realize it.
32780     - On platforms that don't have getrlimit (like Windows), we were
32781       artificially constraining ourselves to a max of 1024
32782       connections. Now just assume that we can handle as many as 15000
32783       connections. Hopefully this won't cause other problems.
32784     - Add a new config option ExitPolicyRejectPrivate which defaults to
32785       1. This means all exit policies will begin with rejecting private
32786       addresses, unless the server operator explicitly turns it off.
32788   o Major features:
32789     - Clients no longer download descriptors for non-running
32790       descriptors.
32791     - Before we add new directory authorities, we should make it
32792       clear that only v1 authorities should receive/publish hidden
32793       service descriptors.
32795   o Minor features:
32796     - As soon as we've fetched some more directory info, immediately
32797       try to download more server descriptors. This way we don't have
32798       a 10 second pause during initial bootstrapping.
32799     - Remove even more loud log messages that the server operator can't
32800       do anything about.
32801     - When we're running an obsolete or un-recommended version, make
32802       the log message more clear about what the problem is and what
32803       versions *are* still recommended.
32804     - Provide a more useful warn message when our onion queue gets full:
32805       the CPU is too slow or the exit policy is too liberal.
32806     - Don't warn when we receive a 503 from a dirserver/cache -- this
32807       will pave the way for them being able to refuse if they're busy.
32808     - When we fail to bind a listener, try to provide a more useful
32809       log message: e.g., "Is Tor already running?"
32810     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
32811       Goldberg can prove things about our handshake protocol more
32812       easily.
32813     - MaxConn has been obsolete for a while now. Document the ConnLimit
32814       config option, which is a *minimum* number of file descriptors
32815       that must be available else Tor refuses to start.
32816     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
32817       if you log to syslog and want something other than LOG_DAEMON.
32818     - Make dirservers generate a separate "guard" flag to mean,
32819       "would make a good entry guard". Make clients parse it and vote
32820       on it. Not used by clients yet.
32821     - Implement --with-libevent-dir option to ./configure. Also, improve
32822       search techniques to find libevent, and use those for openssl too.
32823     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
32824     - Only start testing reachability once we've established a
32825       circuit. This will make startup on dirservers less noisy.
32826     - Don't try to upload hidden service descriptors until we have
32827       established a circuit.
32828     - Fix the controller's "attachstream 0" command to treat conn like
32829       it just connected, doing address remapping, handling .exit and
32830       .onion idioms, and so on. Now we're more uniform in making sure
32831       that the controller hears about new and closing connections.
32834 Changes in version 0.1.1.12-alpha - 2006-01-11
32835   o Bugfixes on 0.1.1.x:
32836     - The fix to close duplicate server connections was closing all
32837       Tor client connections if they didn't establish a circuit
32838       quickly enough. Oops.
32839     - Fix minor memory issue (double-free) that happened on exit.
32841   o Bugfixes on 0.1.0.x:
32842     - Tor didn't warn when it failed to open a log file.
32845 Changes in version 0.1.1.11-alpha - 2006-01-10
32846   o Crashes in 0.1.1.x:
32847     - Include all the assert/crash fixes from 0.1.0.16.
32848     - If you start Tor and then quit very quickly, there were some
32849       races that tried to free things that weren't allocated yet.
32850     - Fix a rare memory stomp if you're running hidden services.
32851     - Fix segfault when specifying DirServer in config without nickname.
32852     - Fix a seg fault when you finish connecting to a server but at
32853       that moment you dump his server descriptor.
32854     - Extendcircuit and Attachstream controller commands would
32855       assert/crash if you don't give them enough arguments.
32856     - Fix an assert error when we're out of space in the connection_list
32857       and we try to post a hidden service descriptor (reported by weasel).
32858     - If you specify a relative torrc path and you set RunAsDaemon in
32859       your torrc, then it chdir()'s to the new directory. If you HUP,
32860       it tries to load the new torrc location, fails, and exits.
32861       The fix: no longer allow a relative path to torrc using -f.
32863   o Major features:
32864     - Implement "entry guards": automatically choose a handful of entry
32865       nodes and stick with them for all circuits. Only pick new guards
32866       when the ones you have are unsuitable, and if the old guards
32867       become suitable again, switch back. This will increase security
32868       dramatically against certain end-point attacks. The EntryNodes
32869       config option now provides some hints about which entry guards you
32870       want to use most; and StrictEntryNodes means to only use those.
32871     - New directory logic: download by descriptor digest, not by
32872       fingerprint. Caches try to download all listed digests from
32873       authorities; clients try to download "best" digests from caches.
32874       This avoids partitioning and isolating attacks better.
32875     - Make the "stable" router flag in network-status be the median of
32876       the uptimes of running valid servers, and make clients pay
32877       attention to the network-status flags. Thus the cutoff adapts
32878       to the stability of the network as a whole, making IRC, IM, etc
32879       connections more reliable.
32881   o Major fixes:
32882     - Tor servers with dynamic IP addresses were needing to wait 18
32883       hours before they could start doing reachability testing using
32884       the new IP address and ports. This is because they were using
32885       the internal descriptor to learn what to test, yet they were only
32886       rebuilding the descriptor once they decided they were reachable.
32887     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
32888       to download certain server descriptors, throw them away, and then
32889       fetch them again after 30 minutes. Now mirrors throw away these
32890       server descriptors so clients can't get them.
32891     - We were leaving duplicate connections to other ORs open for a week,
32892       rather than closing them once we detect a duplicate. This only
32893       really affected authdirservers, but it affected them a lot.
32894     - Spread the authdirservers' reachability testing over the entire
32895       testing interval, so we don't try to do 500 TLS's at once every
32896       20 minutes.
32898   o Minor fixes:
32899     - If the network is down, and we try to connect to a conn because
32900       we have a circuit in mind, and we timeout (30 seconds) because the
32901       network never answers, we were expiring the circuit, but we weren't
32902       obsoleting the connection or telling the entry_guards functions.
32903     - Some Tor servers process billions of cells per day. These statistics
32904       need to be uint64_t's.
32905     - Check for integer overflows in more places, when adding elements
32906       to smartlists. This could possibly prevent a buffer overflow
32907       on malicious huge inputs. I don't see any, but I haven't looked
32908       carefully.
32909     - ReachableAddresses kept growing new "reject *:*" lines on every
32910       setconf/reload.
32911     - When you "setconf log" via the controller, it should remove all
32912       logs. We were automatically adding back in a "log notice stdout".
32913     - Newly bootstrapped Tor networks couldn't establish hidden service
32914       circuits until they had nodes with high uptime. Be more tolerant.
32915     - We were marking servers down when they could not answer every piece
32916       of the directory request we sent them. This was far too harsh.
32917     - Fix the torify (tsocks) config file to not use Tor for localhost
32918       connections.
32919     - Directory authorities now go to the proper authority when asking for
32920       a networkstatus, even when they want a compressed one.
32921     - Fix a harmless bug that was causing Tor servers to log
32922       "Got an end because of misc error, but we're not an AP. Closing."
32923     - Authorities were treating their own descriptor changes as cosmetic,
32924       meaning the descriptor available in the network-status and the
32925       descriptor that clients downloaded were different.
32926     - The OS X installer was adding a symlink for tor_resolve but
32927       the binary was called tor-resolve (reported by Thomas Hardly).
32928     - Workaround a problem with some http proxies where they refuse GET
32929       requests that specify "Content-Length: 0" (reported by Adrian).
32930     - Fix wrong log message when you add a "HiddenServiceNodes" config
32931       line without any HiddenServiceDir line (reported by Chris Thomas).
32933   o Minor features:
32934     - Write the TorVersion into the state file so we have a prayer of
32935       keeping forward and backward compatibility.
32936     - Revive the FascistFirewall config option rather than eliminating it:
32937       now it's a synonym for ReachableAddresses *:80,*:443.
32938     - Clients choose directory servers from the network status lists,
32939       not from their internal list of router descriptors. Now they can
32940       go to caches directly rather than needing to go to authorities
32941       to bootstrap.
32942     - Directory authorities ignore router descriptors that have only
32943       cosmetic differences: do this for 0.1.0.x servers now too.
32944     - Add a new flag to network-status indicating whether the server
32945       can answer v2 directory requests too.
32946     - Authdirs now stop whining so loudly about bad descriptors that
32947       they fetch from other dirservers. So when there's a log complaint,
32948       it's for sure from a freshly uploaded descriptor.
32949     - Reduce memory requirements in our structs by changing the order
32950       of fields.
32951     - There used to be two ways to specify your listening ports in a
32952       server descriptor: on the "router" line and with a separate "ports"
32953       line. Remove support for the "ports" line.
32954     - New config option "AuthDirRejectUnlisted" for auth dirservers as
32955       a panic button: if we get flooded with unusable servers we can
32956       revert to only listing servers in the approved-routers file.
32957     - Auth dir servers can now mark a fingerprint as "!reject" or
32958       "!invalid" in the approved-routers file (as its nickname), to
32959       refuse descriptors outright or include them but marked as invalid.
32960     - Servers store bandwidth history across restarts/crashes.
32961     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
32962       get a better idea of why their circuits failed. Not used yet.
32963     - Directory mirrors now cache up to 16 unrecognized network-status
32964       docs. Now we can add new authdirservers and they'll be cached too.
32965     - When picking a random directory, prefer non-authorities if any
32966       are known.
32967     - New controller option "getinfo desc/all-recent" to fetch the
32968       latest server descriptor for every router that Tor knows about.
32971 Changes in version 0.1.0.16 - 2006-01-02
32972   o Crash bugfixes on 0.1.0.x:
32973     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
32974       corrupting the heap, losing FDs, or crashing when we need to resize
32975       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
32976     - It turns out sparc64 platforms crash on unaligned memory access
32977       too -- so detect and avoid this.
32978     - Handle truncated compressed data correctly (by detecting it and
32979       giving an error).
32980     - Fix possible-but-unlikely free(NULL) in control.c.
32981     - When we were closing connections, there was a rare case that
32982       stomped on memory, triggering seg faults and asserts.
32983     - Avoid potential infinite recursion when building a descriptor. (We
32984       don't know that it ever happened, but better to fix it anyway.)
32985     - We were neglecting to unlink marked circuits from soon-to-close OR
32986       connections, which caused some rare scribbling on freed memory.
32987     - Fix a memory stomping race bug when closing the joining point of two
32988       rendezvous circuits.
32989     - Fix an assert in time parsing found by Steven Murdoch.
32991   o Other bugfixes on 0.1.0.x:
32992     - When we're doing reachability testing, provide more useful log
32993       messages so the operator knows what to expect.
32994     - Do not check whether DirPort is reachable when we are suppressing
32995       advertising it because of hibernation.
32996     - When building with -static or on Solaris, we sometimes needed -ldl.
32997     - When we're deciding whether a stream has enough circuits around
32998       that can handle it, count the freshly dirty ones and not the ones
32999       that are so dirty they won't be able to handle it.
33000     - When we're expiring old circuits, we had a logic error that caused
33001       us to close new rendezvous circuits rather than old ones.
33002     - Give a more helpful log message when you try to change ORPort via
33003       the controller: you should upgrade Tor if you want that to work.
33004     - We were failing to parse Tor versions that start with "Tor ".
33005     - Tolerate faulty streams better: when a stream fails for reason
33006       exitpolicy, stop assuming that the router is lying about his exit
33007       policy. When a stream fails for reason misc, allow it to retry just
33008       as if it was resolvefailed. When a stream has failed three times,
33009       reset its failure count so we can try again and get all three tries.
33012 Changes in version 0.1.1.10-alpha - 2005-12-11
33013   o Correctness bugfixes on 0.1.0.x:
33014     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
33015       corrupting the heap, losing FDs, or crashing when we need to resize
33016       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
33017     - Stop doing the complex voodoo overkill checking for insecure
33018       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
33019     - When we were closing connections, there was a rare case that
33020       stomped on memory, triggering seg faults and asserts.
33021     - We were neglecting to unlink marked circuits from soon-to-close OR
33022       connections, which caused some rare scribbling on freed memory.
33023     - When we're deciding whether a stream has enough circuits around
33024       that can handle it, count the freshly dirty ones and not the ones
33025       that are so dirty they won't be able to handle it.
33026     - Recover better from TCP connections to Tor servers that are
33027       broken but don't tell you (it happens!); and rotate TLS
33028       connections once a week.
33029     - When we're expiring old circuits, we had a logic error that caused
33030       us to close new rendezvous circuits rather than old ones.
33031     - Fix a scary-looking but apparently harmless bug where circuits
33032       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
33033       servers, and never switch to state CIRCUIT_STATE_OPEN.
33034     - When building with -static or on Solaris, we sometimes needed to
33035       build with -ldl.
33036     - Give a useful message when people run Tor as the wrong user,
33037       rather than telling them to start chowning random directories.
33038     - We were failing to inform the controller about new .onion streams.
33040   o Security bugfixes on 0.1.0.x:
33041     - Refuse server descriptors if the fingerprint line doesn't match
33042       the included identity key. Tor doesn't care, but other apps (and
33043       humans) might actually be trusting the fingerprint line.
33044     - We used to kill the circuit when we receive a relay command we
33045       don't recognize. Now we just drop it.
33046     - Start obeying our firewall options more rigorously:
33047       . If we can't get to a dirserver directly, try going via Tor.
33048       . Don't ever try to connect (as a client) to a place our
33049         firewall options forbid.
33050       . If we specify a proxy and also firewall options, obey the
33051         firewall options even when we're using the proxy: some proxies
33052         can only proxy to certain destinations.
33053     - Fix a bug found by Lasse Overlier: when we were making internal
33054       circuits (intended to be cannibalized later for rendezvous and
33055       introduction circuits), we were picking them so that they had
33056       useful exit nodes. There was no need for this, and it actually
33057       aids some statistical attacks.
33058     - Start treating internal circuits and exit circuits separately.
33059       It's important to keep them separate because internal circuits
33060       have their last hops picked like middle hops, rather than like
33061       exit hops. So exiting on them will break the user's expectations.
33063   o Bugfixes on 0.1.1.x:
33064     - Take out the mis-feature where we tried to detect IP address
33065       flapping for people with DynDNS, and chose not to upload a new
33066       server descriptor sometimes.
33067     - Try to be compatible with OpenSSL 0.9.6 again.
33068     - Log fix: when the controller is logging about .onion addresses,
33069       sometimes it didn't include the ".onion" part of the address.
33070     - Don't try to modify options->DirServers internally -- if the
33071       user didn't specify any, just add the default ones directly to
33072       the trusted dirserver list. This fixes a bug where people running
33073       controllers would use SETCONF on some totally unrelated config
33074       option, and Tor would start yelling at them about changing their
33075       DirServer lines.
33076     - Let the controller's redirectstream command specify a port, in
33077       case the controller wants to change that too.
33078     - When we requested a pile of server descriptors, we sometimes
33079       accidentally launched a duplicate request for the first one.
33080     - Bugfix for trackhostexits: write down the fingerprint of the
33081       chosen exit, not its nickname, because the chosen exit might not
33082       be verified.
33083     - When parsing foo.exit, if foo is unknown, and we are leaving
33084       circuits unattached, set the chosen_exit field and leave the
33085       address empty. This matters because controllers got confused
33086       otherwise.
33087     - Directory authorities no longer try to download server
33088       descriptors that they know they will reject.
33090   o Features and updates:
33091     - Replace balanced trees with hash tables: this should make stuff
33092       significantly faster.
33093     - Resume using the AES counter-mode implementation that we ship,
33094       rather than OpenSSL's. Ours is significantly faster.
33095     - Many other CPU and memory improvements.
33096     - Add a new config option FastFirstHopPK (on by default) so clients
33097       do a trivial crypto handshake for their first hop, since TLS has
33098       already taken care of confidentiality and authentication.
33099     - Add a new config option TestSocks so people can see if their
33100       applications are using socks4, socks4a, socks5-with-ip, or
33101       socks5-with-hostname. This way they don't have to keep mucking
33102       with tcpdump and wondering if something got cached somewhere.
33103     - Warn when listening on a public address for socks. I suspect a
33104       lot of people are setting themselves up as open socks proxies,
33105       and they have no idea that jerks on the Internet are using them,
33106       since they simply proxy the traffic into the Tor network.
33107     - Add "private:*" as an alias in configuration for policies. Now
33108       you can simplify your exit policy rather than needing to list
33109       every single internal or nonroutable network space.
33110     - Add a new controller event type that allows controllers to get
33111       all server descriptors that were uploaded to a router in its role
33112       as authoritative dirserver.
33113     - Start shipping socks-extensions.txt, tor-doc-unix.html,
33114       tor-doc-server.html, and stylesheet.css in the tarball.
33115     - Stop shipping tor-doc.html in the tarball.
33118 Changes in version 0.1.1.9-alpha - 2005-11-15
33119   o Usability improvements:
33120     - Start calling it FooListenAddress rather than FooBindAddress,
33121       since few of our users know what it means to bind an address
33122       or port.
33123     - Reduce clutter in server logs. We're going to try to make
33124       them actually usable now. New config option ProtocolWarnings that
33125       lets you hear about how _other Tors_ are breaking the protocol. Off
33126       by default.
33127     - Divide log messages into logging domains. Once we put some sort
33128       of interface on this, it will let people looking at more verbose
33129       log levels specify the topics they want to hear more about.
33130     - Make directory servers return better http 404 error messages
33131       instead of a generic "Servers unavailable".
33132     - Check for even more Windows version flags when writing the platform
33133       string in server descriptors, and note any we don't recognize.
33134     - Clean up more of the OpenSSL memory when exiting, so we can detect
33135       memory leaks better.
33136     - Make directory authorities be non-versioning, non-naming by
33137       default. Now we can add new directory servers without requiring
33138       their operators to pay close attention.
33139     - When logging via syslog, include the pid whenever we provide
33140       a log entry. Suggested by Todd Fries.
33142   o Performance improvements:
33143     - Directory servers now silently throw away new descriptors that
33144       haven't changed much if the timestamps are similar. We do this to
33145       tolerate older Tor servers that upload a new descriptor every 15
33146       minutes. (It seemed like a good idea at the time.)
33147     - Inline bottleneck smartlist functions; use fast versions by default.
33148     - Add a "Map from digest to void*" abstraction digestmap_t so we
33149       can do less hex encoding/decoding. Use it in router_get_by_digest()
33150       to resolve a performance bottleneck.
33151     - Allow tor_gzip_uncompress to extract as much as possible from
33152       truncated compressed data. Try to extract as many
33153       descriptors as possible from truncated http responses (when
33154       DIR_PURPOSE_FETCH_ROUTERDESC).
33155     - Make circ->onionskin a pointer, not a static array. moria2 was using
33156       125000 circuit_t's after it had been up for a few weeks, which
33157       translates to 20+ megs of wasted space.
33158     - The private half of our EDH handshake keys are now chosen out
33159       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
33161   o Security improvements:
33162     - Start making directory caches retain old routerinfos, so soon
33163       clients can start asking by digest of descriptor rather than by
33164       fingerprint of server.
33165     - Add half our entropy from RAND_poll in OpenSSL. This knows how
33166       to use egd (if present), openbsd weirdness (if present), vms/os2
33167       weirdness (if we ever port there), and more in the future.
33169   o Bugfixes on 0.1.0.x:
33170     - Do round-robin writes of at most 16 kB per write. This might be
33171       more fair on loaded Tor servers, and it might resolve our Windows
33172       crash bug. It might also slow things down.
33173     - Our TLS handshakes were generating a single public/private
33174       keypair for the TLS context, rather than making a new one for
33175       each new connections. Oops. (But we were still rotating them
33176       periodically, so it's not so bad.)
33177     - When we were cannibalizing a circuit with a particular exit
33178       node in mind, we weren't checking to see if that exit node was
33179       already present earlier in the circuit. Oops.
33180     - When a Tor server's IP changes (e.g. from a dyndns address),
33181       upload a new descriptor so clients will learn too.
33182     - Really busy servers were keeping enough circuits open on stable
33183       connections that they were wrapping around the circuit_id
33184       space. (It's only two bytes.) This exposed a bug where we would
33185       feel free to reuse a circuit_id even if it still exists but has
33186       been marked for close. Try to fix this bug. Some bug remains.
33187     - If we would close a stream early (e.g. it asks for a .exit that
33188       we know would refuse it) but the LeaveStreamsUnattached config
33189       option is set by the controller, then don't close it.
33191   o Bugfixes on 0.1.1.8-alpha:
33192     - Fix a big pile of memory leaks, some of them serious.
33193     - Do not try to download a routerdesc if we would immediately reject
33194       it as obsolete.
33195     - Resume inserting a newline between all router descriptors when
33196       generating (old style) signed directories, since our spec says
33197       we do.
33198     - When providing content-type application/octet-stream for
33199       server descriptors using .z, we were leaving out the
33200       content-encoding header. Oops. (Everything tolerated this just
33201       fine, but that doesn't mean we need to be part of the problem.)
33202     - Fix a potential seg fault in getconf and getinfo using version 1
33203       of the controller protocol.
33204     - Avoid crash: do not check whether DirPort is reachable when we
33205       are suppressing it because of hibernation.
33206     - Make --hash-password not crash on exit.
33209 Changes in version 0.1.1.8-alpha - 2005-10-07
33210   o New features (major):
33211     - Clients don't download or use the directory anymore. Now they
33212       download and use network-statuses from the trusted dirservers,
33213       and fetch individual server descriptors as needed from mirrors.
33214       See dir-spec.txt for all the gory details.
33215     - Be more conservative about whether to advertise our DirPort.
33216       The main change is to not advertise if we're running at capacity
33217       and either a) we could hibernate or b) our capacity is low and
33218       we're using a default DirPort.
33219     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
33221   o New features (minor):
33222     - Try to be smart about when to retry network-status and
33223       server-descriptor fetches. Still needs some tuning.
33224     - Stop parsing, storing, or using running-routers output (but
33225       mirrors still cache and serve it).
33226     - Consider a threshold of versioning dirservers (dirservers who have
33227       an opinion about which Tor versions are still recommended) before
33228       deciding whether to warn the user that he's obsolete.
33229     - Dirservers can now reject/invalidate by key and IP, with the
33230       config options "AuthDirInvalid" and "AuthDirReject". This is
33231       useful since currently we automatically list servers as running
33232       and usable even if we know they're jerks.
33233     - Provide dire warnings to any users who set DirServer; move it out
33234       of torrc.sample and into torrc.complete.
33235     - Add MyFamily to torrc.sample in the server section.
33236     - Add nicknames to the DirServer line, so we can refer to them
33237       without requiring all our users to memorize their IP addresses.
33238     - When we get an EOF or a timeout on a directory connection, note
33239       how many bytes of serverdesc we are dropping. This will help
33240       us determine whether it is smart to parse incomplete serverdesc
33241       responses.
33242     - Add a new function to "change pseudonyms" -- that is, to stop
33243       using any currently-dirty circuits for new streams, so we don't
33244       link new actions to old actions. Currently it's only called on
33245       HUP (or SIGNAL RELOAD).
33246     - On sighup, if UseHelperNodes changed to 1, use new circuits.
33247     - Start using RAND_bytes rather than RAND_pseudo_bytes from
33248       OpenSSL. Also, reseed our entropy every hour, not just at
33249       startup. And entropy in 512-bit chunks, not 160-bit chunks.
33251   o Fixes on 0.1.1.7-alpha:
33252     - Nobody ever implemented EVENT_ADDRMAP for control protocol
33253       version 0, so don't let version 0 controllers ask for it.
33254     - If you requested something with too many newlines via the
33255       v1 controller protocol, you could crash tor.
33256     - Fix a number of memory leaks, including some pretty serious ones.
33257     - Re-enable DirPort testing again, so Tor servers will be willing
33258       to advertise their DirPort if it's reachable.
33259     - On TLS handshake, only check the other router's nickname against
33260       its expected nickname if is_named is set.
33262   o Fixes forward-ported from 0.1.0.15:
33263     - Don't crash when we don't have any spare file descriptors and we
33264       try to spawn a dns or cpu worker.
33265     - Make the numbers in read-history and write-history into uint64s,
33266       so they don't overflow and publish negatives in the descriptor.
33268   o Fixes on 0.1.0.x:
33269     - For the OS X package's modified privoxy config file, comment
33270       out the "logfile" line so we don't log everything passed
33271       through privoxy.
33272     - We were whining about using socks4 or socks5-with-local-lookup
33273       even when it's an IP in the "virtual" range we designed exactly
33274       for this case.
33275     - We were leaking some memory every time the client changes IPs.
33276     - Never call free() on tor_malloc()d memory. This will help us
33277       use dmalloc to detect memory leaks.
33278     - Check for named servers when looking them up by nickname;
33279       warn when we'recalling a non-named server by its nickname;
33280       don't warn twice about the same name.
33281     - Try to list MyFamily elements by key, not by nickname, and warn
33282       if we've not heard of the server.
33283     - Make windows platform detection (uname equivalent) smarter.
33284     - It turns out sparc64 doesn't like unaligned access either.
33287 Changes in version 0.1.0.15 - 2005-09-23
33288   o Bugfixes on 0.1.0.x:
33289     - Reject ports 465 and 587 (spam targets) in default exit policy.
33290     - Don't crash when we don't have any spare file descriptors and we
33291       try to spawn a dns or cpu worker.
33292     - Get rid of IgnoreVersion undocumented config option, and make us
33293       only warn, never exit, when we're running an obsolete version.
33294     - Don't try to print a null string when your server finds itself to
33295       be unreachable and the Address config option is empty.
33296     - Make the numbers in read-history and write-history into uint64s,
33297       so they don't overflow and publish negatives in the descriptor.
33298     - Fix a minor memory leak in smartlist_string_remove().
33299     - We were only allowing ourselves to upload a server descriptor at
33300       most every 20 minutes, even if it changed earlier than that.
33301     - Clean up log entries that pointed to old URLs.
33304 Changes in version 0.1.1.7-alpha - 2005-09-14
33305   o Fixes on 0.1.1.6-alpha:
33306     - Exit servers were crashing when people asked them to make a
33307       connection to an address not in their exit policy.
33308     - Looking up a non-existent stream for a v1 control connection would
33309       cause a segfault.
33310     - Fix a seg fault if we ask a dirserver for a descriptor by
33311       fingerprint but he doesn't know about him.
33312     - SETCONF was appending items to linelists, not clearing them.
33313     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
33314       out and refuse the setconf if it would fail.
33315     - Downgrade the dirserver log messages when whining about
33316       unreachability.
33318   o New features:
33319     - Add Peter Palfrader's check-tor script to tor/contrib/
33320       It lets you easily check whether a given server (referenced by
33321       nickname) is reachable by you.
33322     - Numerous changes to move towards client-side v2 directories. Not
33323       enabled yet.
33325   o Fixes on 0.1.0.x:
33326     - If the user gave tor an odd number of command-line arguments,
33327       we were silently ignoring the last one. Now we complain and fail.
33328       [This wins the oldest-bug prize -- this bug has been present since
33329        November 2002, as released in Tor 0.0.0.]
33330     - Do not use unaligned memory access on alpha, mips, or mipsel.
33331       It *works*, but is very slow, so we treat them as if it doesn't.
33332     - Retry directory requests if we fail to get an answer we like
33333       from a given dirserver (we were retrying before, but only if
33334       we fail to connect).
33335     - When writing the RecommendedVersions line, sort them first.
33336     - When the client asked for a rendezvous port that the hidden
33337       service didn't want to provide, we were sending an IP address
33338       back along with the end cell. Fortunately, it was zero. But stop
33339       that anyway.
33340     - Correct "your server is reachable" log entries to indicate that
33341       it was self-testing that told us so.
33344 Changes in version 0.1.1.6-alpha - 2005-09-09
33345   o Fixes on 0.1.1.5-alpha:
33346     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
33347     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
33348     - Fix bug with tor_memmem finding a match at the end of the string.
33349     - Make unit tests run without segfaulting.
33350     - Resolve some solaris x86 compile warnings.
33351     - Handle duplicate lines in approved-routers files without warning.
33352     - Fix bug where as soon as a server refused any requests due to his
33353       exit policy (e.g. when we ask for localhost and he tells us that's
33354       127.0.0.1 and he won't do it), we decided he wasn't obeying his
33355       exit policy using him for any exits.
33356     - Only do openssl hardware accelerator stuff if openssl version is
33357       at least 0.9.7.
33359   o New controller features/fixes:
33360     - Add a "RESETCONF" command so you can set config options like
33361       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
33362       a config option in the torrc with no value, then it clears it
33363       entirely (rather than setting it to its default).
33364     - Add a "GETINFO config-file" to tell us where torrc is.
33365     - Avoid sending blank lines when GETINFO replies should be empty.
33366     - Add a QUIT command for the controller (for using it manually).
33367     - Fix a bug in SAVECONF that was adding default dirservers and
33368       other redundant entries to the torrc file.
33370   o Start on the new directory design:
33371     - Generate, publish, cache, serve new network-status format.
33372     - Publish individual descriptors (by fingerprint, by "all", and by
33373       "tell me yours").
33374     - Publish client and server recommended versions separately.
33375     - Allow tor_gzip_uncompress() to handle multiple concatenated
33376       compressed strings. Serve compressed groups of router
33377       descriptors. The compression logic here could be more
33378       memory-efficient.
33379     - Distinguish v1 authorities (all currently trusted directories)
33380       from v2 authorities (all trusted directories).
33381     - Change DirServers config line to note which dirs are v1 authorities.
33382     - Add configuration option "V1AuthoritativeDirectory 1" which
33383       moria1, moria2, and tor26 should set.
33384     - Remove option when getting directory cache to see whether they
33385       support running-routers; they all do now. Replace it with one
33386       to see whether caches support v2 stuff.
33388   o New features:
33389     - Dirservers now do their own external reachability testing of each
33390       Tor server, and only list them as running if they've been found to
33391       be reachable. We also send back warnings to the server's logs if
33392       it uploads a descriptor that we already believe is unreachable.
33393     - Implement exit enclaves: if we know an IP address for the
33394       destination, and there's a running Tor server at that address
33395       which allows exit to the destination, then extend the circuit to
33396       that exit first. This provides end-to-end encryption and end-to-end
33397       authentication. Also, if the user wants a .exit address or enclave,
33398       use 4 hops rather than 3, and cannibalize a general circ for it
33399       if you can.
33400     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
33401       controller. Also, rotate dns and cpu workers if the controller
33402       changes options that will affect them; and initialize the dns
33403       worker cache tree whether or not we start out as a server.
33404     - Only upload a new server descriptor when options change, 18
33405       hours have passed, uptime is reset, or bandwidth changes a lot.
33406     - Check [X-]Forwarded-For headers in HTTP requests when generating
33407       log messages. This lets people run dirservers (and caches) behind
33408       Apache but still know which IP addresses are causing warnings.
33410   o Config option changes:
33411     - Replace (Fascist)Firewall* config options with a new
33412       ReachableAddresses option that understands address policies.
33413       For example, "ReachableAddresses *:80,*:443"
33414     - Get rid of IgnoreVersion undocumented config option, and make us
33415       only warn, never exit, when we're running an obsolete version.
33416     - Make MonthlyAccountingStart config option truly obsolete now.
33418   o Fixes on 0.1.0.x:
33419     - Reject ports 465 and 587 in the default exit policy, since
33420       people have started using them for spam too.
33421     - It turns out we couldn't bootstrap a network since we added
33422       reachability detection in 0.1.0.1-rc. Good thing the Tor network
33423       has never gone down. Add an AssumeReachable config option to let
33424       servers and dirservers bootstrap. When we're trying to build a
33425       high-uptime or high-bandwidth circuit but there aren't enough
33426       suitable servers, try being less picky rather than simply failing.
33427     - Our logic to decide if the OR we connected to was the right guy
33428       was brittle and maybe open to a mitm for unverified routers.
33429     - We weren't cannibalizing circuits correctly for
33430       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
33431       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
33432       build those from scratch. This should make hidden services faster.
33433     - Predict required circuits better, with an eye toward making hidden
33434       services faster on the service end.
33435     - Retry streams if the exit node sends back a 'misc' failure. This
33436       should result in fewer random failures. Also, after failing
33437       from resolve failed or misc, reset the num failures, so we give
33438       it a fair shake next time we try.
33439     - Clean up the rendezvous warn log msgs, and downgrade some to info.
33440     - Reduce severity on logs about dns worker spawning and culling.
33441     - When we're shutting down and we do something like try to post a
33442       server descriptor or rendezvous descriptor, don't complain that
33443       we seem to be unreachable. Of course we are, we're shutting down.
33444     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
33445       We don't use them yet, but maybe one day our DNS resolver will be
33446       able to discover them.
33447     - Make ContactInfo mandatory for authoritative directory servers.
33448     - Require server descriptors to list IPv4 addresses -- hostnames
33449       are no longer allowed. This also fixes some potential security
33450       problems with people providing hostnames as their address and then
33451       preferentially resolving them to partition users.
33452     - Change log line for unreachability to explicitly suggest /etc/hosts
33453       as the culprit. Also make it clearer what IP address and ports we're
33454       testing for reachability.
33455     - Put quotes around user-supplied strings when logging so users are
33456       more likely to realize if they add bad characters (like quotes)
33457       to the torrc.
33458     - Let auth dir servers start without specifying an Address config
33459       option.
33460     - Make unit tests (and other invocations that aren't the real Tor)
33461       run without launching listeners, creating subdirectories, and so on.
33464 Changes in version 0.1.1.5-alpha - 2005-08-08
33465   o Bugfixes included in 0.1.0.14.
33467   o Bugfixes on 0.1.0.x:
33468     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
33469       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
33470       it would silently using ignore the 6668.
33473 Changes in version 0.1.0.14 - 2005-08-08
33474   o Bugfixes on 0.1.0.x:
33475       - Fix the other half of the bug with crypto handshakes
33476         (CVE-2005-2643).
33477       - Fix an assert trigger if you send a 'signal term' via the
33478         controller when it's listening for 'event info' messages.
33481 Changes in version 0.1.1.4-alpha - 2005-08-04
33482   o Bugfixes included in 0.1.0.13.
33484   o Features:
33485     - Improve tor_gettimeofday() granularity on windows.
33486     - Make clients regenerate their keys when their IP address changes.
33487     - Implement some more GETINFO goodness: expose helper nodes, config
33488       options, getinfo keys.
33491 Changes in version 0.1.0.13 - 2005-08-04
33492   o Bugfixes on 0.1.0.x:
33493     - Fix a critical bug in the security of our crypto handshakes.
33494     - Fix a size_t underflow in smartlist_join_strings2() that made
33495       it do bad things when you hand it an empty smartlist.
33496     - Fix Windows installer to ship Tor license (thanks to Aphex for
33497       pointing out this oversight) and put a link to the doc directory
33498       in the start menu.
33499     - Explicitly set no-unaligned-access for sparc: it turns out the
33500       new gcc's let you compile broken code, but that doesn't make it
33501       not-broken.
33504 Changes in version 0.1.1.3-alpha - 2005-07-23
33505   o Bugfixes on 0.1.1.2-alpha:
33506     - Fix a bug in handling the controller's "post descriptor"
33507       function.
33508     - Fix several bugs in handling the controller's "extend circuit"
33509       function.
33510     - Fix a bug in handling the controller's "stream status" event.
33511     - Fix an assert failure if we have a controller listening for
33512       circuit events and we go offline.
33513     - Re-allow hidden service descriptors to publish 0 intro points.
33514     - Fix a crash when generating your hidden service descriptor if
33515       you don't have enough intro points already.
33517   o New features on 0.1.1.2-alpha:
33518     - New controller function "getinfo accounting", to ask how
33519       many bytes we've used in this time period.
33520     - Experimental support for helper nodes: a lot of the risk from
33521       a small static adversary comes because users pick new random
33522       nodes every time they rebuild a circuit. Now users will try to
33523       stick to the same small set of entry nodes if they can. Not
33524       enabled by default yet.
33526   o Bugfixes on 0.1.0.12:
33527     - If you're an auth dir server, always publish your dirport,
33528       even if you haven't yet found yourself to be reachable.
33529     - Fix a size_t underflow in smartlist_join_strings2() that made
33530       it do bad things when you hand it an empty smartlist.
33533 Changes in version 0.1.0.12 - 2005-07-18
33534   o New directory servers:
33535       - tor26 has changed IP address.
33537   o Bugfixes on 0.1.0.x:
33538     - Fix a possible double-free in tor_gzip_uncompress().
33539     - When --disable-threads is set, do not search for or link against
33540       pthreads libraries.
33541     - Don't trigger an assert if an authoritative directory server
33542       claims its dirport is 0.
33543     - Fix bug with removing Tor as an NT service: some people were
33544       getting "The service did not return an error." Thanks to Matt
33545       Edman for the fix.
33548 Changes in version 0.1.1.2-alpha - 2005-07-15
33549   o New directory servers:
33550     - tor26 has changed IP address.
33552   o Bugfixes on 0.1.0.x, crashes/leaks:
33553     - Port the servers-not-obeying-their-exit-policies fix from
33554       0.1.0.11.
33555     - Fix an fd leak in start_daemon().
33556     - On Windows, you can't always reopen a port right after you've
33557       closed it. So change retry_listeners() to only close and re-open
33558       ports that have changed.
33559     - Fix a possible double-free in tor_gzip_uncompress().
33561   o Bugfixes on 0.1.0.x, usability:
33562     - When tor_socketpair() fails in Windows, give a reasonable
33563       Windows-style errno back.
33564     - Let people type "tor --install" as well as "tor -install" when
33565       they
33566       want to make it an NT service.
33567     - NT service patch from Matt Edman to improve error messages.
33568     - When the controller asks for a config option with an abbreviated
33569       name, give the full name in our response.
33570     - Correct the man page entry on TrackHostExitsExpire.
33571     - Looks like we were never delivering deflated (i.e. compressed)
33572       running-routers lists, even when asked. Oops.
33573     - When --disable-threads is set, do not search for or link against
33574       pthreads libraries.
33576   o Bugfixes on 0.1.1.x:
33577     - Fix a seg fault with autodetecting which controller version is
33578       being used.
33580   o Features:
33581     - New hidden service descriptor format: put a version in it, and
33582       let people specify introduction/rendezvous points that aren't
33583       in "the directory" (which is subjective anyway).
33584     - Allow the DEBUG controller event to work again. Mark certain log
33585       entries as "don't tell this to controllers", so we avoid cycles.
33588 Changes in version 0.1.0.11 - 2005-06-30
33589   o Bugfixes on 0.1.0.x:
33590     - Fix major security bug: servers were disregarding their
33591       exit policies if clients behaved unexpectedly.
33592     - Make OS X init script check for missing argument, so we don't
33593       confuse users who invoke it incorrectly.
33594     - Fix a seg fault in "tor --hash-password foo".
33595     - The MAPADDRESS control command was broken.
33598 Changes in version 0.1.1.1-alpha - 2005-06-29
33599   o Bugfixes:
33600     - Make OS X init script check for missing argument, so we don't
33601       confuse users who invoke it incorrectly.
33602     - Fix a seg fault in "tor --hash-password foo".
33603     - Fix a possible way to DoS dirservers.
33604     - When we complain that your exit policy implicitly allows local or
33605       private address spaces, name them explicitly so operators can
33606       fix it.
33607     - Make the log message less scary when all the dirservers are
33608       temporarily unreachable.
33609     - We were printing the number of idle dns workers incorrectly when
33610       culling them.
33612   o Features:
33613     - Revised controller protocol (version 1) that uses ascii rather
33614       than binary. Add supporting libraries in python and java so you
33615       can use the controller from your applications without caring how
33616       our protocol works.
33617     - Spiffy new support for crypto hardware accelerators. Can somebody
33618       test this?
33621 Changes in version 0.0.9.10 - 2005-06-16
33622   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
33623     - Refuse relay cells that claim to have a length larger than the
33624       maximum allowed. This prevents a potential attack that could read
33625       arbitrary memory (e.g. keys) from an exit server's process
33626       (CVE-2005-2050).
33629 Changes in version 0.1.0.10 - 2005-06-14
33630   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
33631     libevent before 1.1a.
33634 Changes in version 0.1.0.9-rc - 2005-06-09
33635   o Bugfixes:
33636     - Reset buf->highwater every time buf_shrink() is called, not just on
33637       a successful shrink. This was causing significant memory bloat.
33638     - Fix buffer overflow when checking hashed passwords.
33639     - Security fix: if seeding the RNG on Win32 fails, quit.
33640     - Allow seeding the RNG on Win32 even when you're not running as
33641       Administrator.
33642     - Disable threading on Solaris too. Something is wonky with it,
33643       cpuworkers, and reentrant libs.
33644     - Reenable the part of the code that tries to flush as soon as an
33645       OR outbuf has a full TLS record available. Perhaps this will make
33646       OR outbufs not grow as huge except in rare cases, thus saving lots
33647       of CPU time plus memory.
33648     - Reject malformed .onion addresses rather then passing them on as
33649       normal web requests.
33650     - Adapt patch from Adam Langley: fix possible memory leak in
33651       tor_lookup_hostname().
33652     - Initialize libevent later in the startup process, so the logs are
33653       already established by the time we start logging libevent warns.
33654     - Use correct errno on win32 if libevent fails.
33655     - Check and warn about known-bad/slow libevent versions.
33656     - Pay more attention to the ClientOnly config option.
33657     - Have torctl.in/tor.sh.in check for location of su binary (needed
33658       on FreeBSD)
33659     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
33660       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
33661       HttpProxyAuthenticator
33662     - Stop warning about sigpipes in the logs. We're going to
33663       pretend that getting these occasionally is normal and fine.
33664     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
33665       certain
33666       installer screens; and don't put stuff into StartupItems unless
33667       the user asks you to.
33668     - Require servers that use the default dirservers to have public IP
33669       addresses. We have too many servers that are configured with private
33670       IPs and their admins never notice the log entries complaining that
33671       their descriptors are being rejected.
33672     - Add OSX uninstall instructions. An actual uninstall script will
33673       come later.
33676 Changes in version 0.1.0.8-rc - 2005-05-23
33677   o Bugfixes:
33678     - It turns out that kqueue on OS X 10.3.9 was causing kernel
33679       panics. Disable kqueue on all OS X Tors.
33680     - Fix RPM: remove duplicate line accidentally added to the rpm
33681       spec file.
33682     - Disable threads on openbsd too, since its gethostaddr is not
33683       reentrant either.
33684     - Tolerate libevent 0.8 since it still works, even though it's
33685       ancient.
33686     - Enable building on Red Hat 9.0 again.
33687     - Allow the middle hop of the testing circuit to be running any
33688       version, now that most of them have the bugfix to let them connect
33689       to unknown servers. This will allow reachability testing to work
33690       even when 0.0.9.7-0.0.9.9 become obsolete.
33691     - Handle relay cells with rh.length too large. This prevents
33692       a potential attack that could read arbitrary memory (maybe even
33693       keys) from the exit server's process.
33694     - We screwed up the dirport reachability testing when we don't yet
33695       have a cached version of the directory. Hopefully now fixed.
33696     - Clean up router_load_single_router() (used by the controller),
33697       so it doesn't seg fault on error.
33698     - Fix a minor memory leak when somebody establishes an introduction
33699       point at your Tor server.
33700     - If a socks connection ends because read fails, don't warn that
33701       you're not sending a socks reply back.
33703   o Features:
33704     - Add HttpProxyAuthenticator config option too, that works like
33705       the HttpsProxyAuthenticator config option.
33706     - Encode hashed controller passwords in hex instead of base64,
33707       to make it easier to write controllers.
33710 Changes in version 0.1.0.7-rc - 2005-05-17
33711   o Bugfixes:
33712     - Fix a bug in the OS X package installer that prevented it from
33713       installing on Tiger.
33714     - Fix a script bug in the OS X package installer that made it
33715       complain during installation.
33716     - Find libevent even if it's hiding in /usr/local/ and your
33717       CFLAGS and LDFLAGS don't tell you to look there.
33718     - Be able to link with libevent as a shared library (the default
33719       after 1.0d), even if it's hiding in /usr/local/lib and even
33720       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
33721       assuming you're running gcc. Otherwise fail and give a useful
33722       error message.
33723     - Fix a bug in the RPM packager: set home directory for _tor to
33724       something more reasonable when first installing.
33725     - Free a minor amount of memory that is still reachable on exit.
33728 Changes in version 0.1.0.6-rc - 2005-05-14
33729   o Bugfixes:
33730     - Implement --disable-threads configure option. Disable threads on
33731       netbsd by default, because it appears to have no reentrant resolver
33732       functions.
33733     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
33734       release (1.1) detects and disables kqueue if it's broken.
33735     - Append default exit policy before checking for implicit internal
33736       addresses. Now we don't log a bunch of complaints on startup
33737       when using the default exit policy.
33738     - Some people were putting "Address  " in their torrc, and they had
33739       a buggy resolver that resolved " " to 0.0.0.0. Oops.
33740     - If DataDir is ~/.tor, and that expands to /.tor, then default to
33741       LOCALSTATEDIR/tor instead.
33742     - Fix fragmented-message bug in TorControl.py.
33743     - Resolve a minor bug which would prevent unreachable dirports
33744       from getting suppressed in the published descriptor.
33745     - When the controller gave us a new descriptor, we weren't resolving
33746       it immediately, so Tor would think its address was 0.0.0.0 until
33747       we fetched a new directory.
33748     - Fix an uppercase/lowercase case error in suppressing a bogus
33749       libevent warning on some Linuxes.
33751   o Features:
33752     - Begin scrubbing sensitive strings from logs by default. Turn off
33753       the config option SafeLogging if you need to do debugging.
33754     - Switch to a new buffer management algorithm, which tries to avoid
33755       reallocing and copying quite as much. In first tests it looks like
33756       it uses *more* memory on average, but less cpu.
33757     - First cut at support for "create-fast" cells. Clients can use
33758       these when extending to their first hop, since the TLS already
33759       provides forward secrecy and authentication. Not enabled on
33760       clients yet.
33761     - When dirservers refuse a router descriptor, we now log its
33762       contactinfo, platform, and the poster's IP address.
33763     - Call tor_free_all instead of connections_free_all after forking, to
33764       save memory on systems that need to fork.
33765     - Whine at you if you're a server and you don't set your contactinfo.
33766     - Implement --verify-config command-line option to check if your torrc
33767       is valid without actually launching Tor.
33768     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
33769       rather than just rejecting it.
33772 Changes in version 0.1.0.5-rc - 2005-04-27
33773   o Bugfixes:
33774     - Stop trying to print a null pointer if an OR conn fails because
33775       we didn't like its cert.
33776   o Features:
33777     - Switch our internal buffers implementation to use a ring buffer,
33778       to hopefully improve performance for fast servers a lot.
33779     - Add HttpsProxyAuthenticator support (basic auth only), based
33780       on patch from Adam Langley.
33781     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
33782       the fast servers that have been joining lately.
33783     - Give hidden service accesses extra time on the first attempt,
33784       since 60 seconds is often only barely enough. This might improve
33785       robustness more.
33786     - Improve performance for dirservers: stop re-parsing the whole
33787       directory every time you regenerate it.
33788     - Add more debugging info to help us find the weird dns freebsd
33789       pthreads bug; cleaner debug messages to help track future issues.
33792 Changes in version 0.0.9.9 - 2005-04-23
33793   o Bugfixes on 0.0.9.x:
33794     - If unofficial Tor clients connect and send weird TLS certs, our
33795       Tor server triggers an assert. This release contains a minimal
33796       backport from the broader fix that we put into 0.1.0.4-rc.
33799 Changes in version 0.1.0.4-rc - 2005-04-23
33800   o Bugfixes:
33801     - If unofficial Tor clients connect and send weird TLS certs, our
33802       Tor server triggers an assert. Stop asserting, and start handling
33803       TLS errors better in other situations too.
33804     - When the controller asks us to tell it about all the debug-level
33805       logs, it turns out we were generating debug-level logs while
33806       telling it about them, which turns into a bad loop. Now keep
33807       track of whether you're sending a debug log to the controller,
33808       and don't log when you are.
33809     - Fix the "postdescriptor" feature of the controller interface: on
33810       non-complete success, only say "done" once.
33811   o Features:
33812     - Clients are now willing to load balance over up to 2mB, not 1mB,
33813       of advertised bandwidth capacity.
33814     - Add a NoPublish config option, so you can be a server (e.g. for
33815       testing running Tor servers in other Tor networks) without
33816       publishing your descriptor to the primary dirservers.
33819 Changes in version 0.1.0.3-rc - 2005-04-08
33820   o Improvements on 0.1.0.2-rc:
33821     - Client now retries when streams end early for 'hibernating' or
33822       'resource limit' reasons, rather than failing them.
33823     - More automated handling for dirserver operators:
33824       - Automatically approve nodes running 0.1.0.2-rc or later,
33825         now that the the reachability detection stuff is working.
33826       - Now we allow two unverified servers with the same nickname
33827         but different keys. But if a nickname is verified, only that
33828         nickname+key are allowed.
33829       - If you're an authdirserver connecting to an address:port,
33830         and it's not the OR you were expecting, forget about that
33831         descriptor. If he *was* the one you were expecting, then forget
33832         about all other descriptors for that address:port.
33833       - Allow servers to publish descriptors from 12 hours in the future.
33834         Corollary: only whine about clock skew from the dirserver if
33835         he's a trusted dirserver (since now even verified servers could
33836         have quite wrong clocks).
33837     - Adjust maximum skew and age for rendezvous descriptors: let skew
33838       be 48 hours rather than 90 minutes.
33839     - Efficiency improvements:
33840       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
33841         it much faster to look up a circuit for each relay cell.
33842       - Remove most calls to assert_all_pending_dns_resolves_ok(),
33843         since they're eating our cpu on exit nodes.
33844       - Stop wasting time doing a case insensitive comparison for every
33845         dns name every time we do any lookup. Canonicalize the names to
33846         lowercase and be done with it.
33847     - Start sending 'truncated' cells back rather than destroy cells,
33848       if the circuit closes in front of you. This means we won't have
33849       to abandon partially built circuits.
33850     - Only warn once per nickname from add_nickname_list_to_smartlist
33851       per failure, so an entrynode or exitnode choice that's down won't
33852       yell so much.
33853     - Put a note in the torrc about abuse potential with the default
33854       exit policy.
33855     - Revise control spec and implementation to allow all log messages to
33856       be sent to controller with their severities intact (suggested by
33857       Matt Edman). Update TorControl to handle new log event types.
33858     - Provide better explanation messages when controller's POSTDESCRIPTOR
33859       fails.
33860     - Stop putting nodename in the Platform string in server descriptors.
33861       It doesn't actually help, and it is confusing/upsetting some people.
33863   o Bugfixes on 0.1.0.2-rc:
33864     - We were printing the host mask wrong in exit policies in server
33865       descriptors. This isn't a critical bug though, since we were still
33866       obeying the exit policy internally.
33867     - Fix Tor when compiled with libevent but without pthreads: move
33868       connection_unregister() from _connection_free() to
33869       connection_free().
33870     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
33871       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
33872       when we look through the connection array, we'll find any of the
33873       cpu/dnsworkers. This is no good.
33875   o Bugfixes on 0.0.9.8:
33876     - Fix possible bug on threading platforms (e.g. win32) which was
33877       leaking a file descriptor whenever a cpuworker or dnsworker died.
33878     - When using preferred entry or exit nodes, ignore whether the
33879       circuit wants uptime or capacity. They asked for the nodes, they
33880       get the nodes.
33881     - chdir() to your datadirectory at the *end* of the daemonize process,
33882       not the beginning. This was a problem because the first time you
33883       run tor, if your datadir isn't there, and you have runasdaemon set
33884       to 1, it will try to chdir to it before it tries to create it. Oops.
33885     - Handle changed router status correctly when dirserver reloads
33886       fingerprint file. We used to be dropping all unverified descriptors
33887       right then. The bug was hidden because we would immediately
33888       fetch a directory from another dirserver, which would include the
33889       descriptors we just dropped.
33890     - When we're connecting to an OR and he's got a different nickname/key
33891       than we were expecting, only complain loudly if we're an OP or a
33892       dirserver. Complaining loudly to the OR admins just confuses them.
33893     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
33894       artificially capped at 500kB.
33897 Changes in version 0.0.9.8 - 2005-04-07
33898   o Bugfixes on 0.0.9.x:
33899     - We have a bug that I haven't found yet. Sometimes, very rarely,
33900       cpuworkers get stuck in the 'busy' state, even though the cpuworker
33901       thinks of itself as idle. This meant that no new circuits ever got
33902       established. Here's a workaround to kill any cpuworker that's been
33903       busy for more than 100 seconds.
33906 Changes in version 0.1.0.2-rc - 2005-04-01
33907   o Bugfixes on 0.1.0.1-rc:
33908     - Fixes on reachability detection:
33909       - Don't check for reachability while hibernating.
33910       - If ORPort is reachable but DirPort isn't, still publish the
33911         descriptor, but zero out DirPort until it's found reachable.
33912       - When building testing circs for ORPort testing, use only
33913         high-bandwidth nodes, so fewer circuits fail.
33914       - Complain about unreachable ORPort separately from unreachable
33915         DirPort, so the user knows what's going on.
33916       - Make sure we only conclude ORPort reachability if we didn't
33917         initiate the conn. Otherwise we could falsely conclude that
33918         we're reachable just because we connected to the guy earlier
33919         and he used that same pipe to extend to us.
33920       - Authdirservers shouldn't do ORPort reachability detection,
33921         since they're in clique mode, so it will be rare to find a
33922         server not already connected to them.
33923       - When building testing circuits, always pick middle hops running
33924         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
33925         bug. (This is a kludge; it will go away when 0.0.9.x becomes
33926         obsolete.)
33927       - When we decide we're reachable, actually publish our descriptor
33928         right then.
33929     - Fix bug in redirectstream in the controller.
33930     - Fix the state descriptor strings so logs don't claim edge streams
33931       are in a different state than they actually are.
33932     - Use recent libevent features when possible (this only really affects
33933       win32 and osx right now, because the new libevent with these
33934       features hasn't been released yet). Add code to suppress spurious
33935       libevent log msgs.
33936     - Prevent possible segfault in connection_close_unattached_ap().
33937     - Fix newlines on torrc in win32.
33938     - Improve error msgs when tor-resolve fails.
33940   o Improvements on 0.0.9.x:
33941     - New experimental script tor/contrib/ExerciseServer.py (needs more
33942       work) that uses the controller interface to build circuits and
33943       fetch pages over them. This will help us bootstrap servers that
33944       have lots of capacity but haven't noticed it yet.
33945     - New experimental script tor/contrib/PathDemo.py (needs more work)
33946       that uses the controller interface to let you choose whole paths
33947       via addresses like
33948       "<hostname>.<path,separated by dots>.<length of path>.path"
33949     - When we've connected to an OR and handshaked but didn't like
33950       the result, we were closing the conn without sending destroy
33951       cells back for pending circuits. Now send those destroys.
33954 Changes in version 0.0.9.7 - 2005-04-01
33955   o Bugfixes on 0.0.9.x:
33956     - Fix another race crash bug (thanks to Glenn Fink for reporting).
33957     - Compare identity to identity, not to nickname, when extending to
33958       a router not already in the directory. This was preventing us from
33959       extending to unknown routers. Oops.
33960     - Make sure to create OS X Tor user in <500 range, so we aren't
33961       creating actual system users.
33962     - Note where connection-that-hasn't-sent-end was marked, and fix
33963       a few really loud instances of this harmless bug (it's fixed more
33964       in 0.1.0.x).
33967 Changes in version 0.1.0.1-rc - 2005-03-28
33968   o New features:
33969     - Add reachability testing. Your Tor server will automatically try
33970       to see if its ORPort and DirPort are reachable from the outside,
33971       and it won't upload its descriptor until it decides they are.
33972     - Handle unavailable hidden services better. Handle slow or busy
33973       hidden services better.
33974     - Add support for CONNECTing through https proxies, with "HttpsProxy"
33975       config option.
33976     - New exit policy: accept most low-numbered ports, rather than
33977       rejecting most low-numbered ports.
33978     - More Tor controller support (still experimental). See
33979       http://tor.eff.org/doc/control-spec.txt for all the new features,
33980       including signals to emulate unix signals from any platform;
33981       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
33982       closestream; closecircuit; etc.
33983     - Make nt services work and start on startup on win32 (based on
33984       patch by Matt Edman).
33985     - Add a new AddressMap config directive to rewrite incoming socks
33986       addresses. This lets you, for example, declare an implicit
33987       required exit node for certain sites.
33988     - Add a new TrackHostExits config directive to trigger addressmaps
33989       for certain incoming socks addresses -- for sites that break when
33990       your exit keeps changing (based on patch by Mike Perry).
33991     - Redo the client-side dns cache so it's just an addressmap too.
33992     - Notice when our IP changes, and reset stats/uptime/reachability.
33993     - When an application is using socks5, give him the whole variety of
33994       potential socks5 responses (connect refused, host unreachable, etc),
33995       rather than just "success" or "failure".
33996     - A more sane version numbering system. See
33997       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
33998     - New contributed script "exitlist": a simple python script to
33999       parse directories and find Tor nodes that exit to listed
34000       addresses/ports.
34001     - New contributed script "privoxy-tor-toggle" to toggle whether
34002       Privoxy uses Tor. Seems to be configured for Debian by default.
34003     - Report HTTP reasons to client when getting a response from directory
34004       servers -- so you can actually know what went wrong.
34005     - New config option MaxAdvertisedBandwidth which lets you advertise
34006       a low bandwidthrate (to not attract as many circuits) while still
34007       allowing a higher bandwidthrate in reality.
34009   o Robustness/stability fixes:
34010     - Make Tor use Niels Provos's libevent instead of its current
34011       poll-but-sometimes-select mess. This will let us use faster async
34012       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
34013       on Windows too.
34014     - pthread support now too. This was forced because when we forked,
34015       we ended up wasting a lot of duplicate ram over time. Also switch
34016       to foo_r versions of some library calls to allow reentry and
34017       threadsafeness.
34018     - Better handling for heterogeneous / unreliable nodes:
34019       - Annotate circuits w/ whether they aim to contain high uptime nodes
34020         and/or high capacity nodes. When building circuits, choose
34021         appropriate nodes.
34022       - This means that every single node in an intro rend circuit,
34023         not just the last one, will have a minimum uptime.
34024       - New config option LongLivedPorts to indicate application streams
34025         that will want high uptime circuits.
34026       - Servers reset uptime when a dir fetch entirely fails. This
34027         hopefully reflects stability of the server's network connectivity.
34028       - If somebody starts his tor server in Jan 2004 and then fixes his
34029         clock, don't make his published uptime be a year.
34030       - Reset published uptime when you wake up from hibernation.
34031     - Introduce a notion of 'internal' circs, which are chosen without
34032       regard to the exit policy of the last hop. Intro and rendezvous
34033       circs must be internal circs, to avoid leaking information. Resolve
34034       and connect streams can use internal circs if they want.
34035     - New circuit pooling algorithm: make sure to have enough circs around
34036       to satisfy any predicted ports, and also make sure to have 2 internal
34037       circs around if we've required internal circs lately (and with high
34038       uptime if we've seen that lately too).
34039     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
34040       which describes how often we retry making new circuits if current
34041       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
34042       how long we're willing to make use of an already-dirty circuit.
34043     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
34044       circ as necessary, if there are any completed ones lying around
34045       when we try to launch one.
34046     - Make hidden services try to establish a rendezvous for 30 seconds,
34047       rather than for n (where n=3) attempts to build a circuit.
34048     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
34049       "ShutdownWaitLength".
34050     - Try to be more zealous about calling connection_edge_end when
34051       things go bad with edge conns in connection.c.
34052     - Revise tor-spec to add more/better stream end reasons.
34053     - Revise all calls to connection_edge_end to avoid sending "misc",
34054       and to take errno into account where possible.
34056   o Bug fixes:
34057     - Fix a race condition that can trigger an assert, when we have a
34058       pending create cell and an OR connection fails right then.
34059     - Fix several double-mark-for-close bugs, e.g. where we were finding
34060       a conn for a cell even if that conn is already marked for close.
34061     - Make sequence of log messages when starting on win32 with no config
34062       file more reasonable.
34063     - When choosing an exit node for a new non-internal circ, don't take
34064       into account whether it'll be useful for any pending x.onion
34065       addresses -- it won't.
34066     - Turn addr_policy_compare from a tristate to a quadstate; this should
34067       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
34068       for google.com" problem.
34069     - Make "platform" string in descriptor more accurate for Win32 servers,
34070       so it's not just "unknown platform".
34071     - Fix an edge case in parsing config options (thanks weasel).
34072       If they say "--" on the commandline, it's not an option.
34073     - Reject odd-looking addresses at the client (e.g. addresses that
34074       contain a colon), rather than having the server drop them because
34075       they're malformed.
34076     - tor-resolve requests were ignoring .exit if there was a working circuit
34077       they could use instead.
34078     - REUSEADDR on normal platforms means you can rebind to the port
34079       right after somebody else has let it go. But REUSEADDR on win32
34080       means to let you bind to the port _even when somebody else
34081       already has it bound_! So, don't do that on Win32.
34082     - Change version parsing logic: a version is "obsolete" if it is not
34083       recommended and (1) there is a newer recommended version in the
34084       same series, or (2) there are no recommended versions in the same
34085       series, but there are some recommended versions in a newer series.
34086       A version is "new" if it is newer than any recommended version in
34087       the same series.
34088     - Stop most cases of hanging up on a socks connection without sending
34089       the socks reject.
34091   o Helpful fixes:
34092     - Require BandwidthRate to be at least 20kB/s for servers.
34093     - When a dirserver causes you to give a warn, mention which dirserver
34094       it was.
34095     - New config option DirAllowPrivateAddresses for authdirservers.
34096       Now by default they refuse router descriptors that have non-IP or
34097       private-IP addresses.
34098     - Stop publishing socksport in the directory, since it's not
34099       actually meant to be public. For compatibility, publish a 0 there
34100       for now.
34101     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
34102       smart" value, that is low for servers and high for clients.
34103     - If our clock jumps forward by 100 seconds or more, assume something
34104       has gone wrong with our network and abandon all not-yet-used circs.
34105     - Warn when exit policy implicitly allows local addresses.
34106     - If we get an incredibly skewed timestamp from a dirserver mirror
34107       that isn't a verified OR, don't warn -- it's probably him that's
34108       wrong.
34109     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
34110       cookies to disk and doesn't log each web request to disk. (Thanks
34111       to Brett Carrington for pointing this out.)
34112     - When a client asks us for a dir mirror and we don't have one,
34113       launch an attempt to get a fresh one.
34114     - If we're hibernating and we get a SIGINT, exit immediately.
34115     - Add --with-dmalloc ./configure option, to track memory leaks.
34116     - And try to free all memory on closing, so we can detect what
34117       we're leaking.
34118     - Cache local dns resolves correctly even when they're .exit
34119       addresses.
34120     - Give a better warning when some other server advertises an
34121       ORPort that is actually an apache running ssl.
34122     - Add "opt hibernating 1" to server descriptor to make it clearer
34123       whether the server is hibernating.
34126 Changes in version 0.0.9.6 - 2005-03-24
34127   o Bugfixes on 0.0.9.x (crashes and asserts):
34128     - Add new end stream reasons to maintenance branch. Fix bug where
34129       reason (8) could trigger an assert. Prevent bug from recurring.
34130     - Apparently win32 stat wants paths to not end with a slash.
34131     - Fix assert triggers in assert_cpath_layer_ok(), where we were
34132       blowing away the circuit that conn->cpath_layer points to, then
34133       checking to see if the circ is well-formed. Backport check to make
34134       sure we dont use the cpath on a closed connection.
34135     - Prevent circuit_resume_edge_reading_helper() from trying to package
34136       inbufs for marked-for-close streams.
34137     - Don't crash on hup if your options->address has become unresolvable.
34138     - Some systems (like OS X) sometimes accept() a connection and tell
34139       you the remote host is 0.0.0.0:0. If this happens, due to some
34140       other mis-features, we get confused; so refuse the conn for now.
34142   o Bugfixes on 0.0.9.x (other):
34143     - Fix harmless but scary "Unrecognized content encoding" warn message.
34144     - Add new stream error reason: TORPROTOCOL reason means "you are not
34145       speaking a version of Tor I understand; say bye-bye to your stream."
34146     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
34147       into the future, now that we are more tolerant of skew. This
34148       resolves a bug where a Tor server would refuse to cache a directory
34149       because all the directories it gets are too far in the future;
34150       yet the Tor server never logs any complaints about clock skew.
34151     - Mac packaging magic: make man pages useable, and do not overwrite
34152       existing torrc files.
34153     - Make OS X log happily to /var/log/tor/tor.log
34156 Changes in version 0.0.9.5 - 2005-02-22
34157   o Bugfixes on 0.0.9.x:
34158     - Fix an assert race at exit nodes when resolve requests fail.
34159     - Stop picking unverified dir mirrors--it only leads to misery.
34160     - Patch from Matt Edman to make NT services work better. Service
34161       support is still not compiled into the executable by default.
34162     - Patch from Dmitri Bely so the Tor service runs better under
34163       the win32 SYSTEM account.
34164     - Make tor-resolve actually work (?) on Win32.
34165     - Fix a sign bug when getrlimit claims to have 4+ billion
34166       file descriptors available.
34167     - Stop refusing to start when bandwidthburst == bandwidthrate.
34168     - When create cells have been on the onion queue more than five
34169       seconds, just send back a destroy and take them off the list.
34172 Changes in version 0.0.9.4 - 2005-02-03
34173   o Bugfixes on 0.0.9:
34174     - Fix an assert bug that took down most of our servers: when
34175       a server claims to have 1 GB of bandwidthburst, don't
34176       freak out.
34177     - Don't crash as badly if we have spawned the max allowed number
34178       of dnsworkers, or we're out of file descriptors.
34179     - Block more file-sharing ports in the default exit policy.
34180     - MaxConn is now automatically set to the hard limit of max
34181       file descriptors we're allowed (ulimit -n), minus a few for
34182       logs, etc.
34183     - Give a clearer message when servers need to raise their
34184       ulimit -n when they start running out of file descriptors.
34185     - SGI Compatibility patches from Jan Schaumann.
34186     - Tolerate a corrupt cached directory better.
34187     - When a dirserver hasn't approved your server, list which one.
34188     - Go into soft hibernation after 95% of the bandwidth is used,
34189       not 99%. This is especially important for daily hibernators who
34190       have a small accounting max. Hopefully it will result in fewer
34191       cut connections when the hard hibernation starts.
34192     - Load-balance better when using servers that claim more than
34193       800kB/s of capacity.
34194     - Make NT services work (experimental, only used if compiled in).
34197 Changes in version 0.0.9.3 - 2005-01-21
34198   o Bugfixes on 0.0.9:
34199     - Backport the cpu use fixes from main branch, so busy servers won't
34200       need as much processor time.
34201     - Work better when we go offline and then come back, or when we
34202       run Tor at boot before the network is up. We do this by
34203       optimistically trying to fetch a new directory whenever an
34204       application request comes in and we think we're offline -- the
34205       human is hopefully a good measure of when the network is back.
34206     - Backport some minimal hidserv bugfixes: keep rend circuits open as
34207       long as you keep using them; actually publish hidserv descriptors
34208       shortly after they change, rather than waiting 20-40 minutes.
34209     - Enable Mac startup script by default.
34210     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
34211     - When you update AllowUnverifiedNodes or FirewallPorts via the
34212       controller's setconf feature, we were always appending, never
34213       resetting.
34214     - When you update HiddenServiceDir via setconf, it was screwing up
34215       the order of reading the lines, making it fail.
34216     - Do not rewrite a cached directory back to the cache; otherwise we
34217       will think it is recent and not fetch a newer one on startup.
34218     - Workaround for webservers that lie about Content-Encoding: Tor
34219       now tries to autodetect compressed directories and compression
34220       itself. This lets us Proxypass dir fetches through apache.
34223 Changes in version 0.0.9.2 - 2005-01-04
34224   o Bugfixes on 0.0.9 (crashes and asserts):
34225     - Fix an assert on startup when the disk is full and you're logging
34226       to a file.
34227     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
34228       style address, then we'd crash.
34229     - Fix an assert trigger when the running-routers string we get from
34230       a dirserver is broken.
34231     - Make worker threads start and run on win32. Now win32 servers
34232       may work better.
34233     - Bandaid (not actually fix, but now it doesn't crash) an assert
34234       where the dns worker dies mysteriously and the main Tor process
34235       doesn't remember anything about the address it was resolving.
34237   o Bugfixes on 0.0.9 (Win32):
34238     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
34239       name out of the warning/assert messages.
34240     - Fix a superficial "unhandled error on read" bug on win32.
34241     - The win32 installer no longer requires a click-through for our
34242       license, since our Free Software license grants rights but does not
34243       take any away.
34244     - Win32: When connecting to a dirserver fails, try another one
34245       immediately. (This was already working for non-win32 Tors.)
34246     - Stop trying to parse $HOME on win32 when hunting for default
34247       DataDirectory.
34248     - Make tor-resolve.c work on win32 by calling network_init().
34250   o Bugfixes on 0.0.9 (other):
34251     - Make 0.0.9.x build on Solaris again.
34252     - Due to a fencepost error, we were blowing away the \n when reporting
34253       confvalue items in the controller. So asking for multiple config
34254       values at once couldn't work.
34255     - When listing circuits that are pending on an opening OR connection,
34256       if we're an OR we were listing circuits that *end* at us as
34257       being pending on every listener, dns/cpu worker, etc. Stop that.
34258     - Dirservers were failing to create 'running-routers' or 'directory'
34259       strings if we had more than some threshold of routers. Fix them so
34260       they can handle any number of routers.
34261     - Fix a superficial "Duplicate mark for close" bug.
34262     - Stop checking for clock skew for OR connections, even for servers.
34263     - Fix a fencepost error that was chopping off the last letter of any
34264       nickname that is the maximum allowed nickname length.
34265     - Update URLs in log messages so they point to the new website.
34266     - Fix a potential problem in mangling server private keys while
34267       writing to disk (not triggered yet, as far as we know).
34268     - Include the licenses for other free software we include in Tor,
34269       now that we're shipping binary distributions more regularly.
34272 Changes in version 0.0.9.1 - 2004-12-15
34273   o Bugfixes on 0.0.9:
34274     - Make hibernation actually work.
34275     - Make HashedControlPassword config option work.
34276     - When we're reporting event circuit status to a controller,
34277       don't use the stream status code.
34280 Changes in version 0.0.9 - 2004-12-12
34281   o Cleanups:
34282     - Clean up manpage and torrc.sample file.
34283     - Clean up severities and text of log warnings.
34284   o Mistakes:
34285     - Make servers trigger an assert when they enter hibernation.
34288 Changes in version 0.0.9rc7 - 2004-12-08
34289   o Bugfixes on 0.0.9rc:
34290     - Fix a stack-trashing crash when an exit node begins hibernating.
34291     - Avoid looking at unallocated memory while considering which
34292       ports we need to build circuits to cover.
34293     - Stop a sigpipe: when an 'end' cell races with eof from the app,
34294       we shouldn't hold-open-until-flush if the eof arrived first.
34295     - Fix a bug with init_cookie_authentication() in the controller.
34296     - When recommending new-format log lines, if the upper bound is
34297       LOG_ERR, leave it implicit.
34299   o Bugfixes on 0.0.8.1:
34300     - Fix a whole slew of memory leaks.
34301     - Fix isspace() and friends so they still make Solaris happy
34302       but also so they don't trigger asserts on win32.
34303     - Fix parse_iso_time on platforms without strptime (eg win32).
34304     - win32: tolerate extra "readable" events better.
34305     - win32: when being multithreaded, leave parent fdarray open.
34306     - Make unit tests work on win32.
34309 Changes in version 0.0.9rc6 - 2004-12-06
34310   o Bugfixes on 0.0.9pre:
34311     - Clean up some more integer underflow opportunities (not exploitable
34312       we think).
34313     - While hibernating, hup should not regrow our listeners.
34314     - Send an end to the streams we close when we hibernate, rather
34315       than just chopping them off.
34316     - React to eof immediately on non-open edge connections.
34318   o Bugfixes on 0.0.8.1:
34319     - Calculate timeout for waiting for a connected cell from the time
34320       we sent the begin cell, not from the time the stream started. If
34321       it took a long time to establish the circuit, we would time out
34322       right after sending the begin cell.
34323     - Fix router_compare_addr_to_addr_policy: it was not treating a port
34324       of * as always matching, so we were picking reject *:* nodes as
34325       exit nodes too. Oops.
34327   o Features:
34328     - New circuit building strategy: keep a list of ports that we've
34329       used in the past 6 hours, and always try to have 2 circuits open
34330       or on the way that will handle each such port. Seed us with port
34331       80 so web users won't complain that Tor is "slow to start up".
34332     - Make kill -USR1 dump more useful stats about circuits.
34333     - When warning about retrying or giving up, print the address, so
34334       the user knows which one it's talking about.
34335     - If you haven't used a clean circuit in an hour, throw it away,
34336       just to be on the safe side. (This means after 6 hours a totally
34337       unused Tor client will have no circuits open.)
34340 Changes in version 0.0.9rc5 - 2004-12-01
34341   o Bugfixes on 0.0.8.1:
34342     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
34343     - Let resolve conns retry/expire also, rather than sticking around
34344       forever.
34345     - If we are using select, make sure we stay within FD_SETSIZE.
34347   o Bugfixes on 0.0.9pre:
34348     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
34349       but doesn't seem to be currently; thanks to Ilja van Sprundel for
34350       finding it.
34351     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
34352       instead. Impose minima and maxima for all *Period options; impose
34353       even tighter maxima for fetching if we are a caching dirserver.
34354       Clip rather than rejecting.
34355     - Fetch cached running-routers from servers that serve it (that is,
34356       authdirservers and servers running 0.0.9rc5-cvs or later.)
34358   o Features:
34359     - Accept *:706 (silc) in default exit policy.
34360     - Implement new versioning format for post 0.1.
34361     - Support "foo.nickname.exit" addresses, to let Alice request the
34362       address "foo" as viewed by exit node "nickname". Based on a patch
34363       by Geoff Goodell.
34364     - Make tor --version --version dump the cvs Id of every file.
34367 Changes in version 0.0.9rc4 - 2004-11-28
34368   o Bugfixes on 0.0.8.1:
34369     - Make windows sockets actually non-blocking (oops), and handle
34370       win32 socket errors better.
34372   o Bugfixes on 0.0.9rc1:
34373     - Actually catch the -USR2 signal.
34376 Changes in version 0.0.9rc3 - 2004-11-25
34377   o Bugfixes on 0.0.8.1:
34378     - Flush the log file descriptor after we print "Tor opening log file",
34379       so we don't see those messages days later.
34381   o Bugfixes on 0.0.9rc1:
34382     - Make tor-resolve work again.
34383     - Avoid infinite loop in tor-resolve if tor hangs up on it.
34384     - Fix an assert trigger for clients/servers handling resolves.
34387 Changes in version 0.0.9rc2 - 2004-11-24
34388   o Bugfixes on 0.0.9rc1:
34389     - I broke socks5 support while fixing the eof bug.
34390     - Allow unitless bandwidths and intervals; they default to bytes
34391       and seconds.
34392     - New servers don't start out hibernating; they are active until
34393       they run out of bytes, so they have a better estimate of how
34394       long it takes, and so their operators can know they're working.
34397 Changes in version 0.0.9rc1 - 2004-11-23
34398   o Bugfixes on 0.0.8.1:
34399     - Finally fix a bug that's been plaguing us for a year:
34400       With high load, circuit package window was reaching 0. Whenever
34401       we got a circuit-level sendme, we were reading a lot on each
34402       socket, but only writing out a bit. So we would eventually reach
34403       eof. This would be noticed and acted on even when there were still
34404       bytes sitting in the inbuf.
34405     - When poll() is interrupted, we shouldn't believe the revents values.
34407   o Bugfixes on 0.0.9pre6:
34408     - Fix hibernate bug that caused pre6 to be broken.
34409     - Don't keep rephist info for routers that haven't had activity for
34410       24 hours. (This matters now that clients have keys, since we track
34411       them too.)
34412     - Never call close_temp_logs while validating log options.
34413     - Fix backslash-escaping on tor.sh.in and torctl.in.
34415   o Features:
34416     - Implement weekly/monthly/daily accounting: now you specify your
34417       hibernation properties by
34418       AccountingMax N bytes|KB|MB|GB|TB
34419       AccountingStart day|week|month [day] HH:MM
34420         Defaults to "month 1 0:00".
34421     - Let bandwidth and interval config options be specified as 5 bytes,
34422       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
34423     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
34424       get back to normal.)
34425     - If your requested entry or exit node has advertised bandwidth 0,
34426       pick it anyway.
34427     - Be more greedy about filling up relay cells -- we try reading again
34428       once we've processed the stuff we read, in case enough has arrived
34429       to fill the last cell completely.
34430     - Apply NT service patch from Osamu Fujino. Still needs more work.
34433 Changes in version 0.0.9pre6 - 2004-11-15
34434   o Bugfixes on 0.0.8.1:
34435     - Fix assert failure on malformed socks4a requests.
34436     - Use identity comparison, not nickname comparison, to choose which
34437       half of circuit-ID-space each side gets to use. This is needed
34438       because sometimes we think of a router as a nickname, and sometimes
34439       as a hex ID, and we can't predict what the other side will do.
34440     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
34441       write() call will fail and we handle it there.
34442     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
34443       and smartlist_len, which are two major profiling offenders.
34445   o Bugfixes on 0.0.9pre5:
34446     - Fix a bug in read_all that was corrupting config files on windows.
34447     - When we're raising the max number of open file descriptors to
34448       'unlimited', don't log that we just raised it to '-1'.
34449     - Include event code with events, as required by control-spec.txt.
34450     - Don't give a fingerprint when clients do --list-fingerprint:
34451       it's misleading, because it will never be the same again.
34452     - Stop using strlcpy in tor_strndup, since it was slowing us
34453       down a lot.
34454     - Remove warn on startup about missing cached-directory file.
34455     - Make kill -USR1 work again.
34456     - Hibernate if we start tor during the "wait for wakeup-time" phase
34457       of an accounting interval. Log our hibernation plans better.
34458     - Authoritative dirservers now also cache their directory, so they
34459       have it on start-up.
34461   o Features:
34462     - Fetch running-routers; cache running-routers; compress
34463       running-routers; serve compressed running-routers.z
34464     - Add NSI installer script contributed by J Doe.
34465     - Commit VC6 and VC7 workspace/project files.
34466     - Commit a tor.spec for making RPM files, with help from jbash.
34467     - Add contrib/torctl.in contributed by Glenn Fink.
34468     - Implement the control-spec's SAVECONF command, to write your
34469       configuration to torrc.
34470     - Get cookie authentication for the controller closer to working.
34471     - Include control-spec.txt in the tarball.
34472     - When set_conf changes our server descriptor, upload a new copy.
34473       But don't upload it too often if there are frequent changes.
34474     - Document authentication config in man page, and document signals
34475       we catch.
34476     - Clean up confusing parts of man page and torrc.sample.
34477     - Make expand_filename handle ~ and ~username.
34478     - Use autoconf to enable largefile support where necessary. Use
34479       ftello where available, since ftell can fail at 2GB.
34480     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
34481       log more informatively.
34482     - Give a slightly more useful output for "tor -h".
34483     - Refuse application socks connections to port 0.
34484     - Check clock skew for verified servers, but allow unverified
34485       servers and clients to have any clock skew.
34486     - Break DirFetchPostPeriod into:
34487       - DirFetchPeriod for fetching full directory,
34488       - StatusFetchPeriod for fetching running-routers,
34489       - DirPostPeriod for posting server descriptor,
34490       - RendPostPeriod for posting hidden service descriptors.
34491     - Make sure the hidden service descriptors are at a random offset
34492       from each other, to hinder linkability.
34495 Changes in version 0.0.9pre5 - 2004-11-09
34496   o Bugfixes on 0.0.9pre4:
34497     - Fix a seg fault in unit tests (doesn't affect main program).
34498     - Fix an assert bug where a hidden service provider would fail if
34499       the first hop of his rendezvous circuit was down.
34500     - Hidden service operators now correctly handle version 1 style
34501       INTRODUCE1 cells (nobody generates them still, so not a critical
34502       bug).
34503     - If do_hup fails, actually notice.
34504     - Handle more errnos from accept() without closing the listener.
34505       Some OpenBSD machines were closing their listeners because
34506       they ran out of file descriptors.
34507     - Send resolve cells to exit routers that are running a new
34508       enough version of the resolve code to work right.
34509     - Better handling of winsock includes on non-MSV win32 compilers.
34510     - Some people had wrapped their tor client/server in a script
34511       that would restart it whenever it died. This did not play well
34512       with our "shut down if your version is obsolete" code. Now people
34513       don't fetch a new directory if their local cached version is
34514       recent enough.
34515     - Make our autogen.sh work on ksh as well as bash.
34517   o Major Features:
34518     - Hibernation: New config option "AccountingMaxKB" lets you
34519       set how many KBytes per month you want to allow your server to
34520       consume. Rather than spreading those bytes out evenly over the
34521       month, we instead hibernate for some of the month and pop up
34522       at a deterministic time, work until the bytes are consumed, then
34523       hibernate again. Config option "MonthlyAccountingStart" lets you
34524       specify which day of the month your billing cycle starts on.
34525     - Control interface: a separate program can now talk to your
34526       client/server over a socket, and get/set config options, receive
34527       notifications of circuits and streams starting/finishing/dying,
34528       bandwidth used, etc. The next step is to get some GUIs working.
34529       Let us know if you want to help out. See doc/control-spec.txt .
34530     - Ship a contrib/tor-control.py as an example script to interact
34531       with the control port.
34532     - "tor --hash-password zzyxz" will output a salted password for
34533       use in authenticating to the control interface.
34534     - New log format in config:
34535       "Log minsev[-maxsev] stdout|stderr|syslog" or
34536       "Log minsev[-maxsev] file /var/foo"
34538   o Minor Features:
34539     - DirPolicy config option, to let people reject incoming addresses
34540       from their dirserver.
34541     - "tor --list-fingerprint" will list your identity key fingerprint
34542       and then exit.
34543     - Add "pass" target for RedirectExit, to make it easier to break
34544       out of a sequence of RedirectExit rules.
34545     - Clients now generate a TLS cert too, in preparation for having
34546       them act more like real nodes.
34547     - Ship src/win32/ in the tarball, so people can use it to build.
34548     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
34549       is broken.
34550     - New "router-status" line in directory, to better bind each verified
34551       nickname to its identity key.
34552     - Deprecate unofficial config option abbreviations, and abbreviations
34553       not on the command line.
34554     - Add a pure-C tor-resolve implementation.
34555     - Use getrlimit and friends to ensure we can reach MaxConn (currently
34556       1024) file descriptors.
34558   o Code security improvements, inspired by Ilja:
34559     - Replace sprintf with snprintf. (I think they were all safe, but
34560       hey.)
34561     - Replace strcpy/strncpy with strlcpy in more places.
34562     - Avoid strcat; use snprintf or strlcat instead.
34563     - snprintf wrapper with consistent (though not C99) overflow behavior.
34566 Changes in version 0.0.9pre4 - 2004-10-17
34567   o Bugfixes on 0.0.9pre3:
34568     - If the server doesn't specify an exit policy, use the real default
34569       exit policy, not reject *:*.
34570     - Ignore fascistfirewall when uploading/downloading hidden service
34571       descriptors, since we go through Tor for those; and when using
34572       an HttpProxy, since we assume it can reach them all.
34573     - When looking for an authoritative dirserver, use only the ones
34574       configured at boot. Don't bother looking in the directory.
34575     - The rest of the fix for get_default_conf_file() on older win32.
34576     - Make 'Routerfile' config option obsolete.
34578   o Features:
34579     - New 'MyFamily nick1,...' config option for a server to
34580       specify other servers that shouldn't be used in the same circuit
34581       with it. Only believed if nick1 also specifies us.
34582     - New 'NodeFamily nick1,nick2,...' config option for a client to
34583       specify nodes that it doesn't want to use in the same circuit.
34584     - New 'Redirectexit pattern address:port' config option for a
34585       server to redirect exit connections, e.g. to a local squid.
34588 Changes in version 0.0.9pre3 - 2004-10-13
34589   o Bugfixes on 0.0.8.1:
34590     - Better torrc example lines for dirbindaddress and orbindaddress.
34591     - Improved bounds checking on parsed ints (e.g. config options and
34592       the ones we find in directories.)
34593     - Better handling of size_t vs int, so we're more robust on 64
34594       bit platforms.
34595     - Fix the rest of the bug where a newly started OR would appear
34596       as unverified even after we've added his fingerprint and hupped
34597       the dirserver.
34598     - Fix a bug from 0.0.7: when read() failed on a stream, we would
34599       close it without sending back an end. So 'connection refused'
34600       would simply be ignored and the user would get no response.
34602   o Bugfixes on 0.0.9pre2:
34603     - Serving the cached-on-disk directory to people is bad. We now
34604       provide no directory until we've fetched a fresh one.
34605     - Workaround for bug on windows where cached-directories get crlf
34606       corruption.
34607     - Make get_default_conf_file() work on older windows too.
34608     - If we write a *:* exit policy line in the descriptor, don't write
34609       any more exit policy lines.
34611   o Features:
34612     - Use only 0.0.9pre1 and later servers for resolve cells.
34613     - Make the dirservers file obsolete.
34614       - Include a dir-signing-key token in directories to tell the
34615         parsing entity which key is being used to sign.
34616       - Remove the built-in bulky default dirservers string.
34617       - New config option "Dirserver %s:%d [fingerprint]", which can be
34618         repeated as many times as needed. If no dirservers specified,
34619         default to moria1,moria2,tor26.
34620     - Make moria2 advertise a dirport of 80, so people behind firewalls
34621       will be able to get a directory.
34622     - Http proxy support
34623       - Dirservers translate requests for http://%s:%d/x to /x
34624       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
34625         be routed through this host.
34626       - Clients ask for /tor/x rather than /x for new enough dirservers.
34627         This way we can one day coexist peacefully with apache.
34628       - Clients specify a "Host: %s%d" http header, to be compatible
34629         with more proxies, and so running squid on an exit node can work.
34632 Changes in version 0.0.8.1 - 2004-10-13
34633   o Bugfixes:
34634     - Fix a seg fault that can be triggered remotely for Tor
34635       clients/servers with an open dirport.
34636     - Fix a rare assert trigger, where routerinfos for entries in
34637       our cpath would expire while we're building the path.
34638     - Fix a bug in OutboundBindAddress so it (hopefully) works.
34639     - Fix a rare seg fault for people running hidden services on
34640       intermittent connections.
34641     - Fix a bug in parsing opt keywords with objects.
34642     - Fix a stale pointer assert bug when a stream detaches and
34643       reattaches.
34644     - Fix a string format vulnerability (probably not exploitable)
34645       in reporting stats locally.
34646     - Fix an assert trigger: sometimes launching circuits can fail
34647       immediately, e.g. because too many circuits have failed recently.
34648     - Fix a compile warning on 64 bit platforms.
34651 Changes in version 0.0.9pre2 - 2004-10-03
34652   o Bugfixes:
34653     - Make fetching a cached directory work for 64-bit platforms too.
34654     - Make zlib.h a required header, not an optional header.
34657 Changes in version 0.0.9pre1 - 2004-10-01
34658   o Bugfixes:
34659     - Stop using separate defaults for no-config-file and
34660       empty-config-file. Now you have to explicitly turn off SocksPort,
34661       if you don't want it open.
34662     - Fix a bug in OutboundBindAddress so it (hopefully) works.
34663     - Improve man page to mention more of the 0.0.8 features.
34664     - Fix a rare seg fault for people running hidden services on
34665       intermittent connections.
34666     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
34667       happier.
34668     - Fix more dns related bugs: send back resolve_failed and end cells
34669       more reliably when the resolve fails, rather than closing the
34670       circuit and then trying to send the cell. Also attach dummy resolve
34671       connections to a circuit *before* calling dns_resolve(), to fix
34672       a bug where cached answers would never be sent in RESOLVED cells.
34673     - When we run out of disk space, or other log writing error, don't
34674       crash. Just stop logging to that log and continue.
34675     - We were starting to daemonize before we opened our logs, so if
34676       there were any problems opening logs, we would complain to stderr,
34677       which wouldn't work, and then mysteriously exit.
34678     - Fix a rare bug where sometimes a verified OR would connect to us
34679       before he'd uploaded his descriptor, which would cause us to
34680       assign conn->nickname as though he's unverified. Now we look through
34681       the fingerprint list to see if he's there.
34682     - Fix a rare assert trigger, where routerinfos for entries in
34683       our cpath would expire while we're building the path.
34685   o Features:
34686     - Clients can ask dirservers for /dir.z to get a compressed version
34687       of the directory. Only works for servers running 0.0.9, of course.
34688     - Make clients cache directories and use them to seed their router
34689       lists at startup. This means clients have a datadir again.
34690     - Configuration infrastructure support for warning on obsolete
34691       options.
34692     - Respond to content-encoding headers by trying to uncompress as
34693       appropriate.
34694     - Reply with a deflated directory when a client asks for "dir.z".
34695       We could use allow-encodings instead, but allow-encodings isn't
34696       specified in HTTP 1.0.
34697     - Raise the max dns workers from 50 to 100.
34698     - Discourage people from setting their dirfetchpostperiod more often
34699       than once per minute.
34700     - Protect dirservers from overzealous descriptor uploading -- wait
34701       10 seconds after directory gets dirty, before regenerating.
34704 Changes in version 0.0.8 - 2004-08-25
34705   o Port it to SunOS 5.9 / Athena
34708 Changes in version 0.0.8rc2 - 2004-08-20
34709   o Make it compile on cygwin again.
34710   o When picking unverified routers, skip those with low uptime and/or
34711     low bandwidth, depending on what properties you care about.
34714 Changes in version 0.0.8rc1 - 2004-08-18
34715   o Changes from 0.0.7.3:
34716     - Bugfixes:
34717       - Fix assert triggers: if the other side returns an address 0.0.0.0,
34718         don't put it into the client dns cache.
34719       - If a begin failed due to exit policy, but we believe the IP address
34720         should have been allowed, switch that router to exitpolicy reject *:*
34721         until we get our next directory.
34722     - Features:
34723       - Clients choose nodes proportional to advertised bandwidth.
34724       - Avoid using nodes with low uptime as introduction points.
34725       - Handle servers with dynamic IP addresses: don't replace
34726         options->Address with the resolved one at startup, and
34727         detect our address right before we make a routerinfo each time.
34728       - 'FascistFirewall' option to pick dirservers and ORs on specific
34729         ports; plus 'FirewallPorts' config option to tell FascistFirewall
34730         which ports are open. (Defaults to 80,443)
34731       - Be more aggressive about trying to make circuits when the network
34732         has changed (e.g. when you unsuspend your laptop).
34733       - Check for time skew on http headers; report date in response to
34734         "GET /".
34735       - If the entrynode config line has only one node, don't pick it as
34736         an exitnode.
34737       - Add strict{entry|exit}nodes config options. If set to 1, then
34738         we refuse to build circuits that don't include the specified entry
34739         or exit nodes.
34740       - OutboundBindAddress config option, to bind to a specific
34741         IP address for outgoing connect()s.
34742       - End truncated log entries (e.g. directories) with "[truncated]".
34744   o Patches to 0.0.8preX:
34745     - Bugfixes:
34746       - Patches to compile and run on win32 again (maybe)?
34747       - Fix crash when looking for ~/.torrc with no $HOME set.
34748       - Fix a race bug in the unit tests.
34749       - Handle verified/unverified name collisions better when new
34750         routerinfo's arrive in a directory.
34751       - Sometimes routers were getting entered into the stats before
34752         we'd assigned their identity_digest. Oops.
34753       - Only pick and establish intro points after we've gotten a
34754         directory.
34755     - Features:
34756       - AllowUnverifiedNodes config option to let circuits choose no-name
34757         routers in entry,middle,exit,introduction,rendezvous positions.
34758         Allow middle and rendezvous positions by default.
34759       - Add a man page for tor-resolve.
34762 Changes in version 0.0.7.3 - 2004-08-12
34763   o Stop dnsworkers from triggering an assert failure when you
34764     ask them to resolve the host "".
34767 Changes in version 0.0.8pre3 - 2004-08-09
34768   o Changes from 0.0.7.2:
34769     - Allow multiple ORs with same nickname in routerlist -- now when
34770       people give us one identity key for a nickname, then later
34771       another, we don't constantly complain until the first expires.
34772     - Remember used bandwidth (both in and out), and publish 15-minute
34773       snapshots for the past day into our descriptor.
34774     - You can now fetch $DIRURL/running-routers to get just the
34775       running-routers line, not the whole descriptor list. (But
34776       clients don't use this yet.)
34777     - When people mistakenly use Tor as an http proxy, point them
34778       at the tor-doc.html rather than the INSTALL.
34779     - Remove our mostly unused -- and broken -- hex_encode()
34780       function. Use base16_encode() instead. (Thanks to Timo Lindfors
34781       for pointing out this bug.)
34782     - Rotate onion keys every 12 hours, not every 2 hours, so we have
34783       fewer problems with people using the wrong key.
34784     - Change the default exit policy to reject the default edonkey,
34785       kazaa, gnutella ports.
34786     - Add replace_file() to util.[ch] to handle win32's rename().
34788   o Changes from 0.0.8preX:
34789     - Fix two bugs in saving onion keys to disk when rotating, so
34790       hopefully we'll get fewer people using old onion keys.
34791     - Fix an assert error that was making SocksPolicy not work.
34792     - Be willing to expire routers that have an open dirport -- it's
34793       just the authoritative dirservers we want to not forget.
34794     - Reject tor-resolve requests for .onion addresses early, so we
34795       don't build a whole rendezvous circuit and then fail.
34796     - When you're warning a server that he's unverified, don't cry
34797       wolf unpredictably.
34798     - Fix a race condition: don't try to extend onto a connection
34799       that's still handshaking.
34800     - For servers in clique mode, require the conn to be open before
34801       you'll choose it for your path.
34802     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
34803       end relay cell, etc.
34804     - Measure bandwidth capacity over the last 24 hours, not just 12
34805     - Bugfix: authoritative dirservers were making and signing a new
34806       directory for each client, rather than reusing the cached one.
34809 Changes in version 0.0.8pre2 - 2004-08-04
34810   o Changes from 0.0.7.2:
34811     - Security fixes:
34812       - Check directory signature _before_ you decide whether you're
34813         you're running an obsolete version and should exit.
34814       - Check directory signature _before_ you parse the running-routers
34815         list to decide who's running or verified.
34816     - Bugfixes and features:
34817       - Check return value of fclose while writing to disk, so we don't
34818         end up with broken files when servers run out of disk space.
34819       - Log a warning if the user uses an unsafe socks variant, so people
34820         are more likely to learn about privoxy or socat.
34821       - Dirservers now include RFC1123-style dates in the HTTP headers,
34822         which one day we will use to better detect clock skew.
34824   o Changes from 0.0.8pre1:
34825     - Make it compile without warnings again on win32.
34826     - Log a warning if you're running an unverified server, to let you
34827       know you might want to get it verified.
34828     - Only pick a default nickname if you plan to be a server.
34831 Changes in version 0.0.8pre1 - 2004-07-23
34832   o Bugfixes:
34833     - Made our unit tests compile again on OpenBSD 3.5, and tor
34834       itself compile again on OpenBSD on a sparc64.
34835     - We were neglecting milliseconds when logging on win32, so
34836       everything appeared to happen at the beginning of each second.
34838   o Protocol changes:
34839     - 'Extend' relay cell payloads now include the digest of the
34840       intended next hop's identity key. Now we can verify that we're
34841       extending to the right router, and also extend to routers we
34842       hadn't heard of before.
34844   o Features:
34845     - Tor nodes can now act as relays (with an advertised ORPort)
34846       without being manually verified by the dirserver operators.
34847       - Uploaded descriptors of unverified routers are now accepted
34848         by the dirservers, and included in the directory.
34849       - Verified routers are listed by nickname in the running-routers
34850         list; unverified routers are listed as "$<fingerprint>".
34851       - We now use hash-of-identity-key in most places rather than
34852         nickname or addr:port, for improved security/flexibility.
34853       - To avoid Sybil attacks, paths still use only verified servers.
34854         But now we have a chance to play around with hybrid approaches.
34855       - Nodes track bandwidth usage to estimate capacity (not used yet).
34856       - ClientOnly option for nodes that never want to become servers.
34857     - Directory caching.
34858       - "AuthoritativeDir 1" option for the official dirservers.
34859       - Now other nodes (clients and servers) will cache the latest
34860         directory they've pulled down.
34861       - They can enable their DirPort to serve it to others.
34862       - Clients will pull down a directory from any node with an open
34863         DirPort, and check the signature/timestamp correctly.
34864       - Authoritative dirservers now fetch directories from other
34865         authdirservers, to stay better synced.
34866       - Running-routers list tells who's down also, along with noting
34867         if they're verified (listed by nickname) or unverified (listed
34868         by hash-of-key).
34869       - Allow dirservers to serve running-router list separately.
34870         This isn't used yet.
34871     - ORs connect-on-demand to other ORs
34872       - If you get an extend cell to an OR you're not connected to,
34873         connect, handshake, and forward the create cell.
34874       - The authoritative dirservers stay connected to everybody,
34875         and everybody stays connected to 0.0.7 servers, but otherwise
34876         clients/servers expire unused connections after 5 minutes.
34877     - When servers get a sigint, they delay 30 seconds (refusing new
34878       connections) then exit. A second sigint causes immediate exit.
34879     - File and name management:
34880       - Look for .torrc if no CONFDIR "torrc" is found.
34881       - If no datadir is defined, then choose, make, and secure ~/.tor
34882         as datadir.
34883       - If torrc not found, exitpolicy reject *:*.
34884       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
34885       - If no nickname is defined, derive default from hostname.
34886       - Rename secret key files, e.g. identity.key -> secret_id_key,
34887         to discourage people from mailing their identity key to tor-ops.
34888     - Refuse to build a circuit before the directory has arrived --
34889       it won't work anyway, since you won't know the right onion keys
34890       to use.
34891     - Try other dirservers immediately if the one you try is down. This
34892       should tolerate down dirservers better now.
34893     - Parse tor version numbers so we can do an is-newer-than check
34894       rather than an is-in-the-list check.
34895     - New socks command 'resolve', to let us shim gethostbyname()
34896       locally.
34897       - A 'tor_resolve' script to access the socks resolve functionality.
34898       - A new socks-extensions.txt doc file to describe our
34899         interpretation and extensions to the socks protocols.
34900     - Add a ContactInfo option, which gets published in descriptor.
34901     - Publish OR uptime in descriptor (and thus in directory) too.
34902     - Write tor version at the top of each log file
34903     - New docs in the tarball:
34904       - tor-doc.html.
34905       - Document that you should proxy your SSL traffic too.
34908 Changes in version 0.0.7.2 - 2004-07-07
34909   o A better fix for the 0.0.0.0 problem, that will hopefully
34910     eliminate the remaining related assertion failures.
34913 Changes in version 0.0.7.1 - 2004-07-04
34914   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
34915     since internally we use 0.0.0.0 to signify "not yet resolved".
34918 Changes in version 0.0.7 - 2004-06-07
34919   o Updated the man page to reflect the new features.
34922 Changes in version 0.0.7rc2 - 2004-06-06
34923   o Changes from 0.0.7rc1:
34924     - Make it build on Win32 again.
34925   o Changes from 0.0.6.2:
34926     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
34927       settings too.
34930 Changes in version 0.0.7rc1 - 2004-06-02
34931   o Bugfixes:
34932     - On sighup, we were adding another log without removing the first
34933       one. So log messages would get duplicated n times for n sighups.
34934     - Several cases of using a connection after we'd freed it. The
34935       problem was that connections that are pending resolve are in both
34936       the pending_resolve tree, and also the circuit's resolving_streams
34937       list. When you want to remove one, you must remove it from both.
34938     - Fix a double-mark-for-close where an end cell arrived for a
34939       resolving stream, and then the resolve failed.
34940     - Check directory signatures based on name of signer, not on whom
34941       we got the directory from. This will let us cache directories more
34942       easily.
34943   o Features:
34944     - Crank up some of our constants to handle more users.
34947 Changes in version 0.0.7pre1 - 2004-06-02
34948   o Fixes for crashes and other obnoxious bugs:
34949     - Fix an epipe bug: sometimes when directory connections failed
34950       to connect, we would give them a chance to flush before closing
34951       them.
34952     - When we detached from a circuit because of resolvefailed, we
34953       would immediately try the same circuit twice more, and then
34954       give up on the resolve thinking we'd tried three different
34955       exit nodes.
34956     - Limit the number of intro circuits we'll attempt to build for a
34957       hidden service per 15-minute period.
34958     - Check recommended-software string *early*, before actually parsing
34959       the directory. Thus we can detect an obsolete version and exit,
34960       even if the new directory format doesn't parse.
34961   o Fixes for security bugs:
34962     - Remember which nodes are dirservers when you startup, and if a
34963       random OR enables his dirport, don't automatically assume he's
34964       a trusted dirserver.
34965   o Other bugfixes:
34966     - Directory connections were asking the wrong poll socket to
34967       start writing, and not asking themselves to start writing.
34968     - When we detached from a circuit because we sent a begin but
34969       didn't get a connected, we would use it again the first time;
34970       but after that we would correctly switch to a different one.
34971     - Stop warning when the first onion decrypt attempt fails; they
34972       will sometimes legitimately fail now that we rotate keys.
34973     - Override unaligned-access-ok check when $host_cpu is ia64 or
34974       arm. Apparently they allow it but the kernel whines.
34975     - Dirservers try to reconnect periodically too, in case connections
34976       have failed.
34977     - Fix some memory leaks in directory servers.
34978     - Allow backslash in Win32 filenames.
34979     - Made Tor build complain-free on FreeBSD, hopefully without
34980       breaking other BSD builds. We'll see.
34981   o Features:
34982     - Doxygen markup on all functions and global variables.
34983     - Make directory functions update routerlist, not replace it. So
34984       now directory disagreements are not so critical a problem.
34985     - Remove the upper limit on number of descriptors in a dirserver's
34986       directory (not that we were anywhere close).
34987     - Allow multiple logfiles at different severity ranges.
34988     - Allow *BindAddress to specify ":port" rather than setting *Port
34989       separately. Allow multiple instances of each BindAddress config
34990       option, so you can bind to multiple interfaces if you want.
34991     - Allow multiple exit policy lines, which are processed in order.
34992       Now we don't need that huge line with all the commas in it.
34993     - Enable accept/reject policies on SOCKS connections, so you can bind
34994       to 0.0.0.0 but still control who can use your OP.
34997 Changes in version 0.0.6.2 - 2004-05-16
34998   o Our integrity-checking digest was checking only the most recent cell,
34999     not the previous cells like we'd thought.
35000     Thanks to Stefan Mark for finding the flaw!
35003 Changes in version 0.0.6.1 - 2004-05-06
35004   o Fix two bugs in our AES counter-mode implementation (this affected
35005     onion-level stream encryption, but not TLS-level). It turns
35006     out we were doing something much more akin to a 16-character
35007     polyalphabetic cipher. Oops.
35008     Thanks to Stefan Mark for finding the flaw!
35009   o Retire moria3 as a directory server, and add tor26 as a directory
35010     server.
35013 Changes in version 0.0.6 - 2004-05-02
35014   [version bump only]
35017 Changes in version 0.0.6rc4 - 2004-05-01
35018   o Update the built-in dirservers list to use the new directory format
35019   o Fix a rare seg fault: if a node offering a hidden service attempts
35020     to build a circuit to Alice's rendezvous point and fails before it
35021     reaches the last hop, it retries with a different circuit, but
35022     then dies.
35023   o Handle windows socket errors correctly.
35026 Changes in version 0.0.6rc3 - 2004-04-28
35027   o Don't expire non-general excess circuits (if we had enough
35028     circuits open, we were expiring rendezvous circuits -- even
35029     when they had a stream attached. oops.)
35030   o Fetch randomness from /dev/urandom better (not via fopen/fread)
35031   o Better debugging for tls errors
35032   o Some versions of openssl have an SSL_pending function that erroneously
35033     returns bytes when there is a non-application record pending.
35034   o Set Content-Type on the directory and hidserv descriptor.
35035   o Remove IVs from cipher code, since AES-ctr has none.
35036   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
35037     o We were using an array of length zero in a few places.
35038     o win32's gethostbyname can't resolve an IP to an IP.
35039     o win32's close can't close a socket.
35042 Changes in version 0.0.6rc2 - 2004-04-26
35043   o Fix a bug where we were closing tls connections intermittently.
35044     It turns out openssl keeps its errors around -- so if an error
35045     happens, and you don't ask about it, and then another openssl
35046     operation happens and succeeds, and you ask if there was an error,
35047     it tells you about the first error. Fun fun.
35048   o Fix a bug that's been lurking since 27 may 03 (!)
35049     When passing back a destroy cell, we would use the wrong circ id.
35050     'Mostly harmless', but still worth fixing.
35051   o Since we don't support truncateds much, don't bother sending them;
35052     just close the circ.
35053   o check for <machine/limits.h> so we build on NetBSD again (I hope).
35054   o don't crash if a conn that sent a begin has suddenly lost its circuit
35055     (this was quite rare).
35058 Changes in version 0.0.6rc1 - 2004-04-25
35059   o We now rotate link (tls context) keys and onion keys.
35060   o CREATE cells now include oaep padding, so you can tell
35061     if you decrypted them correctly.
35062   o Add bandwidthburst to server descriptor.
35063   o Directories now say which dirserver signed them.
35064   o Use a tor_assert macro that logs failed assertions too.
35067 Changes in version 0.0.6pre5 - 2004-04-18
35068   o changes from 0.0.6pre4:
35069     - make tor build on broken freebsd 5.2 installs
35070     - fix a failed assert when you try an intro point, get a nack, and try
35071       a second one and it works.
35072     - when alice uses a port that the hidden service doesn't accept,
35073       it now sends back an end cell (denied by exit policy). otherwise
35074       alice would just have to wait to time out.
35075     - fix another rare bug: when we had tried all the intro
35076       points for a hidden service, we fetched the descriptor
35077       again, but we left our introcirc thinking it had already
35078       sent an intro, so it kept waiting for a response...
35079     - bugfix: when you sleep your hidden-service laptop, as soon
35080       as it wakes up it tries to upload a service descriptor, but
35081       socketpair fails for some reason (localhost not up yet?).
35082       now we simply give up on that upload, and we'll try again later.
35083       i'd still like to find the bug though.
35084     - if an intro circ waiting for an ack dies before getting one, then
35085       count it as a nack
35086     - we were reusing stale service descriptors and refetching usable
35087       ones. oops.
35090 Changes in version 0.0.6pre4 - 2004-04-14
35091   o changes from 0.0.6pre3:
35092     - when bob fails to connect to the rendezvous point, and his
35093       circ didn't fail because of the rendezvous point itself, then
35094       he retries a couple of times
35095     - we expire introduction and rendezvous circs more thoroughly
35096       (sometimes they were hanging around forever)
35097     - we expire unattached rendezvous streams that have been around
35098       too long (they were sticking around forever).
35099     - fix a measly fencepost error that was crashing everybody with
35100       a strict glibc.
35103 Changes in version 0.0.6pre3 - 2004-04-14
35104   o changes from 0.0.6pre2:
35105     - make hup work again
35106     - fix some memory leaks for dirservers
35107     - allow more skew in rendezvous descriptor timestamps, to help
35108       handle people like blanu who don't know what time it is
35109     - normal circs are 3 hops, but some rend/intro circs are 4, if
35110       the initiator doesn't get to choose the last hop
35111     - send acks for introductions, so alice can know whether to try
35112       again
35113     - bob publishes intro points more correctly
35114   o changes from 0.0.5:
35115     - fix an assert trigger that's been plaguing us since the days
35116       of 0.0.2prexx (thanks weasel!)
35117     - retry stream correctly when we fail to connect because of
35118       exit-policy-reject (should try another) or can't-resolve-address
35119       (also should try another, because dns on random internet servers
35120       is flaky).
35121     - when we hup a dirserver and we've *removed* a server from the
35122       approved-routers list, now we remove that server from the
35123       in-memory directories too
35126 Changes in version 0.0.6pre2 - 2004-04-08
35127   o We fixed our base32 implementation. Now it works on all architectures.
35130 Changes in version 0.0.6pre1 - 2004-04-08
35131   o Features:
35132     - Hidden services and rendezvous points are implemented. Go to
35133       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
35134       hidden services. (This only works via a socks4a proxy such as
35135       Privoxy, and currently it's quite slow.)
35138 Changes in version 0.0.5 - 2004-03-30
35139   [version bump only]
35142 Changes in version 0.0.5rc3 - 2004-03-29
35143   o Install torrc as torrc.sample -- we no longer clobber your
35144     torrc. (Woo!)
35145   o Re-enable recommendedversion checking (we broke it in rc2, oops)
35146   o Add in a 'notice' log level for things the operator should hear
35147     but that aren't warnings
35150 Changes in version 0.0.5rc2 - 2004-03-29
35151   o Hold socks connection open until reply is flushed (if possible)
35152   o Make exit nodes resolve IPs to IPs immediately, rather than asking
35153     the dns farm to do it.
35154   o Fix c99 aliasing warnings in rephist.c
35155   o Don't include server descriptors that are older than 24 hours in the
35156     directory.
35157   o Give socks 'reject' replies their whole 15s to attempt to flush,
35158     rather than seeing the 60s timeout and assuming the flush had failed.
35159   o Clean automake droppings from the cvs repository
35162 Changes in version 0.0.5rc1 - 2004-03-28
35163   o Fix mangled-state bug in directory fetching (was causing sigpipes).
35164   o Only build circuits after we've fetched the directory: clients were
35165     using only the directory servers before they'd fetched a directory.
35166     This also means longer startup time; so it goes.
35167   o Fix an assert trigger where an OP would fail to handshake, and we'd
35168     expect it to have a nickname.
35169   o Work around a tsocks bug: do a socks reject when AP connection dies
35170     early, else tsocks goes into an infinite loop.
35173 Changes in version 0.0.4 - 2004-03-26
35174   o When connecting to a dirserver or OR and the network is down,
35175     we would crash.
35178 Changes in version 0.0.3 - 2004-03-26
35179   o Warn and fail if server chose a nickname with illegal characters
35180   o Port to Solaris and Sparc:
35181     - include missing header fcntl.h
35182     - have autoconf find -lsocket -lnsl automatically
35183     - deal with hardware word alignment
35184     - make uname() work (solaris has a different return convention)
35185     - switch from using signal() to sigaction()
35186   o Preliminary work on reputation system:
35187     - Keep statistics on success/fail of connect attempts; they're published
35188       by kill -USR1 currently.
35189     - Add a RunTesting option to try to learn link state by creating test
35190       circuits, even when SocksPort is off.
35191     - Remove unused open circuits when there are too many.
35194 Changes in version 0.0.2 - 2004-03-19
35195     - Include strlcpy and strlcat for safer string ops
35196     - define INADDR_NONE so we compile (but still not run) on solaris
35199 Changes in version 0.0.2pre27 - 2004-03-14
35200   o Bugfixes:
35201     - Allow internal tor networks (we were rejecting internal IPs,
35202       now we allow them if they're set explicitly).
35203     - And fix a few endian issues.
35206 Changes in version 0.0.2pre26 - 2004-03-14
35207   o New features:
35208     - If a stream times out after 15s without a connected cell, don't
35209       try that circuit again: try a new one.
35210     - Retry streams at most 4 times. Then give up.
35211     - When a dirserver gets a descriptor from an unknown router, it
35212       logs its fingerprint (so the dirserver operator can choose to
35213       accept it even without mail from the server operator).
35214     - Inform unapproved servers when we reject their descriptors.
35215     - Make tor build on Windows again. It works as a client, who knows
35216       about as a server.
35217     - Clearer instructions in the torrc for how to set up a server.
35218     - Be more efficient about reading fd's when our global token bucket
35219       (used for rate limiting) becomes empty.
35220   o Bugfixes:
35221     - Stop asserting that computers always go forward in time. It's
35222       simply not true.
35223     - When we sent a cell (e.g. destroy) and then marked an OR connection
35224       expired, we might close it before finishing a flush if the other
35225       side isn't reading right then.
35226     - Don't allow dirservers to start if they haven't defined
35227       RecommendedVersions
35228     - We were caching transient dns failures. Oops.
35229     - Prevent servers from publishing an internal IP as their address.
35230     - Address a strcat vulnerability in circuit.c
35233 Changes in version 0.0.2pre25 - 2004-03-04
35234   o New features:
35235     - Put the OR's IP in its router descriptor, not its fqdn. That way
35236       we'll stop being stalled by gethostbyname for nodes with flaky dns,
35237       e.g. poblano.
35238   o Bugfixes:
35239     - If the user typed in an address that didn't resolve, the server
35240       crashed.
35243 Changes in version 0.0.2pre24 - 2004-03-03
35244   o Bugfixes:
35245     - Fix an assertion failure in dns.c, where we were trying to dequeue
35246       a pending dns resolve even if it wasn't pending
35247     - Fix a spurious socks5 warning about still trying to write after the
35248       connection is finished.
35249     - Hold certain marked_for_close connections open until they're finished
35250       flushing, rather than losing bytes by closing them too early.
35251     - Correctly report the reason for ending a stream
35252     - Remove some duplicate calls to connection_mark_for_close
35253     - Put switch_id and start_daemon earlier in the boot sequence, so it
35254       will actually try to chdir() to options.DataDirectory
35255     - Make 'make test' exit(1) if a test fails; fix some unit tests
35256     - Make tor fail when you use a config option it doesn't know about,
35257       rather than warn and continue.
35258     - Make --version work
35259     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
35262 Changes in version 0.0.2pre23 - 2004-02-29
35263   o New features:
35264     - Print a statement when the first circ is finished, so the user
35265       knows it's working.
35266     - If a relay cell is unrecognized at the end of the circuit,
35267       send back a destroy. (So attacks to mutate cells are more
35268       clearly thwarted.)
35269     - New config option 'excludenodes' to avoid certain nodes for circuits.
35270     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
35271       so you can collect coredumps there.
35272  o Bugfixes:
35273     - Fix a bug in tls flushing where sometimes data got wedged and
35274       didn't flush until more data got sent. Hopefully this bug was
35275       a big factor in the random delays we were seeing.
35276     - Make 'connected' cells include the resolved IP, so the client
35277       dns cache actually gets populated.
35278     - Disallow changing from ORPort=0 to ORPort>0 on hup.
35279     - When we time-out on a stream and detach from the circuit, send an
35280       end cell down it first.
35281     - Only warn about an unknown router (in exitnodes, entrynodes,
35282       excludenodes) after we've fetched a directory.
35285 Changes in version 0.0.2pre22 - 2004-02-26
35286   o New features:
35287     - Servers publish less revealing uname information in descriptors.
35288     - More memory tracking and assertions, to crash more usefully when
35289       errors happen.
35290     - If the default torrc isn't there, just use some default defaults.
35291       Plus provide an internal dirservers file if they don't have one.
35292     - When the user tries to use Tor as an http proxy, give them an http
35293       501 failure explaining that we're a socks proxy.
35294     - Dump a new router.desc on hup, to help confused people who change
35295       their exit policies and then wonder why router.desc doesn't reflect
35296       it.
35297     - Clean up the generic tor.sh init script that we ship with.
35298   o Bugfixes:
35299     - If the exit stream is pending on the resolve, and a destroy arrives,
35300       then the stream wasn't getting removed from the pending list. I
35301       think this was the one causing recent server crashes.
35302     - Use a more robust poll on OSX 10.3, since their poll is flaky.
35303     - When it couldn't resolve any dirservers, it was useless from then on.
35304       Now it reloads the RouterFile (or default dirservers) if it has no
35305       dirservers.
35306     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
35307       many users don't even *have* a /usr/local/sbin/.
35310 Changes in version 0.0.2pre21 - 2004-02-18
35311   o New features:
35312     - There's a ChangeLog file that actually reflects the changelog.
35313     - There's a 'torify' wrapper script, with an accompanying
35314       tor-tsocks.conf, that simplifies the process of using tsocks for
35315       tor. It even has a man page.
35316     - The tor binary gets installed to sbin rather than bin now.
35317     - Retry streams where the connected cell hasn't arrived in 15 seconds
35318     - Clean up exit policy handling -- get the default out of the torrc,
35319       so we can update it without forcing each server operator to fix
35320       his/her torrc.
35321     - Allow imaps and pop3s in default exit policy
35322   o Bugfixes:
35323     - Prevent picking middleman nodes as the last node in the circuit
35326 Changes in version 0.0.2pre20 - 2004-01-30
35327   o New features:
35328     - We now have a deb package, and it's in debian unstable. Go to
35329       it, apt-getters. :)
35330     - I've split the TotalBandwidth option into BandwidthRate (how many
35331       bytes per second you want to allow, long-term) and
35332       BandwidthBurst (how many bytes you will allow at once before the cap
35333       kicks in). This better token bucket approach lets you, say, set
35334       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
35335       performance while not exceeding your monthly bandwidth quota.
35336     - Push out a tls record's worth of data once you've got it, rather
35337       than waiting until you've read everything waiting to be read. This
35338       may improve performance by pipelining better. We'll see.
35339     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
35340       from failed circuits (if they haven't been connected yet) and attach
35341       to new ones.
35342     - Expire old streams that haven't managed to connect. Some day we'll
35343       have them reattach to new circuits instead.
35345   o Bugfixes:
35346     - Fix several memory leaks that were causing servers to become bloated
35347       after a while.
35348     - Fix a few very rare assert triggers. A few more remain.
35349     - Setuid to User _before_ complaining about running as root.
35352 Changes in version 0.0.2pre19 - 2004-01-07
35353   o Bugfixes:
35354     - Fix deadlock condition in dns farm. We were telling a child to die by
35355       closing the parent's file descriptor to him. But newer children were
35356       inheriting the open file descriptor from the parent, and since they
35357       weren't closing it, the socket never closed, so the child never read
35358       eof, so he never knew to exit. Similarly, dns workers were holding
35359       open other sockets, leading to all sorts of chaos.
35360     - New cleaner daemon() code for forking and backgrounding.
35361     - If you log to a file, it now prints an entry at the top of the
35362       logfile so you know it's working.
35363     - The onionskin challenge length was 30 bytes longer than necessary.
35364     - Started to patch up the spec so it's not quite so out of date.
35367 Changes in version 0.0.2pre18 - 2004-01-02
35368   o Bugfixes:
35369     - Fix endian issues with the 'integrity' field in the relay header.
35370     - Fix a potential bug where connections in state
35371       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
35374 Changes in version 0.0.2pre17 - 2003-12-30
35375   o Bugfixes:
35376     - Made --debuglogfile (or any second log file, actually) work.
35377     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
35378       adversary could force us into an infinite loop.
35380   o Features:
35381     - Each onionskin handshake now includes a hash of the computed key,
35382       to prove the server's identity and help perfect forward secrecy.
35383     - Changed cell size from 256 to 512 bytes (working toward compatibility
35384       with MorphMix).
35385     - Changed cell length to 2 bytes, and moved it to the relay header.
35386     - Implemented end-to-end integrity checking for the payloads of
35387       relay cells.
35388     - Separated streamid from 'recognized' (otherwise circuits will get
35389       messed up when we try to have streams exit from the middle). We
35390       use the integrity-checking to confirm that a cell is addressed to
35391       this hop.
35392     - Randomize the initial circid and streamid values, so an adversary who
35393       breaks into a node can't learn how many circuits or streams have
35394       been made so far.
35397 Changes in version 0.0.2pre16 - 2003-12-14
35398   o Bugfixes:
35399     - Fixed a bug that made HUP trigger an assert
35400     - Fixed a bug where a circuit that immediately failed wasn't being
35401       counted as a failed circuit in counting retries.
35403   o Features:
35404     - Now we close the circuit when we get a truncated cell: otherwise we're
35405       open to an anonymity attack where a bad node in the path truncates
35406       the circuit and then we open streams at him.
35407     - Add port ranges to exit policies
35408     - Add a conservative default exit policy
35409     - Warn if you're running tor as root
35410     - on HUP, retry OR connections and close/rebind listeners
35411     - options.EntryNodes: try these nodes first when picking the first node
35412     - options.ExitNodes: if your best choices happen to include any of
35413       your preferred exit nodes, you choose among just those preferred
35414       exit nodes.
35415     - options.ExcludedNodes: nodes that are never picked in path building
35418 Changes in version 0.0.2pre15 - 2003-12-03
35419   o Robustness and bugfixes:
35420     - Sometimes clients would cache incorrect DNS resolves, which would
35421       really screw things up.
35422     - An OP that goes offline would slowly leak all its sockets and stop
35423       working.
35424     - A wide variety of bugfixes in exit node selection, exit policy
35425       handling, and processing pending streams when a new circuit is
35426       established.
35427     - Pick nodes for a path only from those the directory says are up
35428     - Choose randomly from all running dirservers, not always the first one
35429     - Increase allowed http header size for directory fetch.
35430     - Stop writing to stderr (if we're daemonized it will be closed).
35431     - Enable -g always, so cores will be more useful to me.
35432     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
35434   o Documentation:
35435     - Wrote a man page. It lists commonly used options.
35437   o Configuration:
35438     - Change default loglevel to warn.
35439     - Make PidFile default to null rather than littering in your CWD.
35440     - OnionRouter config option is now obsolete. Instead it just checks
35441       ORPort>0.
35442     - Moved to a single unified torrc file for both clients and servers.
35445 Changes in version 0.0.2pre14 - 2003-11-29
35446   o Robustness and bugfixes:
35447     - Force the admin to make the DataDirectory himself
35448       - to get ownership/permissions right
35449       - so clients no longer make a DataDirectory and then never use it
35450     - fix bug where a client who was offline for 45 minutes would never
35451       pull down a directory again
35452     - fix (or at least hide really well) the dns assert bug that was
35453       causing server crashes
35454     - warnings and improved robustness wrt clockskew for certs
35455     - use the native daemon(3) to daemonize, when available
35456     - exit if bind() fails
35457     - exit if neither socksport nor orport is defined
35458     - include our own tor_timegm (Win32 doesn't have its own)
35459     - bugfix for win32 with lots of connections
35460     - fix minor bias in PRNG
35461     - make dirserver more robust to corrupt cached directory
35463   o Documentation:
35464     - Wrote the design document (woo)
35466   o Circuit building and exit policies:
35467     - Circuits no longer try to use nodes that the directory has told them
35468       are down.
35469     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
35470       bitcounts (18.0.0.0/8).
35471     - Make AP connections standby for a circuit if no suitable circuit
35472       exists, rather than failing
35473     - Circuits choose exit node based on addr/port, exit policies, and
35474       which AP connections are standing by
35475     - Bump min pathlen from 2 to 3
35476     - Relay end cells have a payload to describe why the stream ended.
35477     - If the stream failed because of exit policy, try again with a new
35478       circuit.
35479     - Clients have a dns cache to remember resolved addresses.
35480     - Notice more quickly when we have no working circuits
35482   o Configuration:
35483     - APPort is now called SocksPort
35484     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
35485       where to bind
35486     - RecommendedVersions is now a config variable rather than
35487       hardcoded (for dirservers)
35488     - Reloads config on HUP
35489     - Usage info on -h or --help
35490     - If you set User and Group config vars, it'll setu/gid to them.
35493 Changes in version 0.0.2pre13 - 2003-10-19
35494   o General stability:
35495     - SSL_write no longer fails when it returns WANTWRITE and the number
35496       of bytes in the buf has changed by the next SSL_write call.
35497     - Fix segfault fetching directory when network is down
35498     - Fix a variety of minor memory leaks
35499     - Dirservers reload the fingerprints file on HUP, so I don't have
35500       to take down the network when I approve a new router
35501     - Default server config file has explicit Address line to specify fqdn
35503   o Buffers:
35504     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
35505     - Make listener connections not ever alloc bufs
35507   o Autoconf improvements:
35508     - don't clobber an external CFLAGS in ./configure
35509     - Make install now works
35510     - create var/lib/tor on make install
35511     - autocreate a tor.sh initscript to help distribs
35512     - autocreate the torrc and sample-server-torrc with correct paths
35514   o Log files and Daemonizing now work:
35515     - If --DebugLogFile is specified, log to it at -l debug
35516     - If --LogFile is specified, use it instead of commandline
35517     - If --RunAsDaemon is set, tor forks and backgrounds on startup