Merge branch 'maint-0.4.8' into release-0.4.8
[tor.git] / ChangeLog
blob965bb110f0a9a552272d230eddc868a39e9c1d57
1 Changes in version 0.4.8.5 - 2023-08-30
2   Quick second release after the first stable few days ago fixing minor
3   annoying bugfixes creating log BUG stacktrace. We also fix BSD compilation
4   failures and PoW unit test.
6   o Minor features (fallbackdir):
7     - Regenerate fallback directories generated on August 30, 2023.
9   o Minor features (geoip data):
10     - Update the geoip files to match the IPFire Location Database, as
11       retrieved on 2023/08/30.
13   o Minor bugfix (NetBSD, compilation):
14     - Fix compilation issue on NetBSD by avoiding an unnecessary
15       dependency on "huge" page mappings in Equi-X. Fixes bug 40843;
16       bugfix on 0.4.8.1-alpha.
18   o Minor bugfix (NetBSD, testing):
19     - Fix test failures in "crypto/hashx" and "slow/crypto/equix" on
20       x86_64 and aarch64 NetBSD hosts, by adding support for
21       PROT_MPROTECT() flags. Fixes bug 40844; bugfix on 0.4.8.1-alpha.
23   o Minor bugfixes (conflux):
24     - Demote a relay-side warn about too many legs to ProtocolWarn, as
25       there are conditions that it can briefly happen during set
26       construction. Also add additional set logging details for all
27       error cases. Fixes bug 40841; bugfix on 0.4.8.1-alpha.
28     - Prevent non-fatal assert stacktrace caused by using conflux sets
29       during their teardown process. Fixes bug 40842; bugfix
30       on 0.4.8.1-alpha.
33 Changes in version 0.4.8.4 - 2023-08-23
34   Finally, this is the very first stable release of the 0.4.8.x series making
35   Proof-of-Work (prop#327) and Conflux (prop#329) available to the entire
36   network. Some major bugfixes since the release candidate detailed below.
38   o Major feature (denial of service):
39     - Extend DoS protection to partially opened channels and known
40       relays. Because re-entry is not allowed anymore, we can apply DoS
41       protections onto known IP namely relays. Fixes bug 40821; bugfix
42       on 0.3.5.1-alpha.
44   o Major bugfixes (conflux):
45     - Fix a relay-side crash caused by side effects of the fix for bug
46       40827. Reverts part of that fix that caused the crash and adds
47       additional log messages to help find the root cause. Fixes bug
48       40834; bugfix on 0.4.8.3-rc.
50   o Major bugfixes (proof of work, onion service, hashx):
51     - Fix a very rare buffer overflow in hashx, specific to the dynamic
52       compiler on aarch64 platforms. Fixes bug 40833; bugfix
53       on 0.4.8.2-alpha.
55   o Minor features (fallbackdir):
56     - Regenerate fallback directories generated on August 23, 2023.
58   o Minor features (geoip data):
59     - Update the geoip files to match the IPFire Location Database, as
60       retrieved on 2023/08/23.
62   o Minor features (testing):
63     - All Rust code is now linted (cargo clippy) as part of GitLab CI, and
64       existing warnings have been fixed. - Any unit tests written in Rust now
65       run as part of GitLab CI.
67   o Minor bugfix (FreeBSD, compilation):
68     - Fix compilation issue on FreeBSD by properly importing
69       sys/param.h. Fixes bug 40825; bugfix on 0.4.8.1-alpha.
71   o Minor bugfixes (compression):
72     - Right after compression/decompression work is done, check for
73       errors. Before this, we would consider compression bomb before
74       that and then looking for errors leading to false positive on that
75       log warning. Fixes bug 40739; bugfix on 0.3.5.1-alpha. Patch
76       by "cypherpunks".
79 Changes in version 0.4.8.3-rc - 2023-08-04
80   This is the first release candidate (and likely the only) of the 0.4.8.x
81   series. We fixed a major conflux bugfix which was a fatal asserts on the
82   relay Exit side. See below for more details. Couple minor bugfixes. Until
83   stable, name of the game here is stabilization.
85   o Major bugfixes (conflux):
86     - Fix a relay-side assert crash caused by attempts to use a conflux
87       circuit between circuit close and free, such that no legs were on
88       the conflux set. Fixed by nulling out the stream's circuit back-
89       pointer when the last leg is removed. Additional checks and log
90       messages have been added to detect other cases. Fixes bug 40827;
91       bugfix on 0.4.8.1-alpha.
93   o Minor features (fallbackdir):
94     - Regenerate fallback directories generated on August 04, 2023.
95     - Regenerate fallback directories generated on July 26, 2023.
97   o Minor features (geoip data):
98     - Update the geoip files to match the IPFire Location Database, as
99       retrieved on 2023/07/26.
100     - Update the geoip files to match the IPFire Location Database, as
101       retrieved on 2023/08/04.
103   o Minor bugfixes (compilation):
104     - Fix all -Werror=enum-int-mismatch warnings. No behavior change.
105       Fixes bug 40824; bugfix on 0.3.5.1-alpha.
107   o Minor bugfixes (protocol warn):
108     - Wrap a handful of cases where ProtocolWarning logs could emit IP
109       addresses. Fixes bug 40828; bugfix on 0.3.5.1-alpha.
112 Changes in version 0.4.8.2-alpha - 2023-07-12
113   This is our second alpha containing some minor bugfixes and one major bugfix
114   about L2 vanguard rotation. We believe this will be the last alpha before the
115   rc in a couple of weeks.
117   o Major bugfixes (vanguards):
118     - Rotate to a new L2 vanguard whenever an existing one loses the
119       Stable or Fast flag. Previously, we would leave these relays in
120       the L2 vanguard list but never use them, and if all of our
121       vanguards end up like this we wouldn't have any middle nodes left
122       to choose from so we would fail to make onion-related circuits.
123       Fixes bug 40805; bugfix on 0.4.7.1-alpha.
125   o Minor feature (hs):
126     - Fix compiler warnings in equix and hashx when building with clang.
127       Closes ticket 40800.
129   o Minor features (fallbackdir):
130     - Regenerate fallback directories generated on July 12, 2023.
132   o Minor features (geoip data):
133     - Update the geoip files to match the IPFire Location Database, as
134       retrieved on 2023/07/12.
136   o Minor bugfix (congestion control):
137     - Reduce the accepted range of a circuit's negotiated 'cc_sendme_inc'
138       to be +/- 1 from the consensus parameter value. Fixes bug 40569;
139       bugfix on 0.4.7.4-alpha.
140     - Remove unused congestion control algorithms and BDP calculation
141       code, now that we have settled on and fully tuned Vegas. Fixes bug
142       40566; bugfix on 0.4.7.4-alpha.
143     - Update default congestion control parameters to match consensus.
144       Fixes bug 40709; bugfix on 0.4.7.4-alpha.
146   o Minor bugfixes (compilation):
147     - Fix "initializer is not a constant" compilation error that
148       manifests itself on gcc versions < 8.1 and MSVC. Fixes bug 40773;
149       bugfix on 0.4.8.1-alpha
151   o Minor bugfixes (conflux):
152     - Count leg launch attempts prior to attempting to launch them. This
153       avoids inifinite launch attempts due to internal circuit building
154       failures. Additionally, double-check that we have enough exits in
155       our consensus overall, before attempting to launch conflux sets.
156       Fixes bug 40811; bugfix on 0.4.8.1-alpha.
157     - Fix a case where we were resuming reading on edge connections that
158       were already marked for close. Fixes bug 40801; bugfix
159       on 0.4.8.1-alpha.
160     - Fix stream attachment order when creating conflux circuits, so
161       that stream attachment happens after finishing the full link
162       handshake, rather than upon set finalization. Fixes bug 40801;
163       bugfix on 0.4.8.1-alpha.
164     - Handle legs being closed or destroyed before computing an RTT
165       (resulting in warns about too many legs). Fixes bug 40810; bugfix
166       on 0.4.8.1-alpha.
167     - Remove a "BUG" warning from conflux_pick_first_leg that can be
168       triggered by broken or malicious clients. Fixes bug 40801; bugfix
169       on 0.4.8.1-alpha.
171   o Minor bugfixes (KIST):
172     - Prevent KISTSchedRunInterval from having values of 0 or 1, neither
173       of which work properly. Additionally, make a separate
174       KISTSchedRunIntervalClient parameter, so that the client and relay
175       KIST values can be set separately. Set the default of both to 2ms.
176       Fixes bug 40808; bugfix on 0.3.2.1-alpha.
179 Changes in version 0.4.8.1-alpha - 2023-06-01
180   This is the first alpha of the 0.4.8.x series. Two major features in this
181   version which are Conflux and onion service Proof-of-Work (PoW). There are
182   also many small features in particular, worth noting, the MetricsPort is now
183   exporting more relay and onion service metrics. Finally, there are
184   also numerous minor bugfixes included in this version.
186   o Major features (onion service, proof-of-work):
187     - Implement proposal 327 (Proof-Of-Work). This is aimed at thwarting
188       introduction flooding DoS attacks by introducing a dynamic Proof-Of-Work
189       protocol that occurs over introduction circuits. This introduces several
190       torrc options prefixed with "HiddenServicePoW" in order to control this
191       feature. By default, this is disabled. Closes ticket 40634.
193   o Major features (conflux):
194     - Implement Proposal 329 (conflux traffic splitting). Conflux splits
195       traffic across two circuits to Exits that support the protocol.
196       These circuits are pre-built only, which means that if the pre-
197       built conflux pool runs out, regular circuits will then be used.
198       When using conflux circuit pairs, clients choose the lower-latency
199       circuit to send data to the Exit. When the Exit sends data to the
200       client, it maximizes throughput, by fully utilizing both circuits
201       in a multiplexed fashion. Alternatively, clients can request that
202       the Exit optimize for latency when transmitting to them, by
203       setting the torrc option 'ConfluxClientUX latency'. Onion services
204       are not currently supported, but will be in arti. Many other
205       future optimizations will also be possible using this protocol.
206       Closes ticket 40593.
208   o Major features (dirauth):
209     - Directory authorities and relays now interact properly with
210       directory authorities if they change addresses. In the past, they
211       would continue to upload votes, signatures, descriptors, etc to
212       the hard-coded address in the configuration. Now, if the directory
213       authority is listed in the consensus at a different address, they
214       will direct queries to this new address. Implements ticket 40705.
216   o Minor feature (CI):
217     - Update CI to use Debian Bullseye for runners.
219   o Minor feature (client, IPv6):
220     - Make client able to pick IPv6 relays by default now meaning
221       ClientUseIPv6 option now defaults to 1. Closes ticket 40785.
223   o Minor feature (compilation):
224     - Fix returning something other than "Unknown N/A" as libc version
225       if we build tor on an O.S. like DragonFlyBSD, FreeBSD, OpenBSD
226       or NetBSD.
228   o Minor feature (cpuworker):
229     - Always use the number of threads for our CPU worker pool to the
230       number of core available but cap it to a minimum of 2 in case of a
231       single core. Fixes bug 40713; bugfix on 0.3.5.1-alpha.
233   o Minor feature (lzma):
234     - Fix compiler warnings for liblzma >= 5.3.1. Closes ticket 40741.
236   o Minor feature (MetricsPort, relay):
237     - Expose time until online keys expires on the MetricsPort. Closes
238       ticket 40546.
240   o Minor feature (MetricsPort, relay, onion service):
241     - Add metrics for the relay side onion service interactions counting
242       seen cells. Closes ticket 40797. Patch by "friendly73".
244   o Minor features (directory authorities):
245     - Directory authorities now include their AuthDirMaxServersPerAddr
246       config option in the consensus parameter section of their vote.
247       Now external tools can better predict how they will behave.
248       Implements ticket 40753.
250   o Minor features (directory authority):
251     - Add a new consensus method in which the "published" times on
252       router entries in a microdesc consensus are all set to a
253       meaningless fixed date. Doing this will make the download size for
254       compressed microdesc consensus diffs much smaller. Part of ticket
255       40130; implements proposal 275.
257   o Minor features (network documents):
258     - Clients and relays no longer track the "published on" time
259       declared for relays in any consensus documents. When reporting
260       this time on the control port, they instead report a fixed date in
261       the future. Part of ticket 40130.
263   o Minor features (fallbackdir):
264     - Regenerate fallback directories generated on June 01, 2023.
266   o Minor features (geoip data):
267     - Update the geoip files to match the IPFire Location Database, as
268       retrieved on 2023/06/01.
270   o Minor features (hs, metrics):
271     - Add tor_hs_rend_circ_build_time and tor_hs_intro_circ_build_time
272       histograms to measure hidden service rend/intro circuit build time
273       durations. Part of ticket 40757.
275   o Minor features (metrics):
276     - Add a `reason` label to the HS error metrics. Closes ticket 40758.
277     - Add service side metrics for REND and introduction request
278       failures. Closes ticket 40755.
279     - Add support for histograms. Part of ticket 40757.
281   o Minor features (pluggable transports):
282     - Automatically restart managed Pluggable Transport processes when
283       their process terminate. Resolves ticket 33669.
285   o Minor features (portability, compilation):
286     - Use OpenSSL 1.1 APIs for LibreSSL, fixing LibreSSL 3.5
287       compatibility. Fixes issue 40630; patch by Alex Xu (Hello71).
289   o Minor features (relay):
290     - Do not warn about configuration options that may expose a non-
291       anonymous onion service. Closes ticket 40691.
293   o Minor features (relays):
294     - Trigger OOS when bind fails with EADDRINUSE. This improves
295       fairness when a large number of exit connections are requested,
296       and properly signals exhaustion to the network. Fixes issue 40597;
297       patch by Alex Xu (Hello71).
299   o Minor features (tests):
300     - Avoid needless key reinitialization with OpenSSL during unit
301       tests, saving significant time. Patch from Alex Xu.
303   o Minor bugfix (relay, logging):
304     - The wrong max queue cell size was used in a protocol warning
305       logging statement. Fixes bug 40745; bugfix on 0.4.7.1-alpha.
307   o Minor bugfixes (logging):
308     - Avoid ""double-quoting"" strings in several log messages. Fixes
309       bug 22723; bugfix on 0.1.2.2-alpha.
310     - Correct a log message when cleaning microdescriptors. Fixes bug
311       40619; bugfix on 0.2.5.4-alpha.
313   o Minor bugfixes (metrics):
314     - Decrement hs_intro_established_count on introduction circuit
315       close. Fixes bug 40751; bugfix on 0.4.7.12.
317   o Minor bugfixes (pluggable transports, windows):
318     - Remove a warning `BUG()` that could occur when attempting to
319       execute a non-existing pluggable transport on Windows. Fixes bug
320       40596; bugfix on 0.4.0.1-alpha.
322   o Minor bugfixes (relay):
323     - Remove a "BUG" warning for an acceptable race between a circuit
324       close and considering that circuit active. Fixes bug 40647; bugfix
325       on 0.3.5.1-alpha.
326     - Remove a harmless "Bug" log message that can happen in
327       relay_addr_learn_from_dirauth() on relays during startup. Finishes
328       fixing bug 40231. Fixes bug 40523; bugfix on 0.4.5.4-rc.
330   o Minor bugfixes (sandbox):
331     - Allow membarrier for the sandbox. And allow rt_sigprocmask when
332       compiled with LTTng. Fixes bug 40799; bugfix on 0.3.5.1-alpha.
333     - Fix sandbox support on AArch64 systems. More "*at" variants of
334       syscalls are now supported. Signed 32 bit syscall parameters are
335       checked more precisely, which should lead to lower likelihood of
336       breakages with future compiler and libc releases. Fixes bug 40599;
337       bugfix on 0.4.4.3-alpha.
339   o Minor bugfixes (state file):
340     - Avoid a segfault if the state file doesn't contains TotalBuildTimes
341       along CircuitBuildAbandonedCount being above 0. Fixes bug 40437;
342       bugfix on 0.3.5.1-alpha.
344   o Removed features:
345     - Remove the RendPostPeriod option. This was primarily used in
346       Version 2 Onion Services and after its deprecation isn't needed
347       anymore. Closes ticket 40431. Patch by Neel Chauhan.
350 Changes in version 0.4.7.13 - 2023-01-12
351   This version contains three major bugfixes, two for relays and one for
352   client being a security fix, TROVE-2022-002. We have added, for Linux, the
353   support for IP_BIND_ADDRESS_NO_PORT for relays using OutboundBindAddress.
354   We strongly recommend to upgrade to this version considering the important
355   congestion control fix detailed below.
357   o Major bugfixes (congestion control):
358     - Avoid incrementing the congestion window when the window is not
359       fully in use. Thia prevents overshoot in cases where long periods
360       of low activity would allow our congestion window to grow, and
361       then get followed by a burst, which would cause queue overload.
362       Also improve the increment checks for RFC3742. Fixes bug 40732;
363       bugfix on 0.4.7.5-alpha.
365   o Major bugfixes (relay):
366     - When opening a channel because of a circuit request that did not
367       include an Ed25519 identity, record the Ed25519 identity that we
368       actually received, so that we can use the channel for other
369       circuit requests that _do_ list an Ed25519 identity. (Previously
370       we had code to record this identity, but a logic bug caused it to
371       be disabled.) Fixes bug 40563; bugfix on 0.3.0.1-alpha. Patch
372       from "cypherpunks".
374   o Major bugfixes (TROVE-2022-002, client):
375     - The SafeSocks option had its logic inverted for SOCKS4 and
376       SOCKS4a. It would let the unsafe SOCKS4 pass but not the safe
377       SOCKS4a one. This is TROVE-2022-002 which was reported on
378       Hackerone by "cojabo". Fixes bug 40730; bugfix on 0.3.5.1-alpha.
380   o Minor feature (authority):
381     - Reject 0.4.6.x series at the authority level. Closes ticket 40664.
383   o Minor features (fallbackdir):
384     - Regenerate fallback directories generated on January 12, 2023.
386   o Minor features (geoip data):
387     - Update the geoip files to match the IPFire Location Database, as
388       retrieved on 2023/01/12.
390   o Minor features (relays):
391     - Set the Linux-specific IP_BIND_ADDRESS_NO_PORT option on outgoing
392       sockets, allowing relays using OutboundBindAddress to make more
393       outgoing connections than ephemeral ports, as long as they are to
394       separate destinations. Related to issue 40597; patch by Alex
395       Xu (Hello71).
397   o Minor bugfixes (relay, metrics):
398     - Fix typo in a congestion control label on the MetricsPort. Fixes
399       bug 40727; bugfix on 0.4.7.12.
401   o Minor bugfixes (sandbox, authority):
402     - With the sandbox enabled, allow to write "my-consensus-
403       {ns|microdesc}" and to rename them as well. Fixes bug 40729;
404       bugfix on 0.3.5.1-alpha.
406   o Code simplifications and refactoring:
407     - Rely on actual error returned by the kernel when choosing what
408       resource exhaustion to log. Fixes issue 40613; Fix
409       on tor-0.4.6.1-alpha.
412 Changes in version 0.4.5.16 - 2023-01-12
413   This version has one major bugfix for relay and a security fix,
414   TROVE-2022-002, affecting clients. We strongly recommend to upgrade to our
415   0.4.7.x stable series. As a reminder, this series is EOL on February 15th,
416   2023.
418   o Major bugfixes (relay):
419     - When opening a channel because of a circuit request that did not
420       include an Ed25519 identity, record the Ed25519 identity that we
421       actually received, so that we can use the channel for other
422       circuit requests that _do_ list an Ed25519 identity. (Previously
423       we had code to record this identity, but a logic bug caused it to
424       be disabled.) Fixes bug 40563; bugfix on 0.3.0.1-alpha. Patch
425       from "cypherpunks".
427   o Major bugfixes (TROVE-2022-002, client):
428     - The SafeSocks option had its logic inverted for SOCKS4 and
429       SOCKS4a. It would let the unsafe SOCKS4 pass but not the safe
430       SOCKS4a one. This is TROVE-2022-002 which was reported on
431       Hackerone by "cojabo". Fixes bug 40730; bugfix on 0.3.5.1-alpha.
433   o Minor features (fallbackdir):
434     - Regenerate fallback directories generated on January 12, 2023.
436   o Minor features (geoip data):
437     - Update the geoip files to match the IPFire Location Database, as
438       retrieved on 2023/01/12.
441 Changes in version 0.4.7.12 - 2022-12-06
442   This version contains a major change that is a new key for moria1. Also, new
443   metrics are exported on the MetricsPort for the congestion control
444   subsystem.
446   o Directory authority changes (moria1):
447     - Rotate the relay identity key and v3 identity key for moria1. They
448       have been online for more than a decade and refreshing keys
449       periodically is good practice. Advertise new ports too, to avoid
450       confusion. Closes ticket 40722.
452   o Minor feature (Congestion control metrics):
453     - Add additional metricsport relay metrics for congestion control.
454       Closes ticket 40724.
456   o Minor features (fallbackdir):
457     - Regenerate fallback directories generated on December 06, 2022.
459   o Minor features (geoip data):
460     - Update the geoip files to match the IPFire Location Database, as
461       retrieved on 2022/12/06.
463   o Minor bugfixes (cpuworker, relay):
464     - Fix an off by one overload calculation on the number of CPUs being
465       used by our thread pool. Fixes bug 40719; bugfix on 0.3.5.1-alpha.
468 Changes in version 0.4.5.15 - 2022-12-06
469   This version has several major changes for directory authorities. And a
470   major bugfix on OSX. Again, we strongly recommend to upgrade to our 0.4.7.x
471   series latest stable. This series is EOL on February 15th, 2023.
473   o Directory authority changes (dizum):
474     - Change dizum IP address. Closes ticket 40687.
476   o Directory authority changes (Faravahar):
477     - Remove Faravahar until its operator, Sina, set it back up online
478       outside of Team Cymru network. Closes ticket 40688.
480   o Directory authority changes (moria1):
481     - Rotate the relay identity key and v3 identity key for moria1. They
482       have been online for more than a decade and refreshing keys
483       periodically is good practice. Advertise new ports too, to avoid
484       confusion. Closes ticket 40722.
486   o Major bugfixes (OSX):
487     - Fix coarse-time computation on Apple platforms (like Mac M1) where
488       the Mach absolute time ticks do not correspond directly to
489       nanoseconds. Previously, we computed our shift value wrong, which
490       led us to give incorrect timing results. Fixes bug 40684; bugfix
491       on 0.3.3.1-alpha.
493   o Major bugfixes (relay):
494     - Improve security of our DNS cache by randomly clipping the TTL
495       value. TROVE-2021-009. Fixes bug 40674; bugfix on 0.3.5.1-alpha.
497   o Minor features (fallbackdir):
498     - Regenerate fallback directories generated on December 06, 2022.
500   o Minor features (geoip data):
501     - Update the geoip files to match the IPFire Location Database, as
502       retrieved on 2022/12/06.
505 Changes in version 0.4.7.11 - 2022-11-10
506   This version contains several major fixes aimed at helping defend against
507   network denial of service. It is also extending drastically the MetricsPort
508   for relays to help us gather more internal data to investigate performance
509   and attacks.
511   We strongly recommend to upgrade to this version especially for Exit relays
512   in order to help the network defend against this ongoing DDoS.
514   o Directory authority changes (dizum, Faravahar):
515     - Change dizum IP address. Closes ticket 40687.
516     - Remove Faravahar until its operator, Sina, set it back up online
517       outside of Team Cymru network. Closes ticket 40688.
519   o Major bugfixes (geoip data):
520     - IPFire informed us on August 12th that databases generated after
521       (including) August 10th did not have proper ARIN network
522       allocations. We are updating the database to use the one generated
523       on August 9th, 2022. Fixes bug 40658; bugfix on 0.4.5.13.
525   o Major bugfixes (onion service):
526     - Set a much higher circuit build timeout for opened client rendezvous
527       circuit. Before this, tor would time them out very quickly leading to
528       unnecessary retries meaning more load on the network. Fixes bug 40694;
529       bugfix on 0.3.5.1-alpha.
531   o Major bugfixes (OSX):
532     - Fix coarse-time computation on Apple platforms (like Mac M1) where
533       the Mach absolute time ticks do not correspond directly to
534       nanoseconds. Previously, we computed our shift value wrong, which
535       led us to give incorrect timing results. Fixes bug 40684; bugfix
536       on 0.3.3.1-alpha.
538   o Major bugfixes (relay):
539     - Improve security of our DNS cache by randomly clipping the TTL
540       value. TROVE-2021-009. Fixes bug 40674; bugfix on 0.3.5.1-alpha.
542   o Minor feature (Mac and iOS build):
543     - Change how combine_libs works on Darwin like platforms to make
544       sure we don't include any `__.SYMDEF` and `__.SYMDEF SORTED`
545       symbols on the archive before we repack and run ${RANLIB} on the
546       archive. This fixes a build issue with recent Xcode versions on
547       Mac Silicon and iOS. Closes ticket 40683.
549   o Minor feature (metrics):
550     - Add various congestion control counters to the MetricsPort. Closes
551       ticket 40708.
553   o Minor feature (performance):
554     - Bump the maximum amount of CPU that can be used from 16 to 128. Note
555       that NumCPUs torrc option overrides this hardcoded maximum. Fixes bug
556       40703; bugfix on 0.3.5.1-alpha.
558   o Minor feature (relay):
559     - Make an hardcoded value for the maximum of per CPU tasks into a
560       consensus parameter.
561     - Two new consensus parameters are added to control the wait time in
562       queue of the onionskins. One of them is the torrc
563       MaxOnionQueueDelay options which supersedes the consensus
564       parameter. Closes ticket 40704.
566   o Minor feature (relay, DoS):
567     - Apply circuit creation anti-DoS defenses if the outbound circuit
568       max cell queue size is reached too many times. This introduces two
569       new consensus parameters to control the queue size limit and
570       number of times allowed to go over that limit. Closes ticket 40680.
572   o Minor feature (relay, metrics):
573     - Add DoS defenses counter to MetricsPort.
574     - Add congestion control RTT reset counter to MetricsPort.
575     - Add counters to the MetricsPort how many connections, per type,
576       are currently opened and how many were created.
577     - Add relay flags from the consensus to the MetricsPort.
578     - Add total number of opened circuits to MetricsPort.
579     - Add total number of streams seen by an Exit to the MetricsPort.
580     - Add traffic stats as in number of read/written bytes in total.
581     - Related to ticket 40194.
583   o Minor features (fallbackdir):
584     - Regenerate fallback directories generated on November 10, 2022.
586   o Minor features (geoip data):
587     - Update the geoip files to match the IPFire Location Database, as
588       retrieved on 2022/11/10.
590   o Minor bugfixes (authorities, sandbox):
591     - Allow to write file my-consensus-<flavor-name> to disk when
592       sandbox is activated. Fixes bug 40663; bugfix on 0.3.5.1-alpha.
594   o Minor bugfixes (dirauth):
595     - Directory authorities stop voting a consensus "Measured" weight
596       for relays with the Authority flag. Now these relays will be
597       considered unmeasured, which should reserve their bandwidth for
598       their dir auth role and minimize distractions from other roles. In
599       place of the "Measured" weight, they now include a
600       "MeasuredButAuthority" weight (not used by anything) so the
601       bandwidth authority's opinion on this relay can be recorded for
602       posterity. Lastly, remove the AuthDirDontVoteOnDirAuthBandwidth
603       torrc option which never worked right. Fixes bugs 40698 and 40700;
604       bugfix on 0.4.7.2-alpha.
606   o Minor bugfixes (onion service client):
607     - A collapsing onion service circuit should be seen as an
608       "unreachable" error so it can be retried. Fixes bug 40692; bugfix
609       on 0.3.5.1-alpha.
611   o Minor bugfixes (onion service):
612     - Make the service retry a rendezvous if the circuit is being
613       repurposed for measurements. Fixes bug 40696; bugfix
614       on 0.3.5.1-alpha.
616   o Minor bugfixes (relay overload statistics):
617     - Count total create cells vs dropped create cells properly, when
618       assessing if our fraction of dropped cells is too high. We only
619       count non-client circuits in the denominator, but we would include
620       client circuits in the numerator, leading to surprising log lines
621       claiming that we had dropped more than 100% of incoming create
622       cells. Fixes bug 40673; bugfix on 0.4.7.1-alpha.
624   o Code simplification and refactoring (bridges):
625     - Remove unused code related to ExtPort connection ID. Fixes bug
626       40648; bugfix on 0.3.5.1-alpha.
629 Changes in version 0.4.7.10 - 2022-08-12
630   This version updates the geoip cache that we generate from IPFire location
631   database to use the August 9th, 2022 one. Everyone MUST update to this
632   latest release else circuit path selection and relay metrics are badly
633   affected.
635   o Major bugfixes (geoip data):
636     - IPFire informed us on August 12th that databases generated after
637       (including) August 10th did not have proper ARIN network allocations. We
638       are updating the database to use the one generated on August 9th, 2022.
639       Fixes bug 40658; bugfix on 0.4.7.9.
642 Changes in version 0.4.6.12 - 2022-08-12
643   This version updates the geoip cache that we generate from IPFire location
644   database to use the August 9th, 2022 one. Everyone MUST update to this
645   latest release else circuit path selection and relay metrics are badly
646   affected.
648   o Major bugfixes (geoip data):
649     - IPFire informed us on August 12th that databases generated after
650       (including) August 10th did not have proper ARIN network allocations. We
651       are updating the database to use the one generated on August 9th, 2022.
652       Fixes bug 40658; bugfix on 0.4.6.11.
655 Changes in version 0.4.5.14 - 2022-08-12
656   This version updates the geoip cache that we generate from IPFire location
657   database to use the August 9th, 2022 one. Everyone MUST update to this
658   latest release else circuit path selection and relay metrics are badly
659   affected.
661   o Major bugfixes (geoip data):
662     - IPFire informed us on August 12th that databases generated after
663       (including) August 10th did not have proper ARIN network allocations. We
664       are updating the database to use the one generated on August 9th, 2022.
665       Fixes bug 40658; bugfix on 0.4.5.13.
668 Changes in version 0.4.7.9 - 2022-08-11
669   This version contains several major fixes aimed at reducing memory pressure on
670   relays and possible side-channel. It also contains a major bugfix related to
671   congestion control also aimed at reducing memory pressure on relays.
672   Finally, there is last one major bugfix related to Vanguard L2 layer node
673   selection.
675   We strongly recommend to upgrade to this version especially for Exit relays
676   in order to help the network defend against this ongoing DDoS.
678   o Major bugfixes (congestion control):
679     - Implement RFC3742 Limited Slow Start. Congestion control was
680       overshooting the congestion window during slow start, particularly
681       for onion service activity. With this fix, we now update the
682       congestion window more often during slow start, as well as dampen
683       the exponential growth when the congestion window grows above a
684       capping parameter. This should reduce the memory increases guard
685       relays were seeing, as well as allow us to set lower queue limits
686       to defend against ongoing DoS attacks. Fixes bug 40642; bugfix
687       on 0.4.7.5-alpha.
689   o Major bugfixes (relay):
690     - Remove OR connections btrack subsystem entries when the connections
691       close normally. Before this, we would only remove the entry on error and
692       thus leaking memory for each normal OR connections. Fixes bug 40604;
693       bugfix on 0.4.0.1-alpha.
694     - Stop sending TRUNCATED cell and instead close the circuit from which we
695       received a DESTROY cell. This makes every relay in the circuit path to
696       stop queuing cells. Fixes bug 40623; bugfix on 0.1.0.2-rc.
698   o Major bugfixes (vanguards):
699     - We had omitted some checks for whether our vanguards (second layer
700       guards from proposal 333) overlapped. Now make sure to pick each
701       of them to be independent. Also, change the design to allow them
702       to come from the same family. Fixes bug 40639; bugfix
703       on 0.4.7.1-alpha.
705   o Minor features (dirauth):
706     - Add a torrc option to control the Guard flag bandwidth threshold
707       percentile. Closes ticket 40652.
708     - Add an AuthDirVoteGuard torrc option that can allow authorities to
709       assign the Guard flag to the given fingerprints/country code/IPs.
710       This is a needed feature mostly for defense purposes in case a DoS
711       hits the network and relay start losing the Guard flags too fast.
712     - Make UPTIME_TO_GUARANTEE_STABLE, MTBF_TO_GUARANTEE_STABLE,
713       TIME_KNOWN_TO_GUARANTEE_FAMILIAR WFU_TO_GUARANTEE_GUARD tunable
714       from torrc.
716   o Minor features (fallbackdir):
717     - Regenerate fallback directories generated on August 11, 2022.
719   o Minor features (geoip data):
720     - Update the geoip files to match the IPFire Location Database, as
721       retrieved on 2022/08/11.
723   o Minor bugfixes (congestion control):
724     - Add a check for an integer underflow condition that might happen
725       in cases where the system clock is stopped, the ORconn is blocked,
726       and the endpoint sends more than a congestion window worth of non-
727       data control cells at once. This would cause a large congestion
728       window to be calculated instead of a small one. No security
729       impact. Fixes bug 40644; bugfix on 0.4.7.5-alpha.
731   o Minor bugfixes (defense in depth):
732     - Change a test in the netflow padding code to make it more
733       _obviously_ safe against remotely triggered crashes. (It was safe
734       against these before, but not obviously so.) Fixes bug 40645;
735       bugfix on 0.3.1.1-alpha.
737   o Minor bugfixes (relay):
738     - Do not propagate either forward or backward a DESTROY remote reason when
739       closing a circuit in order to avoid a possible side channel. Fixes bug
740       40649; bugfix on 0.1.2.4-alpha.
743 Changes in version 0.4.6.11 - 2022-08-11
744   This version contains two major fixes aimed at reducing memory pressure on
745   relays and possible side-channel. The rest of the fixes were backported for
746   stability or safety purposes.
748   This is the very LAST version of this series. As of August 1st 2022, it is
749   end-of-life (EOL). We thus strongly recommend to upgrade to the latest
750   stable of the 0.4.7.x series.
752   o Major bugfixes (relay):
753     - Remove OR connections btrack subsystem entries when the connections
754       close normally. Before this, we would only remove the entry on error and
755       thus leaking memory for each normal OR connections. Fixes bug 40604;
756       bugfix on 0.4.0.1-alpha.
757     - Stop sending TRUNCATED cell and instead close the circuit from which we
758       received a DESTROY cell. This makes every relay in the circuit path to
759       stop queuing cells. Fixes bug 40623; bugfix on 0.1.0.2-rc.
761   o Minor features (fallbackdir):
762     - Regenerate fallback directories generated on August 11, 2022.
764   o Minor features (geoip data):
765     - Update the geoip files to match the IPFire Location Database, as
766       retrieved on 2022/08/11.
768   o Minor features (linux seccomp2 sandbox):
769     - Permit the clone3 syscall, which is apparently used in glibc-2.34
770       and later. Closes ticket 40590.
772   o Minor bugfixes (controller, path bias):
773     - When a circuit's path is specified, in full or in part, from the
774       controller API, do not count that circuit towards our path-bias
775       calculations. (Doing so was incorrect, since we cannot tell
776       whether the controller is selecting relays randomly.) Resolves a
777       "Bug" warning. Fixes bug 40515; bugfix on 0.2.4.10-alpha.
779   o Minor bugfixes (defense in depth):
780     - Change a test in the netflow padding code to make it more
781       _obviously_ safe against remotely triggered crashes. (It was safe
782       against these before, but not obviously so.) Fixes bug 40645;
783       bugfix on 0.3.1.1-alpha.
785   o Minor bugfixes (linux seccomp2 sandbox):
786     - Allow the rseq system call in the sandbox. This solves a crash
787       issue with glibc 2.35 on Linux. Patch from pmu-ipf. Fixes bug
788       40601; bugfix on 0.3.5.11.
790   o Minor bugfixes (metrics port, onion service):
791     - The MetricsPort line for an onion service with multiple ports are now
792       unique that is one line per port. Before this, all ports of an onion
793       service would be on the same line which violates the Prometheus rules of
794       unique labels. Fixes bug 40581; bugfix on 0.4.5.1-alpha.
796   o Minor bugfixes (onion service, client):
797     - Fix a fatal assert due to a guard subsystem recursion triggered by
798       the onion service client. Fixes bug 40579; bugfix on 0.3.5.1-alpha.
800   o Minor bugfixes (performance, DoS):
801     - Fix one case of a not-especially viable denial-of-service attack
802       found by OSS-Fuzz in our consensus-diff parsing code. This attack
803       causes a lot small of memory allocations and then immediately
804       frees them: this is only slow when running with all the sanitizers
805       enabled. Fixes one case of bug 40472; bugfix on 0.3.1.1-alpha.
807   o Minor bugfixes (relay):
808     - Do not propagate either forward or backward a DESTROY remote reason when
809       closing a circuit in order to avoid a possible side channel. Fixes bug
810       40649; bugfix on 0.1.2.4-alpha.
813 Changes in version 0.4.5.13 - 2022-08-11
814   This version contains two major fixes aimed at reducing memory pressure on
815   relays and possible side-channel. The rest of the fixes were backported for
816   stability or safety purposes. We strongly recommend to upgrade your relay to
817   this version or, ideally, to the latest stable of the 0.4.7.x series.
819   o Major bugfixes (relay):
820     - Remove OR connections btrack subsystem entries when the connections
821       close normally. Before this, we would only remove the entry on error and
822       thus leaking memory for each normal OR connections. Fixes bug 40604;
823       bugfix on 0.4.0.1-alpha.
824     - Stop sending TRUNCATED cell and instead close the circuit from which we
825       received a DESTROY cell. This makes every relay in the circuit path to
826       stop queuing cells. Fixes bug 40623; bugfix on 0.1.0.2-rc.
828   o Minor features (fallbackdir):
829     - Regenerate fallback directories generated on August 11, 2022.
831   o Minor features (geoip data):
832     - Update the geoip files to match the IPFire Location Database, as
833       retrieved on 2022/08/11.
835   o Minor features (linux seccomp2 sandbox):
836     - Permit the clone3 syscall, which is apparently used in glibc-2.34
837       and later. Closes ticket 40590.
839   o Minor bugfixes (controller, path bias):
840     - When a circuit's path is specified, in full or in part, from the
841       controller API, do not count that circuit towards our path-bias
842       calculations. (Doing so was incorrect, since we cannot tell
843       whether the controller is selecting relays randomly.) Resolves a
844       "Bug" warning. Fixes bug 40515; bugfix on 0.2.4.10-alpha.
846   o Minor bugfixes (defense in depth):
847     - Change a test in the netflow padding code to make it more
848       _obviously_ safe against remotely triggered crashes. (It was safe
849       against these before, but not obviously so.) Fixes bug 40645;
850       bugfix on 0.3.1.1-alpha.
852   o Minor bugfixes (linux seccomp2 sandbox):
853     - Allow the rseq system call in the sandbox. This solves a crash
854       issue with glibc 2.35 on Linux. Patch from pmu-ipf. Fixes bug
855       40601; bugfix on 0.3.5.11.
857   o Minor bugfixes (metrics port, onion service):
858     - The MetricsPort line for an onion service with multiple ports are now
859       unique that is one line per port. Before this, all ports of an onion
860       service would be on the same line which violates the Prometheus rules of
861       unique labels. Fixes bug 40581; bugfix on 0.4.5.1-alpha.
863   o Minor bugfixes (onion service, client):
864     - Fix a fatal assert due to a guard subsystem recursion triggered by
865       the onion service client. Fixes bug 40579; bugfix on 0.3.5.1-alpha.
867   o Minor bugfixes (performance, DoS):
868     - Fix one case of a not-especially viable denial-of-service attack
869       found by OSS-Fuzz in our consensus-diff parsing code. This attack
870       causes a lot small of memory allocations and then immediately
871       frees them: this is only slow when running with all the sanitizers
872       enabled. Fixes one case of bug 40472; bugfix on 0.3.1.1-alpha.
874   o Minor bugfixes (relay):
875     - Do not propagate either forward or backward a DESTROY remote reason when
876       closing a circuit in order to avoid a possible side channel. Fixes bug
877       40649; bugfix on 0.1.2.4-alpha.
880 Changes in version 0.4.7.8 - 2022-06-17
881   This version fixes several bugfixes including a High severity security issue
882   categorized as a Denial of Service. Everyone running an earlier version
883   should upgrade to this version.
885   o Major bugfixes (congestion control, TROVE-2022-001):
886     - Fix a scenario where RTT estimation can become wedged, seriously
887       degrading congestion control performance on all circuits. This
888       impacts clients, onion services, and relays, and can be triggered
889       remotely by a malicious endpoint. Tracked as CVE-2022-33903. Fixes
890       bug 40626; bugfix on 0.4.7.5-alpha.
892   o Minor features (fallbackdir):
893     - Regenerate fallback directories generated on June 17, 2022.
895   o Minor features (geoip data):
896     - Update the geoip files to match the IPFire Location Database, as
897       retrieved on 2022/06/17.
899   o Minor bugfixes (linux seccomp2 sandbox):
900     - Allow the rseq system call in the sandbox. This solves a crash
901       issue with glibc 2.35 on Linux. Patch from pmu-ipf. Fixes bug
902       40601; bugfix on 0.3.5.11.
904   o Minor bugfixes (logging):
905     - Demote a harmless warn log message about finding a second hop to
906       from warn level to info level, if we do not have enough
907       descriptors yet. Leave it at notice level for other cases. Fixes
908       bug 40603; bugfix on 0.4.7.1-alpha.
909     - Demote a notice log message about "Unexpected path length" to info
910       level. These cases seem to happen arbitrarily, and we likely will
911       never find all of them before the switch to arti. Fixes bug 40612;
912       bugfix on 0.4.7.5-alpha.
914   o Minor bugfixes (relay, logging):
915     - Demote a harmless XOFF log message to from notice level to info
916       level. Fixes bug 40620; bugfix on 0.4.7.5-alpha.
919 Changes in version 0.4.7.7 - 2022-04-27
920   This is the first stable version of the 0.4.7.x series. This series includes
921   several major bugfixes from previous series and one massive new feature:
922   congestion control.
924   Congestion control should improve traffic speed and stability on the network
925   once a majority of Exit upgrade. You can find more details about it in
926   proposal 324 in the torspec.git repository.
928   For a complete list of changes since 0.4.6.10, see the ReleaseNotes file.
930   o Minor features (fallbackdir):
931     - Regenerate fallback directories generated on April 27, 2022.
933   o Minor features (geoip data):
934     - Update the geoip files to match the IPFire Location Database, as
935       retrieved on 2022/04/27.
937   o Minor bugfixes (congestion control, client side logs):
938     - Demote a warn about 1-hop circuits using congestion control down to
939       info; Demote the 4-hop case to notice. Fixes bug 40598; bugfix on
940       0.4.5-alpha.
943 Changes in version 0.4.7.6-rc - 2022-04-07
944   This is the first release candidate of the 0.4.7.x series. Only one minor
945   bugfix went in since the last alpha couple weeks ago. We strongly recommend
946   anyone running an alpha version to upgrade to this version. Unless major
947   problems are found, the next release will finally be the stable!
949   o Minor features (fallbackdir):
950     - Regenerate fallback directories generated on April 07, 2022.
952   o Minor features (geoip data):
953     - Update the geoip files to match the IPFire Location Database, as
954       retrieved on 2022/04/07.
956   o Minor features (linux seccomp2 sandbox):
957     - Permit the clone3 syscall, which is apparently used in glibc-2.34
958       and later. Closes ticket 40590.
961 Changes in version 0.4.7.5-alpha - 2022-03-25
962   This version contains, of what we hope, the final work for congestion
963   control paving the way to the stable version. We expect this to be the last
964   alpha version of the 0.4.7.x series. Mostly minor bugfixes except one major
965   bugfix that changes how Tor behaves with DNS timeouts for Exit relays. As
966   always with an alpha, we recommend all relay operators to upgrade from
967   previous alpha to this one.
969   o Major bugfixes (onion service, congestion control):
970     - Fix the onion service upload case where the congestion control
971       parameters were not added to the right object. Fixes bug 40586;
972       bugfix on 0.4.7.4-alpha.
974   o Major bugfixes (relay, DNS):
975     - Lower the DNS timeout from 3 attempts at 5 seconds each to 2
976       attempts at 1 seconds each. Two new consensus parameters were
977       added to control these values. This change should improve observed
978       performance under DNS load; see ticket for more details. Fixes bug
979       40312; bugfix on 0.3.5.1-alpha.
981   o Minor features (control port):
982     - Provide congestion control fields on CIRC_BW and STREAM control
983       port events, for use by sbws. Closes ticket 40568.
985   o Minor features (fallbackdir):
986     - Regenerate fallback directories generated on March 25, 2022.
988   o Minor features (geoip data):
989     - Update the geoip files to match the IPFire Location Database, as
990       retrieved on 2022/03/25.
992   o Minor bugfixes (DNSPort, dormant mode):
993     - A request on the DNSPort now wakes up a dormant tor. Fixes bug
994       40577; bugfix on 0.3.5.1-alpha.
996   o Minor bugfixes (metrics port, onion service):
997     - Fix the metrics with a port label to be unique. Before this, all
998       ports of an onion service would be on the same line which violates
999       the Prometheus rules of unique labels. Fixes bug 40581; bugfix
1000       on 0.4.5.1-alpha.
1002   o Minor bugfixes (onion service congestion control):
1003     - Avoid a non-fatal assertion failure in the case where we fail to
1004       set up congestion control on a rendezvous circuit. This could
1005       happen naturally if a cache entry expired at an unexpected time.
1006       Fixes bug 40576; bugfix on 0.4.7.4-alpha.
1008   o Minor bugfixes (onion service, client):
1009     - Fix a rare but fatal assertion failure due to a guard subsystem
1010       recursion triggered by the onion service client. Fixes bug 40579;
1011       bugfix on 0.3.5.1-alpha.
1013   o Minor bugfixes (relay, overload):
1014     - Decide whether to signal overload based on a fraction and
1015       assessment period of ntor handshake drops. Previously, a single
1016       drop could trigger an overload state, which caused many false
1017       positives. Fixes bug 40560; bugfix on 0.4.7.1-alpha.
1020 Changes in version 0.4.7.4-alpha - 2022-02-25
1021   This version contains the negotiation congestion control work which is the
1022   final part needed before going stable. There are also various bugfixes
1023   including two major ones detailed below. Last, the Exit notice page layout
1024   has been modernized but the text is unchanged. We recommend that all relay
1025   operators running any previous alpha upgrade to this one.
1027   o Major features (relay, client, onion services):
1028     - Implement RTT-based congestion control for exits and onion
1029       services, from Proposal 324. Disabled by default. Enabled by the
1030       'cc_alg' consensus parameter. Closes ticket 40444.
1032   o Major bugfixes (client):
1033     - Stop caching TCP connect failures to relays/bridges when we
1034       initiated the connection as a client. Now we only cache connect
1035       failures as a relay or bridge when we initiated them because of an
1036       EXTEND request. Declining to re-attempt the client-based
1037       connections could cause problems when we lose connectivity and try
1038       to reconnect. Fixes bug 40499; bugfix on 0.3.3.4-alpha.
1040   o Major bugfixes (relay, overload):
1041     - Do not trigger a general overload on DNS timeout. Even after
1042       fixing 40527, some code remained that triggered the overload.
1043       Fixes bug 40564; bugfix on 0.4.7.1-alpha.
1045   o Minor feature (authority, relay):
1046     - Reject End-Of-Life relays running version 0.3.5.x. Closes
1047       ticket 40559.
1049   o Minor features (fallbackdir):
1050     - Regenerate fallback directories generated on February 25, 2022.
1052   o Minor features (geoip data):
1053     - Update the geoip files to match the IPFire Location Database, as
1054       retrieved on 2022/02/25.
1056   o Minor bugfix (logging):
1057     - Update a log notice dead URL to a working one. Fixes bug 40544;
1058       bugfix on 0.3.5.1-alpha.
1060   o Minor bugfix (relay):
1061     - Remove the HSDir and HSIntro onion service v2 protocol versions so
1062       relay stop advertising that they support them. Fixes bug 40509;
1063       bugfix on 0.3.5.17.
1065   o Minor bugfixes (cell scheduling):
1066     - Avoid writing empty payload with NSS write.
1067     - Don't attempt to write 0 bytes after a cell scheduling loop. No
1068       empty payload was put on the wire. Fixes bug 40548; bugfix
1069       on 0.3.5.1-alpha.
1071   o Minor bugfixes (compilation):
1072     - Resume being able to build on old / esoteric gcc versions. Fixes
1073       bug 40550; bugfix on 0.4.7.1-alpha.
1075   o Minor bugfixes (compiler warnings):
1076     - Fix couple compiler warnings on latest Ubuntu Jammy. Fixes bug
1077       40516; bugfix on 0.3.5.1-alpha.
1079   o Documentation:
1080     - Provide an improved version of the tor-exit-notice.html file for
1081       exit relays to use as a landing page. The text is unchanged, but
1082       the page design and layout are significantly modernized, and
1083       several links are fixed. Patch from "n_user"; closes ticket 40529.
1086 Changes in version 0.4.6.10 - 2022-02-04
1087   This version contains minor bugfixes but one in particular is that relays
1088   don't advertise onion service v2 support at the protocol version level.
1090   o Minor features (fallbackdir):
1091     - Regenerate fallback directories generated on February 04, 2022.
1093   o Minor features (geoip data):
1094     - Update the geoip files to match the IPFire Location Database, as
1095       retrieved on 2022/02/04.
1097   o Minor bugfix (logging):
1098     - Update a log notice dead URL to a working one. Fixes bug 40544;
1099       bugfix on 0.3.5.1-alpha.
1101   o Minor bugfix (relay):
1102     - Remove the HSDir and HSIntro onion service v2 protocol versions so
1103       relay stop advertising that they support them. Fixes bug 40509;
1104       bugfix on 0.3.5.17.
1106   o Minor bugfixes (MetricsPort, Prometheus):
1107     - Add double quotes to the label values of the onion service
1108       metrics. Fixes bug 40552; bugfix on 0.4.5.1-alpha.
1111 Changes in version 0.4.5.12 - 2022-02-04
1112   This version contains mostly minor bugfixes for which you can find the
1113   details below. The previous release (0.4.5.11) was suppose to update the
1114   GeoIP and fallbackdir lists but a problem in our release pipeline prevented
1115   those files to be updated correctly. Thus, this release regenerates up to
1116   date lists. Furthermore, another fix to highlight is that relays don't
1117   advertise onion service v2 support at the protocol version level.
1119   o Minor feature (reproducible build):
1120     - The repository can now build reproducible tarballs which adds the
1121       build command "make dist-reprod" for that purpose. Closes
1122       ticket 26299.
1124   o Minor features (compilation):
1125     - Give an error message if trying to build with a version of
1126       LibreSSL known not to work with Tor. (There's an incompatibility
1127       with LibreSSL versions 3.2.1 through 3.4.0 inclusive because of
1128       their incompatibility with OpenSSL 1.1.1's TLSv1.3 APIs.) Closes
1129       ticket 40511.
1131   o Minor features (fallbackdir):
1132     - Regenerate fallback directories generated on February 04, 2022.
1134   o Minor features (geoip data):
1135     - Update the geoip files to match the IPFire Location Database, as
1136       retrieved on 2022/02/04.
1138   o Minor bugfix (logging):
1139     - Update a log notice dead URL to a working one. Fixes bug 40544;
1140       bugfix on 0.3.5.1-alpha.
1142   o Minor bugfix (relay):
1143     - Remove the HSDir and HSIntro onion service v2 protocol versions so
1144       relay stop advertising that they support them. Fixes bug 40509;
1145       bugfix on 0.3.5.17.
1147   o Minor bugfixes (compilation):
1148     - Fix a compilation error when trying to build Tor with a compiler
1149       that does not support expanding statically initialized const
1150       values in macro's. Fixes bug 40410; bugfix on 0.4.5.1-alpha
1151     - Fix our configuration logic to detect whether we had OpenSSL 3:
1152       previously, our logic was reversed. This has no other effect than
1153       to change whether we suppress deprecated API warnings. Fixes bug
1154       40429; bugfix on 0.3.5.13.
1156   o Minor bugfixes (MetricsPort, Prometheus):
1157     - Add double quotes to the label values of the onion service
1158       metrics. Fixes bug 40552; bugfix on 0.4.5.1-alpha.
1160   o Minor bugfixes (relay):
1161     - Reject IPv6-only DirPorts. Our reachability self-test forces
1162       DirPorts to be IPv4, but our configuration parser allowed them to
1163       be IPv6-only, which led to an assertion failure. Fixes bug 40494;
1164       bugfix on 0.4.5.1-alpha.
1167 Changes in version 0.4.7.3-alpha - 2021-12-15
1168   This third alpha release of the 0.4.7.x series fixes several bugs including
1169   two major ones affecting Bridges and Relays (see below). If you are running
1170   an earlier 0.4.7.x version, you should upgrade to this version.
1172   o Major bugfixes (bridges):
1173     - Make Tor work reliably again when you have multiple bridges
1174       configured and one or more of them are unreachable. The problem
1175       came because we require that we have bridge descriptors for both
1176       of our first two bridges (else we refuse to try to connect), but
1177       in some cases we would wait three hours before trying to fetch
1178       these missing descriptors, and/or never recover when we do try to
1179       fetch them. Fixes bugs 40396 and 40495; bugfix on 0.3.0.5-rc
1180       and 0.3.2.1-alpha.
1182   o Major bugfixes (relay, overload):
1183     - Change the MetricsPort DNS "timeout" label to be "tor_timeout" in
1184       order to indicate that this was a DNS timeout from tor perspective
1185       and not the DNS server itself.
1186     - Deprecate overload_dns_timeout_period_secs and
1187       overload_dns_timeout_scale_percent consensus parameters as well.
1188       They were used to assess the overload state which is no more now.
1189     - Don't make Tor DNS timeout trigger an overload general state.
1190       These timeouts are different from DNS server timeout. They have to
1191       be seen as timeout related to UX and not because of a network
1192       problem. Fixes bug 40527; bugfix on 0.4.6.1-alpha.
1194   o Minor feature (reproducible build):
1195     - The repository can now build reproducible tarballs which adds the
1196       build command "make dist-reprod" for that purpose. Closes
1197       ticket 26299.
1199   o Minor features (compilation):
1200     - Give an error message if trying to build with a version of
1201       LibreSSL known not to work with Tor. (There's an incompatibility
1202       with LibreSSL versions 3.2.1 through 3.4.0 inclusive because of
1203       their incompatibility with OpenSSL 1.1.1's TLSv1.3 APIs.) Closes
1204       ticket 40511.
1206   o Minor features (fallbackdir):
1207     - Regenerate fallback directories generated on December 15, 2021.
1209   o Minor features (geoip data):
1210     - Update the geoip files to match the IPFire Location Database, as
1211       retrieved on 2021/12/15.
1213   o Minor features (portability):
1214     - Try to prevent a compiler warning about printf arguments that
1215       could sometimes occur on MSYS2 depending on the configuration.
1216       Closes ticket 40355.
1218   o Minor bugfix (pluggable transport):
1219     - Do not kill a managed proxy if one of its transport configurations
1220       emits a method error. Instead log a warning and continue processing
1221       method arguments. Fixes bug 7362; bugfix on 0.2.3.6-alpha.
1223   o Minor bugfixes (bridges):
1224     - When we don't yet have a descriptor for one of our bridges,
1225       disable the entry guard retry schedule on that bridge. The entry
1226       guard retry schedule and the bridge descriptor retry schedule can
1227       conflict, e.g. where we mark a bridge as "maybe up" yet we don't
1228       try to fetch its descriptor yet, leading Tor to wait (refusing to
1229       do anything) until it becomes time to fetch the descriptor. Fixes
1230       bug 40497; bugfix on 0.3.0.3-alpha.
1232   o Minor bugfixes (compilation):
1233     - Fix our configuration logic to detect whether we had OpenSSL 3:
1234       previously, our logic was reversed. This has no other effect than
1235       to change whether we suppress deprecated API warnings. Fixes bug
1236       40429; bugfix on 0.3.5.13.
1238   o Minor bugfixes (controller, path bias):
1239     - When a circuit's path is specified, in full or in part, from the
1240       controller API, do not count that circuit towards our path-bias
1241       calculations. (Doing so was incorrect, since we cannot tell
1242       whether the controller is selecting relays randomly.) Resolves a
1243       "Bug" warning. Fixes bug 40515; bugfix on 0.2.4.10-alpha.
1245   o Minor bugfixes (logging):
1246     - When we no longer have enough directory information to use the
1247       network, we would log a notice-level message -- but we would not
1248       reliably log a message when we recovered and resumed using the
1249       network. Now make sure there is always a corresponding message
1250       about recovering. Fixes bug 40496; bugfix on 0.3.5.1-alpha.
1252   o Minor bugfixes (performance, DoS):
1253     - Fix one case of a not-especially viable denial-of-service attack
1254       found by OSS-Fuzz in our consensus-diff parsing code. This attack
1255       causes a lot small of memory allocations and then immediately
1256       frees them: this is only slow when running with all the sanitizers
1257       enabled. Fixes one case of bug 40472; bugfix on 0.3.1.1-alpha.
1259   o Minor bugfixes (relay):
1260     - Reject IPv6-only DirPorts. Our reachability self-test forces
1261       DirPorts to be IPv4, but our configuration parser allowed them to
1262       be IPv6-only, which led to an assertion failure. Fixes bug 40494;
1263       bugfix on 0.4.5.1-alpha.
1265   o Minor bugfixes (sandbox):
1266     - Fix the sandbox on i386 by modifying it to allow the
1267       "clock_gettime64" and "statx" system calls and to filter the
1268       "chown32" and "stat64" system calls in place of "chown" and
1269       "stat", respectively. Fixes bug 40505; bugfix on 0.2.5.4-alpha.
1271   o Documentation (man, relay):
1272     - Missing "OverloadStatistics" in tor.1 manpage. Fixes bug 40504;
1273       bugfix on 0.4.6.1-alpha.
1276 Changes in version 0.4.6.9 - 2021-12-15
1277   This version fixes several bugs from earlier versions of Tor. One important
1278   piece is the removal of DNS timeout metric from the overload general signal.
1279   See below for more details.
1281   o Major bugfixes (relay, overload):
1282     - Don't make Tor DNS timeout trigger an overload general state.
1283       These timeouts are different from DNS server timeout. They have to
1284       be seen as timeout related to UX and not because of a network
1285       problem. Fixes bug 40527; bugfix on 0.4.6.1-alpha.
1287   o Minor feature (reproducible build):
1288     - The repository can now build reproducible tarballs which adds the
1289       build command "make dist-reprod" for that purpose. Closes
1290       ticket 26299.
1292   o Minor features (compilation):
1293     - Give an error message if trying to build with a version of
1294       LibreSSL known not to work with Tor. (There's an incompatibility
1295       with LibreSSL versions 3.2.1 through 3.4.0 inclusive because of
1296       their incompatibility with OpenSSL 1.1.1's TLSv1.3 APIs.) Closes
1297       ticket 40511.
1299   o Minor features (fallbackdir):
1300     - Regenerate fallback directories generated on December 15, 2021.
1302   o Minor features (geoip data):
1303     - Update the geoip files to match the IPFire Location Database, as
1304       retrieved on 2021/12/15.
1306   o Minor bugfixes (compilation):
1307     - Fix our configuration logic to detect whether we had OpenSSL 3:
1308       previously, our logic was reversed. This has no other effect than
1309       to change whether we suppress deprecated API warnings. Fixes bug
1310       40429; bugfix on 0.3.5.13.
1312   o Minor bugfixes (relay):
1313     - Reject IPv6-only DirPorts. Our reachability self-test forces
1314       DirPorts to be IPv4, but our configuration parser allowed them to
1315       be IPv6-only, which led to an assertion failure. Fixes bug 40494;
1316       bugfix on 0.4.5.1-alpha.
1318   o Documentation (man, relay):
1319     - Missing "OverloadStatistics" in tor.1 manpage. Fixes bug 40504;
1320       bugfix on 0.4.6.1-alpha.
1323 Changes in version 0.4.7.2-alpha - 2021-10-26
1324   This second alpha release of the 0.4.7.x series adds two major
1325   features: congestion control (prop324) for network performance, and
1326   the MiddleOnly flag (prop335) voted by the authorities to pin relays
1327   to the middle position for various network health reasons. This
1328   release also fixes numerous bugs.
1330   The congestion control feature, detailed in proposal 324, still needs
1331   more work before we can enable it by default. It is currently in its
1332   testing and tuning phase which means that you should expect more
1333   0.4.7.x alphas as congestion control gets stabilized and tuned for
1334   optimal performance. And so, at this release, it can not be used
1335   without a custom patch.
1337   o Major features (congestion control):
1338     - Implement support for flow control over congestion controlled
1339       circuits. This work comes from proposal 324. Closes ticket 40450.
1341   o Major features (directory authority):
1342     - Add a new consensus method to handle MiddleOnly specially. When
1343       enough authorities are using this method, then any relay tagged
1344       with the MiddleOnly flag will have its Exit, Guard, HSDir, and
1345       V2Dir flags automatically cleared, and will have its BadExit flag
1346       automatically set. Implements part of proposal 335.
1347     - Authorities can now be configured to label relays as "MiddleOnly".
1348       When voting for this flag, authorities automatically vote against
1349       Exit, Guard, HSDir, and V2Dir; and in favor of BadExit. Implements
1350       part of proposal 335. Based on a patch from Neel Chauhan.
1352   o Major bugfix (relay, metrics):
1353     - On the MetricsPort, the DNS error statistics are not reported by
1354       record type ("record=...") anymore due to a libevent bug
1355       (https://github.com/libevent/libevent/issues/1219). Fixes bug
1356       40490; bugfix on 0.4.7.1-alpha.
1358   o Major bugfixes (relay, overload state):
1359     - Relays report the general overload state for DNS timeout errors
1360       only if X% of all DNS queries over Y seconds are errors. Before
1361       that, it only took 1 timeout to report the overload state which
1362       was just too low of a threshold. The X and Y values are 1% and 10
1363       minutes respectively but they are also controlled by consensus
1364       parameters. Fixes bug 40491; bugfix on 0.4.6.1-alpha.
1366   o Minor feature (authority, relay):
1367     - Reject End-Of-Life relays running version 0.4.2.x, 0.4.3.x,
1368       0.4.4.x and 0.4.5 alphas/rc. Closes ticket 40480.
1370   o Minor feature (onion service v2):
1371     - Onion service v2 addresses are now not recognized anymore by tor
1372       meaning a bad hostname is returned when attempting to pass it on a
1373       SOCKS connection. No more deprecation log is emitted client side.
1374       Closes ticket 40476.
1375     - See https://blog.torproject.org/v2-deprecation-timeline for
1376       details on how to transition from v2 to v3.
1378   o Minor features (fallbackdir):
1379     - Regenerate fallback directories for October 2021. Closes
1380       ticket 40493.
1382   o Minor features (logging, heartbeat):
1383     - When a relay receives a cell that isn't encrypted properly for it,
1384       but the relay is the last hop on the circuit, the relay now counts
1385       how many cells of this kind it receives, on how many circuits, and
1386       reports this information in the log. Previously, we'd log each
1387       cell at PROTOCOL_WARN level, which is far too verbose to be
1388       useful. Fixes part of ticket 40400.
1390   o Minor features (testing):
1391     - We now have separate fuzzers for the inner layers of v3 onion
1392       service descriptors, to prevent future bugs like 40392. Closes
1393       ticket 40488.
1395   o Minor bugfixes (compilation):
1396     - Fix compilation error when __NR_time is not defined. Fixes bug
1397       40465; bugfix on 0.2.5.5-alpha. Patch by Daniel Pinto.
1399   o Minor bugfixes (dirauth, bandwidth scanner):
1400     - Add the AuthDirDontVoteOnDirAuthBandwidth dirauth config parameter
1401       to avoid voting on bandwidth scanner weights to v3 directory
1402       authorities. Fixes bug 40471; bugfix on 0.2.2.1-alpha. Patch by
1403       Neel Chauhan.
1405   o Minor bugfixes (fragile-hardening, sandbox):
1406     - When building with --enable-fragile-hardening, add or relax Linux
1407       seccomp rules to allow AddressSanitizer to execute normally if the
1408       process terminates with the sandbox active. This has the side
1409       effect of disabling the filtering of file- and directory-open
1410       requests on most systems and dilutes the effectiveness of the
1411       sandbox overall, as a wider range of system calls must be
1412       permitted. Fixes bug 11477; bugfix on 0.2.5.4-alpha.
1414   o Minor bugfixes (logging):
1415     - If a channel has never received or transmitted a cell, or seen a
1416       client, do not calculate time diffs against 1/1/1970 but log a
1417       better prettier message. Fixes bug 40182; bugfix on 0.2.4.4.
1419   o Minor bugfixes (onion service):
1420     - Fix a warning BUG that would occur often on heavily loaded onion
1421       service leading to filling the logs with useless warnings. Fixes
1422       bug 34083; bugfix on 0.3.2.1-alpha.
1424   o Minor bugfix (CI, onion service):
1425     - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500;
1426       bugfix on 0.3.2.1-alpha.
1428   o Minor bugfixes (onion service, config):
1429     - Fix a memory leak for a small config line string that could occur
1430       if the onion service failed to be configured from file properly.
1431       Fixes bug 40484; bugfix on 0.3.2.1-alpha.
1433   o Minor bugfixes (onion service, TROVE-2021-008):
1434     - Only log v2 access attempts once total, in order to not pollute
1435       the logs with warnings and to avoid recording the times on disk
1436       when v2 access was attempted. Note that the onion address was
1437       _never_ logged. This counts as a Low-severity security issue.
1438       Fixes bug 40474; bugfix on 0.4.5.8.
1439     - Note that due to #40476 which removes v2 support entirely, this
1440       log line is not emitted anymore. We still mention this in the
1441       changelog because it is a Low-severity TROVE.
1443   o Minor bugfixes (usability):
1444     - Do not log "RENDEZVOUS1 cell with unrecognized rendezvous cookie"
1445       at LOG_PROTOCOL_WARN; instead log it at DEBUG. This warning can
1446       happen naturally if a client gives up on a rendezvous circuit
1447       after sending INTRODUCE1. Fixes part of bug 40400; bugfix
1448       on 0.1.1.13-alpha.
1449     - Do not log "circuit_receive_relay_cell failed" at
1450       LOG_PROTOCOL_WARN; instead log it at DEBUG. In every case where we
1451       would want to log this as a protocol warning, we are already
1452       logging another warning from inside circuit_receive_relay_cell.
1453       Fixes part of bug 40400; bugfix on 0.1.1.9-alpha.
1455   o Code simplification and refactoring:
1456     - Lower the official maximum for "guard-extreme-restriction-percent"
1457       to 100. This has no effect on when the guard code will generate a
1458       warning, but it makes the intent of the option clearer. Fixes bug
1459       40486; bugfix on 0.3.0.1-alpha.
1461   o Testing:
1462     - Add unit tests for the Linux seccomp sandbox. Resolves
1463       issue 16803.
1465   o Code simplification and refactoring (rust):
1466     - Remove Rust support and its associated code. It is unsupported and
1467       Rust focus should be shifted to arti. Closes ticket 40469.
1469   o Testing (CI, chutney):
1470     - Bump the data size that chutney transmits to 5MBytes in order to
1471       trigger the flow control and congestion window code. Closes
1472       ticket 40485.
1475 Changes in version 0.4.6.8 - 2021-10-26
1476   This version fixes several bugs from earlier versions of Tor. One
1477   highlight is a fix on how we track DNS timeouts to report general
1478   relay overload.
1480   o Major bugfixes (relay, overload state):
1481     - Relays report the general overload state for DNS timeout errors
1482       only if X% of all DNS queries over Y seconds are errors. Before
1483       that, it only took 1 timeout to report the overload state which
1484       was just too low of a threshold. The X and Y values are 1% and 10
1485       minutes respectively but they are also controlled by consensus
1486       parameters. Fixes bug 40491; bugfix on 0.4.6.1-alpha.
1488   o Minor features (fallbackdir):
1489     - Regenerate fallback directories for October 2021. Closes
1490       ticket 40493.
1492   o Minor features (testing):
1493     - On a testing network, relays can now use the
1494       TestingMinTimeToReportBandwidth option to change the smallest
1495       amount of time over which they're willing to report their observed
1496       maximum bandwidth. Previously, this was fixed at 1 day. For
1497       safety, values under 2 hours are only supported on testing
1498       networks. Part of a fix for ticket 40337.
1499     - Relays on testing networks no longer rate-limit how frequently
1500       they are willing to report new bandwidth measurements. Part of a
1501       fix for ticket 40337.
1502     - Relays on testing networks now report their observed bandwidths
1503       immediately from startup. Previously, they waited until they had
1504       been running for a full day. Closes ticket 40337.
1506   o Minor bugfix (onion service):
1507     - Do not flag an HSDir as non-running in case the descriptor upload
1508       or fetch fails. An onion service closes pending directory
1509       connections before uploading a new descriptor which can thus lead
1510       to wrongly flagging many relays and thus affecting circuit building
1511       path selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha.
1512     - Improve logging when a bad HS version is given. Fixes bug 40476;
1513       bugfix on 0.4.6.1-alpha.
1515   o Minor bugfix (CI, onion service):
1516     - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500;
1517       bugfix on 0.3.2.1-alpha.
1519   o Minor bugfixes (compatibility):
1520     - Fix compatibility with the most recent Libevent versions, which no
1521       longer have an evdns_set_random_bytes() function. Because this
1522       function has been a no-op since Libevent 2.0.4-alpha, it is safe
1523       for us to just stop calling it. Fixes bug 40371; bugfix
1524       on 0.2.1.7-alpha.
1526   o Minor bugfixes (onion service, TROVE-2021-008):
1527     - Only log v2 access attempts once total, in order to not pollute
1528       the logs with warnings and to avoid recording the times on disk
1529       when v2 access was attempted. Note that the onion address was
1530       _never_ logged. This counts as a Low-severity security issue.
1531       Fixes bug 40474; bugfix on 0.4.5.8.
1534 Changes in version 0.4.5.11 - 2021-10-26
1535   The major change in this version is that v2 onion services are now
1536   disabled at the client, service, and relay: any Tor nodes running this
1537   version and onward will stop supporting v2 onion services. This is the
1538   last step in the long deprecation process of v2 onion services.
1539   Everyone running an earlier version, whether as a client, a relay, or
1540   an onion service, should upgrade to Tor 0.3.5.17, 0.4.5.11,
1541   or 0.4.6.8.
1543   o Major feature (onion service v2):
1544     - See https://blog.torproject.org/v2-deprecation-timeline for
1545       details on how to transition from v2 to v3.
1546     - The control port commands HSFETCH and HSPOST no longer allow
1547       version 2, and it is no longer possible to create a v2 service
1548       with ADD_ONION.
1549     - Tor no longer allows creating v2 services, or connecting as a
1550       client to a v2 service. Relays will decline to be a v2 HSDir or
1551       introduction point. This effectively disables onion service
1552       version 2 Tor-wide. Closes ticket 40476.
1554   o Minor features (bridge, backport from 0.4.6.8):
1555     - We now announce the URL to Tor's new bridge status at
1556       https://bridges.torproject.org/ when Tor is configured to run as a
1557       bridge relay. Closes ticket 30477.
1559   o Minor features (fallbackdir):
1560     - Regenerate fallback directories for October 2021. Closes
1561       ticket 40493.
1563   o Minor features (logging, diagnostic, backport from 0.4.6.5):
1564     - Log decompression failures at a higher severity level, since they
1565       can help provide missing context for other warning messages. We
1566       rate-limit these messages, to avoid flooding the logs if they
1567       begin to occur frequently. Closes ticket 40175.
1569   o Minor features (testing, backport from 0.4.6.8):
1570     - On a testing network, relays can now use the
1571       TestingMinTimeToReportBandwidth option to change the smallest
1572       amount of time over which they're willing to report their observed
1573       maximum bandwidth. Previously, this was fixed at 1 day. For
1574       safety, values under 2 hours are only supported on testing
1575       networks. Part of a fix for ticket 40337.
1576     - Relays on testing networks no longer rate-limit how frequently
1577       they are willing to report new bandwidth measurements. Part of a
1578       fix for ticket 40337.
1579     - Relays on testing networks now report their observed bandwidths
1580       immediately from startup. Previously, they waited until they had
1581       been running for a full day. Closes ticket 40337.
1583   o Minor bugfix (CI, onion service):
1584     - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500;
1585       bugfix on 0.3.2.1-alpha.
1587   o Minor bugfix (onion service, backport from 0.4.6.8):
1588     - Do not flag an HSDir as non-running in case the descriptor upload
1589       or fetch fails. An onion service closes pending directory
1590       connections before uploading a new descriptor which can thus lead
1591       to wrongly flagging many relays and thus affecting circuit building
1592       path selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha.
1594   o Minor bugfixes (compatibility, backport from 0.4.6.8):
1595     - Fix compatibility with the most recent Libevent versions, which no
1596       longer have an evdns_set_random_bytes() function. Because this
1597       function has been a no-op since Libevent 2.0.4-alpha, it is safe
1598       for us to just stop calling it. Fixes bug 40371; bugfix
1599       on 0.2.1.7-alpha.
1601   o Minor bugfixes (consensus handling, backport from 0.4.6.4-rc):
1602     - Avoid a set of bugs that could be caused by inconsistently
1603       preferring an out-of-date consensus stored in a stale directory
1604       cache over a more recent one stored on disk as the latest
1605       consensus. Fixes bug 40375; bugfix on 0.3.1.1-alpha.
1607   o Minor bugfixes (onion service, TROVE-2021-008, backport from 0.4.6.8):
1608     - Only log v2 access attempts once total, in order to not pollute
1609       the logs with warnings and to avoid recording the times on disk
1610       when v2 access was attempted. Note that the onion address was
1611       _never_ logged. This counts as a Low-severity security issue.
1612       Fixes bug 40474; bugfix on 0.4.5.8.
1615 Changes in version 0.3.5.17 - 2021-10-26
1616   The major change in this version is that v2 onion services are now
1617   disabled at the client, service, and relay: any Tor nodes running this
1618   version and onward will stop supporting v2 onion services. This is the
1619   last step in the long deprecation process of v2 onion services.
1620   Everyone running an earlier version, whether as a client, a relay, or
1621   an onion service, should upgrade to Tor 0.3.5.17, 0.4.5.11,
1622   or 0.4.6.8.
1624   o Major feature (onion service v2, backport from 0.4.5.11):
1625     - See https://blog.torproject.org/v2-deprecation-timeline for
1626       details on how to transition from v2 to v3.
1627     - The control port commands HSFETCH and HSPOST no longer allow
1628       version 2, and it is no longer possible to create a v2 service
1629       with ADD_ONION.
1630     - Tor no longer allows creating v2 services, or connecting as a
1631       client to a v2 service. Relays will decline to be a v2 HSDir or
1632       introduction point. This effectively disables onion service
1633       version 2 Tor-wide. Closes ticket 40476.
1635   o Minor features (bridge, backport from 0.4.6.8):
1636     - We now announce the URL to Tor's new bridge status at
1637       https://bridges.torproject.org/ when Tor is configured to run as a
1638       bridge relay. Closes ticket 30477.
1640   o Minor features (fallbackdir):
1641     - Regenerate fallback directories for October 2021. Closes
1642       ticket 40493.
1644   o Minor bugfixes (compatibility, backport from 0.4.6.8):
1645     - Fix compatibility with the most recent Libevent versions, which no
1646       longer have an evdns_set_random_bytes() function. Because this
1647       function has been a no-op since Libevent 2.0.4-alpha, it is safe
1648       for us to just stop calling it. Fixes bug 40371; bugfix
1649       on 0.2.1.7-alpha.
1652 Changes in version 0.4.7.1-alpha - 2021-09-17
1653   This version is the first alpha release of the 0.4.7.x series. One
1654   major feature is Vanguards Lite, from proposal 333, to help mitigate
1655   guard discovery attacks against onion services. It also includes
1656   numerous bugfixes.
1658   o Major features (Proposal 332, onion services, guard selection algorithm):
1659     - Clients and onion services now choose four long-lived "layer 2"
1660       guard relays for use as the middle hop in all onion circuits.
1661       These relays are kept in place for a randomized duration averaging
1662       1 week. This mitigates guard discovery attacks against clients and
1663       short-lived onion services such as OnionShare. Long-lived onion
1664       services that need high security should still use the Vanguards
1665       addon (https://github.com/mikeperry-tor/vanguards). Closes ticket
1666       40363; implements proposal 333.
1668   o Minor features (bridge testing support):
1669     - Let external bridge reachability testing tools discard cached
1670       bridge descriptors when setting new bridges, so they can be sure
1671       to get a clean reachability test. Implements ticket 40209.
1673   o Minor features (fuzzing):
1674     - When building with --enable-libfuzzer, use a set of compiler flags
1675       that works with more recent versions of the library. Previously we
1676       were using a set of flags from 2017. Closes ticket 40407.
1678   o Minor features (testing configuration):
1679     - When TestingTorNetwork is enabled, skip the permissions check on
1680       hidden service directories. Closes ticket 40338.
1681     - On a testing network, relays can now use the
1682       TestingMinTimeToReportBandwidth option to change the smallest
1683       amount of time over which they're willing to report their observed
1684       maximum bandwidth. Previously, this was fixed at 1 day. For
1685       safety, values under 2 hours are only supported on testing
1686       networks. Part of a fix for ticket 40337.
1687     - Relays on testing networks no longer rate-limit how frequently
1688       they are willing to report new bandwidth measurements. Part of a
1689       fix for ticket 40337.
1690     - Relays on testing networks now report their observed bandwidths
1691       immediately from startup. Previously, they waited until they had
1692       been running for a full day. Closes ticket 40337.
1694   o Minor bugfixes (circuit padding):
1695     - Don't send STOP circuit padding cells when the other side has
1696       already shut down the corresponding padding machine. Fixes bug
1697       40435; bugfix on 0.4.0.1-alpha.
1699   o Minor bugfixes (compatibility):
1700     - Fix compatibility with the most recent Libevent versions, which no
1701       longer have an evdns_set_random_bytes() function. Because this
1702       function has been a no-op since Libevent 2.0.4-alpha, it is safe
1703       for us to just stop calling it. Fixes bug 40371; bugfix
1704       on 0.2.1.7-alpha.
1706   o Minor bugfixes (control, sandbox):
1707     - Allows the control command SAVECONF to succeed when the seccomp
1708       sandbox is enabled. Makes SAVECONF keep only one backup file, to
1709       simplify implementation. Fixes bug 40317; bugfix on 0.2.5.4-alpha.
1710       Patch by Daniel Pinto.
1712   o Minor bugfixes (heartbeat):
1713     - Adjust the heartbeat log message about distinct clients to
1714       consider the HeartbeatPeriod rather than a flat 6-hour delay.
1715       Fixes bug 40330; bugfix on 0.2.6.3-alpha.
1717   o Minor bugfixes (logging, relay):
1718     - Add spaces between the "and" when logging the "Your server has not
1719       managed to confirm reachability for its" on dual-stack relays.
1720       Fixes bug 40453; bugfix on 0.4.5.1-alpha. Patch by Neel Chauhan.
1722   o Minor bugfixes (onion service):
1723     - Do not flag an HSDir as non-running in case the descriptor upload
1724       or fetch fails. An onion service closes pending directory
1725       connections before uploading a new descriptor which leads to
1726       wrongly flagging many relays and thus affecting circuit path
1727       selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha.
1729   o Minor bugfixes (statistics):
1730     - Fix a fencepost issue when we check stability_last_downrated where
1731       we called rep_hist_downrate_old_runs() twice. Fixes bug 40394;
1732       bugfix on 0.2.0.5-alpha. Patch by Neel Chauhan.
1734   o Minor bugfixes (tests):
1735     - Fix a bug that prevented some tests from running with the correct
1736       names. Fixes bug 40365; bugfix on 0.4.3.1-alpha.
1738   o Documentation:
1739     - Add links to original tor design paper and anonbib to
1740       docs/HACKING/README.1st.md. Closes ticket 33742. Patch from
1741       Emily Bones.
1742     - Describe the "fingerprint-ed25519" file in the tor.1 man page.
1743       Fixes bug 40467; bugfix on 0.4.3.1-alpha. Patch by Neel Chauhan.
1746 Changes in version 0.4.6.7 - 2021-08-16
1747   This version fixes several bugs from earlier versions of Tor,
1748   including one that could lead to a denial-of-service attack. Everyone
1749   running an earlier version, whether as a client, a relay, or an onion
1750   service, should upgrade to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7.
1752   o Major bugfixes (cryptography, security):
1753     - Resolve an assertion failure caused by a behavior mismatch between
1754       our batch-signature verification code and our single-signature
1755       verification code. This assertion failure could be triggered
1756       remotely, leading to a denial of service attack. We fix this issue
1757       by disabling batch verification. Fixes bug 40078; bugfix on
1758       0.2.6.1-alpha. This issue is also tracked as TROVE-2021-007 and
1759       CVE-2021-38385. Found by Henry de Valence.
1761   o Minor feature (fallbackdir):
1762     - Regenerate fallback directories list. Close ticket 40447.
1764   o Minor features (geoip data):
1765     - Update the geoip files to match the IPFire Location Database, as
1766       retrieved on 2021/08/12.
1768   o Minor bugfix (crypto):
1769     - Disable the unused batch verification feature of ed25519-donna.
1770       Fixes bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry
1771       de Valence.
1773   o Minor bugfixes (onion service):
1774     - Send back the extended SOCKS error 0xF6 (Onion Service Invalid
1775       Address) for a v2 onion address. Fixes bug 40421; bugfix
1776       on 0.4.6.2-alpha.
1778   o Minor bugfixes (relay):
1779     - Reduce the compression level for data streaming from HIGH to LOW
1780       in order to reduce CPU load on the directory relays. Fixes bug
1781       40301; bugfix on 0.3.5.1-alpha.
1783   o Minor bugfixes (timekeeping):
1784     - Calculate the time of day correctly on systems where the time_t
1785       type includes leap seconds. (This is not the case on most
1786       operating systems, but on those where it occurs, our tor_timegm
1787       function did not correctly invert the system's gmtime function,
1788       which could result in assertion failures when calculating voting
1789       schedules.) Fixes bug 40383; bugfix on 0.2.0.3-alpha.
1792 Changes in version 0.4.5.10 - 2021-08-16
1793   This version fixes several bugs from earlier versions of Tor,
1794   including one that could lead to a denial-of-service attack. Everyone
1795   running an earlier version, whether as a client, a relay, or an onion
1796   service, should upgrade to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7.
1798   o Major bugfixes (cryptography, security):
1799     - Resolve an assertion failure caused by a behavior mismatch between
1800       our batch-signature verification code and our single-signature
1801       verification code. This assertion failure could be triggered
1802       remotely, leading to a denial of service attack. We fix this issue
1803       by disabling batch verification. Fixes bug 40078; bugfix on
1804       0.2.6.1-alpha. This issue is also tracked as TROVE-2021-007 and
1805       CVE-2021-38385. Found by Henry de Valence.
1807   o Minor feature (fallbackdir):
1808     - Regenerate fallback directories list. Close ticket 40447.
1810   o Minor features (geoip data):
1811     - Update the geoip files to match the IPFire Location Database, as
1812       retrieved on 2021/08/12.
1814   o Minor features (testing):
1815     - Enable the deterministic RNG for unit tests that covers the
1816       address set bloomfilter-based API's. Fixes bug 40419; bugfix
1817       on 0.3.3.2-alpha.
1819   o Minor bugfix (crypto, backport from 0.4.6.7):
1820     - Disable the unused batch verification feature of ed25519-donna.
1821       Fixes bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry
1822       de Valence.
1824   o Minor bugfixes (relay, backport from 0.4.6.7):
1825     - Reduce the compression level for data streaming from HIGH to LOW.
1826       Fixes bug 40301; bugfix on 0.3.5.1-alpha.
1828   o Minor bugfixes (timekeeping, backport from 0.4.6.7):
1829     - Calculate the time of day correctly on systems where the time_t
1830       type includes leap seconds. (This is not the case on most
1831       operating systems, but on those where it occurs, our tor_timegm
1832       function did not correctly invert the system's gmtime function,
1833       which could result in assertion failures when calculating voting
1834       schedules.) Fixes bug 40383; bugfix on 0.2.0.3-alpha.
1836   o Minor bugfixes (warnings, portability, backport from 0.4.6.6):
1837     - Suppress a strict-prototype warning when building with some
1838       versions of NSS. Fixes bug 40409; bugfix on 0.3.5.1-alpha.
1841 Changes in version 0.3.5.16 - 2021-08-16
1842   This version fixes several bugs from earlier versions of Tor,
1843   including one that could lead to a denial-of-service attack. Everyone
1844   running an earlier version, whether as a client, a relay, or an onion
1845   service, should upgrade to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7.
1847   o Major bugfixes (cryptography, security):
1848     - Resolve an assertion failure caused by a behavior mismatch between
1849       our batch-signature verification code and our single-signature
1850       verification code. This assertion failure could be triggered
1851       remotely, leading to a denial of service attack. We fix this issue
1852       by disabling batch verification. Fixes bug 40078; bugfix on
1853       0.2.6.1-alpha. This issue is also tracked as TROVE-2021-007 and
1854       CVE-2021-38385. Found by Henry de Valence.
1856   o Minor feature (fallbackdir):
1857     - Regenerate fallback directories list. Close ticket 40447.
1859   o Minor features (geoip data):
1860     - Update the geoip files to match the IPFire Location Database, as
1861       retrieved on 2021/08/12.
1863   o Minor bugfix (crypto, backport from 0.4.6.7):
1864     - Disable the unused batch verification feature of ed25519-donna.
1865       Fixes bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry
1866       de Valence.
1868   o Minor bugfixes (relay, backport from 0.4.6.7):
1869     - Reduce the compression level for data streaming from HIGH to LOW.
1870       Fixes bug 40301; bugfix on 0.3.5.1-alpha.
1873 Changes in version 0.4.6.6 - 2021-06-30
1874   Tor 0.4.6.6 makes several small fixes on 0.4.6.5, including one that
1875   allows Tor to build correctly on older versions of GCC. You should
1876   upgrade to this version if you were having trouble building Tor
1877   0.4.6.5; otherwise, there is probably no need.
1879   o Minor bugfixes (compilation):
1880     - Fix a compilation error when trying to build Tor with a compiler
1881       that does not support const variables in static initializers.
1882       Fixes bug 40410; bugfix on 0.4.6.5.
1883     - Suppress a strict-prototype warning when building with some
1884       versions of NSS. Fixes bug 40409; bugfix on 0.3.5.1-alpha.
1886   o Minor bugfixes (testing):
1887     - Enable the deterministic RNG for unit tests that covers the
1888       address set bloomfilter-based API's. Fixes bug 40419; bugfix
1889       on 0.3.3.2-alpha.
1892 Changes in version 0.4.5.9 - 2021-06-14
1893   Tor 0.4.5.9 fixes several security issues, including a
1894   denial-of-service attack against onion service clients, and another
1895   denial-of-service attack against relays. Everybody should upgrade to
1896   one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5.
1898   o Major bugfixes (security, backport from 0.4.6.5):
1899     - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on
1900       half-closed streams. Previously, clients failed to validate which
1901       hop sent these cells: this would allow a relay on a circuit to end
1902       a stream that wasn't actually built with it. Fixes bug 40389;
1903       bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021-
1904       003 and CVE-2021-34548.
1906   o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5):
1907     - Detect more failure conditions from the OpenSSL RNG code.
1908       Previously, we would detect errors from a missing RNG
1909       implementation, but not failures from the RNG code itself.
1910       Fortunately, it appears those failures do not happen in practice
1911       when Tor is using OpenSSL's default RNG implementation. Fixes bug
1912       40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
1913       TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.
1915   o Major bugfixes (security, denial of service, backport from 0.4.6.5):
1916     - Resist a hashtable-based CPU denial-of-service attack against
1917       relays. Previously we used a naive unkeyed hash function to look
1918       up circuits in a circuitmux object. An attacker could exploit this
1919       to construct circuits with chosen circuit IDs, to create
1920       collisions and make the hash table inefficient. Now we use a
1921       SipHash construction here instead. Fixes bug 40391; bugfix on
1922       0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and
1923       CVE-2021-34549. Reported by Jann Horn from Google's Project Zero.
1924     - Fix an out-of-bounds memory access in v3 onion service descriptor
1925       parsing. An attacker could exploit this bug by crafting an onion
1926       service descriptor that would crash any client that tried to visit
1927       it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also
1928       tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei
1929       Glazunov from Google's Project Zero.
1931   o Minor features (compatibility, backport from 0.4.6.4-rc):
1932     - Remove an assertion function related to TLS renegotiation. It was
1933       used nowhere outside the unit tests, and it was breaking
1934       compilation with recent alpha releases of OpenSSL 3.0.0. Closes
1935       ticket 40399.
1937   o Minor features (geoip data):
1938     - Update the geoip files to match the IPFire Location Database, as
1939       retrieved on 2021/06/10.
1941   o Minor bugfixes (control, sandbox, backport from 0.4.6.4-rc):
1942     - Allow the control command SAVECONF to succeed when the seccomp
1943       sandbox is enabled, and make SAVECONF keep only one backup file to
1944       simplify implementation. Previously SAVECONF allowed a large
1945       number of backup files, which made it incompatible with the
1946       sandbox. Fixes bug 40317; bugfix on 0.2.5.4-alpha. Patch by
1947       Daniel Pinto.
1949   o Minor bugfixes (metrics port, backport from 0.4.6.4-rc):
1950     - Fix a bug that made tor try to re-bind() on an already open
1951       MetricsPort every 60 seconds. Fixes bug 40370; bugfix
1952       on 0.4.5.1-alpha.
1955 Changes in version 0.4.4.9 - 2021-06-14
1956   Tor 0.4.4.9 fixes several security issues, including a
1957   denial-of-service attack against onion service clients, and another
1958   denial-of-service attack against relays. Everybody should upgrade to
1959   one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5.
1961   Note that the scheduled end-of-life date for the Tor 0.4.4.x series is
1962   June 15. This is therefore the last release in its series. Everybody
1963   still running 0.4.4.x should plan to upgrade to 0.4.5.x or later.
1965   o Major bugfixes (security, backport from 0.4.6.5):
1966     - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on
1967       half-closed streams. Previously, clients failed to validate which
1968       hop sent these cells: this would allow a relay on a circuit to end
1969       a stream that wasn't actually built with it. Fixes bug 40389;
1970       bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021-
1971       003 and CVE-2021-34548.
1973   o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5):
1974     - Detect more failure conditions from the OpenSSL RNG code.
1975       Previously, we would detect errors from a missing RNG
1976       implementation, but not failures from the RNG code itself.
1977       Fortunately, it appears those failures do not happen in practice
1978       when Tor is using OpenSSL's default RNG implementation. Fixes bug
1979       40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
1980       TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.
1982   o Major bugfixes (security, denial of service, backport from 0.4.6.5):
1983     - Resist a hashtable-based CPU denial-of-service attack against
1984       relays. Previously we used a naive unkeyed hash function to look
1985       up circuits in a circuitmux object. An attacker could exploit this
1986       to construct circuits with chosen circuit IDs, to create
1987       collisions and make the hash table inefficient. Now we use a
1988       SipHash construction here instead. Fixes bug 40391; bugfix on
1989       0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and
1990       CVE-2021-34549. Reported by Jann Horn from Google's Project Zero.
1991     - Fix an out-of-bounds memory access in v3 onion service descriptor
1992       parsing. An attacker could exploit this bug by crafting an onion
1993       service descriptor that would crash any client that tried to visit
1994       it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also
1995       tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei
1996       Glazunov from Google's Project Zero.
1998   o Minor features (compatibility, backport from 0.4.6.4-rc):
1999     - Remove an assertion function related to TLS renegotiation. It was
2000       used nowhere outside the unit tests, and it was breaking
2001       compilation with recent alpha releases of OpenSSL 3.0.0. Closes
2002       ticket 40399.
2004   o Minor features (fallback directory list, backport from 0.4.6.2-alpha):
2005     - Regenerate the list of fallback directories to contain a new set
2006       of 200 relays. Closes ticket 40265.
2008   o Minor features (geoip data):
2009     - Update the geoip files to match the IPFire Location Database, as
2010       retrieved on 2021/06/10.
2012   o Minor bugfixes (channel, DoS, backport from 0.4.6.2-alpha):
2013     - Fix a non-fatal BUG() message due to a too-early free of a string,
2014       when listing a client connection from the DoS defenses subsystem.
2015       Fixes bug 40345; bugfix on 0.4.3.4-rc.
2017   o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc):
2018     - Fix an indentation problem that led to a warning from GCC 11.1.1.
2019       Fixes bug 40380; bugfix on 0.3.0.1-alpha.
2022 Changes in version 0.3.5.15 - 2021-06-14
2023   Tor 0.3.5.15 fixes several security issues, including a
2024   denial-of-service attack against onion service clients, and another
2025   denial-of-service attack against relays. Everybody should upgrade to
2026   one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5.
2028   o Major bugfixes (security, backport from 0.4.6.5):
2029     - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on
2030       half-closed streams. Previously, clients failed to validate which
2031       hop sent these cells: this would allow a relay on a circuit to end
2032       a stream that wasn't actually built with it. Fixes bug 40389;
2033       bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021-
2034       003 and CVE-2021-34548.
2036   o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5):
2037     - Detect more failure conditions from the OpenSSL RNG code.
2038       Previously, we would detect errors from a missing RNG
2039       implementation, but not failures from the RNG code itself.
2040       Fortunately, it appears those failures do not happen in practice
2041       when Tor is using OpenSSL's default RNG implementation. Fixes bug
2042       40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
2043       TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.
2045   o Major bugfixes (security, denial of service, backport from 0.4.6.5):
2046     - Resist a hashtable-based CPU denial-of-service attack against
2047       relays. Previously we used a naive unkeyed hash function to look
2048       up circuits in a circuitmux object. An attacker could exploit this
2049       to construct circuits with chosen circuit IDs, to create
2050       collisions and make the hash table inefficient. Now we use a
2051       SipHash construction here instead. Fixes bug 40391; bugfix on
2052       0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and
2053       CVE-2021-34549. Reported by Jann Horn from Google's Project Zero.
2054     - Fix an out-of-bounds memory access in v3 onion service descriptor
2055       parsing. An attacker could exploit this bug by crafting an onion
2056       service descriptor that would crash any client that tried to visit
2057       it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also
2058       tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei
2059       Glazunov from Google's Project Zero.
2061   o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc):
2062     - Fix an indentation problem that led to a warning from GCC 11.1.1.
2063       Fixes bug 40380; bugfix on 0.3.0.1-alpha.
2065   o Minor features (compatibility, backport from 0.4.6.4-rc):
2066     - Remove an assertion function related to TLS renegotiation. It was
2067       used nowhere outside the unit tests, and it was breaking
2068       compilation with recent alpha releases of OpenSSL 3.0.0. Closes
2069       ticket 40399.
2071   o Minor features (fallback directory list, backport from 0.4.6.2-alpha):
2072     - Regenerate the list of fallback directories to contain a new set
2073       of 200 relays. Closes ticket 40265.
2075   o Minor features (geoip data):
2076     - Update the geoip files to match the IPFire Location Database, as
2077       retrieved on 2021/06/10.
2080 Changes in version 0.4.6.5 - 2021-06-14
2081   Tor 0.4.6.5 is the first stable release in its series. The 0.4.6.x
2082   series includes numerous features and bugfixes, including a significant
2083   improvement to our circuit timeout algorithm that should improve
2084   observed client performance, and a way for relays to report when they are
2085   overloaded.
2087   This release also includes security fixes for several security issues,
2088   including a denial-of-service attack against onion service clients,
2089   and another denial-of-service attack against relays. Everybody should
2090   upgrade to one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5.
2092   Below are the changes since 0.4.6.4-rc. For a complete list of changes
2093   since 0.4.5.8, see the ReleaseNotes file.
2095   o Major bugfixes (security):
2096     - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on
2097       half-closed streams. Previously, clients failed to validate which
2098       hop sent these cells: this would allow a relay on a circuit to end
2099       a stream that wasn't actually built with it. Fixes bug 40389;
2100       bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021-
2101       003 and CVE-2021-34548.
2103   o Major bugfixes (security, defense-in-depth):
2104     - Detect more failure conditions from the OpenSSL RNG code.
2105       Previously, we would detect errors from a missing RNG
2106       implementation, but not failures from the RNG code itself.
2107       Fortunately, it appears those failures do not happen in practice
2108       when Tor is using OpenSSL's default RNG implementation. Fixes bug
2109       40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
2110       TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.
2112   o Major bugfixes (security, denial of service):
2113     - Resist a hashtable-based CPU denial-of-service attack against
2114       relays. Previously we used a naive unkeyed hash function to look
2115       up circuits in a circuitmux object. An attacker could exploit this
2116       to construct circuits with chosen circuit IDs, to create
2117       collisions and make the hash table inefficient. Now we use a
2118       SipHash construction here instead. Fixes bug 40391; bugfix on
2119       0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and
2120       CVE-2021-34549. Reported by Jann Horn from Google's Project Zero.
2121     - Fix an out-of-bounds memory access in v3 onion service descriptor
2122       parsing. An attacker could exploit this bug by crafting an onion
2123       service descriptor that would crash any client that tried to visit
2124       it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also
2125       tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei
2126       Glazunov from Google's Project Zero.
2128   o Minor features (geoip data):
2129     - Update the geoip files to match the IPFire Location Database, as
2130       retrieved on 2021/06/10.
2132   o Minor features (logging, diagnostic):
2133     - Log decompression failures at a higher severity level, since they
2134       can help provide missing context for other warning messages. We
2135       rate-limit these messages, to avoid flooding the logs if they
2136       begin to occur frequently. Closes ticket 40175.
2139 Changes in version 0.4.6.4-rc - 2021-05-28
2140   Tor 0.4.6.4-rc fixes a few bugs from previous releases. This, we hope,
2141   the final release candidate in its series: unless major new issues are
2142   found, the next release will be stable.
2144   o Minor features (compatibility):
2145     - Remove an assertion function related to TLS renegotiation. It was
2146       used nowhere outside the unit tests, and it was breaking
2147       compilation with recent alpha releases of OpenSSL 3.0.0. Closes
2148       ticket 40399.
2150   o Minor bugfixes (consensus handling):
2151     - Avoid a set of bugs that could be caused by inconsistently
2152       preferring an out-of-date consensus stored in a stale directory
2153       cache over a more recent one stored on disk as the latest
2154       consensus. Fixes bug 40375; bugfix on 0.3.1.1-alpha.
2156   o Minor bugfixes (control, sandbox):
2157     - Allow the control command SAVECONF to succeed when the seccomp
2158       sandbox is enabled, and make SAVECONF keep only one backup file to
2159       simplify implementation. Previously SAVECONF allowed a large
2160       number of backup files, which made it incompatible with the
2161       sandbox. Fixes bug 40317; bugfix on 0.2.5.4-alpha. Patch by
2162       Daniel Pinto.
2164   o Minor bugfixes (metrics port):
2165     - Fix a bug that made tor try to re-bind() on an already open
2166       MetricsPort every 60 seconds. Fixes bug 40370; bugfix
2167       on 0.4.5.1-alpha.
2169   o Removed features:
2170     - Remove unneeded code for parsing private keys in directory
2171       documents. This code was only used for client authentication in v2
2172       onion services, which are now unsupported. Closes ticket 40374.
2175 Changes in version 0.4.5.8 - 2021-05-10
2176   Tor 0.4.5.8 fixes several bugs in earlier version, backporting fixes
2177   from the 0.4.6.x series.
2179   o Minor features (compatibility, Linux seccomp sandbox, backport from 0.4.6.3-rc):
2180     - Add a workaround to enable the Linux sandbox to work correctly
2181       with Glibc 2.33. This version of Glibc has started using the
2182       fstatat() system call, which previously our sandbox did not allow.
2183       Closes ticket 40382; see the ticket for a discussion of trade-offs.
2185   o Minor features (compilation, backport from 0.4.6.3-rc):
2186     - Make the autoconf script build correctly with autoconf versions
2187       2.70 and later. Closes part of ticket 40335.
2189   o Minor features (fallback directory list, backport from 0.4.6.2-alpha):
2190     - Regenerate the list of fallback directories to contain a new set
2191       of 200 relays. Closes ticket 40265.
2193   o Minor features (geoip data):
2194     - Update the geoip files to match the IPFire Location Database, as
2195       retrieved on 2021/05/07.
2197   o Minor features (onion services):
2198     - Add warning message when connecting to now deprecated v2 onion
2199       services. As announced, Tor 0.4.5.x is the last series that will
2200       support v2 onions. Closes ticket 40373.
2202   o Minor bugfixes (bridge, pluggable transport, backport from 0.4.6.2-alpha):
2203     - Fix a regression that made it impossible start Tor using a bridge
2204       line with a transport name and no fingerprint. Fixes bug 40360;
2205       bugfix on 0.4.5.4-rc.
2207   o Minor bugfixes (build, cross-compilation, backport from 0.4.6.3-rc):
2208     - Allow a custom "ar" for cross-compilation. Our previous build
2209       script had used the $AR environment variable in most places, but
2210       it missed one. Fixes bug 40369; bugfix on 0.4.5.1-alpha.
2212   o Minor bugfixes (channel, DoS, backport from 0.4.6.2-alpha):
2213     - Fix a non-fatal BUG() message due to a too-early free of a string,
2214       when listing a client connection from the DoS defenses subsystem.
2215       Fixes bug 40345; bugfix on 0.4.3.4-rc.
2217   o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc):
2218     - Fix an indentation problem that led to a warning from GCC 11.1.1.
2219       Fixes bug 40380; bugfix on 0.3.0.1-alpha.
2221   o Minor bugfixes (controller, backport from 0.4.6.1-alpha):
2222     - Fix a "BUG" warning that would appear when a controller chooses
2223       the first hop for a circuit, and that circuit completes. Fixes bug
2224       40285; bugfix on 0.3.2.1-alpha.
2226   o Minor bugfixes (onion service, client, memory leak, backport from 0.4.6.3-rc):
2227     - Fix a bug where an expired cached descriptor could get overwritten
2228       with a new one without freeing it, leading to a memory leak. Fixes
2229       bug 40356; bugfix on 0.3.5.1-alpha.
2231   o Minor bugfixes (testing, BSD, backport from 0.4.6.2-alpha):
2232     - Fix pattern-matching errors when patterns expand to invalid paths
2233       on BSD systems. Fixes bug 40318; bugfix on 0.4.5.1-alpha. Patch by
2234       Daniel Pinto.
2237 Changes in version 0.4.6.3-rc - 2021-05-10
2238   Tor 0.4.6.3-rc is the first release candidate in its series. It fixes
2239   a few small bugs from previous versions, and adds a better error
2240   message when trying to use (no longer supported) v2 onion services.
2242   Though we anticipate that we'll be doing a bit more clean-up between
2243   now and the stable release, we expect that our remaining changes will
2244   be fairly simple. There will likely be at least one more release
2245   candidate before 0.4.6.x is stable.
2247   o Major bugfixes (onion service, control port):
2248     - Make the ADD_ONION command properly configure client authorization.
2249       Before this fix, the created onion failed to add the client(s).
2250       Fixes bug 40378; bugfix on 0.4.6.1-alpha.
2252   o Minor features (compatibility, Linux seccomp sandbox):
2253     - Add a workaround to enable the Linux sandbox to work correctly
2254       with Glibc 2.33. This version of Glibc has started using the
2255       fstatat() system call, which previously our sandbox did not allow.
2256       Closes ticket 40382; see the ticket for a discussion of trade-offs.
2258   o Minor features (compilation):
2259     - Make the autoconf script build correctly with autoconf versions
2260       2.70 and later. Closes part of ticket 40335.
2262   o Minor features (geoip data):
2263     - Update the geoip files to match the IPFire Location Database, as
2264       retrieved on 2021/05/07.
2266   o Minor features (onion services):
2267     - Add a warning message when trying to connect to (no longer
2268       supported) v2 onion services. Closes ticket 40373.
2270   o Minor bugfixes (build, cross-compilation):
2271     - Allow a custom "ar" for cross-compilation. Our previous build
2272       script had used the $AR environment variable in most places, but
2273       it missed one. Fixes bug 40369; bugfix on 0.4.5.1-alpha.
2275   o Minor bugfixes (compiler warnings):
2276     - Fix an indentation problem that led to a warning from GCC 11.1.1.
2277       Fixes bug 40380; bugfix on 0.3.0.1-alpha.
2279   o Minor bugfixes (logging, relay):
2280     - Emit a warning if an Address is found to be internal and tor can't
2281       use it. Fixes bug 40290; bugfix on 0.4.5.1-alpha.
2283   o Minor bugfixes (onion service, client, memory leak):
2284     - Fix a bug where an expired cached descriptor could get overwritten
2285       with a new one without freeing it, leading to a memory leak. Fixes
2286       bug 40356; bugfix on 0.3.5.1-alpha.
2289 Changes in version 0.4.6.2-alpha - 2021-04-15
2290   Tor 0.4.6.2-alpha is the second alpha in its series. It fixes several
2291   small bugs in previous releases, and solves other issues that had
2292   enabled denial-of-service attacks and affected integration with
2293   other tools.
2295   o Minor features (client):
2296     - Clients now check whether their streams are attempting to re-enter
2297       the Tor network (i.e. to send Tor traffic over Tor), and close
2298       them preemptively if they think exit relays will refuse them for
2299       this reason. See ticket 2667 for details. Closes ticket 40271.
2301   o Minor features (command line):
2302     - Add long format name "--torrc-file" equivalent to the existing
2303       command-line option "-f". Closes ticket 40324. Patch by
2304       Daniel Pinto.
2306   o Minor features (dormant mode):
2307     - Add a new 'DormantTimeoutEnabled' option to allow coarse-grained
2308       control over whether the client ever becomes dormant from
2309       inactivity. Most people won't need this. Closes ticket 40228.
2311   o Minor features (fallback directory list):
2312     - Regenerate the list of fallback directories to contain a new set
2313       of 200 relays. Closes ticket 40265.
2315   o Minor features (geoip data):
2316     - Update the geoip files to match the IPFire Location Database, as
2317       retrieved on 2021/04/13.
2319   o Minor features (logging):
2320     - Edit heartbeat log messages so that more of them begin with the
2321       string "Heartbeat: ". Closes ticket 40322; patch
2322       from 'cypherpunks'.
2324   o Minor bugfixes (bridge, pluggable transport):
2325     - Fix a regression that made it impossible start Tor using a bridge
2326       line with a transport name and no fingerprint. Fixes bug 40360;
2327       bugfix on 0.4.5.4-rc.
2329   o Minor bugfixes (channel, DoS):
2330     - Fix a non-fatal BUG() message due to a too-early free of a string,
2331       when listing a client connection from the DoS defenses subsystem.
2332       Fixes bug 40345; bugfix on 0.4.3.4-rc.
2334   o Minor bugfixes (compilation):
2335     - Fix a compilation warning about unused functions when building
2336       with a libc that lacks the GLOB_ALTDIRFUNC constant. Fixes bug
2337       40354; bugfix on 0.4.5.1-alpha. Patch by Daniel Pinto.
2339   o Minor bugfixes (configuration):
2340     - Fix pattern-matching for directories on all platforms when using
2341       %include options in configuration files. This patch also fixes
2342       compilation on musl libc based systems. Fixes bug 40141; bugfix
2343       on 0.4.5.1-alpha.
2345   o Minor bugfixes (relay):
2346     - Move the "overload-general" line from extrainfo to the server
2347       descriptor. Fixes bug 40364; bugfix on 0.4.6.1-alpha.
2349   o Minor bugfixes (testing, BSD):
2350     - Fix pattern-matching errors when patterns expand to invalid paths
2351       on BSD systems. Fixes bug 40318; bugfix on 0.4.5.1-alpha. Patch by
2352       Daniel Pinto.
2354   o Documentation (manual):
2355     - Move the ServerTransport* options to the "SERVER OPTIONS" section.
2356       Closes issue 40331.
2357     - Indicate that the HiddenServiceStatistics option also applies to
2358       bridges. Closes ticket 40346.
2359     - Move the description of BridgeRecordUsageByCountry to the section
2360       "STATISTICS OPTIONS". Closes ticket 40323.
2363 Changes in version 0.4.6.1-alpha - 2021-03-18
2364   Tor 0.4.6.1-alpha is the first alpha release in the 0.4.6.x series. It
2365   improves client circuit performance, adds missing features, and
2366   improves some of our DoS handling and statistics reporting. It also
2367   includes numerous smaller bugfixes.
2369   Below are the changes since 0.4.5.7. (Note that this release DOES
2370   include the fixes for the security bugs already fixed in 0.4.5.7.)
2372   o Major features (control port, onion services):
2373     - Add controller support for creating version 3 onion services with
2374       client authorization. Previously, only v2 onion services could be
2375       created with client authorization. Closes ticket 40084. Patch by
2376       Neel Chauhan.
2378   o Major features (directory authority):
2379     - When voting on a relay with a Sybil-like appearance, add the Sybil
2380       flag when clearing out the other flags. This lets a relay operator
2381       know why their relay hasn't been included in the consensus. Closes
2382       ticket 40255. Patch by Neel Chauhan.
2384   o Major features (metrics):
2385     - Relays now report how overloaded they are in their extrainfo
2386       documents. This information is controlled with the
2387       OverloadStatistics torrc option, and it will be used to improve
2388       decisions about the network's load balancing. Implements proposal
2389       328; closes ticket 40222.
2391   o Major features (relay, denial of service):
2392     - Add a new DoS subsystem feature to control the rate of client
2393       connections for relays. Closes ticket 40253.
2395   o Major features (statistics):
2396     - Relays now publish statistics about the number of v3 onion
2397       services and volume of v3 onion service traffic, in the same
2398       manner they already do for v2 onions. Closes ticket 23126.
2400   o Major bugfixes (circuit build timeout):
2401     - Improve the accuracy of our circuit build timeout calculation for
2402       60%, 70%, and 80% build rates for various guard choices. We now
2403       use a maximum likelihood estimator for Pareto parameters of the
2404       circuit build time distribution, instead of a "right-censored
2405       estimator". This causes clients to ignore circuits that never
2406       finish building in their timeout calculations. Previously, clients
2407       were counting such unfinished circuits as having the highest
2408       possible build time value, when in reality these circuits most
2409       likely just contain relays that are offline. We also now wait a
2410       bit longer to let circuits complete for measurement purposes,
2411       lower the minimum possible effective timeout from 1.5 seconds to
2412       10ms, and increase the resolution of the circuit build time
2413       histogram from 50ms bin widths to 10ms bin widths. Additionally,
2414       we alter our estimate Xm by taking the maximum of the top 10 most
2415       common build time values of the 10ms histogram, and compute Xm as
2416       the average of these. Fixes bug 40168; bugfix on 0.2.2.14-alpha.
2417     - Remove max_time calculation and associated warning from circuit
2418       build timeout 'alpha' parameter estimation, as this is no longer
2419       needed by our new estimator from 40168. Fixes bug 34088; bugfix
2420       on 0.2.2.9-alpha.
2422   o Major bugfixes (signing key):
2423     - In the tor-gencert utility, give an informative error message if
2424       the passphrase given in `--create-identity-key` is too short.
2425       Fixes bug 40189; bugfix on 0.2.0.1-alpha. Patch by Neel Chauhan.
2427   o Minor features (bridge):
2428     - We now announce the URL to Tor's new bridge status at
2429       https://bridges.torproject.org/ when Tor is configured to run as a
2430       bridge relay. Closes ticket 30477.
2432   o Minor features (build system):
2433     - New "make lsp" command to auto generate the compile_commands.json
2434       file used by the ccls server. The "bear" program is needed for
2435       this. Closes ticket 40227.
2437   o Minor features (command-line interface):
2438     - Add build informations to `tor --version` in order to ease
2439       reproducible builds. Closes ticket 32102.
2440     - When parsing command-line flags that take an optional argument,
2441       treat the argument as absent if it would start with a '-'
2442       character. Arguments in that form are not intelligible for any of
2443       our optional-argument flags. Closes ticket 40223.
2444     - Allow a relay operator to list the ed25519 keys on the command
2445       line by adding the `rsa` and `ed25519` arguments to the
2446       --list-fingerprint flag to show the respective RSA and ed25519
2447       relay fingerprint. Closes ticket 33632. Patch by Neel Chauhan.
2449   o Minor features (control port, stream handling):
2450     - Add the stream ID to the event line in the ADDRMAP control event.
2451       Closes ticket 40249. Patch by Neel Chauhan.
2453   o Minor features (dormant mode):
2454     - Add a new 'DormantTimeoutEnabled' option for coarse-grained
2455       control over whether the client can become dormant from
2456       inactivity. Most people won't need this. Closes ticket 40228.
2458   o Minor features (logging):
2459     - Change the DoS subsystem heartbeat line format to be more clear on
2460       what has been detected/rejected, and which option is disabled (if
2461       any). Closes ticket 40308.
2462     - In src/core/mainloop/mainloop.c and src/core/mainloop/connection.c,
2463       put brackets around IPv6 addresses in log messages. Closes ticket
2464       40232. Patch by Neel Chauhan.
2466   o Minor features (performance, windows):
2467     - Use SRWLocks to implement locking on Windows. Replaces the
2468       "critical section" locking implementation with the faster
2469       SRWLocks, available since Windows Vista. Closes ticket 17927.
2470       Patch by Daniel Pinto.
2472   o Minor features (protocol, proxy support, defense in depth):
2473     - Close HAProxy connections if they somehow manage to send us data
2474       before we start reading. Closes another case of ticket 40017.
2476   o Minor features (tests, portability):
2477     - Port the hs_build_address.py test script to work with recent
2478       versions of python. Closes ticket 40213. Patch from
2479       Samanta Navarro.
2481   o Minor features (vote document):
2482     - Add a "stats" line to directory authority votes, to report various
2483       statistics that authorities compute about the relays. This will
2484       help us diagnose the network better. Closes ticket 40314.
2486   o Minor bugfixes (build):
2487     - The configure script now shows whether or not lzma and zstd have
2488       been used, not just if the enable flag was passed in. Fixes bug
2489       40236; bugfix on 0.4.3.1-alpha.
2491   o Minor bugfixes (compatibility):
2492     - Fix a failure in the test cases when running on the "hppa"
2493       architecture, along with a related test that might fail on other
2494       architectures in the future. Fixes bug 40274; bugfix
2495       on 0.2.5.1-alpha.
2497   o Minor bugfixes (controller):
2498     - Fix a "BUG" warning that would appear when a controller chooses
2499       the first hop for a circuit, and that circuit completes. Fixes bug
2500       40285; bugfix on 0.3.2.1-alpha.
2502   o Minor bugfixes (directory authorities, voting):
2503     - Add a new consensus method (31) to support any future changes that
2504       authorities decide to make to the value of bwweightscale or
2505       maxunmeasuredbw. Previously, there was a bug that prevented the
2506       authorities from parsing these consensus parameters correctly under
2507       most circumstances. Fixes bug 19011; bugfix on 0.2.2.10-alpha.
2509   o Minor bugfixes (ipv6):
2510     - Allow non-SOCKSPorts to disable IPv4, IPv6, and PreferIPv4. Some
2511       rare configurations might break, but in this case you can disable
2512       NoIPv4Traffic and NoIPv6Traffic as needed. Fixes bug 33607; bugfix
2513       on 0.4.1.1-alpha. Patch by Neel Chauhan.
2515   o Minor bugfixes (key generation):
2516     - Do not require a valid torrc when using the `--keygen` argument to
2517       generate a signing key. This allows us to generate keys on systems
2518       or users which may not run Tor. Fixes bug 40235; bugfix on
2519       0.2.7.2-alpha. Patch by Neel Chauhan.
2521   o Minor bugfixes (onion services, logging):
2522     - Downgrade the severity of a few rendezvous circuit-related
2523       warnings from warning to info. Fixes bug 40207; bugfix on
2524       0.3.2.1-alpha. Patch by Neel Chauhan.
2526   o Minor bugfixes (relay):
2527     - Reduce the compression level for data streaming from HIGH to LOW.
2528       This should reduce the CPU and memory burden for directory caches.
2529       Fixes bug 40301; bugfix on 0.3.5.1-alpha.
2531   o Code simplification and refactoring:
2532     - Remove the orconn_ext_or_id_map structure and related functions.
2533       (Nothing outside of unit tests used them.) Closes ticket 33383.
2534       Patch by Neel Chauhan.
2536   o Removed features:
2537     - As of this release, Tor no longer supports the old v2 onion
2538       services. They were deprecated last July for security, and support
2539       will be removed entirely later this year. We strongly encourage
2540       everybody to migrate to v3 onion services. For more information,
2541       see https://blog.torproject.org/v2-deprecation-timeline . Closes
2542       ticket 40266. (NOTE: We accidentally released an earlier version
2543       of the 0.4.6.1-alpha changelog without this entry. Sorry for
2544       the confusion!)
2546   o Code simplification and refactoring (metrics, DoS):
2547     - Move the DoS subsystem into the subsys manager, including its
2548       configuration options. Closes ticket 40261.
2550   o Removed features (relay):
2551     - Because DirPorts are only used on authorities, relays no longer
2552       advertise them. Similarly, self-testing for DirPorts has been
2553       disabled, since an unreachable DirPort is no reason for a relay
2554       not to advertise itself. (Configuring a DirPort will still work,
2555       for now.) Closes ticket 40282.
2558 Changes in version 0.3.5.14 - 2021-03-16
2559   Tor 0.3.5.14 backports fixes for two important denial-of-service bugs
2560   in earlier versions of Tor.
2562   One of these vulnerabilities (TROVE-2021-001) would allow an attacker
2563   who can send directory data to a Tor instance to force that Tor
2564   instance to consume huge amounts of CPU. This is easiest to exploit
2565   against authorities, since anybody can upload to them, but directory
2566   caches could also exploit this vulnerability against relays or clients
2567   when they download. The other vulnerability (TROVE-2021-002) only
2568   affects directory authorities, and would allow an attacker to remotely
2569   crash the authority with an assertion failure. Patches have already
2570   been provided to the authority operators, to help ensure
2571   network stability.
2573   We recommend that everybody upgrade to one of the releases that fixes
2574   these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available
2575   to you.
2577   This release also updates our GeoIP data source, and fixes a
2578   compatibility issue.
2580   o Major bugfixes (security, denial of service, backport from 0.4.5.7):
2581     - Disable the dump_desc() function that we used to dump unparseable
2582       information to disk. It was called incorrectly in several places,
2583       in a way that could lead to excessive CPU usage. Fixes bug 40286;
2584       bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021-
2585       001 and CVE-2021-28089.
2586     - Fix a bug in appending detached signatures to a pending consensus
2587       document that could be used to crash a directory authority. Fixes
2588       bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002
2589       and CVE-2021-28090.
2591   o Minor features (geoip data, backport from 0.4.5.7):
2592     - We have switched geoip data sources. Previously we shipped IP-to-
2593       country mappings from Maxmind's GeoLite2, but in 2019 they changed
2594       their licensing terms, so we were unable to update them after that
2595       point. We now ship geoip files based on the IPFire Location
2596       Database instead. (See https://location.ipfire.org/ for more
2597       information). This release updates our geoip files to match the
2598       IPFire Location Database as retrieved on 2021/03/12. Closes
2599       ticket 40224.
2601   o Removed features (mallinfo deprecated, backport from 0.4.5.7):
2602     - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it.
2603       Closes ticket 40309.
2606 Changes in version 0.4.4.8 - 2021-03-16
2607   Tor 0.4.4.8 backports fixes for two important denial-of-service bugs
2608   in earlier versions of Tor.
2610   One of these vulnerabilities (TROVE-2021-001) would allow an attacker
2611   who can send directory data to a Tor instance to force that Tor
2612   instance to consume huge amounts of CPU. This is easiest to exploit
2613   against authorities, since anybody can upload to them, but directory
2614   caches could also exploit this vulnerability against relays or clients
2615   when they download. The other vulnerability (TROVE-2021-002) only
2616   affects directory authorities, and would allow an attacker to remotely
2617   crash the authority with an assertion failure. Patches have already
2618   been provided to the authority operators, to help ensure
2619   network stability.
2621   We recommend that everybody upgrade to one of the releases that fixes
2622   these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available
2623   to you.
2625   This release also updates our GeoIP data source, and fixes a
2626   compatibility issue.
2628   o Major bugfixes (security, denial of service, backport from 0.4.5.7):
2629     - Disable the dump_desc() function that we used to dump unparseable
2630       information to disk. It was called incorrectly in several places,
2631       in a way that could lead to excessive CPU usage. Fixes bug 40286;
2632       bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021-
2633       001 and CVE-2021-28089.
2634     - Fix a bug in appending detached signatures to a pending consensus
2635       document that could be used to crash a directory authority. Fixes
2636       bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002
2637       and CVE-2021-28090.
2639   o Minor features (geoip data, backport from 0.4.5.7):
2640     - We have switched geoip data sources. Previously we shipped IP-to-
2641       country mappings from Maxmind's GeoLite2, but in 2019 they changed
2642       their licensing terms, so we were unable to update them after that
2643       point. We now ship geoip files based on the IPFire Location
2644       Database instead. (See https://location.ipfire.org/ for more
2645       information). This release updates our geoip files to match the
2646       IPFire Location Database as retrieved on 2021/03/12. Closes
2647       ticket 40224.
2649   o Removed features (mallinfo deprecated, backport from 0.4.5.7):
2650     - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it.
2651       Closes ticket 40309.
2654 Changes in version 0.4.5.7 - 2021-03-16
2655   Tor 0.4.5.7 fixes two important denial-of-service bugs in earlier
2656   versions of Tor.
2658   One of these vulnerabilities (TROVE-2021-001) would allow an attacker
2659   who can send directory data to a Tor instance to force that Tor
2660   instance to consume huge amounts of CPU. This is easiest to exploit
2661   against authorities, since anybody can upload to them, but directory
2662   caches could also exploit this vulnerability against relays or clients
2663   when they download. The other vulnerability (TROVE-2021-002) only
2664   affects directory authorities, and would allow an attacker to remotely
2665   crash the authority with an assertion failure. Patches have already
2666   been provided to the authority operators, to help ensure
2667   network stability.
2669   We recommend that everybody upgrade to one of the releases that fixes
2670   these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available
2671   to you.
2673   This release also updates our GeoIP data source, and fixes a few
2674   smaller bugs in earlier releases.
2676   o Major bugfixes (security, denial of service):
2677     - Disable the dump_desc() function that we used to dump unparseable
2678       information to disk. It was called incorrectly in several places,
2679       in a way that could lead to excessive CPU usage. Fixes bug 40286;
2680       bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021-
2681       001 and CVE-2021-28089.
2682     - Fix a bug in appending detached signatures to a pending consensus
2683       document that could be used to crash a directory authority. Fixes
2684       bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002
2685       and CVE-2021-28090.
2687   o Minor features (geoip data):
2688     - We have switched geoip data sources. Previously we shipped IP-to-
2689       country mappings from Maxmind's GeoLite2, but in 2019 they changed
2690       their licensing terms, so we were unable to update them after that
2691       point. We now ship geoip files based on the IPFire Location
2692       Database instead. (See https://location.ipfire.org/ for more
2693       information). This release updates our geoip files to match the
2694       IPFire Location Database as retrieved on 2021/03/12. Closes
2695       ticket 40224.
2697   o Minor bugfixes (directory authority):
2698     - Now that exit relays don't allow exit connections to directory
2699       authority DirPorts (to prevent network reentry), disable
2700       authorities' reachability self test on the DirPort. Fixes bug
2701       40287; bugfix on 0.4.5.5-rc.
2703   o Minor bugfixes (documentation):
2704     - Fix a formatting error in the documentation for
2705       VirtualAddrNetworkIPv6. Fixes bug 40256; bugfix on 0.2.9.4-alpha.
2707   o Minor bugfixes (Linux, relay):
2708     - Fix a bug in determining total available system memory that would
2709       have been triggered if the format of Linux's /proc/meminfo file
2710       had ever changed to include "MemTotal:" in the middle of a line.
2711       Fixes bug 40315; bugfix on 0.2.5.4-alpha.
2713   o Minor bugfixes (metrics port):
2714     - Fix a BUG() warning on the MetricsPort for an internal missing
2715       handler. Fixes bug 40295; bugfix on 0.4.5.1-alpha.
2717   o Minor bugfixes (onion service):
2718     - Remove a harmless BUG() warning when reloading tor configured with
2719       onion services. Fixes bug 40334; bugfix on 0.4.5.1-alpha.
2721   o Minor bugfixes (portability):
2722     - Fix a non-portable usage of "==" with "test" in the configure
2723       script. Fixes bug 40298; bugfix on 0.4.5.1-alpha.
2725   o Minor bugfixes (relay):
2726     - Remove a spammy log notice falsely claiming that the IPv4/v6
2727       address was missing. Fixes bug 40300; bugfix on 0.4.5.1-alpha.
2728     - Do not query the address cache early in the boot process when
2729       deciding if a relay needs to fetch early directory information
2730       from an authority. This bug resulted in a relay falsely believing
2731       it didn't have an address and thus triggering an authority fetch
2732       at each boot. Related to our fix for 40300.
2734   o Removed features (mallinfo deprecated):
2735     - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it.
2736       Closes ticket 40309.
2739 Changes in version 0.4.5.6 - 2021-02-15
2740   The Tor 0.4.5.x release series is dedicated to the memory of Karsten
2741   Loesing (1979-2020), Tor developer, cypherpunk, husband, and father.
2742   Karsten is best known for creating the Tor metrics portal and leading
2743   the metrics team, but he was involved in Tor from the early days. For
2744   example, while he was still a student he invented and implemented the
2745   v2 onion service directory design, and he also served as an ambassador
2746   to the many German researchers working in the anonymity field. We
2747   loved him and respected him for his patience, his consistency, and his
2748   welcoming approach to growing our community.
2750   This release series introduces significant improvements in relay IPv6
2751   address discovery, a new "MetricsPort" mechanism for relay operators
2752   to measure performance, LTTng support, build system improvements to
2753   help when using Tor as a static library, and significant bugfixes
2754   related to Windows relay performance. It also includes numerous
2755   smaller features and bugfixes.
2757   Below are the changes since 0.4.4.4-rc. For a complete list of changes
2758   since 0.4.4.7, see the ReleaseNotes file.
2760   o Major bugfixes (IPv6, relay):
2761     - Fix a bug that prevented a relay from publishing its descriptor if
2762       an auto-discovered IPv6 that was found unreachable. Fixes bug
2763       40279; bugfix on 0.4.5.1-alpha.
2765   o Minor features (protocol versions):
2766     - Stop claiming to support the "DirCache=1" subprotocol version.
2767       Technically, we stopped supporting this subprotocol back in
2768       0.4.5.1-alpha, but we needed to wait for the authorities to stop
2769       listing it as "required" before we could drop it from the list.
2770       Closes ticket 40221.
2772   o Minor bugfixes (logging):
2773     - Avoid a spurious log message about missing subprotocol versions,
2774       when the consensus that we're reading from is older than the
2775       current release. Previously we had made this message nonfatal, but
2776       in practice, it is never relevant when the consensus is older than
2777       the current release. Fixes bug 40281; bugfix on 0.4.0.1-alpha.
2779   o Minor bugfixes (metrics port):
2780     - Fix a bug warning when a metrics port socket was unexpectedly
2781       closed. Fixes bug 40257; bugfix on 0.4.5.1-alpha
2783   o Minor bugfixes (relay):
2784     - Allow relays to have a RFC1918 address if PublishServerDescriptor
2785       is set to 0 and AssumeReachable is set to 1. This is to support
2786       the use case of a bridge on a local network, exposed via a
2787       pluggable transport. Fixes bug 40208; bugfix on 0.4.5.1-alpha.
2789   o Minor bugfixes (relay, config):
2790     - Fix a problem in the removal of duplicate ORPorts from the
2791       internal port list when loading the config file. We were removing
2792       the wrong ports, breaking valid torrc uses cases for multiple
2793       ORPorts of the same address family. Fixes bug 40289; bugfix
2794       on 0.4.5.1-alpha.
2797 Changes in version 0.4.4.7 - 2021-02-03
2798   Tor 0.4.4.7 backports numerous bugfixes from later releases,
2799   including one that made v3 onion services more susceptible to
2800   denial-of-service attacks, and a feature that makes some kinds of
2801   DoS attacks harder to perform.
2803   o Major bugfixes (onion service v3, backport from 0.4.5.3-rc):
2804     - Stop requiring a live consensus for v3 clients and services, and
2805       allow a "reasonably live" consensus instead. This allows v3 onion
2806       services to work even if the authorities fail to generate a
2807       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
2808       on 0.3.5.1-alpha.
2810   o Major feature (exit, backport from 0.4.5.5-rc):
2811     - Re-entry into the network is now denied at the Exit level to all
2812       relays' ORPorts and authorities' ORPorts and DirPorts. This change
2813       should help mitgate a set of denial-of-service attacks. Closes
2814       ticket 2667.
2816   o Minor feature (build system, backport from 0.4.5.4-rc):
2817     - New "make lsp" command to generate the compile_commands.json file
2818       used by the ccls language server. The "bear" program is needed for
2819       this. Closes ticket 40227.
2821   o Minor features (compilation, backport from 0.4.5.2-rc):
2822     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
2823       later. There are a number of APIs newly deprecated in OpenSSL
2824       3.0.0 that Tor still requires. (A later version of Tor will try to
2825       stop depending on these APIs.) Closes ticket 40165.
2827   o Minor features (crypto, backport from 0.4.5.3-rc):
2828     - Fix undefined behavior on our Keccak library. The bug only
2829       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
2830       and would result in wrong digests. Fixes bug 40210; bugfix on
2831       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
2832       weasel for diagnosing this.
2834   o Minor bugfixes (compatibility, backport from 0.4.5.1-rc):
2835     - Strip '\r' characters when reading text files on Unix platforms.
2836       This should resolve an issue where a relay operator migrates a
2837       relay from Windows to Unix, but does not change the line ending of
2838       Tor's various state files to match the platform, and the CRLF line
2839       endings from Windows end up leaking into other files such as the
2840       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
2842   o Minor bugfixes (compilation, backport from 0.4.5.3-rc):
2843     - Fix a compilation warning about unreachable fallthrough
2844       annotations when building with "--enable-all-bugs-are-fatal" on
2845       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
2847   o Minor bugfixes (SOCKS5, backport from 0.4.5.3-rc):
2848     - Handle partial SOCKS5 messages correctly. Previously, our code
2849       would send an incorrect error message if it got a SOCKS5 request
2850       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
2852   o Minor bugfixes (testing, backport from 0.4.5.2-alpha):
2853     - Fix the `config/parse_tcp_proxy_line` test so that it works
2854       correctly on systems where the DNS provider hijacks invalid
2855       queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha.
2856     - Fix our Python reference-implementation for the v3 onion service
2857       handshake so that it works correctly with the version of hashlib
2858       provided by Python 3.9. Fixes part of bug 40179; bugfix
2859       on 0.3.1.6-rc.
2860     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
2861       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
2864 Changes in version 0.4.3.8 - 2021-02-03
2865   Tor 0.4.3.8 backports numerous bugfixes from later releases,
2866   including one that made v3 onion services more susceptible to
2867   denial-of-service attacks, and a feature that makes some kinds of
2868   DoS attacks harder to perform.
2870   Note that this is, in all likelihood, the last release of Tor 0.4.3.x,
2871   which will reach end-of-life on 15 Feb 2021.
2873   o Major bugfixes (onion service v3, backport from 0.4.5.3-rc):
2874     - Stop requiring a live consensus for v3 clients and services, and
2875       allow a "reasonably live" consensus instead. This allows v3 onion
2876       services to work even if the authorities fail to generate a
2877       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
2878       on 0.3.5.1-alpha.
2880   o Major bugfixes (stats, onion services, backport from 0.4.4.5):
2881     - Fix a bug where we were undercounting the Tor network's total
2882       onion service traffic, by ignoring any traffic originating from
2883       clients. Now we count traffic from both clients and services.
2884       Fixes bug 40117; bugfix on 0.2.6.2-alpha.
2886   o Major feature (exit, backport from 0.4.5.5-rc):
2887     - Re-entry into the network is now denied at the Exit level to all
2888       relays' ORPorts and authorities' ORPorts and DirPorts. This change
2889       should help mitgate a set of denial-of-service attacks. Closes
2890       ticket 2667.
2892   o Minor feature (build system, backport from 0.4.5.4-rc):
2893     - New "make lsp" command to generate the compile_commands.json file
2894       used by the ccls language server. The "bear" program is needed for
2895       this. Closes ticket 40227.
2897   o Minor features (compilation, backport from 0.4.5.2-rc):
2898     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
2899       later. There are a number of APIs newly deprecated in OpenSSL
2900       3.0.0 that Tor still requires. (A later version of Tor will try to
2901       stop depending on these APIs.) Closes ticket 40165.
2903   o Minor features (crypto, backport from 0.4.5.3-rc):
2904     - Fix undefined behavior on our Keccak library. The bug only
2905       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
2906       and would result in wrong digests. Fixes bug 40210; bugfix on
2907       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
2908       weasel for diagnosing this.
2910   o Minor bugfixes (compatibility, backport from 0.4.5.1-rc):
2911     - Strip '\r' characters when reading text files on Unix platforms.
2912       This should resolve an issue where a relay operator migrates a
2913       relay from Windows to Unix, but does not change the line ending of
2914       Tor's various state files to match the platform, and the CRLF line
2915       endings from Windows end up leaking into other files such as the
2916       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
2918   o Minor bugfixes (compilation, backport from 0.4.5.1-rc):
2919     - Resolve a compilation warning that could occur in
2920       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
2922   o Minor bugfixes (compilation, backport from 0.4.5.3-rc):
2923     - Fix a compilation warning about unreachable fallthrough
2924       annotations when building with "--enable-all-bugs-are-fatal" on
2925       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
2927   o Minor bugfixes (SOCKS5, backport from 0.4.5.3-rc):
2928     - Handle partial SOCKS5 messages correctly. Previously, our code
2929       would send an incorrect error message if it got a SOCKS5 request
2930       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
2932   o Minor bugfixes (testing, backport from 0.4.5.2-alpha):
2933     - Fix the `config/parse_tcp_proxy_line` test so that it works
2934       correctly on systems where the DNS provider hijacks invalid
2935       queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha.
2936     - Fix our Python reference-implementation for the v3 onion service
2937       handshake so that it works correctly with the version of hashlib
2938       provided by Python 3.9. Fixes part of bug 40179; bugfix
2939       on 0.3.1.6-rc.
2940     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
2941       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
2944 Changes in version 0.3.5.13 - 2020-02-03
2945   Tor 0.3.5.13 backports numerous bugfixes from later releases,
2946   including one that made v3 onion services more susceptible to
2947   denial-of-service attacks, and a feature that makes some kinds of
2948   DoS attacks harder to perform.
2950   o Major bugfixes (onion service v3, backport from 0.4.5.3-rc):
2951     - Stop requiring a live consensus for v3 clients and services, and
2952       allow a "reasonably live" consensus instead. This allows v3 onion
2953       services to work even if the authorities fail to generate a
2954       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
2955       on 0.3.5.1-alpha.
2957   o Major bugfixes (stats, onion services, backport from 0.4.4.5):
2958     - Fix a bug where we were undercounting the Tor network's total
2959       onion service traffic, by ignoring any traffic originating from
2960       clients. Now we count traffic from both clients and services.
2961       Fixes bug 40117; bugfix on 0.2.6.2-alpha.
2963   o Major feature (exit, backport from 0.4.5.5-rc):
2964     - Re-entry into the network is now denied at the Exit level to all
2965       relays' ORPorts and authorities' ORPorts and DirPorts. This change
2966       should help mitigate a set of denial-of-service attacks. Closes
2967       ticket 2667.
2969   o Minor feature (build system, backport from 0.4.5.4-rc):
2970     - New "make lsp" command to generate the compile_commands.json file
2971       used by the ccls language server. The "bear" program is needed for
2972       this. Closes ticket 40227.
2974   o Minor features (compilation, backport from 0.4.5.2-rc):
2975     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
2976       later. There are a number of APIs newly deprecated in OpenSSL
2977       3.0.0 that Tor still requires. (A later version of Tor will try to
2978       stop depending on these APIs.) Closes ticket 40165.
2980   o Minor features (crypto, backport from 0.4.5.3-rc):
2981     - Fix undefined behavior on our Keccak library. The bug only
2982       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
2983       and would result in wrong digests. Fixes bug 40210; bugfix on
2984       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
2985       weasel for diagnosing this.
2987   o Minor bugfixes (compatibility, backport from 0.4.5.1-rc):
2988     - Strip '\r' characters when reading text files on Unix platforms.
2989       This should resolve an issue where a relay operator migrates a
2990       relay from Windows to Unix, but does not change the line ending of
2991       Tor's various state files to match the platform, and the CRLF line
2992       endings from Windows end up leaking into other files such as the
2993       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
2995   o Minor bugfixes (compilation, backport from 0.4.5.1-rc):
2996     - Resolve a compilation warning that could occur in
2997       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
2999   o Minor bugfixes (compilation, backport from 0.4.5.3-rc):
3000     - Fix a compilation warning about unreachable fallthrough
3001       annotations when building with "--enable-all-bugs-are-fatal" on
3002       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
3004   o Minor bugfixes (SOCKS5, backport from 0.4.5.3-rc):
3005     - Handle partial SOCKS5 messages correctly. Previously, our code
3006       would send an incorrect error message if it got a SOCKS5 request
3007       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
3009   o Minor bugfixes (testing, backport from 0.4.5.2-alpha):
3010     - Fix our Python reference-implementation for the v3 onion service
3011       handshake so that it works correctly with the version of hashlib
3012       provided by Python 3.9. Fixes part of bug 40179; bugfix
3013       on 0.3.1.6-rc.
3014     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
3015       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
3018 Changes in version 0.4.5.5-rc - 2021-02-01
3019   Tor 0.4.5.5-rc is the third release candidate in its series. We're
3020   coming closer and closer to a stable release series. This release
3021   fixes an annoyance with address detection code, and somewhat mitigates
3022   an ongoing denial-of-service attack.
3024   We anticipate no more code changes between this and the stable
3025   release, though of course that could change.
3027   o Major feature (exit):
3028     - Re-entry into the network is now denied at the Exit level to all
3029       relays' ORPorts and authorities' ORPorts and DirPorts. This change
3030       should help mitgate a set of denial-of-service attacks. Closes
3031       ticket 2667.
3033   o Minor bugfixes (relay, configuration):
3034     - Don't attempt to discover our address (IPv4 or IPv6) if no ORPort
3035       for it can be found in the configuration. Fixes bug 40254; bugfix
3036       on 0.4.5.1-alpha.
3039 Changes in version 0.4.5.4-rc - 2021-01-22
3040   Tor 0.4.5.4-rc is the second release candidate in its series. It fixes
3041   several bugs present in previous releases.
3043   We expect that the stable release will be the same, or almost the
3044   same, as this release candidate, unless serious bugs are found.
3046   o Major bugfixes (authority, IPv6):
3047     - Do not consider multiple relays in the same IPv6 /64 network to be
3048       sybils. Fixes bug 40243; bugfix on 0.4.5.1-alpha.
3050   o Major bugfixes (directory cache, performance, windows):
3051     - Limit the number of items in the consensus diff cache to 64 on
3052       Windows. We hope this will mitigate an issue where Windows relay
3053       operators reported Tor using 100% CPU, while we investigate better
3054       solutions. Fixes bug 24857; bugfix on 0.3.1.1-alpha.
3056   o Minor feature (build system):
3057     - New "make lsp" command to generate the compile_commands.json file
3058       used by the ccls language server. The "bear" program is needed for
3059       this. Closes ticket 40227.
3061   o Minor features (authority, logging):
3062     - Log more information for directory authority operators during the
3063       consensus voting process, and while processing relay descriptors.
3064       Closes ticket 40245.
3065     - Reject obsolete router/extrainfo descriptors earlier and more
3066       quietly, to avoid spamming the logs. Fixes bug 40238; bugfix
3067       on 0.4.5.1-alpha.
3069   o Minor bugfixes (compilation):
3070     - Fix another warning about unreachable fallthrough annotations when
3071       building with "--enable-all-bugs-are-fatal" on some compilers.
3072       Fixes bug 40241; bugfix on 0.4.5.3-rc.
3073     - Change the linker flag ordering in our library search code so that
3074       it works for compilers that need the libraries to be listed in the
3075       right order. Fixes bug 33624; bugfix on 0.1.1.0-alpha.
3077   o Minor bugfixes (config, bridge):
3078     - Don't initiate a connection to a bridge configured to use a
3079       missing transport. This change reverts an earlier fix that would
3080       try to avoid such situations during configuration chcecking, but
3081       which doesn't work with DisableNetwork. Fixes bug 40106; bugfix
3082       on 0.4.5.1-alpha.
3084   o Minor bugfixes (onion services):
3085     - Avoid a non-fatal assertion in certain edge-cases when
3086       establishing a circuit to an onion service. Fixes bug 32666;
3087       bugfix on 0.3.0.3-alpha.
3089   o Minor bugfixes (relay):
3090     - If we were unable to build our descriptor, don't mark it as having
3091       been advertised. Also remove an harmless BUG(). Fixes bug 40231;
3092       bugfix on 0.4.5.1-alpha.
3095 Changes in version 0.4.5.3-rc - 2021-01-12
3096   Tor 0.4.5.3-rc is the first release candidate in its series. It fixes
3097   several bugs, including one that broke onion services on certain older
3098   ARM CPUs, and another that made v3 onion services less reliable.
3100   Though we anticipate that we'll be doing a bit more clean-up between
3101   now and the stable release, we expect that our remaining changes will
3102   be fairly simple. There will be at least one more release candidate
3103   before 0.4.5.x is stable.
3105   o Major bugfixes (onion service v3):
3106     - Stop requiring a live consensus for v3 clients and services, and
3107       allow a "reasonably live" consensus instead. This allows v3 onion
3108       services to work even if the authorities fail to generate a
3109       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
3110       on 0.3.5.1-alpha.
3112   o Minor features (crypto):
3113     - Fix undefined behavior on our Keccak library. The bug only
3114       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
3115       and would result in wrong digests. Fixes bug 40210; bugfix on
3116       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
3117       weasel for diagnosing this.
3119   o Minor features (documentation):
3120     - Mention the "!badexit" directive that can appear in an authority's
3121       approved-routers file, and update the description of the
3122       "!invalid" directive. Closes ticket 40188.
3124   o Minor bugfixes (compilation):
3125     - Fix a compilation warning about unreachable fallthrough
3126       annotations when building with "--enable-all-bugs-are-fatal" on
3127       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
3128     - Fix the "--enable-static-tor" switch to properly set the "-static"
3129       compile option onto the tor binary only. Fixes bug 40111; bugfix
3130       on 0.2.3.1-alpha.
3132   o Minor bugfixes (config, bridge):
3133     - Really fix the case where torrc has a missing ClientTransportPlugin
3134       but is configured with a Bridge line and UseBridges. Previously,
3135       we didn't look at the managed proxy list and thus would fail for
3136       the "exec" case. Fixes bug 40106; bugfix on 0.4.5.1-alpha.
3138   o Minor bugfixes (logging, relay):
3139     - Log our address as reported by the directory authorities, if none
3140       was configured or detected before. Fixes bug 40201; bugfix
3141       on 0.4.5.1-alpha.
3142     - When a launching bandwidth testing circuit, don't incorrectly call
3143       it a reachability test, or trigger a "CHECKING_REACHABILITY"
3144       control event. Fixes bug 40205; bugfix on 0.4.5.1-alpha.
3146   o Minor bugfixes (relay, statistics):
3147     - Report the correct connection statistics in our extrainfo
3148       documents. Previously there was a problem in the file loading
3149       function which would wrongly truncate a state file, causing the
3150       wrong information to be reported. Fixes bug 40226; bugfix
3151       on 0.4.5.1-alpha.
3153   o Minor bugfixes (SOCKS5):
3154     - Handle partial SOCKS5 messages correctly. Previously, our code
3155       would send an incorrect error message if it got a SOCKS5 request
3156       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
3159 Changes in version 0.4.5.2-alpha - 2020-11-23
3160   Tor 0.4.5.2-alpha is the second alpha release in the 0.4.5.x series.
3161   It fixes several bugs present in earlier releases, including one that
3162   made it impractical to run relays on Windows. It also adds a few small
3163   safety features to improve Tor's behavior in the presence of strange
3164   compile-time options, misbehaving proxies, and future versions
3165   of OpenSSL.
3167   o Major bugfixes (relay, windows):
3168     - Fix a bug in our implementation of condition variables on Windows.
3169       Previously, a relay on Windows would use 100% CPU after running
3170       for some time. Because of this change, Tor now require Windows
3171       Vista or later to build and run. Fixes bug 30187; bugfix on
3172       0.2.6.3-alpha. (This bug became more serious in 0.3.1.1-alpha with
3173       the introduction of consensus diffs.) Patch by Daniel Pinto.
3175   o Minor features (compilation):
3176     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
3177       later. There are a number of APIs newly deprecated in OpenSSL
3178       3.0.0 that Tor still requires. (A later version of Tor will try to
3179       stop depending on these APIs.) Closes ticket 40165.
3181   o Minor features (protocol, proxy support, defense in depth):
3182     - Respond more deliberately to misbehaving proxies that leave
3183       leftover data on their connections, so as to make Tor even less
3184       likely to allow the proxies to pass their data off as having come
3185       from a relay. Closes ticket 40017.
3187   o Minor features (safety):
3188     - Log a warning at startup if Tor is built with compile-time options
3189       that are likely to make it less stable or reliable. Closes
3190       ticket 18888.
3192   o Minor bugfixes (circuit, handshake):
3193     - In the v3 handshaking code, use connection_or_change_state() to
3194       change the state. Previously, we changed the state directly, but
3195       this did not pass the state change to the pubsub or channel
3196       objects, potentially leading to bugs. Fixes bug 32880; bugfix on
3197       0.2.3.6-alpha. Patch by Neel Chauhan.
3199   o Minor bugfixes (compilation):
3200     - Use the correct 'ranlib' program when building libtor.a.
3201       Previously we used the default ranlib, which broke some kinds of
3202       cross-compilation. Fixes bug 40172; bugfix on 0.4.5.1-alpha.
3203     - Remove a duplicate typedef in metrics_store.c. Fixes bug 40177;
3204       bugfix on 0.4.5.1-alpha.
3205     - When USDT tracing is enabled, and STAP_PROBEV() is missing, don't
3206       attempt to build. Linux supports that macro but not the BSDs.
3207       Fixes bug 40174; bugfix on 0.4.5.1-alpha.
3209   o Minor bugfixes (configuration):
3210     - Exit Tor on a misconfiguration when the Bridge line is configured
3211       to use a transport but no corresponding ClientTransportPlugin can
3212       be found. Prior to this fix, Tor would attempt to connect to the
3213       bridge directly without using the transport, making it easier for
3214       adversaries to notice the bridge. Fixes bug 25528; bugfix
3215       on 0.2.6.1-alpha.
3216     - Fix an issue where an ORPort was compared with other kinds of
3217       ports, when it should have been only checked against other
3218       ORPorts. This bug would lead to "DirPort auto" getting ignored.
3219       Fixes bug 40195; bugfix on 0.4.5.1-alpha.
3220     - Fix a bug where a second non-ORPort with a variant family (ex:
3221       SocksPort [::1]:9050) would be ignored due to a configuration
3222       parsing error. Fixes bug 40183; bugfix on 0.4.5.1-alpha.
3224   o Minor bugfixes (crash, relay, signing key):
3225     - Avoid assertion failures when we run Tor from the command line
3226       with `--key-expiration sign`, but an ORPort is not set. Fixes bug
3227       40015; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
3229   o Minor bugfixes (logging):
3230     - Remove trailing whitespace from control event log messages. Fixes
3231       bug 32178; bugfix on 0.1.1.1-alpha. Based on a patch by
3232       Amadeusz Pawlik.
3233     - Turn warning-level log message about SENDME failure into a debug-
3234       level message. (This event can happen naturally, and is no reason
3235       for concern). Fixes bug 40142; bugfix on 0.4.1.1-alpha.
3237   o Minor bugfixes (relay, address discovery):
3238     - Don't trigger an IP change when no new valid IP can be found.
3239       Fixes bug 40071; bugfix on 0.4.5.1-alpha.
3240     - When attempting to discover our IP, use a simple test circuit,
3241       rather than a descriptor fetch: the same address information is
3242       present in NETINFO cells, and is better authenticated there. Fixes
3243       bug 40071; bugfix on 0.4.5.1-alpha.
3245   o Minor bugfixes (testing):
3246     - Fix the `config/parse_tcp_proxy_line` test so that it works
3247       correctly on systems where the DNS provider hijacks invalid
3248       queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha.
3249     - Fix unit tests that used newly generated list of routers so that
3250       they check them with respect to the date when they were generated,
3251       not with respect to the current time. Fixes bug 40187; bugfix
3252       on 0.4.5.1-alpha.
3253     - Fix our Python reference-implementation for the v3 onion service
3254       handshake so that it works correctly with the version of hashlib
3255       provided by Python 3.9. Fixes part of bug 40179; bugfix
3256       on 0.3.1.6-rc.
3257     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
3258       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
3260   o Removed features (controller):
3261     - Remove the "GETINFO network-status" controller command. It has
3262       been deprecated since 0.3.1.1-alpha. Closes ticket 22473.
3265 Changes in version 0.4.4.6 - 2020-11-12
3266   Tor 0.4.4.6 is the second stable release in the 0.4.4.x series. It
3267   backports fixes from later releases, including a fix for TROVE-2020-
3268   005, a security issue that could be used, under certain cases, by an
3269   adversary to observe traffic patterns on a limited number of circuits
3270   intended for a different relay.
3272   o Major bugfixes (security, backport from 0.4.5.1-alpha):
3273     - When completing a channel, relays now check more thoroughly to
3274       make sure that it matches any pending circuits before attaching
3275       those circuits. Previously, address correctness and Ed25519
3276       identities were not checked in this case, but only when extending
3277       circuits on an existing channel. Fixes bug 40080; bugfix on
3278       0.2.7.2-alpha. Resolves TROVE-2020-005.
3280   o Minor features (directory authorities, backport from 0.4.5.1-alpha):
3281     - Authorities now list a different set of protocols as required and
3282       recommended. These lists have been chosen so that only truly
3283       recommended and/or required protocols are included, and so that
3284       clients using 0.2.9 or later will continue to work (even though
3285       they are not supported), whereas only relays running 0.3.5 or
3286       later will meet the requirements. Closes ticket 40162.
3287     - Make it possible to specify multiple ConsensusParams torrc lines.
3288       Now directory authority operators can for example put the main
3289       ConsensusParams config in one torrc file and then add to it from a
3290       different torrc file. Closes ticket 40164.
3292   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
3293     - Tor no longer allows subprotocol versions larger than 63.
3294       Previously version numbers up to UINT32_MAX were allowed, which
3295       significantly complicated our code. Implements proposal 318;
3296       closes ticket 40133.
3298   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
3299     - Fix a rendezvous cache unit test that was triggering an underflow
3300       on the global rend cache allocation. Fixes bug 40125; bugfix
3301       on 0.2.8.1-alpha.
3302     - Fix another rendezvous cache unit test that was triggering an
3303       underflow on the global rend cache allocation. Fixes bug 40126;
3304       bugfix on 0.2.8.1-alpha.
3306   o Minor bugfixes (compilation, backport from 0.4.5.1-alpha):
3307     - Fix compiler warnings that would occur when building with
3308       "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the
3309       same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha.
3310     - Resolve a compilation warning that could occur in
3311       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
3313   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
3314     - Remove a debug logging statement that uselessly spammed the logs.
3315       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
3317   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
3318     - Avoid a fatal assert() when failing to create a listener
3319       connection for an address that was in use. Fixes bug 40073; bugfix
3320       on 0.3.5.1-alpha.
3322   o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha):
3323     - For HSFETCH commands on v2 onion services addresses, check the
3324       length of bytes decoded, not the base32 length. Fixes bug 34400;
3325       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
3328 Changes in version 0.4.3.7 - 2020-11-12
3329   Tor 0.4.3.7 backports several bugfixes from later releases. It
3330   includes a fix for TROVE-2020-005, a security issue that could be
3331   used, under certain cases, by an adversary to observe traffic patterns
3332   on a limited number of circuits intended for a different relay.
3334   Please be aware that support for the 0.4.3.x series will end on 15
3335   February 2021. Please upgrade to 0.4.4.x or 0.4.5.x before then, or
3336   downgrade to 0.3.5.x, which will be supported until at least 1
3337   February 2022.
3339   o Major features (fallback directory list, backport form 0.4.4.3-alpha):
3340     - Replace the 148 fallback directories originally included in Tor
3341       0.4.1.4-rc (of which around 105 are still functional) with a list
3342       of 144 fallbacks generated in July 2020. Closes ticket 40061.
3344   o Major bugfixes (security, backport from 0.4.5.1-alpha):
3345     - When completing a channel, relays now check more thoroughly to
3346       make sure that it matches any pending circuits before attaching
3347       those circuits. Previously, address correctness and Ed25519
3348       identities were not checked in this case, but only when extending
3349       circuits on an existing channel. Fixes bug 40080; bugfix on
3350       0.2.7.2-alpha. Resolves TROVE-2020-005.
3352   o Major bugfixes (NSS, backport from 0.4.4.3-alpha):
3353     - When running with NSS enabled, make sure that NSS knows to expect
3354       nonblocking sockets. Previously, we set our TCP sockets as
3355       nonblocking, but did not tell NSS, which in turn could lead to
3356       unexpected blocking behavior. Fixes bug 40035; bugfix
3357       on 0.3.5.1-alpha.
3359   o Minor features (security, backport from 0.4.4.4-rc):
3360     - Channels using obsolete versions of the Tor link protocol are no
3361       longer allowed to circumvent address-canonicity checks. (This is
3362       only a minor issue, since such channels have no way to set ed25519
3363       keys, and therefore should always be rejected for circuits that
3364       specify ed25519 identities.) Closes ticket 40081.
3366   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
3367     - Tor no longer allows subprotocol versions larger than 63.
3368       Previously version numbers up to UINT32_MAX were allowed, which
3369       significantly complicated our code. Implements proposal 318;
3370       closes ticket 40133.
3372   o Minor features (tests, backport from 0.4.4.5):
3373     - Our "make check" target now runs the unit tests in 8 parallel
3374       chunks. Doing this speeds up hardened CI builds by more than a
3375       factor of two. Closes ticket 40098.
3377   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
3378     - Fix a rendezvous cache unit test that was triggering an underflow
3379       on the global rend cache allocation. Fixes bug 40125; bugfix
3380       on 0.2.8.1-alpha.
3381     - Fix another rendezvous cache unit test that was triggering an
3382       underflow on the global rend cache allocation. Fixes bug 40126;
3383       bugfix on 0.2.8.1-alpha.
3385   o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc):
3386     - Fix a correctness bug that could cause an assertion failure if we
3387       ever tried using the buf_move_all() function with an empty input
3388       buffer. As far as we know, no released versions of Tor do this.
3389       Fixes bug 40076; bugfix on 0.3.3.1-alpha.
3391   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
3392     - Remove a debug logging statement that uselessly spammed the logs.
3393       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
3395   o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc):
3396     - On a bridge, treat all connections from an ExtORPort as remote by
3397       default for the purposes of rate-limiting. Previously, bridges
3398       would treat the connection as local unless they explicitly
3399       received a "USERADDR" command. ExtORPort connections still count
3400       as local if there is a USERADDR command with an explicit local
3401       address. Fixes bug 33747; bugfix on 0.2.5.1-alpha.
3403   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
3404     - Avoid a fatal assert() when failing to create a listener
3405       connection for an address that was in use. Fixes bug 40073; bugfix
3406       on 0.3.5.1-alpha.
3408   o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha):
3409     - Adjust the rules for when to warn about having too many
3410       connections to other relays. Previously we'd tolerate up to 1.5
3411       connections per relay on average. Now we tolerate more connections
3412       for directory authorities, and raise the number of total
3413       connections we need to see before we warn. Fixes bug 33880; bugfix
3414       on 0.3.1.1-alpha.
3416   o Minor bugfixes (tests, 0.4.4.5):
3417     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
3418       on its own. Previously, it would exit with an error. Fixes bug
3419       40099; bugfix on 0.2.8.1-alpha.
3421   o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha):
3422     - For HSFETCH commands on v2 onion services addresses, check the
3423       length of bytes decoded, not the base32 length. Fixes bug 34400;
3424       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
3426   o Minor bugfixes (windows, backport from 0.4.4.4-rc):
3427     - Fix a bug that prevented Tor from starting if its log file grew
3428       above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
3430   o Deprecated features (onion service v2, backport form 0.4.4.2-alpha):
3431     - Add a deprecation warning for version 2 onion services. Closes
3432       ticket 40003.
3434   o Removed features (backport from 0.4.4.3-alpha):
3435     - Our "check-local" test target no longer tries to use the
3436       Coccinelle semantic patching tool parse all the C files. While it
3437       is a good idea to try to make sure Coccinelle works on our C
3438       before we run a Coccinelle patch, doing so on every test run has
3439       proven to be disruptive. You can still run this tool manually with
3440       "make check-cocci". Closes ticket 40030. ticket 40030.
3443 Changes in version 0.3.5.12 - 2020-11-12
3444   Tor 0.4.3.7 backports several bugfixes from later releases. It
3445   includes a fix for TROVE-2020-005, a security issue that could be
3446   used, under certain cases, by an adversary to observe traffic patterns
3447   on a limited number of circuits intended for a different relay.
3449   o Major features (fallback directory list, backport form 0.4.4.3-alpha):
3450     - Replace the 148 fallback directories originally included in Tor
3451       0.4.1.4-rc (of which around 105 are still functional) with a list
3452       of 144 fallbacks generated in July 2020. Closes ticket 40061.
3454   o Major bugfixes (security, backport from 0.4.5.1-alpha):
3455     - When completing a channel, relays now check more thoroughly to
3456       make sure that it matches any pending circuits before attaching
3457       those circuits. Previously, address correctness and Ed25519
3458       identities were not checked in this case, but only when extending
3459       circuits on an existing channel. Fixes bug 40080; bugfix on
3460       0.2.7.2-alpha. Resolves TROVE-2020-005.
3462   o Major bugfixes (NSS, backport from 0.4.4.3-alpha):
3463     - When running with NSS enabled, make sure that NSS knows to expect
3464       nonblocking sockets. Previously, we set our TCP sockets as
3465       nonblocking, but did not tell NSS, which in turn could lead to
3466       unexpected blocking behavior. Fixes bug 40035; bugfix
3467       on 0.3.5.1-alpha.
3469   o Minor features (security, backport from 0.4.4.4-rc):
3470     - Channels using obsolete versions of the Tor link protocol are no
3471       longer allowed to circumvent address-canonicity checks. (This is
3472       only a minor issue, since such channels have no way to set ed25519
3473       keys, and therefore should always be rejected for circuits that
3474       specify ed25519 identities.) Closes ticket 40081.
3476   o Minor features (debugging, directory system):
3477     - Don't crash when we find a non-guard with a guard-fraction value
3478       set. Instead, log a bug warning, in an attempt to figure out how
3479       this happened. Diagnostic for ticket 32868.
3481   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
3482     - Tor no longer allows subprotocol versions larger than 63.
3483       Previously version numbers up to UINT32_MAX were allowed, which
3484       significantly complicated our code. Implements proposal 318;
3485       closes ticket 40133.
3487   o Minor features (tests, backport from 0.4.4.5):
3488     - Our "make check" target now runs the unit tests in 8 parallel
3489       chunks. Doing this speeds up hardened CI builds by more than a
3490       factor of two. Closes ticket 40098.
3492   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
3493     - Fix a rendezvous cache unit test that was triggering an underflow
3494       on the global rend cache allocation. Fixes bug 40125; bugfix
3495       on 0.2.8.1-alpha.
3496     - Fix another rendezvous cache unit test that was triggering an
3497       underflow on the global rend cache allocation. Fixes bug 40126;
3498       bugfix on 0.2.8.1-alpha.
3500   o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc):
3501     - Fix a correctness bug that could cause an assertion failure if we
3502       ever tried using the buf_move_all() function with an empty input
3503       buffer. As far as we know, no released versions of Tor do this.
3504       Fixes bug 40076; bugfix on 0.3.3.1-alpha.
3506   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
3507     - Remove a debug logging statement that uselessly spammed the logs.
3508       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
3510   o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc):
3511     - On a bridge, treat all connections from an ExtORPort as remote by
3512       default for the purposes of rate-limiting. Previously, bridges
3513       would treat the connection as local unless they explicitly
3514       received a "USERADDR" command. ExtORPort connections still count
3515       as local if there is a USERADDR command with an explicit local
3516       address. Fixes bug 33747; bugfix on 0.2.5.1-alpha.
3518   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
3519     - Avoid a fatal assert() when failing to create a listener
3520       connection for an address that was in use. Fixes bug 40073; bugfix
3521       on 0.3.5.1-alpha.
3523   o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha):
3524     - Adjust the rules for when to warn about having too many
3525       connections to other relays. Previously we'd tolerate up to 1.5
3526       connections per relay on average. Now we tolerate more connections
3527       for directory authorities, and raise the number of total
3528       connections we need to see before we warn. Fixes bug 33880; bugfix
3529       on 0.3.1.1-alpha.
3531   o Minor bugfixes (relays, backport from 0.4.4.1-alpha):
3532     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
3533       descriptors, when the IPv6 port was configured as "auto". Fixes
3534       bug 32588; bugfix on 0.2.3.9-alpha.
3536   o Minor bugfixes (tests, 0.4.4.5):
3537     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
3538       on its own. Previously, it would exit with an error. Fixes bug
3539       40099; bugfix on 0.2.8.1-alpha.
3541   o Minor bugfixes (windows, backport from 0.4.4.4-rc):
3542     - Fix a bug that prevented Tor from starting if its log file grew
3543       above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
3545   o Deprecated features (onion service v2, backport form 0.4.4.2-alpha):
3546     - Add a deprecation warning for version 2 onion services. Closes
3547       ticket 40003.
3550 Changes in version 0.4.5.1-alpha - 2020-11-01
3551   Tor 0.4.5.1-alpha is the first alpha release in the 0.4.5.x series. It
3552   improves support for IPv6, address discovery and self-testing, code
3553   metrics and tracing.
3555   This release also fixes TROVE-2020-005, a security issue that could be
3556   used, under certain cases, by an adversary to observe traffic patterns
3557   on a limited number of circuits intended for a different relay. To
3558   mount this attack, the adversary would need to actively extend
3559   circuits to an incorrect address, as well as compromise a relay's
3560   legacy RSA-1024 key. We'll be backporting this fix to other release
3561   series soon, after it has had some testing.
3563   Here are the changes since 0.4.4.5.
3565   o Major features (build):
3566     - When building Tor, first link all object files into a single
3567       static library. This may help with embedding Tor in other
3568       programs. Note that most Tor functions do not constitute a part of
3569       a stable or supported API: only those functions in tor_api.h
3570       should be used if embedding Tor. Closes ticket 40127.
3572   o Major features (metrics):
3573     - Introduce a new MetricsPort which exposes, through an HTTP
3574       interface, a series of metrics that tor collects at runtime. At
3575       the moment, the only supported output format is Prometheus data
3576       model. Closes ticket 40063. See the manual page for more
3577       information and security considerations.
3578   o Major features (relay, IPv6):
3579     - The torrc option Address now supports IPv6. This unifies our
3580       address discovery interface to support IPv4, IPv6, and hostnames.
3581       Closes ticket 33233.
3582     - Launch IPv4 and IPv6 ORPort self-test circuits on relays and
3583       bridges. Closes ticket 33222.
3584     - Relays now automatically bind on IPv6 for their ORPort, unless
3585       specified otherwise with the IPv4Only flag. Closes ticket 33246.
3586     - When a relay with IPv6 support is told to open a connection to
3587       another relay, and the extend cell lists both IPv4 and IPv6
3588       addresses, the first relay now picks randomly which address to
3589       use. Closes ticket 33220.
3590     - Relays now track their IPv6 ORPort reachability separately from
3591       the reachability of their IPv4 ORPort. They will not publish a
3592       descriptor unless _both_ ports appear to be externally reachable.
3593       Closes ticket 34067.
3595   o Major features (tracing):
3596     - Add event-tracing library support for USDT and LTTng-UST, and a
3597       few tracepoints in the circuit subsystem. More will come
3598       incrementally. This feature is compiled out by default: it needs
3599       to be enabled at configure time. See documentation in
3600       doc/HACKING/Tracing.md. Closes ticket 32910.
3602   o Major bugfixes (security):
3603     - When completing a channel, relays now check more thoroughly to
3604       make sure that it matches any pending circuits before attaching
3605       those circuits. Previously, address correctness and Ed25519
3606       identities were not checked in this case, but only when extending
3607       circuits on an existing channel. Fixes bug 40080; bugfix on
3608       0.2.7.2-alpha. Resolves TROVE-2020-005.
3610   o Major bugfixes (TLS, buffer):
3611     - When attempting to read N bytes on a TLS connection, really try to
3612       read all N bytes. Previously, Tor would stop reading after the
3613       first TLS record, which can be smaller than the N bytes requested,
3614       and not check for more data until the next mainloop event. Fixes
3615       bug 40006; bugfix on 0.1.0.5-rc.
3617   o Minor features (address discovery):
3618     - If no Address statements are found, relays now prioritize guessing
3619       their address by looking at the local interface instead of the
3620       local hostname. If the interface address can't be found, the local
3621       hostname is used. Closes ticket 33238.
3623   o Minor features (admin tools):
3624     - Add a new --format argument to -key-expiration option to allow
3625       specifying the time format of the expiration date. Adds Unix
3626       timestamp format support. Patch by Daniel Pinto. Closes
3627       ticket 30045.
3629   o Minor features (bootstrap reporting):
3630     - When reporting bootstrapping status on a relay, do not consider
3631       connections that have never been the target of an origin circuit.
3632       Previously, all connection failures were treated as potential
3633       bootstrapping failures, including connections that had been opened
3634       because of client requests. Closes ticket 25061.
3636   o Minor features (build):
3637     - When running the configure script, try to detect version
3638       mismatches between the OpenSSL headers and libraries, and suggest
3639       that the user should try "--with-openssl-dir". Closes 40138.
3640     - If the configure script has given any warnings, remind the user
3641       about them at the end of the script. Related to 40138.
3643   o Minor features (configuration):
3644     - Allow using wildcards (* and ?) with the %include option on
3645       configuration files. Closes ticket 25140. Patch by Daniel Pinto.
3646     - Allow the configuration options EntryNodes, ExcludeNodes,
3647       ExcludeExitNodes, ExitNodes, MiddleNodes, HSLayer2Nodes and
3648       HSLayer3Nodes to be specified multiple times. Closes ticket 28361.
3649       Patch by Daniel Pinto.
3651   o Minor features (control port):
3652     - Add a DROPTIMEOUTS command to drop circuit build timeout history
3653       and reset the current timeout. Closes ticket 40002.
3654     - When a stream enters the AP_CONN_STATE_CONTROLLER_WAIT status,
3655       send a control port event. Closes ticket 32190. Patch by
3656       Neel Chauhan.
3657     - Introduce GETINFO "stats/ntor/{assigned/requested}" and
3658       "stats/tap/{assigned/requested}" to get the NTor and TAP circuit
3659       onion handshake counts respectively. Closes ticket 28279. Patch by
3660       Neel Chauhan.
3662   o Minor features (control port, IPv6):
3663     - Tor relays now try to report to the controller when they are
3664       launching an IPv6 self-test. Closes ticket 34068.
3665     - Introduce "GETINFO address/v4" and "GETINFO address/v6" in the
3666       control port to fetch the Tor host's respective IPv4 or IPv6
3667       address. We keep "GETINFO address" for backwards-compatibility.
3668       Closes ticket 40039. Patch by Neel Chauhan.
3670   o Minor features (directory authorities):
3671     - Authorities now list a different set of protocols as required and
3672       recommended. These lists have been chosen so that only truly
3673       recommended and/or required protocols are included, and so that
3674       clients using 0.2.9 or later will continue to work (even though
3675       they are not supported), whereas only relays running 0.3.5 or
3676       later will meet the requirements. Closes ticket 40162.
3677     - Add a new consensus method 30 that removes the unnecessary "="
3678       padding from ntor-onion-key. Closes ticket 7869. Patch by
3679       Daniel Pinto.
3680     - Directory authorities now reject descriptors from relays running
3681       Tor versions from the obsolete 0.4.1 series. Resolves ticket
3682       34357. Patch by Neel Chauhan.
3683     - Make it possible to specify multiple ConsensusParams torrc lines.
3684       Now directory authority operators can for example put the main
3685       ConsensusParams config in one torrc file and then add to it from a
3686       different torrc file. Closes ticket 40164.
3687     - The AssumeReachable option no longer stops directory authorities
3688       from checking whether other relays are running. A new
3689       AuthDirTestReachability option can be used to disable these
3690       checks. Closes ticket 34445.
3691     - When looking for possible Sybil attacks, also consider IPv6
3692       addresses. Two routers are considered to have "the same" address
3693       by this metric if they are in the same /64 network. Patch from
3694       Maurice Pibouin. Closes ticket 7193.
3696   o Minor features (directory authorities, IPv6):
3697     - Make authorities add their IPv6 ORPort (if any) to the trusted
3698       servers list. Authorities previously added only their IPv4
3699       addresses. Closes ticket 32822.
3701   o Minor features (ed25519, relay):
3702     - Save a relay's base64-encoded ed25519 identity key to the data
3703       directory in a file named fingerprint-ed25519. Closes ticket
3704       30642. Patch by Neel Chauhan.
3706   o Minor features (heartbeat):
3707     - Include the total number of inbound and outbound IPv4 and IPv6
3708       connections in the heartbeat message. Closes ticket 29113.
3710   o Minor features (IPv6, ExcludeNodes):
3711     - Handle IPv6 addresses in ExcludeNodes; previously they were
3712       ignored. Closes ticket 34065. Patch by Neel Chauhan.
3714   o Minor features (logging):
3715     - Add the running glibc version to the log, and the compiled glibc
3716       version to the library list returned when using --library-versions.
3717       Patch from Daniel Pinto. Closes ticket 40047.
3718     - Consider an HTTP 301 response to be an error (like a 404) when
3719       processing a directory response. Closes ticket 40053.
3720     - Log directory fetch statistics as a single line. Closes
3721       ticket 40159.
3722     - Provide more complete descriptions of our connections when logging
3723       about them. Closes ticket 40041.
3724     - When describing a relay in the logs, we now include its ed25519
3725       identity. Closes ticket 22668.
3727   o Minor features (onion services):
3728     - Only overwrite an onion service's existing hostname file if its
3729       contents are wrong. This enables read-only onion-service
3730       directories. Resolves ticket 40062. Patch by Neel Chauhan.
3732   o Minor features (pluggable transports):
3733     - Add an OutboundBindAddressPT option to allow users to specify
3734       which IPv4 and IPv6 address pluggable transports should use for
3735       outgoing IP packets. Tor does not have a way to enforce that the
3736       pluggable transport honors this option, so each pluggable transport
3737       needs to implement support on its own. Closes ticket 5304.
3739   o Minor features (relay address tracking):
3740     - We now store relay addresses for OR connections in a more logical
3741       way. Previously we would sometimes overwrite the actual address of
3742       a connection with a "canonical address", and then store the "real
3743       address" elsewhere to remember it. We now track the "canonical
3744       address" elsewhere for the cases where we need it, and leave the
3745       connection's address alone. Closes ticket 33898.
3747   o Minor features (relay):
3748     - If a relay is unable to discover its address, attempt to learn it
3749       from the NETINFO cell. Closes ticket 40022.
3750     - Log immediately when launching a relay self-check. Previously we
3751       would try to log before launching checks, or approximately when we
3752       intended to launch checks, but this tended to be error-prone.
3753       Closes ticket 34137.
3755   o Minor features (relay, address discovery):
3756     - If Address option is not found in torrc, attempt to learn our
3757       address with the configured ORPort address if any. Closes
3758       ticket 33236.
3760   o Minor features (relay, IPv6):
3761     - Add an AssumeReachableIPv6 option to disable self-checking IPv6
3762       reachability. Closes part of ticket 33224.
3763     - Add new "assume-reachable" and "assume-reachable-ipv6" consensus
3764       parameters to be used in an emergency to tell relays that they
3765       should publish even if they cannot complete their ORPort self-
3766       checks. Closes ticket 34064 and part of 33224.
3767     - Allow relays to send IPv6-only extend cells. Closes ticket 33222.
3768     - Declare support for the Relay=3 subprotocol version. Closes
3769       ticket 33226.
3770     - When launching IPv6 ORPort self-test circuits, make sure that the
3771       second-last hop can initiate an IPv6 extend. Closes ticket 33222.
3773   o Minor features (specification update):
3774     - Several fields in microdescriptors, router descriptors, and
3775       consensus documents that were formerly optional are now required.
3776       Implements proposal 315; closes ticket 40132.
3778   o Minor features (state management):
3779     - When loading the state file, remove entries from the statefile
3780       that have been obsolete for a long time. Ordinarily Tor preserves
3781       unrecognized entries in order to keep forward-compatibility, but
3782       these entries have not actually been used in any release since
3783       before 0.3.5.x. Closes ticket 40137.
3785   o Minor features (statistics, ipv6):
3786     - Relays now publish IPv6-specific counts of single-direction versus
3787       bidirectional relay connections. Closes ticket 33264.
3788     - Relays now publish their IPv6 read and write statistics over time,
3789       if statistics are enabled. Closes ticket 33263.
3791   o Minor features (subprotocol versions):
3792     - Tor no longer allows subprotocol versions larger than 63.
3793       Previously version numbers up to UINT32_MAX were allowed, which
3794       significantly complicated our code. Implements proposal 318;
3795       closes ticket 40133.
3796     - Use the new limitations on subprotocol versions due to proposal
3797       318 to simplify our implementation. Part of ticket 40133.
3799   o Minor features (testing configuration):
3800     - The TestingTorNetwork option no longer implicitly sets
3801       AssumeReachable to 1. This change allows us to test relays' self-
3802       testing mechanisms, and to test authorities' relay-testing
3803       functionality. Closes ticket 34446.
3805   o Minor features (testing):
3806     - Added unit tests for channel_matches_target_addr_for_extend().
3807       Closes Ticket 33919. Patch by MrSquanchee.
3809   o Minor features (tests, v2 onion services):
3810     - Fix a rendezvous cache unit test that was triggering an underflow
3811       on the global rend cache allocation. Fixes bug 40125; bugfix
3812       on 0.2.8.1-alpha.
3813     - Fix another rendezvous cache unit test that was triggering an
3814       underflow on the global rend cache allocation. Fixes bug 40126;
3815       bugfix on 0.2.8.1-alpha.
3817   o Minor bugfixes (circuit padding):
3818     - When circpad_send_padding_cell_for_callback is called,
3819       `is_padding_timer_scheduled` flag was not reset. Now it is set to
3820       0 at the top of that function. Fixes bug 32671; bugfix
3821       on 0.4.0.1-alpha.
3822     - Add a per-circuit padding machine instance counter, so we can
3823       differentiate between shutdown requests for old machines on a
3824       circuit. Fixes bug 30992; bugfix on 0.4.1.1-alpha.
3825     - Add the ability to keep circuit padding machines if they match a
3826       set of circuit states or purposes. This allows us to have machines
3827       that start up under some conditions but don't shut down under
3828       others. We now use this mask to avoid starting up introduction
3829       circuit padding again after the machines have already completed.
3830       Fixes bug 32040; bugfix on 0.4.1.1-alpha.
3832   o Minor bugfixes (compatibility):
3833     - Strip '\r' characters when reading text files on Unix platforms.
3834       This should resolve an issue where a relay operator migrates a
3835       relay from Windows to Unix, but does not change the line ending of
3836       Tor's various state files to match the platform, and the CRLF line
3837       endings from Windows end up leaking into other files such as the
3838       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
3840   o Minor bugfixes (compilation):
3841     - Fix compiler warnings that would occur when building with
3842       "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the
3843       same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha.
3844     - Resolve a compilation warning that could occur in
3845       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
3847   o Minor bugfixes (configuration):
3848     - Fix bug where %including a pattern ending with */ would include
3849       files and folders (instead of folders only) in versions of glibc <
3850       2.19. Fixes bug 40141; bugfix on 0.4.5.0-alpha-dev. Patch by
3851       Daniel Pinto.
3853   o Minor bugfixes (control port):
3854     - Make sure we send the SOCKS request address in relay begin cells
3855       when a stream is attached with the purpose
3856       CIRCUIT_PURPOSE_CONTROLLER. Fixes bug 33124; bugfix on 0.0.5.
3857       Patch by Neel Chauhan.
3859   o Minor bugfixes (logging):
3860     - Remove a debug logging statement that uselessly spammed the logs.
3861       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
3862     - When logging a rate-limited message about how many messages have
3863       been suppressed in the last N seconds, give an accurate value for
3864       N, rounded up to the nearest minute. Previously we would report
3865       the size of the rate-limiting interval, regardless of when the
3866       messages started to occur. Fixes bug 19431; bugfix
3867       on 0.2.2.16-alpha.
3869   o Minor bugfixes (relay configuration, crash):
3870     - Avoid a fatal assert() when failing to create a listener
3871       connection for an address that was in use. Fixes bug 40073; bugfix
3872       on 0.3.5.1-alpha.
3874   o Minor bugfixes (rust, protocol versions):
3875     - Declare support for the onion service introduction point denial of
3876       service extensions when building with Rust. Fixes bug 34248;
3877       bugfix on 0.4.2.1-alpha.
3878     - Make Rust protocol version support checks consistent with the
3879       undocumented error behavior of the corresponding C code. Fixes bug
3880       34251; bugfix on 0.3.3.5-rc.
3882   o Minor bugfixes (self-testing):
3883     - When receiving an incoming circuit, only accept it as evidence
3884       that we are reachable if the declared address of its channel is
3885       the same address we think that we have. Otherwise, it could be
3886       evidence that we're reachable on some other address. Fixes bug
3887       20165; bugfix on 0.1.0.1-rc.
3889   o Minor bugfixes (spec conformance):
3890     - Use the correct key type when generating signing->link
3891       certificates. Fixes bug 40124; bugfix on 0.2.7.2-alpha.
3893   o Minor bugfixes (subprotocol versions):
3894     - Consistently reject extra commas, instead of only rejecting
3895       leading commas. Fixes bug 27194; bugfix on 0.2.9.4-alpha.
3896     - In summarize_protover_flags(), treat empty strings the same as
3897       NULL. This prevents protocols_known from being set. Previously, we
3898       treated empty strings as normal strings, which led to
3899       protocols_known being set. Fixes bug 34232; bugfix on
3900       0.3.3.2-alpha. Patch by Neel Chauhan.
3902   o Minor bugfixes (v2 onion services):
3903     - For HSFETCH commands on v2 onion services addresses, check the
3904       length of bytes decoded, not the base32 length. Fixes bug 34400;
3905       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
3907   o Code simplification and refactoring:
3908     - Add and use a set of functions to perform down-casts on constant
3909       connection and channel pointers. Closes ticket 40046.
3910     - Refactor our code that logs descriptions of connections, channels,
3911       and the peers on them, to use a single call path. This change
3912       enables us to refactor the data types that they use, and eliminates
3913       many confusing usages of those types. Closes ticket 40041.
3914     - Refactor some common node selection code into a single function.
3915       Closes ticket 34200.
3916     - Remove the now-redundant 'outbuf_flushlen' field from our
3917       connection type. It was previously used for an older version of
3918       our rate-limiting logic. Closes ticket 33097.
3919     - Rename "fascist_firewall_*" identifiers to "reachable_addr_*"
3920       instead, for consistency with other code. Closes ticket 18106.
3921     - Rename functions about "advertised" ports which are not in fact
3922       guaranteed to return the ports that have been advertised. Closes
3923       ticket 40055.
3924     - Split implementation of several command line options from
3925       options_init_from_torrc into smaller isolated functions. Patch by
3926       Daniel Pinto. Closes ticket 40102.
3927     - When an extend cell is missing an IPv4 or IPv6 address, fill in
3928       the address from the extend info. This is similar to what was done
3929       in ticket 33633 for ed25519 keys. Closes ticket 33816. Patch by
3930       Neel Chauhan.
3932   o Deprecated features:
3933     - The "non-builtin" argument to the "--dump-config" command is now
3934       deprecated. When it works, it behaves the same as "short", which
3935       you should use instead. Closes ticket 33398.
3937   o Documentation:
3938     - Replace URLs from our old bugtracker so that they refer to the new
3939       bugtracker and wiki. Closes ticket 40101.
3941   o Removed features:
3942     - We no longer ship or build a "tor.service" file for use with
3943       systemd. No distribution included this script unmodified, and we
3944       don't have the expertise ourselves to maintain this in a way that
3945       all the various systemd-based distributions can use. Closes
3946       ticket 30797.
3947     - We no longer ship support for the Android logging API. Modern
3948       versions of Android can use the syslog API instead. Closes
3949       ticket 32181.
3950     - The "optimistic data" feature is now always on; there is no longer
3951       an option to disable it from the torrc file or from the consensus
3952       directory. Closes part of 40139.
3953     - The "usecreatefast" network parameter is now removed; there is no
3954       longer an option for authorities to turn it off. Closes part
3955       of 40139.
3957   o Testing:
3958     - Add unit tests for bandwidth statistics manipulation functions.
3959       Closes ticket 33812. Patch by MrSquanchee.
3961   o Code simplification and refactoring (autoconf):
3962     - Remove autoconf checks for unused funcs and headers. Closes ticket
3963       31699; Patch by @bduszel
3965   o Code simplification and refactoring (maintainer scripts):
3966     - Disable by default the pre-commit hook. Use the environment
3967       variable TOR_EXTRA_PRE_COMMIT_CHECKS in order to run it.
3968       Furthermore, stop running practracker in the pre-commit hook and
3969       make check-local. Closes ticket 40019.
3971   o Code simplification and refactoring (relay address):
3972     - Most of IPv4 representation was using "uint32_t". It has now been
3973       moved to use the internal "tor_addr_t" interface instead. This is
3974       so we can properly integrate IPv6 along IPv4 with common
3975       interfaces. Closes ticket 40043.
3977   o Documentation (manual page):
3978     - Move them from doc/ to doc/man/. Closes ticket 40044.
3979     - Describe the status of the "Sandbox" option more accurately. It is
3980       no longer "experimental", but it _is_ dependent on kernel and libc
3981       versions. Closes ticket 23378.
3983   o Documentation (tracing):
3984     - Document in depth the circuit subsystem trace events in the new
3985       doc/tracing/EventsCircuit.md. Closes ticket 40036.
3988 Changes in version 0.4.4.5 - 2020-09-15
3989   Tor 0.4.4.5 is the first stable release in the 0.4.4.x series. This
3990   series improves our guard selection algorithms, adds v3 onion balance
3991   support, improves the amount of code that can be disabled when running
3992   without relay support, and includes numerous small bugfixes and
3993   enhancements. It also lays the ground for some IPv6 features that
3994   we'll be developing more in the next (0.4.5) series.
3996   Per our support policy, we support each stable release series for nine
3997   months after its first stable release, or three months after the first
3998   stable release of the next series: whichever is longer. This means
3999   that 0.4.4.x will be supported until around June 2021--or later, if
4000   0.4.5.x is later than anticipated.
4002   Note also that support for 0.4.2.x has just ended; support for 0.4.3
4003   will continue until Feb 15, 2021. We still plan to continue supporting
4004   0.3.5.x, our long-term stable series, until Feb 2022.
4006   Below are the changes since 0.4.4.4-rc. For a complete list of changes
4007   since 0.4.3.6, see the ReleaseNotes file.
4009   o Major bugfixes (onion services, DoS):
4010     - Correct handling of parameters for the onion service DoS defense.
4011       Previously, the consensus parameters for the onion service DoS
4012       defenses were overwriting the parameters set by the service
4013       operator using HiddenServiceEnableIntroDoSDefense. Fixes bug
4014       40109; bugfix on 0.4.2.1-alpha.
4016   o Major bugfixes (stats, onion services):
4017     - Fix a bug where we were undercounting the Tor network's total
4018       onion service traffic, by ignoring any traffic originating from
4019       clients. Now we count traffic from both clients and services.
4020       Fixes bug 40117; bugfix on 0.2.6.2-alpha.
4022   o Minor features (control port):
4023     - If a ClientName was specified in ONION_CLIENT_AUTH_ADD for an
4024       onion service, display it when we use ONION_CLIENT_AUTH_VIEW.
4025       Closes ticket 40089. Patch by Neel Chauhan.
4027   o Minor features (denial-of-service memory limiter):
4028     - Allow the user to configure even lower values for the
4029       MaxMemInQueues parameter. Relays now enforce a minimum of 64 MB,
4030       when previously the minimum was 256 MB. On clients, there is no
4031       minimum. Relays and clients will both warn if the value is set so
4032       low that Tor is likely to stop working. Closes ticket 24308.
4034   o Minor features (tests):
4035     - Our "make check" target now runs the unit tests in 8 parallel
4036       chunks. Doing this speeds up hardened CI builds by more than a
4037       factor of two. Closes ticket 40098.
4039   o Minor bugfixes (guard selection algorithm):
4040     - Avoid needless guard-related warning when upgrading from 0.4.3 to
4041       0.4.4. Fixes bug 40105; bugfix on 0.4.4.1-alpha.
4043   o Minor bugfixes (tests):
4044     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
4045       on its own. Previously, it would exit with an error. Fixes bug
4046       40099; bugfix on 0.2.8.1-alpha.
4049 Changes in version 0.4.4.3-alpha - 2020-07-27
4050   Tor 0.4.4.3-alpha fixes several annoyances in previous versions,
4051   including one affecting NSS users, and several affecting the Linux
4052   seccomp2 sandbox.
4054   o Major features (fallback directory list):
4055     - Replace the 148 fallback directories originally included in Tor
4056       0.4.1.4-rc (of which around 105 are still functional) with a list
4057       of 144 fallbacks generated in July 2020. Closes ticket 40061.
4059   o Major bugfixes (NSS):
4060     - When running with NSS enabled, make sure that NSS knows to expect
4061       nonblocking sockets. Previously, we set our TCP sockets as
4062       nonblocking, but did not tell NSS, which in turn could lead to
4063       unexpected blocking behavior. Fixes bug 40035; bugfix
4064       on 0.3.5.1-alpha.
4066   o Minor bugfixes (linux seccomp2 sandbox):
4067     - Fix a regression on sandboxing rules for the openat() syscall. The
4068       fix for bug 25440 fixed the problem on systems with glibc >= 2.27
4069       but broke with versions of glibc. We now choose a rule based on
4070       the glibc version. Patch from Daniel Pinto. Fixes bug 27315;
4071       bugfix on 0.3.5.11.
4072     - Makes the seccomp sandbox allow the correct syscall for opendir
4073       according to the running glibc version. This fixes crashes when
4074       reloading torrc with sandbox enabled when running on glibc 2.15 to
4075       2.21 and 2.26. Patch from Daniel Pinto. Fixes bug 40020; bugfix
4076       on 0.3.5.11.
4078   o Minor bugfixes (relay, usability):
4079     - Adjust the rules for when to warn about having too many
4080       connections to other relays. Previously we'd tolerate up to 1.5
4081       connections per relay on average. Now we tolerate more connections
4082       for directory authorities, and raise the number of total
4083       connections we need to see before we warn. Fixes bug 33880; bugfix
4084       on 0.3.1.1-alpha.
4086   o Documentation:
4087     - Replace most http:// URLs in our code and documentation with
4088       https:// URLs. (We have left unchanged the code in src/ext/, and
4089       the text in LICENSE.) Closes ticket 31812. Patch from Jeremy Rand.
4091   o Removed features:
4092     - Our "check-local" test target no longer tries to use the
4093       Coccinelle semantic patching tool parse all the C files. While it
4094       is a good idea to try to make sure Coccinelle works on our C
4095       before we run a Coccinelle patch, doing so on every test run has
4096       proven to be disruptive. You can still run this tool manually with
4097       "make check-cocci". Closes ticket 40030.
4100 Changes in version 0.3.5.11 - 2020-07-09
4101   Tor 0.3.5.11 backports fixes from later tor releases, including several
4102   usability, portability, and reliability fixes.
4104   This release also fixes TROVE-2020-001, a medium-severity denial of
4105   service vulnerability affecting all versions of Tor when compiled with
4106   the NSS encryption library. (This is not the default configuration.)
4107   Using this vulnerability, an attacker could cause an affected Tor
4108   instance to crash remotely. This issue is also tracked as CVE-2020-
4109   15572. Anybody running a version of Tor built with the NSS library
4110   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
4111   or later.
4113   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
4114     - Fix a crash due to an out-of-bound memory access when Tor is
4115       compiled with NSS support. Fixes bug 33119; bugfix on
4116       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
4117       and CVE-2020-15572.
4119   o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc):
4120     - Fix a bug that was preventing DoS defenses from running on bridges
4121       with a pluggable transport. Previously, the DoS subsystem was not
4122       given the transport name of the client connection, thus failed to
4123       find the GeoIP cache entry for that client address. Fixes bug
4124       33491; bugfix on 0.3.3.2-alpha.
4126   o Minor features (testing, backport from 0.4.3.4-rc):
4127     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
4128       variable to specify a list of space-separated test cases that
4129       should not be executed. We will use this to disable certain tests
4130       that are failing on Appveyor because of mismatched OpenSSL
4131       libraries. Part of ticket 33643.
4133   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
4134     - Use the correct 64-bit printf format when compiling with MINGW on
4135       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
4137   o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha):
4138     - Warn if the ContactInfo field is not set, and tell the relay
4139       operator that not having a ContactInfo field set might cause their
4140       relay to get rejected in the future. Fixes bug 33361; bugfix
4141       on 0.1.1.10-alpha.
4143   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
4144     - Resume use of preemptively-built circuits when UseEntryGuards is set
4145       to 0. We accidentally disabled this feature with that config
4146       setting, leading to slower load times. Fixes bug 34303; bugfix
4147       on 0.3.3.2-alpha.
4149   o Minor bugfixes (compiler compatibility, backport from 0.4.3.5):
4150     - Avoid compiler warnings from Clang 10 related to the use of GCC-
4151       style "/* falls through */" comments. Both Clang and GCC allow
4152       __attribute__((fallthrough)) instead, so that's what we're using
4153       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
4155   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
4156     - Fix a compiler warning on platforms with 32-bit time_t values.
4157       Fixes bug 40028; bugfix on 0.3.2.8-rc.
4159   o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha):
4160     - When starting Tor any time after the first time in a process,
4161       register the thread in which it is running as the main thread.
4162       Previously, we only did this on Windows, which could lead to bugs
4163       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
4164       on 0.3.3.1-alpha.
4166   o Minor bugfixes (key portability, backport from 0.4.3.4-rc):
4167     - When reading PEM-encoded key data, tolerate CRLF line-endings even
4168       if we are not running on Windows. Previously, non-Windows hosts
4169       would reject these line-endings in certain positions, making
4170       certain key files hard to move from one host to another. Fixes bug
4171       33032; bugfix on 0.3.5.1-alpha.
4173   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
4174     - Downgrade a noisy log message that could occur naturally when
4175       receiving an extrainfo document that we no longer want. Fixes bug
4176       16016; bugfix on 0.2.6.3-alpha.
4178   o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha):
4179     - Remove a BUG() warning that would cause a stack trace if an onion
4180       service descriptor was freed while we were waiting for a
4181       rendezvous circuit to complete. Fixes bug 28992; bugfix
4182       on 0.3.2.1-alpha.
4184   o Testing (CI, backport from 0.4.3.4-rc):
4185     - In our Appveyor Windows CI, copy required DLLs to test and app
4186       directories, before running tor's tests. This ensures that tor.exe
4187       and test*.exe use the correct version of each DLL. This fix is not
4188       required, but we hope it will avoid DLL search issues in future.
4189       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
4190     - On Appveyor, skip the crypto/openssl_version test, which is
4191       failing because of a mismatched library installation. Fix
4192       for 33643.
4195 Changes in version 0.4.2.8 - 2020-07-09
4196   Tor 0.4.2.8 backports various fixes from later releases, including
4197   several that affect usability and portability.
4199   This release also fixes TROVE-2020-001, a medium-severity denial of
4200   service vulnerability affecting all versions of Tor when compiled with
4201   the NSS encryption library. (This is not the default configuration.)
4202   Using this vulnerability, an attacker could cause an affected Tor
4203   instance to crash remotely. This issue is also tracked as CVE-2020-
4204   15572. Anybody running a version of Tor built with the NSS library
4205   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
4206   or later.
4208   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
4209     - Fix a crash due to an out-of-bound memory access when Tor is
4210       compiled with NSS support. Fixes bug 33119; bugfix on
4211       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
4212       and CVE-2020-15572.
4214   o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc):
4215     - Fix a bug that was preventing DoS defenses from running on bridges
4216       with a pluggable transport. Previously, the DoS subsystem was not
4217       given the transport name of the client connection, thus failed to
4218       find the GeoIP cache entry for that client address. Fixes bug
4219       33491; bugfix on 0.3.3.2-alpha.
4221   o Minor feature (sendme, flow control, backport form 0.4.3.4-rc):
4222     - Default to sending SENDME version 1 cells. (Clients are already
4223       sending these, because of a consensus parameter telling them to do
4224       so: this change only affects what clients would do if the
4225       consensus didn't contain a recommendation.) Closes ticket 33623.
4227   o Minor features (diagnostic, backport from 0.4.3.3-alpha):
4228     - Improve assertions and add some memory-poisoning code to try to
4229       track down possible causes of a rare crash (32564) in the EWMA
4230       code. Closes ticket 33290.
4232   o Minor features (testing, backport from 0.4.3.4-rc):
4233     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
4234       variable to specify a list of space-separated test cases that
4235       should not be executed. We will use this to disable certain tests
4236       that are failing on Appveyor because of mismatched OpenSSL
4237       libraries. Part of ticket 33643.
4239   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
4240     - Use the correct 64-bit printf format when compiling with MINGW on
4241       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
4243   o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha):
4244     - Warn if the ContactInfo field is not set, and tell the relay
4245       operator that not having a ContactInfo field set might cause their
4246       relay to get rejected in the future. Fixes bug 33361; bugfix
4247       on 0.1.1.10-alpha.
4249   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
4250     - Resume use of preemptively-built circuits when UseEntryGuards is set
4251       to 0. We accidentally disabled this feature with that config
4252       setting, leading to slower load times. Fixes bug 34303; bugfix
4253       on 0.3.3.2-alpha.
4255   o Minor bugfixes (compiler compatibility, backport from 0.4.3.5):
4256     - Avoid compiler warnings from Clang 10 related to the use of GCC-
4257       style "/* falls through */" comments. Both Clang and GCC allow
4258       __attribute__((fallthrough)) instead, so that's what we're using
4259       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
4260     - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix
4261       on 0.4.0.3-alpha.
4263   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
4264     - Fix a compiler warning on platforms with 32-bit time_t values.
4265       Fixes bug 40028; bugfix on 0.3.2.8-rc.
4267   o Minor bugfixes (controller protocol, backport from 0.4.3.2-alpha):
4268     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
4269       report them as SIGNAL events. Previously we would log a bug
4270       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
4272   o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha):
4273     - When starting Tor any time after the first time in a process,
4274       register the thread in which it is running as the main thread.
4275       Previously, we only did this on Windows, which could lead to bugs
4276       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
4277       on 0.3.3.1-alpha.
4279   o Minor bugfixes (key portability, backport from 0.4.3.4-rc):
4280     - When reading PEM-encoded key data, tolerate CRLF line-endings even
4281       if we are not running on Windows. Previously, non-Windows hosts
4282       would reject these line-endings in certain positions, making
4283       certain key files hard to move from one host to another. Fixes bug
4284       33032; bugfix on 0.3.5.1-alpha.
4286   o Minor bugfixes (logging, backport from 0.4.3.2-rc):
4287     - When logging a bug, do not say "Future instances of this warning
4288       will be silenced" unless we are actually going to silence them.
4289       Previously we would say this whenever a BUG() check failed in the
4290       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
4292   o Minor bugfixes (logging, backport from 0.4.3.4-rc):
4293     - Flush stderr, stdout, and file logs during shutdown, if supported
4294       by the OS. This change helps make sure that any final logs are
4295       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
4297   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
4298     - Downgrade a noisy log message that could occur naturally when
4299       receiving an extrainfo document that we no longer want. Fixes bug
4300       16016; bugfix on 0.2.6.3-alpha.
4302   o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha):
4303     - Remove a BUG() warning that would cause a stack trace if an onion
4304       service descriptor was freed while we were waiting for a
4305       rendezvous circuit to complete. Fixes bug 28992; bugfix
4306       on 0.3.2.1-alpha.
4308   o Testing (CI, backport from 0.4.3.4-rc):
4309     - In our Appveyor Windows CI, copy required DLLs to test and app
4310       directories, before running tor's tests. This ensures that tor.exe
4311       and test*.exe use the correct version of each DLL. This fix is not
4312       required, but we hope it will avoid DLL search issues in future.
4313       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
4314     - On Appveyor, skip the crypto/openssl_version test, which is
4315       failing because of a mismatched library installation. Fix
4316       for 33643.
4319 Changes in version 0.4.3.6 - 2020-07-09
4320   Tor 0.4.3.6 backports several bugfixes from later releases, including
4321   some affecting usability.
4323   This release also fixes TROVE-2020-001, a medium-severity denial of
4324   service vulnerability affecting all versions of Tor when compiled with
4325   the NSS encryption library. (This is not the default configuration.)
4326   Using this vulnerability, an attacker could cause an affected Tor
4327   instance to crash remotely. This issue is also tracked as CVE-2020-
4328   15572. Anybody running a version of Tor built with the NSS library
4329   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
4330   or later.
4332   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
4333     - Fix a crash due to an out-of-bound memory access when Tor is
4334       compiled with NSS support. Fixes bug 33119; bugfix on
4335       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
4336       and CVE-2020-15572.
4338   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
4339     - Use the correct 64-bit printf format when compiling with MINGW on
4340       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
4342   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
4343     - Resume use of preemptively-built circuits when UseEntryGuards is set
4344       to 0. We accidentally disabled this feature with that config
4345       setting, leading to slower load times. Fixes bug 34303; bugfix
4346       on 0.3.3.2-alpha.
4348   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
4349     - Fix a compiler warning on platforms with 32-bit time_t values.
4350       Fixes bug 40028; bugfix on 0.3.2.8-rc.
4352   o Minor bugfixes (linux seccomp sandbox, nss, backport from 0.4.4.1-alpha):
4353     - Fix a startup crash when tor is compiled with --enable-nss and
4354       sandbox support is enabled. Fixes bug 34130; bugfix on
4355       0.3.5.1-alpha. Patch by Daniel Pinto.
4357   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
4358     - Downgrade a noisy log message that could occur naturally when
4359       receiving an extrainfo document that we no longer want. Fixes bug
4360       16016; bugfix on 0.2.6.3-alpha.
4362   o Minor bugfixes (manual page, backport from 0.4.4.1-alpha):
4363     - Update the man page to reflect that MinUptimeHidServDirectoryV2
4364       defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha.
4366   o Minor bugfixes (onion service v3, backport from 0.4.4.1-alpha):
4367     - Prevent an assert() that would occur when cleaning the client
4368       descriptor cache, and attempting to close circuits for a non-
4369       decrypted descriptor (lacking client authorization). Fixes bug
4370       33458; bugfix on 0.4.2.1-alpha.
4372   o Minor bugfixes (portability, backport from 0.4.4.1-alpha):
4373     - Fix a portability error in the configure script, where we were
4374       using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5.
4376   o Minor bugfixes (relays, backport from 0.4.4.1-alpha):
4377     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
4378       descriptors, when the IPv6 port was configured as "auto". Fixes
4379       bug 32588; bugfix on 0.2.3.9-alpha.
4381   o Documentation (backport from 0.4.4.1-alpha):
4382     - Fix several doxygen warnings related to imbalanced groups. Closes
4383       ticket 34255.
4386 Changes in version 0.4.4.2-alpha - 2020-07-09
4387   This is the second alpha release in the 0.4.4.x series. It fixes a few
4388   bugs in the previous release, and solves a few usability,
4389   compatibility, and portability issues.
4391   This release also fixes TROVE-2020-001, a medium-severity denial of
4392   service vulnerability affecting all versions of Tor when compiled with
4393   the NSS encryption library. (This is not the default configuration.)
4394   Using this vulnerability, an attacker could cause an affected Tor
4395   instance to crash remotely. This issue is also tracked as CVE-2020-
4396   15572. Anybody running a version of Tor built with the NSS library
4397   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
4398   or later.
4400   o Major bugfixes (NSS, security):
4401     - Fix a crash due to an out-of-bound memory access when Tor is
4402       compiled with NSS support. Fixes bug 33119; bugfix on
4403       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
4404       and CVE-2020-15572.
4406   o Minor features (bootstrap reporting):
4407     - Report more detailed reasons for bootstrap failure when the
4408       failure happens due to a TLS error. Previously we would just call
4409       these errors "MISC" when they happened during read, and "DONE"
4410       when they happened during any other TLS operation. Closes
4411       ticket 32622.
4413   o Minor features (directory authority):
4414     - Authorities now recommend the protocol versions that are supported
4415       by Tor 0.3.5 and later. (Earlier versions of Tor have been
4416       deprecated since January of this year.) This recommendation will
4417       cause older clients and relays to give a warning on startup, or
4418       when they download a consensus directory. Closes ticket 32696.
4420   o Minor features (entry guards):
4421     - Reinstate support for GUARD NEW/UP/DOWN control port events.
4422       Closes ticket 40001.
4424   o Minor features (linux seccomp2 sandbox, portability):
4425     - Allow Tor to build on platforms where it doesn't know how to
4426       report which syscall caused the linux seccomp2 sandbox to fail.
4427       This change should make the sandbox code more portable to less
4428       common Linux architectures. Closes ticket 34382.
4429     - Permit the unlinkat() syscall, which some Libc implementations use
4430       to implement unlink(). Closes ticket 33346.
4432   o Minor bugfix (CI, Windows):
4433     - Use the correct 64-bit printf format when compiling with MINGW on
4434       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
4436   o Minor bugfix (onion service v3 client):
4437     - Remove a BUG() warning that could occur naturally. Fixes bug
4438       34087; bugfix on 0.3.2.1-alpha.
4440   o Minor bugfix (SOCKS, onion service client):
4441     - Detect v3 onion service addresses of the wrong length when
4442       returning the F6 ExtendedErrors code. Fixes bug 33873; bugfix
4443       on 0.4.3.1-alpha.
4445   o Minor bugfixes (compiler warnings):
4446     - Fix a compiler warning on platforms with 32-bit time_t values.
4447       Fixes bug 40028; bugfix on 0.3.2.8-rc.
4449   o Minor bugfixes (control port, onion service):
4450     - Consistently use 'address' in "Invalid v3 address" response to
4451       ONION_CLIENT_AUTH commands. Previously, we would sometimes say
4452       'addr'. Fixes bug 40005; bugfix on 0.4.3.1-alpha.
4454   o Minor bugfixes (logging):
4455     - Downgrade a noisy log message that could occur naturally when
4456       receiving an extrainfo document that we no longer want. Fixes bug
4457       16016; bugfix on 0.2.6.3-alpha.
4459   o Minor bugfixes (onion services v3):
4460     - Avoid a non-fatal assertion failure in certain edge-cases when
4461       opening an intro circuit as a client. Fixes bug 34084; bugfix
4462       on 0.3.2.1-alpha.
4464   o Deprecated features (onion service v2):
4465     - Add a deprecation warning for version 2 onion services. Closes
4466       ticket 40003.
4468   o Removed features (IPv6, revert):
4469     - Revert the change in the default value of ClientPreferIPv6OrPort:
4470       it breaks the torsocks use case. The SOCKS resolve command has no
4471       mechanism to ask for a specific address family (v4 or v6), and so
4472       prioritizing IPv6 when an IPv4 address is requested on the SOCKS
4473       interface resulted in a failure. Tor Browser explicitly sets
4474       PreferIPv6, so this should not affect the majority of our users.
4475       Closes ticket 33796; bugfix on 0.4.4.1-alpha.
4478 Changes in version 0.4.4.1-alpha - 2020-06-16
4479   This is the first alpha release in the 0.4.4.x series.  It improves
4480   our guard selection algorithms, improves the amount of code that
4481   can be disabled when running without relay support, and includes numerous
4482   small bugfixes and enhancements.  It also lays the ground for some IPv6
4483   features that we'll be developing more in the next (0.4.5) series.
4485   Here are the changes since 0.4.3.5.
4487   o Major features (Proposal 310, performance + security):
4488     - Implements Proposal 310, "Bandaid on guard selection". Proposal
4489       310 solves load-balancing issues with older versions of the guard
4490       selection algorithm, and improves its security. Under this new
4491       algorithm, a newly selected guard never becomes Primary unless all
4492       previously sampled guards are unreachable. Implements
4493       recommendation from 32088. (Proposal 310 is linked to the CLAPS
4494       project researching optimal client location-aware path selections.
4495       This project is a collaboration between the UCLouvain Crypto Group,
4496       the U.S. Naval Research Laboratory, and Princeton University.)
4498   o Major features (IPv6, relay):
4499     - Consider IPv6-only EXTEND2 cells valid on relays. Log a protocol
4500       warning if the IPv4 or IPv6 address is an internal address, and
4501       internal addresses are not allowed. But continue to use the other
4502       address, if it is valid. Closes ticket 33817.
4503     - If a relay can extend over IPv4 and IPv6, and both addresses are
4504       provided, it chooses between them uniformly at random. Closes
4505       ticket 33817.
4506     - Re-use existing IPv6 connections for circuit extends. Closes
4507       ticket 33817.
4508     - Relays may extend circuits over IPv6, if the relay has an IPv6
4509       ORPort, and the client supplies the other relay's IPv6 ORPort in
4510       the EXTEND2 cell. IPv6 extends will be used by the relay IPv6
4511       ORPort self-tests in 33222. Closes ticket 33817.
4513   o Major features (v3 onion services):
4514     - Allow v3 onion services to act as OnionBalance backend instances,
4515       by using the HiddenServiceOnionBalanceInstance torrc option.
4516       Closes ticket 32709.
4518   o Minor feature (developer tools):
4519     - Add a script to help check the alphabetical ordering of option
4520       names in the manual page. Closes ticket 33339.
4522   o Minor feature (onion service client, SOCKS5):
4523     - Add 3 new SocksPort ExtendedErrors (F2, F3, F7) that reports back
4524       new type of onion service connection failures. The semantics of
4525       these error codes are documented in proposal 309. Closes
4526       ticket 32542.
4528   o Minor feature (onion service v3):
4529     - If a service cannot upload its descriptor(s), log why at INFO
4530       level. Closes ticket 33400; bugfix on 0.3.2.1-alpha.
4532   o Minor feature (python scripts):
4533     - Stop assuming that /usr/bin/python exists. Instead of using a
4534       hardcoded path in scripts that still use Python 2, use
4535       /usr/bin/env, similarly to the scripts that use Python 3. Fixes
4536       bug 33192; bugfix on 0.4.2.
4538   o Minor features (client-only compilation):
4539     - Disable more code related to the ext_orport protocol when
4540       compiling without support for relay mode. Closes ticket 33368.
4541     - Disable more of our self-testing code when support for relay mode
4542       is disabled. Closes ticket 33370.
4544   o Minor features (code safety):
4545     - Check for failures of tor_inet_ntop() and tor_inet_ntoa()
4546       functions in DNS and IP address processing code, and adjust
4547       codepaths to make them less likely to crash entire Tor instances.
4548       Resolves issue 33788.
4550   o Minor features (compilation size):
4551     - Most server-side DNS code is now disabled when building without
4552       support for relay mode. Closes ticket 33366.
4554   o Minor features (continuous integration):
4555     - Run unit-test and integration test (Stem, Chutney) jobs with
4556       ALL_BUGS_ARE_FATAL macro being enabled on Travis and Appveyor.
4557       Resolves ticket 32143.
4559   o Minor features (control port):
4560     - Return a descriptive error message from the 'GETINFO status/fresh-
4561       relay-descs' command on the control port. Previously, we returned
4562       a generic error of "Error generating descriptor". Closes ticket
4563       32873. Patch by Neel Chauhan.
4565   o Minor features (developer tooling):
4566     - Refrain from listing all .a files that are generated by the Tor
4567       build in .gitignore. Add a single wildcard *.a entry that covers
4568       all of them for present and future. Closes ticket 33642.
4569     - Add a script ("git-install-tools.sh") to install git hooks and
4570       helper scripts. Closes ticket 33451.
4572   o Minor features (directory authority, shared random):
4573     - Refactor more authority-only parts of the shared-random scheduling
4574       code to reside in the dirauth module, and to be disabled when
4575       compiling with --disable-module-dirauth. Closes ticket 33436.
4577   o Minor features (directory):
4578     - Remember the number of bytes we have downloaded for each directory
4579       purpose while bootstrapping, and while fully bootstrapped. Log
4580       this information as part of the heartbeat message. Closes
4581       ticket 32720.
4583   o Minor features (IPv6 support):
4584     - Adds IPv6 support to tor_addr_is_valid(). Adds tests for the above
4585       changes and tor_addr_is_null(). Closes ticket 33679. Patch
4586       by MrSquanchee.
4587     - Allow clients and relays to send dual-stack and IPv6-only EXTEND2
4588       cells. Parse dual-stack and IPv6-only EXTEND2 cells on relays.
4589       Closes ticket 33901.
4591   o Minor features (logging):
4592     - When trying to find our own address, add debug-level logging to
4593       report the sources of candidate addresses. Closes ticket 32888.
4595   o Minor features (testing, architecture):
4596     - Our test scripts now double-check that subsystem initialization
4597       order is consistent with the inter-module dependencies established
4598       by our .may_include files. Implements ticket 31634.
4599     - Initialize all subsystems at the beginning of our unit test
4600       harness, to avoid crashes due to uninitialized subsystems. Follow-
4601       up from ticket 33316.
4603   o Minor features (v3 onion services):
4604     - Add v3 onion service status to the dumpstats() call which is
4605       triggered by a SIGUSR1 signal. Previously, we only did v2 onion
4606       services. Closes ticket 24844. Patch by Neel Chauhan.
4608   o Minor features (windows):
4609     - Add support for console control signals like Ctrl+C in Windows.
4610       Closes ticket 34211. Patch from Damon Harris (TheDcoder).
4612   o Minor bugfix (onion service v3):
4613     - Prevent an assert() that would occur when cleaning the client
4614       descriptor cache, and attempting to close circuits for a non-
4615       decrypted descriptor (lacking client authorization). Fixes bug
4616       33458; bugfix on 0.4.2.1-alpha.
4618   o Minor bugfix (refactoring):
4619     - Lift circuit_build_times_disabled() out of the
4620       circuit_expire_building() loop, to save CPU time when there are
4621       many circuits open. Fixes bug 33977; bugfix on 0.3.5.9.
4623   o Minor bugfixes (client performance):
4624     - Resume use of preemptively-built circuits when UseEntryGuards is set
4625       to 0. We accidentally disabled this feature with that config
4626       setting, leading to slower load times. Fixes bug 34303; bugfix
4627       on 0.3.3.2-alpha.
4629   o Minor bugfixes (directory authorities):
4630     - Directory authorities now reject votes that arrive too late. In
4631       particular, once an authority has started fetching missing votes,
4632       it no longer accepts new votes posted by other authorities. This
4633       change helps prevent a consensus split, where only some authorities
4634       have the late vote. Fixes bug 4631; bugfix on 0.2.0.5-alpha.
4636   o Minor bugfixes (git scripts):
4637     - Stop executing the checked-out pre-commit hook from the pre-push
4638       hook. Instead, execute the copy in the user's git directory. Fixes
4639       bug 33284; bugfix on 0.4.1.1-alpha.
4641   o Minor bugfixes (initialization):
4642     - Initialize the subsystems in our code in an order more closely
4643       corresponding to their dependencies, so that every system is
4644       initialized before the ones that (theoretically) depend on it.
4645       Fixes bug 33316; bugfix on 0.4.0.1-alpha.
4647   o Minor bugfixes (IPv4, relay):
4648     - Check for invalid zero IPv4 addresses and ports when sending and
4649       receiving extend cells. Fixes bug 33900; bugfix on 0.2.4.8-alpha.
4651   o Minor bugfixes (IPv6, relay):
4652     - Consider IPv6 addresses when checking if a connection is
4653       canonical. In 17604, relays assumed that a remote relay could
4654       consider an IPv6 connection canonical, but did not set the
4655       canonical flag on their side of the connection. Fixes bug 33899;
4656       bugfix on 0.3.1.1-alpha.
4657     - Log IPv6 addresses on connections where this relay is the
4658       responder. Previously, responding relays would replace the remote
4659       IPv6 address with the IPv4 address from the consensus. Fixes bug
4660       33899; bugfix on 0.3.1.1-alpha.
4662   o Minor bugfixes (linux seccomp sandbox nss):
4663     - Fix a startup crash when tor is compiled with --enable-nss and
4664       sandbox support is enabled. Fixes bug 34130; bugfix on
4665       0.3.5.1-alpha. Patch by Daniel Pinto.
4667   o Minor bugfixes (logging, testing):
4668     - Make all of tor's assertion macros support the ALL_BUGS_ARE_FATAL
4669       and DISABLE_ASSERTS_IN_UNIT_TESTS debugging modes. (IF_BUG_ONCE()
4670       used to log a non-fatal warning, regardless of the debugging
4671       mode.) Fixes bug 33917; bugfix on 0.2.9.1-alpha.
4673   o Minor bugfixes (logs):
4674     - Remove surprising empty line in the INFO-level log about circuit
4675       build timeout. Fixes bug 33531; bugfix on 0.3.3.1-alpha.
4677   o Minor bugfixes (mainloop):
4678     - Better guard against growing a buffer past its maximum 2GB in
4679       size. Fixes bug 33131; bugfix on 0.3.0.4-rc.
4681   o Minor bugfixes (manual page):
4682     - Update the man page to reflect that MinUptimeHidServDirectoryV2
4683       defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha.
4685   o Minor bugfixes (onion service v3, client):
4686     - Remove a BUG() that was causing a stacktrace when a descriptor
4687       changed at an unexpected time. Fixes bug 28992; bugfix
4688       on 0.3.2.1-alpha.
4690   o Minor bugfixes (onion service, logging):
4691     - Fix a typo in a log message PublishHidServDescriptors is set to 0.
4692       Fixes bug 33779; bugfix on 0.3.2.1-alpha.
4694   o Minor bugfixes (portability):
4695     - Fix a portability error in the configure script, where we were
4696       using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5.
4698   o Minor bugfixes (protocol versions):
4699     - Sort tor's supported protocol version lists, as recommended by the
4700       tor directory specification. Fixes bug 33285; bugfix
4701       on 0.4.0.1-alpha.
4703   o Minor bugfixes (relays):
4704     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
4705       descriptors, when the IPv6 port was configured as "auto". Fixes
4706       bug 32588; bugfix on 0.2.3.9-alpha.
4708   o Code simplification and refactoring:
4709     - Define and use a new constant TOR_ADDRPORT_BUF_LEN which is like
4710       TOR_ADDR_BUF_LEN but includes enough space for an IP address,
4711       brackets, separating colon, and port number. Closes ticket 33956.
4712       Patch by Neel Chauhan.
4713     - Merge the orconn and ocirc events into the "core" subsystem, which
4714       manages or connections and origin circuits. Previously they were
4715       isolated in subsystems of their own.
4716     - Move LOG_PROTOCOL_WARN to app/config. Resolves a dependency
4717       inversion. Closes ticket 33633.
4718     - Move the circuit extend code to the relay module. Split the
4719       circuit extend function into smaller functions. Closes
4720       ticket 33633.
4721     - Rewrite port_parse_config() to use the default port flags from
4722       port_cfg_new(). Closes ticket 32994. Patch by MrSquanchee.
4723     - Updated comments in 'scheduler.c' to reflect old code changes, and
4724       simplified the scheduler channel state change code. Closes
4725       ticket 33349.
4727   o Documentation:
4728     - Document the limitations of using %include on config files with
4729       seccomp sandbox enabled. Fixes documentation bug 34133; bugfix on
4730       0.3.1.1-alpha. Patch by Daniel Pinto.
4731     - Fix several doxygen warnings related to imbalanced groups. Closes
4732       ticket 34255.
4734   o Removed features:
4735     - Remove the ClientAutoIPv6ORPort option. This option attempted to
4736       randomly choose between IPv4 and IPv6 for client connections, and
4737       wasn't a true implementation of Happy Eyeballs. Often, this option
4738       failed on IPv4-only or IPv6-only connections. Closes ticket 32905.
4739       Patch by Neel Chauhan.
4740     - Stop shipping contrib/dist/rc.subr file, as it is not being used
4741       on FreeBSD anymore. Closes issue 31576.
4743   o Testing:
4744     - Add a basic IPv6 test to "make test-network". This test only runs
4745       when the local machine has an IPv6 stack. Closes ticket 33300.
4746     - Add test-network-ipv4 and test-network-ipv6 jobs to the Makefile.
4747       These jobs run the IPv4-only and dual-stack chutney flavours from
4748       test-network-all. Closes ticket 33280.
4749     - Remove a redundant distcheck job. Closes ticket 33194.
4750     - Run the test-network-ipv6 Makefile target in the Travis CI IPv6
4751       chutney job. This job runs on macOS, so it's a bit slow. Closes
4752       ticket 33303.
4753     - Sort the Travis jobs in order of speed. Putting the slowest jobs
4754       first takes full advantage of Travis job concurrency. Closes
4755       ticket 33194.
4756     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
4757       previously configured to fast_finish (which requires
4758       allow_failure), to speed up the build. Closes ticket 33195.
4759     - Test v3 onion services to tor's mixed IPv4 chutney network. And
4760       add a mixed IPv6 chutney network. These networks are used in the
4761       test-network-all, test-network-ipv4, and test-network-ipv6 make
4762       targets. Closes ticket 33334.
4763     - Use the "bridges+hs-v23" chutney network flavour in "make test-
4764       network". This test requires a recent version of chutney (mid-
4765       February 2020). Closes ticket 28208.
4766     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
4767       tool to produce detailed diagnostic output. Closes ticket 32792.
4769   o Code simplification and refactoring (onion service):
4770     - Refactor configuration parsing to use the new config subsystem
4771       code. Closes ticket 33014.
4773   o Code simplification and refactoring (relay address):
4774     - Move a series of functions related to address resolving into their
4775       own files. Closes ticket 33789.
4777   o Documentation (manual page):
4778     - Add cross reference links and a table of contents to the HTML tor
4779       manual page. Closes ticket 33369. Work by Swati Thacker as part of
4780       Google Season of Docs.
4781     - Alphabetize the Denial of Service Mitigation Options, Directory
4782       Authority Server Options, Hidden Service Options, and Testing
4783       Network Options sections of the tor(1) manual page. Closes ticket
4784       33275. Work by Swati Thacker as part of Google Season of Docs.
4785     - Refrain from mentioning nicknames in manpage section for MyFamily
4786       torrc option. Resolves issue 33417.
4787     - Updated the options set by TestingTorNetwork in the manual page.
4788       Closes ticket 33778.
4791 Changes in version 0.4.3.5 - 2020-05-15
4792   Tor 0.4.3.5 is the first stable release in the 0.4.3.x series. This
4793   series adds support for building without relay code enabled, and
4794   implements functionality needed for OnionBalance with v3 onion
4795   services. It includes significant refactoring of our configuration and
4796   controller functionality, and fixes numerous smaller bugs and
4797   performance issues.
4799   Per our support policy, we support each stable release series for nine
4800   months after its first stable release, or three months after the first
4801   stable release of the next series: whichever is longer. This means
4802   that 0.4.3.x will be supported until around February 2021--later, if
4803   0.4.4.x is later than anticipated.
4805   Note also that support for 0.4.1.x is about to end on May 20 of this
4806   year; 0.4.2.x will be supported until September 15. We still plan to
4807   continue supporting 0.3.5.x, our long-term stable series, until
4808   Feb 2022.
4810   Below are the changes since 0.4.3.4-rc. For a complete list of changes
4811   since 0.4.2.6, see the ReleaseNotes file.
4813   o Minor bugfixes (compiler compatibility):
4814     - Avoid compiler warnings from Clang 10 related to the use of GCC-
4815       style "/* falls through */" comments. Both Clang and GCC allow
4816       __attribute__((fallthrough)) instead, so that's what we're using
4817       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
4818     - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix
4819       on 0.4.0.3-alpha.
4821   o Minor bugfixes (logging):
4822     - Stop truncating IPv6 addresses and ports in channel and connection
4823       logs. Fixes bug 33918; bugfix on 0.2.4.4-alpha.
4824     - Fix a logic error in a log message about whether an address was
4825       invalid. Previously, the code would never report that onion
4826       addresses were onion addresses. Fixes bug 34131; bugfix
4827       on 0.4.3.1-alpha.
4830 Changes in version 0.4.3.4-rc - 2020-04-13
4831   Tor 0.4.3.4-rc is the first release candidate in its series. It fixes
4832   several bugs from earlier versions, including one affecting DoS
4833   defenses on bridges using pluggable transports.
4835   o Major bugfixes (DoS defenses, bridges, pluggable transport):
4836     - Fix a bug that was preventing DoS defenses from running on bridges
4837       with a pluggable transport. Previously, the DoS subsystem was not
4838       given the transport name of the client connection, thus failed to
4839       find the GeoIP cache entry for that client address. Fixes bug
4840       33491; bugfix on 0.3.3.2-alpha.
4842   o Minor feature (sendme, flow control):
4843     - Default to sending SENDME version 1 cells. (Clients are already
4844       sending these, because of a consensus parameter telling them to do
4845       so: this change only affects what clients would do if the
4846       consensus didn't contain a recommendation.) Closes ticket 33623.
4848   o Minor features (testing):
4849     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
4850       variable to specify a list of space-separated test cases that
4851       should not be executed. We will use this to disable certain tests
4852       that are failing on Appveyor because of mismatched OpenSSL
4853       libraries. Part of ticket 33643.
4855   o Minor bugfixes (--disable-module-relay):
4856     - Fix an assertion failure when Tor is built without the relay
4857       module, and then invoked with the "User" option. Fixes bug 33668;
4858       bugfix on 0.4.3.1-alpha.
4860   o Minor bugfixes (--disable-module-relay,--disable-module-dirauth):
4861     - Set some output arguments in the relay and dirauth module stubs,
4862       to guard against future stub argument handling bugs like 33668.
4863       Fixes bug 33674; bugfix on 0.4.3.1-alpha.
4865   o Minor bugfixes (build system):
4866     - Correctly output the enabled module in the configure summary.
4867       Before that, the list shown was just plain wrong. Fixes bug 33646;
4868       bugfix on 0.4.3.2-alpha.
4870   o Minor bugfixes (client, IPv6):
4871     - Stop forcing all non-SocksPorts to prefer IPv6 exit connections.
4872       Instead, prefer IPv6 connections by default, but allow users to
4873       change their configs using the "NoPreferIPv6" port flag. Fixes bug
4874       33608; bugfix on 0.4.3.1-alpha.
4875     - Revert PreferIPv6 set by default on the SocksPort because it broke
4876       the torsocks use case. Tor doesn't have a way for an application
4877       to request the hostname to be resolved for a specific IP version,
4878       but torsocks requires that. Up until now, IPv4 was used by default
4879       so torsocks is expecting that, and can't handle a possible IPv6
4880       being returned. Fixes bug 33804; bugfix on 0.4.3.1-alpha.
4882   o Minor bugfixes (key portability):
4883     - When reading PEM-encoded key data, tolerate CRLF line-endings even
4884       if we are not running on Windows. Previously, non-Windows hosts
4885       would reject these line-endings in certain positions, making
4886       certain key files hard to move from one host to another. Fixes bug
4887       33032; bugfix on 0.3.5.1-alpha.
4889   o Minor bugfixes (logging):
4890     - Flush stderr, stdout, and file logs during shutdown, if supported
4891       by the OS. This change helps make sure that any final logs are
4892       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
4893     - Stop closing stderr and stdout during shutdown. Closing these file
4894       descriptors can hide sanitiser logs. Fixes bug 33087; bugfix
4895       on 0.4.1.6.
4897   o Minor bugfixes (onion services v3):
4898     - Relax severity of a log message that can appear naturally when
4899       decoding onion service descriptors as a relay. Also add some
4900       diagnostics to debug any future bugs in that area. Fixes bug
4901       31669; bugfix on 0.3.0.1-alpha.
4902     - Block a client-side assertion by disallowing the registration of
4903       an x25519 client auth key that's all zeroes. Fixes bug 33545;
4904       bugfix on 0.4.3.1-alpha. Based on patch from "cypherpunks".
4906   o Code simplification and refactoring:
4907     - Disable our coding standards best practices tracker in our git
4908       hooks. (0.4.3 branches only.) Closes ticket 33678.
4910   o Testing:
4911     - Avoid conflicts between the fake sockets in tor's unit tests, and
4912       real file descriptors. Resolves issues running unit tests with
4913       GitHub Actions, where the process that embeds or launches the
4914       tests has already opened a large number of file descriptors. Fixes
4915       bug 33782; bugfix on 0.2.8.1-alpha. Found and fixed by
4916       Putta Khunchalee.
4918   o Testing (CI):
4919     - In our Appveyor Windows CI, copy required DLLs to test and app
4920       directories, before running tor's tests. This ensures that tor.exe
4921       and test*.exe use the correct version of each DLL. This fix is not
4922       required, but we hope it will avoid DLL search issues in future.
4923       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
4924     - On Appveyor, skip the crypto/openssl_version test, which is
4925       failing because of a mismatched library installation. Fix
4926       for 33643.
4929 Changes in version 0.4.3.3-alpha - 2020-03-18
4930   Tor 0.4.3.3-alpha fixes several bugs in previous releases, including
4931   TROVE-2020-002, a major denial-of-service vulnerability that affected
4932   all released Tor instances since 0.2.1.5-alpha. Using this
4933   vulnerability, an attacker could cause Tor instances to consume a huge
4934   amount of CPU, disrupting their operations for several seconds or
4935   minutes. This attack could be launched by anybody against a relay, or
4936   by a directory cache against any client that had connected to it. The
4937   attacker could launch this attack as much as they wanted, thereby
4938   disrupting service or creating patterns that could aid in traffic
4939   analysis. This issue was found by OSS-Fuzz, and is also tracked
4940   as CVE-2020-10592.
4942   We do not have reason to believe that this attack is currently being
4943   exploited in the wild, but nonetheless we advise everyone to upgrade
4944   as soon as packages are available.
4946   o Major bugfixes (security, denial-of-service):
4947     - Fix a denial-of-service bug that could be used by anyone to
4948       consume a bunch of CPU on any Tor relay or authority, or by
4949       directories to consume a bunch of CPU on clients or hidden
4950       services. Because of the potential for CPU consumption to
4951       introduce observable timing patterns, we are treating this as a
4952       high-severity security issue. Fixes bug 33119; bugfix on
4953       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
4954       as TROVE-2020-002 and CVE-2020-10592.
4956   o Major bugfixes (circuit padding, memory leak):
4957     - Avoid a remotely triggered memory leak in the case that a circuit
4958       padding machine is somehow negotiated twice on the same circuit.
4959       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
4960       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
4962   o Major bugfixes (directory authority):
4963     - Directory authorities will now send a 503 (not enough bandwidth)
4964       code to clients when under bandwidth pressure. Known relays and
4965       other authorities will always be answered regardless of the
4966       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
4968   o Minor features (diagnostic):
4969     - Improve assertions and add some memory-poisoning code to try to
4970       track down possible causes of a rare crash (32564) in the EWMA
4971       code. Closes ticket 33290.
4973   o Minor features (directory authorities):
4974     - Directory authorities now reject descriptors from relays running
4975       Tor versions from the 0.2.9 and 0.4.0 series. The 0.3.5 series is
4976       still allowed. Resolves ticket 32672. Patch by Neel Chauhan.
4978   o Minor features (usability):
4979     - Include more information when failing to parse a configuration
4980       value. This should make it easier to tell what's going wrong when
4981       a configuration file doesn't parse. Closes ticket 33460.
4983   o Minor bugfix (relay, configuration):
4984     - Warn if the ContactInfo field is not set, and tell the relay
4985       operator that not having a ContactInfo field set might cause their
4986       relay to get rejected in the future. Fixes bug 33361; bugfix
4987       on 0.1.1.10-alpha.
4989   o Minor bugfixes (coding best practices checks):
4990     - Allow the "practracker" script to read unicode files when using
4991       Python 2. We made the script use unicode literals in 0.4.3.1-alpha,
4992       but didn't change the codec for opening files. Fixes bug 33374;
4993       bugfix on 0.4.3.1-alpha.
4995   o Minor bugfixes (continuous integration):
4996     - Remove the buggy and unused mirroring job. Fixes bug 33213; bugfix
4997       on 0.3.2.2-alpha.
4999   o Minor bugfixes (onion service v3, client):
5000     - Remove a BUG() warning that would cause a stack trace if an onion
5001       service descriptor was freed while we were waiting for a
5002       rendezvous circuit to complete. Fixes bug 28992; bugfix
5003       on 0.3.2.1-alpha.
5005   o Minor bugfixes (onion services v3):
5006     - Fix an assertion failure that could result from a corrupted
5007       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
5008       bugfix on 0.3.3.1-alpha. This issue is also tracked
5009       as TROVE-2020-003.
5011   o Documentation (manpage):
5012     - Alphabetize the Server and Directory server sections of the tor
5013       manpage. Also split Statistics options into their own section of
5014       the manpage. Closes ticket 33188. Work by Swati Thacker as part of
5015       Google Season of Docs.
5016     - Document the __OwningControllerProcess torrc option and specify
5017       its polling interval. Resolves issue 32971.
5019   o Testing (Travis CI):
5020     - Remove a redundant distcheck job. Closes ticket 33194.
5021     - Sort the Travis jobs in order of speed: putting the slowest jobs
5022       first takes full advantage of Travis job concurrency. Closes
5023       ticket 33194.
5024     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
5025       previously configured to fast_finish (which requires
5026       allow_failure), to speed up the build. Closes ticket 33195.
5027     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
5028       tool to produce detailed diagnostic output. Closes ticket 32792.
5031 Changes in version 0.4.2.7 - 2020-03-18
5032   This is the third stable release in the 0.4.2.x series. It backports
5033   numerous fixes from later releases, including a fix for TROVE-2020-
5034   002, a major denial-of-service vulnerability that affected all
5035   released Tor instances since 0.2.1.5-alpha. Using this vulnerability,
5036   an attacker could cause Tor instances to consume a huge amount of CPU,
5037   disrupting their operations for several seconds or minutes. This
5038   attack could be launched by anybody against a relay, or by a directory
5039   cache against any client that had connected to it. The attacker could
5040   launch this attack as much as they wanted, thereby disrupting service
5041   or creating patterns that could aid in traffic analysis. This issue
5042   was found by OSS-Fuzz, and is also tracked as CVE-2020-10592.
5044   We do not have reason to believe that this attack is currently being
5045   exploited in the wild, but nonetheless we advise everyone to upgrade
5046   as soon as packages are available.
5048   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
5049     - Fix a denial-of-service bug that could be used by anyone to
5050       consume a bunch of CPU on any Tor relay or authority, or by
5051       directories to consume a bunch of CPU on clients or hidden
5052       services. Because of the potential for CPU consumption to
5053       introduce observable timing patterns, we are treating this as a
5054       high-severity security issue. Fixes bug 33119; bugfix on
5055       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
5056       as TROVE-2020-002 and CVE-2020-10592.
5058   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
5059     - Avoid a remotely triggered memory leak in the case that a circuit
5060       padding machine is somehow negotiated twice on the same circuit.
5061       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
5062       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
5064   o Major bugfixes (directory authority, backport from 0.4.3.3-alpha):
5065     - Directory authorities will now send a 503 (not enough bandwidth)
5066       code to clients when under bandwidth pressure. Known relays and
5067       other authorities will always be answered regardless of the
5068       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
5070   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
5071     - Stop allowing failures on the Travis CI stem tests job. It looks
5072       like all the stem hangs we were seeing before are now fixed.
5073       Closes ticket 33075.
5075   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
5076     - Lowercase the configured value of BridgeDistribution before adding
5077       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
5079   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
5080     - If we encounter a bug when flushing a buffer to a TLS connection,
5081       only log the bug once per invocation of the Tor process.
5082       Previously we would log with every occurrence, which could cause
5083       us to run out of disk space. Fixes bug 33093; bugfix
5084       on 0.3.2.2-alpha.
5086   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
5087     - Fix an assertion failure that could result from a corrupted
5088       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
5089       bugfix on 0.3.3.1-alpha. This issue is also tracked
5090       as TROVE-2020-003.
5092   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
5093     - Fix a syntax warning given by newer versions of Rust that was
5094       creating problems for our continuous integration. Fixes bug 33212;
5095       bugfix on 0.3.5.1-alpha.
5097   o Testing (Travis CI, backport from 0.4.3.3-alpha):
5098     - Remove a redundant distcheck job. Closes ticket 33194.
5099     - Sort the Travis jobs in order of speed: putting the slowest jobs
5100       first takes full advantage of Travis job concurrency. Closes
5101       ticket 33194.
5102     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
5103       previously configured to fast_finish (which requires
5104       allow_failure), to speed up the build. Closes ticket 33195.
5105     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
5106       tool to produce detailed diagnostic output. Closes ticket 32792.
5109 Changes in version 0.4.1.9 - 2020-03-18
5110   Tor 0.4.1.9 backports important fixes from later Tor releases,
5111   including a fix for TROVE-2020-002, a major denial-of-service
5112   vulnerability that affected all released Tor instances since
5113   0.2.1.5-alpha. Using this vulnerability, an attacker could cause Tor
5114   instances to consume a huge amount of CPU, disrupting their operations
5115   for several seconds or minutes. This attack could be launched by
5116   anybody against a relay, or by a directory cache against any client
5117   that had connected to it. The attacker could launch this attack as
5118   much as they wanted, thereby disrupting service or creating patterns
5119   that could aid in traffic analysis. This issue was found by OSS-Fuzz,
5120   and is also tracked as CVE-2020-10592.
5122   We do not have reason to believe that this attack is currently being
5123   exploited in the wild, but nonetheless we advise everyone to upgrade
5124   as soon as packages are available.
5126   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
5127     - Fix a denial-of-service bug that could be used by anyone to
5128       consume a bunch of CPU on any Tor relay or authority, or by
5129       directories to consume a bunch of CPU on clients or hidden
5130       services. Because of the potential for CPU consumption to
5131       introduce observable timing patterns, we are treating this as a
5132       high-severity security issue. Fixes bug 33119; bugfix on
5133       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
5134       as TROVE-2020-002 and CVE-2020-10592.
5136   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
5137     - Avoid a remotely triggered memory leak in the case that a circuit
5138       padding machine is somehow negotiated twice on the same circuit.
5139       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
5140       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
5142   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
5143     - Lowercase the configured value of BridgeDistribution before adding
5144       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
5146   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
5147     - If we encounter a bug when flushing a buffer to a TLS connection,
5148       only log the bug once per invocation of the Tor process.
5149       Previously we would log with every occurrence, which could cause
5150       us to run out of disk space. Fixes bug 33093; bugfix
5151       on 0.3.2.2-alpha.
5153   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
5154     - Fix an assertion failure that could result from a corrupted
5155       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
5156       bugfix on 0.3.3.1-alpha. This issue is also tracked
5157       as TROVE-2020-003.
5159   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
5160     - Fix a syntax warning given by newer versions of Rust that was
5161       creating problems for our continuous integration. Fixes bug 33212;
5162       bugfix on 0.3.5.1-alpha.
5164   o Testing (Travis CI, backport from 0.4.3.3-alpha):
5165     - Remove a redundant distcheck job. Closes ticket 33194.
5166     - Sort the Travis jobs in order of speed: putting the slowest jobs
5167       first takes full advantage of Travis job concurrency. Closes
5168       ticket 33194.
5169     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
5170       previously configured to fast_finish (which requires
5171       allow_failure), to speed up the build. Closes ticket 33195.
5172     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
5173       tool to produce detailed diagnostic output. Closes ticket 32792.
5176 Changes in version 0.3.5.10 - 2020-03-18
5177   Tor 0.3.5.10 backports many fixes from later Tor releases, including a
5178   fix for TROVE-2020-002, a major denial-of-service vulnerability that
5179   affected all released Tor instances since 0.2.1.5-alpha. Using this
5180   vulnerability, an attacker could cause Tor instances to consume a huge
5181   amount of CPU, disrupting their operations for several seconds or
5182   minutes. This attack could be launched by anybody against a relay, or
5183   by a directory cache against any client that had connected to it. The
5184   attacker could launch this attack as much as they wanted, thereby
5185   disrupting service or creating patterns that could aid in traffic
5186   analysis. This issue was found by OSS-Fuzz, and is also tracked
5187   as CVE-2020-10592.
5189   We do not have reason to believe that this attack is currently being
5190   exploited in the wild, but nonetheless we advise everyone to upgrade
5191   as soon as packages are available.
5193   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
5194     - Fix a denial-of-service bug that could be used by anyone to
5195       consume a bunch of CPU on any Tor relay or authority, or by
5196       directories to consume a bunch of CPU on clients or hidden
5197       services. Because of the potential for CPU consumption to
5198       introduce observable timing patterns, we are treating this as a
5199       high-severity security issue. Fixes bug 33119; bugfix on
5200       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
5201       as TROVE-2020-002 and CVE-2020-10592.
5203   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
5204     - Correct how we use libseccomp. Particularly, stop assuming that
5205       rules are applied in a particular order or that more rules are
5206       processed after the first match. Neither is the case! In
5207       libseccomp <2.4.0 this lead to some rules having no effect.
5208       libseccomp 2.4.0 changed how rules are generated, leading to a
5209       different ordering, which in turn led to a fatal crash during
5210       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
5211       Peter Gerber.
5213   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
5214     - Stop allowing failures on the Travis CI stem tests job. It looks
5215       like all the stem hangs we were seeing before are now fixed.
5216       Closes ticket 33075.
5218   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
5219     - Lowercase the configured value of BridgeDistribution before adding
5220       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
5222   o Minor bugfixes (crash, backport from 0.4.2.4-rc):
5223     - When running Tor with an option like --verify-config or
5224       --dump-config that does not start the event loop, avoid crashing
5225       if we try to exit early because of an error. Fixes bug 32407;
5226       bugfix on 0.3.3.1-alpha.
5228   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
5229     - If we encounter a bug when flushing a buffer to a TLS connection,
5230       only log the bug once per invocation of the Tor process.
5231       Previously we would log with every occurrence, which could cause
5232       us to run out of disk space. Fixes bug 33093; bugfix
5233       on 0.3.2.2-alpha.
5235   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
5236     - Fix an assertion failure that could result from a corrupted
5237       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
5238       bugfix on 0.3.3.1-alpha. This issue is also tracked
5239       as TROVE-2020-003.
5241   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
5242     - Fix a syntax warning given by newer versions of Rust that was
5243       creating problems for our continuous integration. Fixes bug 33212;
5244       bugfix on 0.3.5.1-alpha.
5246   o Testing (backport from 0.4.3.1-alpha):
5247     - Re-enable the Travis CI macOS Chutney build, but don't let it
5248       prevent the Travis job from finishing. (The Travis macOS jobs are
5249       slow, so we don't want to have it delay the whole CI process.)
5250       Closes ticket 32629.
5251     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
5252       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
5253       fix the sandbox errors in 32722. Closes ticket 32240.
5255   o Testing (continuous integration, backport from 0.4.3.1-alpha):
5256     - Use zstd in our Travis Linux builds. Closes ticket 32242.
5258   o Testing (Travis CI, backport from 0.4.3.3-alpha):
5259     - Remove a redundant distcheck job. Closes ticket 33194.
5260     - Sort the Travis jobs in order of speed: putting the slowest jobs
5261       first takes full advantage of Travis job concurrency. Closes
5262       ticket 33194.
5263     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
5264       previously configured to fast_finish (which requires
5265     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
5266       tool to produce detailed diagnostic output. Closes ticket 32792.
5269 Changes in version 0.4.3.2-alpha - 2020-02-10
5270   This is the second stable alpha release in the Tor 0.4.3.x series. It
5271   fixes several bugs present in the previous alpha release. Anybody
5272   running the previous alpha should upgrade, and look for bugs in this
5273   one instead.
5275   o Major bugfixes (onion service client, authorization):
5276     - On a NEWNYM signal, purge entries from the ephemeral client
5277       authorization cache. The permanent ones are kept. Fixes bug 33139;
5278       bugfix on 0.4.3.1-alpha.
5280   o Minor features (best practices tracker):
5281     - Practracker now supports a --regen-overbroad option to regenerate
5282       the exceptions file, but only to revise exceptions to be _less_
5283       tolerant of best-practices violations. Closes ticket 32372.
5285   o Minor features (continuous integration):
5286     - Run Doxygen Makefile target on Travis, so we can learn about
5287       regressions in our internal documentation. Closes ticket 32455.
5288     - Stop allowing failures on the Travis CI stem tests job. It looks
5289       like all the stem hangs we were seeing before are now fixed.
5290       Closes ticket 33075.
5292   o Minor bugfixes (build system):
5293     - Revise configure options that were either missing or incorrect in
5294       the configure summary. Fixes bug 32230; bugfix on 0.4.3.1-alpha.
5296   o Minor bugfixes (controller protocol):
5297     - Fix a memory leak introduced by refactoring of control reply
5298       formatting code. Fixes bug 33039; bugfix on 0.4.3.1-alpha.
5299     - Fix a memory leak in GETINFO responses. Fixes bug 33103; bugfix
5300       on 0.4.3.1-alpha.
5301     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
5302       report them as SIGNAL events. Previously we would log a bug
5303       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
5305   o Minor bugfixes (logging):
5306     - If we encounter a bug when flushing a buffer to a TLS connection,
5307       only log the bug once per invocation of the Tor process.
5308       Previously we would log with every occurrence, which could cause
5309       us to run out of disk space. Fixes bug 33093; bugfix
5310       on 0.3.2.2-alpha.
5311     - When logging a bug, do not say "Future instances of this warning
5312       will be silenced" unless we are actually going to silence them.
5313       Previously we would say this whenever a BUG() check failed in the
5314       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
5316   o Minor bugfixes (onion service v2):
5317     - Move a series of v2 onion service warnings to protocol-warning
5318       level because they can all be triggered remotely by a malformed
5319       request. Fixes bug 32706; bugfix on 0.1.1.14-alpha.
5321   o Minor bugfixes (onion service v3, client authorization):
5322     - When removing client authorization credentials using the control
5323       port, also remove the associated descriptor, so the onion service
5324       can no longer be contacted. Fixes bug 33148; bugfix
5325       on 0.4.3.1-alpha.
5327   o Minor bugfixes (pluggable transports):
5328     - When receiving a message on standard error from a pluggable
5329       transport, log it at info level, rather than as a warning. Fixes
5330       bug 33005; bugfix on 0.4.0.1-alpha.
5332   o Minor bugfixes (rust, build):
5333     - Fix a syntax warning given by newer versions of Rust that was
5334       creating problems for our continuous integration. Fixes bug 33212;
5335       bugfix on 0.3.5.1-alpha.
5337   o Minor bugfixes (TLS bug handling):
5338     - When encountering a bug in buf_read_from_tls(), return a "MISC"
5339       error code rather than "WANTWRITE". This change might help avoid
5340       some CPU-wasting loops if the bug is ever triggered. Bug reported
5341       by opara. Fixes bug 32673; bugfix on 0.3.0.4-alpha.
5343   o Code simplification and refactoring (mainloop):
5344     - Simplify the ip_address_changed() function by removing redundant
5345       checks. Closes ticket 33091.
5347   o Documentation (manpage):
5348     - Split "Circuit Timeout" options and "Node Selection" options into
5349       their own sections of the tor manpage. Closes tickets 32928 and
5350       32929. Work by Swati Thacker as part of Google Season of Docs.
5353 Changes in version 0.4.2.6 - 2020-01-30
5354   This is the second stable release in the 0.4.2.x series. It backports
5355   several bugfixes from 0.4.3.1-alpha, including some that had affected
5356   the Linux seccomp2 sandbox or Windows services. If you're running with
5357   one of those configurations, you'll probably want to upgrade;
5358   otherwise, you should be fine with 0.4.2.5.
5360   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
5361     - Correct how we use libseccomp. Particularly, stop assuming that
5362       rules are applied in a particular order or that more rules are
5363       processed after the first match. Neither is the case! In
5364       libseccomp <2.4.0 this led to some rules having no effect.
5365       libseccomp 2.4.0 changed how rules are generated, leading to a
5366       different ordering, which in turn led to a fatal crash during
5367       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
5368       Peter Gerber.
5369     - Fix crash when reloading logging configuration while the
5370       experimental sandbox is enabled. Fixes bug 32841; bugfix on
5371       0.4.1.7. Patch by Peter Gerber.
5373   o Minor bugfixes (correctness checks, backport from 0.4.3.1-alpha):
5374     - Use GCC/Clang's printf-checking feature to make sure that
5375       tor_assertf() arguments are correctly typed. Fixes bug 32765;
5376       bugfix on 0.4.1.1-alpha.
5378   o Minor bugfixes (logging, crash, backport from 0.4.3.1-alpha):
5379     - Avoid a possible crash when trying to log a (fatal) assertion
5380       failure about mismatched magic numbers in configuration objects.
5381       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
5383   o Minor bugfixes (testing, backport from 0.4.3.1-alpha):
5384     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
5385       test_practracker.sh script. Doing so caused a test failure. Fixes
5386       bug 32705; bugfix on 0.4.2.1-alpha.
5387     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
5388       skipping practracker checks. Fixes bug 32705; bugfix
5389       on 0.4.2.1-alpha.
5391   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
5392     - Initialize the publish/subscribe system when running as a windows
5393       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
5395   o Testing (backport from 0.4.3.1-alpha):
5396     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
5397       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
5398       fix the sandbox errors in 32722. Closes ticket 32240.
5399     - Re-enable the Travis CI macOS Chutney build, but don't let it
5400       prevent the Travis job from finishing. (The Travis macOS jobs are
5401       slow, so we don't want to have it delay the whole CI process.)
5402       Closes ticket 32629.
5404   o Testing (continuous integration, backport from 0.4.3.1-alpha):
5405     - Use zstd in our Travis Linux builds. Closes ticket 32242.
5408 Changes in version 0.4.1.8 - 2020-01-30
5409   This release backports several bugfixes from later release series,
5410   including some that had affected the Linux seccomp2 sandbox or Windows
5411   services. If you're running with one of those configurations, you'll
5412   probably want to upgrade; otherwise, you should be fine with your
5413   current version of 0.4.1.x.
5415   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
5416     - Correct how we use libseccomp. Particularly, stop assuming that
5417       rules are applied in a particular order or that more rules are
5418       processed after the first match. Neither is the case! In
5419       libseccomp <2.4.0 this led to some rules having no effect.
5420       libseccomp 2.4.0 changed how rules are generated, leading to a
5421       different ordering, which in turn led to a fatal crash during
5422       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
5423       Peter Gerber.
5424     - Fix crash when reloading logging configuration while the
5425       experimental sandbox is enabled. Fixes bug 32841; bugfix on
5426       0.4.1.7. Patch by Peter Gerber.
5428   o Minor bugfixes (crash, backport form 0.4.2.4-rc):
5429     - When running Tor with an option like --verify-config or
5430       --dump-config that does not start the event loop, avoid crashing
5431       if we try to exit early because of an error. Fixes bug 32407;
5432       bugfix on 0.3.3.1-alpha.
5434   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
5435     - Initialize the publish/subscribe system when running as a windows
5436       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
5438   o Testing (backport from 0.4.3.1-alpha):
5439     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
5440       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
5441       fix the sandbox errors in 32722. Closes ticket 32240.
5442     - Re-enable the Travis CI macOS Chutney build, but don't let it
5443       prevent the Travis job from finishing. (The Travis macOS jobs are
5444       slow, so we don't want to have it delay the whole CI process.)
5445       Closes ticket 32629.
5447   o Testing (continuous integration, backport from 0.4.3.1-alpha):
5448     - Use zstd in our Travis Linux builds. Closes ticket 32242.
5451 Changes in version 0.4.3.1-alpha - 2020-01-22
5452   This is the first alpha release in the 0.4.3.x series. It includes
5453   improved support for application integration of onion services, support
5454   for building in a client-only mode, and newly improved internal
5455   documentation (online at https://src-ref.docs.torproject.org/tor/). It
5456   also has numerous other small bugfixes and features, as well as
5457   improvements to our code's internal organization that should help us
5458   write better code in the future.
5460   o New system requirements:
5461     - When building Tor, you now need to have Python 3 in order to run
5462       the integration tests. (Python 2 is officially unsupported
5463       upstream, as of 1 Jan 2020.) Closes ticket 32608.
5465   o Major features (build system):
5466     - The relay code can now be disabled using the --disable-module-relay
5467       configure option. When this option is set, we also disable the
5468       dirauth module. Closes ticket 32123.
5469     - When Tor is compiled --disable-module-relay, we also omit the code
5470       used to act as a directory cache. Closes ticket 32487.
5472   o Major features (directory authority, ed25519):
5473     - Add support for banning a relay's ed25519 keys in the approved-
5474       routers file. This will help us migrate away from RSA keys in the
5475       future. Previously, only RSA keys could be banned in approved-
5476       routers. Resolves ticket 22029. Patch by Neel Chauhan.
5478   o Major features (onion service, controller):
5479     - New control port commands to manage client-side onion service
5480       authorization credentials. The ONION_CLIENT_AUTH_ADD command adds
5481       a credential, ONION_CLIENT_AUTH_REMOVE deletes a credential, and
5482       ONION_CLIENT_AUTH_VIEW lists the credentials. Closes ticket 30381.
5484   o Major features (onion service, SOCKS5):
5485     - Introduce a new SocksPort flag, ExtendedErrors, to support more
5486       detailed error codes in information for applications that support
5487       them. Closes ticket 30382; implements proposal 304.
5489   o Major features (proxy):
5490     - In addition to its current supported proxy types (HTTP CONNECT,
5491       SOCKS4, and SOCKS5), Tor can now make its OR connections through a
5492       HAProxy server. A new torrc option was added to specify the
5493       address/port of the server: TCPProxy <protocol> <host>:<port>.
5494       Currently the only supported protocol for the option is haproxy.
5495       Closes ticket 31518. Patch done by Suphanat Chunhapanya (haxxpop).
5497   o Major bugfixes (linux seccomp sandbox):
5498     - Correct how we use libseccomp. Particularly, stop assuming that
5499       rules are applied in a particular order or that more rules are
5500       processed after the first match. Neither is the case! In
5501       libseccomp <2.4.0 this led to some rules having no effect.
5502       libseccomp 2.4.0 changed how rules are generated, leading to a
5503       different ordering, which in turn led to a fatal crash during
5504       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
5505       Peter Gerber.
5506     - Fix crash when reloading logging configuration while the
5507       experimental sandbox is enabled. Fixes bug 32841; bugfix on
5508       0.4.1.7. Patch by Peter Gerber.
5510   o Major bugfixes (networking):
5511     - Correctly handle IPv6 addresses in SOCKS5 RESOLVE_PTR requests,
5512       and accept strings as well as binary addresses. Fixes bug 32315;
5513       bugfix on 0.3.5.1-alpha.
5515   o Major bugfixes (onion service):
5516     - Report HS circuit failure back into the HS subsystem so we take
5517       appropriate action with regards to the client introduction point
5518       failure cache. This improves reachability of onion services, since
5519       now clients notice failing introduction circuits properly. Fixes
5520       bug 32020; bugfix on 0.3.2.1-alpha.
5522   o Minor feature (configure, build system):
5523     - Output a list of enabled/disabled features at the end of the
5524       configure process in a pleasing way. Closes ticket 31373.
5526   o Minor feature (heartbeat, onion service):
5527     - Add the DoS INTRODUCE2 defenses counter to the heartbeat DoS
5528       message. Closes ticket 31371.
5530   o Minor features (configuration validation):
5531     - Configuration validation can now be done by per-module callbacks,
5532       rather than a global validation function. This will let us reduce
5533       the size of config.c and some of its more cumbersome functions.
5534       Closes ticket 31241.
5536   o Minor features (configuration):
5537     - If a configured hardware crypto accelerator in AccelName is
5538       prefixed with "!", Tor now exits when it cannot be found. Closes
5539       ticket 32406.
5540     - We now use flag-driven logic to warn about obsolete configuration
5541       fields, so that we can include their names. In 0.4.2, we used a
5542       special type, which prevented us from generating good warnings.
5543       Implements ticket 32404.
5545   o Minor features (controller):
5546     - Add stream isolation data to STREAM event. Closes ticket 19859.
5547     - Implement a new GETINFO command to fetch microdescriptor
5548       consensus. Closes ticket 31684.
5550   o Minor features (debugging, directory system):
5551     - Don't crash when we find a non-guard with a guard-fraction value
5552       set. Instead, log a bug warning, in an attempt to figure out how
5553       this happened. Diagnostic for ticket 32868.
5555   o Minor features (defense in depth):
5556     - Add additional checks around tor_vasprintf() usage, in case the
5557       function returns an error. Patch by Tobias Stoeckmann. Fixes
5558       ticket 31147.
5560   o Minor features (developer tooling):
5561     - Remove the 0.2.9.x series branches from git scripts (git-merge-
5562       forward.sh, git-pull-all.sh, git-push-all.sh, git-setup-dirs.sh).
5563       Closes ticket 32772.
5565   o Minor features (developer tools):
5566     - Add a check_cocci_parse.sh script that checks that new code is
5567       parseable by Coccinelle. Add an exceptions file for unparseable
5568       files, and run the script from travis CI. Closes ticket 31919.
5569     - Call the check_cocci_parse.sh script from a 'check-cocci' Makefile
5570       target. Closes ticket 31919.
5571     - Add a rename_c_identifiers.py tool to rename a bunch of C
5572       identifiers at once, and generate a well-formed commit message
5573       describing the change. This should help with refactoring. Closes
5574       ticket 32237.
5575     - Add some scripts in "scripts/coccinelle" to invoke the Coccinelle
5576       semantic patching tool with the correct flags. These flags are
5577       fairly easy to forget, and these scripts should help us use
5578       Coccinelle more effectively in the future. Closes ticket 31705.
5580   o Minor features (Doxygen):
5581     - Update Doxygen configuration file to a more recent template (from
5582       1.8.15). Closes ticket 32110.
5583     - "make doxygen" now works with out-of-tree builds. Closes
5584       ticket 32113.
5585     - Make sure that doxygen outputs documentation for all of our C
5586       files. Previously, some were missing @file declarations, causing
5587       them to be ignored. Closes ticket 32307.
5588     - Our "make doxygen" target now respects --enable-fatal-warnings by
5589       default, and does not warn about items that are missing
5590       documentation. To warn about missing documentation, run configure
5591       with the "--enable-missing-doc-warnings" flag: doing so suspends
5592       fatal warnings for doxygen. Closes ticket 32385.
5594   o Minor features (git scripts):
5595     - Add TOR_EXTRA_CLONE_ARGS to git-setup-dirs.sh for git clone
5596       customisation. Closes ticket 32347.
5597     - Add git-setup-dirs.sh, which sets up an upstream git repository
5598       and worktrees for tor maintainers. Closes ticket 29603.
5599     - Add TOR_EXTRA_REMOTE_* to git-setup-dirs.sh for a custom extra
5600       remote. Closes ticket 32347.
5601     - Call the check_cocci_parse.sh script from the git commit and push
5602       hooks. Closes ticket 31919.
5603     - Make git-push-all.sh skip unchanged branches when pushing to
5604       upstream. The script already skipped unchanged test branches.
5605       Closes ticket 32216.
5606     - Make git-setup-dirs.sh create a master symlink in the worktree
5607       directory. Closes ticket 32347.
5608     - Skip unmodified source files when doing some existing git hook
5609       checks. Related to ticket 31919.
5611   o Minor features (IPv6, client):
5612     - Make Tor clients tell dual-stack exits that they prefer IPv6
5613       connections. This change is equivalent to setting the PreferIPv6
5614       flag on SOCKSPorts (and most other listener ports). Tor Browser
5615       has been setting this flag for some time, and we want to remove a
5616       client distinguisher at exits. Closes ticket 32637.
5618   o Minor features (portability, android):
5619     - When building for Android, disable some tests that depend on $HOME
5620       and/or pwdb, which Android doesn't have. Closes ticket 32825.
5621       Patch from Hans-Christoph Steiner.
5623   o Minor features (relay modularity):
5624     - Split the relay and server pluggable transport config code into
5625       separate files in the relay module. Disable this code when the
5626       relay module is disabled. Closes part of ticket 32213.
5627     - When the relay module is disabled, reject attempts to set the
5628       ORPort, DirPort, DirCache, BridgeRelay, ExtORPort, or
5629       ServerTransport* options, rather than ignoring the values of these
5630       options. Closes part of ticket 32213.
5632   o Minor features (relay):
5633     - When the relay module is disabled, change the default config so
5634       that DirCache is 0, and ClientOnly is 1. Closes ticket 32410.
5636   o Minor features (release tools):
5637     - Port our ChangeLog formatting and sorting tools to Python 3.
5638       Closes ticket 32704.
5640   o Minor features (testing):
5641     - Detect some common failure cases for test_parseconf.sh in
5642       src/test/conf_failures. Closes ticket 32451.
5643     - Allow test_parseconf.sh to test expected log outputs for successful
5644       configs, as well as failed configs. Closes ticket 32451.
5645     - The test_parseconf.sh script now supports result variants for any
5646       combination of the optional libraries lzma, nss, and zstd. Closes
5647       ticket 32397.
5649   o Minor features (tests, Android):
5650     - When running the unit tests on Android, create temporary files in
5651       a subdirectory of /data/local/tmp. Closes ticket 32172. Based on a
5652       patch from Hans-Christoph Steiner.
5654   o Minor bugfixes (bridges):
5655     - Lowercase the configured value of BridgeDistribution before adding
5656       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
5658   o Minor bugfixes (build system):
5659     - Fix "make autostyle" for out-of-tree builds. Fixes bug 32370;
5660       bugfix on 0.4.1.2-alpha.
5662   o Minor bugfixes (configuration handling):
5663     - Make control_event_conf_changed() take in a config_line_t instead
5664       of a smartlist of alternating key/value entries. Fixes bug 31531;
5665       bugfix on 0.2.3.3-alpha. Patch by Neel Chauhan.
5667   o Minor bugfixes (configuration):
5668     - Check for multiplication overflow when parsing memory units inside
5669       configuration. Fixes bug 30920; bugfix on 0.0.9rc1.
5670     - When dumping the configuration, stop adding a trailing space after
5671       the option name when there is no option value. This issue only
5672       affects options that accept an empty value or list. (Most options
5673       reject empty values, or delete the entire line from the dumped
5674       options.) Fixes bug 32352; bugfix on 0.0.9pre6.
5675     - Avoid changing the user's value of HardwareAccel as stored by
5676       SAVECONF, when AccelName is set but HardwareAccel is not. Fixes
5677       bug 32382; bugfix on 0.2.2.1-alpha.
5678     - When creating a KeyDirectory with the same location as the
5679       DataDirectory (not recommended), respect the DataDirectory's
5680       group-readable setting if one has not been set for the
5681       KeyDirectory. Fixes bug 27992; bugfix on 0.3.3.1-alpha.
5683   o Minor bugfixes (controller):
5684     - In routerstatus_has_changed(), check all the fields that are
5685       output over the control port. Fixes bug 20218; bugfix
5686       on 0.1.1.11-alpha
5688   o Minor bugfixes (correctness checks):
5689     - Use GCC/Clang's printf-checking feature to make sure that
5690       tor_assertf() arguments are correctly typed. Fixes bug 32765;
5691       bugfix on 0.4.1.1-alpha.
5693   o Minor bugfixes (developer tools):
5694     - Allow paths starting with ./ in scripts/add_c_file.py. Fixes bug
5695       31336; bugfix on 0.4.1.2-alpha.
5697   o Minor bugfixes (dirauth module):
5698     - Split the dirauth config code into a separate file in the dirauth
5699       module. Disable this code when the dirauth module is disabled.
5700       Closes ticket 32213.
5701     - When the dirauth module is disabled, reject attempts to set the
5702       AuthoritativeDir option, rather than ignoring the value of the
5703       option. Fixes bug 32213; bugfix on 0.3.4.1-alpha.
5705   o Minor bugfixes (embedded Tor):
5706     - When starting Tor any time after the first time in a process,
5707       register the thread in which it is running as the main thread.
5708       Previously, we only did this on Windows, which could lead to bugs
5709       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
5710       on 0.3.3.1-alpha.
5712   o Minor bugfixes (git scripts):
5713     - Avoid sleeping before the last push in git-push-all.sh. Closes
5714       ticket 32216.
5715     - Forward all unrecognised arguments in git-push-all.sh to git push.
5716       Closes ticket 32216.
5718   o Minor bugfixes (hidden service v3):
5719     - Do not rely on a "circuit established" flag for intro circuits but
5720       instead always query the HS circuit map. This is to avoid sync
5721       issue with that flag and the map. Fixes bug 32094; bugfix
5722       on 0.3.2.1-alpha.
5724   o Minor bugfixes (logging, crash):
5725     - Avoid a possible crash when trying to log a (fatal) assertion
5726       failure about mismatched magic numbers in configuration objects.
5727       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
5729   o Minor bugfixes (onion service v2):
5730     - When sending the INTRO cell for a v2 Onion Service, look at the
5731       failure cache alongside timeout values to check if the intro point
5732       is marked as failed. Previously, we only looked at the relay
5733       timeout values. Fixes bug 25568; bugfix on 0.2.7.3-rc. Patch by
5734       Neel Chauhan.
5736   o Minor bugfixes (onion services v3, client):
5737     - Properly handle the client rendezvous circuit timeout. Previously
5738       Tor would sometimes timeout a rendezvous circuit awaiting the
5739       introduction ACK, and find itself unable to re-establish all
5740       circuits because the rendezvous circuit timed out too early. Fixes
5741       bug 32021; bugfix on 0.3.2.1-alpha.
5743   o Minor bugfixes (onion services):
5744     - In cancel_descriptor_fetches(), use
5745       connection_list_by_type_purpose() instead of
5746       connection_list_by_type_state(). Fixes bug 32639; bugfix on
5747       0.3.2.1-alpha. Patch by Neel Chauhan.
5749   o Minor bugfixes (scripts):
5750     - Fix update_versions.py for out-of-tree builds. Fixes bug 32371;
5751       bugfix on 0.4.0.1-alpha.
5753   o Minor bugfixes (test):
5754     - Use the same code to find the tor binary in all of our test
5755       scripts. This change makes sure we are always using the coverage
5756       binary when coverage is enabled. Fixes bug 32368; bugfix
5757       on 0.2.7.3-rc.
5759   o Minor bugfixes (testing):
5760     - Stop ignoring "tor --dump-config" errors in test_parseconf.sh.
5761       Fixes bug 32468; bugfix on 0.4.2.1-alpha.
5762     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
5763       test_practracker.sh script. Doing so caused a test failure. Fixes
5764       bug 32705; bugfix on 0.4.2.1-alpha.
5765     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
5766       skipping practracker checks. Fixes bug 32705; bugfix
5767       on 0.4.2.1-alpha.
5769   o Minor bugfixes (tests):
5770     - Our option-validation tests no longer depend on specially
5771       configured non-default, non-passing sets of options. Previously,
5772       the tests had been written to assume that options would _not_ be
5773       set to their defaults, which led to needless complexity and
5774       verbosity. Fixes bug 32175; bugfix on 0.2.8.1-alpha.
5776   o Minor bugfixes (windows service):
5777     - Initialize the publish/subscribe system when running as a windows
5778       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
5780   o Deprecated features:
5781     - Deprecate the ClientAutoIPv6ORPort option. This option was not
5782       true "Happy Eyeballs", and often failed on connections that
5783       weren't reliably dual-stack. Closes ticket 32942. Patch by
5784       Neel Chauhan.
5786   o Documentation:
5787     - Provide a quickstart guide for a Circuit Padding Framework, and
5788       documentation for researchers to implement and study circuit
5789       padding machines. Closes ticket 28804.
5790     - Add documentation in 'HelpfulTools.md' to describe how to build a
5791       tag file. Closes ticket 32779.
5792     - Create a high-level description of the long-term software
5793       architecture goals. Closes ticket 32206.
5794     - Describe the --dump-config command in the manual page. Closes
5795       ticket 32467.
5796     - Unite coding advice from this_not_that.md in torguts repo into our
5797       coding standards document. Resolves ticket 31853.
5799   o Removed features:
5800     - Our Doxygen configuration no longer generates LaTeX output. The
5801       reference manual produced by doing this was over 4000 pages long,
5802       and generally unusable. Closes ticket 32099.
5803     - The option "TestingEstimatedDescriptorPropagationTime" is now
5804       marked as obsolete. It has had no effect since 0.3.0.7, when
5805       clients stopped rejecting consensuses "from the future". Closes
5806       ticket 32807.
5807     - We no longer support consensus methods before method 28; these
5808       methods were only used by authorities running versions of Tor that
5809       are now at end-of-life. In effect, this means that clients,
5810       relays, and authorities now assume that authorities will be
5811       running version 0.3.5.x or later. Closes ticket 32695.
5813   o Testing:
5814     - Add more test cases for tor's UTF-8 validation function. Also,
5815       check the arguments passed to the function for consistency. Closes
5816       ticket 32845.
5817     - Improve test coverage for relay and dirauth config code, focusing
5818       on option validation and normalization. Closes ticket 32213.
5819     - Improve the consistency of test_parseconf.sh output, and run all
5820       the tests, even if one fails. Closes ticket 32213.
5821     - Re-enable the Travis CI macOS Chutney build, but don't let it
5822       prevent the Travis job from finishing. (The Travis macOS jobs are
5823       slow, so we don't want to have it delay the whole CI process.)
5824       Closes ticket 32629.
5825     - Run the practracker unit tests in the pre-commit git hook. Closes
5826       ticket 32609.
5827     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
5828       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
5829       fix the sandbox errors in 32722. Closes ticket 32240.
5831   o Code simplification and refactoring (channel):
5832     - Channel layer had a variable length cell handler that was not used
5833       and thus removed. Closes ticket 32892.
5835   o Code simplification and refactoring (configuration):
5836     - Immutability is now implemented as a flag on individual
5837       configuration options rather than as part of the option-transition
5838       checking code. Closes ticket 32344.
5839     - Instead of keeping a list of configuration options to check for
5840       relative paths, check all the options whose type is "FILENAME".
5841       Solves part of ticket 32339.
5842     - Our default log (which ordinarily sends NOTICE-level messages to
5843       standard output) is now handled in a more logical manner.
5844       Previously, we replaced the configured log options if they were
5845       empty. Now, we interpret an empty set of log options as meaning
5846       "use the default log". Closes ticket 31999.
5847     - Remove some unused arguments from the options_validate() function,
5848       to simplify our code and tests. Closes ticket 32187.
5849     - Simplify the options_validate() code so that it looks at the
5850       default options directly, rather than taking default options as an
5851       argument. This change lets us simplify its interface. Closes
5852       ticket 32185.
5853     - Use our new configuration architecture to move most authority-
5854       related options to the directory authority module. Closes
5855       ticket 32806.
5856     - When parsing the command line, handle options that determine our
5857       "quiet level" and our mode of operation (e.g., --dump-config and
5858       so on) all in one table. Closes ticket 32003.
5860   o Code simplification and refactoring (controller):
5861     - Create a new abstraction for formatting control protocol reply
5862       lines based on key-value pairs. Refactor some existing control
5863       protocol code to take advantage of this. Closes ticket 30984.
5864     - Create a helper function that can fetch network status or
5865       microdesc consensuses. Closes ticket 31684.
5867   o Code simplification and refactoring (dirauth modularization):
5868     - Remove the last remaining HAVE_MODULE_DIRAUTH inside a function.
5869       Closes ticket 32163.
5870     - Replace some confusing identifiers in process_descs.c. Closes
5871       ticket 29826.
5872     - Simplify some relay and dirauth config code. Closes ticket 32213.
5874   o Code simplification and refactoring (misc):
5875     - Make all the structs we declare follow the same naming convention
5876       of ending with "_t". Closes ticket 32415.
5877     - Move and rename some configuration-related code for clarity.
5878       Closes ticket 32304.
5879     - Our include.am files are now broken up by subdirectory.
5880       Previously, src/core/include.am covered all of the subdirectories
5881       in "core", "feature", and "app". Closes ticket 32137.
5882     - Remove underused NS*() macros from test code: they make our tests
5883       more confusing, especially for code-formatting tools. Closes
5884       ticket 32887.
5886   o Code simplification and refactoring (relay modularization):
5887     - Disable relay_periodic when the relay module is disabled. Closes
5888       ticket 32244.
5889     - Disable relay_sys when the relay module is disabled. Closes
5890       ticket 32245.
5892   o Code simplification and refactoring (tool support):
5893     - Add numerous missing dependencies to our include files, so that
5894       they can be included in different reasonable orders and still
5895       compile. Addresses part of ticket 32764.
5896     - Fix some parts of our code that were difficult for Coccinelle to
5897       parse. Related to ticket 31705.
5898     - Fix some small issues in our code that prevented automatic
5899       formatting tools from working. Addresses part of ticket 32764.
5901   o Documentation (manpage):
5902     - Alphabetize the Client Options section of the tor manpage. Closes
5903       ticket 32846.
5904     - Alphabetize the General Options section of the tor manpage. Closes
5905       ticket 32708.
5906     - In the tor(1) manpage, reword and improve formatting of the
5907       COMMAND-LINE OPTIONS and DESCRIPTION sections. Closes ticket
5908       32277. Based on work by Swati Thacker as part of Google Season
5909       of Docs.
5910     - In the tor(1) manpage, reword and improve formatting of the FILES,
5911       SEE ALSO, and BUGS sections. Closes ticket 32176. Based on work by
5912       Swati Thacker as part of Google Season of Docs.
5914   o Testing (circuit, EWMA):
5915     - Add unit tests for circuitmux and EWMA subsystems. Closes
5916       ticket 32196.
5918   o Testing (continuous integration):
5919     - Use zstd in our Travis Linux builds. Closes ticket 32242.
5922 Changes in version 0.4.2.5 - 2019-12-09
5923   This is the first stable release in the 0.4.2.x series. This series
5924   improves reliability and stability, and includes several stability and
5925   correctness improvements for onion services. It also fixes many smaller
5926   bugs present in previous series.
5928   Per our support policy, we will support the 0.4.2.x series for nine
5929   months, or until three months after the release of a stable 0.4.3.x:
5930   whichever is longer. If you need longer-term support, please stick
5931   with 0.3.5.x, which will we plan to support until Feb 2022.
5933   Per our support policy, we will support the 0.4.2.x series for nine
5934   months, or until three months after the release of a stable 0.4.3.x:
5935   whichever is longer. If you need longer-term support, please stick
5936   with 0.3.5.x, which will we plan to support until Feb 2022.
5938   Below are the changes since 0.4.1.4-rc. For a complete list of changes
5939   since 0.4.1.5, see the ReleaseNotes file.
5941   o Minor features (geoip):
5942     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
5943       Country database. Closes ticket 32685.
5945   o Testing:
5946     - Require C99 standards-conforming code in Travis CI, but allow GNU
5947       gcc extensions. Also activates clang's -Wtypedef-redefinition
5948       warnings. Build some jobs with -std=gnu99, and some jobs without.
5949       Closes ticket 32500.
5952 Changes in version 0.4.1.7 - 2019-12-09
5953   This release backports several bugfixes to improve stability and
5954   correctness.  Anyone experiencing build problems or crashes with 0.4.1.6,
5955   including all relays relying on AccountingMax, should upgrade.
5957   o Major features (directory authorities, backport from 0.4.2.2-alpha):
5958     - Directory authorities now reject relays running all currently
5959       deprecated release series. The currently supported release series
5960       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
5962   o Major bugfixes (embedded Tor, backport from 0.4.2.2-alpha):
5963     - Avoid a possible crash when restarting Tor in embedded mode and
5964       enabling a different set of publish/subscribe messages. Fixes bug
5965       31898; bugfix on 0.4.1.1-alpha.
5967   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
5968     - Relays now respect their AccountingMax bandwidth again. When
5969       relays entered "soft" hibernation (which typically starts when
5970       we've hit 90% of our AccountingMax), we had stopped checking
5971       whether we should enter hard hibernation. Soft hibernation refuses
5972       new connections and new circuits, but the existing circuits can
5973       continue, meaning that relays could have exceeded their configured
5974       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
5976   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
5977     - Stop ignoring torrc options after an %include directive, when the
5978       included directory ends with a file that does not contain any
5979       config options (but does contain comments or whitespace). Fixes
5980       bug 31408; bugfix on 0.3.1.1-alpha.
5982   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
5983     - Onion services now always use the exact number of intro points
5984       configured with the HiddenServiceNumIntroductionPoints option (or
5985       fewer if nodes are excluded). Before, a service could sometimes
5986       pick more intro points than configured. Fixes bug 31548; bugfix
5987       on 0.3.2.1-alpha.
5989   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
5990     - When building on Appveyor and Travis, pass the "-k" flag to make,
5991       so that we are informed of all compilation failures, not just the
5992       first one or two. Closes ticket 31372.
5994   o Minor features (geoip, backport from 0.4.2.5):
5995     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
5996       Country database. Closes ticket 32685.
5998   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
5999     - Avoid spurious errors when Appveyor CI fails before the install step.
6000       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
6002   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
6003     - Fix a BUG() assertion that occurs within a very small race window
6004       between when a client intro circuit opens and when its descriptor
6005       gets cleaned up from the cache. The circuit is now closed early,
6006       which will trigger a re-fetch of the descriptor and continue the
6007       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
6009   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
6010     - Avoid trying to read data from closed connections, which can cause
6011       needless loops in Libevent and infinite loops in Shadow. Fixes bug
6012       30344; bugfix on 0.1.1.1-alpha.
6014   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
6015     - On abort, try harder to flush the output buffers of log messages.
6016       On some platforms (macOS), log messages could be discarded when
6017       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
6018     - Report the tor version whenever an assertion fails. Previously, we
6019       only reported the Tor version on some crashes, and some non-fatal
6020       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
6021     - When tor aborts due to an error, close log file descriptors before
6022       aborting. Closing the logs makes some OSes flush log file buffers,
6023       rather than deleting buffered log lines. Fixes bug 31594; bugfix
6024       on 0.2.5.2-alpha.
6026   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
6027     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
6028       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
6029     - Disable backtrace signal handlers when shutting down tor. Fixes
6030       bug 31614; bugfix on 0.2.5.2-alpha.
6031     - Rate-limit the logging message about the obsolete .exit
6032       notation. Previously, there was no limit on this warning, which
6033       could potentially be triggered many times by a hostile website.
6034       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
6036   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
6037     - Do not log a nonfatal assertion failure when receiving a VERSIONS
6038       cell on a connection using the obsolete v1 link protocol. Log a
6039       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
6041   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
6042     - Reset the periodic events' "enabled" flag when Tor is shut down
6043       cleanly. Previously, this flag was left on, which caused periodic
6044       events not to be re-enabled when Tor was relaunched in-process
6045       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
6046       on 0.3.3.1-alpha.
6048   o Minor bugfixes (multithreading, backport from 0.4.2.2-alpha):
6049     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
6050       31736; bugfix on 0.0.7.
6052   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
6053     - Remove overly strict assertions that triggered when a pluggable
6054       transport failed to launch. Fixes bug 31091; bugfix
6055       on 0.4.0.1-alpha.
6056     - Remove an assertion in the Unix process backend. This assertion
6057       would trigger when we failed to find the executable for a child
6058       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
6060   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
6061     - Avoid crashing when starting with a corrupt keys directory where
6062       the old ntor key and the new ntor key are identical. Fixes bug
6063       30916; bugfix on 0.2.4.8-alpha.
6065   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
6066     - When testing port rebinding, don't busy-wait for tor to log.
6067       Instead, actually sleep for a short time before polling again.
6068       Also improve the formatting of control commands and log messages.
6069       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
6071   o Minor bugfixes (tests, SunOS, backport from 0.4.2.2-alpha):
6072     - Avoid a map_anon_nofork test failure due to a signed/unsigned
6073       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
6075   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
6076     - Log bugs about the TLS read buffer's length only once, rather than
6077       filling the logs with similar warnings. Fixes bug 31939; bugfix
6078       on 0.3.0.4-rc.
6080   o Documentation (backport from 0.4.2.2-alpha):
6081     - Explain why we can't destroy the backtrace buffer mutex. Explain
6082       why we don't need to destroy the log mutex. Closes ticket 31736.
6084   o Testing (continuous integration, backport from 0.4.2.3-alpha):
6085     - Disable all but one Travis CI macOS build, to mitigate slow
6086       scheduling of Travis macOS jobs. Closes ticket 32177.
6087     - Run the chutney IPv6 networks as part of Travis CI. Closes
6088       ticket 30860.
6089     - Simplify the Travis CI build matrix, and optimise for build time.
6090       Closes ticket 31859.
6091     - Use Windows Server 2019 instead of Windows Server 2016 in our
6092       Appveyor builds. Closes ticket 32086.
6094   o Testing (continuous integration, backport from 0.4.2.4-rc):
6095     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
6096     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
6097       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
6098       until we can fix some Bionic permissions issues (see ticket
6099       32240). Related to ticket 31919.
6100     - Install the mingw OpenSSL package in Appveyor. This makes sure
6101       that the OpenSSL headers and libraries match in Tor's Appveyor
6102       builds. (This bug was triggered by an Appveyor image update.)
6103       Fixes bug 32449; bugfix on 0.3.5.6-rc.
6105   o Testing (continuous integration, backport from 0.4.2.5):
6106     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
6107       extensions. Also activates clang's -Wtypedef-redefinition warnings.
6108       Build some jobs with -std=gnu99, and some jobs without.
6109       Closes ticket 32500.
6112 Changes in version 0.4.0.6 - 2019-12-09
6113   This is the second stable release in the 0.4.0.x series. This release
6114   backports several bugfixes to improve stability and correctness.  Anyone
6115   experiencing build problems or crashes with 0.4.0.5, including all relays
6116   relying on AccountingMax, should upgrade.
6118   Note that, per our support policy, support for the 0.4.0.x series will end
6119   on 2 Feb 2020.  Anyone still running 0.4.0.x should plan to upgrade to the
6120   latest stable release, or downgrade to 0.3.5.x, which will get long-term
6121   support until 1 Feb 2022.
6123   o Directory authority changes (backport from 0.4.1.5):
6124     - The directory authority "dizum" has a new IP address. Closes
6125       ticket 31406.
6127   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
6128     - Consider our directory information to have changed when our list
6129       of bridges changes. Previously, Tor would not re-compute the
6130       status of its directory information when bridges changed, and
6131       therefore would not realize that it was no longer able to build
6132       circuits. Fixes part of bug 29875.
6133     - Do not count previously configured working bridges towards our
6134       total of working bridges. Previously, when Tor's list of bridges
6135       changed, it would think that the old bridges were still usable,
6136       and delay fetching router descriptors for the new ones. Fixes part
6137       of bug 29875; bugfix on 0.3.0.1-alpha.
6139   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
6140     - When considering upgrading circuits from "waiting for guard" to
6141       "open", always ignore circuits that are marked for close. Otherwise,
6142       we can end up in the situation where a subsystem is notified that
6143       a closing circuit has just opened, leading to undesirable
6144       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
6146   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
6147     - Properly clean up the introduction point map when circuits change
6148       purpose from onion service circuits to pathbias, measurement, or
6149       other circuit types. This should fix some service-side instances
6150       of introduction point failure. Fixes bug 29034; bugfix
6151       on 0.3.2.1-alpha.
6153   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
6154     - Fix an unreachable bug in which an introduction point could try to
6155       send an INTRODUCE_ACK with a status code that Trunnel would refuse
6156       to encode, leading the relay to assert(). We've consolidated the
6157       ABI values into Trunnel now. Fixes bug 30454; bugfix
6158       on 0.3.0.1-alpha.
6159     - Clients can now handle unknown status codes from INTRODUCE_ACK
6160       cells. (The NACK behavior will stay the same.) This will allow us
6161       to extend status codes in the future without breaking the normal
6162       client behavior. Fixes another part of bug 30454; bugfix
6163       on 0.3.0.1-alpha.
6165   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
6166     - Relays now respect their AccountingMax bandwidth again. When
6167       relays entered "soft" hibernation (which typically starts when
6168       we've hit 90% of our AccountingMax), we had stopped checking
6169       whether we should enter hard hibernation. Soft hibernation refuses
6170       new connections and new circuits, but the existing circuits can
6171       continue, meaning that relays could have exceeded their configured
6172       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
6174   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
6175     - Stop ignoring torrc options after an %include directive, when the
6176       included directory ends with a file that does not contain any
6177       config options (but does contain comments or whitespace). Fixes
6178       bug 31408; bugfix on 0.3.1.1-alpha.
6180   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
6181     - Onion services now always use the exact number of intro points
6182       configured with the HiddenServiceNumIntroductionPoints option (or
6183       fewer if nodes are excluded). Before, a service could sometimes
6184       pick more intro points than configured. Fixes bug 31548; bugfix
6185       on 0.3.2.1-alpha.
6187   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
6188     - Add a "--list-modules" command to print a list of which compile-
6189       time modules are enabled. Closes ticket 30452.
6191   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
6192     - Remove sudo configuration lines from .travis.yml as they are no
6193       longer needed with current Travis build environment. Resolves
6194       issue 30213.
6196   o Minor features (continuous integration, backport from 0.4.1.4-rc):
6197     - Our Travis configuration now uses Chutney to run some network
6198       integration tests automatically. Closes ticket 29280.
6200   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
6201     - When building on Appveyor and Travis, pass the "-k" flag to make,
6202       so that we are informed of all compilation failures, not just the
6203       first one or two. Closes ticket 31372.
6205   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
6206     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
6207       in December 2018 (of which ~122 were still functional), with a
6208       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
6209       in June 2019. Closes ticket 28795.
6211   o Minor features (geoip, backport from 0.4.2.5):
6212     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
6213       Country database. Closes ticket 32685.
6215   o Minor features (stem tests, backport from 0.4.2.1-alpha):
6216     - Change "make test-stem" so it only runs the stem tests that use
6217       tor. This change makes test-stem faster and more reliable. Closes
6218       ticket 31554.
6220   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
6221     - Avoid spurious errors when Appveyor CI fails before the install step.
6222       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
6224   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
6225     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
6226       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
6228   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
6229     - Fix a logic error that prevented the SessionGroup sub-option from
6230       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
6232   o Minor bugfixes (circuit padding, backport from 0.4.1.4-rc):
6233     - On relays, properly check that a padding machine is absent before
6234       logging a warning about it being absent. Fixes bug 30649; bugfix
6235       on 0.4.0.1-alpha.
6237   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
6238     - Fix a BUG() assertion that occurs within a very small race window
6239       between when a client intro circuit opens and when its descriptor
6240       gets cleaned up from the cache. The circuit is now closed early,
6241       which will trigger a re-fetch of the descriptor and continue the
6242       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
6244   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
6245     - Don't believe clock skew results from NETINFO cells that appear to
6246       arrive before we sent the VERSIONS cells they are responding to.
6247       Previously, we would accept them up to 3 minutes "in the past".
6248       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
6250   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
6251     - Fix a compilation warning on Windows about casting a function
6252       pointer for GetTickCount64(). Fixes bug 31374; bugfix
6253       on 0.2.9.1-alpha.
6255   o Minor bugfixes (compilation, backport from 0.4.1.5):
6256     - Avoid using labs() on time_t, which can cause compilation warnings
6257       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
6259   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
6260     - Suppress spurious float-conversion warnings from GCC when calling
6261       floating-point classifier functions on FreeBSD. Fixes part of bug
6262       31687; bugfix on 0.3.1.5-alpha.
6264   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
6265     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
6266       due to missing declarations of abort(), and prevent other such
6267       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
6269   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
6270     - Fix a bug that prevented us from supporting SOCKS5 proxies that
6271       want authentication along with configured (but unused!)
6272       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
6274   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
6275     - Avoid trying to read data from closed connections, which can cause
6276       needless loops in Libevent and infinite loops in Shadow. Fixes bug
6277       30344; bugfix on 0.1.1.1-alpha.
6279   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
6280     - Allow the test-stem job to fail in Travis, because it sometimes
6281       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
6282     - Skip test_rebind on macOS in Travis, because it is unreliable on
6283       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
6284     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
6285       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
6287   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
6288     - Avoid a set of possible code paths that could try to use freed
6289       memory in routerlist_free() while Tor was exiting. Fixes bug
6290       31003; bugfix on 0.1.2.2-alpha.
6292   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
6293     - Stop crashing after parsing an unknown descriptor purpose
6294       annotation. We think this bug can only be triggered by modifying a
6295       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
6297   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
6298     - Move the "bandwidth-file-headers" line in directory authority
6299       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
6300       on 0.3.5.1-alpha.
6302   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
6303     - On abort, try harder to flush the output buffers of log messages.
6304       On some platforms (macOS), log messages could be discarded when
6305       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
6306     - Report the tor version whenever an assertion fails. Previously, we
6307       only reported the Tor version on some crashes, and some non-fatal
6308       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
6310   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
6311     - When extracting an IPv6 address from a PF-based proxy, verify that
6312       we are actually configured to receive an IPv6 address, and log an
6313       internal error if not. Fixes part of bug 31687; bugfix
6314       on 0.2.3.4-alpha.
6316   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
6317     - When tor is missing descriptors for some primary entry guards,
6318       make the log message less alarming. It's normal for descriptors to
6319       expire, as long as tor fetches new ones soon after. Fixes bug
6320       31657; bugfix on 0.3.3.1-alpha.
6322   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
6323     - Do not log a warning when running with an OpenSSL version other
6324       than the one Tor was compiled with, if the two versions should be
6325       compatible. Previously, we would warn whenever the version was
6326       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
6328   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
6329     - Change log level of message "Hash of session info was not as
6330       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
6331       on 0.1.1.10-alpha.
6333   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
6334     - Rate-limit the logging message about the obsolete .exit
6335       notation. Previously, there was no limit on this warning, which
6336       could potentially be triggered many times by a hostile website.
6337       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
6339   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
6340     - Do not log a nonfatal assertion failure when receiving a VERSIONS
6341       cell on a connection using the obsolete v1 link protocol. Log a
6342       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
6344   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
6345     - Reset the periodic events' "enabled" flag when Tor is shut down
6346       cleanly. Previously, this flag was left on, which caused periodic
6347       events not to be re-enabled when Tor was relaunched in-process
6348       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
6349       on 0.3.3.1-alpha.
6351   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
6352     - Avoid a minor memory leak that could occur on relays when failing
6353       to create a "keys" directory. Fixes bug 30148; bugfix
6354       on 0.3.3.1-alpha.
6356   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
6357     - Fix a trivial memory leak when parsing an invalid value
6358       from a download schedule in the configuration. Fixes bug
6359       30894; bugfix on 0.3.4.1-alpha.
6361   o Minor bugfixes (NetBSD, backport from 0.4.1.2-alpha):
6362     - Fix usage of minherit() on NetBSD and other platforms that define
6363       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
6364       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
6366   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
6367     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
6368       implementation) when failing to load an onion service client
6369       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
6371   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
6372     - When purging the DNS cache because of an out-of-memory condition,
6373       try purging just the older entries at first. Previously, we would
6374       always purge the whole thing. Fixes bug 29617; bugfix
6375       on 0.3.5.1-alpha.
6377   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
6378     - Avoid crashing in our tor_vasprintf() implementation on systems
6379       that define neither vasprintf() nor _vscprintf(). (This bug has
6380       been here long enough that we question whether people are running
6381       Tor on such systems, but we're applying the fix out of caution.)
6382       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
6383       Tobias Stoeckmann.
6385   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
6386     - Remove overly strict assertions that triggered when a pluggable
6387       transport failed to launch. Fixes bug 31091; bugfix
6388       on 0.4.0.1-alpha.
6389     - Remove an assertion in the Unix process backend. This assertion
6390       would trigger when we failed to find the executable for a child
6391       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
6393   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
6394     - Avoid crashing when starting with a corrupt keys directory where
6395       the old ntor key and the new ntor key are identical. Fixes bug
6396       30916; bugfix on 0.2.4.8-alpha.
6398   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
6399     - Correctly exclude a redundant rust build job in Travis. Fixes bug
6400       31463; bugfix on 0.3.5.4-alpha.
6402   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
6403     - When testing port rebinding, don't busy-wait for tor to log.
6404       Instead, actually sleep for a short time before polling again.
6405       Also improve the formatting of control commands and log messages.
6406       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
6408   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
6409     - Log bugs about the TLS read buffer's length only once, rather than
6410       filling the logs with similar warnings. Fixes bug 31939; bugfix
6411       on 0.3.0.4-rc.
6413   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
6414     - Always retry v2 single onion service intro and rend circuits with
6415       a 3-hop path. Previously, v2 single onion services used a 3-hop
6416       path when rendezvous circuits were retried after a remote or
6417       delayed failure, but a 1-hop path for immediate retries. Fixes bug
6418       23818; bugfix on 0.2.9.3-alpha.
6419     - Make v3 single onion services fall back to a 3-hop intro, when all
6420       intro points are unreachable via a 1-hop path. Previously, v3
6421       single onion services failed when all intro nodes were unreachable
6422       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
6424   o Documentation (backport from 0.4.2.1-alpha):
6425     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
6426       notice.html so that operators no longer have to host it
6427       themselves. Closes ticket 31089.
6429   o Testing (backport from 0.4.1.2-alpha):
6430     - Specify torrc paths (with empty files) when launching tor in
6431       integration tests; refrain from reading user and system torrcs.
6432       Resolves issue 29702.
6434   o Testing (continuous integration, backport from 0.4.1.1-alpha):
6435     - In Travis, show stem's tor log after failure. Closes ticket 30234.
6437   o Testing (continuous integration, backport from 0.4.1.5):
6438     - In Travis, make stem log a controller trace to the console, and
6439       tail stem's tor log after failure. Closes ticket 30591.
6440     - In Travis, only run the stem tests that use a tor binary. Closes
6441       ticket 30694.
6443   o Testing (continuous integration, backport from 0.4.2.3-alpha):
6444     - Disable all but one Travis CI macOS build, to mitigate slow
6445       scheduling of Travis macOS jobs. Closes ticket 32177.
6446     - Run the chutney IPv6 networks as part of Travis CI. Closes
6447       ticket 30860.
6448     - Simplify the Travis CI build matrix, and optimise for build time.
6449       Closes ticket 31859.
6450     - Use Windows Server 2019 instead of Windows Server 2016 in our
6451       Appveyor builds. Closes ticket 32086.
6453   o Testing (continuous integration, backport from 0.4.2.4-rc):
6454     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
6455       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
6456       until we can fix some Bionic permissions issues (see ticket
6457       32240). Related to ticket 31919.
6458     - Install the mingw OpenSSL package in Appveyor. This makes sure
6459       that the OpenSSL headers and libraries match in Tor's Appveyor
6460       builds. (This bug was triggered by an Appveyor image update.)
6461       Fixes bug 32449; bugfix on 0.3.5.6-rc.
6462     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
6464   o Testing (continuous integration, backport from 0.4.2.5):
6465     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
6466       extensions. Also activates clang's -Wtypedef-redefinition warnings.
6467       Build some jobs with -std=gnu99, and some jobs without.
6468       Closes ticket 32500.
6470 Changes in version 0.3.5.9 - 2019-12-09
6471   Tor 0.3.5.9 backports serveral fixes from later releases, including
6472   several that affect bridge users, relay stability, onion services,
6473   and much more.
6475   o Directory authority changes (backport from 0.4.1.5):
6476     - The directory authority "dizum" has a new IP address. Closes
6477       ticket 31406.
6479   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
6480     - Consider our directory information to have changed when our list
6481       of bridges changes. Previously, Tor would not re-compute the
6482       status of its directory information when bridges changed, and
6483       therefore would not realize that it was no longer able to build
6484       circuits. Fixes part of bug 29875.
6485     - Do not count previously configured working bridges towards our
6486       total of working bridges. Previously, when Tor's list of bridges
6487       changed, it would think that the old bridges were still usable,
6488       and delay fetching router descriptors for the new ones. Fixes part
6489       of bug 29875; bugfix on 0.3.0.1-alpha.
6491   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
6492     - When considering upgrading circuits from "waiting for guard" to
6493       "open", always ignore circuits that are marked for close. Otherwise,
6494       we can end up in the situation where a subsystem is notified that
6495       a closing circuit has just opened, leading to undesirable
6496       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
6498   o Major bugfixes (NSS, relay, backport from 0.4.0.4-rc):
6499     - When running with NSS, disable TLS 1.2 ciphersuites that use
6500       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
6501       these ciphersuites don't work -- which caused relays to fail to
6502       handshake with one another when these ciphersuites were enabled.
6503       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
6505   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
6506     - Properly clean up the introduction point map when circuits change
6507       purpose from onion service circuits to pathbias, measurement, or
6508       other circuit types. This should fix some service-side instances
6509       of introduction point failure. Fixes bug 29034; bugfix
6510       on 0.3.2.1-alpha.
6512   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
6513     - Fix an unreachable bug in which an introduction point could try to
6514       send an INTRODUCE_ACK with a status code that Trunnel would refuse
6515       to encode, leading the relay to assert(). We've consolidated the
6516       ABI values into Trunnel now. Fixes bug 30454; bugfix
6517       on 0.3.0.1-alpha.
6518     - Clients can now handle unknown status codes from INTRODUCE_ACK
6519       cells. (The NACK behavior will stay the same.) This will allow us
6520       to extend status codes in the future without breaking the normal
6521       client behavior. Fixes another part of bug 30454; bugfix
6522       on 0.3.0.1-alpha.
6524   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
6525     - Stop ignoring torrc options after an %include directive, when the
6526       included directory ends with a file that does not contain any
6527       config options (but does contain comments or whitespace). Fixes
6528       bug 31408; bugfix on 0.3.1.1-alpha.
6530   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
6531     - Onion services now always use the exact number of intro points
6532       configured with the HiddenServiceNumIntroductionPoints option (or
6533       fewer if nodes are excluded). Before, a service could sometimes
6534       pick more intro points than configured. Fixes bug 31548; bugfix
6535       on 0.3.2.1-alpha.
6537   o Minor features (address selection, backport from 0.4.0.3-alpha):
6538     - Treat the subnet 100.64.0.0/10 as public for some purposes;
6539       private for others. This subnet is the RFC 6598 (Carrier Grade
6540       NAT) IP range, and is deployed by many ISPs as an alternative to
6541       RFC 1918 that does not break existing internal networks. Tor now
6542       blocks SOCKS and control ports on these addresses and warns users
6543       if client ports or ExtORPorts are listening on a RFC 6598 address.
6544       Closes ticket 28525. Patch by Neel Chauhan.
6546   o Minor features (bandwidth authority, backport from 0.4.0.4-rc):
6547     - Make bandwidth authorities ignore relays that are reported in the
6548       bandwidth file with the flag "vote=0". This change allows us to
6549       report unmeasured relays for diagnostic reasons without including
6550       their bandwidth in the bandwidth authorities' vote. Closes
6551       ticket 29806.
6553   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
6554     - Add a "--list-modules" command to print a list of which compile-
6555       time modules are enabled. Closes ticket 30452.
6557   o Minor features (continuous integration, backport from 0.4.0.4-rc):
6558     - On Travis Rust builds, cleanup Rust registry and refrain from
6559       caching the "target/" directory to speed up builds. Resolves
6560       issue 29962.
6562   o Minor features (continuous integration, backport from 0.4.0.5):
6563     - In Travis, tell timelimit to use stem's backtrace signals, and
6564       launch python directly from timelimit, so python receives the
6565       signals from timelimit, rather than make. Closes ticket 30117.
6567   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
6568     - Remove sudo configuration lines from .travis.yml as they are no
6569       longer needed with current Travis build environment. Resolves
6570       issue 30213.
6572   o Minor features (continuous integration, backport from 0.4.1.4-rc):
6573     - Our Travis configuration now uses Chutney to run some network
6574       integration tests automatically. Closes ticket 29280.
6576   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
6577     - When building on Appveyor and Travis, pass the "-k" flag to make,
6578       so that we are informed of all compilation failures, not just the
6579       first one or two. Closes ticket 31372.
6581   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
6582     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
6583       in December 2018 (of which ~122 were still functional), with a
6584       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
6585       in June 2019. Closes ticket 28795.
6587   o Minor features (geoip, backport from 0.4.2.5):
6588     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
6589       Country database. Closes ticket 32685.
6591   o Minor features (NSS, diagnostic, backport from 0.4.0.4-rc):
6592     - Try to log an error from NSS (if there is any) and a more useful
6593       description of our situation if we are using NSS and a call to
6594       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
6596   o Minor features (stem tests, backport from 0.4.2.1-alpha):
6597     - Change "make test-stem" so it only runs the stem tests that use
6598       tor. This change makes test-stem faster and more reliable. Closes
6599       ticket 31554.
6601   o Minor bugfixes (security, backport from 0.4.0.4-rc):
6602     - Verify in more places that we are not about to create a buffer
6603       with more than INT_MAX bytes, to avoid possible OOB access in the
6604       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
6605       fixed by Tobias Stoeckmann.
6606     - Fix a potential double free bug when reading huge bandwidth files.
6607       The issue is not exploitable in the current Tor network because
6608       the vulnerable code is only reached when directory authorities
6609       read bandwidth files, but bandwidth files come from a trusted
6610       source (usually the authorities themselves). Furthermore, the
6611       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
6612       which are not used by any of the current authorities. Fixes bug
6613       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
6614       Tobias Stoeckmann.
6616   o Minor bugfix (continuous integration, backport from 0.4.0.4-rc):
6617     - Reset coverage state on disk after Travis CI has finished. This
6618       should prevent future coverage merge errors from causing the test
6619       suite for the "process" subsystem to fail. The process subsystem
6620       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
6621       on 0.2.9.15.
6622     - Terminate test-stem if it takes more than 9.5 minutes to run.
6623       (Travis terminates the job after 10 minutes of no output.)
6624       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
6626   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
6627     - Avoid spurious errors when Appveyor CI fails before the install step.
6628       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
6630   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
6631     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
6632       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
6634   o Minor bugfixes (C correctness, backport from 0.4.0.4-rc):
6635     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
6636       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
6637       CID 1444119.
6639   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
6640     - Fix a logic error that prevented the SessionGroup sub-option from
6641       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
6643   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
6644     - Fix a BUG() assertion that occurs within a very small race window
6645       between when a client intro circuit opens and when its descriptor
6646       gets cleaned up from the cache. The circuit is now closed early,
6647       which will trigger a re-fetch of the descriptor and continue the
6648       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
6650   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
6651     - Don't believe clock skew results from NETINFO cells that appear to
6652       arrive before we sent the VERSIONS cells they are responding to.
6653       Previously, we would accept them up to 3 minutes "in the past".
6654       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
6656   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
6657     - Fix a compilation warning on Windows about casting a function
6658       pointer for GetTickCount64(). Fixes bug 31374; bugfix
6659       on 0.2.9.1-alpha.
6661   o Minor bugfixes (compilation, backport from 0.4.0.2-alpha):
6662     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
6663       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
6665   o Minor bugfixes (compilation, backport from 0.4.1.5):
6666     - Avoid using labs() on time_t, which can cause compilation warnings
6667       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
6669   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
6670     - Suppress spurious float-conversion warnings from GCC when calling
6671       floating-point classifier functions on FreeBSD. Fixes part of bug
6672       31687; bugfix on 0.3.1.5-alpha.
6674   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
6675     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
6676       due to missing declarations of abort(), and prevent other such
6677       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
6679   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
6680     - Fix a bug that prevented us from supporting SOCKS5 proxies that
6681       want authentication along with configured (but unused!)
6682       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
6684   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
6685     - Avoid trying to read data from closed connections, which can cause
6686       needless loops in Libevent and infinite loops in Shadow. Fixes bug
6687       30344; bugfix on 0.1.1.1-alpha.
6689   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
6690     - Allow the test-stem job to fail in Travis, because it sometimes
6691       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
6692     - Skip test_rebind on macOS in Travis, because it is unreliable on
6693       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
6694     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
6695       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
6697   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
6698     - Avoid a set of possible code paths that could try to use freed
6699       memory in routerlist_free() while Tor was exiting. Fixes bug
6700       31003; bugfix on 0.1.2.2-alpha.
6702   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
6703     - Stop crashing after parsing an unknown descriptor purpose
6704       annotation. We think this bug can only be triggered by modifying a
6705       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
6707   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
6708     - Move the "bandwidth-file-headers" line in directory authority
6709       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
6710       on 0.3.5.1-alpha.
6712   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
6713     - On abort, try harder to flush the output buffers of log messages.
6714       On some platforms (macOS), log messages could be discarded when
6715       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
6716     - Report the tor version whenever an assertion fails. Previously, we
6717       only reported the Tor version on some crashes, and some non-fatal
6718       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
6720   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
6721     - When extracting an IPv6 address from a PF-based proxy, verify that
6722       we are actually configured to receive an IPv6 address, and log an
6723       internal error if not. Fixes part of bug 31687; bugfix
6724       on 0.2.3.4-alpha.
6726   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
6727     - When tor is missing descriptors for some primary entry guards,
6728       make the log message less alarming. It's normal for descriptors to
6729       expire, as long as tor fetches new ones soon after. Fixes bug
6730       31657; bugfix on 0.3.3.1-alpha.
6732   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
6733     - Avoid logging that we are relaxing a circuit timeout when that
6734       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
6736   o Minor bugfixes (logging, backport from 0.4.0.3-alpha):
6737     - Correct a misleading error message when IPv4Only or IPv6Only is
6738       used but the resolved address can not be interpreted as an address
6739       of the specified IP version. Fixes bug 13221; bugfix on
6740       0.2.3.9-alpha. Patch from Kris Katterjohn.
6741     - Log the correct port number for listening sockets when "auto" is
6742       used to let Tor pick the port number. Previously, port 0 was
6743       logged instead of the actual port number. Fixes bug 29144; bugfix
6744       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
6745     - Stop logging a BUG() warning when Tor is waiting for exit
6746       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
6748   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
6749     - Do not log a warning when running with an OpenSSL version other
6750       than the one Tor was compiled with, if the two versions should be
6751       compatible. Previously, we would warn whenever the version was
6752       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
6754   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
6755     - Change log level of message "Hash of session info was not as
6756       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
6757       on 0.1.1.10-alpha.
6759   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
6760     - Rate-limit the logging message about the obsolete .exit
6761       notation. Previously, there was no limit on this warning, which
6762       could potentially be triggered many times by a hostile website.
6763       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
6765   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
6766     - Do not log a nonfatal assertion failure when receiving a VERSIONS
6767       cell on a connection using the obsolete v1 link protocol. Log a
6768       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
6770   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
6771     - Reset the periodic events' "enabled" flag when Tor is shut down
6772       cleanly. Previously, this flag was left on, which caused periodic
6773       events not to be re-enabled when Tor was relaunched in-process
6774       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
6775       on 0.3.3.1-alpha.
6777   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
6778     - Avoid a minor memory leak that could occur on relays when failing
6779       to create a "keys" directory. Fixes bug 30148; bugfix
6780       on 0.3.3.1-alpha.
6782   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
6783     - Fix a trivial memory leak when parsing an invalid value
6784       from a download schedule in the configuration. Fixes bug
6785       30894; bugfix on 0.3.4.1-alpha.
6787   o Minor bugfixes (memory management, backport from 0.4.0.3-alpha):
6788     - Refactor the shared random state's memory management so that it
6789       actually takes ownership of the shared random value pointers.
6790       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
6792   o Minor bugfixes (memory management, testing, backport from 0.4.0.3-alpha):
6793     - Stop leaking parts of the shared random state in the shared-random
6794       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
6796   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
6797     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
6798       implementation) when failing to load an onion service client
6799       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
6801   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
6802     - When purging the DNS cache because of an out-of-memory condition,
6803       try purging just the older entries at first. Previously, we would
6804       always purge the whole thing. Fixes bug 29617; bugfix
6805       on 0.3.5.1-alpha.
6807   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
6808     - Avoid crashing in our tor_vasprintf() implementation on systems
6809       that define neither vasprintf() nor _vscprintf(). (This bug has
6810       been here long enough that we question whether people are running
6811       Tor on such systems, but we're applying the fix out of caution.)
6812       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
6813       Tobias Stoeckmann.
6815   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
6816     - Avoid crashing when starting with a corrupt keys directory where
6817       the old ntor key and the new ntor key are identical. Fixes bug
6818       30916; bugfix on 0.2.4.8-alpha.
6820   o Minor bugfixes (rust, backport from 0.4.0.5):
6821     - Abort on panic in all build profiles, instead of potentially
6822       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
6824   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
6825     - Correctly exclude a redundant rust build job in Travis. Fixes bug
6826       31463; bugfix on 0.3.5.4-alpha.
6828   o Minor bugfixes (single onion services, backport from 0.4.0.3-alpha):
6829     - Allow connections to single onion services to remain idle without
6830       being disconnected. Previously, relays acting as rendezvous points
6831       for single onion services were mistakenly closing idle rendezvous
6832       circuits after 60 seconds, thinking that they were unused
6833       directory-fetching circuits that had served their purpose. Fixes
6834       bug 29665; bugfix on 0.2.1.26.
6836   o Minor bugfixes (stats, backport from 0.4.0.3-alpha):
6837     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
6838       relay and bridge extra-info documents. Fixes bug 29017; bugfix
6839       on 0.3.1.1-alpha.
6841   o Minor bugfixes (testing, backport from 0.4.0.3-alpha):
6842     - Downgrade some LOG_ERR messages in the address/* tests to
6843       warnings. The LOG_ERR messages were occurring when we had no
6844       configured network. We were failing the unit tests, because we
6845       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
6846       29530; bugfix on 0.3.5.8.
6847     - Fix our gcov wrapper script to look for object files at the
6848       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
6850   o Minor bugfixes (testing, backport from 0.4.0.4-rc):
6851     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
6852       recent test-network.sh to use new chutney features in CI. Fixes
6853       bug 29703; bugfix on 0.2.9.1-alpha.
6854     - Fix a test failure on Windows caused by an unexpected "BUG"
6855       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
6856       on 0.2.9.3-alpha.
6858   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
6859     - When testing port rebinding, don't busy-wait for tor to log.
6860       Instead, actually sleep for a short time before polling again.
6861       Also improve the formatting of control commands and log messages.
6862       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
6864   o Minor bugfixes (TLS protocol, backport form 0.4.0.4-rc):
6865     - When classifying a client's selection of TLS ciphers, if the
6866       client ciphers are not yet available, do not cache the result.
6867       Previously, we had cached the unavailability of the cipher list
6868       and never looked again, which in turn led us to assume that the
6869       client only supported the ancient V1 link protocol. This, in turn,
6870       was causing Stem integration tests to stall in some cases. Fixes
6871       bug 30021; bugfix on 0.2.4.8-alpha.
6873   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
6874     - Log bugs about the TLS read buffer's length only once, rather than
6875       filling the logs with similar warnings. Fixes bug 31939; bugfix
6876       on 0.3.0.4-rc.
6878   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
6879     - Always retry v2 single onion service intro and rend circuits with
6880       a 3-hop path. Previously, v2 single onion services used a 3-hop
6881       path when rendezvous circuits were retried after a remote or
6882       delayed failure, but a 1-hop path for immediate retries. Fixes bug
6883       23818; bugfix on 0.2.9.3-alpha.
6884     - Make v3 single onion services fall back to a 3-hop intro, when all
6885       intro points are unreachable via a 1-hop path. Previously, v3
6886       single onion services failed when all intro nodes were unreachable
6887       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
6889   o Minor bugfixes (Windows, CI, backport from 0.4.0.3-alpha):
6890     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
6891       Windows Server 2012 R2 job. The remaining 2 jobs still provide
6892       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
6893       fast_finish, so failed jobs terminate the build immediately. Fixes
6894       bug 29601; bugfix on 0.3.5.4-alpha.
6896   o Documentation (backport from 0.4.2.1-alpha):
6897     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
6898       notice.html so that operators no longer have to host it
6899       themselves. Closes ticket 31089.
6901   o Testing (backport from 0.4.1.2-alpha):
6902     - Specify torrc paths (with empty files) when launching tor in
6903       integration tests; refrain from reading user and system torrcs.
6904       Resolves issue 29702.
6906   o Testing (continuous integration, backport from 0.4.1.1-alpha):
6907     - In Travis, show stem's tor log after failure. Closes ticket 30234.
6909   o Testing (continuous integration, backport from 0.4.1.5):
6910     - In Travis, make stem log a controller trace to the console, and
6911       tail stem's tor log after failure. Closes ticket 30591.
6912     - In Travis, only run the stem tests that use a tor binary. Closes
6913       ticket 30694.
6915   o Testing (continuous integration, backport from 0.4.2.3-alpha):
6916     - Disable all but one Travis CI macOS build, to mitigate slow
6917       scheduling of Travis macOS jobs. Closes ticket 32177.
6918     - Run the chutney IPv6 networks as part of Travis CI. Closes
6919       ticket 30860.
6920     - Simplify the Travis CI build matrix, and optimise for build time.
6921       Closes ticket 31859.
6922     - Use Windows Server 2019 instead of Windows Server 2016 in our
6923       Appveyor builds. Closes ticket 32086.
6925   o Testing (continuous integration, backport from 0.4.2.4-rc):
6926     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
6927       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
6928       until we can fix some Bionic permissions issues (see ticket
6929       32240). Related to ticket 31919.
6930     - Install the mingw OpenSSL package in Appveyor. This makes sure
6931       that the OpenSSL headers and libraries match in Tor's Appveyor
6932       builds. (This bug was triggered by an Appveyor image update.)
6933       Fixes bug 32449; bugfix on 0.3.5.6-rc.
6934     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
6936   o Testing (continuous integration, backport from 0.4.2.5):
6937     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
6938       extensions. Also activates clang's -Wtypedef-redefinition warnings.
6939       Build some jobs with -std=gnu99, and some jobs without.
6940       Closes ticket 32500.
6942 Changes in version 0.4.2.4-rc - 2019-11-15
6943   Tor 0.4.2.4-rc is the first release candidate in its series. It fixes
6944   several bugs from earlier versions, including a few that would result in
6945   stack traces or incorrect behavior.
6947   o Minor features (build system):
6948     - Make pkg-config use --prefix when cross-compiling, if
6949       PKG_CONFIG_PATH is not set. Closes ticket 32191.
6951   o Minor features (geoip):
6952     - Update geoip and geoip6 to the November 6 2019 Maxmind GeoLite2
6953       Country database. Closes ticket 32440.
6955   o Minor bugfixes (client, onion service v3):
6956     - Fix a BUG() assertion that occurs within a very small race window
6957       between when a client intro circuit opens and when its descriptor
6958       gets cleaned up from the cache. The circuit is now closed early,
6959       which will trigger a re-fetch of the descriptor and continue the
6960       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
6962   o Minor bugfixes (code quality):
6963     - Fix "make check-includes" so it runs correctly on out-of-tree
6964       builds. Fixes bug 31335; bugfix on 0.3.5.1-alpha.
6966   o Minor bugfixes (configuration):
6967     - Log the option name when skipping an obsolete option. Fixes bug
6968       32295; bugfix on 0.4.2.1-alpha.
6970   o Minor bugfixes (crash):
6971     - When running Tor with an option like --verify-config or
6972       --dump-config that does not start the event loop, avoid crashing
6973       if we try to exit early because of an error. Fixes bug 32407;
6974       bugfix on 0.3.3.1-alpha.
6976   o Minor bugfixes (directory):
6977     - When checking if a directory connection is anonymous, test if the
6978       circuit was marked for close before looking at its channel. This
6979       avoids a BUG() stacktrace if the circuit was previously closed.
6980       Fixes bug 31958; bugfix on 0.4.2.1-alpha.
6982   o Minor bugfixes (shellcheck):
6983     - Fix minor shellcheck errors in the git-*.sh scripts. Fixes bug
6984       32402; bugfix on 0.4.2.1-alpha.
6985     - Start checking most scripts for shellcheck errors again. Fixes bug
6986       32402; bugfix on 0.4.2.1-alpha.
6988   o Testing (continuous integration):
6989     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
6990       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
6991       until we can fix some Bionic permissions issues (see ticket
6992       32240). Related to ticket 31919.
6993     - Install the mingw OpenSSL package in Appveyor. This makes sure
6994       that the OpenSSL headers and libraries match in Tor's Appveyor
6995       builds. (This bug was triggered by an Appveyor image update.)
6996       Fixes bug 32449; bugfix on 0.3.5.6-rc.
6997     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
7000 Changes in version 0.4.2.3-alpha - 2019-10-24
7001   This release fixes several bugs from the previous alpha release, and
7002   from earlier versions of Tor.
7004   o Major bugfixes (relay):
7005     - Relays now respect their AccountingMax bandwidth again. When
7006       relays entered "soft" hibernation (which typically starts when
7007       we've hit 90% of our AccountingMax), we had stopped checking
7008       whether we should enter hard hibernation. Soft hibernation refuses
7009       new connections and new circuits, but the existing circuits can
7010       continue, meaning that relays could have exceeded their configured
7011       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
7013   o Major bugfixes (v3 onion services):
7014     - Onion services now always use the exact number of intro points
7015       configured with the HiddenServiceNumIntroductionPoints option (or
7016       fewer if nodes are excluded). Before, a service could sometimes
7017       pick more intro points than configured. Fixes bug 31548; bugfix
7018       on 0.3.2.1-alpha.
7020   o Minor feature (onion services, control port):
7021     - The ADD_ONION command's keyword "BEST" now defaults to ED25519-V3
7022       (v3) onion services. Previously it defaulted to RSA1024 (v2).
7023       Closes ticket 29669.
7025   o Minor features (testing):
7026     - When running tests that attempt to look up hostnames, replace the
7027       libc name lookup functions with ones that do not actually touch
7028       the network. This way, the tests complete more quickly in the
7029       presence of a slow or missing DNS resolver. Closes ticket 31841.
7031   o Minor features (testing, continuous integration):
7032     - Disable all but one Travis CI macOS build, to mitigate slow
7033       scheduling of Travis macOS jobs. Closes ticket 32177.
7034     - Run the chutney IPv6 networks as part of Travis CI. Closes
7035       ticket 30860.
7036     - Simplify the Travis CI build matrix, and optimise for build time.
7037       Closes ticket 31859.
7038     - Use Windows Server 2019 instead of Windows Server 2016 in our
7039       Appveyor builds. Closes ticket 32086.
7041   o Minor bugfixes (build system):
7042     - Interpret "--disable-module-dirauth=no" correctly. Fixes bug
7043       32124; bugfix on 0.3.4.1-alpha.
7044     - Interpret "--with-tcmalloc=no" correctly. Fixes bug 32124; bugfix
7045       on 0.2.0.20-rc.
7046     - Stop failing when jemalloc is requested, but tcmalloc is not
7047       found. Fixes bug 32124; bugfix on 0.3.5.1-alpha.
7048     - When pkg-config is not installed, or a library that depends on
7049       pkg-config is not found, tell the user what to do to fix the
7050       problem. Fixes bug 31922; bugfix on 0.3.1.1-alpha.
7052   o Minor bugfixes (connections):
7053     - Avoid trying to read data from closed connections, which can cause
7054       needless loops in Libevent and infinite loops in Shadow. Fixes bug
7055       30344; bugfix on 0.1.1.1-alpha.
7057   o Minor bugfixes (error handling):
7058     - Always lock the backtrace buffer before it is used. Fixes bug
7059       31734; bugfix on 0.2.5.3-alpha.
7061   o Minor bugfixes (mainloop, periodic events, in-process API):
7062     - Reset the periodic events' "enabled" flag when Tor is shut down
7063       cleanly. Previously, this flag was left on, which caused periodic
7064       events not to be re-enabled when Tor was relaunched in-process
7065       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
7066       on 0.3.3.1-alpha.
7068   o Minor bugfixes (process management):
7069     - Remove overly strict assertions that triggered when a pluggable
7070       transport failed to launch. Fixes bug 31091; bugfix
7071       on 0.4.0.1-alpha.
7072     - Remove an assertion in the Unix process backend. This assertion
7073       would trigger when we failed to find the executable for a child
7074       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
7076   o Minor bugfixes (testing):
7077     - Avoid intermittent test failures due to a test that had relied on
7078       inconsistent timing sources. Fixes bug 31995; bugfix
7079       on 0.3.1.3-alpha.
7080     - When testing port rebinding, don't busy-wait for tor to log.
7081       Instead, actually sleep for a short time before polling again.
7082       Also improve the formatting of control commands and log messages.
7083       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
7085   o Minor bugfixes (tls, logging):
7086     - Log bugs about the TLS read buffer's length only once, rather than
7087       filling the logs with similar warnings. Fixes bug 31939; bugfix
7088       on 0.3.0.4-rc.
7090   o Minor bugfixes (v3 onion services):
7091     - Fix an implicit conversion from ssize_t to size_t discovered by
7092       Coverity. Fixes bug 31682; bugfix on 0.4.2.1-alpha.
7093     - Fix a memory leak in an unlikely error code path when encoding HS
7094       DoS establish intro extension cell. Fixes bug 32063; bugfix
7095       on 0.4.2.1-alpha.
7096     - When cleaning up intro circuits for a v3 onion service, don't
7097       remove circuits that have an established or pending circuit, even
7098       if they ran out of retries. This way, we don't remove a circuit on
7099       its last retry. Fixes bug 31652; bugfix on 0.3.2.1-alpha.
7101   o Documentation:
7102     - Correct the description of "GuardLifetime". Fixes bug 31189;
7103       bugfix on 0.3.0.1-alpha.
7104     - Make clear in the man page, in both the bandwidth section and the
7105       AccountingMax section, that Tor counts in powers of two, not
7106       powers of ten: 1 GByte is 1024*1024*1024 bytes, not one billion
7107       bytes. Resolves ticket 32106.
7110 Changes in version 0.4.2.2-alpha - 2019-10-07
7111   This release fixes several bugs from the previous alpha release, and
7112   from earlier versions. It also includes a change in authorities, so
7113   that they begin to reject the currently unsupported release series.
7115   o Major features (directory authorities):
7116     - Directory authorities now reject relays running all currently
7117       deprecated release series. The currently supported release series
7118       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
7120   o Major bugfixes (embedded Tor):
7121     - Avoid a possible crash when restarting Tor in embedded mode and
7122       enabling a different set of publish/subscribe messages. Fixes bug
7123       31898; bugfix on 0.4.1.1-alpha.
7125   o Major bugfixes (torrc parsing):
7126     - Stop ignoring torrc options after an %include directive, when the
7127       included directory ends with a file that does not contain any
7128       config options (but does contain comments or whitespace). Fixes
7129       bug 31408; bugfix on 0.3.1.1-alpha.
7131   o Minor features (auto-formatting scripts):
7132     - When annotating C macros, never generate a line that our check-
7133       spaces script would reject. Closes ticket 31759.
7134     - When annotating C macros, try to remove cases of double-negation.
7135       Closes ticket 31779.
7137   o Minor features (continuous integration):
7138     - When building on Appveyor and Travis, pass the "-k" flag to make,
7139       so that we are informed of all compilation failures, not just the
7140       first one or two. Closes ticket 31372.
7142   o Minor features (geoip):
7143     - Update geoip and geoip6 to the October 1 2019 Maxmind GeoLite2
7144       Country database. Closes ticket 31931.
7146   o Minor features (maintenance scripts):
7147     - Add a Coccinelle script to detect bugs caused by incrementing or
7148       decrementing a variable inside a call to log_debug(). Since
7149       log_debug() is a macro whose arguments are conditionally
7150       evaluated, it is usually an error to do this. One such bug was
7151       30628, in which SENDME cells were miscounted by a decrement
7152       operator inside a log_debug() call. Closes ticket 30743.
7154   o Minor features (onion services v3):
7155     - Assist users who try to setup v2 client authorization in v3 onion
7156       services by pointing them to the right documentation. Closes
7157       ticket 28966.
7159   o Minor bugfixes (Appveyor continuous integration):
7160     - Avoid spurious errors when Appveyor CI fails before the install
7161       step. Fixes bug 31884; bugfix on 0.3.4.2-alpha.
7163   o Minor bugfixes (best practices tracker):
7164     - When listing overbroad exceptions, do not also list problems, and
7165       do not list insufficiently broad exceptions. Fixes bug 31338;
7166       bugfix on 0.4.2.1-alpha.
7168   o Minor bugfixes (controller protocol):
7169     - Fix the MAPADDRESS controller command to accept one or more
7170       arguments. Previously, it required two or more arguments, and
7171       ignored the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
7173   o Minor bugfixes (logging):
7174     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
7175       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
7176     - Disable backtrace signal handlers when shutting down tor. Fixes
7177       bug 31614; bugfix on 0.2.5.2-alpha.
7178     - Rate-limit the logging message about the obsolete .exit
7179       notation. Previously, there was no limit on this warning, which
7180       could potentially be triggered many times by a hostile website.
7181       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
7182     - When initialising log domain masks, only set known log domains.
7183       Fixes bug 31854; bugfix on 0.2.1.1-alpha.
7185   o Minor bugfixes (logging, protocol violations):
7186     - Do not log a nonfatal assertion failure when receiving a VERSIONS
7187       cell on a connection using the obsolete v1 link protocol. Log a
7188       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
7190   o Minor bugfixes (modules):
7191     - Explain what the optional Directory Authority module is, and what
7192       happens when it is disabled. Fixes bug 31825; bugfix
7193       on 0.3.4.1-alpha.
7195   o Minor bugfixes (multithreading):
7196     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
7197       31736; bugfix on 0.0.7.
7199   o Minor bugfixes (relay):
7200     - Avoid crashing when starting with a corrupt keys directory where
7201       the old ntor key and the new ntor key are identical. Fixes bug
7202       30916; bugfix on 0.2.4.8-alpha.
7204   o Minor bugfixes (tests, SunOS):
7205     - Avoid a map_anon_nofork test failure due to a signed/unsigned
7206       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
7208   o Code simplification and refactoring:
7209     - Refactor connection_control_process_inbuf() to reduce the size of
7210       a practracker exception. Closes ticket 31840.
7211     - Refactor the microdescs_parse_from_string() function into smaller
7212       pieces, for better comprehensibility. Closes ticket 31675.
7213     - Use SEVERITY_MASK_IDX() to find the LOG_* mask indexes in the unit
7214       tests and fuzzers, rather than using hard-coded values. Closes
7215       ticket 31334.
7216     - Interface for function `decrypt_desc_layer` cleaned up. Closes
7217       ticket 31589.
7219   o Documentation:
7220     - Document the signal-safe logging behaviour in the tor man page.
7221       Also add some comments to the relevant functions. Closes
7222       ticket 31839.
7223     - Explain why we can't destroy the backtrace buffer mutex. Explain
7224       why we don't need to destroy the log mutex. Closes ticket 31736.
7225     - The Tor source code repository now includes a (somewhat dated)
7226       description of Tor's modular architecture, in doc/HACKING/design.
7227       This is based on the old "tor-guts.git" repository, which we are
7228       adopting and superseding. Closes ticket 31849.
7231 Changes in version 0.4.1.6 - 2019-09-19
7232   This release backports several bugfixes to improve stability and
7233   correctness.  Anyone experiencing build problems or crashes with 0.4.1.5,
7234   or experiencing reliability issues with single onion services, should
7235   upgrade.
7237   o Major bugfixes (crash, Linux, Android, backport from 0.4.2.1-alpha):
7238     - Tolerate systems (including some Android installations) where
7239       madvise and MADV_DONTDUMP are available at build-time, but not at
7240       run time. Previously, these systems would notice a failed syscall
7241       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
7242     - Tolerate systems (including some Linux installations) where
7243       madvise and/or MADV_DONTFORK are available at build-time, but not
7244       at run time. Previously, these systems would notice a failed
7245       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
7247   o Minor features (stem tests, backport from 0.4.2.1-alpha):
7248     - Change "make test-stem" so it only runs the stem tests that use
7249       tor. This change makes test-stem faster and more reliable. Closes
7250       ticket 31554.
7252   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
7253     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
7254       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
7256   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
7257     - Add more stub functions to fix compilation on Android with link-
7258       time optimization when --disable-module-dirauth is used.
7259       Previously, these compilation settings would make the compiler
7260       look for functions that didn't exist. Fixes bug 31552; bugfix
7261       on 0.4.1.1-alpha.
7262     - Suppress spurious float-conversion warnings from GCC when calling
7263       floating-point classifier functions on FreeBSD. Fixes part of bug
7264       31687; bugfix on 0.3.1.5-alpha.
7266   o Minor bugfixes (controller protocol):
7267     - Fix the MAPADDRESS controller command to accept one or more
7268       arguments. Previously, it required two or more arguments, and ignored
7269       the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
7271   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
7272     - When extracting an IPv6 address from a PF-based proxy, verify that
7273       we are actually configured to receive an IPv6 address, and log an
7274       internal error if not. Fixes part of bug 31687; bugfix
7275       on 0.2.3.4-alpha.
7277   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
7278     - When tor is missing descriptors for some primary entry guards,
7279       make the log message less alarming. It's normal for descriptors to
7280       expire, as long as tor fetches new ones soon after. Fixes bug
7281       31657; bugfix on 0.3.3.1-alpha.
7283   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
7284     - Change log level of message "Hash of session info was not as
7285       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
7286       on 0.1.1.10-alpha.
7288   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
7289     - Correctly exclude a redundant rust build job in Travis. Fixes bug
7290       31463; bugfix on 0.3.5.4-alpha.
7292   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
7293     - Always retry v2 single onion service intro and rend circuits with
7294       a 3-hop path. Previously, v2 single onion services used a 3-hop
7295       path when rendezvous circuits were retried after a remote or
7296       delayed failure, but a 1-hop path for immediate retries. Fixes bug
7297       23818; bugfix on 0.2.9.3-alpha.
7299   o Minor bugfixes (v3 single onion services, backport from 0.4.2.1-alpha):
7300     - Always retry v3 single onion service intro and rend circuits with
7301       a 3-hop path. Previously, v3 single onion services used a 3-hop
7302       path when rend circuits were retried after a remote or delayed
7303       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
7304       bugfix on 0.3.2.1-alpha.
7305     - Make v3 single onion services fall back to a 3-hop intro, when all
7306       intro points are unreachable via a 1-hop path. Previously, v3
7307       single onion services failed when all intro nodes were unreachable
7308       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
7310   o Documentation (backport from 0.4.2.1-alpha):
7311     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
7312       notice.html so that operators no longer have to host it
7313       themselves. Closes ticket 31089.
7316 Changes in version 0.4.2.1-alpha - 2019-09-17
7317   This is the first alpha release in the 0.4.2.x series. It adds new
7318   defenses for denial-of-service attacks against onion services. It also
7319   includes numerous kinds of bugfixes and refactoring to help improve
7320   Tor's stability and ease of development.
7322   o Major features (onion service v3, denial of service):
7323     - Add onion service introduction denial of service defenses. Intro
7324       points can now rate-limit client introduction requests, using
7325       parameters that can be sent by the service within the
7326       ESTABLISH_INTRO cell. If the cell extension for this is not used,
7327       the intro point will honor the consensus parameters. Closes
7328       ticket 30924.
7330   o Major bugfixes (circuit build, guard):
7331     - When considering upgrading circuits from "waiting for guard" to
7332       "open", always ignore circuits that are marked for close.
7333       Previously we could end up in the situation where a subsystem is
7334       notified of a circuit opening, but the circuit is still marked for
7335       close, leading to undesirable behavior. Fixes bug 30871; bugfix
7336       on 0.3.0.1-alpha.
7338   o Major bugfixes (crash, Linux, Android):
7339     - Tolerate systems (including some Android installations) where
7340       madvise and MADV_DONTDUMP are available at build-time, but not at
7341       run time. Previously, these systems would notice a failed syscall
7342       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
7343     - Tolerate systems (including some Linux installations) where
7344       madvise and/or MADV_DONTFORK are available at build-time, but not
7345       at run time. Previously, these systems would notice a failed
7346       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
7348   o Minor features (best practices tracker):
7349     - Our best-practices tracker now integrates with our include-checker
7350       tool to keep track of how many layering violations we have not yet
7351       fixed. We hope to reduce this number over time to improve Tor's
7352       modularity. Closes ticket 31176.
7353     - Add a TOR_PRACTRACKER_OPTIONS variable for passing arguments to
7354       practracker from the environment. We may want this for continuous
7355       integration. Closes ticket 31309.
7356     - Give a warning rather than an error when a practracker exception
7357       is violated by a small amount, add a --list-overbroad option to
7358       practracker that lists exceptions that are stricter than they need
7359       to be, and provide an environment variable for disabling
7360       practracker. Closes ticket 30752.
7361     - Our best-practices tracker now looks at headers as well as C
7362       files. Closes ticket 31175.
7364   o Minor features (build system):
7365     - Add --disable-manpage and --disable-html-manual options to
7366       configure script. This will enable shortening build times by not
7367       building documentation. Resolves issue 19381.
7369   o Minor features (compilation):
7370     - Log a more useful error message when we are compiling and one of
7371       the compile-time hardening options we have selected can be linked
7372       but not executed. Closes ticket 27530.
7374   o Minor features (configuration):
7375     - The configuration code has been extended to allow splitting
7376       configuration data across multiple objects. Previously, all
7377       configuration data needed to be kept in a single object, which
7378       tended to become bloated. Closes ticket 31240.
7380   o Minor features (continuous integration):
7381     - When running CI builds on Travis, put some random data in
7382       ~/.torrc, to make sure no tests are reading the Tor configuration
7383       file from its default location. Resolves issue 30102.
7385   o Minor features (debugging):
7386     - Log a nonfatal assertion failure if we encounter a configuration
7387       line whose command is "CLEAR" but which has a nonempty value. This
7388       should be impossible, according to the rules of our configuration
7389       line parsing. Closes ticket 31529.
7391   o Minor features (git hooks):
7392     - Our pre-commit git hook now checks for a special file before
7393       running practracker, so that practracker only runs on branches
7394       that are based on master. Since the pre-push hook calls the pre-
7395       commit hook, practracker will also only run before pushes of
7396       branches based on master. Closes ticket 30979.
7398   o Minor features (git scripts):
7399     - Add a "--" command-line argument, to separate git-push-all.sh
7400       script arguments from arguments that are passed through to git
7401       push. Closes ticket 31314.
7402     - Add a -r <remote-name> argument to git-push-all.sh, so the script
7403       can push test branches to a personal remote. Closes ticket 31314.
7404     - Add a -t <test-branch-prefix> argument to git-merge-forward.sh and
7405       git-push-all.sh, which makes these scripts create, merge forward,
7406       and push test branches. Closes ticket 31314.
7407     - Add a -u argument to git-merge-forward.sh, so that the script can
7408       re-use existing test branches after a merge failure and fix.
7409       Closes ticket 31314.
7410     - Add a TOR_GIT_PUSH env var, which sets the default git push
7411       command and arguments for git-push-all.sh. Closes ticket 31314.
7412     - Add a TOR_PUSH_DELAY variable to git-push-all.sh, which makes the
7413       script push master and maint branches with a delay between each
7414       branch. These delays trigger the CI jobs in a set order, which
7415       should show the most likely failures first. Also make pushes
7416       atomic by default, and make the script pass any command-line
7417       arguments to git push. Closes ticket 29879.
7418     - Call the shellcheck script from the pre-commit hook. Closes
7419       ticket 30967.
7420     - Skip pushing test branches that are the same as a remote
7421       maint/release/master branch in git-push-all.sh by default. Add a
7422       -s argument, so git-push-all.sh can push all test branches. Closes
7423       ticket 31314.
7425   o Minor features (IPv6, logging):
7426     - Log IPv6 addresses as well as IPv4 addresses when describing
7427       routerinfos, routerstatuses, and nodes. Closes ticket 21003.
7429   o Minor features (onion service v3):
7430     - Do not allow single hop clients to fetch or post an HS descriptor
7431       from an HSDir. Closes ticket 24964.
7433   o Minor features (onion service):
7434     - Disallow single-hop clients at the introduction point. We've
7435       removed Tor2web support a while back and single-hop rendezvous
7436       attempts are blocked at the relays. This change should remove load
7437       off the network from spammy clients. Close ticket 24963.
7439   o Minor features (stem tests):
7440     - Change "make test-stem" so it only runs the stem tests that use
7441       tor. This change makes test-stem faster and more reliable. Closes
7442       ticket 31554.
7444   o Minor features (testing):
7445     - Add a script to invoke "tor --dump-config" and "tor
7446       --verify-config" with various configuration options, and see
7447       whether tor's resulting configuration or error messages are what
7448       we expect. Use it for integration testing of our +Option and
7449       /Option flags. Closes ticket 31637.
7450     - Improve test coverage for our existing configuration parsing and
7451       management API. Closes ticket 30893.
7452     - Add integration tests to make sure that practracker gives the
7453       outputs we expect. Closes ticket 31477.
7454     - The practracker self-tests are now run as part of the Tor test
7455       suite. Closes ticket 31304.
7457   o Minor features (token bucket):
7458     - Implement a generic token bucket that uses a single counter, for
7459       use in anti-DoS onion service work. Closes ticket 30687.
7461   o Minor bugfixes (best practices tracker):
7462     - Fix a few issues in the best-practices script, including tests,
7463       tab tolerance, error reporting, and directory-exclusion logic.
7464       Fixes bug 29746; bugfix on 0.4.1.1-alpha.
7465     - When running check-best-practices, only consider files in the src
7466       subdirectory. Previously we had recursively considered all
7467       subdirectories, which made us get confused by the temporary
7468       directories made by "make distcheck". Fixes bug 31578; bugfix
7469       on 0.4.1.1-alpha.
7471   o Minor bugfixes (build system):
7472     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
7473       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
7475   o Minor bugfixes (chutney, makefiles, documentation):
7476     - "make test-network-all" now shows the warnings from each test-
7477       network.sh run on the console, so developers see new warnings
7478       early. We've also improved the documentation for this feature, and
7479       renamed a Makefile variable so the code is self-documenting. Fixes
7480       bug 30455; bugfix on 0.3.0.4-rc.
7482   o Minor bugfixes (compilation):
7483     - Add more stub functions to fix compilation on Android with link-
7484       time optimization when --disable-module-dirauth is used.
7485       Previously, these compilation settings would make the compiler
7486       look for functions that didn't exist. Fixes bug 31552; bugfix
7487       on 0.4.1.1-alpha.
7488     - Suppress spurious float-conversion warnings from GCC when calling
7489       floating-point classifier functions on FreeBSD. Fixes part of bug
7490       31687; bugfix on 0.3.1.5-alpha.
7492   o Minor bugfixes (configuration):
7493     - Invalid floating-point values in the configuration file are now
7494       treated as errors in the configuration. Previously, they were
7495       ignored and treated as zero. Fixes bug 31475; bugfix on 0.0.1.
7497   o Minor bugfixes (coverity):
7498     - Add an assertion when parsing a BEGIN cell so that coverity can be
7499       sure that we are not about to dereference a NULL address. Fixes
7500       bug 31026; bugfix on 0.2.4.7-alpha. This is CID 1447296.
7501     - In our siphash implementation, when building for coverity, use
7502       memcpy in place of a switch statement, so that coverity can tell
7503       we are not accessing out-of-bounds memory. Fixes bug 31025; bugfix
7504       on 0.2.8.1-alpha. This is tracked as CID 1447293 and 1447295.
7505     - Fix several coverity warnings from our unit tests. Fixes bug
7506       31030; bugfix on 0.2.4.1-alpha, 0.3.2.1-alpha, and 0.4.0.1-alpha.
7508   o Minor bugfixes (developer tooling):
7509     - Only log git script changes in the post-merge script when the
7510       merge was to the master branch. Fixes bug 31040; bugfix
7511       on 0.4.1.1-alpha.
7513   o Minor bugfixes (directory authorities):
7514     - Return a distinct status when formatting annotations fails. Fixes
7515       bug 30780; bugfix on 0.2.0.8-alpha.
7517   o Minor bugfixes (error handling):
7518     - On abort, try harder to flush the output buffers of log messages.
7519       On some platforms (macOS), log messages could be discarded when
7520       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
7521     - Report the tor version whenever an assertion fails. Previously, we
7522       only reported the Tor version on some crashes, and some non-fatal
7523       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
7524     - When tor aborts due to an error, close log file descriptors before
7525       aborting. Closing the logs makes some OSes flush log file buffers,
7526       rather than deleting buffered log lines. Fixes bug 31594; bugfix
7527       on 0.2.5.2-alpha.
7529   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6):
7530     - When extracting an IPv6 address from a PF-based proxy, verify that
7531       we are actually configured to receive an IPv6 address, and log an
7532       internal error if not. Fixes part of bug 31687; bugfix
7533       on 0.2.3.4-alpha.
7535   o Minor bugfixes (git hooks):
7536     - Remove a duplicate call to practracker from the pre-push hook. The
7537       pre-push hook already calls the pre-commit hook, which calls
7538       practracker. Fixes bug 31462; bugfix on 0.4.1.1-alpha.
7540   o Minor bugfixes (git scripts):
7541     - Stop hard-coding the bash path in the git scripts. Some OSes don't
7542       have bash in /usr/bin, others have an ancient bash at this path.
7543       Fixes bug 30840; bugfix on 0.4.0.1-alpha.
7544     - Stop hard-coding the tor master branch name and worktree path in
7545       the git scripts. Fixes bug 30841; bugfix on 0.4.0.1-alpha.
7546     - Allow git-push-all.sh to be run from any directory. Previously,
7547       the script only worked if run from an upstream worktree directory.
7548       Closes ticket 31678.
7550   o Minor bugfixes (guards):
7551     - When tor is missing descriptors for some primary entry guards,
7552       make the log message less alarming. It's normal for descriptors to
7553       expire, as long as tor fetches new ones soon after. Fixes bug
7554       31657; bugfix on 0.3.3.1-alpha.
7556   o Minor bugfixes (ipv6):
7557     - Check for private IPv6 addresses alongside their IPv4 equivalents
7558       when authorities check descriptors. Previously, we only checked
7559       for private IPv4 addresses. Fixes bug 31088; bugfix on
7560       0.2.3.21-rc. Patch by Neel Chauhan.
7561     - When parsing microdescriptors, we should check the IPv6 exit
7562       policy alongside IPv4. Previously, we checked both exit policies
7563       for only router info structures, while microdescriptors were
7564       IPv4-only. Fixes bug 27284; bugfix on 0.2.3.1-alpha. Patch by
7565       Neel Chauhan.
7567   o Minor bugfixes (logging):
7568     - Change log level of message "Hash of session info was not as
7569       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
7570       on 0.1.1.10-alpha.
7571     - Fix a code issue that would have broken our parsing of log domains
7572       as soon as we had 33 of them. Fortunately, we still only have 29.
7573       Fixes bug 31451; bugfix on 0.4.1.4-rc.
7575   o Minor bugfixes (memory management):
7576     - Stop leaking a small amount of memory in nt_service_install(), in
7577       unreachable code. Fixes bug 30799; bugfix on 0.2.0.7-alpha. Patch
7578       by Xiaoyin Liu.
7580   o Minor bugfixes (networking, IP addresses):
7581     - When parsing addresses via Tor's internal DNS lookup API, reject
7582       IPv4 addresses in square brackets, and accept IPv6 addresses in
7583       square brackets. This change completes the work started in 23082,
7584       making address parsing consistent between tor's internal DNS
7585       lookup and address parsing APIs. Fixes bug 30721; bugfix
7586       on 0.2.1.5-alpha.
7587     - When parsing addresses via Tor's internal address:port parsing and
7588       DNS lookup APIs, require IPv6 addresses with ports to have square
7589       brackets. But allow IPv6 addresses without ports, whether or not
7590       they have square brackets. Fixes bug 30721; bugfix
7591       on 0.2.1.5-alpha.
7593   o Minor bugfixes (onion service v3):
7594     - When purging the client descriptor cache, close any introduction
7595       point circuits associated with purged cache entries. This avoids
7596       picking those circuits later when connecting to the same
7597       introduction points. Fixes bug 30921; bugfix on 0.3.2.1-alpha.
7599   o Minor bugfixes (onion services):
7600     - In the hs_ident_circuit_t data structure, remove the unused field
7601       circuit_type and the respective argument in hs_ident_circuit_new().
7602       This field was set by clients (for introduction) and services (for
7603       introduction and rendezvous) but was never used afterwards. Fixes
7604       bug 31490; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
7606   o Minor bugfixes (operator tools):
7607     - Make tor-print-ed-signing-cert(1) print certificate expiration
7608       date in RFC 1123 and UNIX timestamp formats, to make output
7609       machine readable. Fixes bug 31012; bugfix on 0.3.5.1-alpha.
7611   o Minor bugfixes (rust):
7612     - Correctly exclude a redundant rust build job in Travis. Fixes bug
7613       31463; bugfix on 0.3.5.4-alpha.
7614     - Raise the minimum rustc version to 1.31.0, as checked by configure
7615       and CI. Fixes bug 31442; bugfix on 0.3.5.4-alpha.
7617   o Minor bugfixes (sendme, code structure):
7618     - Rename the trunnel SENDME file definition from sendme.trunnel to
7619       sendme_cell.trunnel to avoid having twice sendme.{c|h} in the
7620       repository. Fixes bug 30769; bugfix on 0.4.1.1-alpha.
7622   o Minor bugfixes (statistics):
7623     - Stop removing the ed25519 signature if the extra info file is too
7624       big. If the signature data was removed, but the keyword was kept,
7625       this could result in an unparseable extra info file. Fixes bug
7626       30958; bugfix on 0.2.7.2-alpha.
7628   o Minor bugfixes (subsystems):
7629     - Make the subsystem init order match the subsystem module
7630       dependencies. Call windows process security APIs as early as
7631       possible. Initialize logging before network and time, so that
7632       network and time can use logging. Fixes bug 31615; bugfix
7633       on 0.4.0.1-alpha.
7635   o Minor bugfixes (testing):
7636     - Teach the util/socketpair_ersatz test to work correctly when we
7637       have no network stack configured. Fixes bug 30804; bugfix
7638       on 0.2.5.1-alpha.
7640   o Minor bugfixes (v2 single onion services):
7641     - Always retry v2 single onion service intro and rend circuits with
7642       a 3-hop path. Previously, v2 single onion services used a 3-hop
7643       path when rendezvous circuits were retried after a remote or
7644       delayed failure, but a 1-hop path for immediate retries. Fixes bug
7645       23818; bugfix on 0.2.9.3-alpha.
7647   o Minor bugfixes (v3 single onion services):
7648     - Always retry v3 single onion service intro and rend circuits with
7649       a 3-hop path. Previously, v3 single onion services used a 3-hop
7650       path when rend circuits were retried after a remote or delayed
7651       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
7652       bugfix on 0.3.2.1-alpha.
7653     - Make v3 single onion services fall back to a 3-hop intro, when all
7654       intro points are unreachable via a 1-hop path. Previously, v3
7655       single onion services failed when all intro nodes were unreachable
7656       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
7658   o Documentation:
7659     - Improve documentation in circuit padding subsystem. Patch by
7660       Tobias Pulls. Closes ticket 31113.
7661     - Include an example usage for IPv6 ORPort in our sample torrc.
7662       Closes ticket 31320; patch from Ali Raheem.
7663     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
7664       notice.html so that operators no longer have to host it
7665       themselves. Closes ticket 31089.
7667   o Removed features:
7668     - No longer include recommended package digests in votes as detailed
7669       in proposal 301. The RecommendedPackages torrc option is
7670       deprecated and will no longer have any effect. "package" lines
7671       will still be considered when computing consensuses for consensus
7672       methods that include them. (This change has no effect on the list
7673       of recommended Tor versions, which is still in use.) Closes
7674       ticket 29738.
7675     - Remove torctl.in from contrib/dist directory. Resolves
7676       ticket 30550.
7678   o Testing:
7679     - Run shellcheck for all non-third-party shell scripts that are
7680       shipped with Tor. Closes ticket 29533.
7681     - When checking shell scripts, ignore any user-created directories.
7682       Closes ticket 30967.
7684   o Code simplification and refactoring (config handling):
7685     - Extract our variable manipulation code from confparse.c to a new
7686       lower-level typedvar.h module. Closes ticket 30864.
7687     - Lower another layer of object management from confparse.c to a
7688       more general tool. Now typed structure members are accessible via
7689       an abstract type. Implements ticket 30914.
7690     - Move our backend logic for working with configuration and state
7691       files into a lower-level library, since it no longer depends on
7692       any tor-specific functionality. Closes ticket 31626.
7693     - Numerous simplifications in configuration-handling logic: remove
7694       duplicated macro definitions, replace magical names with flags,
7695       and refactor "TestingTorNetwork" to use the same default-option
7696       logic as the rest of Tor. Closes ticket 30935.
7697     - Replace our ad-hoc set of flags for configuration variables and
7698       configuration variable types with fine-grained orthogonal flags
7699       corresponding to the actual behavior we want. Closes ticket 31625.
7701   o Code simplification and refactoring (misc):
7702     - Eliminate some uses of lower-level control reply abstractions,
7703       primarily in the onion_helper functions. Closes ticket 30889.
7704     - Rework bootstrap tracking to use the new publish-subscribe
7705       subsystem. Closes ticket 29976.
7706     - Rewrite format_node_description() and router_get_verbose_nickname()
7707       to use strlcpy() and strlcat(). The previous implementation used
7708       memcpy() and pointer arithmetic, which was error-prone. Closes
7709       ticket 31545. This is CID 1452819.
7710     - Split extrainfo_dump_to_string() into smaller functions. Closes
7711       ticket 30956.
7712     - Use the ptrdiff_t type consistently for expressing variable
7713       offsets and pointer differences. Previously we incorrectly (but
7714       harmlessly) used int and sometimes off_t for these cases. Closes
7715       ticket 31532.
7716     - Use the subsystems mechanism to manage the main event loop code.
7717       Closes ticket 30806.
7718     - Various simplifications and minor improvements to the circuit
7719       padding machines. Patch by Tobias Pulls. Closes tickets 31112
7720       and 31098.
7722   o Documentation (hard-coded directories):
7723     - Improve the documentation for the DirAuthority and FallbackDir
7724       torrc options. Closes ticket 30955.
7726   o Documentation (tor.1 man page):
7727     - Fix typo in tor.1 man page: the option is "--help", not "-help".
7728       Fixes bug 31008; bugfix on 0.2.2.9-alpha.
7731 Changes in version 0.4.1.5 - 2019-08-20
7732   This is the first stable release in the 0.4.1.x series. This series
7733   adds experimental circuit-level padding, authenticated SENDME cells to
7734   defend against certain attacks, and several performance improvements
7735   to save on CPU consumption. It fixes bugs in bootstrapping and v3
7736   onion services. It also includes numerous smaller features and
7737   bugfixes on earlier versions.
7739   Per our support policy, we will support the 0.4.1.x series for nine
7740   months, or until three months after the release of a stable 0.4.2.x:
7741   whichever is longer. If you need longer-term support, please stick
7742   with 0.3.5.x, which will we plan to support until Feb 2022.
7744   Below are the changes since 0.4.1.4-rc. For a complete list of changes
7745   since 0.4.0.5, see the ReleaseNotes file.
7747   o Directory authority changes:
7748     - The directory authority "dizum" has a new IP address. Closes
7749       ticket 31406.
7751   o Minor features (circuit padding logging):
7752     - Demote noisy client-side warn logs about circuit padding to
7753       protocol warnings. Add additional log messages and circuit ID
7754       fields to help with bug 30992 and any other future issues.
7756   o Minor bugfixes (circuit padding negotiation):
7757     - Bump the circuit padding protocol version to explicitly signify
7758       that the HS setup machine support is finalized in 0.4.1.x-stable.
7759       This also means that 0.4.1.x-alpha clients will not negotiate
7760       padding with 0.4.1.x-stable relays, and 0.4.1.x-stable clients
7761       will not negotiate padding with 0.4.1.x-alpha relays (or 0.4.0.x
7762       relays). Fixes bug 31356; bugfix on 0.4.1.1-alpha.
7764   o Minor bugfixes (circuit padding):
7765     - Ignore non-padding cells on padding circuits. This addresses
7766       various warning messages from subsystems that were not expecting
7767       padding circuits. Fixes bug 30942; bugfix on 0.4.1.1-alpha.
7769   o Minor bugfixes (clock skew detection):
7770     - Don't believe clock skew results from NETINFO cells that appear to
7771       arrive before we sent the VERSIONS cells they are responding to.
7772       Previously, we would accept them up to 3 minutes "in the past".
7773       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
7775   o Minor bugfixes (compatibility, standards compliance):
7776     - Fix a bug that would invoke undefined behavior on certain
7777       operating systems when trying to asprintf() a string exactly
7778       INT_MAX bytes long. We don't believe this is exploitable, but it's
7779       better to fix it anyway. Fixes bug 31001; bugfix on 0.2.2.11-alpha.
7780       Found and fixed by Tobias Stoeckmann.
7782   o Minor bugfixes (compilation warning):
7783     - Fix a compilation warning on Windows about casting a function
7784       pointer for GetTickCount64(). Fixes bug 31374; bugfix
7785       on 0.2.9.1-alpha.
7787   o Minor bugfixes (compilation):
7788     - Avoid using labs() on time_t, which can cause compilation warnings
7789       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
7791   o Minor bugfixes (distribution):
7792     - Do not ship any temporary files found in the
7793       scripts/maint/practracker directory. Fixes bug 31311; bugfix
7794       on 0.4.1.1-alpha.
7796   o Testing (continuous integration):
7797     - In Travis, make stem log a controller trace to the console, and
7798       tail stem's tor log after failure. Closes ticket 30591.
7799     - In Travis, only run the stem tests that use a tor binary. Closes
7800       ticket 30694.
7803 Changes in version 0.4.1.4-rc - 2019-07-25
7804   Tor 0.4.1.4-rc fixes a few bugs from previous versions of Tor, and
7805   updates to a new list of fallback directories. If no new bugs are
7806   found, the next release in the 0.4.1.x serious should be stable.
7808   o Major bugfixes (circuit build, guard):
7809     - When considering upgrading circuits from "waiting for guard" to
7810       "open", always ignore circuits that are marked for close. Otherwise,
7811       we can end up in the situation where a subsystem is notified that
7812       a closing circuit has just opened, leading to undesirable
7813       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
7815   o Minor features (continuous integration):
7816     - Our Travis configuration now uses Chutney to run some network
7817       integration tests automatically. Closes ticket 29280.
7819   o Minor features (fallback directory list):
7820     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
7821       in December 2018 (of which ~122 were still functional), with a
7822       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
7823       in June 2019. Closes ticket 28795.
7825   o Minor bugfixes (circuit padding):
7826     - On relays, properly check that a padding machine is absent before
7827       logging a warning about it being absent. Fixes bug 30649; bugfix
7828       on 0.4.0.1-alpha.
7829     - Add two NULL checks in unreachable places to silence Coverity (CID
7830       144729 and 1447291) and better future-proof ourselves. Fixes bug
7831       31024; bugfix on 0.4.1.1-alpha.
7833   o Minor bugfixes (crash on exit):
7834     - Avoid a set of possible code paths that could try to use freed
7835       memory in routerlist_free() while Tor was exiting. Fixes bug
7836       31003; bugfix on 0.1.2.2-alpha.
7838   o Minor bugfixes (logging):
7839     - Fix a conflict between the flag used for messaging-domain log
7840       messages, and the LD_NO_MOCK testing flag. Fixes bug 31080; bugfix
7841       on 0.4.1.1-alpha.
7843   o Minor bugfixes (memory leaks):
7844     - Fix a trivial memory leak when parsing an invalid value from a
7845       download schedule in the configuration. Fixes bug 30894; bugfix
7846       on 0.3.4.1-alpha.
7848   o Code simplification and refactoring:
7849     - Remove some dead code from circpad_machine_remove_token() to fix
7850       some Coverity warnings (CID 1447298). Fixes bug 31027; bugfix
7851       on 0.4.1.1-alpha.
7854 Changes in version 0.4.1.3-alpha - 2019-06-25
7855   Tor 0.4.1.3-alpha resolves numerous bugs left over from the previous
7856   alpha, most of them from earlier release series.
7858   o Major bugfixes (Onion service reachability):
7859     - Properly clean up the introduction point map when circuits change
7860       purpose from onion service circuits to pathbias, measurement, or
7861       other circuit types. This should fix some service-side instances
7862       of introduction point failure. Fixes bug 29034; bugfix
7863       on 0.3.2.1-alpha.
7865   o Minor features (geoip):
7866     - Update geoip and geoip6 to the June 10 2019 Maxmind GeoLite2
7867       Country database. Closes ticket 30852.
7869   o Minor features (logging):
7870     - Give a more useful assertion failure message if we think we have
7871       minherit() but we fail to make a region non-inheritable. Give a
7872       compile-time warning if our support for minherit() is incomplete.
7873       Closes ticket 30686.
7875   o Minor bugfixes (circuit isolation):
7876     - Fix a logic error that prevented the SessionGroup sub-option from
7877       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
7879   o Minor bugfixes (continuous integration):
7880     - Allow the test-stem job to fail in Travis, because it sometimes
7881       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
7882     - Skip test_rebind on macOS in Travis, because it is unreliable on
7883       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
7884     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
7885       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
7887   o Minor bugfixes (directory authorities):
7888     - Stop crashing after parsing an unknown descriptor purpose
7889       annotation. We think this bug can only be triggered by modifying a
7890       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
7892   o Minor bugfixes (pluggable transports):
7893     - When running as a bridge with pluggable transports, always publish
7894       pluggable transport information in our extrainfo descriptor, even
7895       if ExtraInfoStatistics is 0. This information is needed by
7896       BridgeDB. Fixes bug 30956; bugfix on 0.4.1.1-alpha.
7898   o Documentation:
7899     - Mention URLs for Travis/Appveyor/Jenkins in ReleasingTor.md.
7900       Closes ticket 30630.
7903 Changes in version 0.4.1.2-alpha - 2019-06-06
7904   Tor 0.4.1.2-alpha resolves numerous bugs--some of them from the
7905   previous alpha, and some much older. It also contains minor testing
7906   improvements, and an improvement to the security of our authenticated
7907   SENDME implementation.
7909   o Major bugfixes (bridges):
7910     - Consider our directory information to have changed when our list
7911       of bridges changes. Previously, Tor would not re-compute the
7912       status of its directory information when bridges changed, and
7913       therefore would not realize that it was no longer able to build
7914       circuits. Fixes part of bug 29875.
7915     - Do not count previously configured working bridges towards our
7916       total of working bridges. Previously, when Tor's list of bridges
7917       changed, it would think that the old bridges were still usable,
7918       and delay fetching router descriptors for the new ones. Fixes part
7919       of bug 29875; bugfix on 0.3.0.1-alpha.
7921   o Major bugfixes (flow control, SENDME):
7922     - Decrement the stream-level package window after packaging a cell.
7923       Previously, it was done inside a log_debug() call, meaning that if
7924       debug logs were not enabled, the decrement would never happen, and
7925       thus the window would be out of sync with the other end point.
7926       Fixes bug 30628; bugfix on 0.4.1.1-alpha.
7928   o Major bugfixes (onion service reachability):
7929     - Properly clean up the introduction point map and associated state
7930       when circuits change purpose from onion service circuits to
7931       pathbias, measurement, or other circuit types. This may fix some
7932       instances of introduction point failure. Fixes bug 29034; bugfix
7933       on 0.3.2.1-alpha.
7935   o Minor features (authenticated SENDME):
7936     - Ensure that there is enough randomness on every circuit to prevent
7937       an attacker from successfully predicting the hashes they will need
7938       to include in authenticated SENDME cells. At a random interval, if
7939       we have not sent randomness already, we now leave some extra space
7940       at the end of a cell that we can fill with random bytes. Closes
7941       ticket 26846.
7943   o Minor features (continuous integration):
7944     - When running coverage builds on Travis, we now set
7945       TOR_TEST_RNG_SEED, to avoid RNG-based coverage differences. Part
7946       of ticket 28878.
7948   o Minor features (maintenance):
7949     - Add a new "make autostyle" target that developers can use to apply
7950       all automatic Tor style and consistency conversions to the
7951       codebase. Closes ticket 30539.
7953   o Minor features (testing):
7954     - The circuitpadding tests now use a reproducible RNG implementation,
7955       so that if a test fails, we can learn why. Part of ticket 28878.
7956     - Tor's tests now support an environment variable, TOR_TEST_RNG_SEED,
7957       to set the RNG seed for tests that use a reproducible RNG. Part of
7958       ticket 28878.
7959     - When running tests in coverage mode, take additional care to make
7960       our coverage deterministic, so that we can accurately track
7961       changes in code coverage. Closes ticket 30519.
7963   o Minor bugfixes (configuration, proxies):
7964     - Fix a bug that prevented us from supporting SOCKS5 proxies that
7965       want authentication along with configured (but unused!)
7966       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
7968   o Minor bugfixes (controller):
7969     - POSTDESCRIPTOR requests should work again. Previously, they were
7970       broken if a "purpose=" flag was specified. Fixes bug 30580; bugfix
7971       on 0.4.1.1-alpha.
7972     - Repair the HSFETCH command so that it works again. Previously, it
7973       expected a body when it shouldn't have. Fixes bug 30646; bugfix
7974       on 0.4.1.1-alpha.
7976   o Minor bugfixes (developer tooling):
7977     - Fix pre-push hook to allow fixup and squash commits when pushing
7978       to non-upstream git remote. Fixes bug 30286; bugfix
7979       on 0.4.0.1-alpha.
7981   o Minor bugfixes (directory authority):
7982     - Move the "bandwidth-file-headers" line in directory authority
7983       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
7984       on 0.3.5.1-alpha.
7986   o Minor bugfixes (NetBSD):
7987     - Fix usage of minherit() on NetBSD and other platforms that define
7988       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
7989       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
7991   o Minor bugfixes (out-of-memory handler):
7992     - When purging the DNS cache because of an out-of-memory condition,
7993       try purging just the older entries at first. Previously, we would
7994       always purge the whole thing. Fixes bug 29617; bugfix
7995       on 0.3.5.1-alpha.
7997   o Minor bugfixes (portability):
7998     - Avoid crashing in our tor_vasprintf() implementation on systems
7999       that define neither vasprintf() nor _vscprintf(). (This bug has
8000       been here long enough that we question whether people are running
8001       Tor on such systems, but we're applying the fix out of caution.)
8002       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
8003       Tobias Stoeckmann.
8005   o Minor bugfixes (shutdown, libevent, memory safety):
8006     - Avoid use-after-free bugs when shutting down, by making sure that
8007       we shut down libevent only after shutting down all of its users.
8008       We believe these are harmless in practice, since they only occur
8009       on the shutdown path, and do not involve any attacker-controlled
8010       data. Fixes bug 30629; bugfix on 0.4.1.1-alpha.
8012   o Minor bugfixes (static analysis):
8013     - Fix several spurious Coverity warnings about the unit tests, to
8014       lower our chances of missing real warnings in the future. Fixes
8015       bug 30150; bugfix on 0.3.5.1-alpha and various other Tor versions.
8017   o Testing:
8018     - Specify torrc paths (with empty files) when launching tor in
8019       integration tests; refrain from reading user and system torrcs.
8020       Resolves issue 29702.
8023 Changes in version 0.4.1.1-alpha - 2019-05-22
8024   This is the first alpha in the 0.4.1.x series. It introduces
8025   lightweight circuit padding to make some onion-service circuits harder
8026   to distinguish, includes a new "authenticated SENDME" feature to make
8027   certain denial-of-service attacks more difficult, and improves
8028   performance in several areas.
8030   o Major features (circuit padding):
8031     - Onion service clients now add padding cells at the start of their
8032       INTRODUCE and RENDEZVOUS circuits, to make those circuits' traffic
8033       look more like general purpose Exit traffic. The overhead for this
8034       is 2 extra cells in each direction for RENDEZVOUS circuits, and 1
8035       extra upstream cell and 10 downstream cells for INTRODUCE
8036       circuits. This feature is only enabled when also supported by the
8037       circuit's middle node. (Clients may specify fixed middle nodes
8038       with the MiddleNodes option, and may force-disable this feature
8039       with the CircuitPadding option.) Closes ticket 28634.
8041   o Major features (code organization):
8042     - Tor now includes a generic publish-subscribe message-passing
8043       subsystem that we can use to organize intermodule dependencies. We
8044       hope to use this to reduce dependencies between modules that don't
8045       need to be related, and to generally simplify our codebase. Closes
8046       ticket 28226.
8048   o Major features (controller protocol):
8049     - Controller commands are now parsed using a generalized parsing
8050       subsystem. Previously, each controller command was responsible for
8051       parsing its own input, which led to strange inconsistencies.
8052       Closes ticket 30091.
8054   o Major features (flow control):
8055     - Implement authenticated SENDMEs as detailed in proposal 289. A
8056       SENDME cell now includes the digest of the traffic that it
8057       acknowledges, so that once an end point receives the SENDME, it
8058       can confirm the other side's knowledge of the previous cells that
8059       were sent, and prevent certain types of denial-of-service attacks.
8060       This behavior is controlled by two new consensus parameters: see
8061       the proposal for more details. Fixes ticket 26288.
8063   o Major features (performance):
8064     - Our node selection algorithm now excludes nodes in linear time.
8065       Previously, the algorithm was quadratic, which could slow down
8066       heavily used onion services. Closes ticket 30307.
8068   o Major features (performance, RNG):
8069     - Tor now constructs a fast secure pseudorandom number generator for
8070       each thread, to use when performance is critical. This PRNG is
8071       based on AES-CTR, using a buffering construction similar to
8072       libottery and the (newer) OpenBSD arc4random() code. It
8073       outperforms OpenSSL 1.1.1a's CSPRNG by roughly a factor of 100 for
8074       small outputs. Although we believe it to be cryptographically
8075       strong, we are only using it when necessary for performance.
8076       Implements tickets 29023 and 29536.
8078   o Major bugfixes (onion service v3):
8079     - Fix an unreachable bug in which an introduction point could try to
8080       send an INTRODUCE_ACK with a status code that Trunnel would refuse
8081       to encode, leading the relay to assert(). We've consolidated the
8082       ABI values into Trunnel now. Fixes bug 30454; bugfix
8083       on 0.3.0.1-alpha.
8084     - Clients can now handle unknown status codes from INTRODUCE_ACK
8085       cells. (The NACK behavior will stay the same.) This will allow us
8086       to extend status codes in the future without breaking the normal
8087       client behavior. Fixes another part of bug 30454; bugfix
8088       on 0.3.0.1-alpha.
8090   o Minor features (circuit padding):
8091     - We now use a fast PRNG when scheduling circuit padding. Part of
8092       ticket 28636.
8093     - Allow the padding machine designer to pick the edges of their
8094       histogram instead of trying to compute them automatically using an
8095       exponential formula. Resolves some undefined behavior in the case
8096       of small histograms and allows greater flexibility on machine
8097       design. Closes ticket 29298; bugfix on 0.4.0.1-alpha.
8098     - Allow circuit padding machines to hold a circuit open until they
8099       are done padding it. Closes ticket 28780.
8101   o Minor features (compile-time modules):
8102     - Add a "--list-modules" command to print a list of which compile-
8103       time modules are enabled. Closes ticket 30452.
8105   o Minor features (continuous integration):
8106     - Remove sudo configuration lines from .travis.yml as they are no
8107       longer needed with current Travis build environment. Resolves
8108       issue 30213.
8109     - In Travis, show stem's tor log after failure. Closes ticket 30234.
8111   o Minor features (controller):
8112     - Add onion service version 3 support to the HSFETCH command.
8113       Previously, only version 2 onion services were supported. Closes
8114       ticket 25417. Patch by Neel Chauhan.
8116   o Minor features (debugging):
8117     - Introduce tor_assertf() and tor_assertf_nonfatal() to enable
8118       logging of additional information during assert failure. Now we
8119       can use format strings to include information for trouble
8120       shooting. Resolves ticket 29662.
8122   o Minor features (defense in depth):
8123     - In smartlist_remove_keeporder(), set unused pointers to NULL, in
8124       case a bug causes them to be used later. Closes ticket 30176.
8125       Patch from Tobias Stoeckmann.
8126     - Tor now uses a cryptographically strong PRNG even for decisions
8127       that we do not believe are security-sensitive. Previously, for
8128       performance reasons, we had used a trivially predictable linear
8129       congruential generator algorithm for certain load-balancing and
8130       statistical sampling decisions. Now we use our fast RNG in those
8131       cases. Closes ticket 29542.
8133   o Minor features (developer tools):
8134     - Tor's "practracker" test script now checks for files and functions
8135       that seem too long and complicated. Existing overlong functions
8136       and files are accepted for now, but should eventually be
8137       refactored. Closes ticket 29221.
8138     - Add some scripts used for git maintenance to scripts/git. Closes
8139       ticket 29391.
8140     - Call practracker from pre-push and pre-commit git hooks to let
8141       developers know if they made any code style violations. Closes
8142       ticket 30051.
8143     - Add a script to check that each header has a well-formed and
8144       unique guard macro. Closes ticket 29756.
8146   o Minor features (geoip):
8147     - Update geoip and geoip6 to the May 13 2019 Maxmind GeoLite2
8148       Country database. Closes ticket 30522.
8150   o Minor features (HTTP tunnel):
8151     - Return an informative web page when the HTTPTunnelPort is used as
8152       an HTTP proxy. Closes ticket 27821, patch by "eighthave".
8154   o Minor features (IPv6, v3 onion services):
8155     - Make v3 onion services put IPv6 addresses in service descriptors.
8156       Before this change, service descriptors only contained IPv4
8157       addresses. Implements 26992.
8159   o Minor features (modularity):
8160     - The "--disable-module-dirauth" compile-time option now disables
8161       even more dirauth-only code. Closes ticket 30345.
8163   o Minor features (performance):
8164     - Use OpenSSL's implementations of SHA3 when available (in OpenSSL
8165       1.1.1 and later), since they tend to be faster than tiny-keccak.
8166       Closes ticket 28837.
8168   o Minor features (testing):
8169     - Tor's unit test code now contains helper functions to replace the
8170       PRNG with a deterministic or reproducible version for testing.
8171       Previously, various tests implemented this in various ways.
8172       Implements ticket 29732.
8173     - We now have a script, cov-test-determinism.sh, to identify places
8174       where our unit test coverage has become nondeterministic. Closes
8175       ticket 29436.
8176     - Check that representative subsets of values of `int` and `unsigned
8177       int` can be represented by `void *`. Resolves issue 29537.
8179   o Minor bugfixes (bridge authority):
8180     - Bridge authorities now set bridges as running or non-running when
8181       about to dump their status to a file. Previously, they set bridges
8182       as running in response to a GETINFO command, but those shouldn't
8183       modify data structures. Fixes bug 24490; bugfix on 0.2.0.13-alpha.
8184       Patch by Neel Chauhan.
8186   o Minor bugfixes (channel padding statistics):
8187     - Channel padding write totals and padding-enabled totals are now
8188       counted properly in relay extrainfo descriptors. Fixes bug 29231;
8189       bugfix on 0.3.1.1-alpha.
8191   o Minor bugfixes (circuit padding):
8192     - Add a "CircuitPadding" torrc option to disable circuit padding.
8193       Fixes bug 28693; bugfix on 0.4.0.1-alpha.
8194     - Allow circuit padding machines to specify that they do not
8195       contribute much overhead, and provide consensus flags and torrc
8196       options to force clients to only use these low overhead machines.
8197       Fixes bug 29203; bugfix on 0.4.0.1-alpha.
8198     - Provide a consensus parameter to fully disable circuit padding, to
8199       be used in emergency network overload situations. Fixes bug 30173;
8200       bugfix on 0.4.0.1-alpha.
8201     - The circuit padding subsystem will no longer schedule padding if
8202       dormant mode is enabled. Fixes bug 28636; bugfix on 0.4.0.1-alpha.
8203     - Inspect a circuit-level cell queue before sending padding, to
8204       avoid sending padding while too much data is already queued. Fixes
8205       bug 29204; bugfix on 0.4.0.1-alpha.
8206     - Avoid calling monotime_absolute_usec() in circuit padding machines
8207       that do not use token removal or circuit RTT estimation. Fixes bug
8208       29085; bugfix on 0.4.0.1-alpha.
8210   o Minor bugfixes (compilation, unusual configurations):
8211     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
8212       due to missing declarations of abort(), and prevent other such
8213       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
8215   o Minor bugfixes (controller protocol):
8216     - Teach the controller parser to distinguish an object preceded by
8217       an argument list from one without. Previously, it couldn't
8218       distinguish an argument list from the first line of a multiline
8219       object. Fixes bug 29984; bugfix on 0.2.3.8-alpha.
8221   o Minor bugfixes (directory authority, ipv6):
8222     - Directory authorities with IPv6 support now always mark themselves
8223       as reachable via IPv6. Fixes bug 24338; bugfix on 0.2.4.1-alpha.
8224       Patch by Neel Chauhan.
8226   o Minor bugfixes (documentation):
8227     - Improve the documentation for using MapAddress with ".exit". Fixes
8228       bug 30109; bugfix on 0.1.0.1-rc.
8229     - Improve the monotonic time module and function documentation to
8230       explain what "monotonic" actually means, and document some results
8231       that have surprised people. Fixes bug 29640; bugfix
8232       on 0.2.9.1-alpha.
8233     - Use proper formatting when providing an example on quoting options
8234       that contain whitespace. Fixes bug 29635; bugfix on 0.2.3.18-rc.
8236   o Minor bugfixes (logging):
8237     - Do not log a warning when running with an OpenSSL version other
8238       than the one Tor was compiled with, if the two versions should be
8239       compatible. Previously, we would warn whenever the version was
8240       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
8241     - Warn operators when the MyFamily option is set but ContactInfo is
8242       missing, as the latter should be set too. Fixes bug 25110; bugfix
8243       on 0.3.3.1-alpha.
8245   o Minor bugfixes (memory leak):
8246     - Avoid a minor memory leak that could occur on relays when failing
8247       to create a "keys" directory. Fixes bug 30148; bugfix
8248       on 0.3.3.1-alpha.
8250   o Minor bugfixes (onion services):
8251     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
8252       implementation) when failing to load an onion service client
8253       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
8254     - When refusing to launch a controller's HSFETCH request because of
8255       rate-limiting, respond to the controller with a new response,
8256       "QUERY_RATE_LIMITED". Previously, we would log QUERY_NO_HSDIR for
8257       this case. Fixes bug 28269; bugfix on 0.3.1.1-alpha. Patch by
8258       Neel Chauhan.
8259     - When relaunching a circuit to a rendezvous service, mark the
8260       circuit as needing high-uptime routers as appropriate. Fixes bug
8261       17357; bugfix on 0.1.0.1-rc. Patch by Neel Chauhan.
8262     - Stop ignoring IPv6 link specifiers sent to v3 onion services.
8263       (IPv6 support for v3 onion services is still incomplete: see
8264       ticket 23493 for details.) Fixes bug 23588; bugfix on
8265       0.3.2.1-alpha. Patch by Neel Chauhan.
8267   o Minor bugfixes (onion services, performance):
8268     - When building circuits to onion services, call tor_addr_parse()
8269       less often. Previously, we called tor_addr_parse() in
8270       circuit_is_acceptable() even if its output wasn't used. This
8271       change should improve performance when building circuits. Fixes
8272       bug 22210; bugfix on 0.2.8.12. Patch by Neel Chauhan.
8274   o Minor bugfixes (performance):
8275     - When checking whether a node is a bridge, use a fast check to make
8276       sure that its identity is set. Previously, we used a constant-time
8277       check, which is not necessary in this case. Fixes bug 30308;
8278       bugfix on 0.3.5.1-alpha.
8280   o Minor bugfixes (pluggable transports):
8281     - Tor now sets TOR_PT_EXIT_ON_STDIN_CLOSE=1 for client transports as
8282       well as servers. Fixes bug 25614; bugfix on 0.2.7.1-alpha.
8284   o Minor bugfixes (probability distributions):
8285     - Refactor and improve parts of the probability distribution code
8286       that made Coverity complain. Fixes bug 29805; bugfix
8287       on 0.4.0.1-alpha.
8289   o Minor bugfixes (python):
8290     - Stop assuming that /usr/bin/python3 exists. For scripts that work
8291       with python2, use /usr/bin/python. Otherwise, use /usr/bin/env
8292       python3. Fixes bug 29913; bugfix on 0.2.5.3-alpha.
8294   o Minor bugfixes (relay):
8295     - When running as a relay, if IPv6Exit is set to 1 while ExitRelay
8296       is auto, act as if ExitRelay is 1. Previously, we would ignore
8297       IPv6Exit if ExitRelay was 0 or auto. Fixes bug 29613; bugfix on
8298       0.3.5.1-alpha. Patch by Neel Chauhan.
8300   o Minor bugfixes (stats):
8301     - When ExtraInfoStatistics is 0, stop including bandwidth usage
8302       statistics, GeoIPFile hashes, ServerTransportPlugin lines, and
8303       bridge statistics by country in extra-info documents. Fixes bug
8304       29018; bugfix on 0.2.4.1-alpha.
8306   o Minor bugfixes (testing):
8307     - Call setrlimit() to disable core dumps in test_bt_cl.c. Previously
8308       we used `ulimit -c` in test_bt.sh, which violates POSIX shell
8309       compatibility. Fixes bug 29061; bugfix on 0.3.5.1-alpha.
8310     - Fix some incorrect code in the v3 onion service unit tests. Fixes
8311       bug 29243; bugfix on 0.3.2.1-alpha.
8312     - In the "routerkeys/*" tests, check the return values of mkdir()
8313       for possible failures. Fixes bug 29939; bugfix on 0.2.7.2-alpha.
8314       Found by Coverity as CID 1444254.
8315     - Split test_utils_general() into several smaller test functions.
8316       This makes it easier to perform resource deallocation on assert
8317       failure, and fixes Coverity warnings CID 1444117 and CID 1444118.
8318       Fixes bug 29823; bugfix on 0.2.9.1-alpha.
8320   o Minor bugfixes (tor-resolve):
8321     - Fix a memory leak in tor-resolve that could happen if Tor gave it
8322       a malformed SOCKS response. (Memory leaks in tor-resolve don't
8323       actually matter, but it's good to fix them anyway.) Fixes bug
8324       30151; bugfix on 0.4.0.1-alpha.
8326   o Code simplification and refactoring:
8327     - Abstract out the low-level formatting of replies on the control
8328       port. Implements ticket 30007.
8329     - Add several assertions in an attempt to fix some Coverity
8330       warnings. Closes ticket 30149.
8331     - Introduce a connection_dir_buf_add() helper function that checks
8332       for compress_state of dir_connection_t and automatically writes a
8333       string to directory connection with or without compression.
8334       Resolves issue 28816.
8335     - Make the base32_decode() API return the number of bytes written,
8336       for consistency with base64_decode(). Closes ticket 28913.
8337     - Move most relay-only periodic events out of mainloop.c into the
8338       relay subsystem. Closes ticket 30414.
8339     - Refactor and encapsulate parts of the codebase that manipulate
8340       crypt_path_t objects. Resolves issue 30236.
8341     - Refactor several places in our code that Coverity incorrectly
8342       believed might have memory leaks. Closes ticket 30147.
8343     - Remove redundant return values in crypto_format, and the
8344       associated return value checks elsewhere in the code. Make the
8345       implementations in crypto_format consistent, and remove redundant
8346       code. Resolves ticket 29660.
8347     - Rename tor_mem_is_zero() to fast_mem_is_zero(), to emphasize that
8348       it is not a constant-time function. Closes ticket 30309.
8349     - Replace hs_desc_link_specifier_t with link_specifier_t, and remove
8350       all hs_desc_link_specifier_t-specific code. Fixes bug 22781;
8351       bugfix on 0.3.2.1-alpha.
8352     - Simplify v3 onion service link specifier handling code. Fixes bug
8353       23576; bugfix on 0.3.2.1-alpha.
8354     - Split crypto_digest.c into NSS code, OpenSSL code, and shared
8355       code. Resolves ticket 29108.
8356     - Split control.c into several submodules, in preparation for
8357       distributing its current responsibilities throughout the codebase.
8358       Closes ticket 29894.
8359     - Start to move responsibility for knowing about periodic events to
8360       the appropriate subsystems, so that the mainloop doesn't need to
8361       know all the periodic events in the rest of the codebase.
8362       Implements tickets 30293 and 30294.
8364   o Documentation:
8365     - Document how to find git commits and tags for bug fixes in
8366       CodingStandards.md. Update some file documentation. Closes
8367       ticket 30261.
8369   o Removed features:
8370     - Remove the linux-tor-prio.sh script from contrib/operator-tools
8371       directory. Resolves issue 29434.
8372     - Remove the obsolete OpenSUSE initscript. Resolves issue 30076.
8373     - Remove the obsolete script at contrib/dist/tor.sh.in. Resolves
8374       issue 30075.
8376   o Code simplification and refactoring (shell scripts):
8377     - Clean up many of our shell scripts to fix shellcheck warnings.
8378       These include autogen.sh (ticket 26069), test_keygen.sh (ticket
8379       29062), test_switch_id.sh (ticket 29065), test_rebind.sh (ticket
8380       29063), src/test/fuzz/minimize.sh (ticket 30079), test_rust.sh
8381       (ticket 29064), torify (ticket 29070), asciidoc-helper.sh (29926),
8382       fuzz_multi.sh (30077), fuzz_static_testcases.sh (ticket 29059),
8383       nagios-check-tor-authority-cert (ticket 29071),
8384       src/test/fuzz/fixup_filenames.sh (ticket 30078), test-network.sh
8385       (ticket 29060), test_key_expiration.sh (ticket 30002),
8386       zero_length_keys.sh (ticket 29068), and test_workqueue_*.sh
8387       (ticket 29067).
8389   o Testing (chutney):
8390     - In "make test-network-all", test IPv6-only v3 single onion
8391       services, using the chutney network single-onion-v23-ipv6-md.
8392       Closes ticket 27251.
8395 Changes in version 0.4.0.5 - 2019-05-02
8396   This is the first stable release in the 0.4.0.x series. It contains
8397   improvements for power management and bootstrap reporting, as well as
8398   preliminary backend support for circuit padding to prevent some kinds
8399   of traffic analysis. It also continues our work in refactoring Tor for
8400   long-term maintainability.
8402   Per our support policy, we will support the 0.4.0.x series for nine
8403   months, or until three months after the release of a stable 0.4.1.x:
8404   whichever is longer. If you need longer-term support, please stick
8405   with 0.3.5.x, which will we plan to support until Feb 2022.
8407   Below are the changes since 0.4.0.4-rc. For a complete list of changes
8408   since 0.3.5.7, see the ReleaseNotes file.
8410   o Minor features (continuous integration):
8411     - In Travis, tell timelimit to use stem's backtrace signals, and
8412       launch python directly from timelimit, so python receives the
8413       signals from timelimit, rather than make. Closes ticket 30117.
8415   o Minor features (diagnostic):
8416     - Add more diagnostic log messages in an attempt to solve the issue
8417       of NUL bytes appearing in a microdescriptor cache. Related to
8418       ticket 28223.
8420   o Minor features (testing):
8421     - Use the approx_time() function when setting the "Expires" header
8422       in directory replies, to make them more testable. Needed for
8423       ticket 30001.
8425   o Minor bugfixes (rust):
8426     - Abort on panic in all build profiles, instead of potentially
8427       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
8429   o Minor bugfixes (shellcheck):
8430     - Look for scripts in their correct locations during "make
8431       shellcheck". Previously we had looked in the wrong place during
8432       out-of-tree builds. Fixes bug 30263; bugfix on 0.4.0.1-alpha.
8434   o Minor bugfixes (testing):
8435     - Check the time in the "Expires" header using approx_time(). Fixes
8436       bug 30001; bugfix on 0.4.0.4-rc.
8438   o Minor bugfixes (UI):
8439     - Lower log level of unlink() errors during bootstrap. Fixes bug
8440       29930; bugfix on 0.4.0.1-alpha.
8443 Changes in version 0.4.0.4-rc - 2019-04-11
8444   Tor 0.4.0.4-rc is the first release candidate in its series; it fixes
8445   several bugs from earlier versions, including some that had affected
8446   stability, and one that prevented relays from working with NSS.
8448   o Major bugfixes (NSS, relay):
8449     - When running with NSS, disable TLS 1.2 ciphersuites that use
8450       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
8451       these ciphersuites don't work -- which caused relays to fail to
8452       handshake with one another when these ciphersuites were enabled.
8453       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
8455   o Minor features (bandwidth authority):
8456     - Make bandwidth authorities ignore relays that are reported in the
8457       bandwidth file with the flag "vote=0". This change allows us to
8458       report unmeasured relays for diagnostic reasons without including
8459       their bandwidth in the bandwidth authorities' vote. Closes
8460       ticket 29806.
8461     - When a directory authority is using a bandwidth file to obtain the
8462       bandwidth values that will be included in the next vote, serve
8463       this bandwidth file at /tor/status-vote/next/bandwidth. Closes
8464       ticket 21377.
8466   o Minor features (circuit padding):
8467     - Stop warning about undefined behavior in the probability
8468       distribution tests. Float division by zero may technically be
8469       undefined behavior in C, but it's well defined in IEEE 754.
8470       Partial backport of 29298. Closes ticket 29527; bugfix
8471       on 0.4.0.1-alpha.
8473   o Minor features (continuous integration):
8474     - On Travis Rust builds, cleanup Rust registry and refrain from
8475       caching the "target/" directory to speed up builds. Resolves
8476       issue 29962.
8478   o Minor features (dormant mode):
8479     - Add a DormantCanceledByStartup option to tell Tor that it should
8480       treat a startup event as cancelling any previous dormant state.
8481       Integrators should use this option with caution: it should only be
8482       used if Tor is being started because of something that the user
8483       did, and not if Tor is being automatically started in the
8484       background. Closes ticket 29357.
8486   o Minor features (geoip):
8487     - Update geoip and geoip6 to the April 2 2019 Maxmind GeoLite2
8488       Country database. Closes ticket 29992.
8490   o Minor features (NSS, diagnostic):
8491     - Try to log an error from NSS (if there is any) and a more useful
8492       description of our situation if we are using NSS and a call to
8493       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
8495   o Minor bugfixes (security):
8496     - Fix a potential double free bug when reading huge bandwidth files.
8497       The issue is not exploitable in the current Tor network because
8498       the vulnerable code is only reached when directory authorities
8499       read bandwidth files, but bandwidth files come from a trusted
8500       source (usually the authorities themselves). Furthermore, the
8501       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
8502       which are not used by any of the current authorities. Fixes bug
8503       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
8504       Tobias Stoeckmann.
8505     - Verify in more places that we are not about to create a buffer
8506       with more than INT_MAX bytes, to avoid possible OOB access in the
8507       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
8508       fixed by Tobias Stoeckmann.
8510   o Minor bugfix (continuous integration):
8511     - Reset coverage state on disk after Travis CI has finished. This
8512       should prevent future coverage merge errors from causing the test
8513       suite for the "process" subsystem to fail. The process subsystem
8514       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
8515       on 0.2.9.15.
8516     - Terminate test-stem if it takes more than 9.5 minutes to run.
8517       (Travis terminates the job after 10 minutes of no output.)
8518       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
8520   o Minor bugfixes (bootstrap reporting):
8521     - During bootstrap reporting, correctly distinguish pluggable
8522       transports from plain proxies. Fixes bug 28925; bugfix
8523       on 0.4.0.1-alpha.
8525   o Minor bugfixes (C correctness):
8526     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
8527       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
8528       CID 1444119.
8530   o Minor bugfixes (circuitpadding testing):
8531     - Minor tweaks to avoid rare test failures related to timers and
8532       monotonic time. Fixes bug 29500; bugfix on 0.4.0.1-alpha.
8534   o Minor bugfixes (directory authorities):
8535     - Actually include the bandwidth-file-digest line in directory
8536       authority votes. Fixes bug 29959; bugfix on 0.4.0.2-alpha.
8538   o Minor bugfixes (logging):
8539     - On Windows, when errors cause us to reload a consensus from disk,
8540       tell the user that we are retrying at log level "notice".
8541       Previously we only logged this information at "info", which was
8542       confusing because the errors themselves were logged at "warning".
8543       Improves previous fix for 28614. Fixes bug 30004; bugfix
8544       on 0.4.0.2-alpha.
8546   o Minor bugfixes (pluggable transports):
8547     - Restore old behavior when it comes to discovering the path of a
8548       given Pluggable Transport executable file. A change in
8549       0.4.0.1-alpha had broken this behavior on paths containing a
8550       space. Fixes bug 29874; bugfix on 0.4.0.1-alpha.
8552   o Minor bugfixes (testing):
8553     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
8554       recent test-network.sh to use new chutney features in CI. Fixes
8555       bug 29703; bugfix on 0.2.9.1-alpha.
8556     - Fix a test failure on Windows caused by an unexpected "BUG"
8557       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
8558       on 0.2.9.3-alpha.
8560   o Minor bugfixes (TLS protocol):
8561     - When classifying a client's selection of TLS ciphers, if the
8562       client ciphers are not yet available, do not cache the result.
8563       Previously, we had cached the unavailability of the cipher list
8564       and never looked again, which in turn led us to assume that the
8565       client only supported the ancient V1 link protocol. This, in turn,
8566       was causing Stem integration tests to stall in some cases. Fixes
8567       bug 30021; bugfix on 0.2.4.8-alpha.
8569   o Code simplification and refactoring:
8570     - Introduce a connection_dir_buf_add() helper function that detects
8571       whether compression is in use, and adds a string accordingly.
8572       Resolves issue 28816.
8573     - Refactor handle_get_next_bandwidth() to use
8574       connection_dir_buf_add(). Implements ticket 29897.
8576   o Documentation:
8577     - Clarify that Tor performs stream isolation among *Port listeners
8578       by default. Resolves issue 29121.
8581 Changes in version 0.4.0.3-alpha - 2019-03-22
8582   Tor 0.4.0.3-alpha is the third in its series; it fixes several small
8583   bugs from earlier versions.
8585   o Minor features (address selection):
8586     - Treat the subnet 100.64.0.0/10 as public for some purposes;
8587       private for others. This subnet is the RFC 6598 (Carrier Grade
8588       NAT) IP range, and is deployed by many ISPs as an alternative to
8589       RFC 1918 that does not break existing internal networks. Tor now
8590       blocks SOCKS and control ports on these addresses and warns users
8591       if client ports or ExtORPorts are listening on a RFC 6598 address.
8592       Closes ticket 28525. Patch by Neel Chauhan.
8594   o Minor features (geoip):
8595     - Update geoip and geoip6 to the March 4 2019 Maxmind GeoLite2
8596       Country database. Closes ticket 29666.
8598   o Minor bugfixes (circuitpadding):
8599     - Inspect the circuit-level cell queue before sending padding, to
8600       avoid sending padding when too much data is queued. Fixes bug
8601       29204; bugfix on 0.4.0.1-alpha.
8603   o Minor bugfixes (logging):
8604     - Correct a misleading error message when IPv4Only or IPv6Only is
8605       used but the resolved address can not be interpreted as an address
8606       of the specified IP version. Fixes bug 13221; bugfix on
8607       0.2.3.9-alpha. Patch from Kris Katterjohn.
8608     - Log the correct port number for listening sockets when "auto" is
8609       used to let Tor pick the port number. Previously, port 0 was
8610       logged instead of the actual port number. Fixes bug 29144; bugfix
8611       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
8612     - Stop logging a BUG() warning when Tor is waiting for exit
8613       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
8615   o Minor bugfixes (memory management):
8616     - Refactor the shared random state's memory management so that it
8617       actually takes ownership of the shared random value pointers.
8618       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
8620   o Minor bugfixes (memory management, testing):
8621     - Stop leaking parts of the shared random state in the shared-random
8622       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
8624   o Minor bugfixes (pluggable transports):
8625     - Fix an assertion failure crash bug when a pluggable transport is
8626       terminated during the bootstrap phase. Fixes bug 29562; bugfix
8627       on 0.4.0.1-alpha.
8629   o Minor bugfixes (Rust, protover):
8630     - Add a missing "Padding" value to the Rust implementation of
8631       protover. Fixes bug 29631; bugfix on 0.4.0.1-alpha.
8633   o Minor bugfixes (single onion services):
8634     - Allow connections to single onion services to remain idle without
8635       being disconnected. Previously, relays acting as rendezvous points
8636       for single onion services were mistakenly closing idle rendezvous
8637       circuits after 60 seconds, thinking that they were unused
8638       directory-fetching circuits that had served their purpose. Fixes
8639       bug 29665; bugfix on 0.2.1.26.
8641   o Minor bugfixes (stats):
8642     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
8643       relay and bridge extra-info documents. Fixes bug 29017; bugfix
8644       on 0.3.1.1-alpha.
8646   o Minor bugfixes (testing):
8647     - Downgrade some LOG_ERR messages in the address/* tests to
8648       warnings. The LOG_ERR messages were occurring when we had no
8649       configured network. We were failing the unit tests, because we
8650       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
8651       29530; bugfix on 0.3.5.8.
8652     - Fix our gcov wrapper script to look for object files at the
8653       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
8654     - Decrease the false positive rate of stochastic probability
8655       distribution tests. Fixes bug 29693; bugfix on 0.4.0.1-alpha.
8657   o Minor bugfixes (Windows, CI):
8658     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
8659       Windows Server 2012 R2 job. The remaining 2 jobs still provide
8660       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
8661       fast_finish, so failed jobs terminate the build immediately. Fixes
8662       bug 29601; bugfix on 0.3.5.4-alpha.
8665 Changes in version 0.3.5.8 - 2019-02-21
8666   Tor 0.3.5.8 backports several fixes from later releases, including fixes
8667   for an annoying SOCKS-parsing bug that affected users in earlier 0.3.5.x
8668   releases.
8670   It also includes a fix for a medium-severity security bug affecting Tor
8671   0.3.2.1-alpha and later. All Tor instances running an affected release
8672   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
8674   o Major bugfixes (cell scheduler, KIST, security):
8675     - Make KIST consider the outbuf length when computing what it can
8676       put in the outbuf. Previously, KIST acted as though the outbuf
8677       were empty, which could lead to the outbuf becoming too full. It
8678       is possible that an attacker could exploit this bug to cause a Tor
8679       client or relay to run out of memory and crash. Fixes bug 29168;
8680       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
8681       TROVE-2019-001 and CVE-2019-8955.
8683   o Major bugfixes (networking, backport from 0.4.0.2-alpha):
8684     - Gracefully handle empty username/password fields in SOCKS5
8685       username/password auth message and allow SOCKS5 handshake to
8686       continue. Previously, we had rejected these handshakes, breaking
8687       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
8689   o Minor features (compilation, backport from 0.4.0.2-alpha):
8690     - Compile correctly when OpenSSL is built with engine support
8691       disabled, or with deprecated APIs disabled. Closes ticket 29026.
8692       Patches from "Mangix".
8694   o Minor features (geoip):
8695     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
8696       Country database. Closes ticket 29478.
8698   o Minor features (testing, backport from 0.4.0.2-alpha):
8699     - Treat all unexpected ERR and BUG messages as test failures. Closes
8700       ticket 28668.
8702   o Minor bugfixes (onion service v3, client, backport from 0.4.0.1-alpha):
8703     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
8704       connection waiting for a descriptor that we actually have in the
8705       cache. It turns out that this can actually happen, though it is
8706       rare. Now, tor will recover and retry the descriptor. Fixes bug
8707       28669; bugfix on 0.3.2.4-alpha.
8709   o Minor bugfixes (IPv6, backport from 0.4.0.1-alpha):
8710     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
8711       IPv6 socket was bound using an address family of AF_INET instead
8712       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
8713       Kris Katterjohn.
8715   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
8716     - Update Cargo.lock file to match the version made by the latest
8717       version of Rust, so that "make distcheck" will pass again. Fixes
8718       bug 29244; bugfix on 0.3.3.4-alpha.
8720   o Minor bugfixes (client, clock skew, backport from 0.4.0.1-alpha):
8721     - Select guards even if the consensus has expired, as long as the
8722       consensus is still reasonably live. Fixes bug 24661; bugfix
8723       on 0.3.0.1-alpha.
8725   o Minor bugfixes (compilation, backport from 0.4.0.1-alpha):
8726     - Compile correctly on OpenBSD; previously, we were missing some
8727       headers required in order to detect it properly. Fixes bug 28938;
8728       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
8730   o Minor bugfixes (documentation, backport from 0.4.0.2-alpha):
8731     - Describe the contents of the v3 onion service client authorization
8732       files correctly: They hold public keys, not private keys. Fixes
8733       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
8735   o Minor bugfixes (logging, backport from 0.4.0.1-alpha):
8736     - Rework rep_hist_log_link_protocol_counts() to iterate through all
8737       link protocol versions when logging incoming/outgoing connection
8738       counts. Tor no longer skips version 5, and we won't have to
8739       remember to update this function when new link protocol version is
8740       developed. Fixes bug 28920; bugfix on 0.2.6.10.
8742   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
8743     - Log more information at "warning" level when unable to read a
8744       private key; log more information at "info" level when unable to
8745       read a public key. We had warnings here before, but they were lost
8746       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
8748   o Minor bugfixes (misc, backport from 0.4.0.2-alpha):
8749     - The amount of total available physical memory is now determined
8750       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
8751       when it is defined and a 64-bit variant is not available. Fixes
8752       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
8754   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
8755     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
8756       than one private key for a hidden service. Fixes bug 29040; bugfix
8757       on 0.3.5.1-alpha.
8758     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
8759       "debug" level. Tor used to log it as a warning, which caused very
8760       long log lines to appear for some users. Fixes bug 29135; bugfix
8761       on 0.3.2.1-alpha.
8762     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
8763       as a warning. Instead, log it as a protocol warning, because there
8764       is nothing that relay operators can do to fix it. Fixes bug 29029;
8765       bugfix on 0.2.5.7-rc.
8767   o Minor bugfixes (tests, directory clients, backport from 0.4.0.1-alpha):
8768     - Mark outdated dirservers when Tor only has a reasonably live
8769       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
8771   o Minor bugfixes (tests, backport from 0.4.0.2-alpha):
8772     - Detect and suppress "bug" warnings from the util/time test on
8773       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
8774     - Do not log an error-level message if we fail to find an IPv6
8775       network interface from the unit tests. Fixes bug 29160; bugfix
8776       on 0.2.7.3-rc.
8778   o Minor bugfixes (usability, backport from 0.4.0.1-alpha):
8779     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
8780       Some users took this phrasing to mean that the mentioned guard was
8781       under their control or responsibility, which it is not. Fixes bug
8782       28895; bugfix on Tor 0.3.0.1-alpha.
8785 Changes in version 0.3.4.11 - 2019-02-21
8786   Tor 0.3.4.11 is the third stable release in its series.  It includes
8787   a fix for a medium-severity security bug affecting Tor 0.3.2.1-alpha and
8788   later. All Tor instances running an affected release should upgrade to
8789   0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
8791   o Major bugfixes (cell scheduler, KIST, security):
8792     - Make KIST consider the outbuf length when computing what it can
8793       put in the outbuf. Previously, KIST acted as though the outbuf
8794       were empty, which could lead to the outbuf becoming too full. It
8795       is possible that an attacker could exploit this bug to cause a Tor
8796       client or relay to run out of memory and crash. Fixes bug 29168;
8797       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
8798       TROVE-2019-001 and CVE-2019-8955.
8800   o Minor features (geoip):
8801     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
8802       Country database. Closes ticket 29478.
8804   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
8805     - Update Cargo.lock file to match the version made by the latest
8806       version of Rust, so that "make distcheck" will pass again. Fixes
8807       bug 29244; bugfix on 0.3.3.4-alpha.
8809   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
8810     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
8811       as a warning. Instead, log it as a protocol warning, because there
8812       is nothing that relay operators can do to fix it. Fixes bug 29029;
8813       bugfix on 0.2.5.7-rc.
8816 Changes in version 0.3.3.12 - 2019-02-21
8817   Tor 0.3.3.12 fixes a medium-severity security bug affecting Tor
8818   0.3.2.1-alpha and later. All Tor instances running an affected release
8819   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
8821   This release marks the end of support for the Tor 0.3.3.x series. We
8822   recommend that users switch to either the Tor 0.3.4 series (supported
8823   until at least 10 June 2019), or the Tor 0.3.5 series, which will
8824   receive long-term support until at least 1 Feb 2022.
8826   o Major bugfixes (cell scheduler, KIST, security):
8827     - Make KIST consider the outbuf length when computing what it can
8828       put in the outbuf. Previously, KIST acted as though the outbuf
8829       were empty, which could lead to the outbuf becoming too full. It
8830       is possible that an attacker could exploit this bug to cause a Tor
8831       client or relay to run out of memory and crash. Fixes bug 29168;
8832       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
8833       TROVE-2019-001 and CVE-2019-8955.
8835   o Minor features (geoip):
8836     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
8837       Country database. Closes ticket 29478.
8839   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
8840     - Update Cargo.lock file to match the version made by the latest
8841       version of Rust, so that "make distcheck" will pass again. Fixes
8842       bug 29244; bugfix on 0.3.3.4-alpha.
8844   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
8845     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
8846       as a warning. Instead, log it as a protocol warning, because there
8847       is nothing that relay operators can do to fix it. Fixes bug 29029;
8848       bugfix on 0.2.5.7-rc.
8851 Changes in version 0.4.0.2-alpha - 2019-02-21
8852   Tor 0.4.0.2-alpha is the second alpha in its series; it fixes several
8853   bugs from earlier versions, including several that had broken
8854   backward compatibility.
8856   It also includes a fix for a medium-severity security bug affecting Tor
8857   0.3.2.1-alpha and later. All Tor instances running an affected release
8858   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
8860   o Major bugfixes (cell scheduler, KIST, security):
8861     - Make KIST consider the outbuf length when computing what it can
8862       put in the outbuf. Previously, KIST acted as though the outbuf
8863       were empty, which could lead to the outbuf becoming too full. It
8864       is possible that an attacker could exploit this bug to cause a Tor
8865       client or relay to run out of memory and crash. Fixes bug 29168;
8866       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
8867       TROVE-2019-001 and CVE-2019-8955.
8869   o Major bugfixes (networking):
8870     - Gracefully handle empty username/password fields in SOCKS5
8871       username/password auth messsage and allow SOCKS5 handshake to
8872       continue. Previously, we had rejected these handshakes, breaking
8873       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
8875   o Major bugfixes (windows, startup):
8876     - When reading a consensus file from disk, detect whether it was
8877       written in text mode, and re-read it in text mode if so. Always
8878       write consensus files in binary mode so that we can map them into
8879       memory later. Previously, we had written in text mode, which
8880       confused us when we tried to map the file on windows. Fixes bug
8881       28614; bugfix on 0.4.0.1-alpha.
8883   o Minor features (compilation):
8884     - Compile correctly when OpenSSL is built with engine support
8885       disabled, or with deprecated APIs disabled. Closes ticket 29026.
8886       Patches from "Mangix".
8888   o Minor features (developer tooling):
8889     - Check that bugfix versions in changes files look like Tor versions
8890       from the versions spec. Warn when bugfixes claim to be on a future
8891       release. Closes ticket 27761.
8892     - Provide a git pre-commit hook that disallows committing if we have
8893       any failures in our code and changelog formatting checks. It is
8894       now available in scripts/maint/pre-commit.git-hook. Implements
8895       feature 28976.
8897   o Minor features (directory authority):
8898     - When a directory authority is using a bandwidth file to obtain
8899       bandwidth values, include the digest of that file in the vote.
8900       Closes ticket 26698.
8902   o Minor features (geoip):
8903     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
8904       Country database. Closes ticket 29478.
8906   o Minor features (testing):
8907     - Treat all unexpected ERR and BUG messages as test failures. Closes
8908       ticket 28668.
8910   o Minor bugfixes (build, compatibility, rust):
8911     - Update Cargo.lock file to match the version made by the latest
8912       version of Rust, so that "make distcheck" will pass again. Fixes
8913       bug 29244; bugfix on 0.3.3.4-alpha.
8915   o Minor bugfixes (compilation):
8916     - Fix compilation warnings in test_circuitpadding.c. Fixes bug
8917       29169; bugfix on 0.4.0.1-alpha.
8918     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
8919       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
8921   o Minor bugfixes (documentation):
8922     - Describe the contents of the v3 onion service client authorization
8923       files correctly: They hold public keys, not private keys. Fixes
8924       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
8926   o Minor bugfixes (linux seccomp sandbox):
8927     - Fix startup crash when experimental sandbox support is enabled.
8928       Fixes bug 29150; bugfix on 0.4.0.1-alpha. Patch by Peter Gerber.
8930   o Minor bugfixes (logging):
8931     - Avoid logging that we are relaxing a circuit timeout when that
8932       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
8933     - Log more information at "warning" level when unable to read a
8934       private key; log more information at "info" level when unable to
8935       read a public key. We had warnings here before, but they were lost
8936       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
8938   o Minor bugfixes (misc):
8939     - The amount of total available physical memory is now determined
8940       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
8941       when it is defined and a 64-bit variant is not available. Fixes
8942       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
8944   o Minor bugfixes (onion services):
8945     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
8946       than one private key for a hidden service. Fixes bug 29040; bugfix
8947       on 0.3.5.1-alpha.
8948     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
8949       "debug" level. Tor used to log it as a warning, which caused very
8950       long log lines to appear for some users. Fixes bug 29135; bugfix
8951       on 0.3.2.1-alpha.
8952     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
8953       as a warning. Instead, log it as a protocol warning, because there
8954       is nothing that relay operators can do to fix it. Fixes bug 29029;
8955       bugfix on 0.2.5.7-rc.
8957   o Minor bugfixes (scheduler):
8958     - When re-adding channels to the pending list, check the correct
8959       channel's sched_heap_idx. This issue has had no effect in mainline
8960       Tor, but could have led to bugs down the road in improved versions
8961       of our circuit scheduling code. Fixes bug 29508; bugfix
8962       on 0.3.2.10.
8964   o Minor bugfixes (tests):
8965     - Fix intermittent failures on an adaptive padding test. Fixes one
8966       case of bug 29122; bugfix on 0.4.0.1-alpha.
8967     - Disable an unstable circuit-padding test that was failing
8968       intermittently because of an ill-defined small histogram. Such
8969       histograms will be allowed again after 29298 is implemented. Fixes
8970       a second case of bug 29122; bugfix on 0.4.0.1-alpha.
8971     - Detect and suppress "bug" warnings from the util/time test on
8972       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
8973     - Do not log an error-level message if we fail to find an IPv6
8974       network interface from the unit tests. Fixes bug 29160; bugfix
8975       on 0.2.7.3-rc.
8977   o Documentation:
8978     - In the manpage entry describing MapAddress torrc setting, use
8979       example IP addresses from ranges specified for use in documentation
8980       by RFC 5737. Resolves issue 28623.
8982   o Removed features:
8983     - Remove the old check-tor script. Resolves issue 29072.
8986 Changes in version 0.4.0.1-alpha - 2019-01-18
8987   Tor 0.4.0.1-alpha is the first release in the new 0.4.0.x series. It
8988   introduces improved features for power and bandwidth conservation,
8989   more accurate reporting of bootstrap progress for user interfaces, and
8990   an experimental backend for an exciting new adaptive padding feature.
8991   There is also the usual assortment of bugfixes and minor features, all
8992   described below.
8994   o Major features (battery management, client, dormant mode):
8995     - When Tor is running as a client, and it is unused for a long time,
8996       it can now enter a "dormant" state. When Tor is dormant, it avoids
8997       network and CPU activity until it is reawoken either by a user
8998       request or by a controller command. For more information, see the
8999       configuration options starting with "Dormant". Implements tickets
9000       2149 and 28335.
9001     - The client's memory of whether it is "dormant", and how long it
9002       has spent idle, persists across invocations. Implements
9003       ticket 28624.
9004     - There is a DormantOnFirstStartup option that integrators can use
9005       if they expect that in many cases, Tor will be installed but
9006       not used.
9008   o Major features (bootstrap reporting):
9009     - When reporting bootstrap progress, report the first connection
9010       uniformly, regardless of whether it's a connection for building
9011       application circuits. This allows finer-grained reporting of early
9012       progress than previously possible, with the improvements of ticket
9013       27169. Closes tickets 27167 and 27103. Addresses ticket 27308.
9014     - When reporting bootstrap progress, treat connecting to a proxy or
9015       pluggable transport as separate from having successfully used that
9016       proxy or pluggable transport to connect to a relay. Closes tickets
9017       27100 and 28884.
9019   o Major features (circuit padding):
9020     - Implement preliminary support for the circuit padding portion of
9021       Proposal 254. The implementation supports Adaptive Padding (aka
9022       WTF-PAD) state machines for use between experimental clients and
9023       relays. Support is also provided for APE-style state machines that
9024       use probability distributions instead of histograms to specify
9025       inter-packet delay. At the moment, Tor does not provide any
9026       padding state machines that are used in normal operation: for now,
9027       this feature exists solely for experimentation. Closes
9028       ticket 28142.
9030   o Major features (refactoring):
9031     - Tor now uses an explicit list of its own subsystems when
9032       initializing and shutting down. Previously, these systems were
9033       managed implicitly in various places throughout the codebase.
9034       (There may still be some subsystems using the old system.) Closes
9035       ticket 28330.
9037   o Minor features (bootstrap reporting):
9038     - When reporting bootstrap progress, stop distinguishing between
9039       situations where only internal paths are available and situations
9040       where external paths are available. Previously, Tor would often
9041       erroneously report that it had only internal paths. Closes
9042       ticket 27402.
9044   o Minor features (continuous integration):
9045     - Log Python version during each Travis CI job. Resolves
9046       issue 28551.
9048   o Minor features (controller):
9049     - Add a DROPOWNERSHIP command to undo the effects of TAKEOWNERSHIP.
9050       Implements ticket 28843.
9052   o Minor features (developer tooling):
9053     - Provide a git hook script to prevent "fixup!" and "squash!"
9054       commits from ending up in the master branch, as scripts/main/pre-
9055       push.git-hook. Closes ticket 27993.
9057   o Minor features (directory authority):
9058     - Directory authorities support a new consensus algorithm, under
9059       which the family lines in microdescriptors are encoded in a
9060       canonical form. This change makes family lines more compressible
9061       in transit, and on the client. Closes ticket 28266; implements
9062       proposal 298.
9064   o Minor features (directory authority, relay):
9065     - Authorities now vote on a "StaleDesc" flag to indicate that a
9066       relay's descriptor is so old that the relay should upload again
9067       soon. Relays treat this flag as a signal to upload a new
9068       descriptor. This flag will eventually let us remove the
9069       'published' date from routerstatus entries, and make our consensus
9070       diffs much smaller. Closes ticket 26770; implements proposal 293.
9072   o Minor features (fallback directory mirrors):
9073     - Update the fallback whitelist based on operator opt-ins and opt-
9074       outs. Closes ticket 24805, patch by Phoul.
9076   o Minor features (FreeBSD):
9077     - On FreeBSD-based systems, warn relay operators if the
9078       "net.inet.ip.random_id" sysctl (IP ID randomization) is disabled.
9079       Closes ticket 28518.
9081   o Minor features (HTTP standards compliance):
9082     - Stop sending the header "Content-type: application/octet-stream"
9083       along with transparently compressed documents: this confused
9084       browsers. Closes ticket 28100.
9086   o Minor features (IPv6):
9087     - We add an option ClientAutoIPv6ORPort, to make clients randomly
9088       prefer a node's IPv4 or IPv6 ORPort. The random preference is set
9089       every time a node is loaded from a new consensus or bridge config.
9090       We expect that this option will enable clients to bootstrap more
9091       quickly without having to determine whether they support IPv4,
9092       IPv6, or both. Closes ticket 27490. Patch by Neel Chauhan.
9093     - When using addrs_in_same_network_family(), avoid choosing circuit
9094       paths that pass through the same IPv6 subnet more than once.
9095       Previously, we only checked IPv4 subnets. Closes ticket 24393.
9096       Patch by Neel Chauhan.
9098   o Minor features (log messages):
9099     - Improve log message in v3 onion services that could print out
9100       negative revision counters. Closes ticket 27707. Patch
9101       by "ffmancera".
9103   o Minor features (memory usage):
9104     - Save memory by storing microdescriptor family lists with a more
9105       compact representation. Closes ticket 27359.
9106     - Tor clients now use mmap() to read consensus files from disk, so
9107       that they no longer need keep the full text of a consensus in
9108       memory when parsing it or applying a diff. Closes ticket 27244.
9110   o Minor features (parsing):
9111     - Directory authorities now validate that router descriptors and
9112       ExtraInfo documents are in a valid subset of UTF-8, and reject
9113       them if they are not. Closes ticket 27367.
9115   o Minor features (performance):
9116     - Cache the results of summarize_protocol_flags(), so that we don't
9117       have to parse the same protocol-versions string over and over.
9118       This should save us a huge number of malloc calls on startup, and
9119       may reduce memory fragmentation with some allocators. Closes
9120       ticket 27225.
9121     - Remove a needless memset() call from get_token_arguments, thereby
9122       speeding up the tokenization of directory objects by about 20%.
9123       Closes ticket 28852.
9124     - Replace parse_short_policy() with a faster implementation, to
9125       improve microdescriptor parsing time. Closes ticket 28853.
9126     - Speed up directory parsing a little by avoiding use of the non-
9127       inlined strcmp_len() function. Closes ticket 28856.
9128     - Speed up microdescriptor parsing by about 30%, to help improve
9129       startup time. Closes ticket 28839.
9131   o Minor features (pluggable transports):
9132     - Add support for emitting STATUS updates to Tor's control port from
9133       a pluggable transport process. Closes ticket 28846.
9134     - Add support for logging to Tor's logging subsystem from a
9135       pluggable transport process. Closes ticket 28180.
9137   o Minor features (process management):
9138     - Add a new process API for handling child processes. This new API
9139       allows Tor to have bi-directional communication with child
9140       processes on both Unix and Windows. Closes ticket 28179.
9141     - Use the subsystem manager to initialize and shut down the process
9142       module. Closes ticket 28847.
9144   o Minor features (relay):
9145     - When listing relay families, list them in canonical form including
9146       the relay's own identity, and try to give a more useful set of
9147       warnings. Part of ticket 28266 and proposal 298.
9149   o Minor features (required protocols):
9150     - Before exiting because of a missing required protocol, Tor will
9151       now check the publication time of the consensus, and not exit
9152       unless the consensus is newer than the Tor program's own release
9153       date. Previously, Tor would not check the consensus publication
9154       time, and so might exit because of a missing protocol that might
9155       no longer be required in a current consensus. Implements proposal
9156       297; closes ticket 27735.
9158   o Minor features (testing):
9159     - Allow a HeartbeatPeriod of less than 30 minutes in testing Tor
9160       networks. Closes ticket 28840. Patch by Rob Jansen.
9162   o Minor bugfixes (client, clock skew):
9163     - Bootstrap successfully even when Tor's clock is behind the clocks
9164       on the authorities. Fixes bug 28591; bugfix on 0.2.0.9-alpha.
9165     - Select guards even if the consensus has expired, as long as the
9166       consensus is still reasonably live. Fixes bug 24661; bugfix
9167       on 0.3.0.1-alpha.
9169   o Minor bugfixes (compilation):
9170     - Compile correctly on OpenBSD; previously, we were missing some
9171       headers required in order to detect it properly. Fixes bug 28938;
9172       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
9174   o Minor bugfixes (directory clients):
9175     - Mark outdated dirservers when Tor only has a reasonably live
9176       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
9178   o Minor bugfixes (directory mirrors):
9179     - Even when a directory mirror's clock is behind the clocks on the
9180       authorities, we now allow the mirror to serve "future"
9181       consensuses. Fixes bug 28654; bugfix on 0.3.0.1-alpha.
9183   o Minor bugfixes (DNS):
9184     - Gracefully handle an empty or absent resolve.conf file by falling
9185       back to using "localhost" as a DNS server (and hoping it works).
9186       Previously, we would just stop running as an exit. Fixes bug
9187       21900; bugfix on 0.2.1.10-alpha.
9189   o Minor bugfixes (guards):
9190     - In count_acceptable_nodes(), the minimum number is now one bridge
9191       or guard node, and two non-guard nodes for a circuit. Previously,
9192       we had added up the sum of all nodes with a descriptor, but that
9193       could cause us to build failing circuits when we had either too
9194       many bridges or not enough guard nodes. Fixes bug 25885; bugfix on
9195       0.2.3.1-alpha. Patch by Neel Chauhan.
9197   o Minor bugfixes (IPv6):
9198     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
9199       IPv6 socket was bound using an address family of AF_INET instead
9200       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
9201       Kris Katterjohn.
9203   o Minor bugfixes (logging):
9204     - Rework rep_hist_log_link_protocol_counts() to iterate through all
9205       link protocol versions when logging incoming/outgoing connection
9206       counts. Tor no longer skips version 5, and we won't have to
9207       remember to update this function when new link protocol version is
9208       developed. Fixes bug 28920; bugfix on 0.2.6.10.
9210   o Minor bugfixes (networking):
9211     - Introduce additional checks into tor_addr_parse() to reject
9212       certain incorrect inputs that previously were not detected. Fixes
9213       bug 23082; bugfix on 0.2.0.10-alpha.
9215   o Minor bugfixes (onion service v3, client):
9216     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
9217       connection waiting for a descriptor that we actually have in the
9218       cache. It turns out that this can actually happen, though it is
9219       rare. Now, tor will recover and retry the descriptor. Fixes bug
9220       28669; bugfix on 0.3.2.4-alpha.
9222   o Minor bugfixes (periodic events):
9223     - Refrain from calling routerlist_remove_old_routers() from
9224       check_descriptor_callback(). Instead, create a new hourly periodic
9225       event. Fixes bug 27929; bugfix on 0.2.8.1-alpha.
9227   o Minor bugfixes (pluggable transports):
9228     - Make sure that data is continously read from standard output and
9229       standard error pipes of a pluggable transport child-process, to
9230       avoid deadlocking when a pipe's buffer is full. Fixes bug 26360;
9231       bugfix on 0.2.3.6-alpha.
9233   o Minor bugfixes (unit tests):
9234     - Instead of relying on hs_free_all() to clean up all onion service
9235       objects in test_build_descriptors(), we now deallocate them one by
9236       one. This lets Coverity know that we are not leaking memory there
9237       and fixes CID 1442277. Fixes bug 28989; bugfix on 0.3.5.1-alpha.
9239   o Minor bugfixes (usability):
9240     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
9241       Some users took this phrasing to mean that the mentioned guard was
9242       under their control or responsibility, which it is not. Fixes bug
9243       28895; bugfix on Tor 0.3.0.1-alpha.
9245   o Code simplification and refactoring:
9246     - Reimplement NETINFO cell parsing and generation to rely on
9247       trunnel-generated wire format handling code. Closes ticket 27325.
9248     - Remove unnecessary unsafe code from the Rust macro "cstr!". Closes
9249       ticket 28077.
9250     - Rework SOCKS wire format handling to rely on trunnel-generated
9251       parsing/generation code. Resolves ticket 27620.
9252     - Split out bootstrap progress reporting from control.c into a
9253       separate file. Part of ticket 27402.
9254     - The .may_include files that we use to describe our directory-by-
9255       directory dependency structure now describe a noncircular
9256       dependency graph over the directories that they cover. Our
9257       checkIncludes.py tool now enforces this noncircularity. Closes
9258       ticket 28362.
9260   o Documentation:
9261     - Mention that you cannot add a new onion service if Tor is already
9262       running with Sandbox enabled. Closes ticket 28560.
9263     - Improve ControlPort documentation. Mention that it accepts
9264       address:port pairs, and can be used multiple times. Closes
9265       ticket 28805.
9266     - Document the exact output of "tor --version". Closes ticket 28889.
9268   o Removed features:
9269     - Stop responding to the 'GETINFO status/version/num-concurring' and
9270       'GETINFO status/version/num-versioning' control port commands, as
9271       those were deprecated back in 0.2.0.30. Also stop listing them in
9272       output of 'GETINFO info/names'. Resolves ticket 28757.
9273     - The scripts used to generate and maintain the list of fallback
9274       directories have been extracted into a new "fallback-scripts"
9275       repository. Closes ticket 27914.
9277   o Testing:
9278     - Run shellcheck for scripts in the in scripts/ directory. Closes
9279       ticket 28058.
9280     - Add unit tests for tokenize_string() and get_next_token()
9281       functions. Resolves ticket 27625.
9283   o Code simplification and refactoring (onion service v3):
9284     - Consolidate the authorized client descriptor cookie computation
9285       code from client and service into one function. Closes
9286       ticket 27549.
9288   o Code simplification and refactoring (shell scripts):
9289     - Cleanup scan-build.sh to silence shellcheck warnings. Closes
9290       ticket 28007.
9291     - Fix issues that shellcheck found in chutney-git-bisect.sh.
9292       Resolves ticket 28006.
9293     - Fix issues that shellcheck found in updateRustDependencies.sh.
9294       Resolves ticket 28012.
9295     - Fix shellcheck warnings in cov-diff script. Resolves issue 28009.
9296     - Fix shellcheck warnings in run_calltool.sh. Resolves ticket 28011.
9297     - Fix shellcheck warnings in run_trunnel.sh. Resolves issue 28010.
9298     - Fix shellcheck warnings in scripts/test/coverage. Resolves
9299       issue 28008.
9302 Changes in version 0.3.3.11 - 2019-01-07
9303   Tor 0.3.3.11 backports numerous fixes from later versions of Tor.
9304   numerous fixes, including an important fix for anyone using OpenSSL
9305   1.1.1. Anyone running an earlier version of Tor 0.3.3 should upgrade
9306   to this version, or to a later series.
9308   As a reminder, support the Tor 0.3.3 series will end on 22 Feb 2019.
9309   We anticipate that this will be the last release of Tor 0.3.3, unless
9310   some major bug is before then. Some time between now and then, users
9311   should switch to either the Tor 0.3.4 series (supported until at least
9312   10 June 2019), or the Tor 0.3.5 series, which will receive long-term
9313   support until at least 1 Feb 2022.
9315   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
9316     - Fix our usage of named groups when running as a TLS 1.3 client in
9317       OpenSSL 1.1.1. Previously, we only initialized EC groups when
9318       running as a relay, which caused clients to fail to negotiate TLS
9319       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
9320       support was added).
9322   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
9323     - Fix a use-after-free error that could be caused by passing Tor an
9324       impossible set of options that would fail during options_act().
9325       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
9327   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
9328     - Only run one online rust build in Travis, to reduce network
9329       errors. Skip offline rust builds on Travis for Linux gcc, because
9330       they're redundant. Implements ticket 27252.
9331     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
9332       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
9333       Linux with default settings, because all the non-default builds
9334       use gcc on Linux. Implements ticket 27252.
9336   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
9337     - Use the Travis Homebrew addon to install packages on macOS during
9338       Travis CI. The package list is the same, but the Homebrew addon
9339       does not do a `brew update` by default. Implements ticket 27738.
9341   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
9342     - Replace the 150 fallbacks originally introduced in Tor
9343       0.3.3.1-alpha in January 2018 (of which ~115 were still
9344       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
9345       removed) generated in December 2018. Closes ticket 24803.
9347   o Minor features (geoip):
9348     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
9349       Country database. Closes ticket 29012.
9351   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
9352     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
9353       key export function from handling long labels. When this bug is
9354       detected, Tor will disable TLS 1.3. We recommend upgrading to a
9355       version of OpenSSL without this bug when it becomes available.
9356       Closes ticket 28973.
9358   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
9359     - Update relay descriptor on bandwidth changes only when the uptime
9360       is smaller than 24h, in order to reduce the efficiency of guard
9361       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
9363   o Minor bugfixes (C correctness, backport from 0.3.5.4-alpha):
9364     - Avoid undefined behavior in an end-of-string check when parsing
9365       the BEGIN line in a directory object. Fixes bug 28202; bugfix
9366       on 0.2.0.3-alpha.
9368   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
9369     - Rewrite our assertion macros so that they no longer suppress the
9370       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
9372   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
9373     - Initialize a variable unconditionally in aes_new_cipher(), since
9374       some compilers cannot tell that we always initialize it before
9375       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
9377   o Minor bugfixes (directory authority, backport from 0.3.5.4-alpha):
9378     - Log additional info when we get a relay that shares an ed25519 ID
9379       with a different relay, instead making a BUG() warning. Fixes bug
9380       27800; bugfix on 0.3.2.1-alpha.
9382   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
9383     - When a user requests a group-readable DataDirectory, give it to
9384       them. Previously, when the DataDirectory and the CacheDirectory
9385       were the same, the default setting (0) for
9386       CacheDirectoryGroupReadable would override the setting for
9387       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
9388       on 0.3.3.1-alpha.
9390   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
9391     - When the onion service directory can't be created or has the wrong
9392       permissions, do not log a stack trace. Fixes bug 27335; bugfix
9393       on 0.3.2.1-alpha.
9395   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
9396     - Close all SOCKS request (for the same .onion) if the newly fetched
9397       descriptor is unusable. Before that, we would close only the first
9398       one leaving the other hanging and let to time out by themselves.
9399       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
9401   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
9402     - Don't warn so loudly when Tor is unable to decode an onion
9403       descriptor. This can now happen as a normal use case if a client
9404       gets a descriptor with client authorization but the client is not
9405       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
9407   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
9408     - When deleting an ephemeral onion service (DEL_ONION), do not close
9409       any rendezvous circuits in order to let the existing client
9410       connections finish by themselves or closed by the application. The
9411       HS v2 is doing that already so now we have the same behavior for
9412       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
9414   o Minor bugfixes (HTTP tunnel):
9415     - Fix a bug warning when closing an HTTP tunnel connection due to
9416       an HTTP request we couldn't handle. Fixes bug 26470; bugfix on
9417       0.3.2.1-alpha.
9419   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
9420     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
9421       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
9423   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
9424     - Ensure circuitmux queues are empty before scheduling or sending
9425       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
9427   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
9428     - Reject protocol names containing bytes other than alphanumeric
9429       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
9430       on 0.2.9.4-alpha.
9432   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
9433     - Compute protover votes correctly in the rust version of the
9434       protover code. Previously, the protover rewrite in 24031 allowed
9435       repeated votes from the same voter for the same protocol version
9436       to be counted multiple times in protover_compute_vote(). Fixes bug
9437       27649; bugfix on 0.3.3.5-rc.
9438     - Reject protover names that contain invalid characters. Fixes bug
9439       27687; bugfix on 0.3.3.1-alpha.
9441   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
9442     - protover_all_supported() would attempt to allocate up to 16GB on
9443       some inputs, leading to a potential memory DoS. Fixes bug 27206;
9444       bugfix on 0.3.3.5-rc.
9446   o Minor bugfixes (rust, backport from 0.3.5.4-alpha):
9447     - Fix a potential null dereference in protover_all_supported(). Add
9448       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
9449     - Return a string that can be safely freed by C code, not one
9450       created by the rust allocator, in protover_all_supported(). Fixes
9451       bug 27740; bugfix on 0.3.3.1-alpha.
9452     - Fix an API mismatch in the rust implementation of
9453       protover_compute_vote(). This bug could have caused crashes on any
9454       directory authorities running Tor with Rust (which we do not yet
9455       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
9457   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
9458     - If a unit test running in a subprocess exits abnormally or with a
9459       nonzero status code, treat the test as having failed, even if the
9460       test reported success. Without this fix, memory leaks don't cause
9461       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
9462       bugfix on 0.2.2.4-alpha.
9464   o Minor bugfixes (testing, backport from 0.3.5.4-alpha):
9465     - Treat backtrace test failures as expected on BSD-derived systems
9466       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
9467       (FreeBSD failures have been treated as expected since 18204 in
9468       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
9470   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
9471     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
9472       bugfix on 0.3.0.1-alpha.
9475 Changes in version 0.3.4.10 - 2019-01-07
9476   Tor 0.3.4.9 is the second stable release in its series; it backports
9477   numerous fixes, including an important fix for relays, and for anyone
9478   using OpenSSL 1.1.1. Anyone running an  earlier version of Tor 0.3.4
9479   should upgrade.
9481   As a reminder, the Tor 0.3.4 series will be supported until 10 June
9482   2019. Some time between now and then, users should switch to the Tor
9483   0.3.5 series, which will receive long-term support until at least 1
9484   Feb 2022.
9486   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
9487     - Fix our usage of named groups when running as a TLS 1.3 client in
9488       OpenSSL 1.1.1. Previously, we only initialized EC groups when
9489       running as a relay, which caused clients to fail to negotiate TLS
9490       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
9491       support was added).
9493   o Major bugfixes (relay, directory, backport from 0.3.5.7):
9494     - Always reactivate linked connections in the main loop so long as
9495       any linked connection has been active. Previously, connections
9496       serving directory information wouldn't get reactivated after the
9497       first chunk of data was sent (usually 32KB), which would prevent
9498       clients from bootstrapping. Fixes bug 28912; bugfix on
9499       0.3.4.1-alpha. Patch by "cypherpunks3".
9501   o Minor features (continuous integration, Windows, backport from 0.3.5.6-rc):
9502     - Always show the configure and test logs, and upload them as build
9503       artifacts, when building for Windows using Appveyor CI.
9504       Implements 28459.
9506   o Minor features (controller, backport from 0.3.5.1-alpha):
9507     - For purposes of CIRC_BW-based dropped cell detection, track half-
9508       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
9509       bias check cells to arrive without counting it as dropped until
9510       either the END arrives, or the windows are empty. Closes
9511       ticket 25573.
9513   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
9514     - Replace the 150 fallbacks originally introduced in Tor
9515       0.3.3.1-alpha in January 2018 (of which ~115 were still
9516       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
9517       removed) generated in December 2018. Closes ticket 24803.
9519   o Minor features (geoip):
9520     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
9521       Country database. Closes ticket 28395.
9523   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
9524     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
9525       key export function from handling long labels. When this bug is
9526       detected, Tor will disable TLS 1.3. We recommend upgrading to a
9527       version of OpenSSL without this bug when it becomes available.
9528       Closes ticket 28973.
9530   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
9531     - Initialize a variable unconditionally in aes_new_cipher(), since
9532       some compilers cannot tell that we always initialize it before
9533       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
9535   o Minor bugfixes (connection, relay, backport from 0.3.5.5-alpha):
9536     - Avoid a logging a BUG() stacktrace when closing connection held
9537       open because the write side is rate limited but not the read side.
9538       Now, the connection read side is simply shut down until Tor is
9539       able to flush the connection and close it. Fixes bug 27750; bugfix
9540       on 0.3.4.1-alpha.
9542   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.5-alpha):
9543     - Manually configure the zstd compiler options, when building using
9544       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
9545       not come with a pkg-config file. Fixes bug 28454; bugfix
9546       on 0.3.4.1-alpha.
9547     - Stop using an external OpenSSL install, and stop installing MSYS2
9548       packages, when building using mingw on Appveyor Windows CI. Fixes
9549       bug 28399; bugfix on 0.3.4.1-alpha.
9551   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.6-rc):
9552     - Explicitly specify the path to the OpenSSL library and do not
9553       download OpenSSL from Pacman, but instead use the library that is
9554       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
9556   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
9557     - When a user requests a group-readable DataDirectory, give it to
9558       them. Previously, when the DataDirectory and the CacheDirectory
9559       were the same, the default setting (0) for
9560       CacheDirectoryGroupReadable would override the setting for
9561       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
9562       on 0.3.3.1-alpha.
9564   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
9565     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
9566       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
9568   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
9569     - Don't warn so loudly when Tor is unable to decode an onion
9570       descriptor. This can now happen as a normal use case if a client
9571       gets a descriptor with client authorization but the client is not
9572       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
9574   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
9575     - When deleting an ephemeral onion service (DEL_ONION), do not close
9576       any rendezvous circuits in order to let the existing client
9577       connections finish by themselves or closed by the application. The
9578       HS v2 is doing that already so now we have the same behavior for
9579       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
9581   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
9582     - Update relay descriptor on bandwidth changes only when the uptime
9583       is smaller than 24h, in order to reduce the efficiency of guard
9584       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
9586   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
9587     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
9588       bugfix on 0.3.0.1-alpha.
9591 Changes in version 0.3.5.7 - 2019-01-07
9592   Tor 0.3.5.7 is the first stable release in its series; it includes
9593   compilation and portability fixes, and a fix for a severe problem
9594   affecting directory caches.
9596   The Tor 0.3.5 series includes several new features and performance
9597   improvements, including client authorization for v3 onion services,
9598   cleanups to bootstrap reporting, support for improved bandwidth-
9599   measurement tools, experimental support for NSS in place of OpenSSL,
9600   and much more. It also begins a full reorganization of Tor's code
9601   layout, for improved modularity and maintainability in the future.
9602   Finally, there is the usual set of performance improvements and
9603   bugfixes that we try to do in every release series.
9605   There are a couple of changes in the 0.3.5 that may affect
9606   compatibility. First, the default version for newly created onion
9607   services is now v3. Use the HiddenServiceVersion option if you want to
9608   override this. Second, some log messages related to bootstrapping have
9609   changed; if you use stem, you may need to update to the latest version
9610   so it will recognize them.
9612   We have designated 0.3.5 as a "long-term support" (LTS) series: we
9613   will continue to patch major bugs in typical configurations of 0.3.5
9614   until at least 1 Feb 2022. (We do not plan to provide long-term
9615   support for embedding, Rust support, NSS support, running a directory
9616   authority, or unsupported platforms. For these, you will need to stick
9617   with the latest stable release.)
9619   Below are the changes since 0.3.5.6-rc. For a complete list of changes
9620   since 0.3.4.9, see the ReleaseNotes file.
9622   o Major bugfixes (relay, directory):
9623     - Always reactivate linked connections in the main loop so long as
9624       any linked connection has been active. Previously, connections
9625       serving directory information wouldn't get reactivated after the
9626       first chunk of data was sent (usually 32KB), which would prevent
9627       clients from bootstrapping. Fixes bug 28912; bugfix on
9628       0.3.4.1-alpha. Patch by "cypherpunks3".
9630   o Minor features (compilation):
9631     - When possible, place our warning flags in a separate file, to
9632       avoid flooding verbose build logs. Closes ticket 28924.
9634   o Minor features (geoip):
9635     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
9636       Country database. Closes ticket 29012.
9638   o Minor features (OpenSSL bug workaround):
9639     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
9640       key export function from handling long labels. When this bug is
9641       detected, Tor will disable TLS 1.3. We recommend upgrading to a
9642       version of OpenSSL without this bug when it becomes available.
9643       Closes ticket 28973.
9645   o Minor features (performance):
9646     - Remove about 96% of the work from the function that we run at
9647       startup to test our curve25519_basepoint implementation. Since
9648       this function has yet to find an actual failure, we now only run
9649       it for 8 iterations instead of 200. Based on our profile
9650       information, this change should save around 8% of our startup time
9651       on typical desktops, and may have a similar effect on other
9652       platforms. Closes ticket 28838.
9653     - Stop re-validating our hardcoded Diffie-Hellman parameters on
9654       every startup. Doing this wasted time and cycles, especially on
9655       low-powered devices. Closes ticket 28851.
9657   o Minor bugfixes (compilation):
9658     - Fix compilation for Android by adding a missing header to
9659       freespace.c. Fixes bug 28974; bugfix on 0.3.5.1-alpha.
9661   o Minor bugfixes (correctness):
9662     - Fix an unreached code path where we checked the value of
9663       "hostname" inside send_resolved_hostname_cell(). Previously, we
9664       used it before checking it; now we check it first. Fixes bug
9665       28879; bugfix on 0.1.2.7-alpha.
9667   o Minor bugfixes (testing):
9668     - Make sure that test_rebind.py actually obeys its timeout, even
9669       when it receives a large number of log messages. Fixes bug 28883;
9670       bugfix on 0.3.5.4-alpha.
9671     - Stop running stem's unit tests as part of "make test-stem", but
9672       continue to run stem's unit and online tests during "make test-
9673       stem-full". Fixes bug 28568; bugfix on 0.2.6.3-alpha.
9675   o Minor bugfixes (windows services):
9676     - Make Tor start correctly as an NT service again: previously it was
9677       broken by refactoring. Fixes bug 28612; bugfix on 0.3.5.3-alpha.
9679   o Code simplification and refactoring:
9680     - When parsing a port configuration, make it more obvious to static
9681       analyzer tools that we always initialize the address. Closes
9682       ticket 28881.
9685 Changes in version 0.3.5.6-rc - 2018-12-18
9686   Tor 0.3.5.6-rc fixes numerous small bugs in earlier versions of Tor.
9687   It is the first release candidate in the 0.3.5.x series; if no further
9688   huge bugs are found, our next release may be the stable 0.3.5.x.
9690   o Minor features (continuous integration, Windows):
9691     - Always show the configure and test logs, and upload them as build
9692       artifacts, when building for Windows using Appveyor CI.
9693       Implements 28459.
9695   o Minor features (fallback directory list):
9696     - Replace the 150 fallbacks originally introduced in Tor
9697       0.3.3.1-alpha in January 2018 (of which ~115 were still
9698       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
9699       removed) generated in December 2018. Closes ticket 24803.
9701   o Minor features (geoip):
9702     - Update geoip and geoip6 to the December 5 2018 Maxmind GeoLite2
9703       Country database. Closes ticket 28744.
9705   o Minor bugfixes (compilation):
9706     - Add missing dependency on libgdi32.dll for tor-print-ed-signing-
9707       cert.exe on Windows. Fixes bug 28485; bugfix on 0.3.5.1-alpha.
9709   o Minor bugfixes (continuous integration, Windows):
9710     - Explicitly specify the path to the OpenSSL library and do not
9711       download OpenSSL from Pacman, but instead use the library that is
9712       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
9714   o Minor bugfixes (onion service v3):
9715     - When deleting an ephemeral onion service (DEL_ONION), do not close
9716       any rendezvous circuits in order to let the existing client
9717       connections finish by themselves or closed by the application. The
9718       HS v2 is doing that already so now we have the same behavior for
9719       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
9721   o Minor bugfixes (restart-in-process, boostrap):
9722     - Add missing resets of bootstrap tracking state when shutting down
9723       (regression caused by ticket 27169). Fixes bug 28524; bugfix
9724       on 0.3.5.1-alpha.
9726   o Minor bugfixes (testing):
9727     - Use a separate DataDirectory for the test_rebind script.
9728       Previously, this script would run using the default DataDirectory,
9729       and sometimes fail. Fixes bug 28562; bugfix on 0.3.5.1-alpha.
9730       Patch from Taylor R Campbell.
9731     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
9732       bugfix on 0.3.0.1-alpha.
9734   o Minor bugfixes (Windows):
9735     - Correctly identify Windows 8.1, Windows 10, and Windows Server
9736       2008 and later from their NT versions. Fixes bug 28096; bugfix on
9737       0.2.2.34; reported by Keifer Bly.
9738     - On recent Windows versions, the GetVersionEx() function may report
9739       an earlier Windows version than the running OS. To avoid user
9740       confusion, add "[or later]" to Tor's version string on affected
9741       versions of Windows. Fixes bug 28096; bugfix on 0.2.2.34; reported
9742       by Keifer Bly.
9743     - Remove Windows versions that were never supported by the
9744       GetVersionEx() function. Stop duplicating the latest Windows
9745       version in get_uname(). Fixes bug 28096; bugfix on 0.2.2.34;
9746       reported by Keifer Bly.
9748   o Testing:
9749     - Increase logging and tag all log entries with timestamps in
9750       test_rebind.py. Provides diagnostics for issue 28229.
9752   o Code simplification and refactoring (shared random, dirauth):
9753     - Change many tor_assert() to use BUG() instead. The idea is to not
9754       crash a dirauth but rather scream loudly with a stacktrace and let
9755       it continue run. The shared random subsystem is very resilient and
9756       if anything wrong happens with it, at worst a non coherent value
9757       will be put in the vote and discarded by the other authorities.
9758       Closes ticket 19566.
9760   o Documentation (onion services):
9761     - Document in the man page that changing ClientOnionAuthDir value or
9762       adding a new file in the directory will not work at runtime upon
9763       sending a HUP if Sandbox 1. Closes ticket 28128.
9764     - Note in the man page that the only real way to fully revoke an
9765       onion service v3 client authorization is by restarting the tor
9766       process. Closes ticket 28275.
9769 Changes in version 0.3.5.5-alpha - 2018-11-16
9770   Tor 0.3.5.5-alpha includes numerous bugfixes on earlier releases,
9771   including several that we hope to backport to older release series in
9772   the future.
9774   o Major bugfixes (OpenSSL, portability):
9775     - Fix our usage of named groups when running as a TLS 1.3 client in
9776       OpenSSL 1.1.1. Previously, we only initialized EC groups when
9777       running as a relay, which caused clients to fail to negotiate TLS
9778       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
9779       support was added).
9781   o Minor features (geoip):
9782     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
9783       Country database. Closes ticket 28395.
9785   o Minor bugfixes (compilation):
9786     - Initialize a variable unconditionally in aes_new_cipher(), since
9787       some compilers cannot tell that we always initialize it before
9788       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
9790   o Minor bugfixes (connection, relay):
9791     - Avoid a logging a BUG() stacktrace when closing connection held
9792       open because the write side is rate limited but not the read side.
9793       Now, the connection read side is simply shut down until Tor is
9794       able to flush the connection and close it. Fixes bug 27750; bugfix
9795       on 0.3.4.1-alpha.
9797   o Minor bugfixes (continuous integration, Windows):
9798     - Manually configure the zstd compiler options, when building using
9799       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
9800       not come with a pkg-config file. Fixes bug 28454; bugfix
9801       on 0.3.4.1-alpha.
9802     - Stop using an external OpenSSL install, and stop installing MSYS2
9803       packages, when building using mingw on Appveyor Windows CI. Fixes
9804       bug 28399; bugfix on 0.3.4.1-alpha.
9806   o Minor bugfixes (documentation):
9807     - Make Doxygen work again after the code movement in the 0.3.5
9808       source tree. Fixes bug 28435; bugfix on 0.3.5.1-alpha.
9810   o Minor bugfixes (Linux seccomp2 sandbox):
9811     - Permit the "shutdown()" system call, which is apparently used by
9812       OpenSSL under some circumstances. Fixes bug 28183; bugfix
9813       on 0.2.5.1-alpha.
9815   o Minor bugfixes (logging):
9816     - Stop talking about the Named flag in log messages. Clients have
9817       ignored the Named flag since 0.3.2. Fixes bug 28441; bugfix
9818       on 0.3.2.1-alpha.
9820   o Minor bugfixes (memory leaks):
9821     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
9822       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
9824   o Minor bugfixes (onion services):
9825     - On an intro point for a version 3 onion service, stop closing
9826       introduction circuits on an NACK. This lets the client decide
9827       whether to reuse the circuit or discard it. Previously, we closed
9828       intro circuits when sending NACKs. Fixes bug 27841; bugfix on
9829       0.3.2.1-alpha. Patch by Neel Chaunan.
9830     - When replacing a descriptor in the client cache, make sure to
9831       close all client introduction circuits for the old descriptor, so
9832       we don't end up with unusable leftover circuits. Fixes bug 27471;
9833       bugfix on 0.3.2.1-alpha.
9836 Changes in version 0.3.5.4-alpha - 2018-11-08
9837   Tor 0.3.5.4-alpha includes numerous bugfixes on earlier versions and
9838   improves our continuous integration support. It continues our attempts
9839   to stabilize this alpha branch and build it into a foundation for an
9840   acceptable long-term-support release.
9842   o Major bugfixes (compilation, rust):
9843     - Rust tests can now build and run successfully with the
9844       --enable-fragile-hardening option enabled. Doing this currently
9845       requires the rust beta channel; it will be possible with stable
9846       rust once Rust version 1.31 is released. Patch from Alex Crichton.
9847       Fixes bugs 27272, 27273, and 27274. Bugfix on 0.3.1.1-alpha.
9849   o Major bugfixes (embedding, main loop):
9850     - When DisableNetwork becomes set, actually disable periodic events
9851       that are already enabled. (Previously, we would refrain from
9852       enabling new ones, but we would leave the old ones turned on.)
9853       Fixes bug 28348; bugfix on 0.3.4.1-alpha.
9855   o Minor features (continuous integration):
9856     - Add a Travis CI build for --enable-nss on Linux gcc. Closes
9857       ticket 27751.
9858     - Add new CI job to Travis configuration to run stem-based
9859       integration tests. Closes ticket 27913.
9861   o Minor features (Windows, continuous integration):
9862     - Build tor on Windows Server 2012 R2 and Windows Server 2016 using
9863       Appveyor's CI. Closes ticket 28318.
9865   o Minor bugfixes (C correctness, also in 0.3.4.9):
9866     - Avoid undefined behavior in an end-of-string check when parsing
9867       the BEGIN line in a directory object. Fixes bug 28202; bugfix
9868       on 0.2.0.3-alpha.
9870   o Minor bugfixes (compilation):
9871     - Fix a pair of missing headers on OpenBSD. Fixes bug 28303; bugfix
9872       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
9874   o Minor bugfixes (compilation, OpenSolaris):
9875     - Fix compilation on OpenSolaris and its descendants by adding a
9876       missing include to compat_pthreads.c. Fixes bug 27963; bugfix
9877       on 0.3.5.1-alpha.
9879   o Minor bugfixes (configuration):
9880     - Refuse to start with relative file paths and RunAsDaemon set
9881       (regression from the fix for bug 22731). Fixes bug 28298; bugfix
9882       on 0.3.3.1-alpha.
9884   o Minor bugfixes (directory authority, also in 0.3.4.9):
9885     - Log additional info when we get a relay that shares an ed25519 ID
9886       with a different relay, instead of a BUG() warning with a
9887       backtrace. Fixes bug 27800; bugfix on 0.3.2.1-alpha.
9889   o Minor bugfixes (onion service v3):
9890     - Build the service descriptor's signing key certificate before
9891       uploading, so we always have a fresh one: leaving no chances for
9892       it to expire service side. Fixes bug 27838; bugfix
9893       on 0.3.2.1-alpha.
9895   o Minor bugfixes (onion service v3, client authorization):
9896     - Fix an assert() when adding a client authorization for the first
9897       time and then sending a HUP signal to the service. Before that,
9898       Tor would stop abruptly. Fixes bug 27995; bugfix on 0.3.5.1-alpha.
9900   o Minor bugfixes (onion services):
9901     - Unless we have explicitly set HiddenServiceVersion, detect the
9902       onion service version and then look for invalid options.
9903       Previously, we did the reverse, but that broke existing configs
9904       which were pointed to a v2 service and had options like
9905       HiddenServiceAuthorizeClient set. Fixes bug 28127; bugfix on
9906       0.3.5.1-alpha. Patch by Neel Chauhan.
9908   o Minor bugfixes (portability):
9909     - Make the OPE code (which is used for v3 onion services) run
9910       correctly on big-endian platforms. Fixes bug 28115; bugfix
9911       on 0.3.5.1-alpha.
9913   o Minor bugfixes (protover, rust):
9914     - Reject extra commas in version strings. Fixes bug 27197; bugfix
9915       on 0.3.3.3-alpha.
9917   o Minor bugfixes (relay shutdown, systemd):
9918     - Notify systemd of ShutdownWaitLength so it can be set to longer
9919       than systemd's TimeoutStopSec. In Tor's systemd service file, set
9920       TimeoutSec to 60 seconds to allow Tor some time to shut down.
9921       Fixes bug 28113; bugfix on 0.2.6.2-alpha.
9923   o Minor bugfixes (rust, also in 0.3.4.9):
9924     - Fix a potential null dereference in protover_all_supported(). Add
9925       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
9926     - Return a string that can be safely freed by C code, not one
9927       created by the rust allocator, in protover_all_supported(). Fixes
9928       bug 27740; bugfix on 0.3.3.1-alpha.
9930   o Minor bugfixes (rust, directory authority, also in 0.3.4.9):
9931     - Fix an API mismatch in the rust implementation of
9932       protover_compute_vote(). This bug could have caused crashes on any
9933       directory authorities running Tor with Rust (which we do not yet
9934       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
9936   o Minor bugfixes (testing):
9937     - Avoid hangs and race conditions in test_rebind.py. Fixes bug
9938       27968; bugfix on 0.3.5.1-alpha.
9940   o Minor bugfixes (testing, also in 0.3.4.9):
9941     - Treat backtrace test failures as expected on BSD-derived systems
9942       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
9943       (FreeBSD failures have been treated as expected since 18204 in
9944       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
9946   o Documentation (onion service manpage):
9947     - Improve HSv3 client authorization by making some options more
9948       explicit and detailed. Closes ticket 28026. Patch by Mike Tigas.
9951 Changes in version 0.3.4.9 - 2018-11-02
9952   Tor 0.3.4.9 is the second stable release in its series; it backports
9953   numerous fixes, including a fix for a bandwidth management bug that
9954   was causing memory exhaustion on relays. Anyone running an earlier
9955   version of Tor 0.3.4.9 should upgrade.
9957   o Major bugfixes (compilation, backport from 0.3.5.3-alpha):
9958     - Fix compilation on ARM (and other less-used CPUs) when compiling
9959       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
9961   o Major bugfixes (mainloop, bootstrap, backport from 0.3.5.3-alpha):
9962     - Make sure Tor bootstraps and works properly if only the
9963       ControlPort is set. Prior to this fix, Tor would only bootstrap
9964       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
9965       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
9967   o Major bugfixes (relay, backport from 0.3.5.3-alpha):
9968     - When our write bandwidth limit is exhausted, stop writing on the
9969       connection. Previously, we had a typo in the code that would make
9970       us stop reading instead, leading to relay connections being stuck
9971       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
9972       on 0.3.4.1-alpha.
9974   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
9975     - Fix a use-after-free error that could be caused by passing Tor an
9976       impossible set of options that would fail during options_act().
9977       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
9979   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
9980     - Don't do a distcheck with --disable-module-dirauth in Travis.
9981       Implements ticket 27252.
9982     - Only run one online rust build in Travis, to reduce network
9983       errors. Skip offline rust builds on Travis for Linux gcc, because
9984       they're redundant. Implements ticket 27252.
9985     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
9986       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
9987       Linux with default settings, because all the non-default builds
9988       use gcc on Linux. Implements ticket 27252.
9990   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
9991     - Use the Travis Homebrew addon to install packages on macOS during
9992       Travis CI. The package list is the same, but the Homebrew addon
9993       does not do a `brew update` by default. Implements ticket 27738.
9995   o Minor features (geoip):
9996     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
9997       Country database. Closes ticket 27991.
9999   o Minor bugfixes (32-bit OSX and iOS, timing, backport from 0.3.5.2-alpha):
10000     - Fix an integer overflow bug in our optimized 32-bit millisecond-
10001       difference algorithm for 32-bit Apple platforms. Previously, it
10002       would overflow when calculating the difference between two times
10003       more than 47 days apart. Fixes part of bug 27139; bugfix
10004       on 0.3.4.1-alpha.
10005     - Improve the precision of our 32-bit millisecond difference
10006       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
10007       bugfix on 0.3.4.1-alpha.
10008     - Relax the tolerance on the mainloop/update_time_jumps test when
10009       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
10010       on 0.3.4.1-alpha.
10012   o Minor bugfixes (C correctness, to appear in 0.3.5.4-alpha):
10013     - Avoid undefined behavior in an end-of-string check when parsing
10014       the BEGIN line in a directory object. Fixes bug 28202; bugfix
10015       on 0.2.0.3-alpha.
10017   o Minor bugfixes (CI, appveyor, to appear in 0.3.5.4-alpha):
10018     - Only install the necessary mingw packages during our appveyor
10019       builds. This change makes the build a little faster, and prevents
10020       a conflict with a preinstalled mingw openssl that appveyor now
10021       ships. Fixes bugs 27943 and 27765; bugfix on 0.3.4.2-alpha.
10023   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
10024     - Rewrite our assertion macros so that they no longer suppress the
10025       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
10027   o Minor bugfixes (continuous integration, backport from 0.3.5.1-alpha):
10028     - Stop reinstalling identical packages in our Windows CI. Fixes bug
10029       27464; bugfix on 0.3.4.1-alpha.
10031   o Minor bugfixes (directory authority, to appear in 0.3.5.4-alpha):
10032     - Log additional info when we get a relay that shares an ed25519 ID
10033       with a different relay, instead making a BUG() warning. Fixes bug
10034       27800; bugfix on 0.3.2.1-alpha.
10036   o Minor bugfixes (directory connection shutdown, backport from 0.3.5.1-alpha):
10037     - Avoid a double-close when shutting down a stalled directory
10038       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
10040   o Minor bugfixes (HTTP tunnel, backport from 0.3.5.1-alpha):
10041     - Fix a bug warning when closing an HTTP tunnel connection due to an
10042       HTTP request we couldn't handle. Fixes bug 26470; bugfix
10043       on 0.3.2.1-alpha.
10045   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
10046     - Ensure circuitmux queues are empty before scheduling or sending
10047       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
10049   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
10050     - When the onion service directory can't be created or has the wrong
10051       permissions, do not log a stack trace. Fixes bug 27335; bugfix
10052       on 0.3.2.1-alpha.
10054   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
10055     - Close all SOCKS request (for the same .onion) if the newly fetched
10056       descriptor is unusable. Before that, we would close only the first
10057       one leaving the other hanging and let to time out by themselves.
10058       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
10060   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
10061     - When selecting a v3 rendezvous point, don't only look at the
10062       protover, but also check whether the curve25519 onion key is
10063       present. This way we avoid picking a relay that supports the v3
10064       rendezvous but for which we don't have the microdescriptor. Fixes
10065       bug 27797; bugfix on 0.3.2.1-alpha.
10067   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
10068     - Reject protocol names containing bytes other than alphanumeric
10069       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
10070       on 0.2.9.4-alpha.
10072   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
10073     - Compute protover votes correctly in the rust version of the
10074       protover code. Previously, the protover rewrite in 24031 allowed
10075       repeated votes from the same voter for the same protocol version
10076       to be counted multiple times in protover_compute_vote(). Fixes bug
10077       27649; bugfix on 0.3.3.5-rc.
10078     - Reject protover names that contain invalid characters. Fixes bug
10079       27687; bugfix on 0.3.3.1-alpha.
10081   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
10082     - protover_all_supported() would attempt to allocate up to 16GB on
10083       some inputs, leading to a potential memory DoS. Fixes bug 27206;
10084       bugfix on 0.3.3.5-rc.
10086   o Minor bugfixes (rust, directory authority, to appear in 0.3.5.4-alpha):
10087     - Fix an API mismatch in the rust implementation of
10088       protover_compute_vote(). This bug could have caused crashes on any
10089       directory authorities running Tor with Rust (which we do not yet
10090       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
10092   o Minor bugfixes (rust, to appear in 0.3.5.4-alpha):
10093     - Fix a potential null dereference in protover_all_supported(). Add
10094       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
10095     - Return a string that can be safely freed by C code, not one
10096       created by the rust allocator, in protover_all_supported(). Fixes
10097       bug 27740; bugfix on 0.3.3.1-alpha.
10099   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
10100     - If a unit test running in a subprocess exits abnormally or with a
10101       nonzero status code, treat the test as having failed, even if the
10102       test reported success. Without this fix, memory leaks don't cause
10103       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
10104       bugfix on 0.2.2.4-alpha.
10106   o Minor bugfixes (testing, backport from 0.3.5.3-alpha):
10107     - Make the hs_service tests use the same time source when creating
10108       the introduction point and when testing it. Now tests work better
10109       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
10110       on 0.3.2.1-alpha.
10112   o Minor bugfixes (testing, to appear in 0.3.5.4-alpha):
10113     - Treat backtrace test failures as expected on BSD-derived systems
10114       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
10115       (FreeBSD failures have been treated as expected since 18204 in
10116       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
10119 Changes in version 0.3.5.3-alpha - 2018-10-17
10120   Tor 0.3.5.3-alpha fixes several bugs, mostly from previous 0.3.5.x
10121   versions. One important fix for relays addresses a problem with rate-
10122   limiting code from back in 0.3.4.x: If the fix works out, we'll be
10123   backporting it soon. This release is still an alpha, but we hope it's
10124   getting closer and closer to stability.
10126   o Major features (onion services):
10127     - Version 3 onion services can now use the per-service
10128       HiddenServiceExportCircuitID option to differentiate client
10129       circuits. It communicates with the service by using the HAProxy
10130       protocol to assign virtual IP addresses to inbound client
10131       circuits. Closes ticket 4700. Patch by Mahrud Sayrafi.
10133   o Major bugfixes (compilation):
10134     - Fix compilation on ARM (and other less-used CPUs) when compiling
10135       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
10137   o Major bugfixes (initialization, crash):
10138     - Fix an assertion crash that would stop Tor from starting up if it
10139       tried to activate a periodic event too early. Fixes bug 27861;
10140       bugfix on 0.3.5.1-alpha.
10142   o Major bugfixes (mainloop, bootstrap):
10143     - Make sure Tor bootstraps and works properly if only the
10144       ControlPort is set. Prior to this fix, Tor would only bootstrap
10145       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
10146       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
10148   o Major bugfixes (relay):
10149     - When our write bandwidth limit is exhausted, stop writing on the
10150       connection. Previously, we had a typo in the code that would make
10151       us stop reading instead, leading to relay connections being stuck
10152       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
10153       on 0.3.4.1-alpha.
10155   o Minor features (continuous integration):
10156     - Use the Travis Homebrew addon to install packages on macOS during
10157       Travis CI. The package list is the same, but the Homebrew addon
10158       does not do a `brew update` by default. Implements ticket 27738.
10159     - Report what program produced the mysterious core file that we
10160       occasionally see on Travis CI during make distcheck. Closes
10161       ticket 28024.
10163   o Minor features (geoip):
10164     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
10165       Country database. Closes ticket 27991.
10167   o Minor bugfixes (code safety):
10168     - Rewrite our assertion macros so that they no longer suppress the
10169       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
10170       on 0.0.6.
10172   o Minor bugfixes (compilation):
10173     - Compile the ed25519-donna code with a correct declaration of
10174       crypto_strongest_rand(). Previously, we built it with one type,
10175       but linked it against another in the unit tests, which caused
10176       compilation failures with LTO enabled. This could have caused
10177       other undefined behavior in the tests. Fixes bug 27728; bugfix
10178       on 0.3.5.1-alpha.
10180   o Minor bugfixes (compilation, netbsd):
10181     - Add a missing include back into procmon.c. Fixes bug 27990; bugfix
10182       on 0.3.5.1-alpha.
10184   o Minor bugfixes (continuous integration, appveyor):
10185     - Install only the necessary mingw packages during our appveyor
10186       builds. This change makes the build a little faster, and prevents
10187       a conflict with a preinstalled mingw openssl that appveyor now
10188       ships. Fixes bugs 27765 and 27943; bugfix on 0.3.4.2-alpha.
10190   o Minor bugfixes (directory permissions):
10191     - When a user requests a group-readable DataDirectory, give it to
10192       them. Previously, when the DataDirectory and the CacheDirectory
10193       were the same, the default setting (0) for
10194       CacheDirectoryGroupReadable would override the setting for
10195       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
10196       on 0.3.3.1-alpha.
10198   o Minor bugfixes (memory leaks):
10199     - Fix a small memory leak when calling Tor with --dump-config. Fixes
10200       bug 27893; bugfix on 0.3.2.1-alpha.
10202   o Minor bugfixes (networking):
10203     - In retry_listeners_ports(), make sure that we're removing a member
10204       of old_conns smartlist at most once. Fixes bug 27808; bugfix
10205       on 0.3.5.1-alpha.
10206     - Refrain from attempting socket rebinding when old and new
10207       listeners are in different address families. Fixes bug 27928;
10208       bugfix on 0.3.5.1-alpha.
10210   o Minor bugfixes (onion service v3):
10211     - Stop dumping a stack trace when trying to connect to an intro
10212       point without having a descriptor for it. Fixes bug 27774; bugfix
10213       on 0.3.2.1-alpha.
10214     - Don't warn so loudly when Tor is unable to decode an onion
10215       descriptor. This can now happen as a normal use case if a client
10216       gets a descriptor with client authorization but the client is not
10217       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
10218     - When selecting a v3 rendezvous point, don't only look at the
10219       protover, but also check whether the curve25519 onion key is
10220       present. This way we avoid picking a relay that supports the v3
10221       rendezvous but for which we don't have the microdescriptor. Fixes
10222       bug 27797; bugfix on 0.3.2.1-alpha.
10224   o Minor bugfixes (protover):
10225     - Reject protocol names containing bytes other than alphanumeric
10226       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
10227       on 0.2.9.4-alpha.
10229   o Minor bugfixes (testing):
10230     - Make the hs_service tests use the same time source when creating
10231       the introduction point and when testing it. Now tests work better
10232       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
10233       on 0.3.2.1-alpha.
10234     - In test_rebind.py, check if the Python version is in the supported
10235       range. Fixes bug 27675; bugfix on 0.3.5.1-alpha.
10237   o Code simplification and refactoring:
10238     - Divide more large Tor source files -- especially ones that span
10239       multiple areas of functionality -- into smaller parts, including
10240       onion.c and main.c. Closes ticket 26747.
10241     - Divide the "routerparse.c" module into separate modules for each
10242       group of parsed objects. Closes ticket 27924.
10243     - Move protover_rust.c to the same place protover.c was moved to.
10244       Closes ticket 27814.
10245     - Split directory.c into separate pieces for client, server, and
10246       common functionality. Closes ticket 26744.
10247     - Split the non-statistics-related parts from the rephist.c and
10248       geoip.c modules. Closes ticket 27892.
10249     - Split the router.c file into relay-only and shared components, to
10250       help with future modularization. Closes ticket 27864.
10252   o Documentation:
10253     - In the tor-resolve(1) manpage, fix the reference to socks-
10254       extensions.txt by adding a web URL. Resolves ticket 27853.
10255     - Mention that we require Python to be 2.7 or newer for some
10256       integration tests that we ship with Tor. Resolves ticket 27677.
10259 Changes in version 0.3.5.2-alpha - 2018-09-21
10260   Tor 0.3.5.2-alpha fixes several bugs in 0.3.5.1-alpha, including one
10261   that made Tor think it had run out of sockets. Anybody running a relay
10262   or an onion service on 0.3.5.1-alpha should upgrade.
10264   o Major bugfixes (relay bandwidth statistics):
10265     - When we close relayed circuits, report the data in the circuit
10266       queues as being written in our relay bandwidth stats. This
10267       mitigates guard discovery and other attacks that close circuits
10268       for the explicit purpose of noticing this discrepancy in
10269       statistics. Fixes bug 23512; bugfix on 0.0.8pre3.
10271   o Major bugfixes (socket accounting):
10272     - In our socket accounting code, count a socket as closed even when
10273       it is closed indirectly by the TLS layer. Previously, we would
10274       count these sockets as still in use, and incorrectly believe that
10275       we had run out of sockets. Fixes bug 27795; bugfix
10276       on 0.3.5.1-alpha.
10278   o Minor bugfixes (32-bit OSX and iOS, timing):
10279     - Fix an integer overflow bug in our optimized 32-bit millisecond-
10280       difference algorithm for 32-bit Apple platforms. Previously, it
10281       would overflow when calculating the difference between two times
10282       more than 47 days apart. Fixes part of bug 27139; bugfix
10283       on 0.3.4.1-alpha.
10284     - Improve the precision of our 32-bit millisecond difference
10285       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
10286       bugfix on 0.3.4.1-alpha.
10287     - Relax the tolerance on the mainloop/update_time_jumps test when
10288       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
10289       on 0.3.4.1-alpha.
10291   o Minor bugfixes (onion service v3):
10292     - Close all SOCKS request (for the same .onion) if the newly fetched
10293       descriptor is unusable. Before that, we would close only the first
10294       one leaving the other hanging and let to time out by themselves.
10295       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
10297   o Minor bugfixes (memory leak):
10298     - Fix an unlikely memory leak when trying to read a private key from
10299       a ridiculously large file. Fixes bug 27764; bugfix on
10300       0.3.5.1-alpha. This is CID 1439488.
10302   o Minor bugfixes (NSS):
10303     - Correctly detect failure to open a dummy TCP socket when stealing
10304       ownership of an fd from the NSS layer. Fixes bug 27782; bugfix
10305       on 0.3.5.1-alpha.
10307   o Minor bugfixes (rust):
10308     - protover_all_supported() would attempt to allocate up to 16GB on
10309       some inputs, leading to a potential memory DoS. Fixes bug 27206;
10310       bugfix on 0.3.3.5-rc.
10312   o Minor bugfixes (testing):
10313     - Revise the "conditionvar_timeout" test so that it succeeds even on
10314       heavily loaded systems where the test threads are not scheduled
10315       within 200 msec. Fixes bug 27073; bugfix on 0.2.6.3-alpha.
10317   o Code simplification and refactoring:
10318     - Divide the routerlist.c and dirserv.c modules into smaller parts.
10319       Closes ticket 27799.
10322 Changes in version 0.3.5.1-alpha - 2018-09-18
10323   Tor 0.3.5.1-alpha is the first release of the 0.3.5.x series. It adds
10324   client authorization for modern (v3) onion services, improves
10325   bootstrap reporting, begins reorganizing Tor's codebase, adds optional
10326   support for NSS in place of OpenSSL, and much more.
10328   o Major features (onion services, UI change):
10329     - For a newly created onion service, the default version is now 3.
10330       Tor still supports existing version 2 services, but the operator
10331       now needs to set "HiddenServiceVersion 2" in order to create a new
10332       version 2 service. For existing services, Tor now learns the
10333       version by reading the key file. Closes ticket 27215.
10335   o Major features (relay, UI change):
10336     - Relays no longer run as exits by default. If the "ExitRelay"
10337       option is auto (or unset), and no exit policy is specified with
10338       ExitPolicy or ReducedExitPolicy, we now treat ExitRelay as 0.
10339       Previously in this case, we allowed exit traffic and logged a
10340       warning message. Closes ticket 21530. Patch by Neel Chauhan.
10341     - Tor now validates that the ContactInfo config option is valid UTF-
10342       8 when parsing torrc. Closes ticket 27428.
10344   o Major features (bootstrap):
10345     - Don't report directory progress until after a connection to a
10346       relay or bridge has succeeded. Previously, we'd report 80%
10347       progress based on cached directory information when we couldn't
10348       even connect to the network. Closes ticket 27169.
10350   o Major features (new code layout):
10351     - Nearly all of Tor's source code has been moved around into more
10352       logical places. The "common" directory is now divided into a set
10353       of libraries in "lib", and files in the "or" directory have been
10354       split into "core" (logic absolutely needed for onion routing),
10355       "feature" (independent modules in Tor), and "app" (to configure
10356       and invoke the rest of Tor). See doc/HACKING/CodeStructure.md for
10357       more information. Closes ticket 26481.
10359       This refactoring is not complete: although the libraries have been
10360       refactored to be acyclic, the main body of Tor is still too
10361       interconnected. We will attempt to improve this in the future.
10363   o Major features (onion services v3):
10364     - Implement onion service client authorization at the descriptor
10365       level: only authorized clients can decrypt a service's descriptor
10366       to find out how to contact it. A new torrc option was added to
10367       control this client side: ClientOnionAuthDir <path>. On the
10368       service side, if the "authorized_clients/" directory exists in the
10369       onion service directory path, client configurations are read from
10370       the files within. See the manpage for more details. Closes ticket
10371       27547. Patch done by Suphanat Chunhapanya (haxxpop).
10372     - Improve revision counter generation in next-gen onion services.
10373       Onion services can now scale by hosting multiple instances on
10374       different hosts without synchronization between them, which was
10375       previously impossible because descriptors would get rejected by
10376       HSDirs. Addresses ticket 25552.
10378   o Major features (portability, cryptography, experimental, TLS):
10379     - Tor now has the option to compile with the NSS library instead of
10380       OpenSSL. This feature is experimental, and we expect that bugs may
10381       remain. It is mainly intended for environments where Tor's
10382       performance is not CPU-bound, and where NSS is already known to be
10383       installed. To try it out, configure Tor with the --enable-nss
10384       flag. Closes tickets 26631, 26815, and 26816.
10386       If you are experimenting with this option and using an old cached
10387       consensus, Tor may fail to start. To solve this, delete your
10388       "cached-consensus" and "cached-microdesc-consensus" files,
10389       (if present), and restart Tor.
10391   o Major bugfixes (directory authority):
10392     - Actually check that the address we get from DirAuthority
10393       configuration line is valid IPv4. Explicitly disallow DirAuthority
10394       address to be a DNS hostname. Fixes bug 26488; bugfix
10395       on 0.1.2.10-rc.
10397   o Major bugfixes (restart-in-process):
10398     - Fix a use-after-free error that could be caused by passing Tor an
10399       impossible set of options that would fail during options_act().
10400       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
10402   o Minor features (admin tools):
10403     - Add a new --key-expiration option to print the expiration date of
10404       the signing cert in an ed25519_signing_cert file. Resolves
10405       issue 19506.
10407   o Minor features (build):
10408     - If you pass the "--enable-pic" option to configure, Tor will try
10409       to tell the compiler to build position-independent code suitable
10410       to link into a dynamic library. (The default remains -fPIE, for
10411       code suitable for a relocatable executable.) Closes ticket 23846.
10413   o Minor features (code correctness, testing):
10414     - Tor's build process now includes a "check-includes" make target to
10415       verify that no module of Tor relies on any headers from a higher-
10416       level module. We hope to use this feature over time to help
10417       refactor our codebase. Closes ticket 26447.
10419   o Minor features (code layout):
10420     - We have a new "lowest-level" error-handling API for use by code
10421       invoked from within the logging module. With this interface, the
10422       logging code is no longer at risk of calling into itself if a
10423       failure occurs while it is trying to log something. Closes
10424       ticket 26427.
10426   o Minor features (compilation):
10427     - Tor's configure script now supports a --with-malloc= option to
10428       select your malloc implementation. Supported options are
10429       "tcmalloc", "jemalloc", "openbsd" (deprecated), and "system" (the
10430       default). Addresses part of ticket 20424. Based on a patch from
10431       Alex Xu.
10433   o Minor features (config):
10434     - The "auto" keyword in torrc is now case-insensitive. Closes
10435       ticket 26663.
10437   o Minor features (continuous integration):
10438     - Don't do a distcheck with --disable-module-dirauth in Travis.
10439       Implements ticket 27252.
10440     - Install libcap-dev and libseccomp2-dev so these optional
10441       dependencies get tested on Travis CI. Closes ticket 26560.
10442     - Only run one online rust build in Travis, to reduce network
10443       errors. Skip offline rust builds on Travis for Linux gcc, because
10444       they're redundant. Implements ticket 27252.
10445     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
10446       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
10447       Linux with default settings, because all the non-default builds
10448       use gcc on Linux. Implements ticket 27252.
10450   o Minor features (controller):
10451     - Emit CIRC_BW events as soon as we detect that we processed an
10452       invalid or otherwise dropped cell on a circuit. This allows
10453       vanguards and other controllers to react more quickly to dropped
10454       cells. Closes ticket 27678.
10455     - For purposes of CIRC_BW-based dropped cell detection, track half-
10456       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
10457       bias check cells to arrive without counting it as dropped until
10458       either the END arrives, or the windows are empty. Closes
10459       ticket 25573.
10460     - Implement a 'GETINFO md/all' controller command to enable getting
10461       all known microdescriptors. Closes ticket 8323.
10462     - The GETINFO command now support an "uptime" argument, to return
10463       Tor's uptime in seconds. Closes ticket 25132.
10465   o Minor features (denial-of-service avoidance):
10466     - Make our OOM handler aware of the DNS cache so that it doesn't
10467       fill up the memory. This check is important for our DoS mitigation
10468       subsystem. Closes ticket 18642. Patch by Neel Chauhan.
10470   o Minor features (development):
10471     - Tor's makefile now supports running the "clippy" Rust style tool
10472       on our Rust code. Closes ticket 22156.
10474   o Minor features (directory authority):
10475     - There is no longer an artificial upper limit on the length of
10476       bandwidth lines. Closes ticket 26223.
10477     - When a bandwidth file is used to obtain the bandwidth measurements,
10478       include this bandwidth file headers in the votes. Closes
10479       ticket 3723.
10480     - Improved support for networks with only a single authority or a
10481       single fallback directory. Patch from Gabriel Somlo. Closes
10482       ticket 25928.
10484   o Minor features (embedding API):
10485     - The Tor controller API now supports a function to launch Tor with
10486       a preconstructed owning controller FD, so that embedding
10487       applications don't need to manage controller ports and
10488       authentication. Closes ticket 24204.
10489     - The Tor controller API now has a function that returns the name
10490       and version of the backend implementing the API. Closes
10491       ticket 26947.
10493   o Minor features (geoip):
10494     - Update geoip and geoip6 to the September 6 2018 Maxmind GeoLite2
10495       Country database. Closes ticket 27631.
10497   o Minor features (memory management):
10498     - Get Libevent to use the same memory allocator as Tor, by calling
10499       event_set_mem_functions() during initialization. Resolves
10500       ticket 8415.
10502   o Minor features (memory usage):
10503     - When not using them, store legacy TAP public onion keys in DER-
10504       encoded format, rather than as expanded public keys. This should
10505       save several megabytes on typical clients. Closes ticket 27246.
10507   o Minor features (OpenSSL):
10508     - When possible, use RFC5869 HKDF implementation from OpenSSL rather
10509       than our own. Resolves ticket 19979.
10511   o Minor features (Rust, code quality):
10512     - Improve rust code quality in the rust protover implementation by
10513       making it more idiomatic. Includes changing an internal API to
10514       take &str instead of &String. Closes ticket 26492.
10516   o Minor features (testing):
10517     - Add scripts/test/chutney-git-bisect.sh, for bisecting using
10518       chutney. Implements ticket 27211.
10520   o Minor features (tor-resolve):
10521     - The tor-resolve utility can now be used with IPv6 SOCKS proxies.
10522       Side-effect of the refactoring for ticket 26526.
10524   o Minor features (UI):
10525     - Log each included configuration file or directory as we read it,
10526       to provide more visibility about where Tor is reading from. Patch
10527       from Unto Sten; closes ticket 27186.
10528     - Lower log level of "Scheduler type KIST has been enabled" to INFO.
10529       Closes ticket 26703.
10531   o Minor bugfixes (bootstrap):
10532     - Try harder to get descriptors in non-exit test networks, by using
10533       the mid weight for the third hop when there are no exits. Fixes
10534       bug 27237; bugfix on 0.2.6.2-alpha.
10536   o Minor bugfixes (C correctness):
10537     - Avoid casting smartlist index to int implicitly, as it may trigger
10538       a warning (-Wshorten-64-to-32). Fixes bug 26282; bugfix on
10539       0.2.3.13-alpha, 0.2.7.1-alpha and 0.2.1.1-alpha.
10540     - Use time_t for all values in
10541       predicted_ports_prediction_time_remaining(). Rework the code that
10542       computes difference between durations/timestamps. Fixes bug 27165;
10543       bugfix on 0.3.1.1-alpha.
10545   o Minor bugfixes (client, memory usage):
10546     - When not running as a directory cache, there is no need to store
10547       the text of the current consensus networkstatus in RAM.
10548       Previously, however, clients would store it anyway, at a cost of
10549       over 5 MB. Now, they do not. Fixes bug 27247; bugfix
10550       on 0.3.0.1-alpha.
10552   o Minor bugfixes (client, reachableaddresses):
10553     - Instead of adding a "reject *:*" line to ReachableAddresses when
10554       loading the configuration, add one to the policy after parsing it
10555       in parse_reachable_addresses(). This prevents extra "reject *.*"
10556       lines from accumulating on reloads. Fixes bug 20874; bugfix on
10557       0.1.1.5-alpha. Patch by Neel Chauhan.
10559   o Minor bugfixes (code quality):
10560     - Rename sandbox_getaddrinfo() and other functions to no longer
10561       misleadingly suggest that they are sandbox-only. Fixes bug 26525;
10562       bugfix on 0.2.7.1-alpha.
10564   o Minor bugfixes (configuration, Onion Services):
10565     - In rend_service_parse_port_config(), disallow any input to remain
10566       after address-port pair was parsed. This will catch address and
10567       port being whitespace-separated by mistake of the user. Fixes bug
10568       27044; bugfix on 0.2.9.10.
10570   o Minor bugfixes (continuous integration):
10571     - Stop reinstalling identical packages in our Windows CI. Fixes bug
10572       27464; bugfix on 0.3.4.1-alpha.
10574   o Minor bugfixes (controller):
10575     - Consider all routerinfo errors other than "not a server" to be
10576       transient for the purpose of "GETINFO exit-policy/*" controller
10577       request. Print stacktrace in the unlikely case of failing to
10578       recompute routerinfo digest. Fixes bug 27034; bugfix
10579       on 0.3.4.1-alpha.
10581   o Minor bugfixes (directory connection shutdown):
10582     - Avoid a double-close when shutting down a stalled directory
10583       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
10585   o Minor bugfixes (HTTP tunnel):
10586     - Fix a bug warning when closing an HTTP tunnel connection due to an
10587       HTTP request we couldn't handle. Fixes bug 26470; bugfix
10588       on 0.3.2.1-alpha.
10590   o Minor bugfixes (ipv6):
10591     - In addrs_in_same_network_family(), we choose the subnet size based
10592       on the IP version (IPv4 or IPv6). Previously, we chose a fixed
10593       subnet size of /16 for both IPv4 and IPv6 addresses. Fixes bug
10594       15518; bugfix on 0.2.3.1-alpha. Patch by Neel Chauhan.
10596   o Minor bugfixes (logging):
10597     - As a precaution, do an early return from log_addr_has_changed() if
10598       Tor is running as client. Also, log a stack trace for debugging as
10599       this function should only be called when Tor runs as server. Fixes
10600       bug 26892; bugfix on 0.1.1.9-alpha.
10601     - Refrain from mentioning bug 21018 in the logs, as it is already
10602       fixed. Fixes bug 25477; bugfix on 0.2.9.8.
10604   o Minor bugfixes (logging, documentation):
10605     - When SafeLogging is enabled, scrub IP address in
10606       channel_tls_process_netinfo_cell(). Also, add a note to manpage
10607       that scrubbing is not guaranteed on loglevels below Notice. Fixes
10608       bug 26882; bugfix on 0.2.4.10-alpha.
10610   o Minor bugfixes (netflow padding):
10611     - Ensure circuitmux queues are empty before scheduling or sending
10612       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
10614   o Minor bugfixes (onion service v2):
10615     - Log at level "info", not "warning", in the case that we do not
10616       have a consensus when a .onion request comes in. This can happen
10617       normally while bootstrapping. Fixes bug 27040; bugfix
10618       on 0.2.8.2-alpha.
10620   o Minor bugfixes (onion service v3):
10621     - When the onion service directory can't be created or has the wrong
10622       permissions, do not log a stack trace. Fixes bug 27335; bugfix
10623       on 0.3.2.1-alpha.
10625   o Minor bugfixes (OS compatibility):
10626     - Properly handle configuration changes that move a listener to/from
10627       wildcard IP address. If the first attempt to bind a socket fails,
10628       close the old listener and try binding the socket again. Fixes bug
10629       17873; bugfix on 0.0.8pre-1.
10631   o Minor bugfixes (performance)::
10632     - Rework node_is_a_configured_bridge() to no longer call
10633       node_get_all_orports(), which was performing too many memory
10634       allocations. Fixes bug 27224; bugfix on 0.2.3.9.
10636   o Minor bugfixes (relay statistics):
10637     - Update relay descriptor on bandwidth changes only when the uptime
10638       is smaller than 24h, in order to reduce the efficiency of guard
10639       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
10641   o Minor bugfixes (relays):
10642     - Consider the fact that we'll be making direct connections to our
10643       entry and guard nodes when computing the fraction of nodes that
10644       have their descriptors. Also, if we are using bridges and there is
10645       at least one bridge with a full descriptor, treat the fraction of
10646       guards available as 100%. Fixes bug 25886; bugfix on 0.2.4.10-alpha.
10647       Patch by Neel Chauhan.
10648     - Update the message logged on relays when DirCache is disabled.
10649       Since 0.3.3.5-rc, authorities require DirCache (V2Dir) for the
10650       Guard flag. Fixes bug 24312; bugfix on 0.3.3.5-rc.
10652   o Minor bugfixes (rust, protover):
10653     - Compute protover votes correctly in the rust version of the
10654       protover code. Previously, the protover rewrite in 24031 allowed
10655       repeated votes from the same voter for the same protocol version
10656       to be counted multiple times in protover_compute_vote(). Fixes bug
10657       27649; bugfix on 0.3.3.5-rc.
10658     - Reject protover names that contain invalid characters. Fixes bug
10659       27687; bugfix on 0.3.3.1-alpha.
10661   o Minor bugfixes (testing):
10662     - Fix two unit tests to work when HOME environment variable is not
10663       set. Fixes bug 27096; bugfix on 0.2.8.1-alpha.
10664     - If a unit test running in a subprocess exits abnormally or with a
10665       nonzero status code, treat the test as having failed, even if the
10666       test reported success. Without this fix, memory leaks don't cause
10667       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
10668       bugfix on 0.2.2.4-alpha.
10669     - When logging a version mismatch in our openssl_version tests,
10670       report the actual offending version strings. Fixes bug 26152;
10671       bugfix on 0.2.9.1-alpha.
10672     - Fix forking tests on Windows when there is a space somewhere in
10673       the path. Fixes bug 26437; bugfix on 0.2.2.4-alpha.
10675   o Code simplification and refactoring:
10676     - 'updateFallbackDirs.py' now ignores the blacklist file, as it's not
10677       longer needed. Closes ticket 26502.
10678     - Include paths to header files within Tor are now qualified by
10679       directory within the top-level src directory.
10680     - Many structures have been removed from the centralized "or.h"
10681       header, and moved into their own headers. This will allow us to
10682       reduce the number of places in the code that rely on each
10683       structure's contents and layout. Closes ticket 26383.
10684     - Remove ATTR_NONNULL macro from codebase. Resolves ticket 26527.
10685     - Remove GetAdaptersAddresses_fn_t. The code that used it was
10686       removed as part of the 26481 refactor. Closes ticket 27467.
10687     - Rework Tor SOCKS server code to use Trunnel and benefit from
10688       autogenerated functions for parsing and generating SOCKS wire
10689       format. New implementation is cleaner, more maintainable and
10690       should be less prone to heartbleed-style vulnerabilities.
10691       Implements a significant fraction of ticket 3569.
10692     - Split sampled_guards_update_from_consensus() and
10693       select_entry_guard_for_circuit() into subfunctions. In
10694       entry_guards_update_primary() unite three smartlist enumerations
10695       into one and move smartlist comparison code out of the function.
10696       Closes ticket 21349.
10697     - Tor now assumes that you have standards-conformant stdint.h and
10698       inttypes.h headers when compiling. Closes ticket 26626.
10699     - Unify our bloom filter logic. Previously we had two copies of this
10700       code: one for routerlist filtering, and one for address set
10701       calculations. Closes ticket 26510.
10702     - Use the simpler strcmpstart() helper in
10703       rend_parse_v2_service_descriptor instead of strncmp(). Closes
10704       ticket 27630.
10705     - Utility functions that can perform a DNS lookup are now wholly
10706       separated from those that can't, in separate headers and C
10707       modules. Closes ticket 26526.
10709   o Documentation:
10710     - Copy paragraph and URL to Tor's code of conduct document from
10711       CONTRIBUTING to new CODE_OF_CONDUCT file. Resolves ticket 26638.
10712     - Remove old instructions from INSTALL document. Closes ticket 26588.
10713     - Warn users that they should not include MyFamily line(s) in their
10714       torrc when running Tor bridge. Closes ticket 26908.
10716   o Removed features:
10717     - Tor no longer supports building with the dmalloc library. For
10718       debugging memory issues, we suggest using gperftools or msan
10719       instead. Closes ticket 26426.
10720     - Tor no longer attempts to run on Windows environments without the
10721       GetAdaptersAddresses() function. This function has existed since
10722       Windows XP, which is itself already older than we support.
10723     - Remove Tor2web functionality for version 2 onion services. The
10724       Tor2webMode and Tor2webRendezvousPoints options are now obsolete.
10725       (This feature was never shipped in vanilla Tor and it was only
10726       possible to use this feature by building the support at compile
10727       time. Tor2webMode is not implemented for version 3 onion services.)
10728       Closes ticket 26367.
10731 Changes in version 0.2.9.17 - 2018-09-10
10732   Tor 0.2.9.17 backports numerous bugfixes from later versions of Tor.
10734   o Minor features (compatibility, backport from 0.3.4.8):
10735     - Tell OpenSSL to maintain backward compatibility with previous
10736       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
10737       ciphers are disabled by default. Closes ticket 27344.
10739   o Minor features (continuous integration, backport from 0.3.4.7-rc):
10740     - Enable macOS builds in our Travis CI configuration. Closes
10741       ticket 24629.
10742     - Install libcap-dev and libseccomp2-dev so these optional
10743       dependencies get tested on Travis CI. Closes ticket 26560.
10744     - Run asciidoc during Travis CI. Implements ticket 27087.
10745     - Use ccache in our Travis CI configuration. Closes ticket 26952.
10747   o Minor features (geoip):
10748     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
10749       Country database. Closes ticket 27089.
10751   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
10752     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
10753       tell the compiler not to include the system malloc implementation.
10754       Fixes bug 20424; bugfix on 0.2.0.20-rc.
10756   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
10757     - Silence a spurious compiler warning on the GetAdaptersAddresses
10758       function pointer cast. This issue is already fixed by 26481 in
10759       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
10760       bugfix on 0.2.3.11-alpha.
10761     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
10762       supported, and always fails. Some compilers warn about the
10763       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
10764       on 0.2.2.23-alpha.
10766   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
10767     - Don't link or search for pthreads when building for Windows, even
10768       if we are using build environment (like mingw) that provides a
10769       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
10771   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
10772     - Skip a pair of unreliable key generation tests on Windows, until
10773       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
10774       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
10776   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
10777     - Pass the module flags to distcheck configure, and log the flags
10778       before running configure. (Backported to 0.2.9 and later as a
10779       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
10781   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
10782     - When a Travis build fails, and showing a log fails, keep trying to
10783       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
10784     - When we use echo in Travis, don't pass a --flag as the first
10785       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
10787   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
10788     - When voting for recommended versions, make sure that all of the
10789       versions are well-formed and parsable. Fixes bug 26485; bugfix
10790       on 0.1.1.6-alpha.
10792   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
10793     - Fix a bug in out sandboxing rules for the openat() syscall.
10794       Previously, no openat() call would be permitted, which would break
10795       filesystem operations on recent glibc versions. Fixes bug 25440;
10796       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
10798   o Minor bugfixes (onion services, backport from 0.3.4.8):
10799     - Silence a spurious compiler warning in
10800       rend_client_send_introduction(). Fixes bug 27463; bugfix
10801       on 0.1.1.2-alpha.
10803   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
10804     - Log a protocol warning when single onion services or Tor2web clients
10805       fail to authenticate direct connections to relays.
10806       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
10808   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
10809     - Disable core dumps in test_bt.sh, to avoid failures in "make
10810       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
10812   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
10813     - Before running make test-network-all, delete old logs and test
10814       result files, to avoid spurious failures. Fixes bug 27295; bugfix
10815       on 0.2.7.3-rc.
10817   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
10818     - Our "tortls/cert_matches_key" unit test no longer relies on
10819       OpenSSL internals. Previously, it relied on unsupported OpenSSL
10820       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
10821       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
10823   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
10824     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
10825       27185; bugfix on 0.2.2.2-alpha.
10828 Changes in version 0.3.2.12 - 2018-09-10
10829   Tor 0.3.2.12 backport numerous fixes from later versions of Tor.
10831   o Minor features (compatibility, backport from 0.3.4.8):
10832     - Tell OpenSSL to maintain backward compatibility with previous
10833       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
10834       ciphers are disabled by default. Closes ticket 27344.
10836   o Minor features (continuous integration, backport from 0.3.4.7-rc):
10837     - Enable macOS builds in our Travis CI configuration. Closes
10838       ticket 24629.
10839     - Install libcap-dev and libseccomp2-dev so these optional
10840       dependencies get tested on Travis CI. Closes ticket 26560.
10841     - Run asciidoc during Travis CI. Implements ticket 27087.
10842     - Use ccache in our Travis CI configuration. Closes ticket 26952.
10844   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
10845     - Use cargo cache in our Travis CI configuration. Closes
10846       ticket 26952.
10848   o Minor features (controller, backport from 0.3.4.6-rc):
10849     - The control port now exposes the list of HTTPTunnelPorts and
10850       ExtOrPorts via GETINFO net/listeners/httptunnel and
10851       net/listeners/extor respectively. Closes ticket 26647.
10853   o Minor features (directory authorities, backport from 0.3.4.7-rc):
10854     - Authorities no longer vote to make the subprotocol version
10855       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
10856       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
10858   o Minor features (geoip):
10859     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
10860       Country database. Closes ticket 27089.
10862   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
10863     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
10864       tell the compiler not to include the system malloc implementation.
10865       Fixes bug 20424; bugfix on 0.2.0.20-rc.
10866     - Don't try to use a pragma to temporarily disable the
10867       -Wunused-const-variable warning if the compiler doesn't support
10868       it. Fixes bug 26785; bugfix on 0.3.2.11.
10870   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
10871     - Silence a spurious compiler warning on the GetAdaptersAddresses
10872       function pointer cast. This issue is already fixed by 26481 in
10873       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
10874       bugfix on 0.2.3.11-alpha.
10875     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
10876       supported, and always fails. Some compilers warn about the
10877       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
10878       on 0.2.2.23-alpha.
10880   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
10881     - Don't link or search for pthreads when building for Windows, even
10882       if we are using build environment (like mingw) that provides a
10883       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
10885   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
10886     - Skip a pair of unreliable key generation tests on Windows, until
10887       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
10888       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
10890   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
10891     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
10892     - Pass the module flags to distcheck configure, and log the flags
10893       before running configure. (Backported to 0.2.9 and later as a
10894       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
10896   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
10897     - When a Travis build fails, and showing a log fails, keep trying to
10898       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
10899     - When we use echo in Travis, don't pass a --flag as the first
10900       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
10902   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
10903     - When voting for recommended versions, make sure that all of the
10904       versions are well-formed and parsable. Fixes bug 26485; bugfix
10905       on 0.1.1.6-alpha.
10907   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
10908     - Fix a bug in out sandboxing rules for the openat() syscall.
10909       Previously, no openat() call would be permitted, which would break
10910       filesystem operations on recent glibc versions. Fixes bug 25440;
10911       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
10913   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
10914     - Improve the log message when connection initiators fail to
10915       authenticate direct connections to relays. Fixes bug 26927; bugfix
10916       on 0.3.0.1-alpha.
10918   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
10919     - Fix bug that causes services to not ever rotate their descriptors
10920       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
10921       on 0.3.2.1-alpha.
10923   o Minor bugfixes (onion services, backport from 0.3.4.8):
10924     - Silence a spurious compiler warning in
10925       rend_client_send_introduction(). Fixes bug 27463; bugfix
10926       on 0.1.1.2-alpha.
10928   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
10929     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
10930       on 0.3.1.5-alpha.
10931     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
10932       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
10933     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
10934       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
10936   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
10937     - Log a protocol warning when single onion services or Tor2web clients
10938       fail to authenticate direct connections to relays.
10939       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
10941   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
10942     - Disable core dumps in test_bt.sh, to avoid failures in "make
10943       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
10945   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
10946     - When running make test-network-all, use the mixed+hs-v2 network.
10947       (A previous fix to chutney removed v3 onion services from the
10948       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
10949       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
10950     - Before running make test-network-all, delete old logs and test
10951       result files, to avoid spurious failures. Fixes bug 27295; bugfix
10952       on 0.2.7.3-rc.
10954   o Minor bugfixes (testing, openssl compatibility):
10955     - Our "tortls/cert_matches_key" unit test no longer relies on OpenSSL
10956       internals.  Previously, it relied on unsupported OpenSSL behavior in
10957       a way that caused it to crash with OpenSSL 1.0.2p. Fixes bug 27226;
10958       bugfix on 0.2.5.1-alpha.
10960   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
10961     - Our "tortls/cert_matches_key" unit test no longer relies on
10962       OpenSSL internals. Previously, it relied on unsupported OpenSSL
10963       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
10964       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
10966   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
10967     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
10968       27185; bugfix on 0.2.2.2-alpha.
10971 Changes in version 0.3.3.10 - 2018-09-10
10972   Tor 0.3.3.10 backports numerous fixes from later versions of Tor.
10974   o Minor features (bug workaround, backport from 0.3.4.7-rc):
10975     - Compile correctly on systems that provide the C11 stdatomic.h
10976       header, but where C11 atomic functions don't actually compile.
10977       Closes ticket 26779; workaround for Debian issue 903709.
10979   o Minor features (compatibility, backport from 0.3.4.8):
10980     - Tell OpenSSL to maintain backward compatibility with previous
10981       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
10982       ciphers are disabled by default. Closes ticket 27344.
10984   o Minor features (continuous integration, backport from 0.3.4.7-rc):
10985     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
10986     - Enable macOS builds in our Travis CI configuration. Closes
10987       ticket 24629.
10988     - Install libcap-dev and libseccomp2-dev so these optional
10989       dependencies get tested on Travis CI. Closes ticket 26560.
10990     - Run asciidoc during Travis CI. Implements ticket 27087.
10991     - Use ccache in our Travis CI configuration. Closes ticket 26952.
10993   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
10994     - Use cargo cache in our Travis CI configuration. Closes
10995       ticket 26952.
10997   o Minor features (controller, backport from 0.3.4.6-rc):
10998     - The control port now exposes the list of HTTPTunnelPorts and
10999       ExtOrPorts via GETINFO net/listeners/httptunnel and
11000       net/listeners/extor respectively. Closes ticket 26647.
11002   o Minor features (directory authorities, backport from 0.3.4.7-rc):
11003     - Authorities no longer vote to make the subprotocol version
11004       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
11005       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
11007   o Minor features (geoip):
11008     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
11009       Country database. Closes ticket 27089.
11011   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
11012     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
11013       tell the compiler not to include the system malloc implementation.
11014       Fixes bug 20424; bugfix on 0.2.0.20-rc.
11015     - Don't try to use a pragma to temporarily disable the
11016       -Wunused-const-variable warning if the compiler doesn't support
11017       it. Fixes bug 26785; bugfix on 0.3.2.11.
11019   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
11020     - Silence a spurious compiler warning on the GetAdaptersAddresses
11021       function pointer cast. This issue is already fixed by 26481 in
11022       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
11023       bugfix on 0.2.3.11-alpha.
11024     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
11025       supported, and always fails. Some compilers warn about the
11026       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
11027       on 0.2.2.23-alpha.
11029   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
11030     - Don't link or search for pthreads when building for Windows, even
11031       if we are using build environment (like mingw) that provides a
11032       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
11034   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
11035     - Skip a pair of unreliable key generation tests on Windows, until
11036       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
11037       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
11039   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
11040     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
11041     - Pass the module flags to distcheck configure, and log the flags
11042       before running configure. (Backported to 0.2.9 and later as a
11043       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
11045   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
11046     - When a Travis build fails, and showing a log fails, keep trying to
11047       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
11048     - When we use echo in Travis, don't pass a --flag as the first
11049       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
11051   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
11052     - When voting for recommended versions, make sure that all of the
11053       versions are well-formed and parsable. Fixes bug 26485; bugfix
11054       on 0.1.1.6-alpha.
11056   o Minor bugfixes (in-process restart, backport from 0.3.4.7-rc):
11057     - Always call tor_free_all() when leaving tor_run_main(). When we
11058       did not, restarting tor in-process would cause an assertion
11059       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
11061   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
11062     - Fix a bug in our sandboxing rules for the openat() syscall.
11063       Previously, no openat() call would be permitted, which would break
11064       filesystem operations on recent glibc versions. Fixes bug 25440;
11065       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
11067   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
11068     - Improve the log message when connection initiators fail to
11069       authenticate direct connections to relays. Fixes bug 26927; bugfix
11070       on 0.3.0.1-alpha.
11072   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
11073     - Fix bug that causes services to not ever rotate their descriptors
11074       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
11075       on 0.3.2.1-alpha.
11077   o Minor bugfixes (onion services, backport from 0.3.4.8):
11078     - Silence a spurious compiler warning in
11079       rend_client_send_introduction(). Fixes bug 27463; bugfix
11080       on 0.1.1.2-alpha.
11082   o Minor bugfixes (portability, backport from 0.3.4.6-rc):
11083     - Work around two different bugs in the OS X 10.10 and later SDKs
11084       that would prevent us from successfully targeting earlier versions
11085       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
11087   o Minor bugfixes (portability, backport from 0.3.4.7-rc):
11088     - Fix compilation of the unit tests on GNU/Hurd, which does not
11089       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
11090       from "paulusASol".
11092   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
11093     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
11094       on 0.3.1.5-alpha.
11095     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
11096       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
11097     - Protover parsing was accepting the presence of whitespace in
11098       version strings, which the C implementation would choke on, e.g.
11099       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
11100     - Protover parsing was ignoring a 2nd hyphen and everything after
11101       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
11102       on 0.3.3.1-alpha.
11103     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
11104       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
11105     - cd to ${abs_top_builddir}/src/rust before running cargo in
11106       src/test/test_rust.sh. This makes the working directory consistent
11107       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
11109   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
11110     - Log a protocol warning when single onion services or Tor2web clients
11111       fail to authenticate direct connections to relays.
11112       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
11114   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
11115     - Disable core dumps in test_bt.sh, to avoid failures in "make
11116       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
11118   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
11119     - When running make test-network-all, use the mixed+hs-v2 network.
11120       (A previous fix to chutney removed v3 onion services from the
11121       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
11122       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
11123     - Before running make test-network-all, delete old logs and test
11124       result files, to avoid spurious failures. Fixes bug 27295; bugfix
11125       on 0.2.7.3-rc.
11127   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
11128     - Our "tortls/cert_matches_key" unit test no longer relies on
11129       OpenSSL internals. Previously, it relied on unsupported OpenSSL
11130       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
11131       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
11133   o Minor bugfixes (v3 onion services, backport from 0.3.4.6-rc):
11134     - Stop sending ed25519 link specifiers in v3 onion service introduce
11135       cells and descriptors, when the rendezvous or introduction point
11136       doesn't support ed25519 link authentication. Fixes bug 26627;
11137       bugfix on 0.3.2.4-alpha.
11139   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
11140     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
11141       27185; bugfix on 0.2.2.2-alpha.
11144 Changes in version 0.3.4.8 - 2018-09-10
11145   Tor 0.3.4.8 is the first stable release in its series; it includes
11146   compilation and portability fixes.
11148   The Tor 0.3.4 series includes improvements for running Tor in
11149   low-power and embedded environments, which should help performance in
11150   general. We've begun work on better modularity, and included preliminary
11151   changes on the directory authority side to accommodate a new bandwidth
11152   measurement system.  We've also integrated more continuous-integration
11153   systems into our development process, and made corresponding changes to
11154   Tor's testing infrastructure.  Finally, we've continued to refine
11155   our anti-denial-of-service code.
11157   Below are the changes since 0.3.4.7-rc.  For a complete list of changes
11158   since 0.3.3.9, see the ReleaseNotes file.
11160   o Minor features (compatibility):
11161     - Tell OpenSSL to maintain backward compatibility with previous
11162       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
11163       ciphers are disabled by default. Closes ticket 27344.
11165   o Minor features (continuous integration):
11166     - Log the compiler path and version during Appveyor builds.
11167       Implements ticket 27449.
11168     - Show config.log and test-suite.log after failed Appveyor builds.
11169       Also upload the zipped full logs as a build artifact. Implements
11170       ticket 27430.
11172   o Minor bugfixes (compilation):
11173     - Silence a spurious compiler warning on the GetAdaptersAddresses
11174       function pointer cast. This issue is already fixed by 26481 in
11175       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
11176       bugfix on 0.2.3.11-alpha.
11177     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
11178       supported, and always fails. Some compilers warn about the
11179       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
11180       on 0.2.2.23-alpha.
11182   o Minor bugfixes (continuous integration):
11183     - Disable gcc hardening in Appveyor Windows 64-bit builds. As of
11184       August 29 2018, Appveyor images come with gcc 8.2.0 by default.
11185       Executables compiled for 64-bit Windows with this version of gcc
11186       crash when Tor's --enable-gcc-hardening flag is set. Fixes bug
11187       27460; bugfix on 0.3.4.1-alpha.
11188     - When a Travis build fails, and showing a log fails, keep trying to
11189       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
11190     - When we use echo in Travis, don't pass a --flag as the first
11191       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
11193   o Minor bugfixes (onion services):
11194     - Silence a spurious compiler warning in
11195       rend_client_send_introduction(). Fixes bug 27463; bugfix
11196       on 0.1.1.2-alpha.
11198   o Minor bugfixes (testing, chutney):
11199     - When running make test-network-all, use the mixed+hs-v2 network.
11200       (A previous fix to chutney removed v3 onion services from the
11201       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
11202       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
11203     - Before running make test-network-all, delete old logs and test
11204       result files, to avoid spurious failures. Fixes bug 27295; bugfix
11205       on 0.2.7.3-rc.
11207 Changes in version 0.3.4.7-rc - 2018-08-24
11208   Tor 0.3.4.7-rc fixes several small compilation, portability, and
11209   correctness issues in previous versions of Tor. This version is a
11210   release candidate: if no serious bugs are found, we expect that the
11211   stable 0.3.4 release will be (almost) the same as this release.
11213   o Minor features (bug workaround):
11214     - Compile correctly on systems that provide the C11 stdatomic.h
11215       header, but where C11 atomic functions don't actually compile.
11216       Closes ticket 26779; workaround for Debian issue 903709.
11218   o Minor features (continuous integration):
11219     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
11220     - Enable macOS builds in our Travis CI configuration. Closes
11221       ticket 24629.
11222     - Install libcap-dev and libseccomp2-dev so these optional
11223       dependencies get tested on Travis CI. Closes ticket 26560.
11224     - Only post Appveyor IRC notifications when the build fails.
11225       Implements ticket 27275.
11226     - Run asciidoc during Travis CI. Implements ticket 27087.
11227     - Use ccache in our Travis CI configuration. Closes ticket 26952.
11229   o Minor features (continuous integration, rust):
11230     - Use cargo cache in our Travis CI configuration. Closes
11231       ticket 26952.
11233   o Minor features (directory authorities):
11234     - Authorities no longer vote to make the subprotocol version
11235       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
11236       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
11238   o Minor features (geoip):
11239     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
11240       Country database. Closes ticket 27089.
11242   o Minor bugfixes (compilation, windows):
11243     - Don't link or search for pthreads when building for Windows, even
11244       if we are using build environment (like mingw) that provides a
11245       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
11247   o Minor bugfixes (continuous integration):
11248     - Improve Appveyor CI IRC logging. Generate correct branches and
11249       URLs for pull requests and tags. Use unambiguous short commits.
11250       Fixes bug 26979; bugfix on master.
11251     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
11252     - Pass the module flags to distcheck configure, and log the flags
11253       before running configure. (Backported to 0.2.9 and later as a
11254       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
11256   o Minor bugfixes (in-process restart):
11257     - Always call tor_free_all() when leaving tor_run_main(). When we
11258       did not, restarting tor in-process would cause an assertion
11259       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
11261   o Minor bugfixes (linux seccomp2 sandbox):
11262     - Fix a bug in out sandboxing rules for the openat() syscall.
11263       Previously, no openat() call would be permitted, which would break
11264       filesystem operations on recent glibc versions. Fixes bug 25440;
11265       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
11267   o Minor bugfixes (onion services):
11268     - Fix bug that causes services to not ever rotate their descriptors
11269       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
11270       on 0.3.2.1-alpha.
11272   o Minor bugfixes (portability):
11273     - Fix compilation of the unit tests on GNU/Hurd, which does not
11274       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
11275       from "paulusASol".
11277   o Minor bugfixes (rust):
11278     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
11279       on 0.3.1.5-alpha.
11280     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
11281       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
11282     - Protover parsing was accepting the presence of whitespace in
11283       version strings, which the C implementation would choke on, e.g.
11284       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
11285     - Protover parsing was ignoring a 2nd hyphen and everything after
11286       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
11287       on 0.3.3.1-alpha.
11288     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
11289       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
11290     - cd to ${abs_top_builddir}/src/rust before running cargo in
11291       src/test/test_rust.sh. This makes the working directory consistent
11292       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
11294   o Minor bugfixes (testing, bootstrap):
11295     - When calculating bootstrap progress, check exit policies and the
11296       exit flag. Previously, Tor would only check the exit flag, which
11297       caused race conditions in small and fast networks like chutney.
11298       Fixes bug 27236; bugfix on 0.2.6.3-alpha.
11300   o Minor bugfixes (testing, openssl compatibility):
11301     - Our "tortls/cert_matches_key" unit test no longer relies on
11302       OpenSSL internals. Previously, it relied on unsupported OpenSSL
11303       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
11304       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
11306   o Minor bugfixes (Windows, compilation):
11307     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
11308       27185; bugfix on 0.2.2.2-alpha.
11311 Changes in version 0.3.4.6-rc - 2018-08-06
11312   Tor 0.3.4.6-rc fixes several small compilation, portability, and
11313   correctness issues in previous versions of Tor. This version is a
11314   release candidate: if no serious bugs are found, we expect that the
11315   stable 0.3.4 release will be (almost) the same as this release.
11317   o Major bugfixes (event scheduler):
11318     - When we enable a periodic event, schedule it in the event loop
11319       rather than running it immediately. Previously, we would re-run
11320       periodic events immediately in the middle of (for example)
11321       changing our options, with unpredictable effects. Fixes bug 27003;
11322       bugfix on 0.3.4.1-alpha.
11324   o Minor features (compilation):
11325     - When building Tor, prefer to use Python 3 over Python 2, and more
11326       recent (contemplated) versions over older ones. Closes
11327       ticket 26372.
11328     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
11329       tell the compiler not to include the system malloc implementation.
11330       Fixes bug 20424; bugfix on 0.2.0.20-rc.
11331     - Don't try to use a pragma to temporarily disable the
11332       -Wunused-const-variable warning if the compiler doesn't support
11333       it. Fixes bug 26785; bugfix on 0.3.2.11.
11335   o Minor bugfixes (continuous integration):
11336     - Skip a pair of unreliable key generation tests on Windows, until
11337       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
11338       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
11340   o Minor features (controller):
11341     - The control port now exposes the list of HTTPTunnelPorts and
11342       ExtOrPorts via GETINFO net/listeners/httptunnel and
11343       net/listeners/extor respectively. Closes ticket 26647.
11345   o Minor bugfixes (directory authority):
11346     - When voting for recommended versions, make sure that all of the
11347       versions are well-formed and parsable. Fixes bug 26485; bugfix
11348       on 0.1.1.6-alpha.
11350   o Minor features (geoip):
11351     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
11352       Country database. Closes ticket 26674.
11354   o Minor features (Rust, portability):
11355     - Rust cross-compilation is now supported. Closes ticket 25895.
11357   o Minor bugfixes (compilation):
11358     - Update build system so that tor builds again with --disable-unittests
11359       after recent refactoring. Fixes bug 26789; bugfix on 0.3.4.3-alpha.
11360     - Fix a compilation warning on some versions of GCC when building
11361       code that calls routerinfo_get_my_routerinfo() twice, assuming
11362       that the second call will succeed if the first one did. Fixes bug
11363       26269; bugfix on 0.2.8.2-alpha.
11365   o Minor bugfixes (controller):
11366     - Report the port correctly when a port is configured to bind to
11367       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
11368     - Parse the "HSADDRESS=" parameter in HSPOST commands properly.
11369       Previously, it was misparsed and ignored. Fixes bug 26523; bugfix
11370       on 0.3.3.1-alpha. Patch by "akwizgran".
11372   o Minor bugfixes (correctness, flow control):
11373     - Upon receiving a stream-level SENDME cell, verify that our window
11374       has not grown too large. Fixes bug 26214; bugfix on svn
11375       r54 (pre-0.0.1).
11377   o Minor bugfixes (memory, correctness):
11378     - Fix a number of small memory leaks identified by coverity. Fixes
11379       bug 26467; bugfix on numerous Tor versions.
11381   o Minor bugfixes (logging):
11382     - Improve the log message when connection initiators fail to
11383       authenticate direct connections to relays. Fixes bug 26927; bugfix
11384       on 0.3.0.1-alpha.
11386   o Minor bugfixes (portability):
11387     - Avoid a compilation error in test_bwmgt.c on Solaris 10. Fixes bug
11388       26994; bugfix on 0.3.4.1-alpha.
11389     - Work around two different bugs in the OS X 10.10 and later SDKs
11390       that would prevent us from successfully targeting earlier versions
11391       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
11393   o Minor bugfixes (single onion services, Tor2web):
11394     - Log a protocol warning when single onion services or Tor2web
11395       clients fail to authenticate direct connections to relays. Fixes
11396       bug 26924; bugfix on 0.2.9.1-alpha.
11398   o Minor bugfixes (testing):
11399     - Disable core dumps in test_bt.sh, to avoid failures in "make
11400       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
11402   o Minor bugfixes (testing, compatibility):
11403     - When running the ntor_ref.py and hs_ntor_ref.py tests, make sure
11404       only to pass strings (rather than "bytes" objects) to the Python
11405       subprocess module. Python 3 on Windows seems to require this.
11406       Fixes bug 26535; bugfix on 0.2.5.5-alpha (for ntor_ref.py) and
11407       0.3.1.1-alpha (for hs_ntor_ref.py).
11409   o Minor bugfixes (v3 onion services):
11410     - Stop sending ed25519 link specifiers in v3 onion service introduce
11411       cells and descriptors, when the rendezvous or introduction point
11412       doesn't support ed25519 link authentication. Fixes bug 26627;
11413       bugfix on 0.3.2.4-alpha.
11416 Changes in version 0.3.4.5-rc - 2018-07-13
11417   Tor 0.3.4.5-rc moves to a new bridge authority, meaning people running
11418   bridge relays should upgrade.
11420   o Directory authority changes:
11421     - The "Bifroest" bridge authority has been retired; the new bridge
11422       authority is "Serge", and it is operated by George from the
11423       TorBSD project. Closes ticket 26771.
11426 Changes in version 0.3.3.9 - 2018-07-13
11427   Tor 0.3.3.9 moves to a new bridge authority, meaning people running
11428   bridge relays should upgrade.
11430   o Directory authority changes:
11431     - The "Bifroest" bridge authority has been retired; the new bridge
11432       authority is "Serge", and it is operated by George from the
11433       TorBSD project. Closes ticket 26771.
11436 Changes in version 0.3.2.11 - 2018-07-13
11437   Tor 0.3.2.11 moves to a new bridge authority, meaning people running
11438   bridge relays should upgrade. We also take this opportunity to backport
11439   other minor fixes.
11441   o Directory authority changes:
11442     - The "Bifroest" bridge authority has been retired; the new bridge
11443       authority is "Serge", and it is operated by George from the
11444       TorBSD project. Closes ticket 26771.
11446   o Directory authority changes (backport from 0.3.3.7):
11447     - Add an IPv6 address for the "dannenberg" directory authority.
11448       Closes ticket 26343.
11450   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
11451     - When directory authorities read a zero-byte bandwidth file, they
11452       would previously log a warning with the contents of an
11453       uninitialised buffer. They now log a warning about the empty file
11454       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
11456   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
11457     - Correctly detect when onion services get disabled after HUP. Fixes
11458       bug 25761; bugfix on 0.3.2.1.
11460   o Minor features (sandbox, backport from 0.3.3.4-alpha):
11461     - Explicitly permit the poll() system call when the Linux
11462       seccomp2-based sandbox is enabled: apparently, some versions of
11463       libc use poll() when calling getpwnam(). Closes ticket 25313.
11465   o Minor feature (continuous integration, backport from 0.3.3.5-rc):
11466     - Update the Travis CI configuration to use the stable Rust channel,
11467       now that we have decided to require that. Closes ticket 25714.
11469   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
11470     - Our .travis.yml configuration now includes support for testing the
11471       results of "make distcheck". (It's not uncommon for "make check"
11472       to pass but "make distcheck" to fail.) Closes ticket 25814.
11473     - Our Travis CI configuration now integrates with the Coveralls
11474       coverage analysis tool. Closes ticket 25818.
11476   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
11477     - Add several checks to detect whether Tor relays are uploading
11478       their descriptors without specifying why they regenerated them.
11479       Diagnostic for ticket 25686.
11481   o Minor features (compilation, backport from 0.3.4.4-rc):
11482     - When building Tor, prefer to use Python 3 over Python 2, and more
11483       recent (contemplated) versions over older ones. Closes
11484       ticket 26372.
11486   o Minor features (geoip):
11487     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
11488       Country database. Closes ticket 26674.
11490   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
11491     - Upon receiving a malformed connected cell, stop processing the
11492       cell immediately. Previously we would mark the connection for
11493       close, but continue processing the cell as if the connection were
11494       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
11496   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
11497     - Allow the nanosleep() system call, which glibc uses to implement
11498       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
11500   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
11501     - When running the hs_ntor_ref.py test, make sure only to pass
11502       strings (rather than "bytes" objects) to the Python subprocess
11503       module. Python 3 on Windows seems to require this. Fixes bug
11504       26535; bugfix on 0.3.1.1-alpha.
11505     - When running the ntor_ref.py test, make sure only to pass strings
11506       (rather than "bytes" objects) to the Python subprocess module.
11507       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
11508       on 0.2.5.5-alpha.
11510   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
11511     - Work around a change in OpenSSL 1.1.1 where return values that
11512       would previously indicate "no password" now indicate an empty
11513       password. Without this workaround, Tor instances running with
11514       OpenSSL 1.1.1 would accept descriptors that other Tor instances
11515       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
11517   o Minor bugfixes (documentation, backport from 0.3.3.5-rc):
11518     - Document that the PerConnBW{Rate,Burst} options will fall back to
11519       their corresponding consensus parameters only if those parameters
11520       are set. Previously we had claimed that these values would always
11521       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
11523   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
11524     - Fix a compilation warning on some versions of GCC when building
11525       code that calls routerinfo_get_my_routerinfo() twice, assuming
11526       that the second call will succeed if the first one did. Fixes bug
11527       26269; bugfix on 0.2.8.2-alpha.
11529   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
11530     - Don't consider Tor running as a client if the ControlPort is open,
11531       but no actual client ports are open. Fixes bug 26062; bugfix
11532       on 0.2.9.4-alpha.
11534   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
11535     - Prevent a possible out-of-bounds smartlist read in
11536       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
11538   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
11539     - Fix a very unlikely (impossible, we believe) null pointer
11540       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
11541       Coverity; this is CID 1430932.
11543   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
11544     - Fix a memory leak when a v3 onion service is configured and gets a
11545       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
11546     - When parsing the descriptor signature, look for the token plus an
11547       extra white-space at the end. This is more correct but also will
11548       allow us to support new fields that might start with "signature".
11549       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
11551   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
11552     - Relays now correctly block attempts to re-extend to the previous
11553       relay by Ed25519 identity. Previously they would warn in this
11554       case, but not actually reject the attempt. Fixes bug 26158; bugfix
11555       on 0.3.0.1-alpha.
11557   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
11558     - Avoid a crash when running with DirPort set but ORPort turned off.
11559       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
11561   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
11562     - Silence unused-const-variable warnings in zstd.h with some GCC
11563       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
11565   o Minor bugfixes (testing, backport from 0.3.3.4-alpha):
11566     - Avoid intermittent test failures due to a test that had relied on
11567       onion service introduction point creation finishing within 5
11568       seconds of real clock time. Fixes bug 25450; bugfix
11569       on 0.3.1.3-alpha.
11571   o Minor bugfixes (compilation, backport from 0.3.3.4-alpha):
11572     - Fix a C99 compliance issue in our configuration script that caused
11573       compilation issues when compiling Tor with certain versions of
11574       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
11576   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
11577     - Fix a number of small memory leaks identified by coverity. Fixes
11578       bug 26467; bugfix on numerous Tor versions.
11580   o Code simplification and refactoring (backport from 0.3.3.5-rc):
11581     - Move the list of default directory authorities to its own file.
11582       Closes ticket 24854. Patch by "beastr0".
11585 Changes in version 0.2.9.16 - 2018-07-13
11586   Tor 0.2.9.16 moves to a new bridge authority, meaning people running
11587   bridge relays should upgrade. We also take this opportunity to backport
11588   other minor fixes.
11590   o Directory authority changes:
11591     - The "Bifroest" bridge authority has been retired; the new bridge
11592       authority is "Serge", and it is operated by George from the
11593       TorBSD project. Closes ticket 26771.
11595   o Directory authority changes (backport from 0.3.3.7):
11596     - Add an IPv6 address for the "dannenberg" directory authority.
11597       Closes ticket 26343.
11599   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
11600     - When directory authorities read a zero-byte bandwidth file, they
11601       would previously log a warning with the contents of an
11602       uninitialised buffer. They now log a warning about the empty file
11603       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
11605   o Minor features (sandbox, backport from 0.3.3.4-alpha):
11606     - Explicitly permit the poll() system call when the Linux
11607       seccomp2-based sandbox is enabled: apparently, some versions of
11608       libc use poll() when calling getpwnam(). Closes ticket 25313.
11610   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
11611     - Our .travis.yml configuration now includes support for testing the
11612       results of "make distcheck". (It's not uncommon for "make check"
11613       to pass but "make distcheck" to fail.) Closes ticket 25814.
11614     - Our Travis CI configuration now integrates with the Coveralls
11615       coverage analysis tool. Closes ticket 25818.
11617   o Minor features (compilation, backport from 0.3.4.4-rc):
11618     - When building Tor, prefer to use Python 3 over Python 2, and more
11619       recent (contemplated) versions over older ones. Closes
11620       ticket 26372.
11622   o Minor features (geoip):
11623     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
11624       Country database. Closes ticket 26674.
11626   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
11627     - Upon receiving a malformed connected cell, stop processing the
11628       cell immediately. Previously we would mark the connection for
11629       close, but continue processing the cell as if the connection were
11630       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
11632   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
11633     - Allow the nanosleep() system call, which glibc uses to implement
11634       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
11636   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
11637     - When running the ntor_ref.py test, make sure only to pass strings
11638       (rather than "bytes" objects) to the Python subprocess module.
11639       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
11640       on 0.2.5.5-alpha.
11642   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
11643     - Work around a change in OpenSSL 1.1.1 where return values that
11644       would previously indicate "no password" now indicate an empty
11645       password. Without this workaround, Tor instances running with
11646       OpenSSL 1.1.1 would accept descriptors that other Tor instances
11647       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
11649   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
11650     - Fix a compilation warning on some versions of GCC when building
11651       code that calls routerinfo_get_my_routerinfo() twice, assuming
11652       that the second call will succeed if the first one did. Fixes bug
11653       26269; bugfix on 0.2.8.2-alpha.
11655   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
11656     - Don't consider Tor running as a client if the ControlPort is open,
11657       but no actual client ports are open. Fixes bug 26062; bugfix
11658       on 0.2.9.4-alpha.
11660   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
11661     - Prevent a possible out-of-bounds smartlist read in
11662       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
11664   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
11665     - Fix a very unlikely (impossible, we believe) null pointer
11666       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
11667       Coverity; this is CID 1430932.
11669   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
11670     - Fix a number of small memory leaks identified by coverity. Fixes
11671       bug 26467; bugfix on numerous Tor versions.
11673   o Code simplification and refactoring (backport from 0.3.3.5-rc):
11674     - Move the list of default directory authorities to its own file.
11675       Closes ticket 24854. Patch by "beastr0".
11678 Changes in version 0.3.4.4-rc - 2018-07-09
11679   Tor 0.3.4.4-rc fixes several small compilation, portability, and
11680   correctness issues in previous versions of Tor. This version is a
11681   release candidate: if no serious bugs are found, we expect that the
11682   stable 0.3.4 release will be (almost) the same as this release.
11684   o Minor features (compilation):
11685     - When building Tor, prefer to use Python 3 over Python 2, and more
11686       recent (contemplated) versions over older ones. Closes
11687       ticket 26372.
11689   o Minor features (geoip):
11690     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
11691       Country database. Closes ticket 26674.
11693   o Minor features (Rust, portability):
11694     - Rust cross-compilation is now supported. Closes ticket 25895.
11696   o Minor bugfixes (compilation):
11697     - Fix a compilation warning on some versions of GCC when building
11698       code that calls routerinfo_get_my_routerinfo() twice, assuming
11699       that the second call will succeed if the first one did. Fixes bug
11700       26269; bugfix on 0.2.8.2-alpha.
11702   o Minor bugfixes (control port):
11703     - Report the port correctly when a port is configured to bind to
11704       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
11705     - Handle the HSADDRESS= argument to the HSPOST command properly.
11706       (Previously, this argument was misparsed and thus ignored.) Fixes
11707       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
11709   o Minor bugfixes (correctness, flow control):
11710     - Upon receiving a stream-level SENDME cell, verify that our window
11711       has not grown too large. Fixes bug 26214; bugfix on svn
11712       r54 (pre-0.0.1).
11714   o Minor bugfixes (memory, correctness):
11715     - Fix a number of small memory leaks identified by coverity. Fixes
11716       bug 26467; bugfix on numerous Tor versions.
11718   o Minor bugfixes (testing, compatibility):
11719     - When running the hs_ntor_ref.py test, make sure only to pass
11720       strings (rather than "bytes" objects) to the Python subprocess
11721       module. Python 3 on Windows seems to require this. Fixes bug
11722       26535; bugfix on 0.3.1.1-alpha.
11723     - When running the ntor_ref.py test, make sure only to pass strings
11724       (rather than "bytes" objects) to the Python subprocess module.
11725       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
11726       on 0.2.5.5-alpha.
11729 Changes in version 0.3.3.8 - 2018-07-09
11730   Tor 0.3.3.8 backports several changes from the 0.3.4.x series, including
11731   fixes for a memory leak affecting directory authorities.
11733   o Major bugfixes (directory authority, backport from 0.3.4.3-alpha):
11734     - Stop leaking memory on directory authorities when planning to
11735       vote. This bug was crashing authorities by exhausting their
11736       memory. Fixes bug 26435; bugfix on 0.3.3.6.
11738   o Major bugfixes (rust, testing, backport from 0.3.4.3-alpha):
11739     - Make sure that failing tests in Rust will actually cause the build
11740       to fail: previously, they were ignored. Fixes bug 26258; bugfix
11741       on 0.3.3.4-alpha.
11743   o Minor features (compilation, backport from 0.3.4.4-rc):
11744     - When building Tor, prefer to use Python 3 over Python 2, and more
11745       recent (contemplated) versions over older ones. Closes
11746       ticket 26372.
11748   o Minor features (geoip):
11749     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
11750       Country database. Closes ticket 26674.
11752   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
11753     - Add several checks to detect whether Tor relays are uploading
11754       their descriptors without specifying why they regenerated them.
11755       Diagnostic for ticket 25686.
11757   o Minor bugfixes (circuit path selection, backport from 0.3.4.1-alpha):
11758     - Don't count path selection failures as circuit build failures.
11759       This change should eliminate cases where Tor blames its guard or
11760       the network for situations like insufficient microdescriptors
11761       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
11762       on 0.3.3.1-alpha.
11764   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
11765     - Fix a compilation warning on some versions of GCC when building
11766       code that calls routerinfo_get_my_routerinfo() twice, assuming
11767       that the second call will succeed if the first one did. Fixes bug
11768       26269; bugfix on 0.2.8.2-alpha.
11770   o Minor bugfixes (control port, backport from 0.3.4.4-rc):
11771     - Handle the HSADDRESS= argument to the HSPOST command properly.
11772       (Previously, this argument was misparsed and thus ignored.) Fixes
11773       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
11775   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
11776     - Fix a number of small memory leaks identified by coverity. Fixes
11777       bug 26467; bugfix on numerous Tor versions.
11779   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
11780     - Relays now correctly block attempts to re-extend to the previous
11781       relay by Ed25519 identity. Previously they would warn in this
11782       case, but not actually reject the attempt. Fixes bug 26158; bugfix
11783       on 0.3.0.1-alpha.
11785   o Minor bugfixes (restart-in-process, backport from 0.3.4.1-alpha):
11786     - When shutting down, Tor now clears all the flags in the control.c
11787       module. This should prevent a bug where authentication cookies are
11788       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
11790   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
11791     - When running the hs_ntor_ref.py test, make sure only to pass
11792       strings (rather than "bytes" objects) to the Python subprocess
11793       module. Python 3 on Windows seems to require this. Fixes bug
11794       26535; bugfix on 0.3.1.1-alpha.
11795     - When running the ntor_ref.py test, make sure only to pass strings
11796       (rather than "bytes" objects) to the Python subprocess module.
11797       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
11798       on 0.2.5.5-alpha.
11801 Changes in version 0.3.4.3-alpha - 2018-06-26
11802   Tor 0.3.4.3-alpha fixes several bugs in earlier versions, including
11803   one that was causing stability issues on directory authorities.
11805   o Major bugfixes (directory authority):
11806     - Stop leaking memory on directory authorities when planning to
11807       vote. This bug was crashing authorities by exhausting their
11808       memory. Fixes bug 26435; bugfix on 0.3.3.6.
11810   o Major bugfixes (rust, testing):
11811     - Make sure that failing tests in Rust will actually cause the build
11812       to fail: previously, they were ignored. Fixes bug 26258; bugfix
11813       on 0.3.3.4-alpha.
11815   o Minor feature (directory authorities):
11816     - Stop warning about incomplete bw lines before the first complete
11817       bw line has been found, so that additional header lines can be
11818       ignored. Fixes bug 25960; bugfix on 0.2.2.1-alpha
11820   o Minor features (relay, diagnostic):
11821     - Add several checks to detect whether Tor relays are uploading
11822       their descriptors without specifying why they regenerated them.
11823       Diagnostic for ticket 25686.
11825   o Minor features (unit tests):
11826     - Test complete bandwidth measurements files, and test that
11827       incomplete bandwidth lines only give warnings when the end of the
11828       header has not been detected. Fixes bug 25947; bugfix
11829       on 0.2.2.1-alpha
11831   o Minor bugfixes (compilation):
11832     - Refrain from compiling unit testing related object files when
11833       --disable-unittests is set to configure script. Fixes bug 24891;
11834       bugfix on 0.2.5.1-alpha.
11835     - When linking the libtor_testing.a library, only include the
11836       dirauth object files once. Previously, they were getting added
11837       twice. Fixes bug 26402; bugfix on 0.3.4.1-alpha.
11838     - The --enable-fatal-warnings flag now affects Rust code as well.
11839       Closes ticket 26245.
11841   o Minor bugfixes (onion services):
11842     - Recompute some consensus information after detecting a clock jump,
11843       or after transitioning from a non-live consensus to a live
11844       consensus. We do this to avoid having an outdated state, and
11845       miscalculating the index for next-generation onion services. Fixes
11846       bug 24977; bugfix on 0.3.2.1-alpha.
11848   o Minor bugfixes (relay):
11849     - Relays now correctly block attempts to re-extend to the previous
11850       relay by Ed25519 identity. Previously they would warn in this
11851       case, but not actually reject the attempt. Fixes bug 26158; bugfix
11852       on 0.3.0.1-alpha.
11854   o Minor bugfixes (testing):
11855     - Fix compilation of the doctests in the Rust crypto crate. Fixes
11856       bug 26415; bugfix on 0.3.4.1-alpha.
11857     - Instead of trying to read the geoip configuration files from
11858       within the unit tests, instead create our own ersatz files with
11859       just enough geoip data in the format we expect. Trying to read
11860       from the source directory created problems on Windows with mingw,
11861       where the build system's paths are not the same as the platform's
11862       paths. Fixes bug 25787; bugfix on 0.3.4.1-alpha.
11863     - Refrain from trying to get an item from an empty smartlist in
11864       test_bridges_clear_bridge_list. Set DEBUG_SMARTLIST in unit tests
11865       to catch improper smartlist usage. Furthermore, enable
11866       DEBUG_SMARTLIST globally when build is configured with fragile
11867       hardening. Fixes bug 26196; bugfix on 0.3.4.1-alpha.
11870 Changes in version 0.3.3.7 - 2018-06-12
11871   Tor 0.3.3.7 backports several changes from the 0.3.4.x series, including
11872   fixes for bugs affecting compatibility and stability.
11874   o Directory authority changes:
11875     - Add an IPv6 address for the "dannenberg" directory authority.
11876       Closes ticket 26343.
11878   o Minor features (geoip):
11879     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
11880       Country database. Closes ticket 26351.
11882   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
11883     - Work around a change in OpenSSL 1.1.1 where return values that
11884       would previously indicate "no password" now indicate an empty
11885       password. Without this workaround, Tor instances running with
11886       OpenSSL 1.1.1 would accept descriptors that other Tor instances
11887       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
11889   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
11890     - Silence unused-const-variable warnings in zstd.h with some GCC
11891       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
11893   o Minor bugfixes (controller, backport from 0.3.4.2-alpha):
11894     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
11895       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
11896       miscounting the total number of circuits for these field values.)
11897       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
11899   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
11900     - Prevent a possible out-of-bounds smartlist read in
11901       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
11903   o Minor bugfixes (path selection, backport from 0.3.4.1-alpha):
11904     - Only select relays when they have the descriptors we prefer to use
11905       for them. This change fixes a bug where we could select a relay
11906       because it had _some_ descriptor, but reject it later with a
11907       nonfatal assertion error because it didn't have the exact one we
11908       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
11911 Changes in version 0.3.4.2-alpha - 2018-06-12
11912   Tor 0.3.4.2-alpha fixes several minor bugs in the previous alpha
11913   release, and forward-ports an authority-only security fix from 0.3.3.6.
11915   o Directory authority changes:
11916     - Add an IPv6 address for the "dannenberg" directory authority.
11917       Closes ticket 26343.
11919   o Major bugfixes (security, directory authority, denial-of-service, also in 0.3.3.6):
11920     - Fix a bug that could have allowed an attacker to force a directory
11921       authority to use up all its RAM by passing it a maliciously
11922       crafted protocol versions string. Fixes bug 25517; bugfix on
11923       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
11925   o Minor features (continuous integration):
11926     - Add the necessary configuration files for continuous integration
11927       testing on Windows, via the Appveyor platform. Closes ticket
11928       25549. Patches from Marcin Cieślak and Isis Lovecruft.
11930   o Minor features (geoip):
11931     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
11932       Country database. Closes ticket 26351.
11934   o Minor bugfixes (compatibility, openssl):
11935     - Work around a change in OpenSSL 1.1.1 where return values that
11936       would previously indicate "no password" now indicate an empty
11937       password. Without this workaround, Tor instances running with
11938       OpenSSL 1.1.1 would accept descriptors that other Tor instances
11939       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
11941   o Minor bugfixes (compilation):
11942     - Silence unused-const-variable warnings in zstd.h with some GCC
11943       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
11944     - Fix compilation when using OpenSSL 1.1.0 with the "no-deprecated"
11945       flag enabled. Fixes bug 26156; bugfix on 0.3.4.1-alpha.
11946     - Avoid a compiler warning when casting the return value of
11947       smartlist_len() to double with DEBUG_SMARTLIST enabled. Fixes bug
11948       26283; bugfix on 0.2.4.10-alpha.
11950   o Minor bugfixes (control port):
11951     - Do not count 0-length RELAY_COMMAND_DATA cells as valid data in
11952       CIRC_BW events. Previously, such cells were counted entirely in
11953       the OVERHEAD field. Now they are not. Fixes bug 26259; bugfix
11954       on 0.3.4.1-alpha.
11956   o Minor bugfixes (controller):
11957     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
11958       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
11959       miscounting the total number of circuits for these field values.)
11960       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
11962   o Minor bugfixes (hardening):
11963     - Prevent a possible out-of-bounds smartlist read in
11964       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
11966   o Minor bugfixes (onion services):
11967     - Fix a bug that blocked the creation of ephemeral v3 onion
11968       services. Fixes bug 25939; bugfix on 0.3.4.1-alpha.
11970   o Minor bugfixes (test coverage tools):
11971     - Update our "cov-diff" script to handle output from the latest
11972       version of gcov, and to remove extraneous timestamp information
11973       from its output. Fixes bugs 26101 and 26102; bugfix
11974       on 0.2.5.1-alpha.
11977 Changes in version 0.3.3.6 - 2018-05-22
11978   Tor 0.3.3.6 is the first stable release in the 0.3.3 series. It
11979   backports several important fixes from the 0.3.4.1-alpha.
11981   The Tor 0.3.3 series includes controller support and other
11982   improvements for v3 onion services, official support for embedding Tor
11983   within other applications, and our first non-trivial module written in
11984   the Rust programming language. (Rust is still not enabled by default
11985   when building Tor.) And as usual, there are numerous other smaller
11986   bugfixes, features, and improvements.
11988   Below are the changes since 0.3.3.5-rc. For a list of all changes
11989   since 0.3.2.10, see the ReleaseNotes file.
11991   o Major bugfixes (directory authorities, security, backport from 0.3.4.1-alpha):
11992     - When directory authorities read a zero-byte bandwidth file, they
11993       would previously log a warning with the contents of an
11994       uninitialised buffer. They now log a warning about the empty file
11995       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
11997   o Major bugfixes (security, directory authority, denial-of-service):
11998     - Fix a bug that could have allowed an attacker to force a directory
11999       authority to use up all its RAM by passing it a maliciously
12000       crafted protocol versions string. Fixes bug 25517; bugfix on
12001       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
12003   o Major bugfixes (crash, backport from 0.3.4.1-alpha):
12004     - Avoid a rare assertion failure in the circuit build timeout code
12005       if we fail to allow any circuits to actually complete. Fixes bug
12006       25733; bugfix on 0.2.2.2-alpha.
12008   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
12009     - Avoid a crash when testing router reachability on a router that
12010       could have an ed25519 ID, but which does not. Fixes bug 25415;
12011       bugfix on 0.3.3.2-alpha.
12013   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
12014     - Correctly detect when onion services get disabled after HUP. Fixes
12015       bug 25761; bugfix on 0.3.2.1.
12017   o Major bugfixes (relay, denial of service, backport from 0.3.4.1-alpha):
12018     - Impose a limit on circuit cell queue size. The limit can be
12019       controlled by a consensus parameter. Fixes bug 25226; bugfix
12020       on 0.2.4.14-alpha.
12022   o Minor features (compatibility, backport from 0.3.4.1-alpha):
12023     - Avoid some compilation warnings with recent versions of LibreSSL.
12024       Closes ticket 26006.
12026   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
12027     - Our .travis.yml configuration now includes support for testing the
12028       results of "make distcheck". (It's not uncommon for "make check"
12029       to pass but "make distcheck" to fail.) Closes ticket 25814.
12030     - Our Travis CI configuration now integrates with the Coveralls
12031       coverage analysis tool. Closes ticket 25818.
12033   o Minor features (geoip):
12034     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
12035       database. Closes ticket 26104.
12037   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
12038     - Don't consider Tor running as a client if the ControlPort is open,
12039       but no actual client ports are open. Fixes bug 26062; bugfix
12040       on 0.2.9.4-alpha.
12042   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
12043     - Upon receiving a malformed connected cell, stop processing the
12044       cell immediately. Previously we would mark the connection for
12045       close, but continue processing the cell as if the connection were
12046       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
12048   o Minor bugfixes (documentation, backport from 0.3.4.1-alpha):
12049     - Stop saying in the manual that clients cache ipv4 dns answers from
12050       exit relays. We haven't used them since 0.2.6.3-alpha, and in
12051       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
12052       we forgot to say so in the man page. Fixes bug 26052; bugfix
12053       on 0.3.2.6-alpha.
12055   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
12056     - Allow the nanosleep() system call, which glibc uses to implement
12057       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
12059   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
12060     - Fix a memory leak when a v3 onion service is configured and gets a
12061       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
12062     - When parsing the descriptor signature, look for the token plus an
12063       extra white-space at the end. This is more correct but also will
12064       allow us to support new fields that might start with "signature".
12065       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
12067   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
12068     - Avoid a crash when running with DirPort set but ORPort turned off.
12069       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
12071   o Documentation (backport from 0.3.4.1-alpha):
12072     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
12073       ticket 25857. Patch from "CTassisF".
12076 Changes in version 0.3.4.1-alpha - 2018-05-17
12077   Tor 0.3.4.1-alpha is the first release in the 0.3.4.x series. It
12078   includes refactoring to begin reducing Tor's binary size and idle CPU
12079   usage on mobile, along with prep work for new bandwidth scanners,
12080   improvements to the experimental "vanguards" feature, and numerous
12081   other small features and bugfixes.
12083   o New system requirements:
12084     - Tor no longer tries to support old operating systems without
12085       mmap() or some local equivalent. Apparently, compilation on such
12086       systems has been broken for some time, without anybody noticing or
12087       complaining. Closes ticket 25398.
12089   o Major feature (directory authority, modularization):
12090     - The directory authority subsystem has been modularized. The code
12091       is now located in src/or/dirauth/, and is compiled in by default.
12092       To disable the module, the configure option
12093       --disable-module-dirauth has been added. This module may be
12094       disabled by default in some future release. Closes ticket 25610.
12096   o Major features (main loop, CPU usage):
12097     - When Tor is disabled (via DisableNetwork or via hibernation), it
12098       no longer needs to run any per-second events. This change should
12099       make it easier for mobile applications to disable Tor while the
12100       device is sleeping, or Tor is not running. Closes ticket 26063.
12101     - Tor no longer enables all of its periodic events by default.
12102       Previously, Tor would enable all possible main loop events,
12103       regardless of whether it needed them. Furthermore, many of these
12104       events are now disabled with Tor is hibernating or DisableNetwork
12105       is set. This is a big step towards reducing client CPU usage by
12106       reducing the amount of wake-ups the daemon does. Closes ticket
12107       25376 and 25762.
12108     - The bandwidth-limitation logic has been refactored so that
12109       bandwidth calculations are performed on-demand, rather than every
12110       TokenBucketRefillInterval milliseconds. This change should improve
12111       the granularity of our bandwidth calculations, and limit the
12112       number of times that the Tor process needs to wake up when it is
12113       idle. Closes ticket 25373.
12114     - Move responsibility for many operations from a once-per-second
12115       callback to a callback that is only scheduled as needed. Moving
12116       this functionality has allowed us to disable the callback when
12117       Tor's network is disabled. Once enough items are removed from our
12118       once-per-second callback, we can eliminate it entirely to conserve
12119       CPU when idle. The functionality removed includes: closing
12120       connections, circuits, and channels (ticket 25932); consensus
12121       voting (25937); flushing log callbacks (25951); honoring delayed
12122       SIGNEWNYM requests (25949); rescanning the consensus cache
12123       (25931); saving the state file to disk (25948); warning relay
12124       operators about unreachable ports (25952); and keeping track of
12125       Tor's uptime (26009).
12127   o Major bugfixes (directory authorities, security):
12128     - When directory authorities read a zero-byte bandwidth file, they
12129       would previously log a warning with the contents of an
12130       uninitialised buffer. They now log a warning about the empty file
12131       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
12133   o Major bugfixes (crash):
12134     - Avoid a rare assertion failure in the circuit build timeout code
12135       if we fail to allow any circuits to actually complete. Fixes bug
12136       25733; bugfix on 0.2.2.2-alpha.
12138   o Major bugfixes (directory authority):
12139     - Avoid a crash when testing router reachability on a router that
12140       could have an ed25519 ID, but which does not. Fixes bug 25415;
12141       bugfix on 0.3.3.2-alpha.
12143   o Major bugfixes (onion service):
12144     - Correctly detect when onion services get disabled after HUP. Fixes
12145       bug 25761; bugfix on 0.3.2.1.
12147   o Major bugfixes (protover, voting):
12148     - Revise Rust implementation of protover to use a more memory-
12149       efficient voting algorithm and corresponding data structures, thus
12150       avoiding a potential (but small impact) DoS attack where specially
12151       crafted protocol strings would expand to several potential
12152       megabytes in memory. In the process, several portions of code were
12153       revised to be methods on new, custom types, rather than functions
12154       taking interchangeable types, thus increasing type safety of the
12155       module. Custom error types and handling were added as well, in
12156       order to facilitate better error dismissal/handling in outside
12157       crates and avoid mistakenly passing an internal error string to C
12158       over the FFI boundary. Many tests were added, and some previous
12159       differences between the C and Rust implementations have been
12160       remedied. Fixes bug 24031; bugfix on 0.3.3.1-alpha.
12162   o Major bugfixes (relay, denial of service):
12163     - Impose a limit on circuit cell queue size. The limit can be
12164       controlled by a consensus parameter. Fixes bug 25226; bugfix
12165       on 0.2.4.14-alpha.
12167   o Minor features (accounting):
12168     - When Tor becomes dormant, it now uses a scheduled event to wake up
12169       at the right time. Previously, we would use the per-second timer
12170       to check whether to wake up, but we no longer have any per-second
12171       timers enabled when the network is disabled. Closes ticket 26064.
12173   o Minor features (code quality):
12174     - Add optional spell-checking for the Tor codebase, using the
12175       "misspell" program. To use this feature, run "make check-typos".
12176       Closes ticket 25024.
12178   o Minor features (compatibility):
12179     - Tor now detects versions of OpenSSL 1.1.0 and later compiled with
12180       the no-deprecated option, and builds correctly with them. Closes
12181       tickets 19429, 19981, and 25353.
12182     - Avoid some compilation warnings with recent versions of LibreSSL.
12183       Closes ticket 26006.
12185   o Minor features (compression, zstd):
12186     - When running with zstd, Tor now considers using advanced functions
12187       that the zstd maintainers have labeled as potentially unstable. To
12188       prevent breakage, Tor will only use this functionality when the
12189       runtime version of the zstd library matches the version with which
12190       Tor was compiled. Closes ticket 25162.
12192   o Minor features (configuration):
12193     - The "DownloadSchedule" options have been renamed to end with
12194       "DownloadInitialDelay". The old names are still allowed, but will
12195       produce a warning. Comma-separated lists are still permitted for
12196       these options, but all values after the first are ignored (as they
12197       have been since 0.2.9). Closes ticket 23354.
12199   o Minor features (continuous integration):
12200     - Our .travis.yml configuration now includes support for testing the
12201       results of "make distcheck". (It's not uncommon for "make check"
12202       to pass but "make distcheck" to fail.) Closes ticket 25814.
12203     - Our Travis CI configuration now integrates with the Coveralls
12204       coverage analysis tool. Closes ticket 25818.
12206   o Minor features (control port):
12207     - Introduce GETINFO "current-time/{local,utc}" to return the local
12208       and UTC times respectively in ISO format. This helps a controller
12209       like Tor Browser detect a time-related error. Closes ticket 25511.
12210       Patch by Neel Chauhan.
12211     - Introduce new fields to the CIRC_BW event. There are two new
12212       fields in each of the read and written directions. The DELIVERED
12213       fields report the total valid data on the circuit, as measured by
12214       the payload sizes of verified and error-checked relay command
12215       cells. The OVERHEAD fields report the total unused bytes in each
12216       of these cells. Closes ticket 25903.
12218   o Minor features (directory authority):
12219     - Directory authorities now open their key-pinning files as O_SYNC,
12220       to limit their chances of accidentally writing partial lines.
12221       Closes ticket 23909.
12223   o Minor features (directory authority, forward compatibility):
12224     - Make the lines of the measured bandwidth file able to contain
12225       their entries in any order. Previously, the node_id entry needed
12226       to come first. Closes ticket 26004.
12228   o Minor features (entry guards):
12229     - Introduce a new torrc option NumPrimaryGuards for controlling the
12230       number of primary guards. Closes ticket 25843.
12232   o Minor features (geoip):
12233     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
12234       database. Closes ticket 26104.
12236   o Minor features (performance):
12237     - Avoid a needless call to malloc() when processing an incoming
12238       relay cell. Closes ticket 24914.
12239     - Make our timing-wheel code run a tiny bit faster on 32-bit
12240       platforms, by preferring 32-bit math to 64-bit. Closes
12241       ticket 24688.
12242     - Avoid a needless malloc()/free() pair every time we handle an ntor
12243       handshake. Closes ticket 25150.
12245   o Minor features (testing):
12246     - Add a unit test for voting_schedule_get_start_of_next_interval().
12247       Closes ticket 26014, and helps make unit test coverage
12248       more deterministic.
12249     - A new unittests module specifically for testing the functions in
12250       the (new-ish) bridges.c module has been created with new
12251       unittests, raising the code coverage percentages. Closes 25425.
12252     - We now have improved testing for addressmap_get_virtual_address()
12253       function. This should improve our test coverage, and make our test
12254       coverage more deterministic. Closes ticket 25993.
12256   o Minor features (timekeeping, circuit scheduling):
12257     - When keeping track of how busy each circuit have been recently on
12258       a given connection, use coarse-grained monotonic timers rather
12259       than gettimeofday(). This change should marginally increase
12260       accuracy and performance. Implements part of ticket 25927.
12262   o Minor bugfixes (bandwidth management):
12263     - Consider ourselves "low on write bandwidth" if we have exhausted
12264       our write bandwidth some time in the last second. This was the
12265       documented behavior before, but the actual behavior was to change
12266       this value every TokenBucketRefillInterval. Fixes bug 25828;
12267       bugfix on 0.2.3.5-alpha.
12269   o Minor bugfixes (C correctness):
12270     - Add a missing lock acquisition in the shutdown code of the control
12271       subsystem. Fixes bug 25675; bugfix on 0.2.7.3-rc. Found by
12272       Coverity; this is CID 1433643.
12274   o Minor bugfixes (circuit path selection):
12275     - Don't count path selection failures as circuit build failures.
12276       This change should eliminate cases where Tor blames its guard or
12277       the network for situations like insufficient microdescriptors
12278       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
12279       on 0.3.3.1-alpha.
12281   o Minor bugfixes (client):
12282     - Don't consider Tor running as a client if the ControlPort is open,
12283       but no actual client ports are open. Fixes bug 26062; bugfix
12284       on 0.2.9.4-alpha.
12286   o Minor bugfixes (code style):
12287     - Fixed multiple includes of transports.h in src/or/connection.c
12288       Fixes bug 25261; bugfix on 0.2.5.1-alpha.
12289     - Remove the unused variable n_possible from the function
12290       channel_get_for_extend(). Fixes bug 25645; bugfix on 0.2.4.4-alpha
12292   o Minor bugfixes (control interface):
12293     - Respond with more human-readable error messages to GETINFO exit-
12294       policy/* requests. Also, let controller know if an error is
12295       transient (response code 551) or not (response code 552). Fixes
12296       bug 25852; bugfix on 0.2.8.1-alpha.
12298   o Minor bugfixes (controller):
12299     - Make CIRC_BW event reflect the total of all data sent on a
12300       circuit, including padding and dropped cells. Also fix a mis-
12301       counting bug when STREAM_BW events were enabled. Fixes bug 25400;
12302       bugfix on 0.2.5.2-alpha.
12304   o Minor bugfixes (correctness, client):
12305     - Upon receiving a malformed connected cell, stop processing the cell
12306       immediately.  Previously we would mark the connection for close, but
12307       continue processing the cell as if the connection were open. Fixes bug
12308       26072; bugfix on 0.2.4.7-alpha.
12310   o Minor bugfixes (directory client):
12311     - When unverified-consensus is verified, rename it to cached-
12312       consenus. Fixes bug 4187; bugfix on 0.2.0.3-alpha.
12313     - Fixed launching a certificate fetch always during the scheduled
12314       periodic consensus fetch by fetching only in those cases when
12315       consensus are waiting for certs. Fixes bug 24740; bugfix
12316       on 0.2.9.1-alpha.
12318   o Minor bugfixes (documentation):
12319     - Stop saying in the manual that clients cache ipv4 dns answers from
12320       exit relays. We haven't used them since 0.2.6.3-alpha, and in
12321       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
12322       we forgot to say so in the man page. Fixes bug 26052; bugfix
12323       on 0.3.2.6-alpha.
12325   o Minor bugfixes (error reporting):
12326     - Improve tolerance for directory authorities with skewed clocks.
12327       Previously, an authority with a clock more than 60 seconds ahead
12328       could cause a client with a correct clock to warn that the
12329       client's clock was behind. Now the clocks of a majority of
12330       directory authorities have to be ahead of the client before this
12331       warning will occur. Fixes bug 25756; bugfix on 0.2.2.25-alpha.
12333   o Minor bugfixes (Linux seccomp2 sandbox):
12334     - Allow the nanosleep() system call, which glibc uses to implement
12335       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
12337   o Minor bugfixes (onion service):
12338     - Fix a memory leak when a v3 onion service is configured and gets a
12339       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
12340     - When parsing the descriptor signature, look for the token plus an
12341       extra white-space at the end. This is more correct but also will
12342       allow us to support new fields that might start with "signature".
12343       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
12345   o Minor bugfixes (path selection):
12346     - Only select relays when they have the descriptors we prefer to use
12347       for them. This change fixes a bug where we could select a relay
12348       because it had _some_ descriptor, but reject it later with a
12349       nonfatal assertion error because it didn't have the exact one we
12350       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
12352   o Minor bugfixes (portability):
12353     - Do not align mmap length, as it is not required by POSIX, and the
12354       getpagesize function is deprecated. Fixes bug 25399; bugfix
12355       on 0.1.1.23.
12357   o Minor bugfixes (portability, FreeBSD):
12358     - In have_enough_mem_for_dircache(), the variable DIRCACHE_MIN_MEM_MB
12359       does not stringify on FreeBSD, so we switch to tor_asprintf().
12360       Fixes bug 20887; bugfix on 0.2.8.1-alpha. Patch by Neel Chauhan.
12362   o Minor bugfixes (relay statistics):
12363     - When a relay is collecting internal statistics about how many
12364       create cell requests it has seen of each type, accurately count
12365       the requests from relays that temporarily fall out of the
12366       consensus. (To be extra conservative, we were already ignoring
12367       requests from clients in our counts, and we continue ignoring them
12368       here.) Fixes bug 24910; bugfix on 0.2.4.17-rc.
12370   o Minor bugfixes (relay, crash):
12371     - Avoid a crash when running with DirPort set but ORPort turned off.
12372       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
12374   o Minor bugfixes (restart-in-process):
12375     - When shutting down, Tor now clears all the flags in the control.c
12376       module. This should prevent a bug where authentication cookies are
12377       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
12379   o Minor bugfixes (testing):
12380     - When testing workqueue event-cancellation, make sure that we
12381       actually cancel an event, and that cancel each event with equal
12382       probability. (It was previously possible, though extremely
12383       unlikely, for our event-canceling test not to cancel any events.)
12384       Fixes bug 26008; bugfix on 0.2.6.3-alpha.
12385     - Repeat part of the test in test_client_pick_intro() a number of
12386       times, to give it consistent coverage. Fixes bug 25996; bugfix
12387       on 0.3.2.1-alpha.
12388     - Remove randomness from the hs_common/responsible_hsdirs test, so
12389       that it always takes the same path through the function it tests.
12390       Fixes bug 25997; bugfix on 0.3.2.1-alpha.
12391     - Change the behavior of the "channel/outbound" test so that it
12392       never causes a 10-second rollover for the EWMA circuitmux code.
12393       Previously, this behavior would happen randomly, and result in
12394       fluctuating test coverage. Fixes bug 25994; bugfix
12395       on 0.3.3.1-alpha.
12396     - Use X509_new() to allocate certificates that will be freed later
12397       with X509_free(). Previously, some parts of the unit tests had
12398       used tor_malloc_zero(), which is incorrect, and which caused test
12399       failures on Windows when they were built with extra hardening.
12400       Fixes bugs 25943 and 25944; bugfix on 0.2.8.1-alpha. Patch by
12401       Marcin Cieślak.
12402     - While running the circuit_timeout test, fix the PRNG to a
12403       deterministic AES stream, so that the test coverage from this test
12404       will itself be deterministic. Fixes bug 25995; bugfix
12405       on 0.2.2.2-alpha.
12407   o Minor bugfixes (vanguards):
12408     - Allow the last hop in a vanguard circuit to be the same as our
12409       first, to prevent the adversary from influencing guard node choice
12410       by choice of last hop. Also prevent the creation of A - B - A
12411       paths, or A - A paths, which are forbidden by relays. Fixes bug
12412       25870; bugfix on 0.3.3.1-alpha.
12414   o Code simplification and refactoring:
12415     - Remove duplicate code in parse_{c,s}method_line and bootstrap
12416       their functionalities into a single function. Fixes bug 6236;
12417       bugfix on 0.2.3.6-alpha.
12418     - We remove the PortForwarding and PortForwardingHelper options,
12419       related functions, and the port_forwarding tests. These options
12420       were used by the now-deprecated Vidalia to help ordinary users
12421       become Tor relays or bridges. Closes ticket 25409. Patch by
12422       Neel Chauhan.
12423     - In order to make the OR and dir checking function in router.c less
12424       confusing we renamed some functions and
12425       consider_testing_reachability() has been split into
12426       router_should_check_reachability() and
12427       router_do_reachability_checks(). Also we improved the documentation
12428       in some functions. Closes ticket 18918.
12429     - Initial work to isolate Libevent usage to a handful of modules in
12430       our codebase, to simplify our call structure, and so that we can
12431       more easily change event loops in the future if needed. Closes
12432       ticket 23750.
12433     - Introduce a function to call getsockname() and return tor_addr_t,
12434       to save a little complexity throughout the codebase. Closes
12435       ticket 18105.
12436     - Make hsdir_index in node_t a hsdir_index_t rather than a pointer
12437       as hsdir_index is always present. Also, we move hsdir_index_t into
12438       or.h. Closes ticket 23094. Patch by Neel Chauhan.
12439     - Merge functions used for describing nodes and suppress the
12440       functions that do not allocate memory for the output buffer
12441       string. NODE_DESC_BUF_LEN constant and format_node_description()
12442       function cannot be used externally from router.c module anymore.
12443       Closes ticket 25432. Patch by valentecaio.
12444     - Our main loop has been simplified so that all important operations
12445       happen inside events. Previously, some operations had to happen
12446       outside the event loop, to prevent infinite sequences of event
12447       activations. Closes ticket 25374.
12448     - Put a SHA1 public key digest in hs_service_intro_point_t, and use
12449       it in register_intro_circ() and service_intro_point_new(). This
12450       prevents the digest from being re-calculated each time. Closes
12451       ticket 23107. Patch by Neel Chauhan.
12452     - Refactor token-bucket implementations to use a common backend.
12453       Closes ticket 25766.
12454     - Remove extern declaration of stats_n_seconds_working variable from
12455       main, protecting its accesses with get_uptime() and reset_uptime()
12456       functions. Closes ticket 25081, patch by “valentecaio”.
12457     - Remove our previous logic for "cached gettimeofday()" -- our
12458       coarse monotonic timers are fast enough for this purpose, and far
12459       less error-prone. Implements part of ticket 25927.
12460     - Remove the return value for fascist_firewall_choose_address_base(),
12461       and sister functions such as fascist_firewall_choose_address_node()
12462       and fascist_firewall_choose_address_rs(). Also, while we're here,
12463       initialize the ap argument as leaving it uninitialized can pose a
12464       security hazard. Closes ticket 24734. Patch by Neel Chauhan.
12465     - Rename two fields of connection_t struct. timestamp_lastwritten is
12466       renamed to timestamp_last_write_allowed and timestamp_lastread is
12467       renamed to timestamp_last_read_allowed. Closes ticket 24714, patch
12468       by "valentecaio".
12469     - Since Tor requires C99, remove our old workaround code for libc
12470       implementations where free(NULL) doesn't work. Closes ticket 24484.
12471     - Use our standard rate-limiting code to deal with excessive
12472       libevent failures, rather than the hand-rolled logic we had
12473       before. Closes ticket 26016.
12474     - We remove the return value of node_get_prim_orport() and
12475       node_get_prim_dirport(), and introduce node_get_prim_orport() in
12476       node_ipv6_or_preferred() and node_ipv6_dir_preferred() in order to
12477       check for a null address. Closes ticket 23873. Patch by
12478       Neel Chauhan.
12479     - We switch to should_record_bridge_info() in
12480       geoip_note_client_seen() and options_need_geoip_info() instead of
12481       accessing the configuration values directly. Fixes bug 25290;
12482       bugfix on 0.2.1.6-alpha. Patch by Neel Chauhan.
12484   o Deprecated features:
12485     - As we are not recommending 0.2.5 anymore, we require relays that
12486       once had an ed25519 key associated with their RSA key to always
12487       have that key, instead of allowing them to drop back to a version
12488       that didn't support ed25519. This means they need to use a new RSA
12489       key if they want to downgrade to an older version of tor without
12490       ed25519. Closes ticket 20522.
12492   o Documentation:
12493     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
12494       ticket 25857. Patch from "CTassisF".
12496   o Removed features:
12497     - Directory authorities will no longer support voting according to
12498       any consensus method before consensus method 25. This keeps
12499       authorities compatible with all authorities running 0.2.9.8 and
12500       later, and does not break any clients or relays. Implements ticket
12501       24378 and proposal 290.
12502     - The PortForwarding and PortForwardingHelper features have been
12503       removed. The reasoning is, given that implementations of NAT
12504       traversal protocols within common consumer grade routers are
12505       frequently buggy, and that the target audience for a NAT punching
12506       feature is a perhaps less-technically-inclined relay operator,
12507       when the helper fails to setup traversal the problems are usually
12508       deep, ugly, and very router specific, making them horrendously
12509       impossible for technical support to reliable assist with, and thus
12510       resulting in frustration all around. Unfortunately, relay
12511       operators who would like to run relays behind NATs will need to
12512       become more familiar with the port forwarding configurations on
12513       their local router. Closes 25409.
12514     - The TestingEnableTbEmptyEvent option has been removed. It was used
12515       in testing simulations to measure how often connection buckets
12516       were emptied, in order to improve our scheduling, but it has not
12517       been actively used in years. Closes ticket 25760.
12518     - The old "round-robin" circuit multiplexer (circuitmux)
12519       implementation has been removed, along with a fairly large set of
12520       code that existed to support it. It has not been the default
12521       circuitmux since we introduced the "EWMA" circuitmux in 0.2.4.x,
12522       but it still required an unreasonable amount of memory and CPU.
12523       Closes ticket 25268.
12526 Changes in version 0.3.3.5-rc - 2018-04-15
12527   Tor 0.3.3.5-rc fixes various bugs in earlier versions of Tor,
12528   including some that could affect reliability or correctness.
12530   This is the first release candidate in the 0.3.3 series. If we find no
12531   new bugs or regression here, then the first stable 0.3.3 release will
12532   be nearly identical to this one.
12534   o Major bugfixes (security, protover, voting):
12535     - Revise Rust implementation of protover to use a more memory-
12536       efficient voting algorithm and corresponding data structures, thus
12537       avoiding a potential memory-based DoS attack where specially
12538       crafted protocol strings would expand to fill available memory.
12539       Fixes bug 24031; bugfix on 0.3.3.1-alpha.
12541   o Major bugfixes (performance, load balancing):
12542     - Directory authorities no longer vote in favor of the Guard flag
12543       for relays without directory support. Starting in Tor
12544       0.3.0.1-alpha, clients have been avoiding using such relays in the
12545       Guard position, leading to increasingly broken load balancing for
12546       the 5%-or-so of Guards that don't advertise directory support.
12547       Fixes bug 22310; bugfix on 0.3.0.6.
12549   o Minor feature (continuous integration):
12550     - Update the Travis CI configuration to use the stable Rust channel,
12551       now that we have decided to require that. Closes ticket 25714.
12553   o Minor features (config options):
12554     - Change the way the default value for MaxMemInQueues is calculated.
12555       We now use 40% of the hardware RAM if the system has 8 GB RAM or
12556       more. Otherwise we use the former value of 75%. Closes
12557       ticket 24782.
12559   o Minor features (geoip):
12560     - Update geoip and geoip6 to the April 3 2018 Maxmind GeoLite2
12561       Country database. Closes ticket 25718.
12563   o Minor bugfixes (client):
12564     - When using a listed relay as a bridge, and also using
12565       microdescriptors, and considering that relay as a non-bridge in a
12566       circuit, treat its microdescriptor as a valid source of
12567       information about that relay. This change should prevent a non-
12568       fatal assertion error. Fixes bug 25691; bugfix on 0.3.3.4-alpha.
12570   o Minor bugfixes (controller):
12571     - Restore the correct operation of the RESOLVE command, which had
12572       been broken since we added the ability to enable/disable DNS on
12573       specific listener ports. Fixes bug 25617; bugfix on 0.2.9.3-alpha.
12575   o Minor bugfixes (distribution, compilation, rust):
12576     - Build correctly when the rust dependencies submodule is loaded,
12577       but the TOR_RUST_DEPENDENCIES environment variable is not set.
12578       Fixes bug 25679; bugfix on 0.3.3.1-alpha.
12579     - Actually include all of our Rust source in our source
12580       distributions. (Previously, a few of the files were accidentally
12581       omitted.) Fixes bug 25732; bugfix on 0.3.3.2-alpha.
12583   o Minor bugfixes (documentation):
12584     - Document that the PerConnBW{Rate,Burst} options will fall back to
12585       their corresponding consensus parameters only if those parameters
12586       are set. Previously we had claimed that these values would always
12587       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
12588     - Revert a misformatting issue in the ExitPolicy documentation.
12589       Fixes bug 25582; bugfix on 0.3.3.1-alpha.
12591   o Minor bugfixes (exit relay DNS retries):
12592     - Re-attempt timed-out DNS queries 3 times before failure, since our
12593       timeout is 5 seconds for them, but clients wait 10-15. Also allow
12594       slightly more timeouts per resolver when an exit has multiple
12595       resolvers configured. Fixes bug 21394; bugfix on 0.3.1.9.
12597   o Minor bugfixes (onion services):
12598     - Re-instate counting the client HSDir fetch circuits against the
12599       MaxClientCircuitsPending rate limit. Fixes bug 24989; bugfix
12600       on 0.3.3.1-alpha.
12601     - Remove underscores from the _HSLayer{2,3}Nodes options. This
12602       expert-user configuration can now be enabled as HSLayer{2,3}Nodes.
12603       Fixes bug 25581; bugfix on 0.3.3.1-alpha
12605   o Code simplification and refactoring:
12606     - Move the list of default directory authorities to its own file.
12607       Closes ticket 24854. Patch by "beastr0".
12609   o Documentation (manpage, denial of service):
12610     - Provide more detail about the denial-of-service options, by
12611       listing each mitigation and explaining how they relate. Closes
12612       ticket 25248.
12615 Changes in version 0.3.3.4-alpha - 2018-03-29
12616   Tor 0.3.3.4-alpha includes various bugfixes for issues found during
12617   the alpha testing of earlier releases in its series. We are
12618   approaching a stable 0.3.3.4-alpha release: more testing is welcome!
12620   o New system requirements:
12621     - When built with Rust, Tor now depends on version 0.2.39 of the
12622       libc crate. Closes tickets 25310 and 25664.
12624   o Major bugfixes (relay, connection):
12625     - If we have failed to connect to a relay and received a connection
12626       refused, timeout, or similar error (at the TCP level), do not try
12627       that same address/port again for 60 seconds after the failure has
12628       occurred. Fixes bug 24767; bugfix on 0.0.6.
12630   o Minor features (geoip):
12631     - Update geoip and geoip6 to the March 8 2018 Maxmind GeoLite2
12632       Country database. Closes ticket 25469.
12634   o Minor features (log messages):
12635     - Improve log message in the out-of-memory handler to include
12636       information about memory usage from the different compression
12637       backends. Closes ticket 25372.
12639   o Minor features (sandbox):
12640     - Explicitly permit the poll() system call when the Linux
12641       seccomp2-based sandbox is enabled: apparently, some versions of
12642       libc use poll() when calling getpwnam(). Closes ticket 25313.
12644   o Minor bugfixes (C correctness):
12645     - Fix a very unlikely (impossible, we believe) null pointer
12646       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
12647       Coverity; this is CID 1430932.
12649   o Minor bugfixes (channel, client):
12650     - Better identify client connection when reporting to the geoip
12651       client cache. Fixes bug 24904; bugfix on 0.3.1.7.
12653   o Minor bugfixes (compilation):
12654     - Fix a C99 compliance issue in our configuration script that caused
12655       compilation issues when compiling Tor with certain versions of
12656       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
12658   o Minor bugfixes (controller, reliability):
12659     - Avoid a (nonfatal) assertion failure when extending a one-hop
12660       circuit from the controller to become a multihop circuit. Fixes
12661       bug 24903; bugfix on 0.2.5.2-alpha.
12663   o Major bugfixes (networking):
12664     - Tor will no longer reject IPv6 address strings from Tor Browser
12665       when they are passed as hostnames in SOCKS5 requests. Fixes bug
12666       25036, bugfix on Tor 0.3.1.2.
12668   o Minor bugfixes (networking):
12669     - string_is_valid_hostname() will not consider IP strings to be
12670       valid hostnames. Fixes bug 25055; bugfix on Tor 0.2.5.5.
12672   o Minor bugfixes (onion service v3):
12673     - Avoid an assertion failure when the next onion service
12674       descriptor rotation type is out of sync with the consensus's
12675       valid-after time. Instead, log a warning message with extra
12676       information, so we can better hunt down the cause of this
12677       assertion. Fixes bug 25306; bugfix on 0.3.2.1-alpha.
12679   o Minor bugfixes (testing):
12680     - Avoid intermittent test failures due to a test that had relied on
12681       onion service introduction point creation finishing within 5
12682       seconds of real clock time. Fixes bug 25450; bugfix
12683       on 0.3.1.3-alpha.
12684     - Rust crates are now automatically detected and tested. Previously,
12685       some crates were not tested by `make test-rust` due to a static
12686       string in the `src/test/test_rust.sh` script specifying which
12687       crates to test. Fixes bug 25560; bugfix on 0.3.3.3-alpha.
12689   o Minor bugfixes (testing, benchmarks):
12690     - Fix a crash when running benchmark tests on win32 systems. The
12691       crash was due to a mutex that wasn't initialized before logging
12692       and options were initialized. Fixes bug 25479; bugfix
12693       on 0.3.3.3-alpha.
12695   o Minor bugfixes (warnings, ipv6):
12696     - Avoid a bug warning that could occur when trying to connect to a
12697       relay over IPv6. This warning would occur on a Tor instance that
12698       downloads router descriptors, but prefers to use microdescriptors.
12699       Fixes bug 25213; bugfix on 0.3.3.1-alpha.
12701   o Code simplification and refactoring:
12702     - Remove the old (deterministic) directory retry logic entirely:
12703       We've used exponential backoff exclusively for some time. Closes
12704       ticket 23814.
12706   o Documentation:
12707     - Improved the documentation of AccountingStart parameter. Closes
12708       ticket 23635.
12709     - Update the documentation for "Log" to include the current list of
12710       logging domains. Closes ticket 25378.
12713 Changes in version 0.3.1.10 - 2018-03-03
12714   Tor 0.3.1.10 backports a number of bugfixes, including important fixes for
12715   security issues.
12717   It includes an important security fix for a remote crash attack
12718   against directory authorities, tracked as TROVE-2018-001.
12720   This release also backports our new system for improved resistance to
12721   denial-of-service attacks against relays.
12723   This release also fixes several minor bugs and annoyances from
12724   earlier releases.
12726   All directory authorities should upgrade to one of the versions
12727   released today. Relays running 0.3.1.x may wish to update to one of
12728   the versions released today, for the DoS mitigations.
12730   Please note: according to our release calendar, Tor 0.3.1 will no
12731   longer be supported after 1 July 2018. If you will be running Tor
12732   after that date, you should make sure to plan to upgrade to the latest
12733   stable version, or downgrade to 0.2.9 (which will receive long-term
12734   support).
12736   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
12737     - Fix a protocol-list handling bug that could be used to remotely crash
12738       directory authorities with a null-pointer exception. Fixes bug 25074;
12739       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
12740       CVE-2018-0490.
12742   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
12743     - Give relays some defenses against the recent network overload. We
12744       start with three defenses (default parameters in parentheses).
12745       First: if a single client address makes too many concurrent
12746       connections (>100), hang up on further connections. Second: if a
12747       single client address makes circuits too quickly (more than 3 per
12748       second, with an allowed burst of 90) while also having too many
12749       connections open (3), refuse new create cells for the next while
12750       (1-2 hours). Third: if a client asks to establish a rendezvous
12751       point to you directly, ignore the request. These defenses can be
12752       manually controlled by new torrc options, but relays will also
12753       take guidance from consensus parameters, so there's no need to
12754       configure anything manually. Implements ticket 24902.
12756   o Minor features (linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
12757     - Update the sandbox rules so that they should now work correctly
12758       with Glibc 2.26. Closes ticket 24315.
12760   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
12761     - Fix an "off by 2" error in counting rendezvous failures on the
12762       onion service side. While we thought we would stop the rendezvous
12763       attempt after one failed circuit, we were actually making three
12764       circuit attempts before giving up. Now switch to a default of 2,
12765       and allow the consensus parameter "hs_service_max_rdv_failures" to
12766       override. Fixes bug 24895; bugfix on 0.0.6.
12768   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
12769     - Add Link protocol version 5 to the supported protocols list. Fixes
12770       bug 25070; bugfix on 0.3.1.1-alpha.
12772   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
12773     - Fix a set of false positives where relays would consider
12774       connections to other relays as being client-only connections (and
12775       thus e.g. deserving different link padding schemes) if those
12776       relays fell out of the consensus briefly. Now we look only at the
12777       initial handshake and whether the connection authenticated as a
12778       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
12780   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
12781     - Make our OOM handler aware of the geoip client history cache so it
12782       doesn't fill up the memory. This check is important for IPv6 and
12783       our DoS mitigation subsystem. Closes ticket 25122.
12785   o Minor feature (relay statistics, backport from 0.3.2.6-alpha):
12786     - Change relay bandwidth reporting stats interval from 4 hours to 24
12787       hours in order to reduce the efficiency of guard discovery
12788       attacks. Fixes ticket 23856.
12790   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
12791     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
12792       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
12793       since they neither disabled TLS 1.3 nor enabled any of the
12794       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
12795       Closes ticket 24978.
12797   o Minor features (fallback directory mirrors, backport from 0.3.2.9):
12798     - The fallback directory list has been re-generated based on the
12799       current status of the network. Tor uses fallback directories to
12800       bootstrap when it doesn't yet have up-to-date directory
12801       information. Closes ticket 24801.
12802     - Make the default DirAuthorityFallbackRate 0.1, so that clients
12803       prefer to bootstrap from fallback directory mirrors. This is a
12804       follow-up to 24679, which removed weights from the default
12805       fallbacks. Implements ticket 24681.
12807   o Minor features (geoip):
12808     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
12809       Country database.
12811   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
12812     - Use the actual observed address of an incoming relay connection,
12813       not the canonical address of the relay from its descriptor, when
12814       making decisions about how to handle the incoming connection.
12815       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
12817   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
12818     - Directory authorities, when refusing a descriptor from a rejected
12819       relay, now explicitly tell the relay (in its logs) to set a valid
12820       ContactInfo address and contact the bad-relays@ mailing list.
12821       Fixes bug 25170; bugfix on 0.2.9.1.
12823   o Minor bugfixes (address selection, backport from 0.3.2.9):
12824     - When the fascist_firewall_choose_address_ functions don't find a
12825       reachable address, set the returned address to the null address
12826       and port. This is a precautionary measure, because some callers do
12827       not check the return value. Fixes bug 24736; bugfix
12828       on 0.2.8.2-alpha.
12830   o Major bugfixes (bootstrapping, backport from 0.3.2.5-alpha):
12831     - Fetch descriptors aggressively whenever we lack enough to build
12832       circuits, regardless of how many descriptors we are missing.
12833       Previously, we would delay launching the fetch when we had fewer
12834       than 15 missing descriptors, even if some of those descriptors
12835       were blocking circuits from building. Fixes bug 23985; bugfix on
12836       0.1.1.11-alpha. The effects of this bug became worse in
12837       0.3.0.3-alpha, when we began treating missing descriptors from our
12838       primary guards as a reason to delay circuits.
12839     - Don't try fetching microdescriptors from relays that have failed
12840       to deliver them in the past. Fixes bug 23817; bugfix
12841       on 0.3.0.1-alpha.
12843   o Minor bugfixes (compilation, backport from 0.3.2.7-rc):
12844     - Fix a signed/unsigned comparison warning introduced by our fix to
12845       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
12847   o Minor bugfixes (control port, linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
12848     - Avoid a crash when attempting to use the seccomp2 sandbox together
12849       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
12850       on 0.2.5.1-alpha.
12852   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
12853     - Fix a possible crash on malformed consensus. If a consensus had
12854       contained an unparseable protocol line, it could have made clients
12855       and relays crash with a null-pointer exception. To exploit this
12856       issue, however, an attacker would need to be able to subvert the
12857       directory authority system. Fixes bug 25251; bugfix on
12858       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
12860   o Minor bugfixes (directory cache, backport from 0.3.2.5-alpha):
12861     - Recover better from empty or corrupt files in the consensus cache
12862       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
12863     - When a consensus diff calculation is only partially successful,
12864       only record the successful parts as having succeeded. Partial
12865       success can happen if (for example) one compression method fails
12866       but the others succeed. Previously we misrecorded all the
12867       calculations as having succeeded, which would later cause a
12868       nonfatal assertion failure. Fixes bug 24086; bugfix
12869       on 0.3.1.1-alpha.
12871   o Minor bugfixes (entry guards, backport from 0.3.2.3-alpha):
12872     - Tor now updates its guard state when it reads a consensus
12873       regardless of whether it's missing descriptors. That makes tor use
12874       its primary guards to fetch descriptors in some edge cases where
12875       it would previously have used fallback directories. Fixes bug
12876       23862; bugfix on 0.3.0.1-alpha.
12878   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
12879     - Don't treat inability to store a cached consensus object as a bug:
12880       it can happen normally when we are out of disk space. Fixes bug
12881       24859; bugfix on 0.3.1.1-alpha.
12883   o Minor bugfixes (memory usage, backport from 0.3.2.8-rc):
12884     - When queuing DESTROY cells on a channel, only queue the circuit-id
12885       and reason fields: not the entire 514-byte cell. This fix should
12886       help mitigate any bugs or attacks that fill up these queues, and
12887       free more RAM for other uses. Fixes bug 24666; bugfix
12888       on 0.2.5.1-alpha.
12890   o Minor bugfixes (network layer, backport from 0.3.2.5-alpha):
12891     - When closing a connection via close_connection_immediately(), we
12892       mark it as "not blocked on bandwidth", to prevent later calls from
12893       trying to unblock it, and give it permission to read. This fixes a
12894       backtrace warning that can happen on relays under various
12895       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
12897   o Minor bugfixes (path selection, backport from 0.3.2.4-alpha):
12898     - When selecting relays by bandwidth, avoid a rounding error that
12899       could sometimes cause load to be imbalanced incorrectly.
12900       Previously, we would always round upwards; now, we round towards
12901       the nearest integer. This had the biggest effect when a relay's
12902       weight adjustments should have given it weight 0, but it got
12903       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
12904     - When calculating the fraction of nodes that have descriptors, and
12905       all nodes in the network have zero bandwidths, count the number of
12906       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
12907     - Actually log the total bandwidth in compute_weighted_bandwidths().
12908       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
12910   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
12911     - Improve the performance of our consensus-diff application code
12912       when Tor is built with the --enable-fragile-hardening option set.
12913       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
12915   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
12916     - Don't exit the Tor process if setrlimit() fails to change the file
12917       limit (which can happen sometimes on some versions of OSX). Fixes
12918       bug 21074; bugfix on 0.0.9pre5.
12920   o Minor bugfixes (portability, msvc, backport from 0.3.2.9):
12921     - Fix a bug in the bit-counting parts of our timing-wheel code on
12922       MSVC. (Note that MSVC is still not a supported build platform, due
12923       to cyptographic timing channel risks.) Fixes bug 24633; bugfix
12924       on 0.2.9.1-alpha.
12926   o Minor bugfixes (relay, partial backport):
12927     - Make the internal channel_is_client() function look at what sort
12928       of connection handshake the other side used, rather than whether
12929       the other side ever sent a create_fast cell to us. Backports part
12930       of the fixes from bugs 22805 and 24898.
12932   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
12933     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
12934       0.2.9.4-alpha.
12935     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
12936       bugfix on 0.2.9.4-alpha.
12938   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
12939     - Update the "rust dependencies" submodule to be a project-level
12940       repository, rather than a user repository. Closes ticket 25323.
12943 Changes in version 0.2.9.15 - 2018-03-03
12944   Tor 0.2.9.15 backports important security and stability bugfixes from
12945   later Tor releases.
12947   It includes an important security fix for a remote crash attack
12948   against directory authorities, tracked as TROVE-2018-001.
12950   This release also backports our new system for improved resistance to
12951   denial-of-service attacks against relays.
12953   This release also fixes several minor bugs and annoyances from
12954   earlier releases.
12956   All directory authorities should upgrade to one of the versions
12957   released today. Relays running 0.2.9.x may wish to update to one of
12958   the versions released today, for the DoS mitigations.
12960   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
12961     - Fix a protocol-list handling bug that could be used to remotely crash
12962       directory authorities with a null-pointer exception. Fixes bug 25074;
12963       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
12964       CVE-2018-0490.
12966   o Major features (denial-of-service mitigation):
12967     - Give relays some defenses against the recent network overload. We
12968       start with three defenses (default parameters in parentheses).
12969       First: if a single client address makes too many concurrent
12970       connections (>100), hang up on further connections. Second: if a
12971       single client address makes circuits too quickly (more than 3 per
12972       second, with an allowed burst of 90) while also having too many
12973       connections open (3), refuse new create cells for the next while
12974       (1-2 hours). Third: if a client asks to establish a rendezvous
12975       point to you directly, ignore the request. These defenses can be
12976       manually controlled by new torrc options, but relays will also
12977       take guidance from consensus parameters, so there's no need to
12978       configure anything manually. Implements ticket 24902.
12980   o Major bugfixes (bootstrapping):
12981     - Fetch descriptors aggressively whenever we lack enough to build
12982       circuits, regardless of how many descriptors we are missing.
12983       Previously, we would delay launching the fetch when we had fewer
12984       than 15 missing descriptors, even if some of those descriptors
12985       were blocking circuits from building. Fixes bug 23985; bugfix on
12986       0.1.1.11-alpha. The effects of this bug became worse in
12987       0.3.0.3-alpha, when we began treating missing descriptors from our
12988       primary guards as a reason to delay circuits.
12990   o Major bugfixes (onion services, retry behavior):
12991     - Fix an "off by 2" error in counting rendezvous failures on the
12992       onion service side. While we thought we would stop the rendezvous
12993       attempt after one failed circuit, we were actually making three
12994       circuit attempts before giving up. Now switch to a default of 2,
12995       and allow the consensus parameter "hs_service_max_rdv_failures" to
12996       override. Fixes bug 24895; bugfix on 0.0.6.
12998   o Minor feature (relay statistics):
12999     - Change relay bandwidth reporting stats interval from 4 hours to 24
13000       hours in order to reduce the efficiency of guard discovery
13001       attacks. Fixes ticket 23856.
13003   o Minor features (compatibility, OpenSSL):
13004     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
13005       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
13006       since they neither disabled TLS 1.3 nor enabled any of the
13007       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
13008       Closes ticket 24978.
13010   o Minor features (denial-of-service avoidance):
13011     - Make our OOM handler aware of the geoip client history cache so it
13012       doesn't fill up the memory. This check is important for IPv6 and
13013       our DoS mitigation subsystem. Closes ticket 25122.
13015   o Minor features (fallback directory mirrors):
13016     - The fallback directory list has been re-generated based on the
13017       current status of the network. Tor uses fallback directories to
13018       bootstrap when it doesn't yet have up-to-date directory
13019       information. Closes ticket 24801.
13020     - Make the default DirAuthorityFallbackRate 0.1, so that clients
13021       prefer to bootstrap from fallback directory mirrors. This is a
13022       follow-up to 24679, which removed weights from the default
13023       fallbacks. Implements ticket 24681.
13025   o Minor features (geoip):
13026     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
13027       Country database.
13029   o Minor features (linux seccomp2 sandbox):
13030     - Update the sandbox rules so that they should now work correctly
13031       with Glibc 2.26. Closes ticket 24315.
13033   o Minor bugfix (channel connection):
13034     - Use the actual observed address of an incoming relay connection,
13035       not the canonical address of the relay from its descriptor, when
13036       making decisions about how to handle the incoming connection.
13037       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
13039   o Minor bugfix (directory authority):
13040     - Directory authorities, when refusing a descriptor from a rejected
13041       relay, now explicitly tell the relay (in its logs) to set a valid
13042       ContactInfo address and contact the bad-relays@ mailing list.
13043       Fixes bug 25170; bugfix on 0.2.9.1.
13045   o Minor bugfixes (address selection):
13046     - When the fascist_firewall_choose_address_ functions don't find a
13047       reachable address, set the returned address to the null address
13048       and port. This is a precautionary measure, because some callers do
13049       not check the return value. Fixes bug 24736; bugfix
13050       on 0.2.8.2-alpha.
13052   o Minor bugfixes (compilation):
13053     - Fix a signed/unsigned comparison warning introduced by our fix to
13054       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
13056   o Minor bugfixes (control port, linux seccomp2 sandbox):
13057     - Avoid a crash when attempting to use the seccomp2 sandbox together
13058       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
13059       on 0.2.5.1-alpha.
13061   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
13062     - Fix a possible crash on malformed consensus. If a consensus had
13063       contained an unparseable protocol line, it could have made clients
13064       and relays crash with a null-pointer exception. To exploit this
13065       issue, however, an attacker would need to be able to subvert the
13066       directory authority system. Fixes bug 25251; bugfix on
13067       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
13069   o Minor bugfixes (memory usage):
13070     - When queuing DESTROY cells on a channel, only queue the circuit-id
13071       and reason fields: not the entire 514-byte cell. This fix should
13072       help mitigate any bugs or attacks that fill up these queues, and
13073       free more RAM for other uses. Fixes bug 24666; bugfix
13074       on 0.2.5.1-alpha.
13076   o Minor bugfixes (network layer):
13077     - When closing a connection via close_connection_immediately(), we
13078       mark it as "not blocked on bandwidth", to prevent later calls from
13079       trying to unblock it, and give it permission to read. This fixes a
13080       backtrace warning that can happen on relays under various
13081       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
13083   o Minor bugfixes (OSX):
13084     - Don't exit the Tor process if setrlimit() fails to change the file
13085       limit (which can happen sometimes on some versions of OSX). Fixes
13086       bug 21074; bugfix on 0.0.9pre5.
13088   o Minor bugfixes (path selection):
13089     - When selecting relays by bandwidth, avoid a rounding error that
13090       could sometimes cause load to be imbalanced incorrectly.
13091       Previously, we would always round upwards; now, we round towards
13092       the nearest integer. This had the biggest effect when a relay's
13093       weight adjustments should have given it weight 0, but it got
13094       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
13095     - When calculating the fraction of nodes that have descriptors, and
13096       all nodes in the network have zero bandwidths, count the number of
13097       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
13098     - Actually log the total bandwidth in compute_weighted_bandwidths().
13099       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
13101   o Minor bugfixes (portability, msvc):
13102     - Fix a bug in the bit-counting parts of our timing-wheel code on
13103       MSVC. (Note that MSVC is still not a supported build platform, due
13104       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
13105       on 0.2.9.1-alpha.
13107   o Minor bugfixes (relay):
13108     - Make the internal channel_is_client() function look at what sort
13109       of connection handshake the other side used, rather than whether
13110       the other side ever sent a create_fast cell to us. Backports part
13111       of the fixes from bugs 22805 and 24898.
13113   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
13114     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
13115       0.2.9.4-alpha.
13116     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
13117       bugfix on 0.2.9.4-alpha.
13120 Changes in version 0.3.2.10 - 2018-03-03
13121   Tor 0.3.2.10 is the second stable release in the 0.3.2 series. It
13122   backports a number of bugfixes, including important fixes for security
13123   issues.
13125   It includes an important security fix for a remote crash attack
13126   against directory authorities, tracked as TROVE-2018-001.
13128   Additionally, it backports a fix for a bug whose severity we have
13129   upgraded: Bug 24700, which was fixed in 0.3.3.2-alpha, can be remotely
13130   triggered in order to crash relays with a use-after-free pattern. As
13131   such, we are now tracking that bug as TROVE-2018-002 and
13132   CVE-2018-0491, and backporting it to earlier releases. This bug
13133   affected versions 0.3.2.1-alpha through 0.3.2.9, as well as version
13134   0.3.3.1-alpha.
13136   This release also backports our new system for improved resistance to
13137   denial-of-service attacks against relays.
13139   This release also fixes several minor bugs and annoyances from
13140   earlier releases.
13142   Relays running 0.3.2.x SHOULD upgrade to one of the versions released
13143   today, for the fix to TROVE-2018-002. Directory authorities should
13144   also upgrade. (Relays on earlier versions might want to update too for
13145   the DoS mitigations.)
13147   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
13148     - Fix a protocol-list handling bug that could be used to remotely crash
13149       directory authorities with a null-pointer exception. Fixes bug 25074;
13150       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
13151       CVE-2018-0490.
13153   o Major bugfixes (scheduler, KIST, denial-of-service, backport from 0.3.3.2-alpha):
13154     - Avoid adding the same channel twice in the KIST scheduler pending
13155       list, which could lead to remote denial-of-service use-after-free
13156       attacks against relays. Fixes bug 24700; bugfix on 0.3.2.1-alpha.
13158   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
13159     - Give relays some defenses against the recent network overload. We
13160       start with three defenses (default parameters in parentheses).
13161       First: if a single client address makes too many concurrent
13162       connections (>100), hang up on further connections. Second: if a
13163       single client address makes circuits too quickly (more than 3 per
13164       second, with an allowed burst of 90) while also having too many
13165       connections open (3), refuse new create cells for the next while
13166       (1-2 hours). Third: if a client asks to establish a rendezvous
13167       point to you directly, ignore the request. These defenses can be
13168       manually controlled by new torrc options, but relays will also
13169       take guidance from consensus parameters, so there's no need to
13170       configure anything manually. Implements ticket 24902.
13172   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
13173     - Fix an "off by 2" error in counting rendezvous failures on the
13174       onion service side. While we thought we would stop the rendezvous
13175       attempt after one failed circuit, we were actually making three
13176       circuit attempts before giving up. Now switch to a default of 2,
13177       and allow the consensus parameter "hs_service_max_rdv_failures" to
13178       override. Fixes bug 24895; bugfix on 0.0.6.
13179     - New-style (v3) onion services now obey the "max rendezvous circuit
13180       attempts" logic. Previously they would make as many rendezvous
13181       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
13182       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
13184   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
13185     - Add Link protocol version 5 to the supported protocols list. Fixes
13186       bug 25070; bugfix on 0.3.1.1-alpha.
13188   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
13189     - Fix a set of false positives where relays would consider
13190       connections to other relays as being client-only connections (and
13191       thus e.g. deserving different link padding schemes) if those
13192       relays fell out of the consensus briefly. Now we look only at the
13193       initial handshake and whether the connection authenticated as a
13194       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
13196   o Major bugfixes (scheduler, consensus, backport from 0.3.3.2-alpha):
13197     - The scheduler subsystem was failing to promptly notice changes in
13198       consensus parameters, making it harder to switch schedulers
13199       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
13201   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
13202     - Make our OOM handler aware of the geoip client history cache so it
13203       doesn't fill up the memory. This check is important for IPv6 and
13204       our DoS mitigation subsystem. Closes ticket 25122.
13206   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
13207     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
13208       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
13209       since they neither disabled TLS 1.3 nor enabled any of the
13210       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
13211       Closes ticket 24978.
13213   o Minor features (geoip):
13214     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
13215       Country database.
13217   o Minor features (logging, diagnostic, backport from 0.3.3.2-alpha):
13218     - When logging a failure to create an onion service's descriptor,
13219       also log what the problem with the descriptor was. Diagnostic
13220       for ticket 24972.
13222   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
13223     - Use the actual observed address of an incoming relay connection,
13224       not the canonical address of the relay from its descriptor, when
13225       making decisions about how to handle the incoming connection.
13226       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
13228   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
13229     - Fix a possible crash on malformed consensus. If a consensus had
13230       contained an unparseable protocol line, it could have made clients
13231       and relays crash with a null-pointer exception. To exploit this
13232       issue, however, an attacker would need to be able to subvert the
13233       directory authority system. Fixes bug 25251; bugfix on
13234       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
13236   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
13237     - Directory authorities, when refusing a descriptor from a rejected
13238       relay, now explicitly tell the relay (in its logs) to set a valid
13239       ContactInfo address and contact the bad-relays@ mailing list.
13240       Fixes bug 25170; bugfix on 0.2.9.1.
13242   o Minor bugfixes (build, rust, backport from 0.3.3.1-alpha):
13243     - When building with Rust on OSX, link against libresolv, to work
13244       around the issue at https://github.com/rust-lang/rust/issues/46797.
13245       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
13247   o Minor bugfixes (onion services, backport from 0.3.3.2-alpha):
13248     - Remove a BUG() statement when a client fetches an onion descriptor
13249       that has a lower revision counter than the one in its cache. This
13250       can happen in normal circumstances due to HSDir desync. Fixes bug
13251       24976; bugfix on 0.3.2.1-alpha.
13253   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
13254     - Don't treat inability to store a cached consensus object as a bug:
13255       it can happen normally when we are out of disk space. Fixes bug
13256       24859; bugfix on 0.3.1.1-alpha.
13258   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
13259     - Improve the performance of our consensus-diff application code
13260       when Tor is built with the --enable-fragile-hardening option set.
13261       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
13263   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
13264     - Don't exit the Tor process if setrlimit() fails to change the file
13265       limit (which can happen sometimes on some versions of OSX). Fixes
13266       bug 21074; bugfix on 0.0.9pre5.
13268   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
13269     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
13270       0.2.9.4-alpha.
13271     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
13272       bugfix on 0.2.9.4-alpha.
13274   o Minor bugfixes (testing, backport from 0.3.3.1-alpha):
13275     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
13276       25005; bugfix on 0.3.2.7-rc.
13278   o Minor bugfixes (v3 onion services, backport from 0.3.3.2-alpha):
13279     - Look at the "HSRend" protocol version, not the "HSDir" protocol
13280       version, when deciding whether a consensus entry can support the
13281       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
13282       bugfix on 0.3.2.1-alpha.
13284   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
13285     - Update the "rust dependencies" submodule to be a project-level
13286       repository, rather than a user repository. Closes ticket 25323.
13288   o Documentation (backport from 0.3.3.1-alpha)
13289     - Document that operators who run more than one relay or bridge are
13290       expected to set MyFamily and ContactInfo correctly. Closes
13291       ticket 24526.
13294 Changes in version 0.3.3.3-alpha - 2018-03-03
13295   Tor 0.3.3.3-alpha is the third alpha release for the 0.3.3.x series.
13296   It includes an important security fix for a remote crash attack
13297   against directory authorities tracked as TROVE-2018-001.
13299   Additionally, with this release, we are upgrading the severity of a
13300   bug fixed in 0.3.3.2-alpha. Bug 24700, which was fixed in
13301   0.3.3.2-alpha, can be remotely triggered in order to crash relays with
13302   a use-after-free pattern. As such, we are now tracking that bug as
13303   TROVE-2018-002 and CVE-2018-0491. This bug affected versions
13304   0.3.2.1-alpha through 0.3.2.9, as well as 0.3.3.1-alpha.
13306   This release also fixes several minor bugs and annoyances from
13307   earlier releases.
13309   Relays running 0.3.2.x should upgrade to one of the versions released
13310   today, for the fix to TROVE-2018-002. Directory authorities should
13311   also upgrade. (Relays on earlier versions might want to update too for
13312   the DoS mitigations.)
13314   o Major bugfixes (denial-of-service, directory authority):
13315     - Fix a protocol-list handling bug that could be used to remotely crash
13316       directory authorities with a null-pointer exception. Fixes bug 25074;
13317       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
13318       CVE-2018-0490.
13320   o Minor features (compatibility, OpenSSL):
13321     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
13322       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
13323       since they neither disabled TLS 1.3 nor enabled any of the
13324       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
13325       Closes ticket 24978.
13327   o Minor features (logging):
13328     - Clarify the log messages produced when getrandom() or a related
13329       entropy-generation mechanism gives an error. Closes ticket 25120.
13331   o Minor features (testing):
13332     - Add a "make test-rust" target to run the rust tests only. Closes
13333       ticket 25071.
13335   o Minor bugfixes (denial-of-service):
13336     - Fix a possible crash on malformed consensus. If a consensus had
13337       contained an unparseable protocol line, it could have made clients
13338       and relays crash with a null-pointer exception. To exploit this
13339       issue, however, an attacker would need to be able to subvert the
13340       directory authority system. Fixes bug 25251; bugfix on
13341       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
13343   o Minor bugfixes (DoS mitigation):
13344     - Add extra safety checks when refilling the circuit creation bucket
13345       to ensure we never set a value above the allowed maximum burst.
13346       Fixes bug 25202; bugfix on 0.3.3.2-alpha.
13347     - When a new consensus arrives, don't update our DoS-mitigation
13348       parameters if we aren't a public relay. Fixes bug 25223; bugfix
13349       on 0.3.3.2-alpha.
13351   o Minor bugfixes (man page, SocksPort):
13352     - Remove dead code from the old "SocksSocket" option, and rename
13353       SocksSocketsGroupWritable to UnixSocksGroupWritable. The old option
13354       still works, but is deprecated. Fixes bug 24343; bugfix on 0.2.6.3.
13356   o Minor bugfixes (performance):
13357     - Reduce the number of circuits that will be opened at once during
13358       the circuit build timeout phase. This is done by increasing the
13359       idle timeout to 3 minutes, and lowering the maximum number of
13360       concurrent learning circuits to 10. Fixes bug 24769; bugfix
13361       on 0.3.1.1-alpha.
13363   o Minor bugfixes (spec conformance):
13364     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
13365       0.2.9.4-alpha.
13366     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
13367       bugfix on 0.2.9.4-alpha.
13369   o Minor bugfixes (spec conformance, rust):
13370     - Resolve a denial-of-service issue caused by an infinite loop in
13371       the rust protover code. Fixes bug 25250, bugfix on 0.3.3.1-alpha.
13372       Also tracked as TROVE-2018-003.
13374   o Code simplification and refactoring:
13375     - Update the "rust dependencies" submodule to be a project-level
13376       repository, rather than a user repository. Closes ticket 25323.
13379 Changes in version 0.3.3.2-alpha - 2018-02-10
13380   Tor 0.3.3.2-alpha is the second alpha in the 0.3.3.x series. It
13381   introduces a mechanism to handle the high loads that many relay
13382   operators have been reporting recently. It also fixes several bugs in
13383   older releases. If this new code proves reliable, we plan to backport
13384   it to older supported release series.
13386   o Major features (denial-of-service mitigation):
13387     - Give relays some defenses against the recent network overload. We
13388       start with three defenses (default parameters in parentheses).
13389       First: if a single client address makes too many concurrent
13390       connections (>100), hang up on further connections. Second: if a
13391       single client address makes circuits too quickly (more than 3 per
13392       second, with an allowed burst of 90) while also having too many
13393       connections open (3), refuse new create cells for the next while
13394       (1-2 hours). Third: if a client asks to establish a rendezvous
13395       point to you directly, ignore the request. These defenses can be
13396       manually controlled by new torrc options, but relays will also
13397       take guidance from consensus parameters, so there's no need to
13398       configure anything manually. Implements ticket 24902.
13400   o Major bugfixes (netflow padding):
13401     - Stop adding unneeded channel padding right after we finish
13402       flushing to a connection that has been trying to flush for many
13403       seconds. Instead, treat all partial or complete flushes as
13404       activity on the channel, which will defer the time until we need
13405       to add padding. This fix should resolve confusing and scary log
13406       messages like "Channel padding timeout scheduled 221453ms in the
13407       past." Fixes bug 22212; bugfix on 0.3.1.1-alpha.
13409   o Major bugfixes (protocol versions):
13410     - Add Link protocol version 5 to the supported protocols list. Fixes
13411       bug 25070; bugfix on 0.3.1.1-alpha.
13413   o Major bugfixes (scheduler, consensus):
13414     - The scheduler subsystem was failing to promptly notice changes in
13415       consensus parameters, making it harder to switch schedulers
13416       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
13418   o Minor features (denial-of-service avoidance):
13419     - Make our OOM handler aware of the geoip client history cache so it
13420       doesn't fill up the memory. This check is important for IPv6 and
13421       our DoS mitigation subsystem. Closes ticket 25122.
13423   o Minor features (directory authority):
13424     - When directory authorities are unable to add signatures to a
13425       pending consensus, log the reason why. Closes ticket 24849.
13427   o Minor features (geoip):
13428     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
13429       Country database.
13431   o Minor features (logging, diagnostic):
13432     - When logging a failure to create an onion service's descriptor,
13433       also log what the problem with the descriptor was. Diagnostic for
13434       ticket 24972.
13436   o Minor bugfix (channel connection):
13437     - Use the actual observed address of an incoming relay connection,
13438       not the canonical address of the relay from its descriptor, when
13439       making decisions about how to handle the incoming connection.
13440       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
13442   o Minor bugfix (directory authority):
13443     - Directory authorities, when refusing a descriptor from a rejected
13444       relay, now explicitly tell the relay (in its logs) to set a valid
13445       ContactInfo address and contact the bad-relays@ mailing list.
13446       Fixes bug 25170; bugfix on 0.2.9.1.
13448   o Minor bugfixes (all versions of Tor):
13449     - Use the "misspell" tool to detect and fix typos throughout the
13450       source code. Fixes bug 23650; bugfix on various versions of Tor.
13451       Patch from Deepesh Pathak.
13453   o Minor bugfixes (circuit, cannibalization):
13454     - Don't cannibalize preemptively-built circuits if we no longer
13455       recognize their first hop. This situation can happen if our Guard
13456       relay went off the consensus after the circuit was created. Fixes
13457       bug 24469; bugfix on 0.0.6.
13459   o Minor bugfixes (correctness):
13460     - Remove a nonworking, unnecessary check to see whether a circuit
13461       hop's identity digest was set when the circuit failed. Fixes bug
13462       24927; bugfix on 0.2.4.4-alpha.
13464   o Minor bugfixes (logging):
13465     - Don't treat inability to store a cached consensus object as a bug:
13466       it can happen normally when we are out of disk space. Fixes bug
13467       24859; bugfix on 0.3.1.1-alpha.
13468     - Fix a (mostly harmless) race condition when invoking
13469       LOG_PROTOCOL_WARN message from a subthread while the torrc options
13470       are changing. Fixes bug 23954; bugfix on 0.1.1.9-alpha.
13472   o Minor bugfixes (onion services):
13473     - Remove a BUG() statement when a client fetches an onion descriptor
13474       that has a lower revision counter than the one in its cache. This
13475       can happen in normal circumstances due to HSDir desync. Fixes bug
13476       24976; bugfix on 0.3.2.1-alpha.
13477     - If we are configured to offer a single onion service, don't log
13478       long-term established one hop rendezvous points in the heartbeat.
13479       Fixes bug 25116; bugfix on 0.2.9.6-rc.
13481   o Minor bugfixes (performance):
13482     - Avoid calling protocol_list_supports_protocol() from inside tight
13483       loops when running with cached routerinfo_t objects. Instead,
13484       summarize the relevant protocols as flags in the routerinfo_t, as
13485       we do for routerstatus_t objects. This change simplifies our code
13486       a little, and saves a large amount of short-term memory allocation
13487       operations. Fixes bug 25008; bugfix on 0.2.9.4-alpha.
13489   o Minor bugfixes (Rust FFI):
13490     - Fix a minor memory leak which would happen whenever the C code
13491       would call the Rust implementation of
13492       protover_get_supported_protocols(). This was due to the C version
13493       returning a static string, whereas the Rust version newly allocated
13494       a CString to pass across the FFI boundary. Consequently, the C
13495       code was not expecting to need to free() what it was given. Fixes
13496       bug 25127; bugfix on 0.3.2.1-alpha.
13498   o Minor bugfixes (scheduler, KIST):
13499     - Avoid adding the same channel twice in the KIST scheduler pending
13500       list, which would waste CPU cycles. Fixes bug 24700; bugfix
13501       on 0.3.2.1-alpha.
13503   o Minor bugfixes (unit test, monotonic time):
13504     - Increase a constant (1msec to 10msec) in the monotonic time test
13505       that makes sure the nsec/usec/msec times read are synchronized.
13506       This change was needed to accommodate slow systems like armel or
13507       when the clock_gettime() is not a VDSO on the running kernel.
13508       Fixes bug 25113; bugfix on 0.2.9.1.
13510   o Minor bugfixes (v3 onion services):
13511     - Look at the "HSRend" protocol version, not the "HSDir" protocol
13512       version, when deciding whether a consensus entry can support the
13513       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
13514       bugfix on 0.3.2.1-alpha.
13516   o Code simplification and refactoring:
13517     - Remove the unused nodelist_recompute_all_hsdir_indices(). Closes
13518       ticket 25108.
13519     - Remove a series of counters used to track circuit extend attempts
13520       and connection status but that in reality we aren't using for
13521       anything other than stats logged by a SIGUSR1 signal. Closes
13522       ticket 25163.
13524   o Documentation (man page):
13525     - The HiddenServiceVersion torrc option accepts only one number:
13526       either version 2 or 3. Closes ticket 25026; bugfix
13527       on 0.3.2.2-alpha.
13530 Changes in version 0.3.3.1-alpha - 2018-01-25
13531   Tor 0.3.3.1-alpha is the first release in the 0.3.3.x series. It adds
13532   several new features to Tor, including several improvements to
13533   bootstrapping, and support for an experimental "vanguards" feature to
13534   resist guard discovery attacks. This series also includes better
13535   support for applications that need to embed Tor or manage v3
13536   onion services.
13538   o Major features (embedding):
13539     - There is now a documented stable API for programs that need to
13540       embed Tor. See tor_api.h for full documentation and known bugs.
13541       Closes ticket 23684.
13542     - Tor now has support for restarting in the same process.
13543       Controllers that run Tor using the "tor_api.h" interface can now
13544       restart Tor after Tor has exited. This support is incomplete,
13545       however: we fixed crash bugs that prevented it from working at
13546       all, but many bugs probably remain, including a possibility of
13547       security issues. Implements ticket 24581.
13549   o Major features (IPv6, directory documents):
13550     - Add consensus method 27, which adds IPv6 ORPorts to the microdesc
13551       consensus. This information makes it easier for IPv6 clients to
13552       bootstrap and choose reachable entry guards. Implements ticket 23826.
13553     - Add consensus method 28, which removes IPv6 ORPorts from
13554       microdescriptors. Now that the consensus contains IPv6 ORPorts, they
13555       are redundant in microdescs. This change will be used by Tor clients
13556       on 0.2.8.x and later. (That is to say, with all Tor clients that
13557       have IPv6 bootstrap and guard support.) Implements ticket 23828.
13558     - Expand the documentation for AuthDirHasIPv6Connectivity when it is
13559       set by different numbers of authorities. Fixes 23870
13560       on 0.2.4.1-alpha.
13562   o Major features (onion service v3, control port):
13563     - The control port now supports commands and events for v3 onion
13564       services. It is now possible to create ephemeral v3 services using
13565       ADD_ONION. Additionally, several events (HS_DESC, HS_DESC_CONTENT,
13566       CIRC and CIRC_MINOR) and commands (GETINFO, HSPOST, ADD_ONION and
13567       DEL_ONION) have been extended to support v3 onion services. Closes
13568       ticket 20699; implements proposal 284.
13570   o Major features (onion services):
13571     - Provide torrc options to pin the second and third hops of onion
13572       service circuits to a list of nodes. The option HSLayer2Guards
13573       pins the second hop, and the option HSLayer3Guards pins the third
13574       hop. These options are for use in conjunction with experiments
13575       with "vanguards" for preventing guard enumeration attacks. Closes
13576       ticket 13837.
13578   o Major features (rust, portability, experimental):
13579     - Tor now ships with an optional implementation of one of its
13580       smaller modules (protover.c) in the Rust programming language. To
13581       try it out, install a Rust build environment, and configure Tor
13582       with "--enable-rust --enable-cargo-online-mode". This should not
13583       cause any user-visible changes, but should help us gain more
13584       experience with Rust, and plan future Rust integration work.
13585       Implementation by Chelsea Komlo. Closes ticket 22840.
13587   o Minor features (storage, configuration):
13588     - Users can store cached directory documents somewhere other than
13589       the DataDirectory by using the CacheDirectory option. Similarly,
13590       the storage location for relay's keys can be overridden with the
13591       KeyDirectory option. Closes ticket 22703.
13593   o Major features (v3 onion services, ipv6):
13594     - When v3 onion service clients send introduce cells, they now
13595       include the IPv6 address of the rendezvous point, if it has one.
13596       Current v3 onion services running 0.3.2 ignore IPv6 addresses, but
13597       in future Tor versions, IPv6-only v3 single onion services will be
13598       able to use IPv6 addresses to connect directly to the rendezvous
13599       point. Closes ticket 23577. Patch by Neel Chauhan.
13601   o Major bugfixes (onion services, retry behavior):
13602     - Fix an "off by 2" error in counting rendezvous failures on the
13603       onion service side. While we thought we would stop the rendezvous
13604       attempt after one failed circuit, we were actually making three
13605       circuit attempts before giving up. Now switch to a default of 2,
13606       and allow the consensus parameter "hs_service_max_rdv_failures" to
13607       override. Fixes bug 24895; bugfix on 0.0.6.
13608     - New-style (v3) onion services now obey the "max rendezvous circuit
13609       attempts" logic. Previously they would make as many rendezvous
13610       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
13611       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
13613   o Major bugfixes (relays):
13614     - Fix a set of false positives where relays would consider
13615       connections to other relays as being client-only connections (and
13616       thus e.g. deserving different link padding schemes) if those
13617       relays fell out of the consensus briefly. Now we look only at the
13618       initial handshake and whether the connection authenticated as a
13619       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
13621   o Minor feature (IPv6):
13622     - Make IPv6-only clients wait for microdescs for relays, even if we
13623       were previously using descriptors (or were using them as a bridge)
13624       and have a cached descriptor for them. Implements ticket 23827.
13625     - When a consensus has IPv6 ORPorts, make IPv6-only clients use
13626       them, rather than waiting to download microdescriptors.
13627       Implements ticket 23827.
13629   o Minor features (cleanup):
13630     - Tor now deletes the CookieAuthFile and ExtORPortCookieAuthFile
13631       when it stops. Closes ticket 23271.
13633   o Minor features (defensive programming):
13634     - Most of the functions in Tor that free objects have been replaced
13635       with macros that free the objects and set the corresponding
13636       pointers to NULL. This change should help prevent a large class of
13637       dangling pointer bugs. Closes ticket 24337.
13638     - Where possible, the tor_free() macro now only evaluates its input
13639       once. Part of ticket 24337.
13640     - Check that microdesc ed25519 ids are non-zero in
13641       node_get_ed25519_id() before returning them. Implements ticket
13642       24001, patch by "aruna1234".
13644   o Minor features (embedding):
13645     - Tor can now start with a preauthenticated control connection
13646       created by the process that launched it. This feature is meant for
13647       use by programs that want to launch and manage a Tor process
13648       without allowing other programs to manage it as well. For more
13649       information, see the __OwningControllerFD option documented in
13650       control-spec.txt. Closes ticket 23900.
13651     - On most errors that would cause Tor to exit, it now tries to
13652       return from the tor_main() function, rather than calling the
13653       system exit() function. Most users won't notice a difference here,
13654       but it should be significant for programs that run Tor inside
13655       a separate thread: they should now be able to survive Tor's exit
13656       conditions rather than having Tor shut down the entire process.
13657       Closes ticket 23848.
13658     - Applications that want to embed Tor can now tell Tor not to
13659       register any of its own POSIX signal handlers, using the
13660       __DisableSignalHandlers option. Closes ticket 24588.
13662   o Minor features (fallback directory list):
13663     - Avoid selecting fallbacks that change their IP addresses too
13664       often. Select more fallbacks by ignoring the Guard flag, and
13665       allowing lower cutoffs for the Running and V2Dir flags. Also allow
13666       a lower bandwidth, and a higher number of fallbacks per operator
13667       (5% of the list). Implements ticket 24785.
13668     - Update the fallback whitelist and blacklist based on opt-ins and
13669       relay changes. Closes tickets 22321, 24678, 22527, 24135,
13670       and 24695.
13672   o Minor features (fallback directory mirror configuration):
13673     - Add a nickname to each fallback in a C comment. This makes it
13674       easier for operators to find their relays, and allows stem to use
13675       nicknames to identify fallbacks. Implements ticket 24600.
13676     - Add a type and version header to the fallback directory mirror
13677       file. Also add a delimiter to the end of each fallback entry. This
13678       helps external parsers like stem and Relay Search. Implements
13679       ticket 24725.
13680     - Add an extrainfo cache flag for each fallback in a C comment. This
13681       allows stem to use fallbacks to fetch extra-info documents, rather
13682       than using authorities. Implements ticket 22759.
13683     - Add the generateFallbackDirLine.py script for automatically
13684       generating fallback directory mirror lines from relay fingerprints.
13685       No more typos! Add the lookupFallbackDirContact.py script for
13686       automatically looking up operator contact info from relay
13687       fingerprints. Implements ticket 24706, patch by teor and atagar.
13688     - Reject any fallback directory mirror that serves an expired
13689       consensus. Implements ticket 20942, patch by "minik".
13690     - Remove commas and equals signs from external string inputs to the
13691       fallback list. This avoids format confusion attacks. Implements
13692       ticket 24726.
13693     - Remove the "weight=10" line from fallback directory mirror
13694       entries. Ticket 24681 will maintain the current fallback weights
13695       by changing Tor's default fallback weight to 10. Implements
13696       ticket 24679.
13697     - Stop logging excessive information about fallback netblocks.
13698       Implements ticket 24791.
13700   o Minor features (forward-compatibility):
13701     - If a relay supports some link authentication protocol that we do
13702       not recognize, then include that relay's ed25519 key when telling
13703       other relays to extend to it. Previously, we treated future
13704       versions as if they were too old to support ed25519 link
13705       authentication. Closes ticket 20895.
13707   o Minor features (heartbeat):
13708     - Add onion service information to our heartbeat logs, displaying
13709       stats about the activity of configured onion services. Closes
13710       ticket 24896.
13712   o Minor features (instrumentation, development):
13713     - Add the MainloopStats option to allow developers to get
13714       instrumentation information from the main event loop via the
13715       heartbeat messages. We hope to use this to improve Tor's behavior
13716       when it's trying to sleep. Closes ticket 24605.
13718   o Minor features (log messages):
13719     - Improve a warning message that happens when we fail to re-parse an
13720       old router because of an expired certificate. Closes ticket 20020.
13721     - Make the log more quantitative when we hit MaxMemInQueues
13722       threshold exposing some values. Closes ticket 24501.
13724   o Minor features (logging, android):
13725     - Added support for the Android logging subsystem. Closes
13726       ticket 24362.
13728   o Minor features (performance):
13729     - Support predictive circuit building for onion service circuits
13730       with multiple layers of guards. Closes ticket 23101.
13731     - Use stdatomic.h where available, rather than mutexes, to implement
13732       atomic_counter_t. Closes ticket 23953.
13734   o Minor features (performance, 32-bit):
13735     - Improve performance on 32-bit systems by avoiding 64-bit division
13736       when calculating the timestamp in milliseconds for channel padding
13737       computations. Implements ticket 24613.
13738     - Improve performance on 32-bit systems by avoiding 64-bit division
13739       when timestamping cells and buffer chunks for OOM calculations.
13740       Implements ticket 24374.
13742   o Minor features (performance, OSX, iOS):
13743     - Use the mach_approximate_time() function (when available) to
13744       implement coarse monotonic time. Having a coarse time function
13745       should avoid a large number of system calls, and improve
13746       performance slightly, especially under load. Closes ticket 24427.
13748   o Minor features (performance, windows):
13749     - Improve performance on Windows Vista and Windows 7 by adjusting
13750       TCP send window size according to the recommendation from
13751       SIO_IDEAL_SEND_BACKLOG_QUERY. Closes ticket 22798. Patch
13752       from Vort.
13754   o Major features (relay):
13755     - Implement an option, ReducedExitPolicy, to allow an Tor exit relay
13756       operator to use a more reasonable ("reduced") exit policy, rather
13757       than the default one. If you want to run an exit node without
13758       thinking too hard about which ports to allow, this one is for you.
13759       Closes ticket 13605. Patch from Neel Chauhan.
13761   o Minor features (testing, debugging, embedding):
13762     - For development purposes, Tor now has a mode in which it runs for
13763       a few seconds, then stops, and starts again without exiting the
13764       process. This mode is meant to help us debug various issues with
13765       ticket 23847. To use this feature, compile with
13766       --enable-restart-debugging, and set the TOR_DEBUG_RESTART
13767       environment variable. This is expected to crash a lot, and is
13768       really meant for developers only. It will likely be removed in a
13769       future release. Implements ticket 24583.
13771   o Minor bugfix (network IPv6 test):
13772     - Tor's test scripts now check if "ping -6 ::1" works when the user
13773       runs "make test-network-all". Fixes bug 24677; bugfix on
13774       0.2.9.3-alpha. Patch by "ffmancera".
13776   o Minor bugfixes (build, rust):
13777     - Fix output of autoconf checks to display success messages for Rust
13778       dependencies and a suitable rustc compiler version. Fixes bug
13779       24612; bugfix on 0.3.1.3-alpha.
13780     - When building with Rust on OSX, link against libresolv, to work
13781       around the issue at https://github.com/rust-lang/rust/issues/46797.
13782       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
13783     - Don't pass the --quiet option to cargo: it seems to suppress some
13784       errors, which is not what we want to do when building. Fixes bug
13785       24518; bugfix on 0.3.1.7.
13786     - Build correctly when building from outside Tor's source tree with
13787       the TOR_RUST_DEPENDENCIES option set. Fixes bug 22768; bugfix
13788       on 0.3.1.7.
13790   o Minor bugfixes (directory authorities, IPv6):
13791     - When creating a routerstatus (vote) from a routerinfo (descriptor),
13792       set the IPv6 address to the unspecified IPv6 address, and
13793       explicitly initialize the port to zero. Fixes bug 24488; bugfix
13794       on 0.2.4.1-alpha.
13796   o Minor bugfixes (fallback directory mirrors):
13797     - Make updateFallbackDirs.py search harder for python. (Some OSs
13798       don't put it in /usr/bin.) Fixes bug 24708; bugfix
13799       on 0.2.8.1-alpha.
13801   o Minor bugfixes (hibernation, bandwidth accounting, shutdown):
13802     - When hibernating, close connections normally and allow them to
13803       flush. Fixes bug 23571; bugfix on 0.2.4.7-alpha. Also fixes
13804       bug 7267.
13805     - Do not attempt to launch self-reachability tests when entering
13806       hibernation. Fixes a case of bug 12062; bugfix on 0.0.9pre5.
13807     - Resolve several bugs related to descriptor fetching on bridge
13808       clients with bandwidth accounting enabled. (This combination is
13809       not recommended!) Fixes a case of bug 12062; bugfix
13810       on 0.2.0.3-alpha.
13811     - When hibernating, do not attempt to launch DNS checks. Fixes a
13812       case of bug 12062; bugfix on 0.1.2.2-alpha.
13813     - When hibernating, do not try to upload or download descriptors.
13814       Fixes a case of bug 12062; bugfix on 0.0.9pre5.
13816   o Minor bugfixes (IPv6, bridges):
13817     - Tor now always sets IPv6 preferences for bridges. Fixes bug 24573;
13818       bugfix on 0.2.8.2-alpha.
13819     - Tor now sets IPv6 address in the routerstatus as well as in the
13820       router descriptors when updating addresses for a bridge. Closes
13821       ticket 24572; bugfix on 0.2.4.5-alpha. Patch by "ffmancera".
13823   o Minor bugfixes (linux seccomp2 sandbox):
13824     - When running with the sandbox enabled, reload configuration files
13825       correctly even when %include was used. Previously we would crash.
13826       Fixes bug 22605; bugfix on 0.3.1. Patch from Daniel Pinto.
13828   o Minor bugfixes (memory leaks):
13829     - Avoid possible at-exit memory leaks related to use of Libevent's
13830       event_base_once() function. (This function tends to leak memory if
13831       the event_base is closed before the event fires.) Fixes bug 24584;
13832       bugfix on 0.2.8.1-alpha.
13833     - Fix a harmless memory leak in tor-resolve. Fixes bug 24582; bugfix
13834       on 0.2.1.1-alpha.
13836   o Minor bugfixes (OSX):
13837     - Don't exit the Tor process if setrlimit() fails to change the file
13838       limit (which can happen sometimes on some versions of OSX). Fixes
13839       bug 21074; bugfix on 0.0.9pre5.
13841   o Minor bugfixes (performance, fragile-hardening):
13842     - Improve the performance of our consensus-diff application code
13843       when Tor is built with the --enable-fragile-hardening option set.
13844       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
13846   o Minor bugfixes (performance, timeouts):
13847     - Consider circuits for timeout as soon as they complete a hop. This
13848       is more accurate than applying the timeout in
13849       circuit_expire_building() because that function is only called
13850       once per second, which is now too slow for typical timeouts on the
13851       current network. Fixes bug 23114; bugfix on 0.2.2.2-alpha.
13852     - Use onion service circuits (and other circuits longer than 3 hops)
13853       to calculate a circuit build timeout. Previously, Tor only
13854       calculated its build timeout based on circuits that planned to be
13855       exactly 3 hops long. With this change, we include measurements
13856       from all circuits at the point where they complete their third
13857       hop. Fixes bug 23100; bugfix on 0.2.2.2-alpha.
13859   o Minor bugfixes (testing):
13860     - Give out Exit flags in bootstrapping networks. Fixes bug 24137;
13861       bugfix on 0.2.3.1-alpha.
13862     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
13863       25005; bugfix on 0.3.2.7-rc.
13865   o Code simplification and refactoring:
13866     - Remove /usr/athena from search path in configure.ac. Closes
13867       ticket 24363.
13868     - Remove duplicate code in node_has_curve25519_onion_key() and
13869       node_get_curve25519_onion_key(), and add a check for a zero
13870       microdesc curve25519 onion key. Closes ticket 23966, patch by
13871       "aruna1234" and teor.
13872     - Rewrite channel_rsa_id_group_set_badness to reduce temporary
13873       memory allocations with large numbers of OR connections (e.g.
13874       relays). Closes ticket 24119.
13875     - Separate the function that deletes ephemeral files when Tor
13876       stops gracefully.
13877     - Small changes to Tor's buf_t API to make it suitable for use as a
13878       general-purpose safe string constructor. Closes ticket 22342.
13879     - Switch -Wnormalized=id to -Wnormalized=nfkc in configure.ac to
13880       avoid source code identifier confusion. Closes ticket 24467.
13881     - The tor_git_revision[] constant no longer needs to be redeclared
13882       by everything that links against the rest of Tor. Done as part of
13883       ticket 23845, to simplify our external API.
13884     - We make extend_info_from_node() use node_get_curve25519_onion_key()
13885       introduced in ticket 23577 to access the curve25519 public keys
13886       rather than accessing it directly. Closes ticket 23760. Patch by
13887       Neel Chauhan.
13888     - Add a function to log channels' scheduler state changes to aid
13889       debugging efforts. Closes ticket 24531.
13891   o Documentation:
13892     - Add documentation on how to build tor with Rust dependencies
13893       without having to be online. Closes ticket 22907; bugfix
13894       on 0.3.0.3-alpha.
13895     - Clarify the behavior of RelayBandwidth{Rate,Burst} with client
13896       traffic. Closes ticket 24318.
13897     - Document that OutboundBindAddress doesn't apply to DNS requests.
13898       Closes ticket 22145. Patch from Aruna Maurya.
13899     - Document that operators who run more than one relay or bridge are
13900       expected to set MyFamily and ContactInfo correctly. Closes
13901       ticket 24526.
13903   o Code simplification and refactoring (channels):
13904     - Remove the incoming and outgoing channel queues. These were never
13905       used, but still took up a step in our fast path.
13906     - The majority of the channel unit tests have been rewritten and the
13907       code coverage has now been raised to 83.6% for channel.c. Closes
13908       ticket 23709.
13909     - Remove other dead code from the channel subsystem: All together,
13910       this cleanup has removed more than 1500 lines of code overall and
13911       adding very little except for unit test.
13913   o Code simplification and refactoring (circuit rendezvous):
13914     - Split the client-side rendezvous circuit lookup into two
13915       functions: one that returns only established circuits and another
13916       that returns all kinds of circuits. Closes ticket 23459.
13918   o Code simplification and refactoring (controller):
13919     - Make most of the variables in networkstatus_getinfo_by_purpose()
13920       const. Implements ticket 24489.
13923 Changes in version 0.3.2.9 - 2018-01-09
13924   Tor 0.3.2.9 is the first stable release in the 0.3.2 series.
13926   The 0.3.2 series includes our long-anticipated new onion service
13927   design, with numerous security features. (For more information, see
13928   our blog post at https://blog.torproject.org/fall-harvest.) We also
13929   have a new circuit scheduler algorithm for improved performance on
13930   relays everywhere (see https://blog.torproject.org/kist-and-tell),
13931   along with many smaller features and bugfixes.
13933   Per our stable release policy, we plan to support each stable release
13934   series for at least the next nine months, or for three months after
13935   the first stable release of the next series: whichever is longer. If
13936   you need a release with long-term support, we recommend that you stay
13937   with the 0.2.9 series.
13939   Below is a list of the changes since 0.3.2.8-rc. For a list of all
13940   changes since 0.3.1, see the ReleaseNotes file.
13942   o Minor features (fallback directory mirrors):
13943     - The fallback directory list has been re-generated based on the
13944       current status of the network. Tor uses fallback directories to
13945       bootstrap when it doesn't yet have up-to-date directory
13946       information. Closes ticket 24801.
13947     - Make the default DirAuthorityFallbackRate 0.1, so that clients
13948       prefer to bootstrap from fallback directory mirrors. This is a
13949       follow-up to 24679, which removed weights from the default
13950       fallbacks. Implements ticket 24681.
13952   o Minor features (geoip):
13953     - Update geoip and geoip6 to the January 5 2018 Maxmind GeoLite2
13954       Country database.
13956   o Minor bugfixes (address selection):
13957     - When the fascist_firewall_choose_address_ functions don't find a
13958       reachable address, set the returned address to the null address
13959       and port. This is a precautionary measure, because some callers do
13960       not check the return value. Fixes bug 24736; bugfix
13961       on 0.2.8.2-alpha.
13963   o Minor bugfixes (compilation):
13964     - Resolve a few shadowed-variable warnings in the onion service
13965       code. Fixes bug 24634; bugfix on 0.3.2.1-alpha.
13967   o Minor bugfixes (portability, msvc):
13968     - Fix a bug in the bit-counting parts of our timing-wheel code on
13969       MSVC. (Note that MSVC is still not a supported build platform, due
13970       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
13971       on 0.2.9.1-alpha.
13974 Changes in version 0.3.2.8-rc - 2017-12-21
13975   Tor 0.3.2.8-rc fixes a pair of bugs in the KIST and KISTLite
13976   schedulers that had led servers under heavy load to overload their
13977   outgoing connections. All relay operators running earlier 0.3.2.x
13978   versions should upgrade. This version also includes a mitigation for
13979   over-full DESTROY queues leading to out-of-memory conditions: if it
13980   works, we will soon backport it to earlier release series.
13982   This is the second release candidate in the 0.3.2 series. If we find
13983   no new bugs or regression here, then the first stable 0.3.2 release
13984   will be nearly identical to this.
13986   o Major bugfixes (KIST, scheduler):
13987     - The KIST scheduler did not correctly account for data already
13988       enqueued in each connection's send socket buffer, particularly in
13989       cases when the TCP/IP congestion window was reduced between
13990       scheduler calls. This situation lead to excessive per-connection
13991       buffering in the kernel, and a potential memory DoS. Fixes bug
13992       24665; bugfix on 0.3.2.1-alpha.
13994   o Minor features (geoip):
13995     - Update geoip and geoip6 to the December 6 2017 Maxmind GeoLite2
13996       Country database.
13998   o Minor bugfixes (hidden service v3):
13999     - Bump hsdir_spread_store parameter from 3 to 4 in order to increase
14000       the probability of reaching a service for a client missing
14001       microdescriptors. Fixes bug 24425; bugfix on 0.3.2.1-alpha.
14003   o Minor bugfixes (memory usage):
14004     - When queuing DESTROY cells on a channel, only queue the circuit-id
14005       and reason fields: not the entire 514-byte cell. This fix should
14006       help mitigate any bugs or attacks that fill up these queues, and
14007       free more RAM for other uses. Fixes bug 24666; bugfix
14008       on 0.2.5.1-alpha.
14010   o Minor bugfixes (scheduler, KIST):
14011     - Use a sane write limit for KISTLite when writing onto a connection
14012       buffer instead of using INT_MAX and shoving as much as it can.
14013       Because the OOM handler cleans up circuit queues, we are better
14014       off at keeping them in that queue instead of the connection's
14015       buffer. Fixes bug 24671; bugfix on 0.3.2.1-alpha.
14018 Changes in version 0.3.2.7-rc - 2017-12-14
14019   Tor 0.3.2.7-rc fixes various bugs in earlier versions of Tor,
14020   including some that could affect reliability or correctness.
14022   This is the first release candidate in the 0.3.2 series. If we find no
14023   new bugs or regression here, then the first stable 0.3.2. release will
14024   be nearly identical to this.
14026   o Major bugfixes (circuit prediction):
14027     - Fix circuit prediction logic so that a client doesn't treat a port
14028       as being "handled" by a circuit if that circuit already has
14029       isolation settings on it. This change should make Tor clients more
14030       responsive by improving their chances of having a pre-created
14031       circuit ready for use when a request arrives. Fixes bug 18859;
14032       bugfix on 0.2.3.3-alpha.
14034   o Minor features (logging):
14035     - Provide better warnings when the getrandom() syscall fails. Closes
14036       ticket 24500.
14038   o Minor features (portability):
14039     - Tor now compiles correctly on arm64 with libseccomp-dev installed.
14040       (It doesn't yet work with the sandbox enabled.) Closes
14041       ticket 24424.
14043   o Minor bugfixes (bridge clients, bootstrap):
14044     - Retry directory downloads when we get our first bridge descriptor
14045       during bootstrap or while reconnecting to the network. Keep
14046       retrying every time we get a bridge descriptor, until we have a
14047       reachable bridge. Fixes part of bug 24367; bugfix on 0.2.0.3-alpha.
14048     - Stop delaying bridge descriptor fetches when we have cached bridge
14049       descriptors. Instead, only delay bridge descriptor fetches when we
14050       have at least one reachable bridge. Fixes part of bug 24367;
14051       bugfix on 0.2.0.3-alpha.
14052     - Stop delaying directory fetches when we have cached bridge
14053       descriptors. Instead, only delay bridge descriptor fetches when
14054       all our bridges are definitely unreachable. Fixes part of bug
14055       24367; bugfix on 0.2.0.3-alpha.
14057   o Minor bugfixes (compilation):
14058     - Fix a signed/unsigned comparison warning introduced by our fix to
14059       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
14061   o Minor bugfixes (correctness):
14062     - Fix several places in our codebase where a C compiler would be
14063       likely to eliminate a check, based on assuming that undefined
14064       behavior had not happened elsewhere in the code. These cases are
14065       usually a sign of redundant checking or dubious arithmetic. Found
14066       by Georg Koppen using the "STACK" tool from Wang, Zeldovich,
14067       Kaashoek, and Solar-Lezama. Fixes bug 24423; bugfix on various
14068       Tor versions.
14070   o Minor bugfixes (onion service v3):
14071     - Fix a race where an onion service would launch a new intro circuit
14072       after closing an old one, but fail to register it before freeing
14073       the previously closed circuit. This bug was making the service
14074       unable to find the established intro circuit and thus not upload
14075       its descriptor, thus making a service unavailable for up to 24
14076       hours. Fixes bug 23603; bugfix on 0.3.2.1-alpha.
14078   o Minor bugfixes (scheduler, KIST):
14079     - Properly set the scheduler state of an unopened channel in the
14080       KIST scheduler main loop. This prevents a harmless but annoying
14081       log warning. Fixes bug 24502; bugfix on 0.3.2.4-alpha.
14082     - Avoid a possible integer overflow when computing the available
14083       space on the TCP buffer of a channel. This had no security
14084       implications; but could make KIST allow too many cells on a
14085       saturated connection. Fixes bug 24590; bugfix on 0.3.2.1-alpha.
14086     - Downgrade to "info" a harmless warning about the monotonic time
14087       moving backwards: This can happen on platform not supporting
14088       monotonic time. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
14091 Changes in version 0.3.2.6-alpha - 2017-12-01
14092   This version of Tor is the latest in the 0.3.2 alpha series. It
14093   includes fixes for several important security issues. All Tor users
14094   should upgrade to this release, or to one of the other releases coming
14095   out today.
14097   o Major bugfixes (security):
14098     - Fix a denial of service bug where an attacker could use a
14099       malformed directory object to cause a Tor instance to pause while
14100       OpenSSL would try to read a passphrase from the terminal. (Tor
14101       instances run without a terminal, which is the case for most Tor
14102       packages, are not impacted.) Fixes bug 24246; bugfix on every
14103       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
14104       Found by OSS-Fuzz as testcase 6360145429790720.
14105     - Fix a denial of service issue where an attacker could crash a
14106       directory authority using a malformed router descriptor. Fixes bug
14107       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
14108       and CVE-2017-8820.
14109     - When checking for replays in the INTRODUCE1 cell data for a
14110       (legacy) onion service, correctly detect replays in the RSA-
14111       encrypted part of the cell. We were previously checking for
14112       replays on the entire cell, but those can be circumvented due to
14113       the malleability of Tor's legacy hybrid encryption. This fix helps
14114       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
14115       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
14116       and CVE-2017-8819.
14118   o Major bugfixes (security, onion service v2):
14119     - Fix a use-after-free error that could crash v2 Tor onion services
14120       when they failed to open circuits while expiring introduction
14121       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
14122       also tracked as TROVE-2017-013 and CVE-2017-8823.
14124   o Major bugfixes (security, relay):
14125     - When running as a relay, make sure that we never build a path
14126       through ourselves, even in the case where we have somehow lost the
14127       version of our descriptor appearing in the consensus. Fixes part
14128       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
14129       as TROVE-2017-012 and CVE-2017-8822.
14130     - When running as a relay, make sure that we never choose ourselves
14131       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
14132       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
14134   o Minor feature (relay statistics):
14135     - Change relay bandwidth reporting stats interval from 4 hours to 24
14136       hours in order to reduce the efficiency of guard discovery
14137       attacks. Fixes ticket 23856.
14139   o Minor features (directory authority):
14140     - Add an IPv6 address for the "bastet" directory authority. Closes
14141       ticket 24394.
14143   o Minor bugfixes (client):
14144     - By default, do not enable storage of client-side DNS values. These
14145       values were unused by default previously, but they should not have
14146       been cached at all. Fixes bug 24050; bugfix on 0.2.6.3-alpha.
14149 Changes in version 0.3.1.9 - 2017-12-01:
14150   Tor 0.3.1.9 backports important security and stability fixes from the
14151   0.3.2 development series. All Tor users should upgrade to this
14152   release, or to another of the releases coming out today.
14154   o Major bugfixes (security, backport from 0.3.2.6-alpha):
14155     - Fix a denial of service bug where an attacker could use a
14156       malformed directory object to cause a Tor instance to pause while
14157       OpenSSL would try to read a passphrase from the terminal. (Tor
14158       instances run without a terminal, which is the case for most Tor
14159       packages, are not impacted.) Fixes bug 24246; bugfix on every
14160       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
14161       Found by OSS-Fuzz as testcase 6360145429790720.
14162     - Fix a denial of service issue where an attacker could crash a
14163       directory authority using a malformed router descriptor. Fixes bug
14164       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
14165       and CVE-2017-8820.
14166     - When checking for replays in the INTRODUCE1 cell data for a
14167       (legacy) onion service, correctly detect replays in the RSA-
14168       encrypted part of the cell. We were previously checking for
14169       replays on the entire cell, but those can be circumvented due to
14170       the malleability of Tor's legacy hybrid encryption. This fix helps
14171       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
14172       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
14173       and CVE-2017-8819.
14175   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
14176     - Fix a use-after-free error that could crash v2 Tor onion services
14177       when they failed to open circuits while expiring introduction
14178       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
14179       also tracked as TROVE-2017-013 and CVE-2017-8823.
14181   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
14182     - When running as a relay, make sure that we never build a path
14183       through ourselves, even in the case where we have somehow lost the
14184       version of our descriptor appearing in the consensus. Fixes part
14185       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
14186       as TROVE-2017-012 and CVE-2017-8822.
14187     - When running as a relay, make sure that we never choose ourselves
14188       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
14189       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
14191   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
14192     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
14193       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
14194       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
14195       identifying and finding a workaround to this bug and to Moritz,
14196       Arthur Edelstein, and Roger for helping to track it down and
14197       analyze it.
14199   o Minor features (bridge):
14200     - Bridges now include notice in their descriptors that they are
14201       bridges, and notice of their distribution status, based on their
14202       publication settings. Implements ticket 18329. For more fine-
14203       grained control of how a bridge is distributed, upgrade to 0.3.2.x
14204       or later.
14206   o Minor features (directory authority, backport from 0.3.2.6-alpha):
14207     - Add an IPv6 address for the "bastet" directory authority. Closes
14208       ticket 24394.
14210   o Minor features (geoip):
14211     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
14212       Country database.
14214   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
14215     - Avoid unnecessary calls to directory_fetches_from_authorities() on
14216       relays, to prevent spurious address resolutions and descriptor
14217       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
14218       bugfix on in 0.2.8.1-alpha.
14220   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
14221     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
14222       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
14224   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
14225     - When a circuit is marked for close, do not attempt to package any
14226       cells for channels on that circuit. Previously, we would detect
14227       this condition lower in the call stack, when we noticed that the
14228       circuit had no attached channel, and log an annoying message.
14229       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
14231   o Minor bugfixes (onion service, backport from 0.3.2.5-alpha):
14232     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
14233       so it matches dir-spec.txt. Fixes bug 24262; bugfix
14234       on 0.3.1.1-alpha.
14236   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
14237     - Avoid a crash when transitioning from client mode to bridge mode.
14238       Previously, we would launch the worker threads whenever our
14239       "public server" mode changed, but not when our "server" mode
14240       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
14243 Changes in version 0.3.0.13 - 2017-12-01
14244   Tor 0.3.0.13 backports important security and stability bugfixes from
14245   later Tor releases. All Tor users should upgrade to this release, or
14246   to another of the releases coming out today.
14248   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
14249   2018. If you need a release with long-term support, please stick with
14250   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
14252   o Major bugfixes (security, backport from 0.3.2.6-alpha):
14253     - Fix a denial of service bug where an attacker could use a
14254       malformed directory object to cause a Tor instance to pause while
14255       OpenSSL would try to read a passphrase from the terminal. (Tor
14256       instances run without a terminal, which is the case for most Tor
14257       packages, are not impacted.) Fixes bug 24246; bugfix on every
14258       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
14259       Found by OSS-Fuzz as testcase 6360145429790720.
14260     - Fix a denial of service issue where an attacker could crash a
14261       directory authority using a malformed router descriptor. Fixes bug
14262       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
14263       and CVE-2017-8820.
14264     - When checking for replays in the INTRODUCE1 cell data for a
14265       (legacy) onion service, correctly detect replays in the RSA-
14266       encrypted part of the cell. We were previously checking for
14267       replays on the entire cell, but those can be circumvented due to
14268       the malleability of Tor's legacy hybrid encryption. This fix helps
14269       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
14270       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
14271       and CVE-2017-8819.
14273   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
14274     - Fix a use-after-free error that could crash v2 Tor onion services
14275       when they failed to open circuits while expiring introduction
14276       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
14277       also tracked as TROVE-2017-013 and CVE-2017-8823.
14279   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
14280     - When running as a relay, make sure that we never build a path
14281       through ourselves, even in the case where we have somehow lost the
14282       version of our descriptor appearing in the consensus. Fixes part
14283       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
14284       as TROVE-2017-012 and CVE-2017-8822.
14285     - When running as a relay, make sure that we never choose ourselves
14286       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
14287       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
14289   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
14290     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
14291       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
14292       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
14293       identifying and finding a workaround to this bug and to Moritz,
14294       Arthur Edelstein, and Roger for helping to track it down and
14295       analyze it.
14297   o Minor features (security, windows, backport from 0.3.1.1-alpha):
14298     - Enable a couple of pieces of Windows hardening: one
14299       (HeapEnableTerminationOnCorruption) that has been on-by-default
14300       since Windows 8, and unavailable before Windows 7; and one
14301       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
14302       affect us, but shouldn't do any harm. Closes ticket 21953.
14304   o Minor features (bridge, backport from 0.3.1.9):
14305     - Bridges now include notice in their descriptors that they are
14306       bridges, and notice of their distribution status, based on their
14307       publication settings. Implements ticket 18329. For more fine-
14308       grained control of how a bridge is distributed, upgrade to 0.3.2.x
14309       or later.
14311   o Minor features (directory authority, backport from 0.3.2.6-alpha):
14312     - Add an IPv6 address for the "bastet" directory authority. Closes
14313       ticket 24394.
14315   o Minor features (geoip):
14316     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
14317       Country database.
14319   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
14320     - Avoid unnecessary calls to directory_fetches_from_authorities() on
14321       relays, to prevent spurious address resolutions and descriptor
14322       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
14323       bugfix on in 0.2.8.1-alpha.
14325   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
14326     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
14327       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
14329   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
14330     - When a circuit is marked for close, do not attempt to package any
14331       cells for channels on that circuit. Previously, we would detect
14332       this condition lower in the call stack, when we noticed that the
14333       circuit had no attached channel, and log an annoying message.
14334       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
14336   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
14337     - Avoid a crash when transitioning from client mode to bridge mode.
14338       Previously, we would launch the worker threads whenever our
14339       "public server" mode changed, but not when our "server" mode
14340       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
14342   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
14343     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
14344       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
14347 Changes in version 0.2.9.14 - 2017-12-01
14348   Tor 0.3.0.13 backports important security and stability bugfixes from
14349   later Tor releases. All Tor users should upgrade to this release, or
14350   to another of the releases coming out today.
14352   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
14353     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
14354       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
14355       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
14356       identifying and finding a workaround to this bug and to Moritz,
14357       Arthur Edelstein, and Roger for helping to track it down and
14358       analyze it.
14360   o Major bugfixes (security, backport from 0.3.2.6-alpha):
14361     - Fix a denial of service bug where an attacker could use a
14362       malformed directory object to cause a Tor instance to pause while
14363       OpenSSL would try to read a passphrase from the terminal. (Tor
14364       instances run without a terminal, which is the case for most Tor
14365       packages, are not impacted.) Fixes bug 24246; bugfix on every
14366       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
14367       Found by OSS-Fuzz as testcase 6360145429790720.
14368     - Fix a denial of service issue where an attacker could crash a
14369       directory authority using a malformed router descriptor. Fixes bug
14370       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
14371       and CVE-2017-8820.
14372     - When checking for replays in the INTRODUCE1 cell data for a
14373       (legacy) onion service, correctly detect replays in the RSA-
14374       encrypted part of the cell. We were previously checking for
14375       replays on the entire cell, but those can be circumvented due to
14376       the malleability of Tor's legacy hybrid encryption. This fix helps
14377       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
14378       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
14379       and CVE-2017-8819.
14381   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
14382     - Fix a use-after-free error that could crash v2 Tor onion services
14383       when they failed to open circuits while expiring introduction
14384       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
14385       also tracked as TROVE-2017-013 and CVE-2017-8823.
14387   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
14388     - When running as a relay, make sure that we never build a path
14389       through ourselves, even in the case where we have somehow lost the
14390       version of our descriptor appearing in the consensus. Fixes part
14391       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
14392       as TROVE-2017-012 and CVE-2017-8822.
14394   o Minor features (bridge, backport from 0.3.1.9):
14395     - Bridges now include notice in their descriptors that they are
14396       bridges, and notice of their distribution status, based on their
14397       publication settings. Implements ticket 18329. For more fine-
14398       grained control of how a bridge is distributed, upgrade to 0.3.2.x
14399       or later.
14401   o Minor features (directory authority, backport from 0.3.2.6-alpha):
14402     - Add an IPv6 address for the "bastet" directory authority. Closes
14403       ticket 24394.
14405   o Minor features (geoip):
14406     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
14407       Country database.
14409   o Minor features (security, windows, backport from 0.3.1.1-alpha):
14410     - Enable a couple of pieces of Windows hardening: one
14411       (HeapEnableTerminationOnCorruption) that has been on-by-default
14412       since Windows 8, and unavailable before Windows 7; and one
14413       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
14414       affect us, but shouldn't do any harm. Closes ticket 21953.
14416   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
14417     - Avoid unnecessary calls to directory_fetches_from_authorities() on
14418       relays, to prevent spurious address resolutions and descriptor
14419       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
14420       bugfix on in 0.2.8.1-alpha.
14422   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
14423     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
14424       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
14426   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
14427     - When a circuit is marked for close, do not attempt to package any
14428       cells for channels on that circuit. Previously, we would detect
14429       this condition lower in the call stack, when we noticed that the
14430       circuit had no attached channel, and log an annoying message.
14431       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
14433   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
14434     - Avoid a crash when transitioning from client mode to bridge mode.
14435       Previously, we would launch the worker threads whenever our
14436       "public server" mode changed, but not when our "server" mode
14437       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
14439   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
14440     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
14441       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
14444 Changes in version 0.2.8.17 - 2017-12-01
14445   Tor 0.2.8.17 backports important security and stability bugfixes from
14446   later Tor releases. All Tor users should upgrade to this release, or
14447   to another of the releases coming out today.
14449   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
14450   2018. If you need a release with long-term support, please upgrade with
14451   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
14453   o Major bugfixes (security, backport from 0.3.2.6-alpha):
14454     - Fix a denial of service bug where an attacker could use a
14455       malformed directory object to cause a Tor instance to pause while
14456       OpenSSL would try to read a passphrase from the terminal. (Tor
14457       instances run without a terminal, which is the case for most Tor
14458       packages, are not impacted.) Fixes bug 24246; bugfix on every
14459       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
14460       Found by OSS-Fuzz as testcase 6360145429790720.
14461     - When checking for replays in the INTRODUCE1 cell data for a
14462       (legacy) onion service, correctly detect replays in the RSA-
14463       encrypted part of the cell. We were previously checking for
14464       replays on the entire cell, but those can be circumvented due to
14465       the malleability of Tor's legacy hybrid encryption. This fix helps
14466       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
14467       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
14468       and CVE-2017-8819.
14470   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
14471     - Fix a use-after-free error that could crash v2 Tor onion services
14472       when they failed to open circuits while expiring introduction
14473       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
14474       also tracked as TROVE-2017-013 and CVE-2017-8823.
14476   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
14477     - When running as a relay, make sure that we never build a path through
14478       ourselves, even in the case where we have somehow lost the version of
14479       our descriptor appearing in the consensus. Fixes part of bug 21534;
14480       bugfix on 0.2.0.1-alpha. This issue is also tracked as TROVE-2017-012
14481       and CVE-2017-8822.
14483   o Minor features (bridge, backport from 0.3.1.9):
14484     - Bridges now include notice in their descriptors that they are
14485       bridges, and notice of their distribution status, based on their
14486       publication settings. Implements ticket 18329. For more fine-
14487       grained control of how a bridge is distributed, upgrade to 0.3.2.x
14488       or later.
14490   o Minor features (directory authority, backport from 0.3.2.6-alpha):
14491     - Add an IPv6 address for the "bastet" directory authority. Closes
14492       ticket 24394.
14494   o Minor features (geoip):
14495     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
14496       Country database.
14498   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
14499     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
14500       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
14503 Changes in version 0.2.5.16 - 2017-12-01
14504   Tor 0.2.5.13 backports important security and stability bugfixes from
14505   later Tor releases. All Tor users should upgrade to this release, or
14506   to another of the releases coming out today.
14508   Note: the Tor 0.2.5 series will no longer be supported after 1 May
14509   2018. If you need a release with long-term support, please upgrade to
14510   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
14512   o Major bugfixes (security, backport from 0.3.2.6-alpha):
14513     - Fix a denial of service bug where an attacker could use a
14514       malformed directory object to cause a Tor instance to pause while
14515       OpenSSL would try to read a passphrase from the terminal. (Tor
14516       instances run without a terminal, which is the case for most Tor
14517       packages, are not impacted.) Fixes bug 24246; bugfix on every
14518       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
14519       Found by OSS-Fuzz as testcase 6360145429790720.
14520     - When checking for replays in the INTRODUCE1 cell data for a
14521       (legacy) onion service, correctly detect replays in the RSA-
14522       encrypted part of the cell. We were previously checking for
14523       replays on the entire cell, but those can be circumvented due to
14524       the malleability of Tor's legacy hybrid encryption. This fix helps
14525       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
14526       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
14527       and CVE-2017-8819.
14529   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
14530     - When running as a relay, make sure that we never build a path
14531       through ourselves, even in the case where we have somehow lost the
14532       version of our descriptor appearing in the consensus. Fixes part
14533       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
14534       as TROVE-2017-012 and CVE-2017-8822.
14536   o Minor features (bridge, backport from 0.3.1.9):
14537     - Bridges now include notice in their descriptors that they are
14538       bridges, and notice of their distribution status, based on their
14539       publication settings. Implements ticket 18329. For more fine-
14540       grained control of how a bridge is distributed, upgrade to 0.3.2.x
14541       or later.
14543   o Minor features (geoip):
14544     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
14545       Country database.
14548 Changes in version 0.3.2.5-alpha - 2017-11-22
14549   Tor 0.3.2.5-alpha is the fifth alpha release in the 0.3.2.x series. It
14550   fixes several stability and reliability bugs, including a fix for
14551   intermittent bootstrapping failures that some people have been seeing
14552   since the 0.3.0.x series.
14554   Please test this alpha out -- many of these fixes will soon be
14555   backported to stable Tor versions if no additional bugs are found
14556   in them.
14558   o Major bugfixes (bootstrapping):
14559     - Fetch descriptors aggressively whenever we lack enough to build
14560       circuits, regardless of how many descriptors we are missing.
14561       Previously, we would delay launching the fetch when we had fewer
14562       than 15 missing descriptors, even if some of those descriptors
14563       were blocking circuits from building. Fixes bug 23985; bugfix on
14564       0.1.1.11-alpha. The effects of this bug became worse in
14565       0.3.0.3-alpha, when we began treating missing descriptors from our
14566       primary guards as a reason to delay circuits.
14567     - Don't try fetching microdescriptors from relays that have failed
14568       to deliver them in the past. Fixes bug 23817; bugfix
14569       on 0.3.0.1-alpha.
14571   o Minor features (directory authority):
14572     - Make the "Exit" flag assignment only depend on whether the exit
14573       policy allows connections to ports 80 and 443. Previously relays
14574       would get the Exit flag if they allowed connections to one of
14575       these ports and also port 6667. Resolves ticket 23637.
14577   o Minor features (geoip):
14578     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
14579       Country database.
14581   o Minor features (linux seccomp2 sandbox):
14582     - Update the sandbox rules so that they should now work correctly
14583       with Glibc 2.26. Closes ticket 24315.
14585   o Minor features (logging):
14586     - Downgrade a pair of log messages that could occur when an exit's
14587       resolver gave us an unusual (but not forbidden) response. Closes
14588       ticket 24097.
14589     - Improve the message we log when re-enabling circuit build timeouts
14590       after having received a consensus. Closes ticket 20963.
14592   o Minor bugfixes (compilation):
14593     - Fix a memory leak warning in one of the libevent-related
14594       configuration tests that could occur when manually specifying
14595       -fsanitize=address. Fixes bug 24279; bugfix on 0.3.0.2-alpha.
14596       Found and patched by Alex Xu.
14597     - When detecting OpenSSL on Windows from our configure script, make
14598       sure to try linking with the ws2_32 library. Fixes bug 23783;
14599       bugfix on 0.3.2.2-alpha.
14601   o Minor bugfixes (control port, linux seccomp2 sandbox):
14602     - Avoid a crash when attempting to use the seccomp2 sandbox together
14603       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
14604       on 0.2.5.1-alpha.
14606   o Minor bugfixes (control port, onion services):
14607     - Report "FAILED" instead of "UPLOAD_FAILED" "FAILED" for the
14608       HS_DESC event when a service is not able to upload a descriptor.
14609       Fixes bug 24230; bugfix on 0.2.7.1-alpha.
14611   o Minor bugfixes (directory cache):
14612     - Recover better from empty or corrupt files in the consensus cache
14613       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
14614     - When a consensus diff calculation is only partially successful,
14615       only record the successful parts as having succeeded. Partial
14616       success can happen if (for example) one compression method fails
14617       but the others succeed. Previously we misrecorded all the
14618       calculations as having succeeded, which would later cause a
14619       nonfatal assertion failure. Fixes bug 24086; bugfix
14620       on 0.3.1.1-alpha.
14622   o Minor bugfixes (logging):
14623     - Only log once if we notice that KIST support is gone. Fixes bug
14624       24158; bugfix on 0.3.2.1-alpha.
14625     - Suppress a log notice when relay descriptors arrive. We already
14626       have a bootstrap progress for this so no need to log notice
14627       everytime tor receives relay descriptors. Microdescriptors behave
14628       the same. Fixes bug 23861; bugfix on 0.2.8.2-alpha.
14630   o Minor bugfixes (network layer):
14631     - When closing a connection via close_connection_immediately(), we
14632       mark it as "not blocked on bandwidth", to prevent later calls from
14633       trying to unblock it, and give it permission to read. This fixes a
14634       backtrace warning that can happen on relays under various
14635       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
14637   o Minor bugfixes (onion services):
14638     - The introduction circuit was being timed out too quickly while
14639       waiting for the rendezvous circuit to complete. Keep the intro
14640       circuit around longer instead of timing out and reopening new ones
14641       constantly. Fixes bug 23681; bugfix on 0.2.4.8-alpha.
14642     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
14643       so it matches dir-spec.txt. Fixes bug 24262; bugfix
14644       on 0.3.1.1-alpha.
14645     - Silence a warning about failed v3 onion descriptor uploads that
14646       can happen naturally under certain edge cases. Fixes part of bug
14647       23662; bugfix on 0.3.2.1-alpha.
14649   o Minor bugfixes (tests):
14650     - Fix a memory leak in one of the bridge-distribution test cases.
14651       Fixes bug 24345; bugfix on 0.3.2.3-alpha.
14652     - Fix a bug in our fuzzing mock replacement for crypto_pk_checksig(),
14653       to correctly handle cases where a caller gives it an RSA key of
14654       under 160 bits. (This is not actually a bug in Tor itself, but
14655       rather in our fuzzing code.) Fixes bug 24247; bugfix on
14656       0.3.0.3-alpha. Found by OSS-Fuzz as issue 4177.
14658   o Documentation:
14659     - Add notes in man page regarding OS support for the various
14660       scheduler types. Attempt to use less jargon in the scheduler
14661       section. Closes ticket 24254.
14664 Changes in version 0.3.2.4-alpha - 2017-11-08
14665   Tor 0.3.2.4-alpha is the fourth alpha release in the 0.3.2.x series.
14666   It fixes several stability and reliability bugs, especially including
14667   a major reliability issue that has been plaguing fast exit relays in
14668   recent months.
14670   o Major bugfixes (exit relays, DNS):
14671     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
14672       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
14673       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
14674       identifying and finding a workaround to this bug and to Moritz,
14675       Arthur Edelstein, and Roger for helping to track it down and
14676       analyze it.
14678   o Major bugfixes (scheduler, channel):
14679     - Stop processing scheduled channels if they closed while flushing
14680       cells. This can happen if the write on the connection fails
14681       leading to the channel being closed while in the scheduler loop.
14682       Fixes bug 23751; bugfix on 0.3.2.1-alpha.
14684   o Minor features (logging, scheduler):
14685     - Introduce a SCHED_BUG() function to log extra information about
14686       the scheduler state if we ever catch a bug in the scheduler.
14687       Closes ticket 23753.
14689   o Minor features (removed deprecations):
14690     - The ClientDNSRejectInternalAddresses flag can once again be set in
14691       non-testing Tor networks, so long as they do not use the default
14692       directory authorities. This change also removes the deprecation of
14693       this flag from 0.2.9.2-alpha. Closes ticket 21031.
14695   o Minor features (testing):
14696     - Our fuzzing tests now test the encrypted portions of v3 onion
14697       service descriptors. Implements more of 21509.
14699   o Minor bugfixes (directory client):
14700     - On failure to download directory information, delay retry attempts
14701       by a random amount based on the "decorrelated jitter" algorithm.
14702       Our previous delay algorithm tended to produce extra-long delays
14703       too easily. Fixes bug 23816; bugfix on 0.2.9.1-alpha.
14705   o Minor bugfixes (IPv6, v3 single onion services):
14706     - Remove buggy code for IPv6-only v3 single onion services, and
14707       reject attempts to configure them. This release supports IPv4,
14708       dual-stack, and IPv6-only v3 onion services; and IPv4 and dual-
14709       stack v3 single onion services. Fixes bug 23820; bugfix
14710       on 0.3.2.1-alpha.
14712   o Minor bugfixes (logging, relay):
14713     - Give only a protocol warning when the ed25519 key is not
14714       consistent between the descriptor and microdescriptor of a relay.
14715       This can happen, for instance, if the relay has been flagged
14716       NoEdConsensus. Fixes bug 24025; bugfix on 0.3.2.1-alpha.
14718   o Minor bugfixes (manpage, onion service):
14719     - Document that the HiddenServiceNumIntroductionPoints option is
14720       0-10 for v2 services and 0-20 for v3 services. Fixes bug 24115;
14721       bugfix on 0.3.2.1-alpha.
14723   o Minor bugfixes (memory leaks):
14724     - Fix a minor memory leak at exit in the KIST scheduler. This bug
14725       should have no user-visible impact. Fixes bug 23774; bugfix
14726       on 0.3.2.1-alpha.
14727     - Fix a memory leak when decrypting a badly formatted v3 onion
14728       service descriptor. Fixes bug 24150; bugfix on 0.3.2.1-alpha.
14729       Found by OSS-Fuzz; this is OSS-Fuzz issue 3994.
14731   o Minor bugfixes (onion services):
14732     - Cache some needed onion service client information instead of
14733       constantly computing it over and over again. Fixes bug 23623;
14734       bugfix on 0.3.2.1-alpha.
14735     - Properly retry HSv3 descriptor fetches when missing required
14736       directory information. Fixes bug 23762; bugfix on 0.3.2.1-alpha.
14738   o Minor bugfixes (path selection):
14739     - When selecting relays by bandwidth, avoid a rounding error that
14740       could sometimes cause load to be imbalanced incorrectly.
14741       Previously, we would always round upwards; now, we round towards
14742       the nearest integer. This had the biggest effect when a relay's
14743       weight adjustments should have given it weight 0, but it got
14744       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
14745     - When calculating the fraction of nodes that have descriptors, and
14746       all nodes in the network have zero bandwidths, count the number of
14747       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
14748     - Actually log the total bandwidth in compute_weighted_bandwidths().
14749       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
14751   o Minor bugfixes (relay, crash):
14752     - Avoid a crash when transitioning from client mode to bridge mode.
14753       Previously, we would launch the worker threads whenever our
14754       "public server" mode changed, but not when our "server" mode
14755       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
14757   o Minor bugfixes (testing):
14758     - Fix a spurious fuzzing-only use of an uninitialized value. Found
14759       by Brian Carpenter. Fixes bug 24082; bugfix on 0.3.0.3-alpha.
14760     - Test that IPv6-only clients can use microdescriptors when running
14761       "make test-network-all". Requires chutney master 61c28b9 or later.
14762       Closes ticket 24109.
14765 Changes in version 0.3.2.3-alpha - 2017-10-27
14766   Tor 0.3.2.3-alpha is the third release in the 0.3.2 series. It fixes
14767   numerous small bugs in earlier versions of 0.3.2.x, and adds a new
14768   directory authority, Bastet.
14770   o Directory authority changes:
14771     - Add "Bastet" as a ninth directory authority to the default list.
14772       Closes ticket 23910.
14773     - The directory authority "Longclaw" has changed its IP address.
14774       Closes ticket 23592.
14776   o Minor features (bridge):
14777     - Bridge relays can now set the BridgeDistribution config option to
14778       add a "bridge-distribution-request" line to their bridge
14779       descriptor, which tells BridgeDB how they'd like their bridge
14780       address to be given out. (Note that as of Oct 2017, BridgeDB does
14781       not yet implement this feature.) As a side benefit, this feature
14782       provides a way to distinguish bridge descriptors from non-bridge
14783       descriptors. Implements tickets 18329.
14785   o Minor features (client, entry guards):
14786     - Improve log messages when missing descriptors for primary guards.
14787       Resolves ticket 23670.
14789   o Minor features (geoip):
14790     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
14791       Country database.
14793   o Minor bugfixes (bridge):
14794     - Overwrite the bridge address earlier in the process of retrieving
14795       its descriptor, to make sure we reach it on the configured
14796       address. Fixes bug 20532; bugfix on 0.2.0.10-alpha.
14798   o Minor bugfixes (documentation):
14799     - Document better how to read gcov, and what our gcov postprocessing
14800       scripts do. Fixes bug 23739; bugfix on 0.2.9.1-alpha.
14802   o Minor bugfixes (entry guards):
14803     - Tor now updates its guard state when it reads a consensus
14804       regardless of whether it's missing descriptors. That makes tor use
14805       its primary guards to fetch descriptors in some edge cases where
14806       it would previously have used fallback directories. Fixes bug
14807       23862; bugfix on 0.3.0.1-alpha.
14809   o Minor bugfixes (hidden service client):
14810     - When handling multiple SOCKS request for the same .onion address,
14811       only fetch the service descriptor once.
14812     - When a descriptor fetch fails with a non-recoverable error, close
14813       all pending SOCKS requests for that .onion. Fixes bug 23653;
14814       bugfix on 0.3.2.1-alpha.
14816   o Minor bugfixes (hidden service):
14817     - Always regenerate missing hidden service public key files. Prior
14818       to this, if the public key was deleted from disk, it wouldn't get
14819       recreated. Fixes bug 23748; bugfix on 0.3.2.2-alpha. Patch
14820       from "cathugger".
14821     - Make sure that we have a usable ed25519 key when the intro point
14822       relay supports ed25519 link authentication. Fixes bug 24002;
14823       bugfix on 0.3.2.1-alpha.
14825   o Minor bugfixes (hidden service, v2):
14826     - When reloading configured hidden services, copy all information
14827       from the old service object. Previously, some data was omitted,
14828       causing delays in descriptor upload, and other bugs. Fixes bug
14829       23790; bugfix on 0.2.1.9-alpha.
14831   o Minor bugfixes (memory safety, defensive programming):
14832     - Clear the target address when node_get_prim_orport() returns
14833       early. Fixes bug 23874; bugfix on 0.2.8.2-alpha.
14835   o Minor bugfixes (relay):
14836     - Avoid a BUG warning when receiving a dubious CREATE cell while an
14837       option transition is in progress. Fixes bug 23952; bugfix
14838       on 0.3.2.1-alpha.
14840   o Minor bugfixes (testing):
14841     - Adjust the GitLab CI configuration to more closely match that of
14842       Travis CI. Fixes bug 23757; bugfix on 0.3.2.2-alpha.
14843     - Prevent scripts/test/coverage from attempting to move gcov output
14844       to the root directory. Fixes bug 23741; bugfix on 0.2.5.1-alpha.
14845     - When running unit tests as root, skip a test that would fail
14846       because it expects a permissions error. This affects some
14847       continuous integration setups. Fixes bug 23758; bugfix
14848       on 0.3.2.2-alpha.
14849     - Stop unconditionally mirroring the tor repository in GitLab CI.
14850       This prevented developers from enabling GitLab CI on master. Fixes
14851       bug 23755; bugfix on 0.3.2.2-alpha.
14852     - Fix the hidden service v3 descriptor decoding fuzzing to use the
14853       latest decoding API correctly. Fixes bug 21509; bugfix
14854       on 0.3.2.1-alpha.
14856   o Minor bugfixes (warnings):
14857     - When we get an HTTP request on a SOCKS port, tell the user about
14858       the new HTTPTunnelPort option. Previously, we would give a "Tor is
14859       not an HTTP Proxy" message, which stopped being true when
14860       HTTPTunnelPort was introduced. Fixes bug 23678; bugfix
14861       on 0.3.2.1-alpha.
14864 Changes in version 0.2.5.15 - 2017-10-25
14865   Tor 0.2.5.15 backports a collection of bugfixes from later Tor release
14866   series. It also adds a new directory authority, Bastet.
14868   Note: the Tor 0.2.5 series will no longer be supported after 1 May
14869   2018. If you need a release with long-term support, please upgrade to
14870   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
14872   o Directory authority changes:
14873     - Add "Bastet" as a ninth directory authority to the default list.
14874       Closes ticket 23910.
14875     - The directory authority "Longclaw" has changed its IP address.
14876       Closes ticket 23592.
14878   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
14879     - Avoid an assertion failure bug affecting our implementation of
14880       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
14881       handling of "0xx" differs from what we had expected. Fixes bug
14882       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
14884   o Minor features (geoip):
14885     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
14886       Country database.
14888   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
14889     - Fix a memset() off the end of an array when packing cells. This
14890       bug should be harmless in practice, since the corrupted bytes are
14891       still in the same structure, and are always padding bytes,
14892       ignored, or immediately overwritten, depending on compiler
14893       behavior. Nevertheless, because the memset()'s purpose is to make
14894       sure that any other cell-handling bugs can't expose bytes to the
14895       network, we need to fix it. Fixes bug 22737; bugfix on
14896       0.2.4.11-alpha. Fixes CID 1401591.
14898   o Build features (backport from 0.3.1.5-alpha):
14899     - Tor's repository now includes a Travis Continuous Integration (CI)
14900       configuration file (.travis.yml). This is meant to help new
14901       developers and contributors who fork Tor to a Github repository be
14902       better able to test their changes, and understand what we expect
14903       to pass. To use this new build feature, you must fork Tor to your
14904       Github account, then go into the "Integrations" menu in the
14905       repository settings for your fork and enable Travis, then push
14906       your changes. Closes ticket 22636.
14909 Changes in version 0.2.8.16 - 2017-10-25
14910   Tor 0.2.8.16 backports a collection of bugfixes from later Tor release
14911   series, including a bugfix for a crash issue that had affected relays
14912   under memory pressure. It also adds a new directory authority, Bastet.
14914   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
14915   2018. If you need a release with long-term support, please stick with
14916   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
14918   o Directory authority changes:
14919     - Add "Bastet" as a ninth directory authority to the default list.
14920       Closes ticket 23910.
14921     - The directory authority "Longclaw" has changed its IP address.
14922       Closes ticket 23592.
14924   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
14925     - Fix a timing-based assertion failure that could occur when the
14926       circuit out-of-memory handler freed a connection's output buffer.
14927       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
14929   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
14930     - Remove longclaw's IPv6 address, as it will soon change. Authority
14931       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
14932       3/8 directory authorities with IPv6 addresses, but there are also
14933       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
14935   o Minor features (geoip):
14936     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
14937       Country database.
14940 Changes in version 0.2.9.13 - 2017-10-25
14941   Tor 0.2.9.13 backports a collection of bugfixes from later Tor release
14942   series, including a bugfix for a crash issue that had affected relays
14943   under memory pressure. It also adds a new directory authority, Bastet.
14945   o Directory authority changes:
14946     - Add "Bastet" as a ninth directory authority to the default list.
14947       Closes ticket 23910.
14948     - The directory authority "Longclaw" has changed its IP address.
14949       Closes ticket 23592.
14951   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
14952     - Fix a timing-based assertion failure that could occur when the
14953       circuit out-of-memory handler freed a connection's output buffer.
14954       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
14956   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
14957     - Remove longclaw's IPv6 address, as it will soon change. Authority
14958       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
14959       3/8 directory authorities with IPv6 addresses, but there are also
14960       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
14962   o Minor features (geoip):
14963     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
14964       Country database.
14966   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
14967     - When a directory authority rejects a descriptor or extrainfo with
14968       a given digest, mark that digest as undownloadable, so that we do
14969       not attempt to download it again over and over. We previously
14970       tried to avoid downloading such descriptors by other means, but we
14971       didn't notice if we accidentally downloaded one anyway. This
14972       behavior became problematic in 0.2.7.2-alpha, when authorities
14973       began pinning Ed25519 keys. Fixes bug 22349; bugfix
14974       on 0.2.1.19-alpha.
14976   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
14977     - Clear the address when node_get_prim_orport() returns early.
14978       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
14980   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
14981     - When running as a Windows service, set the ID of the main thread
14982       correctly. Failure to do so made us fail to send log messages to
14983       the controller in 0.2.1.16-rc, slowed down controller event
14984       delivery in 0.2.7.3-rc and later, and crash with an assertion
14985       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
14986       Patch and diagnosis from "Vort".
14989 Changes in version 0.3.0.12 - 2017-10-25
14990   Tor 0.3.0.12 backports a collection of bugfixes from later Tor release
14991   series, including a bugfix for a crash issue that had affected relays
14992   under memory pressure. It also adds a new directory authority, Bastet.
14994   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
14995   2018. If you need a release with long-term support, please stick with
14996   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
14998   o Directory authority changes:
14999     - Add "Bastet" as a ninth directory authority to the default list.
15000       Closes ticket 23910.
15001     - The directory authority "Longclaw" has changed its IP address.
15002       Closes ticket 23592.
15004   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
15005     - Fix a timing-based assertion failure that could occur when the
15006       circuit out-of-memory handler freed a connection's output buffer.
15007       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
15009   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
15010     - Remove longclaw's IPv6 address, as it will soon change. Authority
15011       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
15012       3/8 directory authorities with IPv6 addresses, but there are also
15013       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
15015   o Minor features (geoip):
15016     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
15017       Country database.
15019   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
15020     - When a directory authority rejects a descriptor or extrainfo with
15021       a given digest, mark that digest as undownloadable, so that we do
15022       not attempt to download it again over and over. We previously
15023       tried to avoid downloading such descriptors by other means, but we
15024       didn't notice if we accidentally downloaded one anyway. This
15025       behavior became problematic in 0.2.7.2-alpha, when authorities
15026       began pinning Ed25519 keys. Fixes bug 22349; bugfix
15027       on 0.2.1.19-alpha.
15029   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
15030     - Avoid a possible double close of a circuit by the intro point on
15031       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
15032       bugfix on 0.3.0.1-alpha.
15034   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
15035     - Clear the address when node_get_prim_orport() returns early.
15036       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
15038   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
15039     - When running as a Windows service, set the ID of the main thread
15040       correctly. Failure to do so made us fail to send log messages to
15041       the controller in 0.2.1.16-rc, slowed down controller event
15042       delivery in 0.2.7.3-rc and later, and crash with an assertion
15043       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
15044       Patch and diagnosis from "Vort".
15047 Changes in version 0.3.1.8 - 2017-10-25
15048   Tor 0.3.1.8 is the second stable release in the 0.3.1 series.
15049   It includes several bugfixes, including a bugfix for a crash issue
15050   that had affected relays under memory pressure. It also adds
15051   a new directory authority, Bastet.
15053   o Directory authority changes:
15054     - Add "Bastet" as a ninth directory authority to the default list.
15055       Closes ticket 23910.
15056     - The directory authority "Longclaw" has changed its IP address.
15057       Closes ticket 23592.
15059   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
15060     - Fix a timing-based assertion failure that could occur when the
15061       circuit out-of-memory handler freed a connection's output buffer.
15062       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
15064   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
15065     - Remove longclaw's IPv6 address, as it will soon change. Authority
15066       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
15067       3/8 directory authorities with IPv6 addresses, but there are also
15068       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
15070   o Minor features (geoip):
15071     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
15072       Country database.
15074   o Minor bugfixes (compilation, backport from 0.3.2.2-alpha):
15075     - Fix a compilation warning when building with zstd support on
15076       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
15077       and fixed by Andreas Stieger.
15079   o Minor bugfixes (compression, backport from 0.3.2.2-alpha):
15080     - Handle a pathological case when decompressing Zstandard data when
15081       the output buffer size is zero. Fixes bug 23551; bugfix
15082       on 0.3.1.1-alpha.
15084   o Minor bugfixes (directory authority, backport from 0.3.2.1-alpha):
15085     - Remove the length limit on HTTP status lines that authorities can
15086       send in their replies. Fixes bug 23499; bugfix on 0.3.1.6-rc.
15088   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
15089     - Avoid a possible double close of a circuit by the intro point on
15090       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
15091       bugfix on 0.3.0.1-alpha.
15093   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
15094     - Clear the address when node_get_prim_orport() returns early.
15095       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
15097   o Minor bugfixes (unit tests, backport from 0.3.2.2-alpha):
15098     - Fix additional channelpadding unit test failures by using mocked
15099       time instead of actual time for all tests. Fixes bug 23608; bugfix
15100       on 0.3.1.1-alpha.
15103 Changes in version 0.3.2.2-alpha - 2017-09-29
15104   Tor 0.3.2.2-alpha is the second release in the 0.3.2 series. This
15105   release fixes several minor bugs in the new scheduler and next-
15106   generation onion services; both features were newly added in the 0.3.2
15107   series. Other fixes in this alpha include several fixes for non-fatal
15108   tracebacks which would appear in logs.
15110   With the aim to stabilise the 0.3.2 series by 15 December 2017, this
15111   alpha does not contain any substantial new features. Minor features
15112   include better testing and logging.
15114   The following comprises the complete list of changes included
15115   in 0.3.2.2-alpha:
15117   o Major bugfixes (relay, crash, assertion failure):
15118     - Fix a timing-based assertion failure that could occur when the
15119       circuit out-of-memory handler freed a connection's output buffer.
15120       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
15122   o Major bugfixes (scheduler):
15123     - If a channel is put into the scheduler's pending list, then it
15124       starts closing, and then if the scheduler runs before it finishes
15125       closing, the scheduler will get stuck trying to flush its cells
15126       while the lower layers refuse to cooperate. Fix that race
15127       condition by giving the scheduler an escape method. Fixes bug
15128       23676; bugfix on 0.3.2.1-alpha.
15130   o Minor features (build, compilation):
15131     - The "check-changes" feature is now part of the "make check" tests;
15132       we'll use it to try to prevent misformed changes files from
15133       accumulating. Closes ticket 23564.
15134     - Tor builds should now fail if there are any mismatches between the
15135       C type representing a configuration variable and the C type the
15136       data-driven parser uses to store a value there. Previously, we
15137       needed to check these by hand, which sometimes led to mistakes.
15138       Closes ticket 23643.
15140   o Minor features (directory authorities):
15141     - Remove longclaw's IPv6 address, as it will soon change. Authority
15142       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
15143       3/8 directory authorities with IPv6 addresses, but there are also
15144       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
15146   o Minor features (hidden service, circuit, logging):
15147     - Improve logging of many callsite in the circuit subsystem to print
15148       the circuit identifier(s).
15149     - Log when we cleanup an intro point from a service so we know when
15150       and for what reason it happened. Closes ticket 23604.
15152   o Minor features (logging):
15153     - Log more circuit information whenever we are about to try to
15154       package a relay cell on a circuit with a nonexistent n_chan.
15155       Attempt to diagnose ticket 8185.
15156     - Improve info-level log identification of particular circuits, to
15157       help with debugging. Closes ticket 23645.
15159   o Minor features (relay):
15160     - When choosing which circuits can be expired as unused, consider
15161       circuits from clients even if those clients used regular CREATE
15162       cells to make them; and do not consider circuits from relays even
15163       if they were made with CREATE_FAST. Part of ticket 22805.
15165   o Minor features (robustness):
15166     - Change several fatal assertions when flushing buffers into non-
15167       fatal assertions, to prevent any recurrence of 23690.
15169   o Minor features (spec conformance, bridge, diagnostic):
15170     - When handling the USERADDR command on an ExtOrPort, warn when the
15171       transports provides a USERADDR with no port. In a future version,
15172       USERADDR commands of this format may be rejected. Detects problems
15173       related to ticket 23080.
15175   o Minor features (testing):
15176     - Add a unit test to make sure that our own generated platform
15177       string will be accepted by directory authorities. Closes
15178       ticket 22109.
15180   o Minor bugfixes (bootstrapping):
15181     - When warning about state file clock skew, report the correct
15182       direction for the detected skew. Fixes bug 23606; bugfix
15183       on 0.2.8.1-alpha.
15184     - Avoid an assertion failure when logging a state file clock skew
15185       very early in bootstrapping. Fixes bug 23607; bugfix
15186       on 0.3.2.1-alpha.
15188   o Minor bugfixes (build, compilation):
15189     - Fix a compilation warning when building with zstd support on
15190       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
15191       and fixed by Andreas Stieger.
15192     - When searching for OpenSSL, don't accept any OpenSSL library that
15193       lacks TLSv1_1_method(): Tor doesn't build with those versions.
15194       Additionally, look in /usr/local/opt/openssl, if it's present.
15195       These changes together repair the default build on OSX systems
15196       with Homebrew installed. Fixes bug 23602; bugfix on 0.2.7.2-alpha.
15198   o Minor bugfixes (compression):
15199     - Handle a pathological case when decompressing Zstandard data when
15200       the output buffer size is zero. Fixes bug 23551; bugfix
15201       on 0.3.1.1-alpha.
15203   o Minor bugfixes (documentation):
15204     - Fix manpage to not refer to the obsolete (and misspelled)
15205       UseEntryGuardsAsDirectoryGuards parameter in the description of
15206       NumDirectoryGuards. Fixes bug 23611; bugfix on 0.2.4.8-alpha.
15208   o Minor bugfixes (hidden service v3):
15209     - Don't log an assertion failure when we can't find the right
15210       information to extend to an introduction point. In rare cases,
15211       this could happen, causing a warning, even though tor would
15212       recover gracefully. Fixes bug 23159; bugfix on 0.3.2.1-alpha.
15213     - Pad RENDEZVOUS cell up to the size of the legacy cell which is
15214       much bigger so the rendezvous point can't distinguish which hidden
15215       service protocol is being used. Fixes bug 23420; bugfix
15216       on 0.3.2.1-alpha.
15218   o Minor bugfixes (hidden service, relay):
15219     - Avoid a possible double close of a circuit by the intro point on
15220       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
15221       bugfix on 0.3.0.1-alpha.
15223   o Minor bugfixes (logging, relay shutdown, annoyance):
15224     - When a circuit is marked for close, do not attempt to package any
15225       cells for channels on that circuit. Previously, we would detect
15226       this condition lower in the call stack, when we noticed that the
15227       circuit had no attached channel, and log an annoying message.
15228       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
15230   o Minor bugfixes (scheduler):
15231     - When switching schedulers due to a consensus change, we didn't
15232       give the new scheduler a chance to react to the consensus. Fix
15233       that. Fixes bug 23537; bugfix on 0.3.2.1-alpha.
15234     - Make the KISTSchedRunInterval option a non negative value. With
15235       this, the way to disable KIST through the consensus is to set it
15236       to 0. Fixes bug 23539; bugfix on 0.3.2.1-alpha.
15237     - Only notice log the selected scheduler when we switch scheduler
15238       types. Fixes bug 23552; bugfix on 0.3.2.1-alpha.
15239     - Avoid a compilation warning on macOS in scheduler_ev_add() caused
15240       by a different tv_usec data type. Fixes bug 23575; bugfix
15241       on 0.3.2.1-alpha.
15242     - Make a hard exit if tor is unable to pick a scheduler which can
15243       happen if the user specifies a scheduler type that is not
15244       supported and not other types in Schedulers. Fixes bug 23581;
15245       bugfix on 0.3.2.1-alpha.
15246     - Properly initialize the scheduler last run time counter so it is
15247       not 0 at the first tick. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
15249   o Minor bugfixes (testing):
15250     - Capture and detect several "Result does not fit" warnings in unit
15251       tests on platforms with 32-bit time_t. Fixes bug 21800; bugfix
15252       on 0.2.9.3-alpha.
15253     - Fix additional channelpadding unit test failures by using mocked
15254       time instead of actual time for all tests. Fixes bug 23608; bugfix
15255       on 0.3.1.1-alpha.
15256     - The removal of some old scheduler options caused some tests to
15257       fail on BSD systems. Assume current behavior is correct and make
15258       the tests pass again. Fixes bug 23566; bugfix on 0.3.2.1-alpha.
15260   o Code simplification and refactoring:
15261     - Remove various ways of testing circuits and connections for
15262       "clientness"; instead, favor channel_is_client(). Part of
15263       ticket 22805.
15265   o Deprecated features:
15266     - The ReachableDirAddresses and ClientPreferIPv6DirPort options are
15267       now deprecated; they do not apply to relays, and they have had no
15268       effect on clients since 0.2.8.x. Closes ticket 19704.
15270   o Documentation:
15271     - HiddenServiceVersion man page entry wasn't mentioning the now
15272       supported version 3. Fixes ticket 23580; bugfix on 0.3.2.1-alpha.
15273     - Clarify that the Address option is entirely about setting an
15274       advertised IPv4 address. Closes ticket 18891.
15275     - Clarify the manpage's use of the term "address" to clarify what
15276       kind of address is intended. Closes ticket 21405.
15277     - Document that onion service subdomains are allowed, and ignored.
15278       Closes ticket 18736.
15281 Changes in version 0.3.2.1-alpha - 2017-09-18
15282   Tor 0.3.2.1-alpha is the first release in the 0.3.2.x series. It
15283   includes support for our next-generation ("v3") onion service
15284   protocol, and adds a new circuit scheduler for more responsive
15285   forwarding decisions from relays. There are also numerous other small
15286   features and bugfixes here.
15288   Below are the changes since Tor 0.3.1.7.
15290   o Major feature (scheduler, channel):
15291     - Tor now uses new schedulers to decide which circuits should
15292       deliver cells first, in order to improve congestion at relays. The
15293       first type is called "KIST" ("Kernel Informed Socket Transport"),
15294       and is only available on Linux-like systems: it uses feedback from
15295       the kernel to prevent the kernel's TCP buffers from growing too
15296       full. The second new scheduler type is called "KISTLite": it
15297       behaves the same as KIST, but runs on systems without kernel
15298       support for inspecting TCP implementation details. The old
15299       scheduler is still available, under the name "Vanilla". To change
15300       the default scheduler preference order, use the new "Schedulers"
15301       option. (The default preference order is "KIST,KISTLite,Vanilla".)
15303       Matt Traudt implemented KIST, based on research by Rob Jansen,
15304       John Geddes, Christ Wacek, Micah Sherr, and Paul Syverson. For
15305       more information, see the design paper at
15306       http://www.robgjansen.com/publications/kist-sec2014.pdf and the
15307       followup implementation paper at https://arxiv.org/abs/1709.01044.
15308       Closes ticket 12541.
15310   o Major features (next-generation onion services):
15311     - Tor now supports the next-generation onion services protocol for
15312       clients and services! As part of this release, the core of
15313       proposal 224 has been implemented and is available for
15314       experimentation and testing by our users. This newer version of
15315       onion services ("v3") features many improvements over the legacy
15316       system, including:
15318       a) Better crypto (replaced SHA1/DH/RSA1024
15319       with SHA3/ed25519/curve25519)
15321       b) Improved directory protocol, leaking much less information to
15322       directory servers.
15324       c) Improved directory protocol, with smaller surface for
15325       targeted attacks.
15327       d) Better onion address security against impersonation.
15329       e) More extensible introduction/rendezvous protocol.
15331       f) A cleaner and more modular codebase.
15333       You can identify a next-generation onion address by its length:
15334       they are 56 characters long, as in
15335       "4acth47i6kxnvkewtm6q7ib2s3ufpo5sqbsnzjpbi7utijcltosqemad.onion".
15337       In the future, we will release more options and features for v3
15338       onion services, but we first need a testing period, so that the
15339       current codebase matures and becomes more robust. Planned features
15340       include: offline keys, advanced client authorization, improved
15341       guard algorithms, and statistics. For full details, see
15342       proposal 224.
15344       Legacy ("v2") onion services will still work for the foreseeable
15345       future, and will remain the default until this new codebase gets
15346       tested and hardened. Service operators who want to experiment with
15347       the new system can use the 'HiddenServiceVersion 3' torrc
15348       directive along with the regular onion service configuration
15349       options. We will publish a blog post about this new feature
15350       soon! Enjoy!
15352   o Major bugfixes (usability, control port):
15353     - Report trusted clock skew indications as bootstrap errors, so
15354       controllers can more easily alert users when their clocks are
15355       wrong. Fixes bug 23506; bugfix on 0.1.2.6-alpha.
15357   o Minor features (bug detection):
15358     - Log a warning message with a stack trace for any attempt to call
15359       get_options() during option validation. This pattern has caused
15360       subtle bugs in the past. Closes ticket 22281.
15362   o Minor features (client):
15363     - You can now use Tor as a tunneled HTTP proxy: use the new
15364       HTTPTunnelPort option to open a port that accepts HTTP CONNECT
15365       requests. Closes ticket 22407.
15366     - Add an extra check to make sure that we always use the newer guard
15367       selection code for picking our guards. Closes ticket 22779.
15368     - When downloading (micro)descriptors, don't split the list into
15369       multiple requests unless we want at least 32 descriptors.
15370       Previously, we split at 4, not 32, which led to significant
15371       overhead in HTTP request size and degradation in compression
15372       performance. Closes ticket 23220.
15374   o Minor features (command line):
15375     - Add a new commandline option, --key-expiration, which prints when
15376       the current signing key is going to expire. Implements ticket
15377       17639; patch by Isis Lovecruft.
15379   o Minor features (control port):
15380     - If an application tries to use the control port as an HTTP proxy,
15381       respond with a meaningful "This is the Tor control port" message,
15382       and log the event. Closes ticket 1667. Patch from Ravi
15383       Chandra Padmala.
15384     - Provide better error message for GETINFO desc/(id|name) when not
15385       fetching router descriptors. Closes ticket 5847. Patch by
15386       Kevin Butler.
15387     - Add GETINFO "{desc,md}/download-enabled", to inform the controller
15388       whether Tor will try to download router descriptors and
15389       microdescriptors respectively. Closes ticket 22684.
15390     - Added new GETINFO targets "ip-to-country/{ipv4,ipv6}-available",
15391       so controllers can tell whether the geoip databases are loaded.
15392       Closes ticket 23237.
15393     - Adds a timestamp field to the CIRC_BW and STREAM_BW bandwidth
15394       events. Closes ticket 19254. Patch by "DonnchaC".
15396   o Minor features (development support):
15397     - Developers can now generate a call-graph for Tor using the
15398       "calltool" python program, which post-processes object dumps. It
15399       should work okay on many Linux and OSX platforms, and might work
15400       elsewhere too. To run it, install calltool from
15401       https://gitweb.torproject.org/user/nickm/calltool.git and run
15402       "make callgraph". Closes ticket 19307.
15404   o Minor features (ed25519):
15405     - Add validation function to checks for torsion components in
15406       ed25519 public keys, used by prop224 client-side code. Closes
15407       ticket 22006. Math help by Ian Goldberg.
15409   o Minor features (exit relay, DNS):
15410     - Improve the clarity and safety of the log message from evdns when
15411       receiving an apparently spoofed DNS reply. Closes ticket 3056.
15413   o Minor features (integration, hardening):
15414     - Add a new NoExec option to prevent Tor from running other
15415       programs. When this option is set to 1, Tor will never try to run
15416       another program, regardless of the settings of
15417       PortForwardingHelper, ClientTransportPlugin, or
15418       ServerTransportPlugin. Once NoExec is set, it cannot be disabled
15419       without restarting Tor. Closes ticket 22976.
15421   o Minor features (logging):
15422     - Improve the warning message for specifying a relay by nickname.
15423       The previous message implied that nickname registration was still
15424       part of the Tor network design, which it isn't. Closes
15425       ticket 20488.
15426     - If the sandbox filter fails to load, suggest to the user that
15427       their kernel might not support seccomp2. Closes ticket 23090.
15429   o Minor features (portability):
15430     - Check at configure time whether uint8_t is the same type as
15431       unsigned char. Lots of existing code already makes this
15432       assumption, and there could be strict aliasing issues if the
15433       assumption is violated. Closes ticket 22410.
15435   o Minor features (relay, configuration):
15436     - Reject attempts to use relative file paths when RunAsDaemon is
15437       set. Previously, Tor would accept these, but the directory-
15438       changing step of RunAsDaemon would give strange and/or confusing
15439       results. Closes ticket 22731.
15441   o Minor features (startup, safety):
15442     - When configured to write a PID file, Tor now exits if it is unable
15443       to do so. Previously, it would warn and continue. Closes
15444       ticket 20119.
15446   o Minor features (static analysis):
15447     - The BUG() macro has been changed slightly so that Coverity no
15448       longer complains about dead code if the bug is impossible. Closes
15449       ticket 23054.
15451   o Minor features (testing):
15452     - The default chutney network tests now include tests for the v3
15453       hidden service design. Make sure you have the latest version of
15454       chutney if you want to run these. Closes ticket 22437.
15455     - Add a unit test to verify that we can parse a hardcoded v2 hidden
15456       service descriptor. Closes ticket 15554.
15458   o Minor bugfixes (certificate handling):
15459     - Fix a time handling bug in Tor certificates set to expire after
15460       the year 2106. Fixes bug 23055; bugfix on 0.3.0.1-alpha. Found by
15461       Coverity as CID 1415728.
15463   o Minor bugfixes (client, usability):
15464     - Refrain from needlessly rejecting SOCKS5-with-hostnames and
15465       SOCKS4a requests that contain IP address strings, even when
15466       SafeSocks in enabled, as this prevents user from connecting to
15467       known IP addresses without relying on DNS for resolving. SafeSocks
15468       still rejects SOCKS connections that connect to IP addresses when
15469       those addresses are _not_ encoded as hostnames. Fixes bug 22461;
15470       bugfix on Tor 0.2.6.2-alpha.
15472   o Minor bugfixes (code correctness):
15473     - Call htons() in extend_cell_format() for encoding a 16-bit value.
15474       Previously we used ntohs(), which happens to behave the same on
15475       all the platforms we support, but which isn't really correct.
15476       Fixes bug 23106; bugfix on 0.2.4.8-alpha.
15477     - For defense-in-depth, make the controller's write_escaped_data()
15478       function robust to extremely long inputs. Fixes bug 19281; bugfix
15479       on 0.1.1.1-alpha. Reported by Guido Vranken.
15481   o Minor bugfixes (compilation):
15482     - Fix unused-variable warnings in donna's Curve25519 SSE2 code.
15483       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
15485   o Minor bugfixes (consensus expiry):
15486     - Check for adequate directory information correctly. Previously, Tor
15487       would reconsider whether it had sufficient directory information
15488       every 2 minutes. Fixes bug 23091; bugfix on 0.2.0.19-alpha.
15490   o Minor bugfixes (directory protocol):
15491     - Directory servers now include a "Date:" http header for response
15492       codes other than 200. Clients starting with a skewed clock and a
15493       recent consensus were getting "304 Not modified" responses from
15494       directory authorities, so without the Date header, the client
15495       would never hear about a wrong clock. Fixes bug 23499; bugfix
15496       on 0.0.8rc1.
15497     - Make clients wait for 6 seconds before trying to download a
15498       consensus from an authority. Fixes bug 17750; bugfix
15499       on 0.2.8.1-alpha.
15501   o Minor bugfixes (DoS-resistance):
15502     - If future code asks if there are any running bridges, without
15503       checking if bridges are enabled, log a BUG warning rather than
15504       crashing. Fixes bug 23524; bugfix on 0.3.0.1-alpha.
15506   o Minor bugfixes (format strictness):
15507     - Restrict several data formats to decimal. Previously, the
15508       BuildTimeHistogram entries in the state file, the "bw=" entries in
15509       the bandwidth authority file, and the process IDs passed to the
15510       __OwningControllerProcess option could all be specified in hex or
15511       octal as well as in decimal. This was not an intentional feature.
15512       Fixes bug 22802; bugfixes on 0.2.2.1-alpha, 0.2.2.2-alpha,
15513       and 0.2.2.28-beta.
15515   o Minor bugfixes (heartbeat):
15516     - If we fail to write a heartbeat message, schedule a retry for the
15517       minimum heartbeat interval number of seconds in the future. Fixes
15518       bug 19476; bugfix on 0.2.3.1-alpha.
15520   o Minor bugfixes (linux seccomp2 sandbox, logging):
15521     - Fix some messages on unexpected errors from the seccomp2 library.
15522       Fixes bug 22750; bugfix on 0.2.5.1-alpha. Patch from "cypherpunks".
15524   o Minor bugfixes (logging):
15525     - Remove duplicate log messages regarding opening non-local
15526       SocksPorts upon parsing config and opening listeners at startup.
15527       Fixes bug 4019; bugfix on 0.2.3.3-alpha.
15528     - Use a more comprehensible log message when telling the user
15529       they've excluded every running exit node. Fixes bug 7890; bugfix
15530       on 0.2.2.25-alpha.
15531     - When logging the number of descriptors we intend to download per
15532       directory request, do not log a number higher than then the number
15533       of descriptors we're fetching in total. Fixes bug 19648; bugfix
15534       on 0.1.1.8-alpha.
15535     - When warning about a directory owned by the wrong user, log the
15536       actual name of the user owning the directory. Previously, we'd log
15537       the name of the process owner twice. Fixes bug 23487; bugfix
15538       on 0.2.9.1-alpha.
15539     - The tor specification says hop counts are 1-based, so fix two log
15540       messages that mistakenly logged 0-based hop counts. Fixes bug
15541       18982; bugfix on 0.2.6.2-alpha and 0.2.4.5-alpha. Patch by teor.
15542       Credit to Xiaofan Li for reporting this issue.
15544   o Minor bugfixes (portability):
15545     - Stop using the PATH_MAX variable, which is not defined on GNU
15546       Hurd. Fixes bug 23098; bugfix on 0.3.1.1-alpha.
15548   o Minor bugfixes (relay):
15549     - When uploading our descriptor for the first time after startup,
15550       report the reason for uploading as "Tor just started" rather than
15551       leaving it blank. Fixes bug 22885; bugfix on 0.2.3.4-alpha.
15552     - Avoid unnecessary calls to directory_fetches_from_authorities() on
15553       relays, to prevent spurious address resolutions and descriptor
15554       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
15555       bugfix on in 0.2.8.1-alpha.
15557   o Minor bugfixes (tests):
15558     - Fix a broken unit test for the OutboundAddress option: the parsing
15559       function was never returning an error on failure. Fixes bug 23366;
15560       bugfix on 0.3.0.3-alpha.
15561     - Fix a signed-integer overflow in the unit tests for
15562       dir/download_status_random_backoff, which was untriggered until we
15563       fixed bug 17750. Fixes bug 22924; bugfix on 0.2.9.1-alpha.
15565   o Minor bugfixes (usability, control port):
15566     - Stop making an unnecessary routerlist check in NETINFO clock skew
15567       detection; this was preventing clients from reporting NETINFO clock
15568       skew to controllers. Fixes bug 23532; bugfix on 0.2.4.4-alpha.
15570   o Code simplification and refactoring:
15571     - Extract the code for handling newly-open channels into a separate
15572       function from the general code to handle channel state
15573       transitions. This change simplifies our callgraph, reducing the
15574       size of the largest strongly connected component by roughly a
15575       factor of two. Closes ticket 22608.
15576     - Remove dead code for largely unused statistics on the number of
15577       times we've attempted various public key operations. Fixes bug
15578       19871; bugfix on 0.1.2.4-alpha. Fix by Isis Lovecruft.
15579     - Remove several now-obsolete functions for asking about old
15580       variants directory authority status. Closes ticket 22311; patch
15581       from "huyvq".
15582     - Remove some of the code that once supported "Named" and "Unnamed"
15583       routers. Authorities no longer vote for these flags. Closes
15584       ticket 22215.
15585     - Rename the obsolete malleable hybrid_encrypt functions used in TAP
15586       and old hidden services, to indicate that they aren't suitable for
15587       new protocols or formats. Closes ticket 23026.
15588     - Replace our STRUCT_OFFSET() macro with offsetof(). Closes ticket
15589       22521. Patch from Neel Chauhan.
15590     - Split the enormous circuit_send_next_onion_skin() function into
15591       multiple subfunctions. Closes ticket 22804.
15592     - Split the portions of the buffer.c module that handle particular
15593       protocols into separate modules. Part of ticket 23149.
15594     - Use our test macros more consistently, to produce more useful
15595       error messages when our unit tests fail. Add coccinelle patches to
15596       allow us to re-check for test macro uses. Closes ticket 22497.
15598   o Deprecated features:
15599     - Deprecate HTTPProxy/HTTPProxyAuthenticator config options. They
15600       only applies to direct unencrypted HTTP connections to your
15601       directory server, which your Tor probably isn't using. Closes
15602       ticket 20575.
15604   o Documentation:
15605     - Clarify in the manual that "Sandbox 1" is only supported on Linux
15606       kernels. Closes ticket 22677.
15607     - Document all values of PublishServerDescriptor in the manpage.
15608       Closes ticket 15645.
15609     - Improve the documentation for the directory port part of the
15610       DirAuthority line. Closes ticket 20152.
15611     - Restore documentation for the authorities' "approved-routers"
15612       file. Closes ticket 21148.
15614   o Removed features:
15615     - The AllowDotExit option has been removed as unsafe. It has been
15616       deprecated since 0.2.9.2-alpha. Closes ticket 23426.
15617     - The ClientDNSRejectInternalAddresses flag can no longer be set on
15618       non-testing networks. It has been deprecated since 0.2.9.2-alpha.
15619       Closes ticket 21031.
15620     - The controller API no longer includes an AUTHDIR_NEWDESCS event:
15621       nobody was using it any longer. Closes ticket 22377.
15624 Changes in version 0.2.8.15 - 2017-09-18
15625   Tor 0.2.8.15 backports a collection of bugfixes from later
15626   Tor series.
15628   Most significantly, it includes a fix for TROVE-2017-008, a
15629   security bug that affects hidden services running with the
15630   SafeLogging option disabled. For more information, see
15631   https://trac.torproject.org/projects/tor/ticket/23490
15633   Note that Tor 0.2.8.x will no longer be supported after 1 Jan
15634   2018.  We suggest that you upgrade to the latest stable release if
15635   possible.  If you can't, we recommend that you upgrade at least to
15636   0.2.9, which will be supported until 2020.
15638   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
15639     - Avoid an assertion failure bug affecting our implementation of
15640       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
15641       handling of "0xx" differs from what we had expected. Fixes bug
15642       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
15644   o Minor features:
15645     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
15646       Country database.
15648   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
15649     - Backport a fix for an "unused variable" warning that appeared
15650       in some versions of mingw. Fixes bug 22838; bugfix on
15651       0.2.8.1-alpha.
15653   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
15654     - Fix a memset() off the end of an array when packing cells. This
15655       bug should be harmless in practice, since the corrupted bytes are
15656       still in the same structure, and are always padding bytes,
15657       ignored, or immediately overwritten, depending on compiler
15658       behavior. Nevertheless, because the memset()'s purpose is to make
15659       sure that any other cell-handling bugs can't expose bytes to the
15660       network, we need to fix it. Fixes bug 22737; bugfix on
15661       0.2.4.11-alpha. Fixes CID 1401591.
15663   o Build features (backport from 0.3.1.5-alpha):
15664     - Tor's repository now includes a Travis Continuous Integration (CI)
15665       configuration file (.travis.yml). This is meant to help new
15666       developers and contributors who fork Tor to a Github repository be
15667       better able to test their changes, and understand what we expect
15668       to pass. To use this new build feature, you must fork Tor to your
15669       Github account, then go into the "Integrations" menu in the
15670       repository settings for your fork and enable Travis, then push
15671       your changes. Closes ticket 22636.
15674 Changes in version 0.2.9.12 - 2017-09-18
15675   Tor 0.2.9.12 backports a collection of bugfixes from later
15676   Tor series.
15678   Most significantly, it includes a fix for TROVE-2017-008, a
15679   security bug that affects hidden services running with the
15680   SafeLogging option disabled. For more information, see
15681   https://trac.torproject.org/projects/tor/ticket/23490
15683   o Major features (security, backport from 0.3.0.2-alpha):
15684     - Change the algorithm used to decide DNS TTLs on client and server
15685       side, to better resist DNS-based correlation attacks like the
15686       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
15687       Feamster. Now relays only return one of two possible DNS TTL
15688       values, and clients are willing to believe DNS TTL values up to 3
15689       hours long. Closes ticket 19769.
15691   o Major bugfixes (crash, directory connections, backport from 0.3.0.5-rc):
15692     - Fix a rare crash when sending a begin cell on a circuit whose
15693       linked directory connection had already been closed. Fixes bug
15694       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
15696   o Major bugfixes (DNS, backport from 0.3.0.2-alpha):
15697     - Fix a bug that prevented exit nodes from caching DNS records for
15698       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
15700   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
15701     - Fix a typo that had prevented TPROXY-based transparent proxying
15702       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
15703       Patch from "d4fq0fQAgoJ".
15705   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
15706     - Avoid an assertion failure bug affecting our implementation of
15707       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
15708       handling of "0xx" differs from what we had expected. Fixes bug
15709       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
15711   o Minor features (code style, backport from 0.3.1.3-alpha):
15712     - Add "Falls through" comments to our codebase, in order to silence
15713       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
15714       Stieger. Closes ticket 22446.
15716   o Minor features (geoip):
15717     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
15718       Country database.
15720   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.1-alpha):
15721     - Roll over monthly accounting at the configured hour and minute,
15722       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
15723       Found by Andrey Karpov with PVS-Studio.
15725   o Minor bugfixes (compilation, backport from 0.3.1.5-alpha):
15726     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
15727       bugfix on 0.2.8.1-alpha.
15728     - Fix warnings when building with libscrypt and openssl scrypt support
15729       on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
15730     - When building with certain versions the mingw C header files, avoid
15731       float-conversion warnings when calling the C functions isfinite(),
15732       isnan(), and signbit(). Fixes bug 22801; bugfix on 0.2.8.1-alpha.
15734   o Minor bugfixes (compilation, backport from 0.3.1.7):
15735     - Avoid compiler warnings in the unit tests for running tor_sscanf()
15736       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
15738   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
15739     - Backport a fix for an "unused variable" warning that appeared
15740       in some versions of mingw. Fixes bug 22838; bugfix on
15741       0.2.8.1-alpha.
15743   o Minor bugfixes (controller, backport from 0.3.1.7):
15744     - Do not crash when receiving a HSPOST command with an empty body.
15745       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
15746     - Do not crash when receiving a POSTDESCRIPTOR command with an
15747       empty body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
15749   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
15750     - Avoid Coverity build warnings related to our BUG() macro. By
15751       default, Coverity treats BUG() as the Linux kernel does: an
15752       instant abort(). We need to override that so our BUG() macro
15753       doesn't prevent Coverity from analyzing functions that use it.
15754       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
15756   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
15757     - Fix a memset() off the end of an array when packing cells. This
15758       bug should be harmless in practice, since the corrupted bytes are
15759       still in the same structure, and are always padding bytes,
15760       ignored, or immediately overwritten, depending on compiler
15761       behavior. Nevertheless, because the memset()'s purpose is to make
15762       sure that any other cell-handling bugs can't expose bytes to the
15763       network, we need to fix it. Fixes bug 22737; bugfix on
15764       0.2.4.11-alpha. Fixes CID 1401591.
15766   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
15767     - When setting the maximum number of connections allowed by the OS,
15768       always allow some extra file descriptors for other files. Fixes
15769       bug 22797; bugfix on 0.2.0.10-alpha.
15771   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
15772     - Avoid a sandbox failure when trying to re-bind to a socket and
15773       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
15775   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
15776     - Permit the fchmod system call, to avoid crashing on startup when
15777       starting with the seccomp2 sandbox and an unexpected set of
15778       permissions on the data directory or its contents. Fixes bug
15779       22516; bugfix on 0.2.5.4-alpha.
15781   o Minor bugfixes (relay, backport from 0.3.0.5-rc):
15782     - Avoid a double-marked-circuit warning that could happen when we
15783       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
15784       on 0.1.0.1-rc.
15786   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
15787     - Reject version numbers with non-numeric prefixes (such as +, -, or
15788       whitespace). Disallowing whitespace prevents differential version
15789       parsing between POSIX-based and Windows platforms. Fixes bug 21507
15790       and part of 21508; bugfix on 0.0.8pre1.
15792   o Build features (backport from 0.3.1.5-alpha):
15793     - Tor's repository now includes a Travis Continuous Integration (CI)
15794       configuration file (.travis.yml). This is meant to help new
15795       developers and contributors who fork Tor to a Github repository be
15796       better able to test their changes, and understand what we expect
15797       to pass. To use this new build feature, you must fork Tor to your
15798       Github account, then go into the "Integrations" menu in the
15799       repository settings for your fork and enable Travis, then push
15800       your changes. Closes ticket 22636.
15803 Changes in version 0.3.0.11 - 2017-09-18
15804   Tor 0.3.0.11 backports a collection of bugfixes from Tor the 0.3.1
15805   series.
15807   Most significantly, it includes a fix for TROVE-2017-008, a
15808   security bug that affects hidden services running with the
15809   SafeLogging option disabled. For more information, see
15810   https://trac.torproject.org/projects/tor/ticket/23490
15812   o Minor features (code style, backport from 0.3.1.7):
15813     - Add "Falls through" comments to our codebase, in order to silence
15814       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
15815       Stieger. Closes ticket 22446.
15817   o Minor features:
15818     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
15819       Country database.
15821   o Minor bugfixes (compilation, backport from 0.3.1.7):
15822     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
15823       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
15825   o Minor bugfixes (controller, backport from 0.3.1.7):
15826     - Do not crash when receiving a HSPOST command with an empty body.
15827       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
15828     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
15829       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
15831   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
15832     - When setting the maximum number of connections allowed by the OS,
15833       always allow some extra file descriptors for other files. Fixes
15834       bug 22797; bugfix on 0.2.0.10-alpha.
15836   o Minor bugfixes (logging, relay, backport from 0.3.1.6-rc):
15837     - Remove a forgotten debugging message when an introduction point
15838       successfully establishes a hidden service prop224 circuit with
15839       a client.
15840     - Change three other log_warn() for an introduction point to
15841       protocol warnings, because they can be failure from the network
15842       and are not relevant to the operator. Fixes bug 23078; bugfix on
15843       0.3.0.1-alpha and 0.3.0.2-alpha.
15846 Changes in version 0.3.1.7 - 2017-09-18
15847   Tor 0.3.1.7 is the first stable release in the 0.3.1 series.
15849   With the 0.3.1 series, Tor now serves and downloads directory
15850   information in more compact formats, to save on bandwidth overhead. It
15851   also contains a new padding system to resist netflow-based traffic
15852   analysis, and experimental support for building parts of Tor in Rust
15853   (though no parts of Tor are in Rust yet). There are also numerous
15854   small features, bugfixes on earlier release series, and groundwork for
15855   the hidden services revamp of 0.3.2.
15857   This release also includes a fix for TROVE-2017-008, a security bug
15858   that affects hidden services running with the SafeLogging option
15859   disabled. For more information, see
15860   https://trac.torproject.org/projects/tor/ticket/23490
15862   Per our stable release policy, we plan to support each stable release
15863   series for at least the next nine months, or for three months after
15864   the first stable release of the next series: whichever is longer. If
15865   you need a release with long-term support, we recommend that you stay
15866   with the 0.2.9 series.
15868   Below is a list of the changes since 0.3.1.6-rc. For a list of all
15869   changes since 0.3.0, see the ReleaseNotes file.
15871   o Major bugfixes (security, hidden services, loggging):
15872     - Fix a bug where we could log uninitialized stack when a certain
15873       hidden service error occurred while SafeLogging was disabled.
15874       Fixes bug #23490; bugfix on 0.2.7.2-alpha. This is also tracked as
15875       TROVE-2017-008 and CVE-2017-0380.
15877   o Minor features (defensive programming):
15878     - Create a pair of consensus parameters, nf_pad_tor2web and
15879       nf_pad_single_onion, to disable netflow padding in the consensus
15880       for non-anonymous connections in case the overhead is high. Closes
15881       ticket 17857.
15883   o Minor features (diagnostic):
15884     - Add a stack trace to the bug warnings that can be logged when
15885       trying to send an outgoing relay cell with n_chan == 0. Diagnostic
15886       attempt for bug 23105.
15888   o Minor features (geoip):
15889     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
15890       Country database.
15892   o Minor bugfixes (compilation):
15893     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
15894       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
15896   o Minor bugfixes (controller):
15897     - Do not crash when receiving a HSPOST command with an empty body.
15898       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
15899     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
15900       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
15902   o Minor bugfixes (relay):
15903     - Inform the geoip and rephist modules about all requests, even on
15904       relays that are only fetching microdescriptors. Fixes a bug
15905       related to 21585; bugfix on 0.3.0.1-alpha.
15907   o Minor bugfixes (unit tests):
15908     - Fix a channelpadding unit test failure on slow systems by using
15909       mocked time instead of actual time. Fixes bug 23077; bugfix
15910       on 0.3.1.1-alpha.
15913 Changes in version 0.3.1.6-rc - 2017-09-05
15914   Tor 0.3.1.6-rc fixes a few small bugs and annoyances in the 0.3.1
15915   release series, including a bug that produced weird behavior on
15916   Windows directory caches.
15918   This is the first release candidate in the Tor 0.3.1 series. If we
15919   find no new bugs or regressions here, the first stable 0.3.1 release
15920   will be nearly identical to it.
15922   o Major bugfixes (windows, directory cache):
15923     - On Windows, do not try to delete cached consensus documents and
15924       diffs before they are unmapped from memory--Windows won't allow
15925       that. Instead, allow the consensus cache directory to grow larger,
15926       to hold files that might need to stay around longer. Fixes bug
15927       22752; bugfix on 0.3.1.1-alpha.
15929   o Minor features (directory authority):
15930     - Improve the message that authorities report to relays that present
15931       RSA/Ed25519 keypairs that conflict with previously pinned keys.
15932       Closes ticket 22348.
15934   o Minor features (geoip):
15935     - Update geoip and geoip6 to the August 3 2017 Maxmind GeoLite2
15936       Country database.
15938   o Minor features (testing):
15939     - Add more tests for compression backend initialization. Closes
15940       ticket 22286.
15942   o Minor bugfixes (directory cache):
15943     - Fix a memory leak when recovering space in the consensus cache.
15944       Fixes bug 23139; bugfix on 0.3.1.1-alpha.
15946   o Minor bugfixes (hidden service):
15947     - Increase the number of circuits that a service is allowed to
15948       open over a specific period of time. The value was lower than it
15949       should be (8 vs 12) in the normal case of 3 introduction points.
15950       Fixes bug 22159; bugfix on 0.3.0.5-rc.
15951     - Fix a BUG warning during HSv3 descriptor decoding that could be
15952       cause by a specially crafted descriptor. Fixes bug 23233; bugfix
15953       on 0.3.0.1-alpha. Bug found by "haxxpop".
15954     - Rate-limit the log messages if we exceed the maximum number of
15955       allowed intro circuits. Fixes bug 22159; bugfix on 0.3.1.1-alpha.
15957   o Minor bugfixes (logging, relay):
15958     - Remove a forgotten debugging message when an introduction point
15959       successfully establishes a hidden service prop224 circuit with
15960       a client.
15961     - Change three other log_warn() for an introduction point to
15962       protocol warnings, because they can be failure from the network
15963       and are not relevant to the operator. Fixes bug 23078; bugfix on
15964       0.3.0.1-alpha and 0.3.0.2-alpha.
15966   o Minor bugfixes (relay):
15967     - When a relay is not running as a directory cache, it will no
15968       longer generate compressed consensuses and consensus diff
15969       information. Previously, this was a waste of disk and CPU. Fixes
15970       bug 23275; bugfix on 0.3.1.1-alpha.
15972   o Minor bugfixes (robustness, error handling):
15973     - Improve our handling of the cases where OpenSSL encounters a
15974       memory error while encoding keys and certificates. We haven't
15975       observed these errors in the wild, but if they do happen, we now
15976       detect and respond better. Fixes bug 19418; bugfix on all versions
15977       of Tor. Reported by Guido Vranken.
15979   o Minor bugfixes (stability):
15980     - Avoid crashing on a double-free when unable to load or process an
15981       included file. Fixes bug 23155; bugfix on 0.3.1.1-alpha. Found
15982       with the clang static analyzer.
15984   o Minor bugfixes (testing):
15985     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
15986       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
15987     - Port the hs_ntor handshake test to work correctly with recent
15988       versions of the pysha3 module. Fixes bug 23071; bugfix
15989       on 0.3.1.1-alpha.
15991   o Minor bugfixes (Windows service):
15992     - When running as a Windows service, set the ID of the main thread
15993       correctly. Failure to do so made us fail to send log messages to
15994       the controller in 0.2.1.16-rc, slowed down controller event
15995       delivery in 0.2.7.3-rc and later, and crash with an assertion
15996       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
15997       Patch and diagnosis from "Vort".
16000 Changes in version 0.3.0.10 - 2017-08-02
16001    Tor 0.3.0.10 backports a collection of small-to-medium bugfixes
16002    from the current Tor alpha series. OpenBSD users and TPROXY users
16003    should upgrade; others are probably okay sticking with 0.3.0.9.
16005   o Major features (build system, continuous integration, backport from 0.3.1.5-alpha):
16006     - Tor's repository now includes a Travis Continuous Integration (CI)
16007       configuration file (.travis.yml). This is meant to help new
16008       developers and contributors who fork Tor to a Github repository be
16009       better able to test their changes, and understand what we expect
16010       to pass. To use this new build feature, you must fork Tor to your
16011       Github account, then go into the "Integrations" menu in the
16012       repository settings for your fork and enable Travis, then push
16013       your changes. Closes ticket 22636.
16015   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
16016     - Fix a typo that had prevented TPROXY-based transparent proxying
16017       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
16018       Patch from "d4fq0fQAgoJ".
16020   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
16021     - Avoid an assertion failure bug affecting our implementation of
16022       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
16023       handling of "0xbar" differs from what we had expected. Fixes bug
16024       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
16026   o Minor features (backport from 0.3.1.5-alpha):
16027     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
16028       Country database.
16030   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.2-alpha):
16031     - Roll over monthly accounting at the configured hour and minute,
16032       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
16033       Found by Andrey Karpov with PVS-Studio.
16035   o Minor bugfixes (compilation warnings, backport from 0.3.1.5-alpha):
16036     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
16037       bugfix on 0.2.8.1-alpha.
16038     - Fix warnings when building with libscrypt and openssl scrypt
16039       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
16040     - When building with certain versions of the mingw C header files,
16041       avoid float-conversion warnings when calling the C functions
16042       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
16043       on 0.2.8.1-alpha.
16045   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
16046     - Backport a fix for an "unused variable" warning that appeared
16047       in some versions of mingw. Fixes bug 22838; bugfix on
16048       0.2.8.1-alpha.
16050   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
16051     - Avoid Coverity build warnings related to our BUG() macro. By
16052       default, Coverity treats BUG() as the Linux kernel does: an
16053       instant abort(). We need to override that so our BUG() macro
16054       doesn't prevent Coverity from analyzing functions that use it.
16055       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
16057   o Minor bugfixes (directory authority, backport from 0.3.1.1-alpha):
16058     - When rejecting a router descriptor for running an obsolete version
16059       of Tor without ntor support, warn about the obsolete tor version,
16060       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
16062   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
16063     - Avoid a sandbox failure when trying to re-bind to a socket and
16064       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
16066   o Minor bugfixes (unit tests, backport from 0.3.1.5-alpha)
16067     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
16068       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
16071 Changes in version 0.3.1.5-alpha - 2017-08-01
16072   Tor 0.3.1.5-alpha improves the performance of consensus diff
16073   calculation, fixes a crash bug on older versions of OpenBSD, and fixes
16074   several other bugs. If no serious bugs are found in this version, the
16075   next version will be a release candidate.
16077   This release also marks the end of support for the Tor 0.2.4.x,
16078   0.2.6.x, and 0.2.7.x release series. Those releases will receive no
16079   further bug or security fixes. Anyone still running or distributing
16080   one of those versions should upgrade.
16082   o Major features (build system, continuous integration):
16083     - Tor's repository now includes a Travis Continuous Integration (CI)
16084       configuration file (.travis.yml). This is meant to help new
16085       developers and contributors who fork Tor to a Github repository be
16086       better able to test their changes, and understand what we expect
16087       to pass. To use this new build feature, you must fork Tor to your
16088       Github account, then go into the "Integrations" menu in the
16089       repository settings for your fork and enable Travis, then push
16090       your changes. Closes ticket 22636.
16092   o Major bugfixes (openbsd, denial-of-service):
16093     - Avoid an assertion failure bug affecting our implementation of
16094       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
16095       handling of "0xbar" differs from what we had expected. Fixes bug
16096       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
16098   o Major bugfixes (relay, performance):
16099     - Perform circuit handshake operations at a higher priority than we
16100       use for consensus diff creation and compression. This should
16101       prevent circuits from starving when a relay or bridge receives a
16102       new consensus, especially on lower-powered machines. Fixes bug
16103       22883; bugfix on 0.3.1.1-alpha.
16105   o Minor features (bridge authority):
16106     - Add "fingerprint" lines to the networkstatus-bridges file produced
16107       by bridge authorities. Closes ticket 22207.
16109   o Minor features (directory cache, consensus diff):
16110     - Add a new MaxConsensusAgeForDiffs option to allow directory cache
16111       operators with low-resource environments to adjust the number of
16112       consensuses they'll store and generate diffs from. Most cache
16113       operators should leave it unchanged. Helps to work around
16114       bug 22883.
16116   o Minor features (geoip):
16117     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
16118       Country database.
16120   o Minor features (relay, performance):
16121     - Always start relays with at least two worker threads, to prevent
16122       priority inversion on slow tasks. Part of the fix for bug 22883.
16123     - Allow background work to be queued with different priorities, so
16124       that a big pile of slow low-priority jobs will not starve out
16125       higher priority jobs. This lays the groundwork for a fix for
16126       bug 22883.
16128   o Minor bugfixes (build system, rust):
16129     - Fix a problem where Rust toolchains were not being found when
16130       building without --enable-cargo-online-mode, due to setting the
16131       $HOME environment variable instead of $CARGO_HOME. Fixes bug
16132       22830; bugfix on 0.3.1.1-alpha. Fix by Chelsea Komlo.
16134   o Minor bugfixes (compatibility, zstd):
16135     - Write zstd epilogues correctly when the epilogue requires
16136       reallocation of the output buffer, even with zstd 1.3.0.
16137       (Previously, we worked on 1.2.0 and failed with 1.3.0). Fixes bug
16138       22927; bugfix on 0.3.1.1-alpha.
16140   o Minor bugfixes (compilation warnings):
16141     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug
16142       22915; bugfix on 0.2.8.1-alpha.
16143     - Fix warnings when building with libscrypt and openssl scrypt
16144       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
16145     - Compile correctly when both openssl 1.1.0 and libscrypt are
16146       detected. Previously this would cause an error. Fixes bug 22892;
16147       bugfix on 0.3.1.1-alpha.
16148     - When building with certain versions of the mingw C header files,
16149       avoid float-conversion warnings when calling the C functions
16150       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
16151       on 0.2.8.1-alpha.
16153   o Minor bugfixes (coverity build support):
16154     - Avoid Coverity build warnings related to our BUG() macro. By
16155       default, Coverity treats BUG() as the Linux kernel does: an
16156       instant abort(). We need to override that so our BUG() macro
16157       doesn't prevent Coverity from analyzing functions that use it.
16158       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
16160   o Minor bugfixes (directory authority):
16161     - When a directory authority rejects a descriptor or extrainfo with
16162       a given digest, mark that digest as undownloadable, so that we do
16163       not attempt to download it again over and over. We previously
16164       tried to avoid downloading such descriptors by other means, but we
16165       didn't notice if we accidentally downloaded one anyway. This
16166       behavior became problematic in 0.2.7.2-alpha, when authorities
16167       began pinning Ed25519 keys. Fixes bug 22349; bugfix
16168       on 0.2.1.19-alpha.
16170   o Minor bugfixes (error reporting, windows):
16171     - When formatting Windows error messages, use the English format to
16172       avoid codepage issues. Fixes bug 22520; bugfix on 0.1.2.8-alpha.
16173       Patch from "Vort".
16175   o Minor bugfixes (file limits, osx):
16176     - When setting the maximum number of connections allowed by the OS,
16177       always allow some extra file descriptors for other files. Fixes
16178       bug 22797; bugfix on 0.2.0.10-alpha.
16180   o Minor bugfixes (linux seccomp2 sandbox):
16181     - Avoid a sandbox failure when trying to re-bind to a socket and
16182       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
16184   o Minor bugfixes (memory leaks):
16185     - Fix a small memory leak when validating a configuration that uses
16186       two or more AF_UNIX sockets for the same port type. Fixes bug
16187       23053; bugfix on 0.2.6.3-alpha. This is CID 1415725.
16189   o Minor bugfixes (unit tests):
16190     - test_consdiff_base64cmp would fail on OS X because while OS X
16191       follows the standard of (less than zero/zero/greater than zero),
16192       it doesn't follow the convention of (-1/0/+1). Make the test
16193       comply with the standard. Fixes bug 22870; bugfix on 0.3.1.1-alpha.
16194     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
16195       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
16198 Changes in version 0.3.1.4-alpha - 2017-06-29
16199   Tor 0.3.1.4-alpha fixes a path selection bug that would allow a client
16200   to use a guard that was in the same network family as a chosen exit
16201   relay. This is a security regression; all clients running earlier
16202   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9
16203   or 0.3.1.4-alpha.
16205   This release also fixes several other bugs introduced in 0.3.0.x
16206   and 0.3.1.x, including others that can affect bandwidth usage
16207   and correctness.
16209   o New dependencies:
16210     - To build with zstd and lzma support, Tor now requires the
16211       pkg-config tool at build time. (This requirement was new in
16212       0.3.1.1-alpha, but was not noted at the time. Noting it here to
16213       close ticket 22623.)
16215   o Major bugfixes (path selection, security):
16216     - When choosing which guard to use for a circuit, avoid the exit's
16217       family along with the exit itself. Previously, the new guard
16218       selection logic avoided the exit, but did not consider its family.
16219       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
16220       006 and CVE-2017-0377.
16222   o Major bugfixes (compression, zstd):
16223     - Correctly detect a full buffer when decompressing a large zstd-
16224       compressed input. Previously, we would sometimes treat a full
16225       buffer as an error. Fixes bug 22628; bugfix on 0.3.1.1-alpha.
16227   o Major bugfixes (directory protocol):
16228     - Ensure that we send "304 Not modified" as HTTP status code when a
16229       client is attempting to fetch a consensus or consensus diff, and
16230       the best one we can send them is one they already have. Fixes bug
16231       22702; bugfix on 0.3.1.1-alpha.
16233   o Major bugfixes (entry guards):
16234     - When starting with an old consensus, do not add new entry guards
16235       unless the consensus is "reasonably live" (under 1 day old). Fixes
16236       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
16238   o Minor features (bug mitigation, diagnostics, logging):
16239     - Avoid an assertion failure, and log a better error message, when
16240       unable to remove a file from the consensus cache on Windows.
16241       Attempts to mitigate and diagnose bug 22752.
16243   o Minor features (geoip):
16244     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
16245       Country database.
16247   o Minor bugfixes (compression):
16248     - When compressing or decompressing a buffer, check for a failure to
16249       create a compression object. Fixes bug 22626; bugfix
16250       on 0.3.1.1-alpha.
16251     - When decompressing a buffer, check for extra data after the end of
16252       the compressed data. Fixes bug 22629; bugfix on 0.3.1.1-alpha.
16253     - When decompressing an object received over an anonymous directory
16254       connection, if we have already decompressed it using an acceptable
16255       compression method, do not reject it for looking like an
16256       unacceptable compression method. Fixes part of bug 22670; bugfix
16257       on 0.3.1.1-alpha.
16258     - When serving directory votes compressed with zlib, do not claim to
16259       have compressed them with zstd. Fixes bug 22669; bugfix
16260       on 0.3.1.1-alpha.
16261     - When spooling compressed data to an output buffer, don't try to
16262       spool more data when there is no more data to spool and we are not
16263       trying to flush the input. Previously, we would sometimes launch
16264       compression requests with nothing to do, which interferes with our
16265       22672 checks. Fixes bug 22719; bugfix on 0.2.0.16-alpha.
16267   o Minor bugfixes (defensive programming):
16268     - Detect and break out of infinite loops in our compression code. We
16269       don't think that any such loops exist now, but it's best to be
16270       safe. Closes ticket 22672.
16271     - Fix a memset() off the end of an array when packing cells. This
16272       bug should be harmless in practice, since the corrupted bytes are
16273       still in the same structure, and are always padding bytes,
16274       ignored, or immediately overwritten, depending on compiler
16275       behavior. Nevertheless, because the memset()'s purpose is to make
16276       sure that any other cell-handling bugs can't expose bytes to the
16277       network, we need to fix it. Fixes bug 22737; bugfix on
16278       0.2.4.11-alpha. Fixes CID 1401591.
16280   o Minor bugfixes (linux seccomp2 sandbox):
16281     - Permit the fchmod system call, to avoid crashing on startup when
16282       starting with the seccomp2 sandbox and an unexpected set of
16283       permissions on the data directory or its contents. Fixes bug
16284       22516; bugfix on 0.2.5.4-alpha.
16285     - Fix a crash in the LZMA module, when the sandbox was enabled, and
16286       liblzma would allocate more than 16 MB of memory. We solve this by
16287       bumping the mprotect() limit in the sandbox module from 16 MB to
16288       20 MB. Fixes bug 22751; bugfix on 0.3.1.1-alpha.
16290   o Minor bugfixes (logging):
16291     - When decompressing, do not warn if we fail to decompress using a
16292       compression method that we merely guessed. Fixes part of bug
16293       22670; bugfix on 0.1.1.14-alpha.
16294     - When decompressing, treat mismatch between content-encoding and
16295       actual compression type as a protocol warning. Fixes part of bug
16296       22670; bugfix on 0.1.1.9-alpha.
16297     - Downgrade "assigned_to_cpuworker failed" message to info-level
16298       severity. In every case that can reach it, either a better warning
16299       has already been logged, or no warning is warranted. Fixes bug
16300       22356; bugfix on 0.2.6.3-alpha.
16301     - Demote a warn that was caused by libevent delays to info if
16302       netflow padding is less than 4.5 seconds late, or to notice
16303       if it is more (4.5 seconds is the amount of time that a netflow
16304       record might be emitted after, if we chose the maximum timeout).
16305       Fixes bug 22212; bugfix on 0.3.1.1-alpha.
16307   o Minor bugfixes (process behavior):
16308     - When exiting because of an error, always exit with a nonzero exit
16309       status. Previously, we would fail to report an error in our exit
16310       status in cases related to __OwningControllerProcess failure,
16311       lockfile contention, and Ed25519 key initialization. Fixes bug
16312       22720; bugfix on versions 0.2.1.6-alpha, 0.2.2.28-beta, and
16313       0.2.7.2-alpha respectively. Reported by "f55jwk4f"; patch
16314       from "huyvq".
16316   o Documentation:
16317     - Add a manpage description for the key-pinning-journal file. Closes
16318       ticket 22347.
16319     - Correctly note that bandwidth accounting values are stored in the
16320       state file, and the bw_accounting file is now obsolete. Closes
16321       ticket 16082.
16322     - Document more of the files in the Tor data directory, including
16323       cached-extrainfo, secret_onion_key{,_ntor}.old, hidserv-stats,
16324       approved-routers, sr-random, and diff-cache. Found while fixing
16325       ticket 22347.
16328 Changes in version 0.3.0.9 - 2017-06-29
16329   Tor 0.3.0.9 fixes a path selection bug that would allow a client
16330   to use a guard that was in the same network family as a chosen exit
16331   relay. This is a security regression; all clients running earlier
16332   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9 or
16333   0.3.1.4-alpha.
16335   This release also backports several other bugfixes from the 0.3.1.x
16336   series.
16338   o Major bugfixes (path selection, security, backport from 0.3.1.4-alpha):
16339     - When choosing which guard to use for a circuit, avoid the exit's
16340       family along with the exit itself. Previously, the new guard
16341       selection logic avoided the exit, but did not consider its family.
16342       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
16343       006 and CVE-2017-0377.
16345   o Major bugfixes (entry guards, backport from 0.3.1.1-alpha):
16346     - Don't block bootstrapping when a primary bridge is offline and we
16347       can't get its descriptor. Fixes bug 22325; fixes one case of bug
16348       21969; bugfix on 0.3.0.3-alpha.
16350   o Major bugfixes (entry guards, backport from 0.3.1.4-alpha):
16351     - When starting with an old consensus, do not add new entry guards
16352       unless the consensus is "reasonably live" (under 1 day old). Fixes
16353       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
16355   o Minor features (geoip):
16356     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
16357       Country database.
16359   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
16360     - Reject version numbers with non-numeric prefixes (such as +, -, or
16361       whitespace). Disallowing whitespace prevents differential version
16362       parsing between POSIX-based and Windows platforms. Fixes bug 21507
16363       and part of 21508; bugfix on 0.0.8pre1.
16365   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
16366     - Permit the fchmod system call, to avoid crashing on startup when
16367       starting with the seccomp2 sandbox and an unexpected set of
16368       permissions on the data directory or its contents. Fixes bug
16369       22516; bugfix on 0.2.5.4-alpha.
16371   o Minor bugfixes (defensive programming, backport from 0.3.1.4-alpha):
16372     - Fix a memset() off the end of an array when packing cells. This
16373       bug should be harmless in practice, since the corrupted bytes are
16374       still in the same structure, and are always padding bytes,
16375       ignored, or immediately overwritten, depending on compiler
16376       behavior. Nevertheless, because the memset()'s purpose is to make
16377       sure that any other cell-handling bugs can't expose bytes to the
16378       network, we need to fix it. Fixes bug 22737; bugfix on
16379       0.2.4.11-alpha. Fixes CID 1401591.
16382 Changes in version 0.3.1.3-alpha - 2017-06-08
16383   Tor 0.3.1.3-alpha fixes a pair of bugs that would allow an attacker to
16384   remotely crash a hidden service with an assertion failure. Anyone
16385   running a hidden service should upgrade to this version, or to some
16386   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
16388   Tor 0.3.1.3-alpha also includes fixes for several key management bugs
16389   that sometimes made relays unreliable, as well as several other
16390   bugfixes described below.
16392   o Major bugfixes (hidden service, relay, security):
16393     - Fix a remotely triggerable assertion failure when a hidden service
16394       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
16395       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
16396     - Fix a remotely triggerable assertion failure caused by receiving a
16397       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
16398       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
16399       on 0.2.2.1-alpha.
16401   o Major bugfixes (relay, link handshake):
16402     - When performing the v3 link handshake on a TLS connection, report
16403       that we have the x509 certificate that we actually used on that
16404       connection, even if we have changed certificates since that
16405       connection was first opened. Previously, we would claim to have
16406       used our most recent x509 link certificate, which would sometimes
16407       make the link handshake fail. Fixes one case of bug 22460; bugfix
16408       on 0.2.3.6-alpha.
16410   o Major bugfixes (relays, key management):
16411     - Regenerate link and authentication certificates whenever the key
16412       that signs them changes; also, regenerate link certificates
16413       whenever the signed key changes. Previously, these processes were
16414       only weakly coupled, and we relays could (for minutes to hours)
16415       wind up with an inconsistent set of keys and certificates, which
16416       other relays would not accept. Fixes two cases of bug 22460;
16417       bugfix on 0.3.0.1-alpha.
16418     - When sending an Ed25519 signing->link certificate in a CERTS cell,
16419       send the certificate that matches the x509 certificate that we
16420       used on the TLS connection. Previously, there was a race condition
16421       if the TLS context rotated after we began the TLS handshake but
16422       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
16423       on 0.3.0.1-alpha.
16425   o Major bugfixes (torrc, crash):
16426     - Fix a crash bug when using %include in torrc. Fixes bug 22417;
16427       bugfix on 0.3.1.1-alpha. Patch by Daniel Pinto.
16429   o Minor features (code style):
16430     - Add "Falls through" comments to our codebase, in order to silence
16431       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
16432       Stieger. Closes ticket 22446.
16434   o Minor features (diagnostic):
16435     - Add logging messages to try to diagnose a rare bug that seems to
16436       generate RSA->Ed25519 cross-certificates dated in the 1970s. We
16437       think this is happening because of incorrect system clocks, but
16438       we'd like to know for certain. Diagnostic for bug 22466.
16440   o Minor bugfixes (correctness):
16441     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
16442       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
16444   o Minor bugfixes (directory protocol):
16445     - Check for libzstd >= 1.1, because older versions lack the
16446       necessary streaming API. Fixes bug 22413; bugfix on 0.3.1.1-alpha.
16448   o Minor bugfixes (link handshake):
16449     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
16450       months, and regenerate it when it is within one month of expiring.
16451       Previously, we had generated this certificate at startup with a
16452       ten-year lifetime, but that could lead to weird behavior when Tor
16453       was started with a grossly inaccurate clock. Mitigates bug 22466;
16454       mitigation on 0.3.0.1-alpha.
16456   o Minor bugfixes (storage directories):
16457     - Always check for underflows in the cached storage directory usage.
16458       If the usage does underflow, re-calculate it. Also, avoid a
16459       separate underflow when the usage is not known. Fixes bug 22424;
16460       bugfix on 0.3.1.1-alpha.
16462   o Minor bugfixes (unit tests):
16463     - The unit tests now pass on systems where localhost is misconfigured
16464       to some IPv4 address other than 127.0.0.1. Fixes bug 6298; bugfix
16465       on 0.0.9pre2.
16467   o Documentation:
16468     - Clarify the manpage for the (deprecated) torify script. Closes
16469       ticket 6892.
16471 Changes in version 0.3.0.8 - 2017-06-08
16472   Tor 0.3.0.8 fixes a pair of bugs that would allow an attacker to
16473   remotely crash a hidden service with an assertion failure. Anyone
16474   running a hidden service should upgrade to this version, or to some
16475   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
16477   Tor 0.3.0.8 also includes fixes for several key management bugs
16478   that sometimes made relays unreliable, as well as several other
16479   bugfixes described below.
16481   o Major bugfixes (hidden service, relay, security, backport
16482     from 0.3.1.3-alpha):
16483     - Fix a remotely triggerable assertion failure when a hidden service
16484       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
16485       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
16486     - Fix a remotely triggerable assertion failure caused by receiving a
16487       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
16488       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
16489       on 0.2.2.1-alpha.
16491   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
16492     - When performing the v3 link handshake on a TLS connection, report
16493       that we have the x509 certificate that we actually used on that
16494       connection, even if we have changed certificates since that
16495       connection was first opened. Previously, we would claim to have
16496       used our most recent x509 link certificate, which would sometimes
16497       make the link handshake fail. Fixes one case of bug 22460; bugfix
16498       on 0.2.3.6-alpha.
16500   o Major bugfixes (relays, key management, backport from 0.3.1.3-alpha):
16501     - Regenerate link and authentication certificates whenever the key
16502       that signs them changes; also, regenerate link certificates
16503       whenever the signed key changes. Previously, these processes were
16504       only weakly coupled, and we relays could (for minutes to hours)
16505       wind up with an inconsistent set of keys and certificates, which
16506       other relays would not accept. Fixes two cases of bug 22460;
16507       bugfix on 0.3.0.1-alpha.
16508     - When sending an Ed25519 signing->link certificate in a CERTS cell,
16509       send the certificate that matches the x509 certificate that we
16510       used on the TLS connection. Previously, there was a race condition
16511       if the TLS context rotated after we began the TLS handshake but
16512       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
16513       on 0.3.0.1-alpha.
16515   o Major bugfixes (hidden service v3, backport from 0.3.1.1-alpha):
16516     - Stop rejecting v3 hidden service descriptors because their size
16517       did not match an old padding rule. Fixes bug 22447; bugfix on
16518       0.3.0.1-alpha.
16520   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
16521     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
16522       December 2016 (of which ~126 were still functional) with a list of
16523       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
16524       2017. Resolves ticket 21564.
16526   o Minor bugfixes (configuration, backport from 0.3.1.1-alpha):
16527     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
16528       bug 22252; bugfix on 0.2.9.3-alpha.
16530   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
16531     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
16532       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
16534   o Minor bugfixes (link handshake, backport from 0.3.1.3-alpha):
16535     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
16536       months, and regenerate it when it is within one month of expiring.
16537       Previously, we had generated this certificate at startup with a
16538       ten-year lifetime, but that could lead to weird behavior when Tor
16539       was started with a grossly inaccurate clock. Mitigates bug 22466;
16540       mitigation on 0.3.0.1-alpha.
16542   o Minor bugfixes (memory leak, directory authority, backport from
16543     0.3.1.2-alpha):
16544     - When directory authorities reject a router descriptor due to
16545       keypinning, free the router descriptor rather than leaking the
16546       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
16549 Changes in version 0.2.9.11 - 2017-06-08
16550   Tor 0.2.9.11 backports a fix for a bug that would allow an attacker to
16551   remotely crash a hidden service with an assertion failure. Anyone
16552   running a hidden service should upgrade to this version, or to some
16553   other version with fixes for TROVE-2017-005. (Versions before 0.3.0
16554   are not affected by TROVE-2017-004.)
16556   Tor 0.2.9.11 also backports fixes for several key management bugs
16557   that sometimes made relays unreliable, as well as several other
16558   bugfixes described below.
16560   o Major bugfixes (hidden service, relay, security, backport
16561     from 0.3.1.3-alpha):
16562     - Fix a remotely triggerable assertion failure caused by receiving a
16563       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
16564       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
16565       on 0.2.2.1-alpha.
16567   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
16568     - When performing the v3 link handshake on a TLS connection, report
16569       that we have the x509 certificate that we actually used on that
16570       connection, even if we have changed certificates since that
16571       connection was first opened. Previously, we would claim to have
16572       used our most recent x509 link certificate, which would sometimes
16573       make the link handshake fail. Fixes one case of bug 22460; bugfix
16574       on 0.2.3.6-alpha.
16576   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
16577     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
16578       December 2016 (of which ~126 were still functional) with a list of
16579       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
16580       2017. Resolves ticket 21564.
16582   o Minor features (future-proofing, backport from 0.3.0.7):
16583     - Tor no longer refuses to download microdescriptors or descriptors if
16584       they are listed as "published in the future".  This change will
16585       eventually allow us to stop listing meaningful "published" dates
16586       in microdescriptor consensuses, and thereby allow us to reduce the
16587       resources required to download consensus diffs by over 50%.
16588       Implements part of ticket 21642; implements part of proposal 275.
16590   o Minor features (directory authorities, backport from 0.3.0.4-rc)
16591     - Directory authorities now reject relays running versions
16592       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
16593       suffer from bug 20499 and don't keep their consensus cache
16594       up-to-date. Resolves ticket 20509.
16596   o Minor features (geoip):
16597     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
16598       Country database.
16600   o Minor bugfixes (control port, backport from 0.3.0.6):
16601     - The GETINFO extra-info/digest/<digest> command was broken because
16602       of a wrong base16 decode return value check, introduced when
16603       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
16605   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
16606     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
16607       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
16609   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.0.7):
16610     - The getpid() system call is now permitted under the Linux seccomp2
16611       sandbox, to avoid crashing with versions of OpenSSL (and other
16612       libraries) that attempt to learn the process's PID by using the
16613       syscall rather than the VDSO code. Fixes bug 21943; bugfix
16614       on 0.2.5.1-alpha.
16616   o Minor bugfixes (memory leak, directory authority, backport
16617     from 0.3.1.2-alpha):
16618     - When directory authorities reject a router descriptor due to
16619       keypinning, free the router descriptor rather than leaking the
16620       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
16622 Changes in version 0.2.8.14 - 2017-06-08
16623   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
16624   remotely crash a hidden service with an assertion failure. Anyone
16625   running a hidden service should upgrade to this version, or to some
16626   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
16627   are not affected by TROVE-2017-004.)
16629   o Major bugfixes (hidden service, relay, security):
16630     - Fix a remotely triggerable assertion failure caused by receiving a
16631       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
16632       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
16633       on 0.2.2.1-alpha.
16635   o Minor features (geoip):
16636     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
16637       Country database.
16639   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
16640     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
16641       December 2016 (of which ~126 were still functional) with a list of
16642       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
16643       2017. Resolves ticket 21564.
16645   o Minor bugfixes (correctness):
16646     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
16647       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
16649 Changes in version 0.2.7.8 - 2017-06-08
16650   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
16651   remotely crash a hidden service with an assertion failure. Anyone
16652   running a hidden service should upgrade to this version, or to some
16653   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
16654   are not affected by TROVE-2017-004.)
16656   o Major bugfixes (hidden service, relay, security):
16657     - Fix a remotely triggerable assertion failure caused by receiving a
16658       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
16659       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
16660       on 0.2.2.1-alpha.
16662   o Minor features (geoip):
16663     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
16664       Country database.
16666   o Minor bugfixes (correctness):
16667     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
16668       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
16671 Changes in version 0.2.6.12 - 2017-06-08
16672   Tor 0.2.6.12 backports a fix for a bug that would allow an attacker to
16673   remotely crash a hidden service with an assertion failure. Anyone
16674   running a hidden service should upgrade to this version, or to some
16675   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
16676   are not affected by TROVE-2017-004.)
16678   o Major bugfixes (hidden service, relay, security):
16679     - Fix a remotely triggerable assertion failure caused by receiving a
16680       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
16681       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
16682       on 0.2.2.1-alpha.
16684   o Minor features (geoip):
16685     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
16686       Country database.
16688   o Minor bugfixes (correctness):
16689     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
16690       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
16692 Changes in version 0.2.5.14 - 2017-06-08
16693   Tor 0.2.5.14 backports a fix for a bug that would allow an attacker to
16694   remotely crash a hidden service with an assertion failure. Anyone
16695   running a hidden service should upgrade to this version, or to some
16696   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
16697   are not affected by TROVE-2017-004.)
16699   o Major bugfixes (hidden service, relay, security):
16700     - Fix a remotely triggerable assertion failure caused by receiving a
16701       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
16702       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
16703       on 0.2.2.1-alpha.
16705   o Minor features (geoip):
16706     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
16707       Country database.
16709   o Minor bugfixes (correctness):
16710     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
16711       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
16713 Changes in version 0.2.4.29 - 2017-06-08
16714   Tor 0.2.4.29 backports a fix for a bug that would allow an attacker to
16715   remotely crash a hidden service with an assertion failure. Anyone
16716   running a hidden service should upgrade to this version, or to some
16717   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
16718   are not affected by TROVE-2017-004.)
16720   o Major bugfixes (hidden service, relay, security):
16721     - Fix a remotely triggerable assertion failure caused by receiving a
16722       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
16723       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
16724       on 0.2.2.1-alpha.
16726   o Minor features (geoip):
16727     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
16728       Country database.
16730   o Minor bugfixes (correctness):
16731     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
16732       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
16735 Changes in version 0.3.1.2-alpha - 2017-05-26
16736   Tor 0.3.1.2-alpha is the second release in the 0.3.1.x series. It
16737   fixes a few bugs found while testing 0.3.1.1-alpha, including a
16738   memory corruption bug that affected relay stability.
16740   o Major bugfixes (crash, relay):
16741     - Fix a memory-corruption bug in relays that set MyFamily.
16742       Previously, they would double-free MyFamily elements when making
16743       the next descriptor or when changing their configuration. Fixes
16744       bug 22368; bugfix on 0.3.1.1-alpha.
16746   o Minor bugfixes (logging):
16747     - Log a better message when a directory authority replies to an
16748       upload with an unexpected status code. Fixes bug 11121; bugfix
16749       on 0.1.0.1-rc.
16751   o Minor bugfixes (memory leak, directory authority):
16752     - When directory authorities reject a router descriptor due to
16753       keypinning, free the router descriptor rather than leaking the
16754       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
16757 Changes in version 0.3.1.1-alpha - 2017-05-22
16758   Tor 0.3.1.1-alpha is the first release in the 0.3.1.x series. It
16759   reduces the bandwidth usage for Tor's directory protocol, adds some
16760   basic padding to resist netflow-based traffic analysis and to serve as
16761   the basis of other padding in the future, and adds rust support to the
16762   build system.
16764   It also contains numerous other small features and improvements to
16765   security, correctness, and performance.
16767   Below are the changes since 0.3.0.7.
16769   o Major features (directory protocol):
16770     - Tor relays and authorities can now serve clients an abbreviated
16771       version of the consensus document, containing only the changes
16772       since an older consensus document that the client holds. Clients
16773       now request these documents when available. When both client and
16774       server use this new protocol, they will use far less bandwidth (up
16775       to 94% less) to keep the client's consensus up-to-date. Implements
16776       proposal 140; closes ticket 13339. Based on work by Daniel Martí.
16777     - Tor can now compress directory traffic with lzma or with zstd
16778       compression algorithms, which can deliver better bandwidth
16779       performance. Because lzma is computationally expensive, it's only
16780       used for documents that can be compressed once and served many
16781       times. Support for these algorithms requires that tor is built
16782       with the libzstd and/or liblzma libraries available. Implements
16783       proposal 278; closes ticket 21662.
16784     - Relays now perform the more expensive compression operations, and
16785       consensus diff generation, in worker threads. This separation
16786       avoids delaying the main thread when a new consensus arrives.
16788   o Major features (experimental):
16789     - Tor can now build modules written in Rust. To turn this on, pass
16790       the "--enable-rust" flag to the configure script. It's not time to
16791       get excited yet: currently, there is no actual Rust functionality
16792       beyond some simple glue code, and a notice at startup to tell you
16793       that Rust is running. Still, we hope that programmers and
16794       packagers will try building Tor with Rust support, so that we can
16795       find issues and solve portability problems. Closes ticket 22106.
16797   o Major features (traffic analysis resistance):
16798     - Connections between clients and relays now send a padding cell in
16799       each direction every 1.5 to 9.5 seconds (tunable via consensus
16800       parameters). This padding will not resist specialized
16801       eavesdroppers, but it should be enough to make many ISPs' routine
16802       network flow logging less useful in traffic analysis against
16803       Tor users.
16805       Padding is negotiated using Tor's link protocol, so both relays
16806       and clients must upgrade for this to take effect. Clients may
16807       still send padding despite the relay's version by setting
16808       ConnectionPadding 1 in torrc, and may disable padding by setting
16809       ConnectionPadding 0 in torrc. Padding may be minimized for mobile
16810       users with the torrc option ReducedConnectionPadding. Implements
16811       Proposal 251 and Section 2 of Proposal 254; closes ticket 16861.
16812     - Relays will publish 24 hour totals of padding and non-padding cell
16813       counts to their extra-info descriptors, unless PaddingStatistics 0
16814       is set in torrc. These 24 hour totals are also rounded to
16815       multiples of 10000.
16817   o Major bugfixes (connection usage):
16818     - We use NETINFO cells to try to determine if both relays involved
16819       in a connection will agree on the canonical status of that
16820       connection. We prefer the connections where this is the case for
16821       extend cells, and try to close connections where relays disagree
16822       on their canonical status early. Also, we now prefer the oldest
16823       valid connection for extend cells. These two changes should reduce
16824       the number of long-term connections that are kept open between
16825       relays. Fixes bug 17604; bugfix on 0.2.5.5-alpha.
16826     - Relays now log hourly statistics (look for
16827       "channel_check_for_duplicates" lines) on the total number of
16828       connections to other relays. If the number of connections per
16829       relay is unexpectedly large, this log message is at notice level.
16830       Otherwise it is at info.
16832   o Major bugfixes (entry guards):
16833     - Don't block bootstrapping when a primary bridge is offline and we
16834       can't get its descriptor. Fixes bug 22325; fixes one case of bug
16835       21969; bugfix on 0.3.0.3-alpha.
16837   o Major bugfixes (linux TPROXY support):
16838     - Fix a typo that had prevented TPROXY-based transparent proxying
16839       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
16840       Patch from "d4fq0fQAgoJ".
16842   o Minor features (security, windows):
16843     - Enable a couple of pieces of Windows hardening: one
16844       (HeapEnableTerminationOnCorruption) that has been on-by-default
16845       since Windows 8, and unavailable before Windows 7; and one
16846       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
16847       affect us, but shouldn't do any harm. Closes ticket 21953.
16849   o Minor features (config options):
16850     - Allow "%include" directives in torrc configuration files. These
16851       directives import the settings from other files, or from all the
16852       files in a directory. Closes ticket 1922. Code by Daniel Pinto.
16853     - Make SAVECONF return an error when overwriting a torrc that has
16854       includes. Using SAVECONF with the FORCE option will allow it to
16855       overwrite torrc even if includes are used. Related to ticket 1922.
16856     - Add "GETINFO config-can-saveconf" to tell controllers if SAVECONF
16857       will work without the FORCE option. Related to ticket 1922.
16859   o Minor features (controller):
16860     - Warn the first time that a controller requests data in the long-
16861       deprecated 'GETINFO network-status' format. Closes ticket 21703.
16863   o Minor features (defaults):
16864     - The default value for UseCreateFast is now 0: clients which
16865       haven't yet received a consensus document will now use a proper
16866       ntor handshake to talk to their directory servers whenever they
16867       can. Closes ticket 21407.
16868     - Onion key rotation and expiry intervals are now defined as a
16869       network consensus parameter, per proposal 274. The default
16870       lifetime of an onion key is increased from 7 to 28 days. Old onion
16871       keys will expire after 7 days by default. This change will make
16872       consensus diffs much smaller, and save significant bandwidth.
16873       Closes ticket 21641.
16875   o Minor features (fallback directory list):
16876     - Update the fallback directory mirror whitelist and blacklist based
16877       on operator emails. Closes task 21121.
16878     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
16879       December 2016 (of which ~126 were still functional) with a list of
16880       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
16881       2017. Resolves ticket 21564.
16883   o Minor features (hidden services, logging):
16884     - Log a message when a hidden service descriptor has fewer
16885       introduction points than specified in
16886       HiddenServiceNumIntroductionPoints. Closes tickets 21598.
16887     - Log a message when a hidden service reaches its introduction point
16888       circuit limit, and when that limit is reset. Follow up to ticket
16889       21594; closes ticket 21622.
16890     - Warn user if multiple entries in EntryNodes and at least one
16891       HiddenService are used together. Pinning EntryNodes along with a
16892       hidden service can be possibly harmful; for instance see ticket
16893       14917 or 21155. Closes ticket 21155.
16895   o Minor features (linux seccomp2 sandbox):
16896     - We now have a document storage backend compatible with the Linux
16897       seccomp2 sandbox. This backend is used for consensus documents and
16898       diffs between them; in the long term, we'd like to use it for
16899       unparseable directory material too. Closes ticket 21645
16900     - Increase the maximum allowed size passed to mprotect(PROT_WRITE)
16901       from 1MB to 16MB. This was necessary with the glibc allocator in
16902       order to allow worker threads to allocate more memory -- which in
16903       turn is necessary because of our new use of worker threads for
16904       compression. Closes ticket 22096.
16906   o Minor features (logging):
16907     - Log files are no longer created world-readable by default.
16908       (Previously, most distributors would store the logs in a non-
16909       world-readable location to prevent inappropriate access. This
16910       change is an extra precaution.) Closes ticket 21729; patch
16911       from toralf.
16913   o Minor features (performance):
16914     - Our Keccak (SHA-3) implementation now accesses memory more
16915       efficiently, especially on little-endian systems. Closes
16916       ticket 21737.
16917     - Add an O(1) implementation of channel_find_by_global_id(), to
16918       speed some controller functions.
16920   o Minor features (relay, configuration):
16921     - The MyFamily option may now be repeated as many times as desired,
16922       for relays that want to configure large families. Closes ticket
16923       4998; patch by Daniel Pinto.
16925   o Minor features (safety):
16926     - Add an explicit check to extrainfo_parse_entry_from_string() for
16927       NULL inputs. We don't believe this can actually happen, but it may
16928       help silence a warning from the Clang analyzer. Closes
16929       ticket 21496.
16931   o Minor features (testing):
16932     - Add a "--disable-memory-sentinels" feature to help with fuzzing.
16933       When Tor is compiled with this option, we disable a number of
16934       redundant memory-safety failsafes that are intended to stop bugs
16935       from becoming security issues. This makes it easier to hunt for
16936       bugs that would be security issues without the failsafes turned
16937       on. Closes ticket 21439.
16938     - Add a general event-tracing instrumentation support to Tor. This
16939       subsystem will enable developers and researchers to add fine-
16940       grained instrumentation to their Tor instances, for use when
16941       examining Tor network performance issues. There are no trace
16942       events yet, and event-tracing is off by default unless enabled at
16943       compile time. Implements ticket 13802.
16944     - Improve our version parsing tests: add tests for typical version
16945       components, add tests for invalid versions, including numeric
16946       range and non-numeric prefixes. Unit tests 21278, 21450, and
16947       21507. Partially implements 21470.
16949   o Minor bugfixes (bandwidth accounting):
16950     - Roll over monthly accounting at the configured hour and minute,
16951       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
16952       Found by Andrey Karpov with PVS-Studio.
16954   o Minor bugfixes (code correctness):
16955     - Accurately identify client connections by their lack of peer
16956       authentication. This means that we bail out earlier if asked to
16957       extend to a client. Follow-up to 21407. Fixes bug 21406; bugfix
16958       on 0.2.4.23.
16960   o Minor bugfixes (configuration):
16961     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
16962       bug 22252; bugfix on 0.2.9.3-alpha.
16964   o Minor bugfixes (connection lifespan):
16965     - Allow more control over how long TLS connections are kept open:
16966       unify CircuitIdleTimeout and PredictedPortsRelevanceTime into a
16967       single option called CircuitsAvailableTimeout. Also, allow the
16968       consensus to control the default values for both this preference
16969       and the lifespan of relay-to-relay connections. Fixes bug 17592;
16970       bugfix on 0.2.5.5-alpha.
16971     - Increase the initial circuit build timeout testing frequency, to
16972       help ensure that ReducedConnectionPadding clients finish learning
16973       a timeout before their orconn would expire. The initial testing
16974       rate was set back in the days of TAP and before the Tor Browser
16975       updater, when we had to be much more careful about new clients
16976       making lots of circuits. With this change, a circuit build timeout
16977       is learned in about 15-20 minutes, instead of 100-120 minutes.
16979   o Minor bugfixes (controller):
16980     - GETINFO onions/current and onions/detached no longer respond with
16981       551 on empty lists. Fixes bug 21329; bugfix on 0.2.7.1-alpha.
16982     - Trigger HS descriptor events on the control port when the client
16983       fails to pick a hidden service directory for a hidden service.
16984       This can happen if all the hidden service directories are in
16985       ExcludeNodes, or they have all been queried within the last 15
16986       minutes. Fixes bug 22042; bugfix on 0.2.5.2-alpha.
16988   o Minor bugfixes (directory authority):
16989     - When rejecting a router descriptor for running an obsolete version
16990       of Tor without ntor support, warn about the obsolete tor version,
16991       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
16992     - Prevent the shared randomness subsystem from asserting when
16993       initialized by a bridge authority with an incomplete configuration
16994       file. Fixes bug 21586; bugfix on 0.2.9.8.
16996   o Minor bugfixes (exit-side DNS):
16997     - Fix an untriggerable assertion that checked the output of a
16998       libevent DNS error, so that the assertion actually behaves as
16999       expected. Fixes bug 22244; bugfix on 0.2.0.20-rc. Found by Andrey
17000       Karpov using PVS-Studio.
17002   o Minor bugfixes (fallback directories):
17003     - Make the usage example in updateFallbackDirs.py actually work, and
17004       explain what it does. Fixes bug 22270; bugfix on 0.3.0.3-alpha.
17005     - Decrease the guard flag average required to be a fallback. This
17006       allows us to keep relays that have their guard flag removed when
17007       they restart. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
17008     - Decrease the minimum number of fallbacks to 100. Fixes bug 20913;
17009       bugfix on 0.2.8.1-alpha.
17010     - Make sure fallback directory mirrors have the same address, port,
17011       and relay identity key for at least 30 days before they are
17012       selected. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
17014   o Minor bugfixes (hidden services):
17015     - Stop printing a cryptic warning when a hidden service gets a
17016       request to connect to a virtual port that it hasn't configured.
17017       Fixes bug 16706; bugfix on 0.2.6.3-alpha.
17018     - Simplify hidden service descriptor creation by using an existing
17019       flag to check if an introduction point is established. Fixes bug
17020       21599; bugfix on 0.2.7.2-alpha.
17022   o Minor bugfixes (memory leak):
17023     - Fix a small memory leak at exit from the backtrace handler code.
17024       Fixes bug 21788; bugfix on 0.2.5.2-alpha. Patch from Daniel Pinto.
17026   o Minor bugfixes (protocol, logging):
17027     - Downgrade a log statement about unexpected relay cells from "bug"
17028       to "protocol warning", because there is at least one use case
17029       where it can be triggered by a buggy tor implementation. Fixes bug
17030       21293; bugfix on 0.1.1.14-alpha.
17032   o Minor bugfixes (testing):
17033     - Use unbuffered I/O for utility functions around the
17034       process_handle_t type. This fixes unit test failures reported on
17035       OpenBSD and FreeBSD. Fixes bug 21654; bugfix on 0.2.3.1-alpha.
17036     - Make display of captured unit test log messages consistent. Fixes
17037       bug 21510; bugfix on 0.2.9.3-alpha.
17038     - Make test-network.sh always call chutney's test-network.sh.
17039       Previously, this only worked on systems which had bash installed,
17040       due to some bash-specific code in the script. Fixes bug 19699;
17041       bugfix on 0.3.0.4-rc. Follow-up to ticket 21581.
17043   o Minor bugfixes (voting consistency):
17044     - Reject version numbers with non-numeric prefixes (such as +, -, or
17045       whitespace). Disallowing whitespace prevents differential version
17046       parsing between POSIX-based and Windows platforms. Fixes bug 21507
17047       and part of 21508; bugfix on 0.0.8pre1.
17049   o Minor bugfixes (windows, relay):
17050     - Resolve "Failure from drain_fd: No error" warnings on Windows
17051       relays. Fixes bug 21540; bugfix on 0.2.6.3-alpha.
17053   o Code simplification and refactoring:
17054     - Break up the 630-line function connection_dir_client_reached_eof()
17055       into a dozen smaller functions. This change should help
17056       maintainability and readability of the client directory code.
17057     - Isolate our use of the openssl headers so that they are only
17058       included from our crypto wrapper modules, and from tests that
17059       examine those modules' internals. Closes ticket 21841.
17060     - Simplify our API to launch directory requests, making it more
17061       extensible and less error-prone. Now it's easier to add extra
17062       headers to directory requests. Closes ticket 21646.
17063     - Our base64 decoding functions no longer overestimate the output
17064       space that they need when parsing unpadded inputs. Closes
17065       ticket 17868.
17066     - Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value.
17067       Resolves ticket 22213.
17068     - The logic that directory caches use to spool request to clients,
17069       serving them one part at a time so as not to allocate too much
17070       memory, has been refactored for consistency. Previously there was
17071       a separate spooling implementation per type of spoolable data. Now
17072       there is one common spooling implementation, with extensible data
17073       types. Closes ticket 21651.
17074     - Tor's compression module now supports multiple backends. Part of
17075       the implementation for proposal 278; closes ticket 21663.
17077   o Documentation:
17078     - Clarify the behavior of the KeepAliveIsolateSOCKSAuth sub-option.
17079       Closes ticket 21873.
17080     - Correct documentation about the default DataDirectory value.
17081       Closes ticket 21151.
17082     - Document the default behavior of NumEntryGuards and
17083       NumDirectoryGuards correctly. Fixes bug 21715; bugfix
17084       on 0.3.0.1-alpha.
17085     - Document key=value pluggable transport arguments for Bridge lines
17086       in torrc. Fixes bug 20341; bugfix on 0.2.5.1-alpha.
17087     - Note that bandwidth-limiting options don't affect TCP headers or
17088       DNS. Closes ticket 17170.
17090   o Removed features (configuration options, all in ticket 22060):
17091     - These configuration options are now marked Obsolete, and no longer
17092       have any effect: AllowInvalidNodes, AllowSingleHopCircuits,
17093       AllowSingleHopExits, ExcludeSingleHopRelays, FastFirstHopPK,
17094       TLSECGroup, WarnUnsafeSocks. They were first marked as deprecated
17095       in 0.2.9.2-alpha and have now been removed. The previous default
17096       behavior is now always chosen; the previous (less secure) non-
17097       default behavior is now unavailable.
17098     - CloseHSClientCircuitsImmediatelyOnTimeout and
17099       CloseHSServiceRendCircuitsImmediatelyOnTimeout were deprecated in
17100       0.2.9.2-alpha and now have been removed. HS circuits never close
17101       on circuit build timeout; they have a longer timeout period.
17102     - {Control,DNS,Dir,Socks,Trans,NATD,OR}ListenAddress were deprecated
17103       in 0.2.9.2-alpha and now have been removed. Use the ORPort option
17104       (and others) to configure listen-only and advertise-only addresses.
17106   o Removed features (tools):
17107     - We've removed the tor-checkkey tool from src/tools. Long ago, we
17108       used it to help people detect RSA keys that were generated by
17109       versions of Debian affected by CVE-2008-0166. But those keys have
17110       been out of circulation for ages, and this tool is no longer
17111       required. Closes ticket 21842.
17114 Changes in version 0.3.0.7 - 2017-05-15
17115   Tor 0.3.0.7 fixes a medium-severity security bug in earlier versions
17116   of Tor 0.3.0.x, where an attacker could cause a Tor relay process
17117   to exit. Relays running earlier versions of Tor 0.3.0.x should upgrade;
17118   clients are not affected.
17120   o Major bugfixes (hidden service directory, security):
17121     - Fix an assertion failure in the hidden service directory code, which
17122       could be used by an attacker to remotely cause a Tor relay process to
17123       exit. Relays running earlier versions of Tor 0.3.0.x should upgrade.
17124       should upgrade. This security issue is tracked as TROVE-2017-002.
17125       Fixes bug 22246; bugfix on 0.3.0.1-alpha.
17127   o Minor features:
17128     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
17129       Country database.
17131   o Minor features (future-proofing):
17132     - Tor no longer refuses to download microdescriptors or descriptors
17133       if they are listed as "published in the future". This change will
17134       eventually allow us to stop listing meaningful "published" dates
17135       in microdescriptor consensuses, and thereby allow us to reduce the
17136       resources required to download consensus diffs by over 50%.
17137       Implements part of ticket 21642; implements part of proposal 275.
17139   o Minor bugfixes (Linux seccomp2 sandbox):
17140     - The getpid() system call is now permitted under the Linux seccomp2
17141       sandbox, to avoid crashing with versions of OpenSSL (and other
17142       libraries) that attempt to learn the process's PID by using the
17143       syscall rather than the VDSO code. Fixes bug 21943; bugfix
17144       on 0.2.5.1-alpha.
17147 Changes in version 0.3.0.6 - 2017-04-26
17148   Tor 0.3.0.6 is the first stable release of the Tor 0.3.0 series.
17150   With the 0.3.0 series, clients and relays now use Ed25519 keys to
17151   authenticate their link connections to relays, rather than the old
17152   RSA1024 keys that they used before. (Circuit crypto has been
17153   Curve25519-authenticated since 0.2.4.8-alpha.) We have also replaced
17154   the guard selection and replacement algorithm to behave more robustly
17155   in the presence of unreliable networks, and to resist guard-
17156   capture attacks.
17158   This series also includes numerous other small features and bugfixes,
17159   along with more groundwork for the upcoming hidden-services revamp.
17161   Per our stable release policy, we plan to support the Tor 0.3.0
17162   release series for at least the next nine months, or for three months
17163   after the first stable release of the 0.3.1 series: whichever is
17164   longer. If you need a release with long-term support, we recommend
17165   that you stay with the 0.2.9 series.
17167   Below are the changes since 0.3.0.5-rc. For a list of all changes
17168   since 0.2.9, see the ReleaseNotes file.
17170   o Minor features (geoip):
17171     - Update geoip and geoip6 to the April 4 2017 Maxmind GeoLite2
17172       Country database.
17174   o Minor bugfixes (control port):
17175     - The GETINFO extra-info/digest/<digest> command was broken because
17176       of a wrong base16 decode return value check, introduced when
17177       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
17179   o Minor bugfixes (crash prevention):
17180     - Fix a (currently untriggerable, but potentially dangerous) crash
17181       bug when base32-encoding inputs whose sizes are not a multiple of
17182       5. Fixes bug 21894; bugfix on 0.2.9.1-alpha.
17185 Changes in version 0.3.0.5-rc - 2017-04-05
17186   Tor 0.3.0.5-rc fixes a few remaining bugs, large and small, in the
17187   0.3.0 release series.
17189   This is the second release candidate in the Tor 0.3.0 series, and has
17190   much fewer changes than the first. If we find no new bugs or
17191   regressions here, the first stable 0.3.0 release will be nearly
17192   identical to it.
17194   o Major bugfixes (crash, directory connections):
17195     - Fix a rare crash when sending a begin cell on a circuit whose
17196       linked directory connection had already been closed. Fixes bug
17197       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
17199   o Major bugfixes (guard selection):
17200     - Fix a guard selection bug where Tor would refuse to bootstrap in
17201       some cases if the user swapped a bridge for another bridge in
17202       their configuration file. Fixes bug 21771; bugfix on 0.3.0.1-alpha.
17203       Reported by "torvlnt33r".
17205   o Minor features (geoip):
17206     - Update geoip and geoip6 to the March 7 2017 Maxmind GeoLite2
17207       Country database.
17209   o Minor bugfix (compilation):
17210     - Fix a warning when compiling hs_service.c. Previously, it had no
17211       exported symbols when compiled for libor.a, resulting in a
17212       compilation warning from clang. Fixes bug 21825; bugfix
17213       on 0.3.0.1-alpha.
17215   o Minor bugfixes (hidden services):
17216     - Make hidden services check for failed intro point connections,
17217       even when they have exceeded their intro point creation limit.
17218       Fixes bug 21596; bugfix on 0.2.7.2-alpha. Reported by Alec Muffett.
17219     - Make hidden services with 8 to 10 introduction points check for
17220       failed circuits immediately after startup. Previously, they would
17221       wait for 5 minutes before performing their first checks. Fixes bug
17222       21594; bugfix on 0.2.3.9-alpha. Reported by Alec Muffett.
17224   o Minor bugfixes (memory leaks):
17225     - Fix a memory leak when using GETCONF on a port option. Fixes bug
17226       21682; bugfix on 0.3.0.3-alpha.
17228   o Minor bugfixes (relay):
17229     - Avoid a double-marked-circuit warning that could happen when we
17230       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
17231       on 0.1.0.1-rc.
17233   o Minor bugfixes (tests):
17234     - Run the entry_guard_parse_from_state_full() test with the time set
17235       to a specific date. (The guard state that this test was parsing
17236       contained guards that had expired since the test was first
17237       written.) Fixes bug 21799; bugfix on 0.3.0.1-alpha.
17239   o Documentation:
17240     - Update the description of the directory server options in the
17241       manual page, to clarify that a relay no longer needs to set
17242       DirPort in order to be a directory cache. Closes ticket 21720.
17246 Changes in version 0.2.8.13 - 2017-03-03
17247   Tor 0.2.8.13 backports a security fix from later Tor
17248   releases.  Anybody running Tor 0.2.8.12 or earlier should upgrade to this
17249   this release, if for some reason they cannot upgrade to a later
17250   release series, and if they build Tor with the --enable-expensive-hardening
17251   option.
17253   Note that support for Tor 0.2.8.x is ending next year: we will not issue
17254   any fixes for the Tor 0.2.8.x series after 1 Jan 2018.  If you need
17255   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
17257   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
17258     - Fix an integer underflow bug when comparing malformed Tor
17259       versions. This bug could crash Tor when built with
17260       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
17261       0.2.9.8, which were built with -ftrapv by default. In other cases
17262       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
17263       on 0.0.8pre1. Found by OSS-Fuzz.
17265   o Minor features (geoip):
17266     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
17267       Country database.
17270 Changes in version 0.2.7.7 - 2017-03-03
17271   Tor 0.2.7.7 backports a number of security fixes from later Tor
17272   releases.  Anybody running Tor 0.2.7.6 or earlier should upgrade to
17273   this release, if for some reason they cannot upgrade to a later
17274   release series.
17276   Note that support for Tor 0.2.7.x is ending this year: we will not issue
17277   any fixes for the Tor 0.2.7.x series after 1 August 2017.  If you need
17278   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
17280   o Directory authority changes (backport from 0.2.8.5-rc):
17281     - Urras is no longer a directory authority. Closes ticket 19271.
17283   o Directory authority changes (backport from 0.2.9.2-alpha):
17284     - The "Tonga" bridge authority has been retired; the new bridge
17285       authority is "Bifroest". Closes tickets 19728 and 19690.
17287   o Directory authority key updates (backport from 0.2.8.1-alpha):
17288     - Update the V3 identity key for the dannenberg directory authority:
17289       it was changed on 18 November 2015. Closes task 17906. Patch
17290       by "teor".
17292   o Major bugfixes (parsing, security, backport from 0.2.9.8):
17293     - Fix a bug in parsing that could cause clients to read a single
17294       byte past the end of an allocated region. This bug could be used
17295       to cause hardened clients (built with --enable-expensive-hardening)
17296       to crash if they tried to visit a hostile hidden service. Non-
17297       hardened clients are only affected depending on the details of
17298       their platform's memory allocator. Fixes bug 21018; bugfix on
17299       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
17300       2016-12-002 and as CVE-2016-1254.
17302   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
17303     - Stop a crash that could occur when a client running with DNSPort
17304       received a query with multiple address types, and the first
17305       address type was not supported. Found and fixed by Scott Dial.
17306       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
17307     - Prevent a class of security bugs caused by treating the contents
17308       of a buffer chunk as if they were a NUL-terminated string. At
17309       least one such bug seems to be present in all currently used
17310       versions of Tor, and would allow an attacker to remotely crash
17311       most Tor instances, especially those compiled with extra compiler
17312       hardening. With this defense in place, such bugs can't crash Tor,
17313       though we should still fix them as they occur. Closes ticket
17314       20384 (TROVE-2016-10-001).
17316   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
17317     - Avoid a difficult-to-trigger heap corruption attack when extending
17318       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
17319       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
17320       Reported by Guido Vranken.
17322   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
17323     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
17324       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
17326   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
17327     - If OpenSSL fails to generate an RSA key, do not retain a dangling
17328       pointer to the previous (uninitialized) key value. The impact here
17329       should be limited to a difficult-to-trigger crash, if OpenSSL is
17330       running an engine that makes key generation failures possible, or
17331       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
17332       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
17333       Baishakhi Ray.
17335   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
17336     - Fix an integer underflow bug when comparing malformed Tor
17337       versions. This bug could crash Tor when built with
17338       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
17339       0.2.9.8, which were built with -ftrapv by default. In other cases
17340       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
17341       on 0.0.8pre1. Found by OSS-Fuzz.
17343   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
17344     - Make memwipe() do nothing when passed a NULL pointer or buffer of
17345       zero size. Check size argument to memwipe() for underflow. Fixes
17346       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
17347       patch by "teor".
17349   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
17350     - Make Tor survive errors involving connections without a
17351       corresponding event object. Previously we'd fail with an
17352       assertion; now we produce a log message. Related to bug 16248.
17354   o Minor features (geoip):
17355     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
17356       Country database.
17359 Changes in version 0.2.6.11 - 2017-03-03
17360   Tor 0.2.6.11 backports a number of security fixes from later Tor
17361   releases.  Anybody running Tor 0.2.6.10 or earlier should upgrade to
17362   this release, if for some reason they cannot upgrade to a later
17363   release series.
17365   Note that support for Tor 0.2.6.x is ending this year: we will not issue
17366   any fixes for the Tor 0.2.6.x series after 1 August 2017.  If you need
17367   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
17369   o Directory authority changes (backport from 0.2.8.5-rc):
17370     - Urras is no longer a directory authority. Closes ticket 19271.
17372   o Directory authority changes (backport from 0.2.9.2-alpha):
17373     - The "Tonga" bridge authority has been retired; the new bridge
17374       authority is "Bifroest". Closes tickets 19728 and 19690.
17376   o Directory authority key updates (backport from 0.2.8.1-alpha):
17377     - Update the V3 identity key for the dannenberg directory authority:
17378       it was changed on 18 November 2015. Closes task 17906. Patch
17379       by "teor".
17381   o Major features (security fixes, backport from 0.2.9.4-alpha):
17382     - Prevent a class of security bugs caused by treating the contents
17383       of a buffer chunk as if they were a NUL-terminated string. At
17384       least one such bug seems to be present in all currently used
17385       versions of Tor, and would allow an attacker to remotely crash
17386       most Tor instances, especially those compiled with extra compiler
17387       hardening. With this defense in place, such bugs can't crash Tor,
17388       though we should still fix them as they occur. Closes ticket
17389       20384 (TROVE-2016-10-001).
17391   o Major bugfixes (parsing, security, backport from 0.2.9.8):
17392     - Fix a bug in parsing that could cause clients to read a single
17393       byte past the end of an allocated region. This bug could be used
17394       to cause hardened clients (built with --enable-expensive-hardening)
17395       to crash if they tried to visit a hostile hidden service. Non-
17396       hardened clients are only affected depending on the details of
17397       their platform's memory allocator. Fixes bug 21018; bugfix on
17398       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
17399       2016-12-002 and as CVE-2016-1254.
17401   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
17402     - Stop a crash that could occur when a client running with DNSPort
17403       received a query with multiple address types, and the first
17404       address type was not supported. Found and fixed by Scott Dial.
17405       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
17407   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
17408     - Fix an error that could cause us to read 4 bytes before the
17409       beginning of an openssl string. This bug could be used to cause
17410       Tor to crash on systems with unusual malloc implementations, or
17411       systems with unusual hardening installed. Fixes bug 17404; bugfix
17412       on 0.2.3.6-alpha.
17414   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
17415     - Avoid a difficult-to-trigger heap corruption attack when extending
17416       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
17417       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
17418       Reported by Guido Vranken.
17420   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
17421     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
17422       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
17424   o Major bugfixes (guard selection, backport from 0.2.7.6):
17425     - Actually look at the Guard flag when selecting a new directory
17426       guard. When we implemented the directory guard design, we
17427       accidentally started treating all relays as if they have the Guard
17428       flag during guard selection, leading to weaker anonymity and worse
17429       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
17430       by Mohsen Imani.
17432   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
17433     - If OpenSSL fails to generate an RSA key, do not retain a dangling
17434       pointer to the previous (uninitialized) key value. The impact here
17435       should be limited to a difficult-to-trigger crash, if OpenSSL is
17436       running an engine that makes key generation failures possible, or
17437       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
17438       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
17439       Baishakhi Ray.
17441   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
17442     - Fix an integer underflow bug when comparing malformed Tor
17443       versions. This bug could crash Tor when built with
17444       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
17445       0.2.9.8, which were built with -ftrapv by default. In other cases
17446       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
17447       on 0.0.8pre1. Found by OSS-Fuzz.
17449   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
17450     - Make memwipe() do nothing when passed a NULL pointer or buffer of
17451       zero size. Check size argument to memwipe() for underflow. Fixes
17452       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
17453       patch by "teor".
17455   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
17456     - Make Tor survive errors involving connections without a
17457       corresponding event object. Previously we'd fail with an
17458       assertion; now we produce a log message. Related to bug 16248.
17460   o Minor features (geoip):
17461     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
17462       Country database.
17464   o Minor bugfixes (compilation, backport from 0.2.7.6):
17465     - Fix a compilation warning with Clang 3.6: Do not check the
17466       presence of an address which can never be NULL. Fixes bug 17781.
17469 Changes in version 0.2.5.13 - 2017-03-03
17470   Tor 0.2.5.13 backports a number of security fixes from later Tor
17471   releases.  Anybody running Tor 0.2.5.13 or earlier should upgrade to
17472   this release, if for some reason they cannot upgrade to a later
17473   release series.
17475   Note that support for Tor 0.2.5.x is ending next year: we will not issue
17476   any fixes for the Tor 0.2.5.x series after 1 May 2018.  If you need
17477   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
17479   o Directory authority changes (backport from 0.2.8.5-rc):
17480     - Urras is no longer a directory authority. Closes ticket 19271.
17482   o Directory authority changes (backport from 0.2.9.2-alpha):
17483     - The "Tonga" bridge authority has been retired; the new bridge
17484       authority is "Bifroest". Closes tickets 19728 and 19690.
17486   o Directory authority key updates (backport from 0.2.8.1-alpha):
17487     - Update the V3 identity key for the dannenberg directory authority:
17488       it was changed on 18 November 2015. Closes task 17906. Patch
17489       by "teor".
17491   o Major features (security fixes, backport from 0.2.9.4-alpha):
17492     - Prevent a class of security bugs caused by treating the contents
17493       of a buffer chunk as if they were a NUL-terminated string. At
17494       least one such bug seems to be present in all currently used
17495       versions of Tor, and would allow an attacker to remotely crash
17496       most Tor instances, especially those compiled with extra compiler
17497       hardening. With this defense in place, such bugs can't crash Tor,
17498       though we should still fix them as they occur. Closes ticket
17499       20384 (TROVE-2016-10-001).
17501   o Major bugfixes (parsing, security, backport from 0.2.9.8):
17502     - Fix a bug in parsing that could cause clients to read a single
17503       byte past the end of an allocated region. This bug could be used
17504       to cause hardened clients (built with --enable-expensive-hardening)
17505       to crash if they tried to visit a hostile hidden service. Non-
17506       hardened clients are only affected depending on the details of
17507       their platform's memory allocator. Fixes bug 21018; bugfix on
17508       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
17509       2016-12-002 and as CVE-2016-1254.
17511   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
17512     - Stop a crash that could occur when a client running with DNSPort
17513       received a query with multiple address types, and the first
17514       address type was not supported. Found and fixed by Scott Dial.
17515       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
17517   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
17518     - Fix an error that could cause us to read 4 bytes before the
17519       beginning of an openssl string. This bug could be used to cause
17520       Tor to crash on systems with unusual malloc implementations, or
17521       systems with unusual hardening installed. Fixes bug 17404; bugfix
17522       on 0.2.3.6-alpha.
17524   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
17525     - Avoid a difficult-to-trigger heap corruption attack when extending
17526       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
17527       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
17528       Reported by Guido Vranken.
17530   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
17531     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
17532       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
17534   o Major bugfixes (guard selection, backport from 0.2.7.6):
17535     - Actually look at the Guard flag when selecting a new directory
17536       guard. When we implemented the directory guard design, we
17537       accidentally started treating all relays as if they have the Guard
17538       flag during guard selection, leading to weaker anonymity and worse
17539       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
17540       by Mohsen Imani.
17542   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
17543     - If OpenSSL fails to generate an RSA key, do not retain a dangling
17544       pointer to the previous (uninitialized) key value. The impact here
17545       should be limited to a difficult-to-trigger crash, if OpenSSL is
17546       running an engine that makes key generation failures possible, or
17547       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
17548       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
17549       Baishakhi Ray.
17551   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
17552     - Fix an integer underflow bug when comparing malformed Tor
17553       versions. This bug could crash Tor when built with
17554       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
17555       0.2.9.8, which were built with -ftrapv by default. In other cases
17556       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
17557       on 0.0.8pre1. Found by OSS-Fuzz.
17559   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
17560     - Make memwipe() do nothing when passed a NULL pointer or buffer of
17561       zero size. Check size argument to memwipe() for underflow. Fixes
17562       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
17563       patch by "teor".
17565   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
17566     - Make Tor survive errors involving connections without a
17567       corresponding event object. Previously we'd fail with an
17568       assertion; now we produce a log message. Related to bug 16248.
17570   o Minor features (geoip):
17571     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
17572       Country database.
17574   o Minor bugfixes (compilation, backport from 0.2.7.6):
17575     - Fix a compilation warning with Clang 3.6: Do not check the
17576       presence of an address which can never be NULL. Fixes bug 17781.
17578   o Minor bugfixes (crypto error-handling, backport from 0.2.7.2-alpha):
17579     - Check for failures from crypto_early_init, and refuse to continue.
17580       A previous typo meant that we could keep going with an
17581       uninitialized crypto library, and would have OpenSSL initialize
17582       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
17583       when implementing ticket 4900. Patch by "teor".
17585   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
17586     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
17587       a client authorized hidden service. Fixes bug 15823; bugfix
17588       on 0.2.1.6-alpha.
17591 Changes in version 0.2.4.28 - 2017-03-03
17592   Tor 0.2.4.28 backports a number of security fixes from later Tor
17593   releases.  Anybody running Tor 0.2.4.27 or earlier should upgrade to
17594   this release, if for some reason they cannot upgrade to a later
17595   release series.
17597   Note that support for Tor 0.2.4.x is ending soon: we will not issue
17598   any fixes for the Tor 0.2.4.x series after 1 August 2017.  If you need
17599   a Tor release series with long-term support, we recommend Tor 0.2.9.x.
17601   o Directory authority changes (backport from 0.2.8.5-rc):
17602     - Urras is no longer a directory authority. Closes ticket 19271.
17604   o Directory authority changes (backport from 0.2.9.2-alpha):
17605     - The "Tonga" bridge authority has been retired; the new bridge
17606       authority is "Bifroest". Closes tickets 19728 and 19690.
17608   o Directory authority key updates (backport from 0.2.8.1-alpha):
17609     - Update the V3 identity key for the dannenberg directory authority:
17610       it was changed on 18 November 2015. Closes task 17906. Patch
17611       by "teor".
17613   o Major features (security fixes, backport from 0.2.9.4-alpha):
17614     - Prevent a class of security bugs caused by treating the contents
17615       of a buffer chunk as if they were a NUL-terminated string. At
17616       least one such bug seems to be present in all currently used
17617       versions of Tor, and would allow an attacker to remotely crash
17618       most Tor instances, especially those compiled with extra compiler
17619       hardening. With this defense in place, such bugs can't crash Tor,
17620       though we should still fix them as they occur. Closes ticket
17621       20384 (TROVE-2016-10-001).
17623   o Major bugfixes (parsing, security, backport from 0.2.9.8):
17624     - Fix a bug in parsing that could cause clients to read a single
17625       byte past the end of an allocated region. This bug could be used
17626       to cause hardened clients (built with --enable-expensive-hardening)
17627       to crash if they tried to visit a hostile hidden service. Non-
17628       hardened clients are only affected depending on the details of
17629       their platform's memory allocator. Fixes bug 21018; bugfix on
17630       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
17631       2016-12-002 and as CVE-2016-1254.
17633   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
17634     - Fix an error that could cause us to read 4 bytes before the
17635       beginning of an openssl string. This bug could be used to cause
17636       Tor to crash on systems with unusual malloc implementations, or
17637       systems with unusual hardening installed. Fixes bug 17404; bugfix
17638       on 0.2.3.6-alpha.
17640   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
17641     - Avoid a difficult-to-trigger heap corruption attack when extending
17642       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
17643       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
17644       Reported by Guido Vranken.
17646   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
17647     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
17648       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
17650   o Major bugfixes (guard selection, backport from 0.2.7.6):
17651     - Actually look at the Guard flag when selecting a new directory
17652       guard. When we implemented the directory guard design, we
17653       accidentally started treating all relays as if they have the Guard
17654       flag during guard selection, leading to weaker anonymity and worse
17655       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
17656       by Mohsen Imani.
17658   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
17659     - If OpenSSL fails to generate an RSA key, do not retain a dangling
17660       pointer to the previous (uninitialized) key value. The impact here
17661       should be limited to a difficult-to-trigger crash, if OpenSSL is
17662       running an engine that makes key generation failures possible, or
17663       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
17664       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
17665       Baishakhi Ray.
17667   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
17668     - Fix an integer underflow bug when comparing malformed Tor
17669       versions. This bug could crash Tor when built with
17670       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
17671       0.2.9.8, which were built with -ftrapv by default. In other cases
17672       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
17673       on 0.0.8pre1. Found by OSS-Fuzz.
17675   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
17676     - Make memwipe() do nothing when passed a NULL pointer or buffer of
17677       zero size. Check size argument to memwipe() for underflow. Fixes
17678       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
17679       patch by "teor".
17681   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
17682     - Make Tor survive errors involving connections without a
17683       corresponding event object. Previously we'd fail with an
17684       assertion; now we produce a log message. Related to bug 16248.
17686   o Minor features (DoS-resistance, backport from 0.2.7.1-alpha):
17687     - Make it harder for attackers to overload hidden services with
17688       introductions, by blocking multiple introduction requests on the
17689       same circuit. Resolves ticket 15515.
17691   o Minor features (geoip):
17692     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
17693       Country database.
17695   o Minor bugfixes (compilation, backport from 0.2.7.6):
17696     - Fix a compilation warning with Clang 3.6: Do not check the
17697       presence of an address which can never be NULL. Fixes bug 17781.
17699   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
17700     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
17701       a client authorized hidden service. Fixes bug 15823; bugfix
17702       on 0.2.1.6-alpha.
17705 Changes in version 0.3.0.4-rc - 2017-03-01
17706   Tor 0.3.0.4-rc fixes some remaining bugs, large and small, in the
17707   0.3.0 release series, and introduces a few reliability features to
17708   keep them from coming back.
17710   This is the first release candidate in the Tor 0.3.0 series. If we
17711   find no new bugs or regressions here, the first stable 0.3.0 release
17712   will be nearly identical to it.
17714   o Major bugfixes (bridges):
17715     - When the same bridge is configured multiple times with the same
17716       identity, but at different address:port combinations, treat those
17717       bridge instances as separate guards. This fix restores the ability
17718       of clients to configure the same bridge with multiple pluggable
17719       transports. Fixes bug 21027; bugfix on 0.3.0.1-alpha.
17721   o Major bugfixes (hidden service directory v3):
17722     - Stop crashing on a failed v3 hidden service descriptor lookup
17723       failure. Fixes bug 21471; bugfixes on 0.3.0.1-alpha.
17725   o Major bugfixes (parsing):
17726     - When parsing a malformed content-length field from an HTTP
17727       message, do not read off the end of the buffer. This bug was a
17728       potential remote denial-of-service attack against Tor clients and
17729       relays. A workaround was released in October 2016, to prevent this
17730       bug from crashing Tor. This is a fix for the underlying issue,
17731       which should no longer matter (if you applied the earlier patch).
17732       Fixes bug 20894; bugfix on 0.2.0.16-alpha. Bug found by fuzzing
17733       using AFL (http://lcamtuf.coredump.cx/afl/).
17734     - Fix an integer underflow bug when comparing malformed Tor
17735       versions. This bug could crash Tor when built with
17736       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
17737       0.2.9.8, which were built with -ftrapv by default. In other cases
17738       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
17739       on 0.0.8pre1. Found by OSS-Fuzz.
17741   o Minor feature (protocol versioning):
17742     - Add new protocol version for proposal 224. HSIntro now advertises
17743       version "3-4" and HSDir version "1-2". Fixes ticket 20656.
17745   o Minor features (directory authorities):
17746     - Directory authorities now reject descriptors that claim to be
17747       malformed versions of Tor. Helps prevent exploitation of
17748       bug 21278.
17749     - Reject version numbers with components that exceed INT32_MAX.
17750       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
17751       Fixes bug 21450; bugfix on 0.0.8pre1.
17752     - Directory authorities now reject relays running versions
17753       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
17754       suffer from bug 20499 and don't keep their consensus cache
17755       up-to-date. Resolves ticket 20509.
17757   o Minor features (geoip):
17758     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
17759       Country database.
17761   o Minor features (reliability, crash):
17762     - Try better to detect problems in buffers where they might grow (or
17763       think they have grown) over 2 GB in size. Diagnostic for
17764       bug 21369.
17766   o Minor features (testing):
17767     - During 'make test-network-all', if tor logs any warnings, ask
17768       chutney to output them. Requires a recent version of chutney with
17769       the 21572 patch. Implements 21570.
17771   o Minor bugfixes (certificate expiration time):
17772     - Avoid using link certificates that don't become valid till some
17773       time in the future. Fixes bug 21420; bugfix on 0.2.4.11-alpha
17775   o Minor bugfixes (code correctness):
17776     - Repair a couple of (unreachable or harmless) cases of the risky
17777       comparison-by-subtraction pattern that caused bug 21278.
17778     - Remove a redundant check for the UseEntryGuards option from the
17779       options_transition_affects_guards() function. Fixes bug 21492;
17780       bugfix on 0.3.0.1-alpha.
17782   o Minor bugfixes (directory mirrors):
17783     - Allow relays to use directory mirrors without a DirPort: these
17784       relays need to be contacted over their ORPorts using a begindir
17785       connection. Fixes one case of bug 20711; bugfix on 0.2.8.2-alpha.
17786     - Clarify the message logged when a remote relay is unexpectedly
17787       missing an ORPort or DirPort: users were confusing this with a
17788       local port. Fixes another case of bug 20711; bugfix
17789       on 0.2.8.2-alpha.
17791   o Minor bugfixes (guards):
17792     - Don't warn about a missing guard state on timeout-measurement
17793       circuits: they aren't supposed to be using guards. Fixes an
17794       instance of bug 21007; bugfix on 0.3.0.1-alpha.
17795     - Silence a BUG() warning when attempting to use a guard whose
17796       descriptor we don't know, and make this scenario less likely to
17797       happen. Fixes bug 21415; bugfix on 0.3.0.1-alpha.
17799   o Minor bugfixes (hidden service):
17800     - Pass correct buffer length when encoding legacy ESTABLISH_INTRO
17801       cells. Previously, we were using sizeof() on a pointer, instead of
17802       the real destination buffer. Fortunately, that value was only used
17803       to double-check that there was enough room--which was already
17804       enforced elsewhere. Fixes bug 21553; bugfix on 0.3.0.1-alpha.
17806   o Minor bugfixes (testing):
17807     - Fix Raspbian build issues related to missing socket errno in
17808       test_util.c. Fixes bug 21116; bugfix on 0.2.8.2. Patch
17809       by "hein".
17810     - Rename "make fuzz" to "make test-fuzz-corpora", since it doesn't
17811       actually fuzz anything. Fixes bug 21447; bugfix on 0.3.0.3-alpha.
17812     - Use bash in src/test/test-network.sh. This ensures we reliably
17813       call chutney's newer tools/test-network.sh when available. Fixes
17814       bug 21562; bugfix on 0.2.9.1-alpha.
17816   o Documentation:
17817     - Small fixes to the fuzzing documentation. Closes ticket 21472.
17820 Changes in version 0.2.9.10 - 2017-03-01
17821   Tor 0.2.9.10 backports a security fix from later Tor release.  It also
17822   includes fixes for some major issues affecting directory authorities,
17823   LibreSSL compatibility, and IPv6 correctness.
17825   The Tor 0.2.9.x release series is now marked as a long-term-support
17826   series.  We intend to backport security fixes to 0.2.9.x until at
17827   least January of 2020.
17829   o Major bugfixes (directory authority, 0.3.0.3-alpha):
17830     - During voting, when marking a relay as a probable sybil, do not
17831       clear its BadExit flag: sybils can still be bad in other ways
17832       too. (We still clear the other flags.) Fixes bug 21108; bugfix
17833       on 0.2.0.13-alpha.
17835   o Major bugfixes (IPv6 Exits, backport from 0.3.0.3-alpha):
17836     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
17837       any IPv6 addresses. Instead, only reject a port over IPv6 if the
17838       exit policy rejects that port on more than an IPv6 /16 of
17839       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
17840       which rejected a relay's own IPv6 address by default. Fixes bug
17841       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
17843   o Major bugfixes (parsing, also in 0.3.0.4-rc):
17844     - Fix an integer underflow bug when comparing malformed Tor
17845       versions. This bug could crash Tor when built with
17846       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
17847       0.2.9.8, which were built with -ftrapv by default. In other cases
17848       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
17849       on 0.0.8pre1. Found by OSS-Fuzz.
17851   o Minor features (directory authorities, also in 0.3.0.4-rc):
17852     - Directory authorities now reject descriptors that claim to be
17853       malformed versions of Tor. Helps prevent exploitation of
17854       bug 21278.
17855     - Reject version numbers with components that exceed INT32_MAX.
17856       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
17857       Fixes bug 21450; bugfix on 0.0.8pre1.
17859   o Minor features (geoip):
17860     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
17861       Country database.
17863   o Minor features (portability, compilation, backport from 0.3.0.3-alpha):
17864     - Autoconf now checks to determine if OpenSSL structures are opaque,
17865       instead of explicitly checking for OpenSSL version numbers. Part
17866       of ticket 21359.
17867     - Support building with recent LibreSSL code that uses opaque
17868       structures. Closes ticket 21359.
17870   o Minor bugfixes (code correctness, also in 0.3.0.4-rc):
17871     - Repair a couple of (unreachable or harmless) cases of the risky
17872       comparison-by-subtraction pattern that caused bug 21278.
17874   o Minor bugfixes (tor-resolve, backport from 0.3.0.3-alpha):
17875     - The tor-resolve command line tool now rejects hostnames over 255
17876       characters in length. Previously, it would silently truncate them,
17877       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
17878       Patch by "junglefowl".
17881 Changes in version 0.3.0.3-alpha - 2017-02-03
17882   Tor 0.3.0.3-alpha fixes a few significant bugs introduced over the
17883   0.3.0.x development series, including some that could cause
17884   authorities to behave badly. There is also a fix for a longstanding
17885   bug that could prevent IPv6 exits from working. Tor 0.3.0.3-alpha also
17886   includes some smaller features and bugfixes.
17888   The Tor 0.3.0.x release series is now in patch-freeze: no additional
17889   features will be considered for inclusion in 0.3.0.x. We suspect that
17890   some bugs will probably remain, however, and we encourage people to
17891   test this release.
17893   o Major bugfixes (directory authority):
17894     - During voting, when marking a relay as a probable sybil, do not
17895       clear its BadExit flag: sybils can still be bad in other ways
17896       too. (We still clear the other flags.) Fixes bug 21108; bugfix
17897       on 0.2.0.13-alpha.
17898     - When deciding whether we have just found a router to be reachable,
17899       do not penalize it for not having performed an Ed25519 link
17900       handshake if it does not claim to support an Ed25519 handshake.
17901       Previously, we would treat such relays as non-running. Fixes bug
17902       21107; bugfix on 0.3.0.1-alpha.
17904   o Major bugfixes (entry guards):
17905     - Stop trying to build circuits through entry guards for which we
17906       have no descriptor. Also, stop crashing in the case that we *do*
17907       accidentally try to build a circuit in such a state. Fixes bug
17908       21242; bugfix on 0.3.0.1-alpha.
17910   o Major bugfixes (IPv6 Exits):
17911     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
17912       any IPv6 addresses. Instead, only reject a port over IPv6 if the
17913       exit policy rejects that port on more than an IPv6 /16 of
17914       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
17915       which rejected a relay's own IPv6 address by default. Fixes bug
17916       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
17918   o Minor feature (client):
17919     - Enable IPv6 traffic on the SocksPort by default. To disable this,
17920       a user will have to specify "NoIPv6Traffic". Closes ticket 21269.
17922   o Minor feature (fallback scripts):
17923     - Add a check_existing mode to updateFallbackDirs.py, which checks
17924       if fallbacks in the hard-coded list are working. Closes ticket
17925       20174. Patch by haxxpop.
17927   o Minor features (ciphersuite selection):
17928     - Clients now advertise a list of ciphersuites closer to the ones
17929       preferred by Firefox. Closes part of ticket 15426.
17930     - Allow relays to accept a wider range of ciphersuites, including
17931       chacha20-poly1305 and AES-CCM. Closes the other part of 15426.
17933   o Minor features (controller, configuration):
17934     - Each of the *Port options, such as SocksPort, ORPort, ControlPort,
17935       and so on, now comes with a __*Port variant that will not be saved
17936       to the torrc file by the controller's SAVECONF command. This
17937       change allows TorBrowser to set up a single-use domain socket for
17938       each time it launches Tor. Closes ticket 20956.
17939     - The GETCONF command can now query options that may only be
17940       meaningful in context-sensitive lists. This allows the controller
17941       to query the mixed SocksPort/__SocksPort style options introduced
17942       in feature 20956. Implements ticket 21300.
17944   o Minor features (portability, compilation):
17945     - Autoconf now checks to determine if OpenSSL structures are opaque,
17946       instead of explicitly checking for OpenSSL version numbers. Part
17947       of ticket 21359.
17948     - Support building with recent LibreSSL code that uses opaque
17949       structures. Closes ticket 21359.
17951   o Minor features (relay):
17952     - We now allow separation of exit and relay traffic to different
17953       source IP addresses, using the OutboundBindAddressExit and
17954       OutboundBindAddressOR options respectively. Closes ticket 17975.
17955       Written by Michael Sonntag.
17957   o Minor bugfix (logging):
17958     - Don't recommend the use of Tor2web in non-anonymous mode.
17959       Recommending Tor2web is a bad idea because the client loses all
17960       anonymity. Tor2web should only be used in specific cases by users
17961       who *know* and understand the issues. Fixes bug 21294; bugfix
17962       on 0.2.9.3-alpha.
17964   o Minor bugfixes (client):
17965     - Always recover from failures in extend_info_from_node(), in an
17966       attempt to prevent any recurrence of bug 21242. Fixes bug 21372;
17967       bugfix on 0.2.3.1-alpha.
17969   o Minor bugfixes (client, entry guards):
17970     - Fix a bug warning (with backtrace) when we fail a channel that
17971       circuits to fallback directories on it. Fixes bug 21128; bugfix
17972       on 0.3.0.1-alpha.
17973     - Fix a spurious bug warning (with backtrace) when removing an
17974       expired entry guard. Fixes bug 21129; bugfix on 0.3.0.1-alpha.
17975     - Fix a bug of the new guard algorithm where tor could stall for up
17976       to 10 minutes before retrying a guard after a long period of no
17977       network. Fixes bug 21052; bugfix on 0.3.0.1-alpha.
17978     - Do not try to build circuits until we have descriptors for our
17979       primary entry guards. Related to fix for bug 21242.
17981   o Minor bugfixes (configure, autoconf):
17982     - Rename the configure option --enable-expensive-hardening to
17983       --enable-fragile-hardening. Expensive hardening makes the tor
17984       daemon abort when some kinds of issues are detected. Thus, it
17985       makes tor more at risk of remote crashes but safer against RCE or
17986       heartbleed bug category. We now try to explain this issue in a
17987       message from the configure script. Fixes bug 21290; bugfix
17988       on 0.2.5.4-alpha.
17990   o Minor bugfixes (controller):
17991     - Restore the (deprecated) DROPGUARDS controller command. Fixes bug
17992       20824; bugfix on 0.3.0.1-alpha.
17994   o Minor bugfixes (hidden service):
17995     - Clean up the code for expiring intro points with no associated
17996       circuits. It was causing, rarely, a service with some expiring
17997       introduction points to not open enough additional introduction
17998       points. Fixes part of bug 21302; bugfix on 0.2.7.2-alpha.
17999     - Stop setting the torrc option HiddenServiceStatistics to "0" just
18000       because we're not a bridge or relay. Instead, we preserve whatever
18001       value the user set (or didn't set). Fixes bug 21150; bugfix
18002       on 0.2.6.2-alpha.
18003     - Resolve two possible underflows which could lead to creating and
18004       closing a lot of introduction point circuits in a non-stop loop.
18005       Fixes bug 21302; bugfix on 0.2.7.2-alpha.
18007   o Minor bugfixes (portability):
18008     - Use "OpenBSD" compiler macro instead of "OPENBSD" or "__OpenBSD__".
18009       It is supported by OpenBSD itself, and also by most OpenBSD
18010       variants (such as Bitrig). Fixes bug 20980; bugfix
18011       on 0.1.2.1-alpha.
18012     - When mapping a file of length greater than SIZE_MAX, do not
18013       silently truncate its contents. This issue could occur on 32 bit
18014       systems with large file support and files which are larger than 4
18015       GB. Fixes bug 21134; bugfix on 0.3.0.1-alpha.
18017   o Minor bugfixes (tor-resolve):
18018     - The tor-resolve command line tool now rejects hostnames over 255
18019       characters in length. Previously, it would silently truncate them,
18020       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
18021       Patch by "junglefowl".
18023   o Minor bugfixes (Windows services):
18024     - Be sure to initialize the monotonic time subsystem before using
18025       it, even when running as an NT service. Fixes bug 21356; bugfix
18026       on 0.2.9.1-alpha.
18029 Changes in version 0.3.0.2-alpha - 2017-01-23
18030   Tor 0.3.0.2-alpha fixes a denial-of-service bug where an attacker could
18031   cause relays and clients to crash, even if they were not built with
18032   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
18033   versions, and also affects 0.3.0.1-alpha: all relays running an affected
18034   version should upgrade.
18036   Tor 0.3.0.2-alpha also improves how exit relays and clients handle DNS
18037   time-to-live values, makes directory authorities enforce the 1-to-1
18038   mapping of relay RSA identity keys to ED25519 identity keys, fixes a
18039   client-side onion service reachability bug, does better at selecting
18040   the set of fallback directories, and more.
18042   o Major bugfixes (security, also in 0.2.9.9):
18043     - Downgrade the "-ftrapv" option from "always on" to "only on when
18044       --enable-expensive-hardening is provided."  This hardening option, like
18045       others, can turn survivable bugs into crashes--and having it on by
18046       default made a (relatively harmless) integer overflow bug into a
18047       denial-of-service bug. Fixes bug 21278 (TROVE-2017-001); bugfix on
18048       0.2.9.1-alpha.
18050   o Major features (security):
18051     - Change the algorithm used to decide DNS TTLs on client and server
18052       side, to better resist DNS-based correlation attacks like the
18053       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
18054       Feamster. Now relays only return one of two possible DNS TTL
18055       values, and clients are willing to believe DNS TTL values up to 3
18056       hours long. Closes ticket 19769.
18058   o Major features (directory authority, security):
18059     - The default for AuthDirPinKeys is now 1: directory authorities
18060       will reject relays where the RSA identity key matches a previously
18061       seen value, but the Ed25519 key has changed. Closes ticket 18319.
18063   o Major bugfixes (client, guard, crash):
18064     - In circuit_get_global_origin_list(), return the actual list of
18065       origin circuits. The previous version of this code returned the
18066       list of all the circuits, and could have caused strange bugs,
18067       including possible crashes. Fixes bug 21118; bugfix
18068       on 0.3.0.1-alpha.
18070   o Major bugfixes (client, onion service, also in 0.2.9.9):
18071     - Fix a client-side onion service reachability bug, where multiple
18072       socks requests to an onion service (or a single slow request)
18073       could cause us to mistakenly mark some of the service's
18074       introduction points as failed, and we cache that failure so
18075       eventually we run out and can't reach the service. Also resolves a
18076       mysterious "Remote server sent bogus reason code 65021" log
18077       warning. The bug was introduced in ticket 17218, where we tried to
18078       remember the circuit end reason as a uint16_t, which mangled
18079       negative values. Partially fixes bug 21056 and fixes bug 20307;
18080       bugfix on 0.2.8.1-alpha.
18082   o Major bugfixes (DNS):
18083     - Fix a bug that prevented exit nodes from caching DNS records for
18084       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
18086   o Minor features (controller):
18087     - Add "GETINFO sr/current" and "GETINFO sr/previous" keys, to expose
18088       shared-random values to the controller. Closes ticket 19925.
18090   o Minor features (entry guards):
18091     - Add UseEntryGuards to TEST_OPTIONS_DEFAULT_VALUES in order to not
18092       break regression tests.
18093     - Require UseEntryGuards when UseBridges is set, in order to make
18094       sure bridges aren't bypassed. Resolves ticket 20502.
18096   o Minor features (fallback directories):
18097     - Select 200 fallback directories for each release. Closes
18098       ticket 20881.
18099     - Allow 3 fallback relays per operator, which is safe now that we
18100       are choosing 200 fallback relays. Closes ticket 20912.
18101     - Exclude relays affected by bug 20499 from the fallback list.
18102       Exclude relays from the fallback list if they are running versions
18103       known to be affected by bug 20499, or if in our tests they deliver
18104       a stale consensus (i.e. one that expired more than 24 hours ago).
18105       Closes ticket 20539.
18106     - Reduce the minimum fallback bandwidth to 1 MByte/s. Part of
18107       ticket 18828.
18108     - Require fallback directories to have the same address and port for
18109       7 days (now that we have enough relays with this stability).
18110       Relays whose OnionOO stability timer is reset on restart by bug
18111       18050 should upgrade to Tor 0.2.8.7 or later, which has a fix for
18112       this issue. Closes ticket 20880; maintains short-term fix
18113       in 0.2.8.2-alpha.
18114     - Require fallbacks to have flags for 90% of the time (weighted
18115       decaying average), rather than 95%. This allows at least 73% of
18116       clients to bootstrap in the first 5 seconds without contacting an
18117       authority. Part of ticket 18828.
18118     - Annotate updateFallbackDirs.py with the bandwidth and consensus
18119       weight for each candidate fallback. Closes ticket 20878.
18120     - Make it easier to change the output sort order of fallbacks.
18121       Closes ticket 20822.
18122     - Display the relay fingerprint when downloading consensuses from
18123       fallbacks. Closes ticket 20908.
18125   o Minor features (geoip, also in 0.2.9.9):
18126     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
18127       Country database.
18129   o Minor features (next-gen onion service directories):
18130     - Remove the "EnableOnionServicesV3" consensus parameter that we
18131       introduced in 0.3.0.1-alpha: relays are now always willing to act
18132       as v3 onion service directories. Resolves ticket 19899.
18134   o Minor features (linting):
18135     - Enhance the changes file linter to warn on Tor versions that are
18136       prefixed with "tor-". Closes ticket 21096.
18138   o Minor features (logging):
18139     - In several places, describe unset ed25519 keys as "<unset>",
18140       rather than the scary "AAAAAAAA...AAA". Closes ticket 21037.
18142   o Minor bugfix (control protocol):
18143     - The reply to a "GETINFO config/names" request via the control
18144       protocol now spells the type "Dependent" correctly. This is a
18145       breaking change in the control protocol. (The field seems to be
18146       ignored by the most common known controllers.) Fixes bug 18146;
18147       bugfix on 0.1.1.4-alpha.
18149   o Minor bugfixes (bug resilience):
18150     - Fix an unreachable size_t overflow in base64_decode(). Fixes bug
18151       19222; bugfix on 0.2.0.9-alpha. Found by Guido Vranken; fixed by
18152       Hans Jerry Illikainen.
18154   o Minor bugfixes (build):
18155     - Replace obsolete Autoconf macros with their modern equivalent and
18156       prevent similar issues in the future. Fixes bug 20990; bugfix
18157       on 0.1.0.1-rc.
18159   o Minor bugfixes (client, guards):
18160     - Fix bug where Tor would think that there are circuits waiting for
18161       better guards even though those circuits have been freed. Fixes
18162       bug 21142; bugfix on 0.3.0.1-alpha.
18164   o Minor bugfixes (config):
18165     - Don't assert on startup when trying to get the options list and
18166       LearnCircuitBuildTimeout is set to 0: we are currently parsing the
18167       options so of course they aren't ready yet. Fixes bug 21062;
18168       bugfix on 0.2.9.3-alpha.
18170   o Minor bugfixes (controller):
18171     - Make the GETINFO interface for inquiring about entry guards
18172       support the new guards backend. Fixes bug 20823; bugfix
18173       on 0.3.0.1-alpha.
18175   o Minor bugfixes (dead code):
18176     - Remove a redundant check for PidFile changes at runtime in
18177       options_transition_allowed(): this check is already performed
18178       regardless of whether the sandbox is active. Fixes bug 21123;
18179       bugfix on 0.2.5.4-alpha.
18181   o Minor bugfixes (documentation):
18182     - Update the tor manual page to document every option that can not
18183       be changed while tor is running. Fixes bug 21122.
18185   o Minor bugfixes (fallback directories):
18186     - Stop failing when a relay has no uptime data in
18187       updateFallbackDirs.py. Fixes bug 20945; bugfix on 0.2.8.1-alpha.
18188     - Avoid checking fallback candidates' DirPorts if they are down in
18189       OnionOO. When a relay operator has multiple relays, this
18190       prioritizes relays that are up over relays that are down. Fixes
18191       bug 20926; bugfix on 0.2.8.3-alpha.
18192     - Stop failing when OUTPUT_COMMENTS is True in updateFallbackDirs.py.
18193       Fixes bug 20877; bugfix on 0.2.8.3-alpha.
18195   o Minor bugfixes (guards, bootstrapping):
18196     - When connecting to a directory guard during bootstrap, do not mark
18197       the guard as successful until we receive a good-looking directory
18198       response from it. Fixes bug 20974; bugfix on 0.3.0.1-alpha.
18200   o Minor bugfixes (onion services):
18201     - Fix the config reload pruning of old vs new services so it
18202       actually works when both ephemeral and non-ephemeral services are
18203       configured. Fixes bug 21054; bugfix on 0.3.0.1-alpha.
18204     - Allow the number of introduction points to be as low as 0, rather
18205       than as low as 3. Fixes bug 21033; bugfix on 0.2.7.2-alpha.
18207   o Minor bugfixes (IPv6):
18208     - Make IPv6-using clients try harder to find an IPv6 directory
18209       server. Fixes bug 20999; bugfix on 0.2.8.2-alpha.
18210     - When IPv6 addresses have not been downloaded yet (microdesc
18211       consensus documents don't list relay IPv6 addresses), use hard-
18212       coded addresses for authorities, fallbacks, and configured
18213       bridges. Now IPv6-only clients can use microdescriptors. Fixes bug
18214       20996; bugfix on b167e82 from 19608 in 0.2.8.5-alpha.
18216   o Minor bugfixes (memory leaks):
18217     - Fix a memory leak when configuring hidden services. Fixes bug
18218       20987; bugfix on 0.3.0.1-alpha.
18220   o Minor bugfixes (portability, also in 0.2.9.9):
18221     - Avoid crashing when Tor is built using headers that contain
18222       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
18223       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
18224       on 0.2.9.1-alpha.
18225     - Fix Libevent detection on platforms without Libevent 1 headers
18226       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
18228   o Minor bugfixes (relay):
18229     - Honor DataDirectoryGroupReadable when tor is a relay. Previously,
18230       initializing the keys would reset the DataDirectory to 0700
18231       instead of 0750 even if DataDirectoryGroupReadable was set to 1.
18232       Fixes bug 19953; bugfix on 0.0.2pre16. Patch by "redfish".
18234   o Minor bugfixes (testing):
18235     - Remove undefined behavior from the backtrace generator by removing
18236       its signal handler. Fixes bug 21026; bugfix on 0.2.5.2-alpha.
18238   o Minor bugfixes (unit tests):
18239     - Allow the unit tests to pass even when DNS lookups of bogus
18240       addresses do not fail as expected. Fixes bug 20862 and 20863;
18241       bugfix on unit tests introduced in 0.2.8.1-alpha
18242       through 0.2.9.4-alpha.
18244   o Code simplification and refactoring:
18245     - Refactor code to manipulate global_origin_circuit_list into
18246       separate functions. Closes ticket 20921.
18248   o Documentation (formatting):
18249     - Clean up formatting of tor.1 man page and HTML doc, where <pre>
18250       blocks were incorrectly appearing. Closes ticket 20885.
18252   o Documentation (man page):
18253     - Clarify many options in tor.1 and add some min/max values for
18254       HiddenService options. Closes ticket 21058.
18257 Changes in version 0.2.9.9 - 2017-01-23
18258   Tor 0.2.9.9 fixes a denial-of-service bug where an attacker could
18259   cause relays and clients to crash, even if they were not built with
18260   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
18261   versions, and also affects 0.3.0.1-alpha: all relays running an affected
18262   version should upgrade.
18264   This release also resolves a client-side onion service reachability
18265   bug, and resolves a pair of small portability issues.
18267   o Major bugfixes (security):
18268     - Downgrade the "-ftrapv" option from "always on" to "only on when
18269       --enable-expensive-hardening is provided." This hardening option,
18270       like others, can turn survivable bugs into crashes -- and having
18271       it on by default made a (relatively harmless) integer overflow bug
18272       into a denial-of-service bug. Fixes bug 21278 (TROVE-2017-001);
18273       bugfix on 0.2.9.1-alpha.
18275   o Major bugfixes (client, onion service):
18276     - Fix a client-side onion service reachability bug, where multiple
18277       socks requests to an onion service (or a single slow request)
18278       could cause us to mistakenly mark some of the service's
18279       introduction points as failed, and we cache that failure so
18280       eventually we run out and can't reach the service. Also resolves a
18281       mysterious "Remote server sent bogus reason code 65021" log
18282       warning. The bug was introduced in ticket 17218, where we tried to
18283       remember the circuit end reason as a uint16_t, which mangled
18284       negative values. Partially fixes bug 21056 and fixes bug 20307;
18285       bugfix on 0.2.8.1-alpha.
18287   o Minor features (geoip):
18288     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
18289       Country database.
18291   o Minor bugfixes (portability):
18292     - Avoid crashing when Tor is built using headers that contain
18293       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
18294       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
18295       on 0.2.9.1-alpha.
18296     - Fix Libevent detection on platforms without Libevent 1 headers
18297       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
18300 Changes in version 0.3.0.1-alpha - 2016-12-19
18301   Tor 0.3.0.1-alpha is the first alpha release in the 0.3.0 development
18302   series. It strengthens Tor's link and circuit handshakes by
18303   identifying relays by their Ed25519 keys, improves the algorithm that
18304   clients use to choose and maintain their list of guards, and includes
18305   additional backend support for the next-generation hidden service
18306   design. It also contains numerous other small features and
18307   improvements to security, correctness, and performance.
18309   Below are the changes since 0.2.9.8.
18311   o Major features (guard selection algorithm):
18312     - Tor's guard selection algorithm has been redesigned from the
18313       ground up, to better support unreliable networks and restrictive
18314       sets of entry nodes, and to better resist guard-capture attacks by
18315       hostile local networks. Implements proposal 271; closes
18316       ticket 19877.
18318   o Major features (next-generation hidden services):
18319     - Relays can now handle v3 ESTABLISH_INTRO cells as specified by
18320       prop224 aka "Next Generation Hidden Services". Service and clients
18321       don't use this functionality yet. Closes ticket 19043. Based on
18322       initial code by Alec Heifetz.
18323     - Relays now support the HSDir version 3 protocol, so that they can
18324       can store and serve v3 descriptors. This is part of the next-
18325       generation onion service work detailed in proposal 224. Closes
18326       ticket 17238.
18328   o Major features (protocol, ed25519 identity keys):
18329     - Relays now use Ed25519 to prove their Ed25519 identities and to
18330       one another, and to clients. This algorithm is faster and more
18331       secure than the RSA-based handshake we've been doing until now.
18332       Implements the second big part of proposal 220; Closes
18333       ticket 15055.
18334     - Clients now support including Ed25519 identity keys in the EXTEND2
18335       cells they generate. By default, this is controlled by a consensus
18336       parameter, currently disabled. You can turn this feature on for
18337       testing by setting ExtendByEd25519ID in your configuration. This
18338       might make your traffic appear different than the traffic
18339       generated by other users, however. Implements part of ticket
18340       15056; part of proposal 220.
18341     - Relays now understand requests to extend to other relays by their
18342       Ed25519 identity keys. When an Ed25519 identity key is included in
18343       an EXTEND2 cell, the relay will only extend the circuit if the
18344       other relay can prove ownership of that identity. Implements part
18345       of ticket 15056; part of proposal 220.
18347   o Major bugfixes (scheduler):
18348     - Actually compare circuit policies in ewma_cmp_cmux(). This bug
18349       caused the channel scheduler to behave more or less randomly,
18350       rather than preferring channels with higher-priority circuits.
18351       Fixes bug 20459; bugfix on 0.2.6.2-alpha.
18353   o Minor features (controller):
18354     - When HSFETCH arguments cannot be parsed, say "Invalid argument"
18355       rather than "unrecognized." Closes ticket 20389; patch from
18356       Ivan Markin.
18358   o Minor features (diagnostic, directory client):
18359     - Warn when we find an unexpected inconsistency in directory
18360       download status objects. Prevents some negative consequences of
18361       bug 20593.
18363   o Minor features (directory authority):
18364     - Add a new authority-only AuthDirTestEd25519LinkKeys option (on by
18365       default) to control whether authorities should try to probe relays
18366       by their Ed25519 link keys. This option will go away in a few
18367       releases--unless we encounter major trouble in our ed25519 link
18368       protocol rollout, in which case it will serve as a safety option.
18370   o Minor features (directory cache):
18371     - Relays and bridges will now refuse to serve the consensus they
18372       have if they know it is too old for a client to use. Closes
18373       ticket 20511.
18375   o Minor features (ed25519 link handshake):
18376     - Advertise support for the ed25519 link handshake using the
18377       subprotocol-versions mechanism, so that clients can tell which
18378       relays can identity themselves by Ed25519 ID. Closes ticket 20552.
18380   o Minor features (fingerprinting resistance, authentication):
18381     - Extend the length of RSA keys used for TLS link authentication to
18382       2048 bits. (These weren't used for forward secrecy; for forward
18383       secrecy, we used P256.) Closes ticket 13752.
18385   o Minor features (infrastructure):
18386     - Implement smartlist_add_strdup() function. Replaces the use of
18387       smartlist_add(sl, tor_strdup(str)). Closes ticket 20048.
18389   o Minor bugfixes (client):
18390     - When clients that use bridges start up with a cached consensus on
18391       disk, they were ignoring it and downloading a new one. Now they
18392       use the cached one. Fixes bug 20269; bugfix on 0.2.3.12-alpha.
18394   o Minor bugfixes (configuration):
18395     - Accept non-space whitespace characters after the severity level in
18396       the `Log` option. Fixes bug 19965; bugfix on 0.2.1.1-alpha.
18397     - Support "TByte" and "TBytes" units in options given in bytes.
18398       "TB", "terabyte(s)", "TBit(s)" and "terabit(s)" were already
18399       supported. Fixes bug 20622; bugfix on 0.2.0.14-alpha.
18401   o Minor bugfixes (consensus weight):
18402     - Add new consensus method that initializes bw weights to 1 instead
18403       of 0. This prevents a zero weight from making it all the way to
18404       the end (happens in small testing networks) and causing an error.
18405       Fixes bug 14881; bugfix on 0.2.2.17-alpha.
18407   o Minor bugfixes (descriptors):
18408     - Correctly recognise downloaded full descriptors as valid, even
18409       when using microdescriptors as circuits. This affects clients with
18410       FetchUselessDescriptors set, and may affect directory authorities.
18411       Fixes bug 20839; bugfix on 0.2.3.2-alpha.
18413   o Minor bugfixes (directory system):
18414     - Download all consensus flavors, descriptors, and authority
18415       certificates when FetchUselessDescriptors is set, regardless of
18416       whether tor is a directory cache or not. Fixes bug 20667; bugfix
18417       on all recent tor versions.
18418     - Bridges and relays now use microdescriptors (like clients do)
18419       rather than old-style router descriptors. Now bridges will blend
18420       in with clients in terms of the circuits they build. Fixes bug
18421       6769; bugfix on 0.2.3.2-alpha.
18423   o Minor bugfixes (ed25519 certificates):
18424     - Correctly interpret ed25519 certificates that would expire some
18425       time after 19 Jan 2038. Fixes bug 20027; bugfix on 0.2.7.2-alpha.
18427   o Minor bugfixes (hidden services):
18428     - Stop ignoring misconfigured hidden services. Instead, refuse to
18429       start tor until the misconfigurations have been corrected. Fixes
18430       bug 20559; bugfix on multiple commits in 0.2.7.1-alpha
18431       and earlier.
18433   o Minor bugfixes (memory leak at exit):
18434     - Fix a small harmless memory leak at exit of the previously unused
18435       RSA->Ed identity cross-certificate. Fixes bug 17779; bugfix
18436       on 0.2.7.2-alpha.
18438   o Minor bugfixes (util):
18439     - When finishing writing a file to disk, if we were about to replace
18440       the file with the temporary file created before and we fail to
18441       replace it, remove the temporary file so it doesn't stay on disk.
18442       Fixes bug 20646; bugfix on 0.2.0.7-alpha. Patch by fk.
18444   o Minor bugfixes (Windows):
18445     - Check for getpagesize before using it to mmap files. This fixes
18446       compilation in some MinGW environments. Fixes bug 20530; bugfix on
18447       0.1.2.1-alpha. Reported by "ice".
18449   o Code simplification and refactoring:
18450     - Abolish all global guard context in entrynodes.c; replace with new
18451       guard_selection_t structure as preparation for proposal 271.
18452       Closes ticket 19858.
18453     - Introduce rend_service_is_ephemeral() that tells if given onion
18454       service is ephemeral. Replace unclear NULL-checkings for service
18455       directory with this function. Closes ticket 20526.
18456     - Extract magic numbers in circuituse.c into defined variables.
18457     - Refactor circuit_is_available_for_use to remove unnecessary check.
18458     - Refactor circuit_predict_and_launch_new for readability and
18459       testability. Closes ticket 18873.
18460     - Refactor large if statement in purpose_needs_anonymity to use
18461       switch statement instead. Closes part of ticket 20077.
18462     - Refactor the hashing API to return negative values for errors, as
18463       is done as throughout the codebase. Closes ticket 20717.
18464     - Remove data structures that were used to index or_connection
18465       objects by their RSA identity digests. These structures are fully
18466       redundant with the similar structures used in the
18467       channel abstraction.
18468     - Remove duplicate code in the channel_write_*cell() functions.
18469       Closes ticket 13827; patch from Pingl.
18470     - Remove redundant behavior of is_sensitive_dir_purpose, refactor to
18471       use only purpose_needs_anonymity. Closes part of ticket 20077.
18472     - The code to generate and parse EXTEND and EXTEND2 cells has been
18473       replaced with code automatically generated by the
18474       "trunnel" utility.
18476   o Documentation:
18477     - Include the "TBits" unit in Tor's man page. Fixes part of bug
18478       20622; bugfix on 0.2.5.1-alpha.
18479     - Change '1' to 'weight_scale' in consensus bw weights calculation
18480       comments, as that is reality. Closes ticket 20273. Patch
18481       from pastly.
18482     - Correct the value for AuthDirGuardBWGuarantee in the manpage, from
18483       250 KBytes to 2 MBytes. Fixes bug 20435; bugfix
18484       on 0.2.5.6-alpha.
18485     - Stop the man page from incorrectly stating that HiddenServiceDir
18486       must already exist. Fixes 20486.
18487     - Clarify that when ClientRejectInternalAddresses is enabled (which
18488       is the default), multicast DNS hostnames for machines on the local
18489       network (of the form *.local) are also rejected. Closes
18490       ticket 17070.
18492   o Removed features:
18493     - The AuthDirMaxServersPerAuthAddr option no longer exists: The same
18494       limit for relays running on a single IP applies to authority IP
18495       addresses as well as to non-authority IP addresses. Closes
18496       ticket 20960.
18497     - The UseDirectoryGuards torrc option no longer exists: all users
18498       that use entry guards will also use directory guards. Related to
18499       proposal 271; implements part of ticket 20831.
18501   o Testing:
18502     - New unit tests for tor_htonll(). Closes ticket 19563. Patch
18503       from "overcaffeinated".
18504     - Perform the coding style checks when running the tests and fail
18505       when coding style violations are found. Closes ticket 5500.
18506     - Add tests for networkstatus_compute_bw_weights_v10.
18507     - Add unit tests circuit_predict_and_launch_new.
18508     - Extract dummy_origin_circuit_new so it can be used by other
18509       test functions.
18512 Changes in version 0.2.8.12 - 2016-12-19
18513   Tor 0.2.8.12 backports a fix for a medium-severity issue (bug 21018
18514   below) where Tor clients could crash when attempting to visit a
18515   hostile hidden service. Clients are recommended to upgrade as packages
18516   become available for their systems.
18518   It also includes an updated list of fallback directories, backported
18519   from 0.2.9.
18521   Now that the Tor 0.2.9 series is stable, only major bugfixes will be
18522   backported to 0.2.8 in the future.
18524   o Major bugfixes (parsing, security, backported from 0.2.9.8):
18525     - Fix a bug in parsing that could cause clients to read a single
18526       byte past the end of an allocated region. This bug could be used
18527       to cause hardened clients (built with --enable-expensive-hardening)
18528       to crash if they tried to visit a hostile hidden service. Non-
18529       hardened clients are only affected depending on the details of
18530       their platform's memory allocator. Fixes bug 21018; bugfix on
18531       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
18532       2016-12-002 and as CVE-2016-1254.
18534   o Minor features (fallback directory list, backported from 0.2.9.8):
18535     - Replace the 81 remaining fallbacks of the 100 originally
18536       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
18537       fallbacks (123 new, 54 existing, 27 removed) generated in December
18538       2016. Resolves ticket 20170.
18540   o Minor features (geoip, backported from 0.2.9.7-rc):
18541     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
18542       Country database.
18545 Changes in version 0.2.9.8 - 2016-12-19
18546   Tor 0.2.9.8 is the first stable release of the Tor 0.2.9 series.
18548   The Tor 0.2.9 series makes mandatory a number of security features
18549   that were formerly optional. It includes support for a new shared-
18550   randomness protocol that will form the basis for next generation
18551   hidden services, includes a single-hop hidden service mode for
18552   optimizing .onion services that don't actually want to be hidden,
18553   tries harder not to overload the directory authorities with excessive
18554   downloads, and supports a better protocol versioning scheme for
18555   improved compatibility with other implementations of the Tor protocol.
18557   And of course, there are numerous other bugfixes and improvements.
18559   This release also includes a fix for a medium-severity issue (bug
18560   21018 below) where Tor clients could crash when attempting to visit a
18561   hostile hidden service. Clients are recommended to upgrade as packages
18562   become available for their systems.
18564   Below are the changes since 0.2.9.7-rc. For a list of all changes
18565   since 0.2.8, see the ReleaseNotes file.
18567   o Major bugfixes (parsing, security):
18568     - Fix a bug in parsing that could cause clients to read a single
18569       byte past the end of an allocated region. This bug could be used
18570       to cause hardened clients (built with --enable-expensive-hardening)
18571       to crash if they tried to visit a hostile hidden service. Non-
18572       hardened clients are only affected depending on the details of
18573       their platform's memory allocator. Fixes bug 21018; bugfix on
18574       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
18575       2016-12-002 and as CVE-2016-1254.
18577   o Minor features (fallback directory list):
18578     - Replace the 81 remaining fallbacks of the 100 originally
18579       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
18580       fallbacks (123 new, 54 existing, 27 removed) generated in December
18581       2016. Resolves ticket 20170.
18584 Changes in version 0.2.9.7-rc - 2016-12-12
18585   Tor 0.2.9.7-rc fixes a few small bugs remaining in Tor 0.2.9.6-rc,
18586   including a few that had prevented tests from passing on
18587   some platforms.
18589   o Minor features (geoip):
18590     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
18591       Country database.
18593   o Minor bugfix (build):
18594     - The current Git revision when building from a local repository is
18595       now detected correctly when using git worktrees. Fixes bug 20492;
18596       bugfix on 0.2.3.9-alpha.
18598   o Minor bugfixes (directory authority):
18599     - When computing old Tor protocol line version in protover, we were
18600       looking at 0.2.7.5 twice instead of a specific case for
18601       0.2.9.1-alpha. Fixes bug 20810; bugfix on 0.2.9.4-alpha.
18603   o Minor bugfixes (download scheduling):
18604     - Resolve a "bug" warning when considering a download schedule whose
18605       delay had approached INT_MAX. Fixes 20875; bugfix on 0.2.9.5-alpha.
18607   o Minor bugfixes (logging):
18608     - Downgrade a harmless log message about the
18609       pending_entry_connections list from "warn" to "info". Mitigates
18610       bug 19926.
18612   o Minor bugfixes (memory leak):
18613     - Fix a small memory leak when receiving AF_UNIX connections on a
18614       SocksPort. Fixes bug 20716; bugfix on 0.2.6.3-alpha.
18615     - When moving a signed descriptor object from a source to an
18616       existing destination, free the allocated memory inside that
18617       destination object. Fixes bug 20715; bugfix on 0.2.8.3-alpha.
18619   o Minor bugfixes (memory leak, use-after-free, linux seccomp2 sandbox):
18620     - Fix a memory leak and use-after-free error when removing entries
18621       from the sandbox's getaddrinfo() cache. Fixes bug 20710; bugfix on
18622       0.2.5.5-alpha. Patch from "cypherpunks".
18624   o Minor bugfixes (portability):
18625     - Use the correct spelling of MAC_OS_X_VERSION_10_12 on configure.ac
18626       Fixes bug 20935; bugfix on 0.2.9.6-rc.
18628   o Minor bugfixes (unit tests):
18629     - Stop expecting NetBSD unit tests to report success for ipfw. Part
18630       of a fix for bug 19960; bugfix on 0.2.9.5-alpha.
18631     - Fix tolerances in unit tests for monotonic time comparisons
18632       between nanoseconds and microseconds. Previously, we accepted a 10
18633       us difference only, which is not realistic on every platform's
18634       clock_gettime(). Fixes bug 19974; bugfix on 0.2.9.1-alpha.
18635     - Remove a double-free in the single onion service unit test. Stop
18636       ignoring a return value. Make future changes less error-prone.
18637       Fixes bug 20864; bugfix on 0.2.9.6-rc.
18640 Changes in version 0.2.8.11 - 2016-12-08
18641   Tor 0.2.8.11 backports fixes for additional portability issues that
18642   could prevent Tor from building correctly on OSX Sierra, or with
18643   OpenSSL 1.1. Affected users should upgrade; others can safely stay
18644   with 0.2.8.10.
18646   o Minor bugfixes (portability):
18647     - Avoid compilation errors when building on OSX Sierra. Sierra began
18648       to support the getentropy() and clock_gettime() APIs, but created
18649       a few problems in doing so. Tor 0.2.9 has a more thorough set of
18650       workarounds; in 0.2.8, we are just using the /dev/urandom and mach
18651       monotonic time interfaces. Fixes bug 20865. Bugfix
18652       on 0.2.8.1-alpha.
18654   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
18655     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
18656       architectures. Closes ticket 20588.
18659 Changes in version 0.2.8.10 - 2016-12-02
18660   Tor 0.2.8.10 backports a fix for a bug that would sometimes make clients
18661   unusable after they left standby mode. It also backports fixes for
18662   a few portability issues and a small but problematic memory leak.
18664   o Major bugfixes (client reliability, backport from 0.2.9.5-alpha):
18665     - When Tor leaves standby because of a new application request, open
18666       circuits as needed to serve that request. Previously, we would
18667       potentially wait a very long time. Fixes part of bug 19969; bugfix
18668       on 0.2.8.1-alpha.
18670   o Major bugfixes (client performance, backport from 0.2.9.5-alpha):
18671     - Clients now respond to new application stream requests immediately
18672       when they arrive, rather than waiting up to one second before
18673       starting to handle them. Fixes part of bug 19969; bugfix
18674       on 0.2.8.1-alpha.
18676   o Minor bugfixes (portability, backport from 0.2.9.6-rc):
18677     - Work around a bug in the OSX 10.12 SDK that would prevent us from
18678       successfully targeting earlier versions of OSX. Resolves
18679       ticket 20235.
18681   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
18682     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
18683       20551; bugfix on 0.2.1.1-alpha.
18685   o Minor bugfixes (relay, backport from 0.2.9.5-alpha):
18686     - Work around a memory leak in OpenSSL 1.1 when encoding public
18687       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
18689   o Minor features (geoip):
18690     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
18691       Country database.
18693 Changes in version 0.2.9.6-rc - 2016-12-02
18694   Tor 0.2.9.6-rc fixes a few remaining bugs found in the previous alpha
18695   version. We hope that it will be ready to become stable soon, and we
18696   encourage everyone to test this release. If no showstopper bugs are
18697   found here, the next 0.2.9 release will be stable.
18699   o Major bugfixes (relay, resolver, logging):
18700     - For relays that don't know their own address, avoid attempting a
18701       local hostname resolve for each descriptor we download. This
18702       will cut down on the number of "Success: chose address 'x.x.x.x'"
18703       log lines, and also avoid confusing clock jumps if the resolver
18704       is slow. Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.
18706   o Minor bugfixes (client, fascistfirewall):
18707     - Avoid spurious warnings when ReachableAddresses or FascistFirewall
18708       is set. Fixes bug 20306; bugfix on 0.2.8.2-alpha.
18710   o Minor bugfixes (hidden services):
18711     - Stop ignoring the anonymity status of saved keys for hidden
18712       services and single onion services when first starting tor.
18713       Instead, refuse to start tor if any hidden service key has been
18714       used in a different hidden service anonymity mode. Fixes bug
18715       20638; bugfix on 17178 in 0.2.9.3-alpha; reported by ahf.
18717   o Minor bugfixes (portability):
18718     - Work around a bug in the OSX 10.12 SDK that would prevent us from
18719       successfully targeting earlier versions of OSX. Resolves
18720       ticket 20235.
18721     - Run correctly when built on Windows build environments that
18722       require _vcsprintf(). Fixes bug 20560; bugfix on 0.2.2.11-alpha.
18724   o Minor bugfixes (single onion services, Tor2web):
18725     - Stop complaining about long-term one-hop circuits deliberately
18726       created by single onion services and Tor2web. These log messages
18727       are intended to diagnose issue 8387, which relates to circuits
18728       hanging around forever for no reason. Fixes bug 20613; bugfix on
18729       0.2.9.1-alpha. Reported by "pastly".
18731   o Minor bugfixes (unit tests):
18732     - Stop spurious failures in the local interface address discovery
18733       unit tests. Fixes bug 20634; bugfix on 0.2.8.1-alpha; patch by
18734       Neel Chauhan.
18736   o Documentation:
18737     - Correct the minimum bandwidth value in torrc.sample, and queue a
18738       corresponding change for torrc.minimal. Closes ticket 20085.
18741 Changes in version 0.2.9.5-alpha - 2016-11-08
18742   Tor 0.2.9.5-alpha fixes numerous bugs discovered in the previous alpha
18743   version. We believe one or two probably remain, and we encourage
18744   everyone to test this release.
18746   o Major bugfixes (client performance):
18747     - Clients now respond to new application stream requests immediately
18748       when they arrive, rather than waiting up to one second before
18749       starting to handle them. Fixes part of bug 19969; bugfix
18750       on 0.2.8.1-alpha.
18752   o Major bugfixes (client reliability):
18753     - When Tor leaves standby because of a new application request, open
18754       circuits as needed to serve that request. Previously, we would
18755       potentially wait a very long time. Fixes part of bug 19969; bugfix
18756       on 0.2.8.1-alpha.
18758   o Major bugfixes (download scheduling):
18759     - When using an exponential backoff schedule, do not give up on
18760       downloading just because we have failed a bunch of times. Since
18761       each delay is longer than the last, retrying indefinitely won't
18762       hurt. Fixes bug 20536; bugfix on 0.2.9.1-alpha.
18763     - If a consensus expires while we are waiting for certificates to
18764       download, stop waiting for certificates.
18765     - If we stop waiting for certificates less than a minute after we
18766       started downloading them, do not consider the certificate download
18767       failure a separate failure. Fixes bug 20533; bugfix
18768       on 0.2.0.9-alpha.
18769     - Remove the maximum delay on exponential-backoff scheduling. Since
18770       we now allow an infinite number of failures (see ticket 20536), we
18771       must now allow the time to grow longer on each failure. Fixes part
18772       of bug 20534; bugfix on 0.2.9.1-alpha.
18773     - Make our initial download delays closer to those from 0.2.8. Fixes
18774       another part of bug 20534; bugfix on 0.2.9.1-alpha.
18775     - When determining when to download a directory object, handle times
18776       after 2038 if the operating system supports them. (Someday this
18777       will be important!) Fixes bug 20587; bugfix on 0.2.8.1-alpha.
18778     - When using exponential backoff in test networks, use a lower
18779       exponent, so the delays do not vary as much. This helps test
18780       networks bootstrap consistently. Fixes bug 20597; bugfix on 20499.
18782   o Minor features (geoip):
18783     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
18784       Country database.
18786   o Minor bugfixes (client directory scheduling):
18787     - Treat "relay too busy to answer request" as a failed request and a
18788       reason to back off on our retry frequency. This is safe now that
18789       exponential backoffs retry indefinitely, and avoids a bug where we
18790       would reset our download schedule erroneously. Fixes bug 20593;
18791       bugfix on 0.2.9.1-alpha.
18793   o Minor bugfixes (client, logging):
18794     - Remove a BUG warning in circuit_pick_extend_handshake(). Instead,
18795       assume all nodes support EXTEND2. Use ntor whenever a key is
18796       available. Fixes bug 20472; bugfix on 0.2.9.3-alpha.
18797     - On DNSPort, stop logging a BUG warning on a failed hostname
18798       lookup. Fixes bug 19869; bugfix on 0.2.9.1-alpha.
18800   o Minor bugfixes (hidden services):
18801     - When configuring hidden services, check every hidden service
18802       directory's permissions. Previously, we only checked the last
18803       hidden service. Fixes bug 20529; bugfix the work to fix 13942
18804       in 0.2.6.2-alpha.
18806   o Minor bugfixes (portability):
18807     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
18808       architectures. Closes ticket 20588.
18809     - Use ECDHE ciphers instead of ECDH in tortls tests. LibreSSL has
18810       removed the ECDH ciphers which caused the tests to fail on
18811       platforms which use it. Fixes bug 20460; bugfix on 0.2.8.1-alpha.
18812     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
18813       20551; bugfix on 0.2.1.1-alpha.
18815   o Minor bugfixes (relay bootstrap):
18816     - Ensure relays don't make multiple connections during bootstrap.
18817       Fixes bug 20591; bugfix on 0.2.8.1-alpha.
18819   o Minor bugfixes (relay):
18820     - Work around a memory leak in OpenSSL 1.1 when encoding public
18821       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
18822     - Avoid a small memory leak when informing worker threads about
18823       rotated onion keys. Fixes bug 20401; bugfix on 0.2.6.3-alpha.
18824     - Do not try to parallelize workers more than 16x without the user
18825       explicitly configuring us to do so, even if we do detect more than
18826       16 CPU cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
18828   o Minor bugfixes (single onion services):
18829     - Start correctly when creating a single onion service in a
18830       directory that did not previously exist. Fixes bug 20484; bugfix
18831       on 0.2.9.3-alpha.
18833   o Minor bugfixes (testing):
18834     - Avoid a unit test failure on systems with over 16 detectable CPU
18835       cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
18837   o Documentation:
18838     - Clarify that setting HiddenServiceNonAnonymousMode requires you to
18839       also set "SOCKSPort 0". Fixes bug 20487; bugfix on 0.2.9.3-alpha.
18840     - Module-level documentation for several more modules. Closes
18841       tickets 19287 and 19290.
18844 Changes in version 0.2.8.9 - 2016-10-17
18845   Tor 0.2.8.9 backports a fix for a security hole in previous versions
18846   of Tor that would allow a remote attacker to crash a Tor client,
18847   hidden service, relay, or authority. All Tor users should upgrade to
18848   this version, or to 0.2.9.4-alpha. Patches will be released for older
18849   versions of Tor.
18851   o Major features (security fixes, also in 0.2.9.4-alpha):
18852     - Prevent a class of security bugs caused by treating the contents
18853       of a buffer chunk as if they were a NUL-terminated string. At
18854       least one such bug seems to be present in all currently used
18855       versions of Tor, and would allow an attacker to remotely crash
18856       most Tor instances, especially those compiled with extra compiler
18857       hardening. With this defense in place, such bugs can't crash Tor,
18858       though we should still fix them as they occur. Closes ticket
18859       20384 (TROVE-2016-10-001).
18861   o Minor features (geoip):
18862     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
18863       Country database.
18866 Changes in version 0.2.9.4-alpha - 2016-10-17
18867   Tor 0.2.9.4-alpha fixes a security hole in previous versions of Tor
18868   that would allow a remote attacker to crash a Tor client, hidden
18869   service, relay, or authority. All Tor users should upgrade to this
18870   version, or to 0.2.8.9. Patches will be released for older versions
18871   of Tor.
18873   Tor 0.2.9.4-alpha also adds numerous small features and fix-ups to
18874   previous versions of Tor, including the implementation of a feature to
18875   future- proof the Tor ecosystem against protocol changes, some bug
18876   fixes necessary for Tor Browser to use unix domain sockets correctly,
18877   and several portability improvements. We anticipate that this will be
18878   the last alpha in the Tor 0.2.9 series, and that the next release will
18879   be a release candidate.
18881   o Major features (security fixes):
18882     - Prevent a class of security bugs caused by treating the contents
18883       of a buffer chunk as if they were a NUL-terminated string. At
18884       least one such bug seems to be present in all currently used
18885       versions of Tor, and would allow an attacker to remotely crash
18886       most Tor instances, especially those compiled with extra compiler
18887       hardening. With this defense in place, such bugs can't crash Tor,
18888       though we should still fix them as they occur. Closes ticket
18889       20384 (TROVE-2016-10-001).
18891   o Major features (subprotocol versions):
18892     - Tor directory authorities now vote on a set of recommended
18893       subprotocol versions, and on a set of required subprotocol
18894       versions. Clients and relays that lack support for a _required_
18895       subprotocol version will not start; those that lack support for a
18896       _recommended_ subprotocol version will warn the user to upgrade.
18897       Closes ticket 19958; implements part of proposal 264.
18898     - Tor now uses "subprotocol versions" to indicate compatibility.
18899       Previously, versions of Tor looked at the declared Tor version of
18900       a relay to tell whether they could use a given feature. Now, they
18901       should be able to rely on its declared subprotocol versions. This
18902       change allows compatible implementations of the Tor protocol(s) to
18903       exist without pretending to be 100% bug-compatible with particular
18904       releases of Tor itself. Closes ticket 19958; implements part of
18905       proposal 264.
18907   o Minor feature (fallback directories):
18908     - Remove broken fallbacks from the hard-coded fallback directory
18909       list. Closes ticket 20190; patch by teor.
18911   o Minor features (client, directory):
18912     - Since authorities now omit all routers that lack the Running and
18913       Valid flags, we assume that any relay listed in the consensus must
18914       have those flags. Closes ticket 20001; implements part of
18915       proposal 272.
18917   o Minor features (compilation, portability):
18918     - Compile correctly on MacOS 10.12 (aka "Sierra"). Closes
18919       ticket 20241.
18921   o Minor features (development tools, etags):
18922     - Teach the "make tags" Makefile target how to correctly find
18923       "MOCK_IMPL" function definitions. Patch from nherring; closes
18924       ticket 16869.
18926   o Minor features (geoip):
18927     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
18928       Country database.
18930   o Minor features (unix domain sockets):
18931     - When configuring a unix domain socket for a SocksPort,
18932       ControlPort, or Hidden service, you can now wrap the address in
18933       quotes, using C-style escapes inside the quotes. This allows unix
18934       domain socket paths to contain spaces.
18936   o Minor features (virtual addresses):
18937     - Increase the maximum number of bits for the IPv6 virtual network
18938       prefix from 16 to 104. In this way, the condition for address
18939       allocation is less restrictive. Closes ticket 20151; feature
18940       on 0.2.4.7-alpha.
18942   o Minor bugfixes (address discovery):
18943     - Stop reordering IP addresses returned by the OS. This makes it
18944       more likely that Tor will guess the same relay IP address every
18945       time. Fixes issue 20163; bugfix on 0.2.7.1-alpha, ticket 17027.
18946       Reported by René Mayrhofer, patch by "cypherpunks".
18948   o Minor bugfixes (client, unix domain sockets):
18949     - Disable IsolateClientAddr when using AF_UNIX backed SocksPorts as
18950       the client address is meaningless. Fixes bug 20261; bugfix
18951       on 0.2.6.3-alpha.
18953   o Minor bugfixes (compilation, OpenBSD):
18954     - Detect Libevent2 functions correctly on systems that provide
18955       libevent2, but where libevent1 is linked with -levent. Fixes bug
18956       19904; bugfix on 0.2.2.24-alpha. Patch from Rubiate.
18958   o Minor bugfixes (configuration):
18959     - When parsing quoted configuration values from the torrc file,
18960       handle windows line endings correctly. Fixes bug 19167; bugfix on
18961       0.2.0.16-alpha. Patch from "Pingl".
18963   o Minor bugfixes (getpass):
18964     - Defensively fix a non-triggerable heap corruption at do_getpass()
18965       to protect ourselves from mistakes in the future. Fixes bug
18966       19223; bugfix on 0.2.7.3-rc. Bug found by Guido Vranken, patch
18967       by nherring.
18969   o Minor bugfixes (hidden service):
18970     - Allow hidden services to run on IPv6 addresses even when the
18971       IPv6Exit option is not set. Fixes bug 18357; bugfix
18972       on 0.2.4.7-alpha.
18974   o Documentation:
18975     - Add module-level internal documentation for 36 C files that
18976       previously didn't have a high-level overview. Closes ticket #20385.
18978   o Required libraries:
18979     - When building with OpenSSL, Tor now requires version 1.0.1 or
18980       later. OpenSSL 1.0.0 and earlier are no longer supported by the
18981       OpenSSL team, and should not be used. Closes ticket 20303.
18984 Changes in version 0.2.9.3-alpha - 2016-09-23
18985   Tor 0.2.9.3-alpha adds improved support for entities that want to make
18986   high-performance services available through the Tor .onion mechanism
18987   without themselves receiving anonymity as they host those services. It
18988   also tries harder to ensure that all steps on a circuit are using the
18989   strongest crypto possible, strengthens some TLS properties, and
18990   resolves several bugs -- including a pair of crash bugs from the 0.2.8
18991   series. Anybody running an earlier version of 0.2.9.x should upgrade.
18993   o Major bugfixes (crash, also in 0.2.8.8):
18994     - Fix a complicated crash bug that could affect Tor clients
18995       configured to use bridges when replacing a networkstatus consensus
18996       in which one of their bridges was mentioned. OpenBSD users saw
18997       more crashes here, but all platforms were potentially affected.
18998       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
19000   o Major bugfixes (relay, OOM handler, also in 0.2.8.8):
19001     - Fix a timing-dependent assertion failure that could occur when we
19002       tried to flush from a circuit after having freed its cells because
19003       of an out-of-memory condition. Fixes bug 20203; bugfix on
19004       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
19005       this one.
19007   o Major features (circuit building, security):
19008     - Authorities, relays and clients now require ntor keys in all
19009       descriptors, for all hops (except for rare hidden service protocol
19010       cases), for all circuits, and for all other roles. Part of
19011       ticket 19163.
19012     - Tor authorities, relays, and clients only use ntor, except for
19013       rare cases in the hidden service protocol. Part of ticket 19163.
19015   o Major features (single-hop "hidden" services):
19016     - Add experimental HiddenServiceSingleHopMode and
19017       HiddenServiceNonAnonymousMode options. When both are set to 1,
19018       every hidden service on a Tor instance becomes a non-anonymous
19019       Single Onion Service. Single Onions make one-hop (direct)
19020       connections to their introduction and rendezvous points. One-hop
19021       circuits make Single Onion servers easily locatable, but clients
19022       remain location-anonymous. This is compatible with the existing
19023       hidden service implementation, and works on the current tor
19024       network without any changes to older relays or clients. Implements
19025       proposal 260, completes ticket 17178. Patch by teor and asn.
19027   o Major features (resource management):
19028     - Tor can now notice it is about to run out of sockets, and
19029       preemptively close connections of lower priority. (This feature is
19030       off by default for now, since the current prioritizing method is
19031       yet not mature enough. You can enable it by setting
19032       "DisableOOSCheck 0", but watch out: it might close some sockets
19033       you would rather have it keep.) Closes ticket 18640.
19035   o Major bugfixes (circuit building):
19036     - Hidden service client-to-intro-point and service-to-rendezvous-
19037       point circuits use the TAP key supplied by the protocol, to avoid
19038       epistemic attacks. Fixes bug 19163; bugfix on 0.2.4.18-rc.
19040   o Major bugfixes (compilation, OpenBSD):
19041     - Fix a Libevent-detection bug in our autoconf script that would
19042       prevent Tor from linking successfully on OpenBSD. Patch from
19043       rubiate. Fixes bug 19902; bugfix on 0.2.9.1-alpha.
19045   o Major bugfixes (hidden services):
19046     - Clients now require hidden services to include the TAP keys for
19047       their intro points in the hidden service descriptor. This prevents
19048       an inadvertent upgrade to ntor, which a malicious hidden service
19049       could use to distinguish clients by consensus version. Fixes bug
19050       20012; bugfix on 0.2.4.8-alpha. Patch by teor.
19052   o Minor features (security, TLS):
19053     - Servers no longer support clients that without AES ciphersuites.
19054       (3DES is no longer considered an acceptable cipher.) We believe
19055       that no such Tor clients currently exist, since Tor has required
19056       OpenSSL 0.9.7 or later since 2009. Closes ticket 19998.
19058   o Minor feature (fallback directories):
19059     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
19060       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
19061       2016. Closes ticket 20190; patch by teor.
19063   o Minor features (geoip, also in 0.2.8.8):
19064     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
19065       Country database.
19067   o Minor feature (port flags):
19068     - Add new flags to the *Port options to finer control over which
19069       requests are allowed. The flags are NoDNSRequest, NoOnionTraffic,
19070       and the synthetic flag OnionTrafficOnly, which is equivalent to
19071       NoDNSRequest, NoIPv4Traffic, and NoIPv6Traffic. Closes enhancement
19072       18693; patch by "teor".
19074   o Minor features (directory authority):
19075     - After voting, if the authorities decide that a relay is not
19076       "Valid", they no longer include it in the consensus at all. Closes
19077       ticket 20002; implements part of proposal 272.
19079   o Minor features (testing):
19080     - Disable memory protections on OpenBSD when performing our unit
19081       tests for memwipe(). The test deliberately invokes undefined
19082       behavior, and the OpenBSD protections interfere with this. Patch
19083       from "rubiate". Closes ticket 20066.
19085   o Minor features (testing, ipv6):
19086     - Add the single-onion and single-onion-ipv6 chutney targets to
19087       "make test-network-all". This requires a recent chutney version
19088       with the single onion network flavours (git c72a652 or later).
19089       Closes ticket 20072; patch by teor.
19090     - Add the hs-ipv6 chutney target to make test-network-all's IPv6
19091       tests. Remove bridges+hs, as it's somewhat redundant. This
19092       requires a recent chutney version that supports IPv6 clients,
19093       relays, and authorities. Closes ticket 20069; patch by teor.
19095   o Minor features (Tor2web):
19096     - Make Tor2web clients respect ReachableAddresses. This feature was
19097       inadvertently enabled in 0.2.8.6, then removed by bugfix 19973 on
19098       0.2.8.7. Implements feature 20034. Patch by teor.
19100   o Minor features (unit tests):
19101     - We've done significant work to make the unit tests run faster.
19102     - Our link-handshake unit tests now check that when invalid
19103       handshakes fail, they fail with the error messages we expected.
19104     - Our unit testing code that captures log messages no longer
19105       prevents them from being written out if the user asked for them
19106       (by passing --debug or --info or or --notice --warn to the "test"
19107       binary). This change prevents us from missing unexpected log
19108       messages simply because we were looking for others. Related to
19109       ticket 19999.
19110     - The unit tests now log all warning messages with the "BUG" flag.
19111       Previously, they only logged errors by default. This change will
19112       help us make our testing code more correct, and make sure that we
19113       only hit this code when we mean to. In the meantime, however,
19114       there will be more warnings in the unit test logs than before.
19115       This is preparatory work for ticket 19999.
19116     - The unit tests now treat any failure of a "tor_assert_nonfatal()"
19117       assertion as a test failure.
19119   o Minor bug fixes (circuits):
19120     - Use the CircuitBuildTimeout option whenever
19121       LearnCircuitBuildTimeout is disabled. Previously, we would respect
19122       the option when a user disabled it, but not when it was disabled
19123       because some other option was set. Fixes bug 20073; bugfix on
19124       0.2.4.12-alpha. Patch by teor.
19126   o Minor bugfixes (allocation):
19127     - Change how we allocate memory for large chunks on buffers, to
19128       avoid a (currently impossible) integer overflow, and to waste less
19129       space when allocating unusually large chunks. Fixes bug 20081;
19130       bugfix on 0.2.0.16-alpha. Issue identified by Guido Vranken.
19131     - Always include orconfig.h before including any other C headers.
19132       Sometimes, it includes macros that affect the behavior of the
19133       standard headers. Fixes bug 19767; bugfix on 0.2.9.1-alpha (the
19134       first version to use AC_USE_SYSTEM_EXTENSIONS).
19135     - Fix a syntax error in the IF_BUG_ONCE__() macro in non-GCC-
19136       compatible compilers. Fixes bug 20141; bugfix on 0.2.9.1-alpha.
19137       Patch from Gisle Vanem.
19138     - Stop trying to build with Clang 4.0's -Wthread-safety warnings.
19139       They apparently require a set of annotations that we aren't
19140       currently using, and they create false positives in our pthreads
19141       wrappers. Fixes bug 20110; bugfix on 0.2.9.1-alpha.
19143   o Minor bugfixes (directory authority):
19144     - Die with a more useful error when the operator forgets to place
19145       the authority_signing_key file into the keys directory. This
19146       avoids an uninformative assert & traceback about having an invalid
19147       key. Fixes bug 20065; bugfix on 0.2.0.1-alpha.
19148     - When allowing private addresses, mark Exits that only exit to
19149       private locations as such. Fixes bug 20064; bugfix
19150       on 0.2.2.9-alpha.
19152   o Minor bugfixes (documentation):
19153     - Document the default PathsNeededToBuildCircuits value that's used
19154       by clients when the directory authorities don't set
19155       min_paths_for_circs_pct. Fixes bug 20117; bugfix on 02c320916e02
19156       in 0.2.4.10-alpha. Patch by teor, reported by Jesse V.
19157     - Fix manual for the User option: it takes a username, not a UID.
19158       Fixes bug 19122; bugfix on 0.0.2pre16 (the first version to have
19159       a manpage!).
19161   o Minor bugfixes (hidden services):
19162     - Stop logging intro point details to the client log on certain
19163       error conditions. Fixed as part of bug 20012; bugfix on
19164       0.2.4.8-alpha. Patch by teor.
19166   o Minor bugfixes (IPv6, testing):
19167     - Check for IPv6 correctly on Linux when running test networks.
19168       Fixes bug 19905; bugfix on 0.2.7.3-rc; patch by teor.
19170   o Minor bugfixes (Linux seccomp2 sandbox):
19171     - Add permission to run the sched_yield() and sigaltstack() system
19172       calls, in order to support versions of Tor compiled with asan or
19173       ubsan code that use these calls. Now "sandbox 1" and
19174       "--enable-expensive-hardening" should be compatible on more
19175       systems. Fixes bug 20063; bugfix on 0.2.5.1-alpha.
19177   o Minor bugfixes (logging):
19178     - When logging a message from the BUG() macro, be explicit about
19179       what we were asserting. Previously we were confusing what we were
19180       asserting with what the bug was. Fixes bug 20093; bugfix
19181       on 0.2.9.1-alpha.
19182     - When we are unable to remove the bw_accounting file, do not warn
19183       if the reason we couldn't remove it was that it didn't exist.
19184       Fixes bug 19964; bugfix on 0.2.5.4-alpha. Patch from 'pastly'.
19186   o Minor bugfixes (option parsing):
19187     - Count unix sockets when counting client listeners (SOCKS, Trans,
19188       NATD, and DNS). This has no user-visible behaviour changes: these
19189       options are set once, and never read. Required for correct
19190       behaviour in ticket 17178. Fixes bug 19677; bugfix on
19191       0.2.6.3-alpha. Patch by teor.
19193   o Minor bugfixes (options):
19194     - Check the consistency of UseEntryGuards and EntryNodes more
19195       reliably. Fixes bug 20074; bugfix on 0.2.4.12-alpha. Patch
19196       by teor.
19197     - Stop changing the configured value of UseEntryGuards on
19198       authorities and Tor2web clients. Fixes bug 20074; bugfix on
19199       commits 51fc6799 in 0.1.1.16-rc and acda1735 in 0.2.4.3-alpha.
19200       Patch by teor.
19202   o Minor bugfixes (Tor2web):
19203     - Prevent Tor2web clients running hidden services, these services
19204       are not anonymous due to the one-hop client paths. Fixes bug
19205       19678. Patch by teor.
19207   o Minor bugfixes (unit tests):
19208     - Fix a shared-random unit test that was failing on big endian
19209       architectures due to internal representation of a integer copied
19210       to a buffer. The test is changed to take a full 32 bytes of data
19211       and use the output of a python script that make the COMMIT and
19212       REVEAL calculation according to the spec. Fixes bug 19977; bugfix
19213       on 0.2.9.1-alpha.
19214     - The tor_tls_server_info_callback unit test no longer crashes when
19215       debug-level logging is turned on. Fixes bug 20041; bugfix
19216       on 0.2.8.1-alpha.
19219 Changes in version 0.2.8.8 - 2016-09-23
19220   Tor 0.2.8.8 fixes two crash bugs present in previous versions of the
19221   0.2.8.x series. Relays running 0.2.8.x should upgrade, as should users
19222   who select public relays as their bridges.
19224   o Major bugfixes (crash):
19225     - Fix a complicated crash bug that could affect Tor clients
19226       configured to use bridges when replacing a networkstatus consensus
19227       in which one of their bridges was mentioned. OpenBSD users saw
19228       more crashes here, but all platforms were potentially affected.
19229       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
19231   o Major bugfixes (relay, OOM handler):
19232     - Fix a timing-dependent assertion failure that could occur when we
19233       tried to flush from a circuit after having freed its cells because
19234       of an out-of-memory condition. Fixes bug 20203; bugfix on
19235       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
19236       this one.
19238   o Minor feature (fallback directories):
19239     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
19240       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
19241       2016. Closes ticket 20190; patch by teor.
19243   o Minor features (geoip):
19244     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
19245       Country database.
19248 Changes in version 0.2.9.2-alpha - 2016-08-24
19249   Tor 0.2.9.2-alpha continues development of the 0.2.9 series with
19250   several new features and bugfixes. It also includes an important
19251   authority update and an important bugfix from 0.2.8.7. Everyone who
19252   sets the ReachableAddresses option, and all bridges, are strongly
19253   encouraged to upgrade to 0.2.8.7, or to 0.2.9.2-alpha.
19255   o Directory authority changes (also in 0.2.8.7):
19256     - The "Tonga" bridge authority has been retired; the new bridge
19257       authority is "Bifroest". Closes tickets 19728 and 19690.
19259   o Major bugfixes (client, security, also in 0.2.8.7):
19260     - Only use the ReachableAddresses option to restrict the first hop
19261       in a path. In earlier versions of 0.2.8.x, it would apply to
19262       every hop in the path, with a possible degradation in anonymity
19263       for anyone using an uncommon ReachableAddress setting. Fixes bug
19264       19973; bugfix on 0.2.8.2-alpha.
19266   o Major features (user interface):
19267     - Tor now supports the ability to declare options deprecated, so
19268       that we can recommend that people stop using them. Previously,
19269       this was done in an ad-hoc way. Closes ticket 19820.
19271   o Major bugfixes (directory downloads):
19272     - Avoid resetting download status for consensuses hourly, since we
19273       already have another, smarter retry mechanism. Fixes bug 8625;
19274       bugfix on 0.2.0.9-alpha.
19276   o Minor features (config):
19277     - Warn users when descriptor and port addresses are inconsistent.
19278       Mitigates bug 13953; patch by teor.
19280   o Minor features (geoip):
19281     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
19282       Country database.
19284   o Minor features (user interface):
19285     - There is a new --list-deprecated-options command-line option to
19286       list all of the deprecated options. Implemented as part of
19287       ticket 19820.
19289   o Minor bugfixes (code style):
19290     - Fix an integer signedness conversion issue in the case conversion
19291       tables. Fixes bug 19168; bugfix on 0.2.1.11-alpha.
19293   o Minor bugfixes (compilation):
19294     - Build correctly on versions of libevent2 without support for
19295       evutil_secure_rng_add_bytes(). Fixes bug 19904; bugfix
19296       on 0.2.5.4-alpha.
19297     - Fix a compilation warning on GCC versions before 4.6. Our
19298       ENABLE_GCC_WARNING macro used the word "warning" as an argument,
19299       when it is also required as an argument to the compiler pragma.
19300       Fixes bug 19901; bugfix on 0.2.9.1-alpha.
19302   o Minor bugfixes (compilation, also in 0.2.8.7):
19303     - Remove an inappropriate "inline" in tortls.c that was causing
19304       warnings on older versions of GCC. Fixes bug 19903; bugfix
19305       on 0.2.8.1-alpha.
19307   o Minor bugfixes (fallback directories, also in 0.2.8.7):
19308     - Avoid logging a NULL string pointer when loading fallback
19309       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
19310       and 0.2.8.1-alpha. Report and patch by "rubiate".
19312   o Minor bugfixes (logging):
19313     - Log a more accurate message when we fail to dump a microdescriptor.
19314       Fixes bug 17758; bugfix on 0.2.2.8-alpha. Patch from Daniel Pinto.
19316   o Minor bugfixes (memory leak):
19317     - Fix a series of slow memory leaks related to parsing torrc files
19318       and options. Fixes bug 19466; bugfix on 0.2.1.6-alpha.
19320   o Deprecated features:
19321     - A number of DNS-cache-related sub-options for client ports are now
19322       deprecated for security reasons, and may be removed in a future
19323       version of Tor. (We believe that client-side DNS caching is a bad
19324       idea for anonymity, and you should not turn it on.) The options
19325       are: CacheDNS, CacheIPv4DNS, CacheIPv6DNS, UseDNSCache,
19326       UseIPv4Cache, and UseIPv6Cache.
19327     - A number of options are deprecated for security reasons, and may
19328       be removed in a future version of Tor. The options are:
19329       AllowDotExit, AllowInvalidNodes, AllowSingleHopCircuits,
19330       AllowSingleHopExits, ClientDNSRejectInternalAddresses,
19331       CloseHSClientCircuitsImmediatelyOnTimeout,
19332       CloseHSServiceRendCircuitsImmediatelyOnTimeout,
19333       ExcludeSingleHopRelays, FastFirstHopPK, TLSECGroup,
19334       UseNTorHandshake, and WarnUnsafeSocks.
19335     - The *ListenAddress options are now deprecated as unnecessary: the
19336       corresponding *Port options should be used instead. These options
19337       may someday be removed. The affected options are:
19338       ControlListenAddress, DNSListenAddress, DirListenAddress,
19339       NATDListenAddress, ORListenAddress, SocksListenAddress,
19340       and TransListenAddress.
19342   o Documentation:
19343     - Correct the IPv6 syntax in our documentation for the
19344       VirtualAddrNetworkIPv6 torrc option. Closes ticket 19743.
19346   o Removed code:
19347     - We no longer include the (dead, deprecated) bufferevent code in
19348       Tor. Closes ticket 19450. Based on a patch from U+039b.
19351 Changes in version 0.2.8.7 - 2016-08-24
19352   Tor 0.2.8.7 fixes an important bug related to the ReachableAddresses
19353   option in 0.2.8.6, and replaces a retiring bridge authority. Everyone
19354   who sets the ReachableAddresses option, and all bridges, are strongly
19355   encouraged to upgrade.
19357   o Directory authority changes:
19358     - The "Tonga" bridge authority has been retired; the new bridge
19359       authority is "Bifroest". Closes tickets 19728 and 19690.
19361   o Major bugfixes (client, security):
19362     - Only use the ReachableAddresses option to restrict the first hop
19363       in a path. In earlier versions of 0.2.8.x, it would apply to
19364       every hop in the path, with a possible degradation in anonymity
19365       for anyone using an uncommon ReachableAddress setting. Fixes bug
19366       19973; bugfix on 0.2.8.2-alpha.
19368   o Minor features (geoip):
19369     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
19370       Country database.
19372   o Minor bugfixes (compilation):
19373     - Remove an inappropriate "inline" in tortls.c that was causing
19374       warnings on older versions of GCC. Fixes bug 19903; bugfix
19375       on 0.2.8.1-alpha.
19377   o Minor bugfixes (fallback directories):
19378     - Avoid logging a NULL string pointer when loading fallback
19379       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
19380       and 0.2.8.1-alpha. Report and patch by "rubiate".
19383 Changes in version 0.2.9.1-alpha - 2016-08-08
19384   Tor 0.2.9.1-alpha is the first alpha release in the 0.2.9 development
19385   series. It improves our support for hardened builds and compiler
19386   warnings, deploys some critical infrastructure for improvements to
19387   hidden services, includes a new timing backend that we hope to use for
19388   better support for traffic padding, makes it easier for programmers to
19389   log unexpected events, and contains other small improvements to
19390   security, correctness, and performance.
19392   Below are the changes since 0.2.8.6.
19394   o New system requirements:
19395     - Tor now requires Libevent version 2.0.10-stable or later. Older
19396       versions of Libevent have less efficient backends for several
19397       platforms, and lack the DNS code that we use for our server-side
19398       DNS support. This implements ticket 19554.
19399     - Tor now requires zlib version 1.2 or later, for security,
19400       efficiency, and (eventually) gzip support. (Back when we started,
19401       zlib 1.1 and zlib 1.0 were still found in the wild. 1.2 was
19402       released in 2003. We recommend the latest version.)
19404   o Major features (build, hardening):
19405     - Tor now builds with -ftrapv by default on compilers that support
19406       it. This option detects signed integer overflow (which C forbids),
19407       and turns it into a hard-failure. We do not apply this option to
19408       code that needs to run in constant time to avoid side-channels;
19409       instead, we use -fwrapv in that code. Closes ticket 17983.
19410     - When --enable-expensive-hardening is selected, stop applying the
19411       clang/gcc sanitizers to code that needs to run in constant time.
19412       Although we are aware of no introduced side-channels, we are not
19413       able to prove that there are none. Related to ticket 17983.
19415   o Major features (compilation):
19416     - Our big list of extra GCC warnings is now enabled by default when
19417       building with GCC (or with anything like Clang that claims to be
19418       GCC-compatible). To make all warnings into fatal compilation
19419       errors, pass --enable-fatal-warnings to configure. Closes
19420       ticket 19044.
19421     - Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS to automatically
19422       turn on C and POSIX extensions. (Previously, we attempted to do
19423       this on an ad hoc basis.) Closes ticket 19139.
19425   o Major features (directory authorities, hidden services):
19426     - Directory authorities can now perform the shared randomness
19427       protocol specified by proposal 250. Using this protocol, directory
19428       authorities generate a global fresh random value every day. In the
19429       future, this value will be used by hidden services to select
19430       HSDirs. This release implements the directory authority feature;
19431       the hidden service side will be implemented in the future as part
19432       of proposal 224. Resolves ticket 16943; implements proposal 250.
19434   o Major features (downloading, random exponential backoff):
19435     - When we fail to download an object from a directory service, wait
19436       for an (exponentially increasing) randomized amount of time before
19437       retrying, rather than a fixed interval as we did before. This
19438       prevents a group of Tor instances from becoming too synchronized,
19439       or a single Tor instance from becoming too predictable, in its
19440       download schedule. Closes ticket 15942.
19442   o Major bugfixes (exit policies):
19443     - Avoid disclosing exit outbound bind addresses, configured port
19444       bind addresses, and local interface addresses in relay descriptors
19445       by default under ExitPolicyRejectPrivate. Instead, only reject
19446       these (otherwise unlisted) addresses if
19447       ExitPolicyRejectLocalInterfaces is set. Fixes bug 18456; bugfix on
19448       0.2.7.2-alpha. Patch by teor.
19450   o Major bugfixes (hidden service client):
19451     - Allow Tor clients with appropriate controllers to work with
19452       FetchHidServDescriptors set to 0. Previously, this option also
19453       disabled descriptor cache lookup, thus breaking hidden services
19454       entirely. Fixes bug 18704; bugfix on 0.2.0.20-rc. Patch by "twim".
19456   o Minor features (build, hardening):
19457     - Detect and work around a libclang_rt problem that would prevent
19458       clang from finding __mulodi4() on some 32-bit platforms, and thus
19459       keep -ftrapv from linking on those systems. Closes ticket 19079.
19460     - When building on a system without runtime support for the runtime
19461       hardening options, try to log a useful warning at configuration
19462       time, rather than an incomprehensible warning at link time. If
19463       expensive hardening was requested, this warning becomes an error.
19464       Closes ticket 18895.
19466   o Minor features (code safety):
19467     - In our integer-parsing functions, ensure that maxiumum value we
19468       give is no smaller than the minimum value. Closes ticket 19063;
19469       patch from U+039b.
19471   o Minor features (controller):
19472     - Implement new GETINFO queries for all downloads that use
19473       download_status_t to schedule retries. This allows controllers to
19474       examine the schedule for pending downloads. Closes ticket 19323.
19475     - Allow controllers to configure basic client authorization on
19476       hidden services when they create them with the ADD_ONION control
19477       command. Implements ticket 15588. Patch by "special".
19478     - Fire a STATUS_SERVER controller event whenever the hibernation
19479       status changes between "awake"/"soft"/"hard". Closes ticket 18685.
19481   o Minor features (directory authority):
19482     - Directory authorities now only give the Guard flag to a relay if
19483       they are also giving it the Stable flag. This change allows us to
19484       simplify path selection for clients. It should have minimal effect
19485       in practice, since >99% of Guards already have the Stable flag.
19486       Implements ticket 18624.
19487     - Directory authorities now write their v3-status-votes file out to
19488       disk earlier in the consensus process, so we have a record of the
19489       votes even if we abort the consensus process. Resolves
19490       ticket 19036.
19492   o Minor features (hidden service):
19493     - Stop being so strict about the payload length of "rendezvous1"
19494       cells. We used to be locked in to the "TAP" handshake length, and
19495       now we can handle better handshakes like "ntor". Resolves
19496       ticket 18998.
19498   o Minor features (infrastructure, time):
19499     - Tor now uses the operating system's monotonic timers (where
19500       available) for internal fine-grained timing. Previously we would
19501       look at the system clock, and then attempt to compensate for the
19502       clock running backwards. Closes ticket 18908.
19503     - Tor now includes an improved timer backend, so that we can
19504       efficiently support tens or hundreds of thousands of concurrent
19505       timers, as will be needed for some of our planned anti-traffic-
19506       analysis work. This code is based on William Ahern's "timeout.c"
19507       project, which implements a "tickless hierarchical timing wheel".
19508       Closes ticket 18365.
19510   o Minor features (logging):
19511     - Provide a more useful warning message when configured with an
19512       invalid Nickname. Closes ticket 18300; patch from "icanhasaccount".
19513     - When dumping unparseable router descriptors, optionally store them
19514       in separate files, named by digest, up to a configurable size
19515       limit. You can change the size limit by setting the
19516       MaxUnparseableDescSizeToLog option, and disable this feature by
19517       setting that option to 0. Closes ticket 18322.
19518     - Add a set of macros to check nonfatal assertions, for internal
19519       use. Migrating more of our checks to these should help us avoid
19520       needless crash bugs. Closes ticket 18613.
19522   o Minor features (performance):
19523     - Change the "optimistic data" extension from "off by default" to
19524       "on by default". The default was ordinarily overridden by a
19525       consensus option, but when clients were bootstrapping for the
19526       first time, they would not have a consensus to get the option
19527       from. Changing this default saves a round-trip during startup.
19528       Closes ticket 18815.
19530   o Minor features (relay, usability):
19531     - When the directory authorities refuse a bad relay's descriptor,
19532       encourage the relay operator to contact us. Many relay operators
19533       won't notice this line in their logs, but it's a win if even a few
19534       learn why we don't like what their relay was doing. Resolves
19535       ticket 18760.
19537   o Minor features (testing):
19538     - Let backtrace tests work correctly under AddressSanitizer. Fixes
19539       part of bug 18934; bugfix on 0.2.5.2-alpha.
19540     - Move the test-network.sh script to chutney, and modify tor's test-
19541       network.sh to call the (newer) chutney version when available.
19542       Resolves ticket 19116. Patch by teor.
19543     - Use the lcov convention for marking lines as unreachable, so that
19544       we don't count them when we're generating test coverage data.
19545       Update our coverage tools to understand this convention. Closes
19546       ticket 16792.
19548   o Minor bugfixes (bootstrap):
19549     - Remember the directory we fetched the consensus or previous
19550       certificates from, and use it to fetch future authority
19551       certificates. This change improves bootstrapping performance.
19552       Fixes bug 18963; bugfix on 0.2.8.1-alpha.
19554   o Minor bugfixes (build):
19555     - The test-stem and test-network makefile targets now depend only on
19556       the tor binary that they are testing. Previously, they depended on
19557       "make all". Fixes bug 18240; bugfix on 0.2.8.2-alpha. Based on a
19558       patch from "cypherpunks".
19560   o Minor bugfixes (circuits):
19561     - Make sure extend_info_from_router() is only called on servers.
19562       Fixes bug 19639; bugfix on 0.2.8.1-alpha.
19564   o Minor bugfixes (compilation):
19565     - When building with Clang, use a full set of GCC warnings.
19566       (Previously, we included only a subset, because of the way we
19567       detected them.) Fixes bug 19216; bugfix on 0.2.0.1-alpha.
19569   o Minor bugfixes (directory authority):
19570     - Authorities now sort the "package" lines in their votes, for ease
19571       of debugging. (They are already sorted in consensus documents.)
19572       Fixes bug 18840; bugfix on 0.2.6.3-alpha.
19573     - When parsing a detached signature, make sure we use the length of
19574       the digest algorithm instead of an hardcoded DIGEST256_LEN in
19575       order to avoid comparing bytes out-of-bounds with a smaller digest
19576       length such as SHA1. Fixes bug 19066; bugfix on 0.2.2.6-alpha.
19578   o Minor bugfixes (documentation):
19579     - Document the --passphrase-fd option in the tor manpage. Fixes bug
19580       19504; bugfix on 0.2.7.3-rc.
19581     - Fix the description of the --passphrase-fd option in the
19582       tor-gencert manpage. The option is used to pass the number of a
19583       file descriptor to read the passphrase from, not to read the file
19584       descriptor from. Fixes bug 19505; bugfix on 0.2.0.20-alpha.
19586   o Minor bugfixes (ephemeral hidden service):
19587     - When deleting an ephemeral hidden service, close its intro points
19588       even if they are not completely open. Fixes bug 18604; bugfix
19589       on 0.2.7.1-alpha.
19591   o Minor bugfixes (guard selection):
19592     - Use a single entry guard even if the NumEntryGuards consensus
19593       parameter is not provided. Fixes bug 17688; bugfix
19594       on 0.2.5.6-alpha.
19595     - Don't mark guards as unreachable if connection_connect() fails.
19596       That function fails for local reasons, so it shouldn't reveal
19597       anything about the status of the guard. Fixes bug 14334; bugfix
19598       on 0.2.3.10-alpha.
19600   o Minor bugfixes (hidden service client):
19601     - Increase the minimum number of internal circuits we preemptively
19602       build from 2 to 3, so a circuit is available when a client
19603       connects to another onion service. Fixes bug 13239; bugfix
19604       on 0.1.0.1-rc.
19606   o Minor bugfixes (logging):
19607     - When logging a directory ownership mismatch, log the owning
19608       username correctly. Fixes bug 19578; bugfix on 0.2.2.29-beta.
19610   o Minor bugfixes (memory leaks):
19611     - Fix a small, uncommon memory leak that could occur when reading a
19612       truncated ed25519 key file. Fixes bug 18956; bugfix
19613       on 0.2.6.1-alpha.
19615   o Minor bugfixes (testing):
19616     - Allow clients to retry HSDirs much faster in test networks. Fixes
19617       bug 19702; bugfix on 0.2.7.1-alpha. Patch by teor.
19618     - Disable ASAN's detection of segmentation faults while running
19619       test_bt.sh, so that we can make sure that our own backtrace
19620       generation code works. Fixes another aspect of bug 18934; bugfix
19621       on 0.2.5.2-alpha. Patch from "cypherpunks".
19622     - Fix the test-network-all target on out-of-tree builds by using the
19623       correct path to the test driver script. Fixes bug 19421; bugfix
19624       on 0.2.7.3-rc.
19626   o Minor bugfixes (time):
19627     - Improve overflow checks in tv_udiff and tv_mdiff. Fixes bug 19483;
19628       bugfix on all released tor versions.
19629     - When computing the difference between two times in milliseconds,
19630       we now round to the nearest millisecond correctly. Previously, we
19631       could sometimes round in the wrong direction. Fixes bug 19428;
19632       bugfix on 0.2.2.2-alpha.
19634   o Minor bugfixes (user interface):
19635     - Display a more accurate number of suppressed messages in the log
19636       rate-limiter. Previously, there was a potential integer overflow
19637       in the counter. Now, if the number of messages hits a maximum, the
19638       rate-limiter doesn't count any further. Fixes bug 19435; bugfix
19639       on 0.2.4.11-alpha.
19640     - Fix a typo in the passphrase prompt for the ed25519 identity key.
19641       Fixes bug 19503; bugfix on 0.2.7.2-alpha.
19643   o Code simplification and refactoring:
19644     - Remove redundant declarations of the MIN macro. Closes
19645       ticket 18889.
19646     - Rename tor_dup_addr() to tor_addr_to_str_dup() to avoid confusion.
19647       Closes ticket 18462; patch from "icanhasaccount".
19648     - Split the 600-line directory_handle_command_get function into
19649       separate functions for different URL types. Closes ticket 16698.
19651   o Documentation:
19652     - Fix spelling of "--enable-tor2web-mode" in the manpage. Closes
19653       ticket 19153. Patch from "U+039b".
19655   o Removed features:
19656     - Remove support for "GET /tor/bytes.txt" DirPort request, and
19657       "GETINFO dir-usage" controller request, which were only available
19658       via a compile-time option in Tor anyway. Feature was added in
19659       0.2.2.1-alpha. Resolves ticket 19035.
19660     - There is no longer a compile-time option to disable support for
19661       TransPort. (If you don't want TransPort; just don't use it.) Patch
19662       from "U+039b". Closes ticket 19449.
19664   o Testing:
19665     - Run more workqueue tests as part of "make check". These had
19666       previously been implemented, but you needed to know special
19667       command-line options to enable them.
19668     - We now have unit tests for our code to reject zlib "compression
19669       bombs". (Fortunately, the code works fine.)
19672 Changes in version 0.2.8.6 - 2016-08-02
19674   Tor 0.2.8.6 is the first stable version of the Tor 0.2.8 series.
19676   The Tor 0.2.8 series improves client bootstrapping performance,
19677   completes the authority-side implementation of improved identity
19678   keys for relays, and includes numerous bugfixes and performance
19679   improvements throughout the program. This release continues to
19680   improve the coverage of Tor's test suite.  For a full list of
19681   changes since Tor 0.2.7, see the ReleaseNotes file.
19683   Changes since 0.2.8.5-rc:
19685   o Minor features (geoip):
19686     - Update geoip and geoip6 to the July 6 2016 Maxmind GeoLite2
19687       Country database.
19689   o Minor bugfixes (compilation):
19690     - Fix a compilation warning in the unit tests on systems where char
19691       is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha.
19693   o Minor bugfixes (fallback directories):
19694     - Remove 1 fallback that was on the hardcoded list, then opted-out,
19695       leaving 89 of the 100 fallbacks originally introduced in Tor
19696       0.2.8.2-alpha in March 2016. Closes ticket 19782; patch by teor.
19698   o Minor bugfixes (Linux seccomp2 sandbox):
19699     - Allow more syscalls when running with "Sandbox 1" enabled:
19700       sysinfo, getsockopt(SO_SNDBUF), and setsockopt(SO_SNDBUFFORCE). On
19701       some systems, these are required for Tor to start. Fixes bug
19702       18397; bugfix on 0.2.5.1-alpha. Patch from Daniel Pinto.
19703     - Allow IPPROTO_UDP datagram sockets when running with "Sandbox 1",
19704       so that get_interface_address6_via_udp_socket_hack() can work.
19705       Fixes bug 19660; bugfix on 0.2.5.1-alpha.
19708 Changes in version 0.2.8.5-rc - 2016-07-07
19709   Tor 0.2.8.5-rc is the second release candidate in the Tor 0.2.8
19710   series. If we find no new bugs or regressions here, the first stable
19711   0.2.8 release will be identical to it. It has a few small bugfixes
19712   against previous versions.
19714   o Directory authority changes:
19715     - Urras is no longer a directory authority. Closes ticket 19271.
19717   o Major bugfixes (heartbeat):
19718     - Fix a regression that would crash Tor when the periodic
19719       "heartbeat" log messages were disabled. Fixes bug 19454; bugfix on
19720       0.2.8.1-alpha. Reported by "kubaku".
19722   o Minor features (build):
19723     - Tor now again builds with the recent OpenSSL 1.1 development
19724       branch (tested against 1.1.0-pre6-dev). Closes ticket 19499.
19725     - When building manual pages, set the timezone to "UTC", so that the
19726       output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha.
19727       Patch from intrigeri.
19729   o Minor bugfixes (fallback directory selection):
19730     - Avoid errors during fallback selection if there are no eligible
19731       fallbacks. Fixes bug 19480; bugfix on 0.2.8.3-alpha. Patch
19732       by teor.
19734   o Minor bugfixes (IPv6, microdescriptors):
19735     - Don't check node addresses when we only have a routerstatus. This
19736       allows IPv6-only clients to bootstrap by fetching microdescriptors
19737       from fallback directory mirrors. (The microdescriptor consensus
19738       has no IPv6 addresses in it.) Fixes bug 19608; bugfix
19739       on 0.2.8.2-alpha.
19741   o Minor bugfixes (logging):
19742     - Reduce pointlessly verbose log messages when directory servers
19743       can't be found. Fixes bug 18849; bugfix on 0.2.8.3-alpha and
19744       0.2.8.1-alpha. Patch by teor.
19745     - When a fallback directory changes its fingerprint from the hard-
19746       coded fingerprint, log a less severe, more explanatory log
19747       message. Fixes bug 18812; bugfix on 0.2.8.1-alpha. Patch by teor.
19749   o Minor bugfixes (Linux seccomp2 sandboxing):
19750     - Allow statistics to be written to disk when "Sandbox 1" is
19751       enabled. Fixes bugs 19556 and 19957; bugfix on 0.2.5.1-alpha and
19752       0.2.6.1-alpha respectively.
19754   o Minor bugfixes (user interface):
19755     - Remove a warning message "Service [scrubbed] not found after
19756       descriptor upload". This message appears when one uses HSPOST
19757       control command to upload a service descriptor. Since there is
19758       only a descriptor and no service, showing this message is
19759       pointless and confusing. Fixes bug 19464; bugfix on 0.2.7.2-alpha.
19761   o Fallback directory list:
19762     - Add a comment to the generated fallback directory list that
19763       explains how to comment out unsuitable fallbacks in a way that's
19764       compatible with the stem fallback parser.
19765     - Update fallback whitelist and blacklist based on relay operator
19766       emails. Blacklist unsuitable (non-working, over-volatile)
19767       fallbacks. Resolves ticket 19071. Patch by teor.
19768     - Remove 10 unsuitable fallbacks, leaving 90 of the 100 fallbacks
19769       originally introduced in Tor 0.2.8.2-alpha in March 2016. Closes
19770       ticket 19071; patch by teor.
19773 Changes in version 0.2.8.4-rc - 2016-06-15
19774   Tor 0.2.8.4-rc is the first release candidate in the Tor 0.2.8 series.
19775   If we find no new bugs or regressions here, the first stable 0.2.8
19776   release will be identical to it. It has a few small bugfixes against
19777   previous versions.
19779   o Major bugfixes (user interface):
19780     - Correctly give a warning in the cases where a relay is specified
19781       by nickname, and one such relay is found, but it is not officially
19782       Named. Fixes bug 19203; bugfix on 0.2.3.1-alpha.
19784   o Minor features (build):
19785     - Tor now builds once again with the recent OpenSSL 1.1 development
19786       branch (tested against 1.1.0-pre5 and 1.1.0-pre6-dev).
19788   o Minor features (geoip):
19789     - Update geoip and geoip6 to the June 7 2016 Maxmind GeoLite2
19790       Country database.
19792   o Minor bugfixes (compilation):
19793     - Cause the unit tests to compile correctly on mingw64 versions that
19794       lack sscanf. Fixes bug 19213; bugfix on 0.2.7.1-alpha.
19796   o Minor bugfixes (downloading):
19797     - Predict more correctly whether we'll be downloading over HTTP when
19798       we determine the maximum length of a URL. This should avoid a
19799       "BUG" warning about the Squid HTTP proxy and its URL limits. Fixes
19800       bug 19191.
19803 Changes in version 0.2.8.3-alpha - 2016-05-26
19804   Tor 0.2.8.3-alpha resolves several bugs, most of them introduced over
19805   the course of the 0.2.8 development cycle. It improves the behavior of
19806   directory clients, fixes several crash bugs, fixes a gap in compiler
19807   hardening, and allows the full integration test suite to run on
19808   more platforms.
19810   o Major bugfixes (security, client, DNS proxy):
19811     - Stop a crash that could occur when a client running with DNSPort
19812       received a query with multiple address types, and the first
19813       address type was not supported. Found and fixed by Scott Dial.
19814       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
19816   o Major bugfixes (security, compilation):
19817     - Correctly detect compiler flags on systems where _FORTIFY_SOURCE
19818       is predefined. Previously, our use of -D_FORTIFY_SOURCE would
19819       cause a compiler warning, thereby making other checks fail, and
19820       needlessly disabling compiler-hardening support. Fixes one case of
19821       bug 18841; bugfix on 0.2.3.17-beta. Patch from "trudokal".
19823   o Major bugfixes (security, directory authorities):
19824     - Fix a crash and out-of-bounds write during authority voting, when
19825       the list of relays includes duplicate ed25519 identity keys. Fixes
19826       bug 19032; bugfix on 0.2.8.2-alpha.
19828   o Major bugfixes (client, bootstrapping):
19829     - Check if bootstrap consensus downloads are still needed when the
19830       linked connection attaches. This prevents tor making unnecessary
19831       begindir-style connections, which are the only directory
19832       connections tor clients make since the fix for 18483 was merged.
19833     - Fix some edge cases where consensus download connections may not
19834       have been closed, even though they were not needed. Related to fix
19835       for 18809.
19836     - Make relays retry consensus downloads the correct number of times,
19837       rather than the more aggressive client retry count. Fixes part of
19838       ticket 18809.
19839     - Stop downloading consensuses when we have a consensus, even if we
19840       don't have all the certificates for it yet. Fixes bug 18809;
19841       bugfix on 0.2.8.1-alpha. Patches by arma and teor.
19843   o Major bugfixes (directory mirrors):
19844     - Decide whether to advertise begindir support in the the same way
19845       we decide whether to advertise our DirPort. Allowing these
19846       decisions to become out-of-sync led to surprising behavior like
19847       advertising begindir support when hibernation made us not
19848       advertise a DirPort. Resolves bug 18616; bugfix on 0.2.8.1-alpha.
19849       Patch by teor.
19851   o Major bugfixes (IPv6 bridges, client):
19852     - Actually use IPv6 addresses when selecting directory addresses for
19853       IPv6 bridges. Fixes bug 18921; bugfix on 0.2.8.1-alpha. Patch
19854       by "teor".
19856   o Major bugfixes (key management):
19857     - If OpenSSL fails to generate an RSA key, do not retain a dangling
19858       pointer to the previous (uninitialized) key value. The impact here
19859       should be limited to a difficult-to-trigger crash, if OpenSSL is
19860       running an engine that makes key generation failures possible, or
19861       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
19862       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
19863       Baishakhi Ray.
19865   o Major bugfixes (testing):
19866     - Fix a bug that would block 'make test-network-all' on systems where
19867       IPv6 packets were lost. Fixes bug 19008; bugfix on 0.2.7.3-rc.
19868     - Avoid "WSANOTINITIALISED" warnings in the unit tests. Fixes bug 18668;
19869       bugfix on 0.2.8.1-alpha.
19871   o Minor features (clients):
19872     - Make clients, onion services, and bridge relays always use an
19873       encrypted begindir connection for directory requests. Resolves
19874       ticket 18483. Patch by "teor".
19876   o Minor features (fallback directory mirrors):
19877     - Give each fallback the same weight for client selection; restrict
19878       fallbacks to one per operator; report fallback directory detail
19879       changes when rebuilding list; add new fallback directory mirrors
19880       to the whitelist; and many other minor simplifications and fixes.
19881       Closes tasks 17905, 18749, bug 18689, and fixes part of bug 18812 on
19882       0.2.8.1-alpha; patch by "teor".
19883     - Replace the 21 fallbacks generated in January 2016 and included in
19884       Tor 0.2.8.1-alpha, with a list of 100 fallbacks generated in March
19885       2016. Closes task 17158; patch by "teor".
19887   o Minor features (geoip):
19888     - Update geoip and geoip6 to the May 4 2016 Maxmind GeoLite2
19889       Country database.
19891   o Minor bugfixes (assert, portability):
19892     - Fix an assertion failure in memarea.c on systems where "long" is
19893       shorter than the size of a pointer. Fixes bug 18716; bugfix
19894       on 0.2.1.1-alpha.
19896   o Minor bugfixes (bootstrap):
19897     - Consistently use the consensus download schedule for authority
19898       certificates. Fixes bug 18816; bugfix on 0.2.4.13-alpha.
19900   o Minor bugfixes (build):
19901     - Remove a pair of redundant AM_CONDITIONAL declarations from
19902       configure.ac. Fixes one final case of bug 17744; bugfix
19903       on 0.2.8.2-alpha.
19904     - Resolve warnings when building on systems that are concerned with
19905       signed char. Fixes bug 18728; bugfix on 0.2.7.2-alpha
19906       and 0.2.6.1-alpha.
19907     - When libscrypt.h is found, but no libscrypt library can be linked,
19908       treat libscrypt as absent. Fixes bug 19161; bugfix
19909       on 0.2.6.1-alpha.
19911   o Minor bugfixes (client):
19912     - Turn all TestingClientBootstrap* into non-testing torrc options.
19913       This changes simply renames them by removing "Testing" in front of
19914       them and they do not require TestingTorNetwork to be enabled
19915       anymore. Fixes bug 18481; bugfix on 0.2.8.1-alpha.
19916     - Make directory node selection more reliable, mainly for IPv6-only
19917       clients and clients with few reachable addresses. Fixes bug 18929;
19918       bugfix on 0.2.8.1-alpha. Patch by "teor".
19920   o Minor bugfixes (controller, microdescriptors):
19921     - Make GETINFO dir/status-vote/current/consensus conform to the
19922       control specification by returning "551 Could not open cached
19923       consensus..." when not caching consensuses. Fixes bug 18920;
19924       bugfix on 0.2.2.6-alpha.
19926   o Minor bugfixes (crypto, portability):
19927     - The SHA3 and SHAKE routines now produce the correct output on Big
19928       Endian systems. No code calls either algorithm yet, so this is
19929       primarily a build fix. Fixes bug 18943; bugfix on 0.2.8.1-alpha.
19930     - Tor now builds again with the recent OpenSSL 1.1 development
19931       branch (tested against 1.1.0-pre4 and 1.1.0-pre5-dev). Closes
19932       ticket 18286.
19934   o Minor bugfixes (directories):
19935     - When fetching extrainfo documents, compare their SHA256 digests
19936       and Ed25519 signing key certificates with the routerinfo that led
19937       us to fetch them, rather than with the most recent routerinfo.
19938       Otherwise we generate many spurious warnings about mismatches.
19939       Fixes bug 17150; bugfix on 0.2.7.2-alpha.
19941   o Minor bugfixes (logging):
19942     - When we can't generate a signing key because OfflineMasterKey is
19943       set, do not imply that we should have been able to load it. Fixes
19944       bug 18133; bugfix on 0.2.7.2-alpha.
19945     - Stop periodic_event_dispatch() from blasting twelve lines per
19946       second at loglevel debug. Fixes bug 18729; fix on 0.2.8.1-alpha.
19947     - When rejecting a misformed INTRODUCE2 cell, only log at
19948       PROTOCOL_WARN severity. Fixes bug 18761; bugfix on 0.2.8.2-alpha.
19950   o Minor bugfixes (pluggable transports):
19951     - Avoid reporting a spurious error when we decide that we don't need
19952       to terminate a pluggable transport because it has already exited.
19953       Fixes bug 18686; bugfix on 0.2.5.5-alpha.
19955   o Minor bugfixes (pointer arithmetic):
19956     - Fix a bug in memarea_alloc() that could have resulted in remote
19957       heap write access, if Tor had ever passed an unchecked size to
19958       memarea_alloc(). Fortunately, all the sizes we pass to
19959       memarea_alloc() are pre-checked to be less than 128 kilobytes.
19960       Fixes bug 19150; bugfix on 0.2.1.1-alpha. Bug found by
19961       Guido Vranken.
19963   o Minor bugfixes (relays):
19964     - Consider more config options when relays decide whether to
19965       regenerate their descriptor. Fixes more of bug 12538; bugfix
19966       on 0.2.8.1-alpha.
19967     - Resolve some edge cases where we might launch an ORPort
19968       reachability check even when DisableNetwork is set. Noticed while
19969       fixing bug 18616; bugfix on 0.2.3.9-alpha.
19971   o Minor bugfixes (statistics):
19972     - We now include consensus downloads via IPv6 in our directory-
19973       request statistics. Fixes bug 18460; bugfix on 0.2.3.14-alpha.
19975   o Minor bugfixes (testing):
19976     - Allow directories in small networks to bootstrap by skipping
19977       DirPort checks when the consensus has no exits. Fixes bug 19003;
19978       bugfix on 0.2.8.1-alpha. Patch by teor.
19979     - Fix a small memory leak that would occur when the
19980       TestingEnableCellStatsEvent option was turned on. Fixes bug 18673;
19981       bugfix on 0.2.5.2-alpha.
19983   o Minor bugfixes (time handling):
19984     - When correcting a corrupt 'struct tm' value, fill in the tm_wday
19985       field. Otherwise, our unit tests crash on Windows. Fixes bug
19986       18977; bugfix on 0.2.2.25-alpha.
19988   o Documentation:
19989     - Document the contents of the 'datadir/keys' subdirectory in the
19990       manual page. Closes ticket 17621.
19991     - Stop recommending use of nicknames to identify relays in our
19992       MapAddress documentation. Closes ticket 18312.
19995 Changes in version 0.2.8.2-alpha - 2016-03-28
19996   Tor 0.2.8.2-alpha is the second alpha in its series. It fixes numerous
19997   bugs in earlier versions of Tor, including some that prevented
19998   authorities using Tor 0.2.7.x from running correctly. IPv6 and
19999   directory support should also be much improved.
20001   o New system requirements:
20002     - Tor no longer supports versions of OpenSSL with a broken
20003       implementation of counter mode. (This bug was present in OpenSSL
20004       1.0.0, and was fixed in OpenSSL 1.0.0a.) Tor still detects, but no
20005       longer runs with, these versions.
20006     - Tor no longer attempts to support platforms where the "time_t"
20007       type is unsigned. (To the best of our knowledge, only OpenVMS does
20008       this, and Tor has never actually built on OpenVMS.) Closes
20009       ticket 18184.
20010     - Tor now uses Autoconf version 2.63 or later, and Automake 1.11 or
20011       later (released in 2008 and 2009 respectively). If you are
20012       building Tor from the git repository instead of from the source
20013       distribution, and your tools are older than this, you will need to
20014       upgrade. Closes ticket 17732.
20016   o Major bugfixes (security, pointers):
20017     - Avoid a difficult-to-trigger heap corruption attack when extending
20018       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
20019       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
20020       Reported by Guido Vranken.
20022   o Major bugfixes (bridges, pluggable transports):
20023     - Modify the check for OR connections to private addresses. Allow
20024       bridges on private addresses, including pluggable transports that
20025       ignore the (potentially private) address in the bridge line. Fixes
20026       bug 18517; bugfix on 0.2.8.1-alpha. Reported by gk, patch by teor.
20028   o Major bugfixes (compilation):
20029     - Repair hardened builds under the clang compiler. Previously, our
20030       use of _FORTIFY_SOURCE would conflict with clang's address
20031       sanitizer. Fixes bug 14821; bugfix on 0.2.5.4-alpha.
20033   o Major bugfixes (crash on shutdown):
20034     - Correctly handle detaching circuits from muxes when shutting down.
20035       Fixes bug 18116; bugfix on 0.2.8.1-alpha.
20036     - Fix an assert-on-exit bug related to counting memory usage in
20037       rephist.c. Fixes bug 18651; bugfix on 0.2.8.1-alpha.
20039   o Major bugfixes (crash on startup):
20040     - Fix a segfault during startup: If a Unix domain socket was
20041       configured as listener (such as a ControlSocket or a SocksPort
20042       "unix:" socket), and tor was started as root but not configured to
20043       switch to another user, tor would segfault while trying to string
20044       compare a NULL value. Fixes bug 18261; bugfix on 0.2.8.1-alpha.
20045       Patch by weasel.
20047   o Major bugfixes (dns proxy mode, crash):
20048     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
20049       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
20051   o Major bugfixes (relays, bridge clients):
20052     - Ensure relays always allow IPv4 OR and Dir connections. Ensure
20053       bridge clients use the address configured in the bridge line.
20054       Fixes bug 18348; bugfix on 0.2.8.1-alpha. Reported by sysrqb,
20055       patch by teor.
20057   o Major bugfixes (voting):
20058     - Actually enable support for authorities to match routers by their
20059       Ed25519 identities. Previously, the code had been written, but
20060       some debugging code that had accidentally been left in the
20061       codebase made it stay turned off. Fixes bug 17702; bugfix
20062       on 0.2.7.2-alpha.
20063     - When collating votes by Ed25519 identities, authorities now
20064       include a "NoEdConsensus" flag if the ed25519 value (or lack
20065       thereof) for a server does not reflect the majority consensus.
20066       Related to bug 17668; bugfix on 0.2.7.2-alpha.
20067     - When generating a vote with keypinning disabled, never include two
20068       entries for the same ed25519 identity. This bug was causing
20069       authorities to generate votes that they could not parse when a
20070       router violated key pinning by changing its RSA identity but
20071       keeping its Ed25519 identity. Fixes bug 17668; fixes part of bug
20072       18318. Bugfix on 0.2.7.2-alpha.
20074   o Minor features (security, win32):
20075     - Set SO_EXCLUSIVEADDRUSE on Win32 to avoid a local port-stealing
20076       attack. Fixes bug 18123; bugfix on all tor versions. Patch
20077       by teor.
20079   o Minor features (bug-resistance):
20080     - Make Tor survive errors involving connections without a
20081       corresponding event object. Previously we'd fail with an
20082       assertion; now we produce a log message. Related to bug 16248.
20084   o Minor features (build):
20085     - Detect systems with FreeBSD-derived kernels (such as GNU/kFreeBSD)
20086       as having possible IPFW support. Closes ticket 18448. Patch from
20087       Steven Chamberlain.
20089   o Minor features (code hardening):
20090     - Use tor_snprintf() and tor_vsnprintf() even in external and low-
20091       level code, to harden against accidental failures to NUL-
20092       terminate. Part of ticket 17852. Patch from jsturgix. Found
20093       with Flawfinder.
20095   o Minor features (crypto):
20096     - Validate the hard-coded Diffie-Hellman parameters and ensure that
20097       p is a safe prime, and g is a suitable generator. Closes
20098       ticket 18221.
20100   o Minor features (geoip):
20101     - Update geoip and geoip6 to the March 3 2016 Maxmind GeoLite2
20102       Country database.
20104   o Minor features (hidden service directory):
20105     - Streamline relay-side hsdir handling: when relays consider whether
20106       to accept an uploaded hidden service descriptor, they no longer
20107       check whether they are one of the relays in the network that is
20108       "supposed" to handle that descriptor. Implements ticket 18332.
20110   o Minor features (IPv6):
20111     - Add ClientPreferIPv6DirPort, which is set to 0 by default. If set
20112       to 1, tor prefers IPv6 directory addresses.
20113     - Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor
20114       avoids using IPv4 for client OR and directory connections.
20115     - Try harder to obey the IP version restrictions "ClientUseIPv4 0",
20116       "ClientUseIPv6 0", "ClientPreferIPv6ORPort", and
20117       "ClientPreferIPv6DirPort". Closes ticket 17840; patch by teor.
20119   o Minor features (linux seccomp2 sandbox):
20120     - Reject attempts to change our Address with "Sandbox 1" enabled.
20121       Changing Address with Sandbox turned on would never actually work,
20122       but previously it would fail in strange and confusing ways. Found
20123       while fixing 18548.
20125   o Minor features (robustness):
20126     - Exit immediately with an error message if the code attempts to use
20127       Libevent without having initialized it. This should resolve some
20128       frequently-made mistakes in our unit tests. Closes ticket 18241.
20130   o Minor features (unix domain sockets):
20131     - Add a new per-socket option, RelaxDirModeCheck, to allow creating
20132       Unix domain sockets without checking the permissions on the parent
20133       directory. (Tor checks permissions by default because some
20134       operating systems only check permissions on the parent directory.
20135       However, some operating systems do look at permissions on the
20136       socket, and tor's default check is unneeded.) Closes ticket 18458.
20137       Patch by weasel.
20139   o Minor bugfixes (exit policies, security):
20140     - Refresh an exit relay's exit policy when interface addresses
20141       change. Previously, tor only refreshed the exit policy when the
20142       configured external address changed. Fixes bug 18208; bugfix on
20143       0.2.7.3-rc. Patch by teor.
20145   o Minor bugfixes (security, hidden services):
20146     - Prevent hidden services connecting to client-supplied rendezvous
20147       addresses that are reserved as internal or multicast. Fixes bug
20148       8976; bugfix on 0.2.3.21-rc. Patch by dgoulet and teor.
20150   o Minor bugfixes (build):
20151     - Do not link the unit tests against both the testing and non-
20152       testing versions of the static libraries. Fixes bug 18490; bugfix
20153       on 0.2.7.1-alpha.
20154     - Avoid spurious failures from configure files related to calling
20155       exit(0) in TOR_SEARCH_LIBRARY. Fixes bug 18626; bugfix on
20156       0.2.0.1-alpha. Patch from "cypherpunks".
20157     - Silence spurious clang-scan warnings in the ed25519_donna code by
20158       explicitly initializing some objects. Fixes bug 18384; bugfix on
20159       0.2.7.2-alpha. Patch by teor.
20161   o Minor bugfixes (client, bootstrap):
20162     - Count receipt of new microdescriptors as progress towards
20163       bootstrapping. Previously, with EntryNodes set, Tor might not
20164       successfully repopulate the guard set on bootstrapping. Fixes bug
20165       16825; bugfix on 0.2.3.1-alpha.
20167   o Minor bugfixes (code correctness):
20168     - Update to the latest version of Trunnel, which tries harder to
20169       avoid generating code that can invoke memcpy(p,NULL,0). Bug found
20170       by clang address sanitizer. Fixes bug 18373; bugfix
20171       on 0.2.7.2-alpha.
20173   o Minor bugfixes (configuration):
20174     - Fix a tiny memory leak when parsing a port configuration ending in
20175       ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha.
20177   o Minor bugfixes (containers):
20178     - If we somehow attempt to construct a heap with more than
20179       1073741822 elements, avoid an integer overflow when maintaining
20180       the heap property. Fixes bug 18296; bugfix on 0.1.2.1-alpha.
20182   o Minor bugfixes (correctness):
20183     - Fix a bad memory handling bug that would occur if we had queued a
20184       cell on a channel's incoming queue. Fortunately, we can't actually
20185       queue a cell like that as our code is constructed today, but it's
20186       best to avoid this kind of error, even if there isn't any code
20187       that triggers it today. Fixes bug 18570; bugfix on 0.2.4.4-alpha.
20189   o Minor bugfixes (directory):
20190     - When generating a URL for a directory server on an IPv6 address,
20191       wrap the IPv6 address in square brackets. Fixes bug 18051; bugfix
20192       on 0.2.3.9-alpha. Patch from Malek.
20194   o Minor bugfixes (fallback directory mirrors):
20195     - When requesting extrainfo descriptors from a trusted directory
20196       server, check whether it is an authority or a fallback directory
20197       which supports extrainfo descriptors. Fixes bug 18489; bugfix on
20198       0.2.4.7-alpha. Reported by atagar, patch by teor.
20200   o Minor bugfixes (hidden service, client):
20201     - Handle the case where the user makes several fast consecutive
20202       requests to the same .onion address. Previously, the first six
20203       requests would each trigger a descriptor fetch, each picking a
20204       directory (there are 6 overall) and the seventh one would fail
20205       because no directories were left, thereby triggering a close on
20206       all current directory connections asking for the hidden service.
20207       The solution here is to not close the connections if we have
20208       pending directory fetches. Fixes bug 15937; bugfix
20209       on 0.2.7.1-alpha.
20211   o Minor bugfixes (hidden service, control port):
20212     - Add the onion address to the HS_DESC event for the UPLOADED action
20213       both on success or failure. It was previously hardcoded with
20214       UNKNOWN. Fixes bug 16023; bugfix on 0.2.7.2-alpha.
20216   o Minor bugfixes (hidden service, directory):
20217     - Bridges now refuse "rendezvous2" (hidden service descriptor)
20218       publish attempts. Suggested by ticket 18332.
20220   o Minor bugfixes (linux seccomp2 sandbox):
20221     - Allow the setrlimit syscall, and the prlimit and prlimit64
20222       syscalls, which some libc implementations use under the hood.
20223       Fixes bug 15221; bugfix on 0.2.5.1-alpha.
20224     - Avoid a 10-second delay when starting as a client with "Sandbox 1"
20225       enabled and no DNS resolvers configured. This should help TAILS
20226       start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha.
20227     - Fix the sandbox's interoperability with unix domain sockets under
20228       setuid. Fixes bug 18253; bugfix on 0.2.8.1-alpha.
20230   o Minor bugfixes (logging):
20231     - When logging information about an unparsable networkstatus vote or
20232       consensus, do not say "vote" when we mean consensus. Fixes bug
20233       18368; bugfix on 0.2.0.8-alpha.
20234     - Scrub service name in "unrecognized service ID" log messages.
20235       Fixes bug 18600; bugfix on 0.2.4.11-alpha.
20236     - Downgrade logs and backtraces about IP versions to info-level.
20237       Only log backtraces once each time tor runs. Assists in diagnosing
20238       bug 18351; bugfix on 0.2.8.1-alpha. Reported by sysrqb and
20239       Christian, patch by teor.
20241   o Minor bugfixes (memory safety):
20242     - Avoid freeing an uninitialized pointer when opening a socket fails
20243       in get_interface_addresses_ioctl(). Fixes bug 18454; bugfix on
20244       0.2.3.11-alpha. Reported by toralf and "cypherpunks", patch
20245       by teor.
20246     - Correctly duplicate addresses in get_interface_address6_list().
20247       Fixes bug 18454; bugfix on 0.2.8.1-alpha. Reported by toralf,
20248       patch by "cypherpunks".
20249     - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix
20250       on 0.2.0.1-alpha.
20251     - Fix a memory leak in "tor --list-fingerprint". Fixes part of bug
20252       18672; bugfix on 0.2.5.1-alpha.
20254   o Minor bugfixes (private directory):
20255     - Prevent a race condition when creating private directories. Fixes
20256       part of bug 17852; bugfix on 0.0.2pre13. Part of ticket 17852.
20257       Patch from jsturgix. Found with Flawfinder.
20259   o Minor bugfixes (test networks, IPv6):
20260     - Allow internal IPv6 addresses in descriptors in test networks.
20261       Fixes bug 17153; bugfix on 0.2.3.16-alpha. Patch by teor, reported
20262       by karsten.
20264   o Minor bugfixes (testing):
20265     - We no longer disable assertions in the unit tests when coverage is
20266       enabled. Instead, we require you to say --disable-asserts-in-tests
20267       to the configure script if you need assertions disabled in the
20268       unit tests (for example, if you want to perform branch coverage).
20269       Fixes bug 18242; bugfix on 0.2.7.1-alpha.
20271   o Minor bugfixes (time parsing):
20272     - Avoid overflow in tor_timegm when parsing dates in and after 2038
20273       on platforms with 32-bit time_t. Fixes bug 18479; bugfix on
20274       0.0.2pre14. Patch by teor.
20276   o Minor bugfixes (tor-gencert):
20277     - Correctly handle the case where an authority operator enters a
20278       passphrase but sends an EOF before sending a newline. Fixes bug
20279       17443; bugfix on 0.2.0.20-rc. Found by junglefowl.
20281   o Code simplification and refactoring:
20282     - Quote all the string interpolations in configure.ac -- even those
20283       which we are pretty sure can't contain spaces. Closes ticket
20284       17744. Patch from zerosion.
20285     - Remove specialized code for non-inplace AES_CTR. 99% of our AES is
20286       inplace, so there's no need to have a separate implementation for
20287       the non-inplace code. Closes ticket 18258. Patch from Malek.
20288     - Simplify return types for some crypto functions that can't
20289       actually fail. Patch from Hassan Alsibyani. Closes ticket 18259.
20291   o Documentation:
20292     - Change build messages to refer to "Fedora" instead of "Fedora
20293       Core", and "dnf" instead of "yum". Closes tickets 18459 and 18426.
20294       Patches from "icanhasaccount" and "cypherpunks".
20296   o Removed features:
20297     - We no longer maintain an internal freelist in memarea.c.
20298       Allocators should be good enough to make this code unnecessary,
20299       and it's doubtful that it ever had any performance benefit.
20301   o Testing:
20302     - Fix several warnings from clang's address sanitizer produced in
20303       the unit tests.
20304     - Treat backtrace test failures as expected on FreeBSD until we
20305       solve bug 17808. Closes ticket 18204.
20308 Changes in version 0.2.8.1-alpha - 2016-02-04
20309   Tor 0.2.8.1-alpha is the first alpha release in its series. It
20310   includes numerous small features and bugfixes against previous Tor
20311   versions, and numerous small infrastructure improvements. The most
20312   notable features are a set of improvements to the directory subsystem.
20314   o Major features (security, Linux):
20315     - When Tor starts as root on Linux and is told to switch user ID, it
20316       can now retain the capability to bind to low ports. By default,
20317       Tor will do this only when it's switching user ID and some low
20318       ports have been configured. You can change this behavior with the
20319       new option KeepBindCapabilities. Closes ticket 8195.
20321   o Major features (directory system):
20322     - When bootstrapping multiple consensus downloads at a time, use the
20323       first one that starts downloading, and close the rest. This
20324       reduces failures when authorities or fallback directories are slow
20325       or down. Together with the code for feature 15775, this feature
20326       should reduces failures due to fallback churn. Implements ticket
20327       4483. Patch by "teor". Implements IPv4 portions of proposal 210 by
20328       "mikeperry" and "teor".
20329     - Include a trial list of 21 default fallback directories, generated
20330       in January 2016, based on an opt-in survey of suitable relays.
20331       Doing this should make clients bootstrap more quickly and reliably,
20332       and reduce the load on the directory authorities. Closes ticket
20333       15775. Patch by "teor".
20334       Candidates identified using an OnionOO script by "weasel", "teor",
20335       "gsathya", and "karsten".
20336     - Previously only relays that explicitly opened a directory port
20337       (DirPort) accepted directory requests from clients. Now all
20338       relays, with and without a DirPort, accept and serve tunneled
20339       directory requests that they receive through their ORPort. You can
20340       disable this behavior using the new DirCache option. Closes
20341       ticket 12538.
20343   o Major key updates:
20344     - Update the V3 identity key for the dannenberg directory authority:
20345       it was changed on 18 November 2015. Closes task 17906. Patch
20346       by "teor".
20348   o Minor features (security, clock):
20349     - Warn when the system clock appears to move back in time (when the
20350       state file was last written in the future). Tor doesn't know that
20351       consensuses have expired if the clock is in the past. Patch by
20352       "teor". Implements ticket 17188.
20354   o Minor features (security, exit policies):
20355     - ExitPolicyRejectPrivate now rejects more private addresses by
20356       default. Specifically, it now rejects the relay's outbound bind
20357       addresses (if configured), and the relay's configured port
20358       addresses (such as ORPort and DirPort). Fixes bug 17027; bugfix on
20359       0.2.0.11-alpha. Patch by "teor".
20361   o Minor features (security, memory erasure):
20362     - Set the unused entries in a smartlist to NULL. This helped catch
20363       a (harmless) bug, and shouldn't affect performance too much.
20364       Implements ticket 17026.
20365     - Use SecureMemoryWipe() function to securely clean memory on
20366       Windows. Previously we'd use OpenSSL's OPENSSL_cleanse() function.
20367       Implements feature 17986.
20368     - Use explicit_bzero or memset_s when present. Previously, we'd use
20369       OpenSSL's OPENSSL_cleanse() function. Closes ticket 7419; patches
20370       from <logan@hackers.mu> and <selven@hackers.mu>.
20371     - Make memwipe() do nothing when passed a NULL pointer or buffer of
20372       zero size. Check size argument to memwipe() for underflow. Fixes
20373       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
20374       patch by "teor".
20376   o Minor features (security, RNG):
20377     - Adjust Tor's use of OpenSSL's RNG APIs so that they absolutely,
20378       positively are not allowed to fail. Previously we depended on
20379       internal details of OpenSSL's behavior. Closes ticket 17686.
20380     - Never use the system entropy output directly for anything besides
20381       seeding the PRNG. When we want to generate important keys, instead
20382       of using system entropy directly, we now hash it with the PRNG
20383       stream. This may help resist certain attacks based on broken OS
20384       entropy implementations. Closes part of ticket 17694.
20385     - Use modern system calls (like getentropy() or getrandom()) to
20386       generate strong entropy on platforms that have them. Closes
20387       ticket 13696.
20389   o Minor features (accounting):
20390     - Added two modes to the AccountingRule option: One for limiting
20391       only the number of bytes sent ("AccountingRule out"), and one for
20392       limiting only the number of bytes received ("AccountingRule in").
20393       Closes ticket 15989; patch from "unixninja92".
20395   o Minor features (build):
20396     - Since our build process now uses "make distcheck", we no longer
20397       force "make dist" to depend on "make check". Closes ticket 17893;
20398       patch from "cypherpunks."
20399     - Tor now builds successfully with the recent OpenSSL 1.1
20400       development branch, and with the latest LibreSSL. Closes tickets
20401       17549, 17921, and 17984.
20403   o Minor features (controller):
20404     - Adds the FallbackDir entries to 'GETINFO config/defaults'. Closes
20405       tickets 16774 and 17817. Patch by George Tankersley.
20406     - New 'GETINFO hs/service/desc/id/' command to retrieve a hidden
20407       service descriptor from a service's local hidden service
20408       descriptor cache. Closes ticket 14846.
20409     - Add 'GETINFO exit-policy/reject-private/[default,relay]', so
20410       controllers can examine the the reject rules added by
20411       ExitPolicyRejectPrivate. This makes it easier for stem to display
20412       exit policies.
20414   o Minor features (crypto):
20415     - Add SHA512 support to crypto.c. Closes ticket 17663; patch from
20416       George Tankersley.
20417     - Add SHA3 and SHAKE support to crypto.c. Closes ticket 17783.
20418     - When allocating a digest state object, allocate no more space than
20419       we actually need. Previously, we would allocate as much space as
20420       the state for the largest algorithm would need. This change saves
20421       up to 672 bytes per circuit. Closes ticket 17796.
20422     - Improve performance when hashing non-multiple of 8 sized buffers,
20423       based on Andrew Moon's public domain SipHash-2-4 implementation.
20424       Fixes bug 17544; bugfix on 0.2.5.3-alpha.
20426   o Minor features (directory downloads):
20427     - Wait for busy authorities and fallback directories to become non-
20428       busy when bootstrapping. (A similar change was made in 6c443e987d
20429       for directory caches chosen from the consensus.) Closes ticket
20430       17864; patch by "teor".
20431     - Add UseDefaultFallbackDirs, which enables any hard-coded fallback
20432       directory mirrors. The default is 1; set it to 0 to disable
20433       fallbacks. Implements ticket 17576. Patch by "teor".
20435   o Minor features (geoip):
20436     - Update geoip and geoip6 to the January 5 2016 Maxmind GeoLite2
20437       Country database.
20439   o Minor features (IPv6):
20440     - Add an argument 'ipv6=address:orport' to the DirAuthority and
20441       FallbackDir torrc options, to specify an IPv6 address for an
20442       authority or fallback directory. Add hard-coded ipv6 addresses for
20443       directory authorities that have them. Closes ticket 17327; patch
20444       from Nick Mathewson and "teor".
20445     - Add address policy assume_action support for IPv6 addresses.
20446     - Limit IPv6 mask bits to 128.
20447     - Warn when comparing against an AF_UNSPEC address in a policy, it's
20448       almost always a bug. Closes ticket 17863; patch by "teor".
20449     - Allow users to configure directory authorities and fallback
20450       directory servers with IPv6 addresses and ORPorts. Resolves
20451       ticket 6027.
20452     - routerset_parse now accepts IPv6 literal addresses. Fixes bug
20453       17060; bugfix on 0.2.1.3-alpha. Patch by "teor".
20454     - Make tor_ersatz_socketpair work on IPv6-only systems. Fixes bug
20455       17638; bugfix on 0.0.2pre8. Patch by "teor".
20457   o Minor features (logging):
20458     - When logging to syslog, allow a tag to be added to the syslog
20459       identity (the string prepended to every log message). The tag can
20460       be configured with SyslogIdentityTag and defaults to none. Setting
20461       it to "foo" will cause logs to be tagged as "Tor-foo". Closes
20462       ticket 17194.
20464   o Minor features (portability):
20465     - Use timingsafe_memcmp() where available. Closes ticket 17944;
20466       patch from <logan@hackers.mu>.
20468   o Minor features (relay, address discovery):
20469     - Add a family argument to get_interface_addresses_raw() and
20470       subfunctions to make network interface address interogation more
20471       efficient. Now Tor can specifically ask for IPv4, IPv6 or both
20472       types of interfaces from the operating system. Resolves
20473       ticket 17950.
20474     - When get_interface_address6_list(.,AF_UNSPEC,.) is called and
20475       fails to enumerate interface addresses using the platform-specific
20476       API, have it rely on the UDP socket fallback technique to try and
20477       find out what IP addresses (both IPv4 and IPv6) our machine has.
20478       Resolves ticket 17951.
20480   o Minor features (replay cache):
20481     - The replay cache now uses SHA256 instead of SHA1. Implements
20482       feature 8961. Patch by "teor", issue reported by "rransom".
20484   o Minor features (unix file permissions):
20485     - Defer creation of Unix sockets until after setuid. This avoids
20486       needing CAP_CHOWN and CAP_FOWNER when using systemd's
20487       CapabilityBoundingSet, or chown and fowner when using SELinux.
20488       Implements part of ticket 17562. Patch from Jamie Nguyen.
20489     - If any directory created by Tor is marked as group readable, the
20490       filesystem group is allowed to be either the default GID or the
20491       root user. Allowing root to read the DataDirectory prevents the
20492       need for CAP_READ_SEARCH when using systemd's
20493       CapabilityBoundingSet, or dac_read_search when using SELinux.
20494       Implements part of ticket 17562. Patch from Jamie Nguyen.
20495     - Introduce a new DataDirectoryGroupReadable option. If it is set to
20496       1, the DataDirectory will be made readable by the default GID.
20497       Implements part of ticket 17562. Patch from Jamie Nguyen.
20499   o Minor bugfixes (accounting):
20500     - The max bandwidth when using 'AccountRule sum' is now correctly
20501       logged. Fixes bug 18024; bugfix on 0.2.6.1-alpha. Patch
20502       from "unixninja92".
20504   o Minor bugfixes (code correctness):
20505     - When closing an entry connection, generate a warning if we should
20506       have sent an end cell for it but we haven't. Fixes bug 17876;
20507       bugfix on 0.2.3.2-alpha.
20508     - Assert that allocated memory held by the reputation code is freed
20509       according to its internal counters. Fixes bug 17753; bugfix
20510       on 0.1.1.1-alpha.
20511     - Assert when the TLS contexts fail to initialize. Fixes bug 17683;
20512       bugfix on 0.0.6.
20514   o Minor bugfixes (compilation):
20515     - Mark all object files that include micro-revision.i as depending
20516       on it, so as to make parallel builds more reliable. Fixes bug
20517       17826; bugfix on 0.2.5.1-alpha.
20518     - Don't try to use the pthread_condattr_setclock() function unless
20519       it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug
20520       17819; bugfix on 0.2.6.3-alpha.
20521     - Fix backtrace compilation on FreeBSD. Fixes bug 17827; bugfix
20522       on 0.2.5.2-alpha.
20523     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
20524       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
20525     - Fix search for libevent libraries on OpenBSD (and other systems
20526       that install libevent 1 and libevent 2 in parallel). Fixes bug
20527       16651; bugfix on 0.1.0.7-rc. Patch from "rubiate".
20528     - Isolate environment variables meant for tests from the rest of the
20529       build system. Fixes bug 17818; bugfix on 0.2.7.3-rc.
20530     - Replace usage of 'INLINE' with 'inline'. Fixes bug 17804; bugfix
20531       on 0.0.2pre8.
20532     - Remove config.log only from make distclean, not from make clean.
20533       Fixes bug 17924; bugfix on 0.2.4.1-alpha.
20535   o Minor bugfixes (crypto):
20536     - Check the return value of HMAC() and assert on failure. Fixes bug
20537       17658; bugfix on 0.2.3.6-alpha. Patch by "teor".
20539   o Minor bugfixes (fallback directories):
20540     - Mark fallbacks as "too busy" when they return a 503 response,
20541       rather than just marking authorities. Fixes bug 17572; bugfix on
20542       0.2.4.7-alpha. Patch by "teor".
20544   o Minor bugfixes (IPv6):
20545     - Update the limits in max_dl_per_request for IPv6 address length.
20546       Fixes bug 17573; bugfix on 0.2.1.5-alpha.
20548   o Minor bugfixes (linux seccomp2 sandbox):
20549     - Fix a crash when using offline master ed25519 keys with the Linux
20550       seccomp2 sandbox enabled. Fixes bug 17675; bugfix on 0.2.7.3-rc.
20552   o Minor bugfixes (logging):
20553     - In log messages that include a function name, use __FUNCTION__
20554       instead of __PRETTY_FUNCTION__. In GCC, these are synonymous, but
20555       with clang __PRETTY_FUNCTION__ has extra information we don't
20556       need. Fixes bug 16563; bugfix on 0.0.2pre8. Fix by Tom van
20557       der Woerdt.
20558     - Remove needless quotes from a log message about unparseable
20559       addresses. Fixes bug 17843; bugfix on 0.2.3.3-alpha.
20561   o Minor bugfixes (portability):
20562     - Remove an #endif from configure.ac so that we correctly detect the
20563       presence of in6_addr.s6_addr32. Fixes bug 17923; bugfix
20564       on 0.2.0.13-alpha.
20566   o Minor bugfixes (relays):
20567     - Check that both the ORPort and DirPort (if present) are reachable
20568       before publishing a relay descriptor. Otherwise, relays publish a
20569       descriptor with DirPort 0 when the DirPort reachability test takes
20570       longer than the ORPort reachability test. Fixes bug 18050; bugfix
20571       on 0.1.0.1-rc. Reported by "starlight", patch by "teor".
20573   o Minor bugfixes (relays, hidden services):
20574     - Refuse connection requests to private OR addresses unless
20575       ExtendAllowPrivateAddresses is set. Previously, tor would connect,
20576       then refuse to send any cells to a private address. Fixes bugs
20577       17674 and 8976; bugfix on 0.2.3.21-rc. Patch by "teor".
20579   o Minor bugfixes (safe logging):
20580     - When logging a malformed hostname received through socks4, scrub
20581       it if SafeLogging says we should. Fixes bug 17419; bugfix
20582       on 0.1.1.16-rc.
20584   o Minor bugfixes (statistics code):
20585     - Consistently check for overflow in round_*_to_next_multiple_of
20586       functions, and add unit tests with additional and maximal values.
20587       Fixes part of bug 13192; bugfix on 0.2.2.1-alpha.
20588     - Handle edge cases in the laplace functions: avoid division by
20589       zero, avoid taking the log of zero, and silence clang type
20590       conversion warnings using round and trunc. Add unit tests for edge
20591       cases with maximal values. Fixes part of bug 13192; bugfix
20592       on 0.2.6.2-alpha.
20594   o Minor bugfixes (testing):
20595     - The test for log_heartbeat was incorrectly failing in timezones
20596       with non-integer offsets. Instead of comparing the end of the time
20597       string against a constant, compare it to the output of
20598       format_local_iso_time when given the correct input. Fixes bug
20599       18039; bugfix on 0.2.5.4-alpha.
20600     - Make unit tests pass on IPv6-only systems, and systems without
20601       localhost addresses (like some FreeBSD jails). Fixes bug 17632;
20602       bugfix on 0.2.7.3-rc. Patch by "teor".
20603     - Fix a memory leak in the ntor test. Fixes bug 17778; bugfix
20604       on 0.2.4.8-alpha.
20605     - Check the full results of SHA256 and SHA512 digests in the unit
20606       tests. Bugfix on 0.2.2.4-alpha. Patch by "teor".
20608   o Code simplification and refactoring:
20609     - Move logging of redundant policy entries in
20610       policies_parse_exit_policy_internal into its own function. Closes
20611       ticket 17608; patch from "juce".
20612     - Extract the more complicated parts of circuit_mark_for_close()
20613       into a new function that we run periodically before circuits are
20614       freed. This change removes more than half of the functions
20615       currently in the "blob". Closes ticket 17218.
20616     - Clean up a little duplicated code in
20617       crypto_expand_key_material_TAP(). Closes ticket 17587; patch
20618       from "pfrankw".
20619     - Decouple the list of streams waiting to be attached to circuits
20620       from the overall connection list. This change makes it possible to
20621       attach streams quickly while simplifying Tor's callgraph and
20622       avoiding O(N) scans of the entire connection list. Closes
20623       ticket 17590.
20624     - When a direct directory request fails immediately on launch,
20625       instead of relaunching that request from inside the code that
20626       launches it, instead mark the connection for teardown. This change
20627       simplifies Tor's callback and prevents the directory-request
20628       launching code from invoking itself recursively. Closes
20629       ticket 17589
20630     - Remove code for configuring OpenSSL dynamic locks; OpenSSL doesn't
20631       use them. Closes ticket 17926.
20633   o Documentation:
20634     - Add a description of the correct use of the '--keygen' command-
20635       line option. Closes ticket 17583; based on text by 's7r'.
20636     - Document the minimum HeartbeatPeriod value. Closes ticket 15638.
20637     - Explain actual minima for BandwidthRate. Closes ticket 16382.
20638     - Fix a minor formatting typo in the manpage. Closes ticket 17791.
20639     - Mention torspec URL in the manpage and point the reader to it
20640       whenever we mention a document that belongs in torspce. Fixes
20641       issue 17392.
20643   o Removed features:
20644     - Remove client-side support for connecting to Tor relays running
20645       versions of Tor before 0.2.3.6-alpha. These relays didn't support
20646       the v3 TLS handshake protocol, and are no longer allowed on the
20647       Tor network. Implements the client side of ticket 11150. Based on
20648       patches by Tom van der Woerdt.
20650   o Testing:
20651     - Add unit tests to check for common RNG failure modes, such as
20652       returning all zeroes, identical values, or incrementing values
20653       (OpenSSL's rand_predictable feature). Patch by "teor".
20654     - Log more information when the backtrace tests fail. Closes ticket
20655       17892. Patch from "cypherpunks."
20656     - Always test both ed25519 backends, so that we can be sure that our
20657       batch-open replacement code works. Part of ticket 16794.
20658     - Cover dns_resolve_impl() in dns.c with unit tests. Implements a
20659       portion of ticket 16831.
20660     - More unit tests for compat_libevent.c, procmon.c, tortls.c,
20661       util_format.c, directory.c, and options_validate.c. Closes tickets
20662       17075, 17082, 17084, 17003, and 17076 respectively. Patches from
20663       Ola Bini.
20664     - Unit tests for directory_handle_command_get. Closes ticket 17004.
20665       Patch from Reinaldo de Souza Jr.
20668 Changes in version 0.2.7.6 - 2015-12-10
20669   Tor version 0.2.7.6 fixes a major bug in entry guard selection, as
20670   well as a minor bug in hidden service reliability.
20672   o Major bugfixes (guard selection):
20673     - Actually look at the Guard flag when selecting a new directory
20674       guard. When we implemented the directory guard design, we
20675       accidentally started treating all relays as if they have the Guard
20676       flag during guard selection, leading to weaker anonymity and worse
20677       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
20678       by Mohsen Imani.
20680   o Minor features (geoip):
20681     - Update geoip and geoip6 to the December 1 2015 Maxmind GeoLite2
20682       Country database.
20684   o Minor bugfixes (compilation):
20685     - When checking for net/pfvar.h, include netinet/in.h if possible.
20686       This fixes transparent proxy detection on OpenBSD. Fixes bug
20687       17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate".
20688     - Fix a compilation warning with Clang 3.6: Do not check the
20689       presence of an address which can never be NULL. Fixes bug 17781.
20691   o Minor bugfixes (correctness):
20692     - When displaying an IPv6 exit policy, include the mask bits
20693       correctly even when the number is greater than 31. Fixes bug
20694       16056; bugfix on 0.2.4.7-alpha. Patch from "gturner".
20695     - The wrong list was used when looking up expired intro points in a
20696       rend service object, causing what we think could be reachability
20697       issues for hidden services, and triggering a BUG log. Fixes bug
20698       16702; bugfix on 0.2.7.2-alpha.
20699     - Fix undefined behavior in the tor_cert_checksig function. Fixes
20700       bug 17722; bugfix on 0.2.7.2-alpha.
20703 Changes in version 0.2.7.5 - 2015-11-20
20704   The Tor 0.2.7 release series is dedicated to the memory of Tor user
20705   and privacy advocate Caspar Bowden (1961-2015). Caspar worked
20706   tirelessly to advocate human rights regardless of national borders,
20707   and oppose the encroachments of mass surveillance. He opposed national
20708   exceptionalism, he brought clarity to legal and policy debates, he
20709   understood and predicted the impact of mass surveillance on the world,
20710   and he laid the groundwork for resisting it. While serving on the Tor
20711   Project's board of directors, he brought us his uncompromising focus
20712   on technical excellence in the service of humankind. Caspar was an
20713   inimitable force for good and a wonderful friend. He was kind,
20714   humorous, generous, gallant, and believed we should protect one
20715   another without exception. We honor him here for his ideals, his
20716   efforts, and his accomplishments. Please honor his memory with works
20717   that would make him proud.
20719   Tor 0.2.7.5 is the first stable release in the Tor 0.2.7 series.
20721   The 0.2.7 series adds a more secure identity key type for relays,
20722   improves cryptography performance, resolves several longstanding
20723   hidden-service performance issues, improves controller support for
20724   hidden services, and includes small bugfixes and performance
20725   improvements throughout the program. This release series also includes
20726   more tests than before, and significant simplifications to which parts
20727   of Tor invoke which others.
20729   (This release contains no code changes since 0.2.7.4-rc.)
20732 Changes in version 0.2.7.4-rc - 2015-10-21
20733   Tor 0.2.7.4-rc is the second release candidate in the 0.2.7 series. It
20734   fixes some important memory leaks, and a scary-looking (but mostly
20735   harmless in practice) invalid-read bug. It also has a few small
20736   bugfixes, notably fixes for compilation and portability on different
20737   platforms. If no further significant bounds are found, the next
20738   release will the the official stable release.
20740   o Major bugfixes (security, correctness):
20741     - Fix an error that could cause us to read 4 bytes before the
20742       beginning of an openssl string. This bug could be used to cause
20743       Tor to crash on systems with unusual malloc implementations, or
20744       systems with unusual hardening installed. Fixes bug 17404; bugfix
20745       on 0.2.3.6-alpha.
20747   o Major bugfixes (correctness):
20748     - Fix a use-after-free bug in validate_intro_point_failure(). Fixes
20749       bug 17401; bugfix on 0.2.7.3-rc.
20751   o Major bugfixes (memory leaks):
20752     - Fix a memory leak in ed25519 batch signature checking. Fixes bug
20753       17398; bugfix on 0.2.6.1-alpha.
20754     - Fix a memory leak in rend_cache_failure_entry_free(). Fixes bug
20755       17402; bugfix on 0.2.7.3-rc.
20756     - Fix a memory leak when reading an expired signing key from disk.
20757       Fixes bug 17403; bugfix on 0.2.7.2-rc.
20759   o Minor features (geoIP):
20760     - Update geoip and geoip6 to the October 9 2015 Maxmind GeoLite2
20761       Country database.
20763   o Minor bugfixes (compilation):
20764     - Repair compilation with the most recent (unreleased, alpha)
20765       vesions of OpenSSL 1.1. Fixes part of ticket 17237.
20766     - Fix an integer overflow warning in test_crypto_slow.c. Fixes bug
20767       17251; bugfix on 0.2.7.2-alpha.
20768     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
20769       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
20771   o Minor bugfixes (portability):
20772     - Use libexecinfo on FreeBSD to enable backtrace support. Fixes
20773       part of bug 17151; bugfix on 0.2.5.2-alpha. Patch from
20774       Marcin Cieślak.
20776   o Minor bugfixes (sandbox):
20777     - Add the "hidserv-stats" filename to our sandbox filter for the
20778       HiddenServiceStatistics option to work properly. Fixes bug 17354;
20779       bugfix on 0.2.6.2-alpha. Patch from David Goulet.
20781   o Minor bugfixes (testing):
20782     - Add unit tests for get_interface_address* failure cases. Fixes bug
20783       17173; bugfix on 0.2.7.3-rc. Patch by fk/teor.
20784     - Fix breakage when running 'make check' with BSD make. Fixes bug
20785       17154; bugfix on 0.2.7.3-rc. Patch by Marcin Cieślak.
20786     - Make the get_ifaddrs_* unit tests more tolerant of different
20787       network configurations. (Don't assume every test box has an IPv4
20788       address, and don't assume every test box has a non-localhost
20789       address.) Fixes bug 17255; bugfix on 0.2.7.3-rc. Patch by "teor".
20790     - Skip backtrace tests when backtrace support is not compiled in.
20791       Fixes part of bug 17151; bugfix on 0.2.7.1-alpha. Patch from
20792       Marcin Cieślak.
20794   o Documentation:
20795     - Fix capitalization of SOCKS in sample torrc. Closes ticket 15609.
20796     - Note that HiddenServicePorts can take a unix domain socket. Closes
20797       ticket 17364.
20800 Changes in version 0.2.7.3-rc - 2015-09-25
20801   Tor 0.2.7.3-rc is the first release candidate in the 0.2.7 series. It
20802   contains numerous usability fixes for Ed25519 keys, safeguards against
20803   several misconfiguration problems, significant simplifications to
20804   Tor's callgraph, and numerous bugfixes and small features.
20806   This is the most tested release of Tor to date. The unit tests cover
20807   39.40% of the code, and the integration tests (accessible with "make
20808   test-full-online", requiring stem and chutney and a network
20809   connection) raise the coverage to 64.49%.
20811   o Major features (security, hidden services):
20812     - Hidden services, if using the EntryNodes option, are required to
20813       use more than one EntryNode, in order to avoid a guard discovery
20814       attack. (This would only affect people who had configured hidden
20815       services and manually specified the EntryNodes option with a
20816       single entry-node. The impact was that it would be easy to
20817       remotely identify the guard node used by such a hidden service.
20818       See ticket for more information.) Fixes ticket 14917.
20820   o Major features (Ed25519 keys, keypinning):
20821     - The key-pinning option on directory authorities is now advisory-
20822       only by default. In a future version, or when the AuthDirPinKeys
20823       option is set, pins are enforced again. Disabling key-pinning
20824       seemed like a good idea so that we can survive the fallout of any
20825       usability problems associated with Ed25519 keys. Closes
20826       ticket 17135.
20828   o Major features (Ed25519 performance):
20829     - Improve the speed of Ed25519 operations and Curve25519 keypair
20830       generation when built targeting 32 bit x86 platforms with SSE2
20831       available. Implements ticket 16535.
20832     - Improve the runtime speed of Ed25519 signature verification by
20833       using Ed25519-donna's batch verification support. Implements
20834       ticket 16533.
20836   o Major features (performance testing):
20837     - The test-network.sh script now supports performance testing.
20838       Requires corresponding chutney performance testing changes. Patch
20839       by "teor". Closes ticket 14175.
20841   o Major features (relay, Ed25519):
20842     - Significant usability improvements for Ed25519 key management. Log
20843       messages are better, and the code can recover from far more
20844       failure conditions. Thanks to "s7r" for reporting and diagnosing
20845       so many of these!
20846     - Add a new OfflineMasterKey option to tell Tor never to try loading
20847       or generating a secret Ed25519 identity key. You can use this in
20848       combination with tor --keygen to manage offline and/or encrypted
20849       Ed25519 keys. Implements ticket 16944.
20850     - Add a --newpass option to allow changing or removing the
20851       passphrase of an encrypted key with tor --keygen. Implements part
20852       of ticket 16769.
20853     - On receiving a HUP signal, check to see whether the Ed25519
20854       signing key has changed, and reload it if so. Closes ticket 16790.
20856   o Major bugfixes (relay, Ed25519):
20857     - Avoid crashing on 'tor --keygen'. Fixes bug 16679; bugfix on
20858       0.2.7.2-alpha. Reported by "s7r".
20859     - Improve handling of expired signing keys with offline master keys.
20860       Fixes bug 16685; bugfix on 0.2.7.2-alpha. Reported by "s7r".
20862   o Minor features (client-side privacy):
20863     - New KeepAliveIsolateSOCKSAuth option to indefinitely extend circuit
20864       lifespan when IsolateSOCKSAuth and streams with SOCKS
20865       authentication are attached to the circuit. This allows
20866       applications like TorBrowser to manage circuit lifetime on their
20867       own. Implements feature 15482.
20868     - When logging malformed hostnames from SOCKS5 requests, respect
20869       SafeLogging configuration. Fixes bug 16891; bugfix on 0.1.1.16-rc.
20871   o Minor features (compilation):
20872     - Give a warning as early as possible when trying to build with an
20873       unsupported OpenSSL version. Closes ticket 16901.
20874     - Fail during configure if we're trying to build against an OpenSSL
20875       built without ECC support. Fixes bug 17109, bugfix on 0.2.7.1-alpha
20876       which started requiring ECC.
20878   o Minor features (geoip):
20879     - Update geoip and geoip6 to the September 3 2015 Maxmind GeoLite2
20880       Country database.
20882   o Minor features (hidden services):
20883     - Relays need to have the Fast flag to get the HSDir flag. As this
20884       is being written, we'll go from 2745 HSDirs down to 2342, a ~14%
20885       drop. This change should make some attacks against the hidden
20886       service directory system harder. Fixes ticket 15963.
20887     - Turn on hidden service statistics collection by setting the torrc
20888       option HiddenServiceStatistics to "1" by default. (This keeps
20889       track only of the fraction of traffic used by hidden services, and
20890       the total number of hidden services in existence.) Closes
20891       ticket 15254.
20892     - Client now uses an introduction point failure cache to know when
20893       to fetch or keep a descriptor in their cache. Previously, failures
20894       were recorded implicitly, but not explicitly remembered. Closes
20895       ticket 16389.
20897   o Minor features (testing, authorities, documentation):
20898     - New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags to
20899       explicitly manage consensus flags in testing networks. Patch by
20900       "robgjansen", modified by "teor". Implements part of ticket 14882.
20902   o Minor bugfixes (security, exit policies):
20903     - ExitPolicyRejectPrivate now also rejects the relay's published
20904       IPv6 address (if any), and any publicly routable IPv4 or IPv6
20905       addresses on any local interfaces. ticket 17027. Patch by "teor".
20906       Fixes bug 17027; bugfix on 0.2.0.11-alpha.
20908   o Minor bug fixes (torrc exit policies):
20909     - In torrc, "accept6 *" and "reject6 *" ExitPolicy lines now only
20910       produce IPv6 wildcard addresses. Previously they would produce
20911       both IPv4 and IPv6 wildcard addresses. Patch by "teor". Fixes part
20912       of bug 16069; bugfix on 0.2.4.7-alpha.
20913     - When parsing torrc ExitPolicies, we now warn for a number of cases
20914       where the user's intent is likely to differ from Tor's actual
20915       behavior. These include: using an IPv4 address with an accept6 or
20916       reject6 line; using "private" on an accept6 or reject6 line; and
20917       including any ExitPolicy lines after accept *:* or reject *:*.
20918       Related to ticket 16069.
20919     - When parsing torrc ExitPolicies, we now issue an info-level
20920       message when expanding an "accept/reject *" line to include both
20921       IPv4 and IPv6 wildcard addresses. Related to ticket 16069.
20922     - In each instance above, usage advice is provided to avoid the
20923       message. Resolves ticket 16069. Patch by "teor". Fixes part of bug
20924       16069; bugfix on 0.2.4.7-alpha.
20926   o Minor bugfixes (authority):
20927     - Don't assign "HSDir" to a router if it isn't Valid and Running.
20928       Fixes bug 16524; bugfix on 0.2.7.2-alpha.
20929     - Downgrade log messages about Ed25519 key issues if they are in old
20930       cached router descriptors. Fixes part of bug 16286; bugfix
20931       on 0.2.7.2-alpha.
20932     - When we find an Ed25519 key issue in a cached descriptor, stop
20933       saying the descriptor was just "uploaded". Fixes another part of
20934       bug 16286; bugfix on 0.2.7.2-alpha.
20936   o Minor bugfixes (control port):
20937     - Repair a warning and a spurious result when getting the maximum
20938       number of file descriptors from the controller. Fixes bug 16697;
20939       bugfix on 0.2.7.2-alpha.
20941   o Minor bugfixes (correctness):
20942     - When calling channel_free_list(), avoid calling smartlist_remove()
20943       while inside a FOREACH loop. This partially reverts commit
20944       17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was
20945       incorrectly removed. Fixes bug 16924; bugfix on 0.2.4.4-alpha.
20947   o Minor bugfixes (documentation):
20948     - Advise users on how to configure separate IPv4 and IPv6 exit
20949       policies in the manpage and sample torrcs. Related to ticket 16069.
20950     - Fix the usage message of tor-resolve(1) so that it no longer lists
20951       the removed -F option. Fixes bug 16913; bugfix on 0.2.2.28-beta.
20952     - Fix an error in the manual page and comments for
20953       TestingDirAuthVoteHSDir[IsStrict], which suggested that a HSDir
20954       required "ORPort connectivity". While this is true, it is in no
20955       way unique to the HSDir flag. Of all the flags, only HSDirs need a
20956       DirPort configured in order for the authorities to assign that
20957       particular flag. Patch by "teor". Fixed as part of 14882; bugfix
20958       on 0.2.6.3-alpha.
20960   o Minor bugfixes (Ed25519):
20961     - Fix a memory leak when reading router descriptors with expired
20962       Ed25519 certificates. Fixes bug 16539; bugfix on 0.2.7.2-alpha.
20964   o Minor bugfixes (linux seccomp2 sandbox):
20965     - Allow bridge authorities to run correctly under the seccomp2
20966       sandbox. Fixes bug 16964; bugfix on 0.2.5.1-alpha.
20967     - Allow routers with ed25519 keys to run correctly under the
20968       seccomp2 sandbox. Fixes bug 16965; bugfix on 0.2.7.2-alpha.
20970   o Minor bugfixes (open file limit):
20971     - Fix set_max_file_descriptors() to set by default the max open file
20972       limit to the current limit when setrlimit() fails. Fixes bug
20973       16274; bugfix on 0.2.0.10-alpha. Patch by dgoulet.
20975   o Minor bugfixes (portability):
20976     - Try harder to normalize the exit status of the Tor process to the
20977       standard-provided range. Fixes bug 16975; bugfix on every version
20978       of Tor ever.
20979     - Check correctly for Windows socket errors in the workqueue
20980       backend. Fixes bug 16741; bugfix on 0.2.6.3-alpha.
20981     - Fix the behavior of crypto_rand_time_range() when told to consider
20982       times before 1970. (These times were possible when running in a
20983       simulated network environment where time()'s output starts at
20984       zero.) Fixes bug 16980; bugfix on 0.2.7.1-alpha.
20985     - Restore correct operation of TLS client-cipher detection on
20986       OpenSSL 1.1. Fixes bug 14047; bugfix on 0.2.7.2-alpha.
20988   o Minor bugfixes (relay):
20989     - Ensure that worker threads actually exit when a fatal error or
20990       shutdown is indicated. This fix doesn't currently affect the
20991       behavior of Tor, because Tor workers never indicates fatal error
20992       or shutdown except in the unit tests. Fixes bug 16868; bugfix
20993       on 0.2.6.3-alpha.
20994     - Unblock threads before releasing the work queue mutex to ensure
20995       predictable scheduling behavior. Fixes bug 16644; bugfix
20996       on 0.2.6.3-alpha.
20998   o Code simplification and refactoring:
20999     - Change the function that's called when we need to retry all
21000       downloads so that it only reschedules the downloads to happen
21001       immediately, rather than launching them all at once itself. This
21002       further simplifies Tor's callgraph.
21003     - Move some format-parsing functions out of crypto.c and
21004       crypto_curve25519.c into crypto_format.c and/or util_format.c.
21005     - Move the client-only parts of init_keys() into a separate
21006       function. Closes ticket 16763.
21007     - Simplify the microdesc_free() implementation so that it no longer
21008       appears (to code analysis tools) to potentially invoke a huge
21009       suite of other microdesc functions.
21010     - Simply the control graph further by deferring the inner body of
21011       directory_all_unreachable() into a callback. Closes ticket 16762.
21012     - Treat the loss of an owning controller as equivalent to a SIGTERM
21013       signal. This removes a tiny amount of duplicated code, and
21014       simplifies our callgraph. Closes ticket 16788.
21015     - When generating an event to send to the controller, we no longer
21016       put the event over the network immediately. Instead, we queue
21017       these events, and use a Libevent callback to deliver them. This
21018       change simplifies Tor's callgraph by reducing the number of
21019       functions from which all other Tor functions are reachable. Closes
21020       ticket 16695.
21021     - Wrap Windows-only C files inside '#ifdef _WIN32' so that tools
21022       that try to scan or compile every file on Unix won't decide that
21023       they are broken.
21024     - Remove the unused "nulterminate" argument from buf_pullup().
21026   o Documentation:
21027     - Recommend a 40 GB example AccountingMax in torrc.sample rather
21028       than a 4 GB max. Closes ticket 16742.
21029     - Include the TUNING document in our source tarball. It is referred
21030       to in the ChangeLog and an error message. Fixes bug 16929; bugfix
21031       on 0.2.6.1-alpha.
21033   o Removed code:
21034     - The internal pure-C tor-fw-helper tool is now removed from the Tor
21035       distribution, in favor of the pure-Go clone available from
21036       https://gitweb.torproject.org/tor-fw-helper.git/ . The libraries
21037       used by the C tor-fw-helper are not, in our opinion, very
21038       confidence- inspiring in their secure-programming techniques.
21039       Closes ticket 13338.
21040     - Remove the code that would try to aggressively flush controller
21041       connections while writing to them. This code was introduced in
21042       0.1.2.7-alpha, in order to keep output buffers from exceeding
21043       their limits. But there is no longer a maximum output buffer size,
21044       and flushing data in this way caused some undesirable recursions
21045       in our call graph. Closes ticket 16480.
21047   o Testing:
21048     - Make "bridges+hs" the default test network. This tests almost all
21049       tor functionality during make test-network, while allowing tests
21050       to succeed on non-IPv6 systems. Requires chutney commit 396da92 in
21051       test-network-bridges-hs. Closes tickets 16945 (tor) and 16946
21052       (chutney). Patches by "teor".
21053     - Autodetect CHUTNEY_PATH if the chutney and Tor sources are side-
21054       by-side in the same parent directory. Closes ticket 16903. Patch
21055       by "teor".
21056     - Use environment variables rather than autoconf substitutions to
21057       send variables from the build system to the test scripts. This
21058       change should be easier to maintain, and cause 'make distcheck' to
21059       work better than before. Fixes bug 17148.
21060     - Add a new set of callgraph analysis scripts that use clang to
21061       produce a list of which Tor functions are reachable from which
21062       other Tor functions. We're planning to use these to help simplify
21063       our code structure by identifying illogical dependencies.
21064     - Add new 'test-full' and 'test-full-online' targets to run all
21065       tests, including integration tests with stem and chutney.
21066     - Make the test-workqueue test work on Windows by initializing the
21067       network before we begin.
21068     - New make target (make test-network-all) to run multiple applicable
21069       chutney test cases. Patch from Teor; closes 16953.
21070     - Unit test dns_resolve(), dns_clip_ttl() and dns_get_expiry_ttl()
21071       functions in dns.c. Implements a portion of ticket 16831.
21072     - When building Tor with testing coverage enabled, run Chutney tests
21073       (if any) using the 'tor-cov' coverage binary.
21074     - When running test-network or test-stem, check for the absence of
21075       stem/chutney before doing any build operations.
21078 Changes in version 0.2.7.2-alpha - 2015-07-27
21079   This, the second alpha in the Tor 0.2.7 series, has a number of new
21080   features, including a way to manually pick the number of introduction
21081   points for hidden services, and the much stronger Ed25519 signing key
21082   algorithm for regular Tor relays (including support for encrypted
21083   offline identity keys in the new algorithm).
21085   Support for Ed25519 on relays is currently limited to signing router
21086   descriptors; later alphas in this series will extend Ed25519 key
21087   support to more parts of the Tor protocol.
21089   o Major features (Ed25519 identity keys, Proposal 220):
21090     - All relays now maintain a stronger identity key, using the Ed25519
21091       elliptic curve signature format. This master key is designed so
21092       that it can be kept offline. Relays also generate an online
21093       signing key, and a set of other Ed25519 keys and certificates.
21094       These are all automatically regenerated and rotated as needed.
21095       Implements part of ticket 12498.
21096     - Directory authorities now vote on Ed25519 identity keys along with
21097       RSA1024 keys. Implements part of ticket 12498.
21098     - Directory authorities track which Ed25519 identity keys have been
21099       used with which RSA1024 identity keys, and do not allow them to
21100       vary freely. Implements part of ticket 12498.
21101     - Microdescriptors now include Ed25519 identity keys. Implements
21102       part of ticket 12498.
21103     - Add support for offline encrypted Ed25519 master keys. To use this
21104       feature on your tor relay, run "tor --keygen" to make a new master
21105       key (or to make a new signing key if you already have a master
21106       key). Closes ticket 13642.
21108   o Major features (Hidden services):
21109     - Add the torrc option HiddenServiceNumIntroductionPoints, to
21110       specify a fixed number of introduction points. Its maximum value
21111       is 10 and default is 3. Using this option can increase a hidden
21112       service's reliability under load, at the cost of making it more
21113       visible that the hidden service is facing extra load. Closes
21114       ticket 4862.
21115     - Remove the adaptive algorithm for choosing the number of
21116       introduction points, which used to change the number of
21117       introduction points (poorly) depending on the number of
21118       connections the HS sees. Closes ticket 4862.
21120   o Major features (onion key cross-certification):
21121     - Relay descriptors now include signatures of their own identity
21122       keys, made using the TAP and ntor onion keys. These signatures
21123       allow relays to prove ownership of their own onion keys. Because
21124       of this change, microdescriptors will no longer need to include
21125       RSA identity keys. Implements proposal 228; closes ticket 12499.
21127   o Major features (performance):
21128     - Improve the runtime speed of Ed25519 operations by using the
21129       public-domain Ed25519-donna by Andrew M. ("floodyberry").
21130       Implements ticket 16467.
21131     - Improve the runtime speed of the ntor handshake by using an
21132       optimized curve25519 basepoint scalarmult implementation from the
21133       public-domain Ed25519-donna by Andrew M. ("floodyberry"), based on
21134       ideas by Adam Langley. Implements ticket 9663.
21136   o Major bugfixes (client-side privacy, also in 0.2.6.9):
21137     - Properly separate out each SOCKSPort when applying stream
21138       isolation. The error occurred because each port's session group
21139       was being overwritten by a default value when the listener
21140       connection was initialized. Fixes bug 16247; bugfix on
21141       0.2.6.3-alpha. Patch by "jojelino".
21143   o Major bugfixes (hidden service clients, stability, also in 0.2.6.10):
21144     - Stop refusing to store updated hidden service descriptors on a
21145       client. This reverts commit 9407040c59218 (which indeed fixed bug
21146       14219, but introduced a major hidden service reachability
21147       regression detailed in bug 16381). This is a temporary fix since
21148       we can live with the minor issue in bug 14219 (it just results in
21149       some load on the network) but the regression of 16381 is too much
21150       of a setback. First-round fix for bug 16381; bugfix
21151       on 0.2.6.3-alpha.
21153   o Major bugfixes (hidden services):
21154     - When cannibalizing a circuit for an introduction point, always
21155       extend to the chosen exit node (creating a 4 hop circuit).
21156       Previously Tor would use the current circuit exit node, which
21157       changed the original choice of introduction point, and could cause
21158       the hidden service to skip excluded introduction points or
21159       reconnect to a skipped introduction point. Fixes bug 16260; bugfix
21160       on 0.1.0.1-rc.
21162   o Major bugfixes (open file limit):
21163     - The open file limit wasn't checked before calling
21164       tor_accept_socket_nonblocking(), which would make Tor exceed the
21165       limit. Now, before opening a new socket, Tor validates the open
21166       file limit just before, and if the max has been reached, return an
21167       error. Fixes bug 16288; bugfix on 0.1.1.1-alpha.
21169   o Major bugfixes (stability, also in 0.2.6.10):
21170     - Stop crashing with an assertion failure when parsing certain kinds
21171       of malformed or truncated microdescriptors. Fixes bug 16400;
21172       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
21173       by "cypherpunks_backup".
21174     - Stop random client-side assertion failures that could occur when
21175       connecting to a busy hidden service, or connecting to a hidden
21176       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
21177       on 0.1.0.1-rc.
21179   o Minor features (directory authorities, security, also in 0.2.6.9):
21180     - The HSDir flag given by authorities now requires the Stable flag.
21181       For the current network, this results in going from 2887 to 2806
21182       HSDirs. Also, it makes it harder for an attacker to launch a sybil
21183       attack by raising the effort for a relay to become Stable to
21184       require at the very least 7 days, while maintaining the 96 hours
21185       uptime requirement for HSDir. Implements ticket 8243.
21187   o Minor features (client):
21188     - Relax the validation of hostnames in SOCKS5 requests, allowing the
21189       character '_' to appear, in order to cope with domains observed in
21190       the wild that are serving non-RFC compliant records. Resolves
21191       ticket 16430.
21192     - Relax the validation done to hostnames in SOCKS5 requests, and
21193       allow a single trailing '.' to cope with clients that pass FQDNs
21194       using that syntax to explicitly indicate that the domain name is
21195       fully-qualified. Fixes bug 16674; bugfix on 0.2.6.2-alpha.
21196     - Add GroupWritable and WorldWritable options to unix-socket based
21197       SocksPort and ControlPort options. These options apply to a single
21198       socket, and override {Control,Socks}SocketsGroupWritable. Closes
21199       ticket 15220.
21201   o Minor features (control protocol):
21202     - Support network-liveness GETINFO key and NETWORK_LIVENESS event in
21203       the control protocol. Resolves ticket 15358.
21205   o Minor features (directory authorities):
21206     - Directory authorities no longer vote against the "Fast", "Stable",
21207       and "HSDir" flags just because they were going to vote against
21208       "Running": if the consensus turns out to be that the router was
21209       running, then the authority's vote should count. Patch from Peter
21210       Retzlaff; closes issue 8712.
21212   o Minor features (geoip, also in 0.2.6.10):
21213     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
21214     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
21216   o Minor features (hidden services):
21217     - Add the new options "HiddenServiceMaxStreams" and
21218       "HiddenServiceMaxStreamsCloseCircuit" to allow hidden services to
21219       limit the maximum number of simultaneous streams per circuit, and
21220       optionally tear down the circuit when the limit is exceeded. Part
21221       of ticket 16052.
21223   o Minor features (portability):
21224     - Use C99 variadic macros when the compiler is not GCC. This avoids
21225       failing compilations on MSVC, and fixes a log-file-based race
21226       condition in our old workarounds. Original patch from Gisle Vanem.
21228   o Minor bugfixes (compilation, also in 0.2.6.9):
21229     - Build with --enable-systemd correctly when libsystemd is
21230       installed, but systemd is not. Fixes bug 16164; bugfix on
21231       0.2.6.3-alpha. Patch from Peter Palfrader.
21233   o Minor bugfixes (controller):
21234     - Add the descriptor ID in each HS_DESC control event. It was
21235       missing, but specified in control-spec.txt. Fixes bug 15881;
21236       bugfix on 0.2.5.2-alpha.
21238   o Minor bugfixes (crypto error-handling, also in 0.2.6.10):
21239     - Check for failures from crypto_early_init, and refuse to continue.
21240       A previous typo meant that we could keep going with an
21241       uninitialized crypto library, and would have OpenSSL initialize
21242       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
21243       when implementing ticket 4900. Patch by "teor".
21245   o Minor bugfixes (hidden services):
21246     - Fix a crash when reloading configuration while at least one
21247       configured and one ephemeral hidden service exists. Fixes bug
21248       16060; bugfix on 0.2.7.1-alpha.
21249     - Avoid crashing with a double-free bug when we create an ephemeral
21250       hidden service but adding it fails for some reason. Fixes bug
21251       16228; bugfix on 0.2.7.1-alpha.
21253   o Minor bugfixes (Linux seccomp2 sandbox):
21254     - Use the sandbox in tor_open_cloexec whether or not O_CLOEXEC is
21255       defined. Patch by "teor". Fixes bug 16515; bugfix on 0.2.3.1-alpha.
21257   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.10):
21258     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
21259       these when eventfd2() support is missing. Fixes bug 16363; bugfix
21260       on 0.2.6.3-alpha. Patch from "teor".
21262   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.9):
21263     - Fix sandboxing to work when running as a relay, by allowing the
21264       renaming of secret_id_key, and allowing the eventfd2 and futex
21265       syscalls. Fixes bug 16244; bugfix on 0.2.6.1-alpha. Patch by
21266       Peter Palfrader.
21267     - Allow systemd connections to work with the Linux seccomp2 sandbox
21268       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
21269       Peter Palfrader.
21271   o Minor bugfixes (relay):
21272     - Fix a rarely-encountered memory leak when failing to initialize
21273       the thread pool. Fixes bug 16631; bugfix on 0.2.6.3-alpha. Patch
21274       from "cypherpunks".
21276   o Minor bugfixes (systemd):
21277     - Fix an accidental formatting error that broke the systemd
21278       configuration file. Fixes bug 16152; bugfix on 0.2.7.1-alpha.
21279     - Tor's systemd unit file no longer contains extraneous spaces.
21280       These spaces would sometimes confuse tools like deb-systemd-
21281       helper. Fixes bug 16162; bugfix on 0.2.5.5-alpha.
21283   o Minor bugfixes (tests):
21284     - Use the configured Python executable when running test-stem-full.
21285       Fixes bug 16470; bugfix on 0.2.7.1-alpha.
21287   o Minor bugfixes (tests, also in 0.2.6.9):
21288     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
21289       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
21291   o Minor bugfixes (threads, comments):
21292     - Always initialize return value in compute_desc_id in rendcommon.c
21293       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
21294     - Check for NULL values in getinfo_helper_onions(). Patch by "teor".
21295       Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
21296     - Remove undefined directive-in-macro in test_util_writepid clang
21297       3.7 complains that using a preprocessor directive inside a macro
21298       invocation in test_util_writepid in test_util.c is undefined.
21299       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
21301   o Code simplification and refactoring:
21302     - Define WINVER and _WIN32_WINNT centrally, in orconfig.h, in order
21303       to ensure they remain consistent and visible everywhere.
21304     - Remove some vestigial workarounds for the MSVC6 compiler. We
21305       haven't supported that in ages.
21306     - The link authentication code has been refactored for better
21307       testability and reliability. It now uses code generated with the
21308       "trunnel" binary encoding generator, to reduce the risk of bugs
21309       due to programmer error. Done as part of ticket 12498.
21311   o Documentation:
21312     - Include a specific and (hopefully) accurate documentation of the
21313       torrc file's meta-format in doc/torrc_format.txt. This is mainly
21314       of interest to people writing programs to parse or generate torrc
21315       files. This document is not a commitment to long-term
21316       compatibility; some aspects of the current format are a bit
21317       ridiculous. Closes ticket 2325.
21319   o Removed features:
21320     - Tor no longer supports copies of OpenSSL that are missing support
21321       for Elliptic Curve Cryptography. (We began using ECC when
21322       available in 0.2.4.8-alpha, for more safe and efficient key
21323       negotiation.) In particular, support for at least one of P256 or
21324       P224 is now required, with manual configuration needed if only
21325       P224 is available. Resolves ticket 16140.
21326     - Tor no longer supports versions of OpenSSL before 1.0. (If you are
21327       on an operating system that has not upgraded to OpenSSL 1.0 or
21328       later, and you compile Tor from source, you will need to install a
21329       more recent OpenSSL to link Tor against.) These versions of
21330       OpenSSL are still supported by the OpenSSL, but the numerous
21331       cryptographic improvements in later OpenSSL releases makes them a
21332       clear choice. Resolves ticket 16034.
21333     - Remove the HidServDirectoryV2 option. Now all relays offer to
21334       store hidden service descriptors. Related to 16543.
21335     - Remove the VoteOnHidServDirectoriesV2 option, since all
21336       authorities have long set it to 1. Closes ticket 16543.
21338   o Testing:
21339     - Document use of coverity, clang static analyzer, and clang dynamic
21340       undefined behavior and address sanitizers in doc/HACKING. Include
21341       detailed usage instructions in the blacklist. Patch by "teor".
21342       Closes ticket 15817.
21343     - The link authentication protocol code now has extensive tests.
21344     - The relay descriptor signature testing code now has
21345       extensive tests.
21346     - The test_workqueue program now runs faster, and is enabled by
21347       default as a part of "make check".
21348     - Now that OpenSSL has its own scrypt implementation, add an unit
21349       test that checks for interoperability between libscrypt_scrypt()
21350       and OpenSSL's EVP_PBE_scrypt() so that we could not use libscrypt
21351       and rely on EVP_PBE_scrypt() whenever possible. Resolves
21352       ticket 16189.
21355 Changes in version 0.2.6.10 - 2015-07-12
21356   Tor version 0.2.6.10 fixes some significant stability and hidden
21357   service client bugs, bulletproofs the cryptography init process, and
21358   fixes a bug when using the sandbox code with some older versions of
21359   Linux. Everyone running an older version, especially an older version
21360   of 0.2.6, should upgrade.
21362   o Major bugfixes (hidden service clients, stability):
21363     - Stop refusing to store updated hidden service descriptors on a
21364       client. This reverts commit 9407040c59218 (which indeed fixed bug
21365       14219, but introduced a major hidden service reachability
21366       regression detailed in bug 16381). This is a temporary fix since
21367       we can live with the minor issue in bug 14219 (it just results in
21368       some load on the network) but the regression of 16381 is too much
21369       of a setback. First-round fix for bug 16381; bugfix
21370       on 0.2.6.3-alpha.
21372   o Major bugfixes (stability):
21373     - Stop crashing with an assertion failure when parsing certain kinds
21374       of malformed or truncated microdescriptors. Fixes bug 16400;
21375       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
21376       by "cypherpunks_backup".
21377     - Stop random client-side assertion failures that could occur when
21378       connecting to a busy hidden service, or connecting to a hidden
21379       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
21380       on 0.1.0.1-rc.
21382   o Minor features (geoip):
21383     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
21384     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
21386   o Minor bugfixes (crypto error-handling):
21387     - Check for failures from crypto_early_init, and refuse to continue.
21388       A previous typo meant that we could keep going with an
21389       uninitialized crypto library, and would have OpenSSL initialize
21390       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
21391       when implementing ticket 4900. Patch by "teor".
21393   o Minor bugfixes (Linux seccomp2 sandbox):
21394     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
21395       these when eventfd2() support is missing. Fixes bug 16363; bugfix
21396       on 0.2.6.3-alpha. Patch from "teor".
21399 Changes in version 0.2.6.9 - 2015-06-11
21400   Tor 0.2.6.9 fixes a regression in the circuit isolation code, increases the
21401   requirements for receiving an HSDir flag, and addresses some other small
21402   bugs in the systemd and sandbox code. Clients using circuit isolation
21403   should upgrade; all directory authorities should upgrade.
21405   o Major bugfixes (client-side privacy):
21406     - Properly separate out each SOCKSPort when applying stream
21407       isolation. The error occurred because each port's session group was
21408       being overwritten by a default value when the listener connection
21409       was initialized. Fixes bug 16247; bugfix on 0.2.6.3-alpha. Patch
21410       by "jojelino".
21412   o Minor feature (directory authorities, security):
21413     - The HSDir flag given by authorities now requires the Stable flag.
21414       For the current network, this results in going from 2887 to 2806
21415       HSDirs. Also, it makes it harder for an attacker to launch a sybil
21416       attack by raising the effort for a relay to become Stable which
21417       takes at the very least 7 days to do so and by keeping the 96
21418       hours uptime requirement for HSDir. Implements ticket 8243.
21420   o Minor bugfixes (compilation):
21421     - Build with --enable-systemd correctly when libsystemd is
21422       installed, but systemd is not. Fixes bug 16164; bugfix on
21423       0.2.6.3-alpha. Patch from Peter Palfrader.
21425   o Minor bugfixes (Linux seccomp2 sandbox):
21426     - Fix sandboxing to work when running as a relaymby renaming of
21427       secret_id_key, and allowing the eventfd2 and futex syscalls. Fixes
21428       bug 16244; bugfix on 0.2.6.1-alpha. Patch by Peter Palfrader.
21429     - Allow systemd connections to work with the Linux seccomp2 sandbox
21430       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
21431       Peter Palfrader.
21433   o Minor bugfixes (tests):
21434     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
21435       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
21438 Changes in version 0.2.6.8 - 2015-05-21
21439   Tor 0.2.6.8 fixes a bit of dodgy code in parsing INTRODUCE2 cells, and
21440   fixes an authority-side bug in assigning the HSDir flag. All directory
21441   authorities should upgrade.
21443   o Major bugfixes (hidden services, backport from 0.2.7.1-alpha):
21444     - Revert commit that made directory authorities assign the HSDir
21445       flag to relays without a DirPort; this was bad because such relays
21446       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
21447       on 0.2.6.3-alpha.
21449   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
21450     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
21451       a client authorized hidden service. Fixes bug 15823; bugfix
21452       on 0.2.1.6-alpha.
21454   o Minor features (geoip):
21455     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
21456     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
21457       Country database.
21460 Changes in version 0.2.7.1-alpha - 2015-05-12
21461   Tor 0.2.7.1-alpha is the first alpha release in its series. It
21462   includes numerous small features and bugfixes against previous Tor
21463   versions, and numerous small infrastructure improvements. The most
21464   notable features are several new ways for controllers to interact with
21465   the hidden services subsystem.
21467   o New system requirements:
21468     - Tor no longer includes workarounds to support Libevent versions
21469       before 1.3e. Libevent 2.0 or later is recommended. Closes
21470       ticket 15248.
21472   o Major features (controller):
21473     - Add the ADD_ONION and DEL_ONION commands that allow the creation
21474       and management of hidden services via the controller. Closes
21475       ticket 6411.
21476     - New "GETINFO onions/current" and "GETINFO onions/detached"
21477       commands to get information about hidden services created via the
21478       controller. Part of ticket 6411.
21479     - New HSFETCH command to launch a request for a hidden service
21480       descriptor. Closes ticket 14847.
21481     - New HSPOST command to upload a hidden service descriptor. Closes
21482       ticket 3523. Patch by "DonnchaC".
21484   o Major bugfixes (hidden services):
21485     - Revert commit that made directory authorities assign the HSDir
21486       flag to relays without a DirPort; this was bad because such relays
21487       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
21488       on 0.2.6.3-alpha.
21490   o Minor features (clock-jump tolerance):
21491     - Recover better when our clock jumps back many hours, like might
21492       happen for Tails or Whonix users who start with a very wrong
21493       hardware clock, use Tor to discover a more accurate time, and then
21494       fix their clock. Resolves part of ticket 8766.
21496   o Minor features (command-line interface):
21497     - Make --hash-password imply --hush to prevent unnecessary noise.
21498       Closes ticket 15542. Patch from "cypherpunks".
21499     - Print a warning whenever we find a relative file path being used
21500       as torrc option. Resolves issue 14018.
21502   o Minor features (controller):
21503     - Add DirAuthority lines for default directory authorities to the
21504       output of the "GETINFO config/defaults" command if not already
21505       present. Implements ticket 14840.
21506     - Controllers can now use "GETINFO hs/client/desc/id/..." to
21507       retrieve items from the client's hidden service descriptor cache.
21508       Closes ticket 14845.
21509     - Implement a new controller command "GETINFO status/fresh-relay-
21510       descs" to fetch a descriptor/extrainfo pair that was generated on
21511       demand just for the controller's use. Implements ticket 14784.
21513   o Minor features (DoS-resistance):
21514     - Make it harder for attackers to overload hidden services with
21515       introductions, by blocking multiple introduction requests on the
21516       same circuit. Resolves ticket 15515.
21518   o Minor features (geoip):
21519     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
21520     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
21521       Country database.
21523   o Minor features (HS popularity countermeasure):
21524     - To avoid leaking HS popularity, don't cycle the introduction point
21525       when we've handled a fixed number of INTRODUCE2 cells but instead
21526       cycle it when a random number of introductions is reached, thus
21527       making it more difficult for an attacker to find out the amount of
21528       clients that have used the introduction point for a specific HS.
21529       Closes ticket 15745.
21531   o Minor features (logging):
21532     - Include the Tor version in all LD_BUG log messages, since people
21533       tend to cut and paste those into the bugtracker. Implements
21534       ticket 15026.
21536   o Minor features (pluggable transports):
21537     - When launching managed pluggable transports on Linux systems,
21538       attempt to have the kernel deliver a SIGTERM on tor exit if the
21539       pluggable transport process is still running. Resolves
21540       ticket 15471.
21541     - When launching managed pluggable transports, setup a valid open
21542       stdin in the child process that can be used to detect if tor has
21543       terminated. The "TOR_PT_EXIT_ON_STDIN_CLOSE" environment variable
21544       can be used by implementations to detect this new behavior.
21545       Resolves ticket 15435.
21547   o Minor features (testing):
21548     - Add a test to verify that the compiler does not eliminate our
21549       memwipe() implementation. Closes ticket 15377.
21550     - Add make rule `check-changes` to verify the format of changes
21551       files. Closes ticket 15180.
21552     - Add unit tests for control_event_is_interesting(). Add a compile-
21553       time check that the number of events doesn't exceed the capacity
21554       of control_event_t.event_mask. Closes ticket 15431, checks for
21555       bugs similar to 13085. Patch by "teor".
21556     - Command-line argument tests moved to Stem. Resolves ticket 14806.
21557     - Integrate the ntor, backtrace, and zero-length keys tests into the
21558       automake test suite. Closes ticket 15344.
21559     - Remove assertions during builds to determine Tor's test coverage.
21560       We don't want to trigger these even in assertions, so including
21561       them artificially makes our branch coverage look worse than it is.
21562       This patch provides the new test-stem-full and coverage-html-full
21563       configure options. Implements ticket 15400.
21565   o Minor bugfixes (build):
21566     - Improve out-of-tree builds by making non-standard rules work and
21567       clean up additional files and directories. Fixes bug 15053; bugfix
21568       on 0.2.7.0-alpha.
21570   o Minor bugfixes (command-line interface):
21571     - When "--quiet" is provided along with "--validate-config", do not
21572       write anything to stdout on success. Fixes bug 14994; bugfix
21573       on 0.2.3.3-alpha.
21574     - When complaining about bad arguments to "--dump-config", use
21575       stderr, not stdout.
21577   o Minor bugfixes (configuration, unit tests):
21578     - Only add the default fallback directories when the DirAuthorities,
21579       AlternateDirAuthority, and FallbackDir directory config options
21580       are set to their defaults. The default fallback directory list is
21581       currently empty, this fix will only change tor's behavior when it
21582       has default fallback directories. Includes unit tests for
21583       consider_adding_dir_servers(). Fixes bug 15642; bugfix on
21584       90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor".
21586   o Minor bugfixes (correctness):
21587     - For correctness, avoid modifying a constant string in
21588       handle_control_postdescriptor. Fixes bug 15546; bugfix
21589       on 0.1.1.16-rc.
21590     - Remove side-effects from tor_assert() calls. This was harmless,
21591       because we never disable assertions, but it is bad style and
21592       unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36,
21593       and 0.2.0.10.
21595   o Minor bugfixes (hidden service):
21596     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
21597       a client authorized hidden service. Fixes bug 15823; bugfix
21598       on 0.2.1.6-alpha.
21599     - Remove an extraneous newline character from the end of hidden
21600       service descriptors. Fixes bug 15296; bugfix on 0.2.0.10-alpha.
21602   o Minor bugfixes (interface):
21603     - Print usage information for --dump-config when it is used without
21604       an argument. Also, fix the error message to use different wording
21605       and add newline at the end. Fixes bug 15541; bugfix
21606       on 0.2.5.1-alpha.
21608   o Minor bugfixes (logs):
21609     - When building Tor under Clang, do not include an extra set of
21610       parentheses in log messages that include function names. Fixes bug
21611       15269; bugfix on every released version of Tor when compiled with
21612       recent enough Clang.
21614   o Minor bugfixes (network):
21615     - When attempting to use fallback technique for network interface
21616       lookup, disregard loopback and multicast addresses since they are
21617       unsuitable for public communications.
21619   o Minor bugfixes (statistics):
21620     - Disregard the ConnDirectionStatistics torrc options when Tor is
21621       not a relay since in that mode of operation no sensible data is
21622       being collected and because Tor might run into measurement hiccups
21623       when running as a client for some time, then becoming a relay.
21624       Fixes bug 15604; bugfix on 0.2.2.35.
21626   o Minor bugfixes (test networks):
21627     - When self-testing reachability, use ExtendAllowPrivateAddresses to
21628       determine if local/private addresses imply reachability. The
21629       previous fix used TestingTorNetwork, which implies
21630       ExtendAllowPrivateAddresses, but this excluded rare configurations
21631       where ExtendAllowPrivateAddresses is set but TestingTorNetwork is
21632       not. Fixes bug 15771; bugfix on 0.2.6.1-alpha. Patch by "teor",
21633       issue discovered by CJ Ess.
21635   o Minor bugfixes (testing):
21636     - Check for matching value in server response in ntor_ref.py. Fixes
21637       bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed
21638       by "joelanders".
21639     - Set the severity correctly when testing
21640       get_interface_addresses_ifaddrs() and
21641       get_interface_addresses_win32(), so that the tests fail gracefully
21642       instead of triggering an assertion. Fixes bug 15759; bugfix on
21643       0.2.6.3-alpha. Reported by Nicolas Derive.
21645   o Code simplification and refactoring:
21646     - Move the hacky fallback code out of get_interface_address6() into
21647       separate function and get it covered with unit-tests. Resolves
21648       ticket 14710.
21649     - Refactor hidden service client-side cache lookup to intelligently
21650       report its various failure cases, and disentangle failure cases
21651       involving a lack of introduction points. Closes ticket 14391.
21652     - Use our own Base64 encoder instead of OpenSSL's, to allow more
21653       control over the output. Part of ticket 15652.
21655   o Documentation:
21656     - Improve the descriptions of statistics-related torrc options in
21657       the manpage to describe rationale and possible uses cases. Fixes
21658       issue 15550.
21659     - Improve the layout and formatting of ./configure --help messages.
21660       Closes ticket 15024. Patch from "cypherpunks".
21661     - Standardize on the term "server descriptor" in the manual page.
21662       Previously, we had used "router descriptor", "server descriptor",
21663       and "relay descriptor" interchangeably. Part of ticket 14987.
21665   o Removed code:
21666     - Remove `USE_OPENSSL_BASE64` and the corresponding fallback code
21667       and always use the internal Base64 decoder. The internal decoder
21668       has been part of tor since 0.2.0.10-alpha, and no one should
21669       be using the OpenSSL one. Part of ticket 15652.
21670     - Remove the 'tor_strclear()' function; use memwipe() instead.
21671       Closes ticket 14922.
21673   o Removed features:
21674     - Remove the (seldom-used) DynamicDHGroups feature. For anti-
21675       fingerprinting we now recommend pluggable transports; for forward-
21676       secrecy in TLS, we now use the P-256 group. Closes ticket 13736.
21677     - Remove the undocumented "--digests" command-line option. It
21678       complicated our build process, caused subtle build issues on
21679       multiple platforms, and is now redundant since we started
21680       including git version identifiers. Closes ticket 14742.
21681     - Tor no longer contains checks for ancient directory cache versions
21682       that didn't know about microdescriptors.
21683     - Tor no longer contains workarounds for stat files generated by
21684       super-old versions of Tor that didn't choose guards sensibly.
21687 Changes in version 0.2.4.27 - 2015-04-06
21688   Tor 0.2.4.27 backports two fixes from 0.2.6.7 for security issues that
21689   could be used by an attacker to crash hidden services, or crash clients
21690   visiting hidden services. Hidden services should upgrade as soon as
21691   possible; clients should upgrade whenever packages become available.
21693   This release also backports a simple improvement to make hidden
21694   services a bit less vulnerable to denial-of-service attacks.
21696   o Major bugfixes (security, hidden service):
21697     - Fix an issue that would allow a malicious client to trigger an
21698       assertion failure and halt a hidden service. Fixes bug 15600;
21699       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
21700     - Fix a bug that could cause a client to crash with an assertion
21701       failure when parsing a malformed hidden service descriptor. Fixes
21702       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
21704   o Minor features (DoS-resistance, hidden service):
21705     - Introduction points no longer allow multiple INTRODUCE1 cells to
21706       arrive on the same circuit. This should make it more expensive for
21707       attackers to overwhelm hidden services with introductions.
21708       Resolves ticket 15515.
21711 Changes in version 0.2.5.12 - 2015-04-06
21712   Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that
21713   could be used by an attacker to crash hidden services, or crash clients
21714   visiting hidden services. Hidden services should upgrade as soon as
21715   possible; clients should upgrade whenever packages become available.
21717   This release also backports a simple improvement to make hidden
21718   services a bit less vulnerable to denial-of-service attacks.
21720   o Major bugfixes (security, hidden service):
21721     - Fix an issue that would allow a malicious client to trigger an
21722       assertion failure and halt a hidden service. Fixes bug 15600;
21723       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
21724     - Fix a bug that could cause a client to crash with an assertion
21725       failure when parsing a malformed hidden service descriptor. Fixes
21726       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
21728   o Minor features (DoS-resistance, hidden service):
21729     - Introduction points no longer allow multiple INTRODUCE1 cells to
21730       arrive on the same circuit. This should make it more expensive for
21731       attackers to overwhelm hidden services with introductions.
21732       Resolves ticket 15515.
21735 Changes in version 0.2.6.7 - 2015-04-06
21736   Tor 0.2.6.7 fixes two security issues that could be used by an
21737   attacker to crash hidden services, or crash clients visiting hidden
21738   services. Hidden services should upgrade as soon as possible; clients
21739   should upgrade whenever packages become available.
21741   This release also contains two simple improvements to make hidden
21742   services a bit less vulnerable to denial-of-service attacks.
21744   o Major bugfixes (security, hidden service):
21745     - Fix an issue that would allow a malicious client to trigger an
21746       assertion failure and halt a hidden service. Fixes bug 15600;
21747       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
21748     - Fix a bug that could cause a client to crash with an assertion
21749       failure when parsing a malformed hidden service descriptor. Fixes
21750       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
21752   o Minor features (DoS-resistance, hidden service):
21753     - Introduction points no longer allow multiple INTRODUCE1 cells to
21754       arrive on the same circuit. This should make it more expensive for
21755       attackers to overwhelm hidden services with introductions.
21756       Resolves ticket 15515.
21757     - Decrease the amount of reattempts that a hidden service performs
21758       when its rendezvous circuits fail. This reduces the computational
21759       cost for running a hidden service under heavy load. Resolves
21760       ticket 11447.
21763 Changes in version 0.2.6.6 - 2015-03-24
21764   Tor 0.2.6.6 is the first stable release in the 0.2.6 series.
21766   It adds numerous safety, security, correctness, and performance
21767   improvements. Client programs can be configured to use more kinds of
21768   sockets, AutomapHosts works better, the multithreading backend is
21769   improved, cell transmission is refactored, test coverage is much
21770   higher, more denial-of-service attacks are handled, guard selection is
21771   improved to handle long-term guards better, pluggable transports
21772   should work a bit better, and some annoying hidden service performance
21773   bugs should be addressed.
21775   o Minor bugfixes (portability):
21776     - Use the correct datatype in the SipHash-2-4 function to prevent
21777       compilers from assuming any sort of alignment. Fixes bug 15436;
21778       bugfix on 0.2.5.3-alpha.
21780 Changes in version 0.2.6.5-rc - 2015-03-18
21781   Tor 0.2.6.5-rc is the second and (hopefully) last release candidate in
21782   the 0.2.6. It fixes a small number of bugs found in 0.2.6.4-rc.
21784   o Major bugfixes (client):
21785     - Avoid crashing when making certain configuration option changes on
21786       clients. Fixes bug 15245; bugfix on 0.2.6.3-alpha. Reported
21787       by "anonym".
21789   o Major bugfixes (pluggable transports):
21790     - Initialize the extended OR Port authentication cookie before
21791       launching pluggable transports. This prevents a race condition
21792       that occurred when server-side pluggable transports would cache the
21793       authentication cookie before it has been (re)generated. Fixes bug
21794       15240; bugfix on 0.2.5.1-alpha.
21796   o Major bugfixes (portability):
21797     - Do not crash on startup when running on Solaris. Fixes a bug
21798       related to our fix for 9495; bugfix on 0.2.6.1-alpha. Reported
21799       by "ruebezahl".
21801   o Minor features (heartbeat):
21802     - On relays, report how many connections we negotiated using each
21803       version of the Tor link protocols. This information will let us
21804       know if removing support for very old versions of the Tor
21805       protocols is harming the network. Closes ticket 15212.
21807   o Code simplification and refactoring:
21808     - Refactor main loop to extract the 'loop' part. This makes it
21809       easier to run Tor under Shadow. Closes ticket 15176.
21812 Changes in version 0.2.5.11 - 2015-03-17
21813   Tor 0.2.5.11 is the second stable release in the 0.2.5 series.
21815   It backports several bugfixes from the 0.2.6 branch, including a
21816   couple of medium-level security fixes for relays and exit nodes.
21817   It also updates the list of directory authorities.
21819   o Directory authority changes:
21820     - Remove turtles as a directory authority.
21821     - Add longclaw as a new (v3) directory authority. This implements
21822       ticket 13296. This keeps the directory authority count at 9.
21823     - The directory authority Faravahar has a new IP address. This
21824       closes ticket 14487.
21826   o Major bugfixes (crash, OSX, security):
21827     - Fix a remote denial-of-service opportunity caused by a bug in
21828       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
21829       in OSX 10.9.
21831   o Major bugfixes (relay, stability, possible security):
21832     - Fix a bug that could lead to a relay crashing with an assertion
21833       failure if a buffer of exactly the wrong layout was passed to
21834       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
21835       0.2.0.10-alpha. Patch from 'cypherpunks'.
21836     - Do not assert if the 'data' pointer on a buffer is advanced to the
21837       very end of the buffer; log a BUG message instead. Only assert if
21838       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
21840   o Major bugfixes (exit node stability):
21841     - Fix an assertion failure that could occur under high DNS load.
21842       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
21843       diagnosed and fixed by "cypherpunks".
21845   o Major bugfixes (Linux seccomp2 sandbox):
21846     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
21847       crash during attempts to call wait4. Fixes bug 15088; bugfix on
21848       0.2.5.1-alpha. Patch from "sanic".
21850   o Minor features (controller):
21851     - New "GETINFO bw-event-cache" to get information about recent
21852       bandwidth events. Closes ticket 14128. Useful for controllers to
21853       get recent bandwidth history after the fix for ticket 13988.
21855   o Minor features (geoip):
21856     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
21857     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
21858       Country database.
21860   o Minor bugfixes (client, automapping):
21861     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
21862       no value follows the option. Fixes bug 14142; bugfix on
21863       0.2.4.7-alpha. Patch by "teor".
21864     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
21865       14195; bugfix on 0.1.0.1-rc.
21867   o Minor bugfixes (compilation):
21868     - Build without warnings with the stock OpenSSL srtp.h header, which
21869       has a duplicate declaration of SSL_get_selected_srtp_profile().
21870       Fixes bug 14220; this is OpenSSL's bug, not ours.
21872   o Minor bugfixes (directory authority):
21873     - Allow directory authorities to fetch more data from one another if
21874       they find themselves missing lots of votes. Previously, they had
21875       been bumping against the 10 MB queued data limit. Fixes bug 14261;
21876       bugfix on 0.1.2.5-alpha.
21877     - Enlarge the buffer to read bwauth generated files to avoid an
21878       issue when parsing the file in dirserv_read_measured_bandwidths().
21879       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
21881   o Minor bugfixes (statistics):
21882     - Increase period over which bandwidth observations are aggregated
21883       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
21885   o Minor bugfixes (preventative security, C safety):
21886     - When reading a hexadecimal, base-32, or base-64 encoded value from
21887       a string, always overwrite the whole output buffer. This prevents
21888       some bugs where we would look at (but fortunately, not reveal)
21889       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
21890       versions of Tor.
21893 Changes in version 0.2.4.26 - 2015-03-17
21894   Tor 0.2.4.26 includes an updated list of directory authorities.  It
21895   also backports a couple of stability and security bugfixes from 0.2.5
21896   and beyond.
21898   o Directory authority changes:
21899     - Remove turtles as a directory authority.
21900     - Add longclaw as a new (v3) directory authority. This implements
21901       ticket 13296. This keeps the directory authority count at 9.
21902     - The directory authority Faravahar has a new IP address. This
21903       closes ticket 14487.
21905   o Major bugfixes (exit node stability, also in 0.2.6.3-alpha):
21906     - Fix an assertion failure that could occur under high DNS load.
21907       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
21908       diagnosed and fixed by "cypherpunks".
21910   o Major bugfixes (relay, stability, possible security, also in 0.2.6.4-rc):
21911     - Fix a bug that could lead to a relay crashing with an assertion
21912       failure if a buffer of exactly the wrong layout was passed to
21913       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
21914       0.2.0.10-alpha. Patch from 'cypherpunks'.
21915     - Do not assert if the 'data' pointer on a buffer is advanced to the
21916       very end of the buffer; log a BUG message instead. Only assert if
21917       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
21919   o Minor features (geoip):
21920     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
21921     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
21922       Country database.
21924 Changes in version 0.2.6.4-rc - 2015-03-09
21925   Tor 0.2.6.4-alpha fixes an issue in the directory code that an
21926   attacker might be able to use in order to crash certain Tor
21927   directories. It also resolves some minor issues left over from, or
21928   introduced in, Tor 0.2.6.3-alpha or earlier.
21930   o Major bugfixes (crash, OSX, security):
21931     - Fix a remote denial-of-service opportunity caused by a bug in
21932       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
21933       in OSX 10.9.
21935   o Major bugfixes (relay, stability, possible security):
21936     - Fix a bug that could lead to a relay crashing with an assertion
21937       failure if a buffer of exactly the wrong layout is passed to
21938       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
21939       0.2.0.10-alpha. Patch from "cypherpunks".
21940     - Do not assert if the 'data' pointer on a buffer is advanced to the
21941       very end of the buffer; log a BUG message instead. Only assert if
21942       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
21944   o Major bugfixes (FreeBSD IPFW transparent proxy):
21945     - Fix address detection with FreeBSD transparent proxies, when
21946       "TransProxyType ipfw" is in use. Fixes bug 15064; bugfix
21947       on 0.2.5.4-alpha.
21949   o Major bugfixes (Linux seccomp2 sandbox):
21950     - Pass IPPROTO_TCP rather than 0 to socket(), so that the Linux
21951       seccomp2 sandbox doesn't fail. Fixes bug 14989; bugfix
21952       on 0.2.6.3-alpha.
21953     - Allow AF_UNIX hidden services to be used with the seccomp2
21954       sandbox. Fixes bug 15003; bugfix on 0.2.6.3-alpha.
21955     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
21956       crash during attempts to call wait4. Fixes bug 15088; bugfix on
21957       0.2.5.1-alpha. Patch from "sanic".
21959   o Minor features (controller):
21960     - Messages about problems in the bootstrap process now include
21961       information about the server we were trying to connect to when we
21962       noticed the problem. Closes ticket 15006.
21964   o Minor features (geoip):
21965     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
21966     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
21967       Country database.
21969   o Minor features (logs):
21970     - Quiet some log messages in the heartbeat and at startup. Closes
21971       ticket 14950.
21973   o Minor bugfixes (certificate handling):
21974     - If an authority operator accidentally makes a signing certificate
21975       with a future publication time, do not discard its real signing
21976       certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha.
21977     - Remove any old authority certificates that have been superseded
21978       for at least two days. Previously, we would keep superseded
21979       certificates until they expired, if they were published close in
21980       time to the certificate that superseded them. Fixes bug 11454;
21981       bugfix on 0.2.1.8-alpha.
21983   o Minor bugfixes (compilation):
21984     - Fix a compilation warning on s390. Fixes bug 14988; bugfix
21985       on 0.2.5.2-alpha.
21986     - Fix a compilation warning on FreeBSD. Fixes bug 15151; bugfix
21987       on 0.2.6.2-alpha.
21989   o Minor bugfixes (testing):
21990     - Fix endianness issues in unit test for resolve_my_address() to
21991       have it pass on big endian systems. Fixes bug 14980; bugfix on
21992       Tor 0.2.6.3-alpha.
21993     - Avoid a side-effect in a tor_assert() in the unit tests. Fixes bug
21994       15188; bugfix on 0.1.2.3-alpha. Patch from Tom van der Woerdt.
21995     - When running the new 'make test-stem' target, use the configured
21996       python binary. Fixes bug 15037; bugfix on 0.2.6.3-alpha. Patch
21997       from "cypherpunks".
21998     - When running the zero-length-keys tests, do not use the default
21999       torrc file. Fixes bug 15033; bugfix on 0.2.6.3-alpha. Reported
22000       by "reezer".
22002   o Directory authority IP change:
22003     - The directory authority Faravahar has a new IP address. This
22004       closes ticket 14487.
22006   o Removed code:
22007     - Remove some lingering dead code that once supported mempools.
22008       Mempools were disabled by default in 0.2.5, and removed entirely
22009       in 0.2.6.3-alpha. Closes more of ticket 14848; patch
22010       by "cypherpunks".
22013 Changes in version 0.2.6.3-alpha - 2015-02-19
22014   Tor 0.2.6.3-alpha is the third (and hopefully final) alpha release in
22015   the 0.2.6.x series. It introduces support for more kinds of sockets,
22016   makes it harder to accidentally run an exit, improves our
22017   multithreading backend, incorporates several fixes for the
22018   AutomapHostsOnResolve option, and fixes numerous other bugs besides.
22020   If no major regressions or security holes are found in this version,
22021   the next version will be a release candidate.
22023   o Deprecated versions:
22024     - Tor relays older than 0.2.4.18-rc are no longer allowed to
22025       advertise themselves on the network. Closes ticket 13555.
22027   o Major features (security, unix domain sockets):
22028     - Allow SocksPort to be an AF_UNIX Unix Domain Socket. Now high risk
22029       applications can reach Tor without having to create AF_INET or
22030       AF_INET6 sockets, meaning they can completely disable their
22031       ability to make non-Tor network connections. To create a socket of
22032       this type, use "SocksPort unix:/path/to/socket". Implements
22033       ticket 12585.
22034     - Support mapping hidden service virtual ports to AF_UNIX sockets.
22035       The syntax is "HiddenServicePort 80 unix:/path/to/socket".
22036       Implements ticket 11485.
22038   o Major features (changed defaults):
22039     - Prevent relay operators from unintentionally running exits: When a
22040       relay is configured as an exit node, we now warn the user unless
22041       the "ExitRelay" option is set to 1. We warn even more loudly if
22042       the relay is configured with the default exit policy, since this
22043       can indicate accidental misconfiguration. Setting "ExitRelay 0"
22044       stops Tor from running as an exit relay. Closes ticket 10067.
22046   o Major features (directory system):
22047     - When downloading server- or microdescriptors from a directory
22048       server, we no longer launch multiple simultaneous requests to the
22049       same server. This reduces load on the directory servers,
22050       especially when directory guards are in use. Closes ticket 9969.
22051     - When downloading server- or microdescriptors over a tunneled
22052       connection, do not limit the length of our requests to what the
22053       Squid proxy is willing to handle. Part of ticket 9969.
22054     - Authorities can now vote on the correct digests and latest
22055       versions for different software packages. This allows packages
22056       that include Tor to use the Tor authority system as a way to get
22057       notified of updates and their correct digests. Implements proposal
22058       227. Closes ticket 10395.
22060   o Major features (guards):
22061     - Introduce the Guardfraction feature to improves load balancing on
22062       guard nodes. Specifically, it aims to reduce the traffic gap that
22063       guard nodes experience when they first get the Guard flag. This is
22064       a required step if we want to increase the guard lifetime to 9
22065       months or greater.  Closes ticket 9321.
22067   o Major features (performance):
22068     - Make the CPU worker implementation more efficient by avoiding the
22069       kernel and lengthening pipelines. The original implementation used
22070       sockets to transfer data from the main thread to the workers, and
22071       didn't allow any thread to be assigned more than a single piece of
22072       work at once. The new implementation avoids communications
22073       overhead by making requests in shared memory, avoiding kernel IO
22074       where possible, and keeping more requests in flight at once.
22075       Implements ticket 9682.
22077   o Major features (relay):
22078     - Raise the minimum acceptable configured bandwidth rate for bridges
22079       to 50 KiB/sec and for relays to 75 KiB/sec. (The old values were
22080       20 KiB/sec.) Closes ticket 13822.
22082   o Major bugfixes (exit node stability):
22083     - Fix an assertion failure that could occur under high DNS load.
22084       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
22085       diagnosed and fixed by "cypherpunks".
22087   o Major bugfixes (mixed relay-client operation):
22088     - When running as a relay and client at the same time (not
22089       recommended), if we decide not to use a new guard because we want
22090       to retry older guards, only close the locally-originating circuits
22091       passing through that guard. Previously we would close all the
22092       circuits through that guard. Fixes bug 9819; bugfix on
22093       0.2.1.1-alpha. Reported by "skruffy".
22095   o Minor features (build):
22096     - New --disable-system-torrc compile-time option to prevent Tor from
22097       looking for the system-wide torrc or torrc-defaults files.
22098       Resolves ticket 13037.
22100   o Minor features (controller):
22101     - Include SOCKS_USERNAME and SOCKS_PASSWORD values in controller
22102       events so controllers can observe circuit isolation inputs. Closes
22103       ticket 8405.
22104     - ControlPort now supports the unix:/path/to/socket syntax as an
22105       alternative to the ControlSocket option, for consistency with
22106       SocksPort and HiddenServicePort. Closes ticket 14451.
22107     - New "GETINFO bw-event-cache" to get information about recent
22108       bandwidth events. Closes ticket 14128. Useful for controllers to
22109       get recent bandwidth history after the fix for ticket 13988.
22111   o Minor features (Denial of service resistance):
22112     - Count the total number of bytes used storing hidden service
22113       descriptors against the value of MaxMemInQueues. If we're low on
22114       memory, and more than 20% of our memory is used holding hidden
22115       service descriptors, free them until no more than 10% of our
22116       memory holds hidden service descriptors. Free the least recently
22117       fetched descriptors first. Resolves ticket 13806.
22118     - When we have recently been under memory pressure (over 3/4 of
22119       MaxMemInQueues is allocated), then allocate smaller zlib objects
22120       for small requests. Closes ticket 11791.
22122   o Minor features (geoip):
22123     - Update geoip and geoip6 files to the January 7 2015 Maxmind
22124       GeoLite2 Country database.
22126   o Minor features (guard nodes):
22127     - Reduce the time delay before saving guard status to disk from 10
22128       minutes to 30 seconds (or from one hour to 10 minutes if
22129       AvoidDiskWrites is set). Closes ticket 12485.
22131   o Minor features (hidden service):
22132     - Make Sybil attacks against hidden services harder by changing the
22133       minimum time required to get the HSDir flag from 25 hours up to 96
22134       hours. Addresses ticket 14149.
22135     - New option "HiddenServiceAllowUnknownPorts" to allow hidden
22136       services to disable the anti-scanning feature introduced in
22137       0.2.6.2-alpha. With this option not set, a connection to an
22138       unlisted port closes the circuit. With this option set, only a
22139       RELAY_DONE cell is sent. Closes ticket 14084.
22141   o Minor features (interface):
22142     - Implement "-f -" command-line option to read torrc configuration
22143       from standard input, if you don't want to store the torrc file in
22144       the file system. Implements feature 13865.
22146   o Minor features (logging):
22147     - Add a count of unique clients to the bridge heartbeat message.
22148       Resolves ticket 6852.
22149     - Suppress "router info incompatible with extra info" message when
22150       reading extrainfo documents from cache. (This message got loud
22151       around when we closed bug 9812 in 0.2.6.2-alpha.) Closes
22152       ticket 13762.
22153     - Elevate hidden service authorized-client message from DEBUG to
22154       INFO. Closes ticket 14015.
22156   o Minor features (stability):
22157     - Add assertions in our hash-table iteration code to check for
22158       corrupted values that could cause infinite loops. Closes
22159       ticket 11737.
22161   o Minor features (systemd):
22162     - Various improvements and modernizations in systemd hardening
22163       support. Closes ticket 13805. Patch from Craig Andrews.
22165   o Minor features (testing networks):
22166     - Drop the minimum RendPostPeriod on a testing network to 5 seconds,
22167       and the default on a testing network to 2 minutes. Drop the
22168       MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but
22169       keep the default on a testing network at 30 seconds. This reduces
22170       HS bootstrap time to around 25 seconds. Also, change the default
22171       time in test-network.sh to match. Closes ticket 13401. Patch
22172       by "teor".
22173     - Create TestingDirAuthVoteHSDir to correspond to
22174       TestingDirAuthVoteExit/Guard. Ensures that authorities vote the
22175       HSDir flag for the listed relays regardless of uptime or ORPort
22176       connectivity. Respects the value of VoteOnHidServDirectoriesV2.
22177       Partial implementation for ticket 14067. Patch by "teor".
22179   o Minor features (tor2web mode):
22180     - Introduce the config option Tor2webRendezvousPoints, which allows
22181       clients in Tor2webMode to select a specific Rendezvous Point to be
22182       used in HS circuits. This might allow better performance for
22183       Tor2Web nodes. Implements ticket 12844.
22185   o Minor bugfixes (client DNS):
22186     - Report the correct cached DNS expiration times on SOCKS port or in
22187       DNS replies. Previously, we would report everything as "never
22188       expires." Fixes bug 14193; bugfix on 0.2.3.17-beta.
22189     - Avoid a small memory leak when we find a cached answer for a
22190       reverse DNS lookup in a client-side DNS cache. (Remember, client-
22191       side DNS caching is off by default, and is not recommended.) Fixes
22192       bug 14259; bugfix on 0.2.0.1-alpha.
22194   o Minor bugfixes (client, automapping):
22195     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
22196       no value follows the option. Fixes bug 14142; bugfix on
22197       0.2.4.7-alpha. Patch by "teor".
22198     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
22199       14195; bugfix on 0.1.0.1-rc.
22200     - Prevent changes to other options from removing the wildcard value
22201       "." from "AutomapHostsSuffixes". Fixes bug 12509; bugfix
22202       on 0.2.0.1-alpha.
22203     - Allow MapAddress and AutomapHostsOnResolve to work together when
22204       an address is mapped into another address type (like .onion) that
22205       must be automapped at resolve time. Fixes bug 7555; bugfix
22206       on 0.2.0.1-alpha.
22208   o Minor bugfixes (client, bridges):
22209     - When we are using bridges and we had a network connectivity
22210       problem, only retry connecting to our currently configured
22211       bridges, not all bridges we know about and remember using. Fixes
22212       bug 14216; bugfix on 0.2.2.17-alpha.
22214   o Minor bugfixes (client, IPv6):
22215     - Reject socks requests to literal IPv6 addresses when IPv6Traffic
22216       flag is not set; and not because the NoIPv4Traffic flag was set.
22217       Previously we'd looked at the NoIPv4Traffic flag for both types of
22218       literal addresses. Fixes bug 14280; bugfix on 0.2.4.7-alpha.
22220   o Minor bugfixes (compilation):
22221     - The address of an array in the middle of a structure will always
22222       be non-NULL. clang recognises this and complains. Disable the
22223       tautologous and redundant check to silence this warning. Fixes bug
22224       14001; bugfix on 0.2.1.2-alpha.
22225     - Avoid warnings when building with systemd 209 or later. Fixes bug
22226       14072; bugfix on 0.2.6.2-alpha. Patch from "h.venev".
22227     - Compile correctly with (unreleased) OpenSSL 1.1.0 headers.
22228       Addresses ticket 14188.
22229     - Build without warnings with the stock OpenSSL srtp.h header, which
22230       has a duplicate declaration of SSL_get_selected_srtp_profile().
22231       Fixes bug 14220; this is OpenSSL's bug, not ours.
22232     - Do not compile any code related to Tor2Web mode when Tor2Web mode
22233       is not enabled at compile time. Previously, this code was included
22234       in a disabled state. See discussion on ticket 12844.
22235     - Remove the --disable-threads configure option again. It was
22236       accidentally partially reintroduced in 29ac883606d6d. Fixes bug
22237       14819; bugfix on 0.2.6.2-alpha.
22239   o Minor bugfixes (controller):
22240     - Report "down" in response to the "GETINFO entry-guards" command
22241       when relays are down with an unreachable_since value. Previously,
22242       we would report "up". Fixes bug 14184; bugfix on 0.1.2.2-alpha.
22243     - Avoid crashing on a malformed EXTENDCIRCUIT command. Fixes bug
22244       14116; bugfix on 0.2.2.9-alpha.
22245     - Add a code for the END_CIRC_REASON_IP_NOW_REDUNDANT circuit close
22246       reason. Fixes bug 14207; bugfix on 0.2.6.2-alpha.
22248   o Minor bugfixes (directory authority):
22249     - Allow directory authorities to fetch more data from one another if
22250       they find themselves missing lots of votes. Previously, they had
22251       been bumping against the 10 MB queued data limit. Fixes bug 14261;
22252       bugfix on 0.1.2.5-alpha.
22253     - Do not attempt to download extrainfo documents which we will be
22254       unable to validate with a matching server descriptor. Fixes bug
22255       13762; bugfix on 0.2.0.1-alpha.
22256     - Fix a bug that was truncating AUTHDIR_NEWDESC events sent to the
22257       control port. Fixes bug 14953; bugfix on 0.2.0.1-alpha.
22258     - Enlarge the buffer to read bwauth generated files to avoid an
22259       issue when parsing the file in dirserv_read_measured_bandwidths().
22260       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
22262   o Minor bugfixes (file handling):
22263     - Stop failing when key files are zero-length. Instead, generate new
22264       keys, and overwrite the empty key files. Fixes bug 13111; bugfix
22265       on all versions of Tor. Patch by "teor".
22266     - Stop generating a fresh .old RSA onion key file when the .old file
22267       is missing. Fixes part of 13111; bugfix on 0.0.6rc1.
22268     - Avoid overwriting .old key files with empty key files.
22269     - Skip loading zero-length extrainfo store, router store, stats,
22270       state, and key files.
22271     - Avoid crashing when trying to reload a torrc specified as a
22272       relative path with RunAsDaemon turned on. Fixes bug 13397; bugfix
22273       on 0.2.3.11-alpha.
22275   o Minor bugfixes (hidden services):
22276     - Close the introduction circuit when we have no more usable intro
22277       points, instead of waiting for it to time out. This also ensures
22278       that no follow-up HS descriptor fetch is triggered when the
22279       circuit eventually times out. Fixes bug 14224; bugfix on 0.0.6.
22280     - When fetching a hidden service descriptor for a down service that
22281       was recently up, do not keep refetching until we try the same
22282       replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha.
22283     - Successfully launch Tor with a nonexistent hidden service
22284       directory. Our fix for bug 13942 didn't catch this case. Fixes bug
22285       14106; bugfix on 0.2.6.2-alpha.
22287   o Minor bugfixes (logging):
22288     - Avoid crashing when there are more log domains than entries in
22289       domain_list. Bugfix on 0.2.3.1-alpha.
22290     - Add a string representation for LD_SCHED. Fixes bug 14740; bugfix
22291       on 0.2.6.1-alpha.
22292     - Don't log messages to stdout twice when starting up. Fixes bug
22293       13993; bugfix on 0.2.6.1-alpha.
22295   o Minor bugfixes (parsing):
22296     - Stop accepting milliseconds (or other junk) at the end of
22297       descriptor publication times. Fixes bug 9286; bugfix on 0.0.2pre25.
22298     - Support two-number and three-number version numbers correctly, in
22299       case we change the Tor versioning system in the future. Fixes bug
22300       13661; bugfix on 0.0.8pre1.
22302   o Minor bugfixes (path counting):
22303     - When deciding whether the consensus lists any exit nodes, count
22304       the number listed in the consensus, not the number we have
22305       descriptors for. Fixes part of bug 14918; bugfix on 0.2.6.2-alpha.
22306     - When deciding whether we have any exit nodes, only examine
22307       ExitNodes when the ExitNodes option is actually set. Fixes part of
22308       bug 14918; bugfix on 0.2.6.2-alpha.
22309     - Get rid of redundant and possibly scary warnings that we are
22310       missing directory information while we bootstrap. Fixes part of
22311       bug 14918; bugfix on 0.2.6.2-alpha.
22313   o Minor bugfixes (portability):
22314     - Fix the ioctl()-based network interface lookup code so that it
22315       will work on systems that have variable-length struct ifreq, for
22316       example Mac OS X.
22317     - Fix scheduler compilation on targets where char is unsigned. Fixes
22318       bug 14764; bugfix on 0.2.6.2-alpha. Reported by Christian Kujau.
22320   o Minor bugfixes (sandbox):
22321     - Allow glibc fatal errors to be sent to stderr before Tor exits.
22322       Previously, glibc would try to write them to /dev/tty, and the
22323       sandbox would trap the call and make Tor exit prematurely. Fixes
22324       bug 14759; bugfix on 0.2.5.1-alpha.
22326   o Minor bugfixes (shutdown):
22327     - When shutting down, always call event_del() on lingering read or
22328       write events before freeing them. Otherwise, we risk double-frees
22329       or read-after-frees in event_base_free(). Fixes bug 12985; bugfix
22330       on 0.1.0.2-rc.
22332   o Minor bugfixes (small memory leaks):
22333     - Avoid leaking memory when using IPv6 virtual address mappings.
22334       Fixes bug 14123; bugfix on 0.2.4.7-alpha. Patch by Tom van
22335       der Woerdt.
22337   o Minor bugfixes (statistics):
22338     - Increase period over which bandwidth observations are aggregated
22339       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
22341   o Minor bugfixes (systemd support):
22342     - Fix detection and operation of systemd watchdog. Fixes part of bug
22343       14141; bugfix on 0.2.6.2-alpha. Patch from Tomasz Torcz.
22344     - Run correctly under systemd with the RunAsDaemon option set. Fixes
22345       part of bug 14141; bugfix on 0.2.5.7-rc. Patch from Tomasz Torcz.
22346     - Inform the systemd supervisor about more changes in the Tor
22347       process status. Implements part of ticket 14141. Patch from
22348       Tomasz Torcz.
22349     - Cause the "--disable-systemd" option to actually disable systemd
22350       support. Fixes bug 14350; bugfix on 0.2.6.2-alpha. Patch
22351       from "blueness".
22353   o Minor bugfixes (TLS):
22354     - Check more thoroughly throughout the TLS code for possible
22355       unlogged TLS errors. Possible diagnostic or fix for bug 13319.
22357   o Minor bugfixes (transparent proxy):
22358     - Use getsockname, not getsockopt, to retrieve the address for a
22359       TPROXY-redirected connection. Fixes bug 13796; bugfix
22360       on 0.2.5.2-alpha.
22362   o Code simplification and refactoring:
22363     - Move fields related to isolating and configuring client ports into
22364       a shared structure. Previously, they were duplicated across
22365       port_cfg_t, listener_connection_t, and edge_connection_t. Failure
22366       to copy them correctly had been the cause of at least one bug in
22367       the past. Closes ticket 8546.
22368     - Refactor the get_interface_addresses_raw() doom-function into
22369       multiple smaller and simpler subfunctions. Cover the resulting
22370       subfunctions with unit-tests. Fixes a significant portion of
22371       issue 12376.
22372     - Remove workaround in dirserv_thinks_router_is_hs_dir() that was
22373       only for version <= 0.2.2.24 which is now deprecated. Closes
22374       ticket 14202.
22375     - Remove a test for a long-defunct broken version-one
22376       directory server.
22378   o Documentation:
22379     - Adding section on OpenBSD to our TUNING document. Thanks to mmcc
22380       for writing the OpenBSD-specific tips. Resolves ticket 13702.
22381     - Make the tor-resolve documentation match its help string and its
22382       options. Resolves part of ticket 14325.
22383     - Log a more useful error message from tor-resolve when failing to
22384       look up a hidden service address. Resolves part of ticket 14325.
22386   o Downgraded warnings:
22387     - Don't warn when we've attempted to contact a relay using the wrong
22388       ntor onion key. Closes ticket 9635.
22390   o Removed features:
22391     - To avoid confusion with the "ExitRelay" option, "ExitNode" is no
22392       longer silently accepted as an alias for "ExitNodes".
22393     - The --enable-mempool and --enable-buf-freelists options, which
22394       were originally created to work around bad malloc implementations,
22395       no longer exist. They were off-by-default in 0.2.5. Closes
22396       ticket 14848.
22398   o Testing:
22399     - Make the checkdir/perms test complete successfully even if the
22400       global umask is not 022. Fixes bug 14215; bugfix on 0.2.6.2-alpha.
22401     - Test that tor does not fail when key files are zero-length. Check
22402       that tor generates new keys, and overwrites the empty key files.
22403     - Test that tor generates new keys when keys are missing
22404       (existing behavior).
22405     - Test that tor does not overwrite key files that already contain
22406       data (existing behavior). Tests bug 13111. Patch by "teor".
22407     - New "make test-stem" target to run stem integration tests.
22408       Requires that the "STEM_SOURCE_DIR" environment variable be set.
22409       Closes ticket 14107.
22410     - Make the test_cmdline_args.py script work correctly on Windows.
22411       Patch from Gisle Vanem.
22412     - Move the slower unit tests into a new "./src/test/test-slow"
22413       binary that can be run independently of the other tests. Closes
22414       ticket 13243.
22415     - Avoid undefined behavior when sampling huge values from the
22416       Laplace distribution. This made unittests fail on Raspberry Pi.
22417       Bug found by Device. Fixes bug 14090; bugfix on 0.2.6.2-alpha.
22420 Changes in version 0.2.6.2-alpha - 2014-12-31
22421   Tor 0.2.6.2-alpha is the second alpha release in the 0.2.6.x series.
22422   It introduces a major new backend for deciding when to send cells on
22423   channels, which should lead down the road to big performance
22424   increases. It contains security and statistics features for better
22425   work on hidden services, and numerous bugfixes.
22427   This release contains many new unit tests, along with major
22428   performance improvements for running testing networks using Chutney.
22429   Thanks to a series of patches contributed by "teor", testing networks
22430   should now bootstrap in seconds, rather than minutes.
22432   o Major features (relay, infrastructure):
22433     - Complete revision of the code that relays use to decide which cell
22434       to send next. Formerly, we selected the best circuit to write on
22435       each channel, but we didn't select among channels in any
22436       sophisticated way. Now, we choose the best circuits globally from
22437       among those whose channels are ready to deliver traffic.
22439       This patch implements a new inter-cmux comparison API, a global
22440       high/low watermark mechanism and a global scheduler loop for
22441       transmission prioritization across all channels as well as among
22442       circuits on one channel. This schedule is currently tuned to
22443       (tolerantly) avoid making changes in network performance, but it
22444       should form the basis for major circuit performance increases in
22445       the future. Code by Andrea; tuning by Rob Jansen; implements
22446       ticket 9262.
22448   o Major features (hidden services):
22449     - Make HS port scanning more difficult by immediately closing the
22450       circuit when a user attempts to connect to a nonexistent port.
22451       Closes ticket 13667.
22452     - Add a HiddenServiceStatistics option that allows Tor relays to
22453       gather and publish statistics about the overall size and volume of
22454       hidden service usage. Specifically, when this option is turned on,
22455       an HSDir will publish an approximate number of hidden services
22456       that have published descriptors to it the past 24 hours. Also, if
22457       a relay has acted as a hidden service rendezvous point, it will
22458       publish the approximate amount of rendezvous cells it has relayed
22459       the past 24 hours. The statistics themselves are obfuscated so
22460       that the exact values cannot be derived. For more details see
22461       proposal 238, "Better hidden service stats from Tor relays". This
22462       feature is currently disabled by default. Implements feature 13192.
22464   o Major bugfixes (client, automap):
22465     - Repair automapping with IPv6 addresses. This automapping should
22466       have worked previously, but one piece of debugging code that we
22467       inserted to detect a regression actually caused the regression to
22468       manifest itself again. Fixes bug 13811 and bug 12831; bugfix on
22469       0.2.4.7-alpha. Diagnosed and fixed by Francisco Blas
22470       Izquierdo Riera.
22472   o Major bugfixes (hidden services):
22473     - When closing an introduction circuit that was opened in parallel
22474       with others, don't mark the introduction point as unreachable.
22475       Previously, the first successful connection to an introduction
22476       point would make the other introduction points get marked as
22477       having timed out. Fixes bug 13698; bugfix on 0.0.6rc2.
22479   o Directory authority changes:
22480     - Remove turtles as a directory authority.
22481     - Add longclaw as a new (v3) directory authority. This implements
22482       ticket 13296. This keeps the directory authority count at 9.
22484   o Major removed features:
22485     - Tor clients no longer support connecting to hidden services
22486       running on Tor 0.2.2.x and earlier; the Support022HiddenServices
22487       option has been removed. (There shouldn't be any hidden services
22488       running these versions on the network.) Closes ticket 7803.
22490   o Minor features (client):
22491     - Validate hostnames in SOCKS5 requests more strictly. If SafeSocks
22492       is enabled, reject requests with IP addresses as hostnames.
22493       Resolves ticket 13315.
22495   o Minor features (controller):
22496     - Add a "SIGNAL HEARTBEAT" controller command that tells Tor to
22497       write an unscheduled heartbeat message to the log. Implements
22498       feature 9503.
22500   o Minor features (geoip):
22501     - Update geoip and geoip6 to the November 15 2014 Maxmind GeoLite2
22502       Country database.
22504   o Minor features (hidden services):
22505     - When re-enabling the network, don't try to build introduction
22506       circuits until we have successfully built a circuit. This makes
22507       hidden services come up faster when the network is re-enabled.
22508       Patch from "akwizgran". Closes ticket 13447.
22509     - When we fail to retrieve a hidden service descriptor, send the
22510       controller an "HS_DESC FAILED" controller event. Implements
22511       feature 13212.
22512     - New HiddenServiceDirGroupReadable option to cause hidden service
22513       directories and hostname files to be created group-readable. Patch
22514       from "anon", David Stainton, and "meejah". Closes ticket 11291.
22516   o Minor features (systemd):
22517     - Where supported, when running with systemd, report successful
22518       startup to systemd. Part of ticket 11016. Patch by Michael Scherer.
22519     - When running with systemd, support systemd watchdog messages. Part
22520       of ticket 11016. Patch by Michael Scherer.
22522   o Minor features (transparent proxy):
22523     - Update the transparent proxy option checks to allow for both ipfw
22524       and pf on OS X. Closes ticket 14002.
22525     - Use the correct option when using IPv6 with transparent proxy
22526       support on Linux. Resolves 13808. Patch by Francisco Blas
22527       Izquierdo Riera.
22529   o Minor bugfixes (preventative security, C safety):
22530     - When reading a hexadecimal, base-32, or base-64 encoded value from
22531       a string, always overwrite the whole output buffer. This prevents
22532       some bugs where we would look at (but fortunately, not reveal)
22533       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
22534       versions of Tor.
22535     - Clear all memory targeted by tor_addr_{to,from}_sockaddr(), not
22536       just the part that's used. This makes it harder for data leak bugs
22537       to occur in the event of other programming failures. Resolves
22538       ticket 14041.
22540   o Minor bugfixes (client, microdescriptors):
22541     - Use a full 256 bits of the SHA256 digest of a microdescriptor when
22542       computing which microdescriptors to download. This keeps us from
22543       erroneous download behavior if two microdescriptor digests ever
22544       have the same first 160 bits. Fixes part of bug 13399; bugfix
22545       on 0.2.3.1-alpha.
22546     - Reset a router's status if its microdescriptor digest changes,
22547       even if the first 160 bits remain the same. Fixes part of bug
22548       13399; bugfix on 0.2.3.1-alpha.
22550   o Minor bugfixes (compilation):
22551     - Silence clang warnings under --enable-expensive-hardening,
22552       including implicit truncation of 64 bit values to 32 bit, const
22553       char assignment to self, tautological compare, and additional
22554       parentheses around equality tests. Fixes bug 13577; bugfix
22555       on 0.2.5.4-alpha.
22556     - Fix a clang warning about checking whether an address in the
22557       middle of a structure is NULL. Fixes bug 14001; bugfix
22558       on 0.2.1.2-alpha.
22560   o Minor bugfixes (hidden services):
22561     - Correctly send a controller event when we find that a rendezvous
22562       circuit has finished. Fixes bug 13936; bugfix on 0.1.1.5-alpha.
22563     - Pre-check directory permissions for new hidden-services to avoid
22564       at least one case of "Bug: Acting on config options left us in a
22565       broken state. Dying." Fixes bug 13942; bugfix on 0.0.6pre1.
22566     - When adding a new hidden service (for example, via SETCONF), Tor
22567       no longer congratulates the user for running a relay. Fixes bug
22568       13941; bugfix on 0.2.6.1-alpha.
22569     - When fetching hidden service descriptors, we now check not only
22570       for whether we got the hidden service we had in mind, but also
22571       whether we got the particular descriptors we wanted. This prevents
22572       a class of inefficient but annoying DoS attacks by hidden service
22573       directories. Fixes bug 13214; bugfix on 0.2.1.6-alpha. Reported
22574       by "special".
22576   o Minor bugfixes (Linux seccomp2 sandbox):
22577     - Make transparent proxy support work along with the seccomp2
22578       sandbox. Fixes part of bug 13808; bugfix on 0.2.5.1-alpha. Patch
22579       by Francisco Blas Izquierdo Riera.
22580     - Fix a memory leak in tor-resolve when running with the sandbox
22581       enabled. Fixes bug 14050; bugfix on 0.2.5.9-rc.
22583   o Minor bugfixes (logging):
22584     - Downgrade warnings about RSA signature failures to info log level.
22585       Emit a warning when an extra info document is found incompatible
22586       with a corresponding router descriptor. Fixes bug 9812; bugfix
22587       on 0.0.6rc3.
22588     - Make connection_ap_handshake_attach_circuit() log the circuit ID
22589       correctly. Fixes bug 13701; bugfix on 0.0.6.
22591   o Minor bugfixes (misc):
22592     - Stop allowing invalid address patterns like "*/24" that contain
22593       both a wildcard address and a bit prefix length. This affects all
22594       our address-range parsing code. Fixes bug 7484; bugfix
22595       on 0.0.2pre14.
22597   o Minor bugfixes (testing networks, fast startup):
22598     - Allow Tor to build circuits using a consensus with no exits. If
22599       the consensus has no exits (typical of a bootstrapping test
22600       network), allow Tor to build circuits once enough descriptors have
22601       been downloaded. This assists in bootstrapping a testing Tor
22602       network. Fixes bug 13718; bugfix on 0.2.4.10-alpha. Patch
22603       by "teor".
22604     - When V3AuthVotingInterval is low, give a lower If-Modified-Since
22605       header to directory servers. This allows us to obtain consensuses
22606       promptly when the consensus interval is very short. This assists
22607       in bootstrapping a testing Tor network. Fixes parts of bugs 13718
22608       and 13963; bugfix on 0.2.0.3-alpha. Patch by "teor".
22609     - Stop assuming that private addresses are local when checking
22610       reachability in a TestingTorNetwork. Instead, when testing, assume
22611       all OR connections are remote. (This is necessary due to many test
22612       scenarios running all relays on localhost.) This assists in
22613       bootstrapping a testing Tor network. Fixes bug 13924; bugfix on
22614       0.1.0.1-rc. Patch by "teor".
22615     - Avoid building exit circuits from a consensus with no exits. Now
22616       thanks to our fix for 13718, we accept a no-exit network as not
22617       wholly lost, but we need to remember not to try to build exit
22618       circuits on it. Closes ticket 13814; patch by "teor".
22619     - Stop requiring exits to have non-zero bandwithcapacity in a
22620       TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
22621       ignore exit bandwidthcapacity. This assists in bootstrapping a
22622       testing Tor network. Fixes parts of bugs 13718 and 13839; bugfix
22623       on 0.2.0.3-alpha. Patch by "teor".
22624     - Add "internal" to some bootstrap statuses when no exits are
22625       available. If the consensus does not contain Exits, Tor will only
22626       build internal circuits. In this case, relevant statuses will
22627       contain the word "internal" as indicated in the Tor control-
22628        spec.txt. When bootstrap completes, Tor will be ready to build
22629       internal circuits. If a future consensus contains Exits, exit
22630       circuits may become available. Fixes part of bug 13718; bugfix on
22631       0.2.4.10-alpha. Patch by "teor".
22632     - Decrease minimum consensus interval to 10 seconds when
22633       TestingTorNetwork is set, or 5 seconds for the first consensus.
22634       Fix assumptions throughout the code that assume larger intervals.
22635       Fixes bugs 13718 and 13823; bugfix on 0.2.0.3-alpha. Patch
22636       by "teor".
22637     - Avoid excluding guards from path building in minimal test
22638       networks, when we're in a test network and excluding guards would
22639       exclude all relays. This typically occurs in incredibly small tor
22640       networks, and those using "TestingAuthVoteGuard *". Fixes part of
22641       bug 13718; bugfix on 0.1.1.11-alpha. Patch by "teor".
22643   o Code simplification and refactoring:
22644     - Stop using can_complete_circuits as a global variable; access it
22645       with a function instead.
22646     - Avoid using operators directly as macro arguments: this lets us
22647       apply coccinelle transformations to our codebase more directly.
22648       Closes ticket 13172.
22649     - Combine the functions used to parse ClientTransportPlugin and
22650       ServerTransportPlugin into a single function. Closes ticket 6456.
22651     - Add inline functions and convenience macros for inspecting channel
22652       state. Refactor the code to use convenience macros instead of
22653       checking channel state directly. Fixes issue 7356.
22654     - Document all members of was_router_added_t and rename
22655       ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN to make it less
22656       confusable with ROUTER_WAS_TOO_OLD. Fixes issue 13644.
22657     - In connection_exit_begin_conn(), use END_CIRC_REASON_TORPROTOCOL
22658       constant instead of hardcoded value. Fixes issue 13840.
22659     - Refactor our generic strmap and digestmap types into a single
22660       implementation, so that we can add a new digest256map
22661       type trivially.
22663   o Documentation:
22664     - Document the bridge-authority-only 'networkstatus-bridges' file.
22665       Closes ticket 13713; patch from "tom".
22666     - Fix typo in PredictedPortsRelevanceTime option description in
22667       manpage. Resolves issue 13707.
22668     - Stop suggesting that users specify relays by nickname: it isn't a
22669       good idea. Also, properly cross-reference how to specify relays in
22670       all parts of manual documenting options that take a list of
22671       relays. Closes ticket 13381.
22672     - Clarify the HiddenServiceDir option description in manpage to make
22673       it clear that relative paths are taken with respect to the current
22674       working directory. Also clarify that this behavior is not
22675       guaranteed to remain indefinitely. Fixes issue 13913.
22677   o Testing:
22678     - New tests for many parts of channel, relay, and circuitmux
22679       functionality. Code by Andrea; part of 9262.
22680     - New tests for parse_transport_line(). Part of ticket 6456.
22681     - In the unit tests, use chgrp() to change the group of the unit
22682       test temporary directory to the current user, so that the sticky
22683       bit doesn't interfere with tests that check directory groups.
22684       Closes 13678.
22685     - Add unit tests for resolve_my_addr(). Part of ticket 12376; patch
22686       by 'rl1987'.
22689 Changes in version 0.2.6.1-alpha - 2014-10-30
22690   Tor 0.2.6.1-alpha is the first release in the Tor 0.2.6.x series. It
22691   includes numerous code cleanups and new tests, and fixes a large
22692   number of annoying bugs. Out-of-memory conditions are handled better
22693   than in 0.2.5, pluggable transports have improved proxy support, and
22694   clients now use optimistic data for contacting hidden services. Also,
22695   we are now more robust to changes in what we consider a parseable
22696   directory object, so that tightening restrictions does not have a risk
22697   of introducing infinite download loops.
22699   This is the first alpha release in a new series, so expect there to be
22700   bugs. Users who would rather test out a more stable branch should stay
22701   with 0.2.5.x for now.
22703   o New compiler and system requirements:
22704     - Tor 0.2.6.x requires that your compiler support more of the C99
22705       language standard than before. The 'configure' script now detects
22706       whether your compiler supports C99 mid-block declarations and
22707       designated initializers. If it does not, Tor will not compile.
22709       We may revisit this requirement if it turns out that a significant
22710       number of people need to build Tor with compilers that don't
22711       bother implementing a 15-year-old standard. Closes ticket 13233.
22712     - Tor no longer supports systems without threading support. When we
22713       began working on Tor, there were several systems that didn't have
22714       threads, or where the thread support wasn't able to run the
22715       threads of a single process on multiple CPUs. That no longer
22716       holds: every system where Tor needs to run well now has threading
22717       support. Resolves ticket 12439.
22719   o Removed platform support:
22720     - We no longer include special code to build on Windows CE; as far
22721       as we know, nobody has used Tor on Windows CE in a very long time.
22722       Closes ticket 11446.
22724   o Major features (bridges):
22725     - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable
22726       transports if they are configured via the "TOR_PT_PROXY"
22727       environment variable. Implements proposal 232. Resolves
22728       ticket 8402.
22730   o Major features (client performance, hidden services):
22731     - Allow clients to use optimistic data when connecting to a hidden
22732       service, which should remove a round-trip from hidden service
22733       initialization. See proposal 181 for details. Implements
22734       ticket 13211.
22736   o Major features (directory system):
22737     - Upon receiving an unparseable directory object, if its digest
22738       matches what we expected, then don't try to download it again.
22739       Previously, when we got a descriptor we didn't like, we would keep
22740       trying to download it over and over. Closes ticket 11243.
22742   o Major features (sample torrc):
22743     - Add a new, infrequently-changed "torrc.minimal". This file is
22744       similar to torrc.sample, but it will change as infrequently as
22745       possible, for the benefit of users whose systems prompt them for
22746       intervention whenever a default configuration file is changed.
22747       Making this change allows us to update torrc.sample to be a more
22748       generally useful "sample torrc".
22750   o Major bugfixes (directory authorities):
22751     - Do not assign the HSDir flag to relays if they are not Valid, or
22752       currently hibernating. Fixes 12573; bugfix on 0.2.0.10-alpha.
22754   o Major bugfixes (directory bandwidth performance):
22755     - Don't flush the zlib buffer aggressively when compressing
22756       directory information for clients. This should save about 7% of
22757       the bandwidth currently used for compressed descriptors and
22758       microdescriptors. Fixes bug 11787; bugfix on 0.1.1.23.
22760   o Minor features (security, memory wiping):
22761     - Ensure we securely wipe keys from memory after
22762       crypto_digest_get_digest and init_curve25519_keypair_from_file
22763       have finished using them. Resolves ticket 13477.
22765   o Minor features (security, out-of-memory handling):
22766     - When handling an out-of-memory condition, allocate less memory for
22767       temporary data structures. Fixes issue 10115.
22768     - When handling an out-of-memory condition, consider more types of
22769       buffers, including those on directory connections, and zlib
22770       buffers. Resolves ticket 11792.
22772   o Minor features:
22773     - When identity keypair is generated for first time, log a
22774       congratulatory message that links to the new relay lifecycle
22775       document. Implements feature 10427.
22777   o Minor features (client):
22778     - Clients are now willing to send optimistic data (before they
22779       receive a 'connected' cell) to relays of any version. (Relays
22780       without support for optimistic data are no longer supported on the
22781       Tor network.) Resolves ticket 13153.
22783   o Minor features (directory authorities):
22784     - Don't list relays with a bandwidth estimate of 0 in the consensus.
22785       Implements a feature proposed during discussion of bug 13000.
22786     - In tor-gencert, report an error if the user provides the same
22787       argument more than once.
22788     - If a directory authority can't find a best consensus method in the
22789       votes that it holds, it now falls back to its favorite consensus
22790       method. Previously, it fell back to method 1. Neither of these is
22791       likely to get enough signatures, but "fall back to favorite"
22792       doesn't require us to maintain support an obsolete consensus
22793       method. Implements part of proposal 215.
22795   o Minor features (logging):
22796     - On Unix-like systems, you can now use named pipes as the target of
22797       the Log option, and other options that try to append to files.
22798       Closes ticket 12061. Patch from "carlo von lynX".
22799     - When opening a log file at startup, send it every log message that
22800       we generated between startup and opening it. Previously, log
22801       messages that were generated before opening the log file were only
22802       logged to stdout. Closes ticket 6938.
22803     - Add a TruncateLogFile option to overwrite logs instead of
22804       appending to them. Closes ticket 5583.
22806   o Minor features (portability, Solaris):
22807     - Threads are no longer disabled by default on Solaris; we believe
22808       that the versions of Solaris with broken threading support are all
22809       obsolete by now. Resolves ticket 9495.
22811   o Minor features (relay):
22812     - Re-check our address after we detect a changed IP address from
22813       getsockname(). This ensures that the controller command "GETINFO
22814       address" will report the correct value. Resolves ticket 11582.
22815       Patch from "ra".
22816     - A new AccountingRule option lets Relays set whether they'd like
22817       AccountingMax to be applied separately to inbound and outbound
22818       traffic, or applied to the sum of inbound and outbound traffic.
22819       Resolves ticket 961. Patch by "chobe".
22821   o Minor features (testing networks):
22822     - Add the TestingDirAuthVoteExit option, which lists nodes to assign
22823       the "Exit" flag regardless of their uptime, bandwidth, or exit
22824       policy. TestingTorNetwork must be set for this option to have any
22825       effect. Previously, authorities would take up to 35 minutes to
22826       give nodes the Exit flag in a test network. Partially implements
22827       ticket 13161.
22829   o Minor features (validation):
22830     - Check all date/time values passed to tor_timegm and
22831       parse_rfc1123_time for validity, taking leap years into account.
22832       Improves HTTP header validation. Implemented with bug 13476.
22833     - In correct_tm(), limit the range of values returned by system
22834       localtime(_r) and gmtime(_r) to be between the years 1 and 8099.
22835       This means we don't have to deal with negative or too large dates,
22836       even if a clock is wrong. Otherwise we might fail to read a file
22837       written by us which includes such a date. Fixes bug 13476.
22839   o Minor bugfixes (bridge clients):
22840     - When configured to use a bridge without an identity digest (not
22841       recommended), avoid launching an extra channel to it when
22842       bootstrapping. Fixes bug 7733; bugfix on 0.2.4.4-alpha.
22844   o Minor bugfixes (bridges):
22845     - When DisableNetwork is set, do not launch pluggable transport
22846       plugins, and if any are running, terminate them. Fixes bug 13213;
22847       bugfix on 0.2.3.6-alpha.
22849   o Minor bugfixes (C correctness):
22850     - Fix several instances of possible integer overflow/underflow/NaN.
22851       Fixes bug 13104; bugfix on 0.2.3.1-alpha and later. Patches
22852       from "teor".
22853     - In circuit_build_times_calculate_timeout() in circuitstats.c,
22854       avoid dividing by zero in the pareto calculations. This traps
22855       under clang's "undefined-trap" sanitizer. Fixes bug 13290; bugfix
22856       on 0.2.2.2-alpha.
22857     - Fix an integer overflow in format_time_interval(). Fixes bug
22858       13393; bugfix on 0.2.0.10-alpha.
22859     - Set the correct day of year value when the system's localtime(_r)
22860       or gmtime(_r) functions fail to set struct tm. Not externally
22861       visible. Fixes bug 13476; bugfix on 0.0.2pre14.
22862     - Avoid unlikely signed integer overflow in tor_timegm on systems
22863       with 32-bit time_t. Fixes bug 13476; bugfix on 0.0.2pre14.
22865   o Minor bugfixes (client):
22866     - Fix smartlist_choose_node_by_bandwidth() so that relays with the
22867       BadExit flag are not considered worthy candidates. Fixes bug
22868       13066; bugfix on 0.1.2.3-alpha.
22869     - Use the consensus schedule for downloading consensuses, and not
22870       the generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha.
22871     - Handle unsupported or malformed SOCKS5 requests properly by
22872       responding with the appropriate error message before closing the
22873       connection. Fixes bugs 12971 and 13314; bugfix on 0.0.2pre13.
22875   o Minor bugfixes (client, torrc):
22876     - Stop modifying the value of our DirReqStatistics torrc option just
22877       because we're not a bridge or relay. This bug was causing Tor
22878       Browser users to write "DirReqStatistics 0" in their torrc files
22879       as if they had chosen to change the config. Fixes bug 4244; bugfix
22880       on 0.2.3.1-alpha.
22881     - When GeoIPExcludeUnknown is enabled, do not incorrectly decide
22882       that our options have changed every time we SIGHUP. Fixes bug
22883       9801; bugfix on 0.2.4.10-alpha. Patch from "qwerty1".
22885   o Minor bugfixes (controller):
22886     - Return an error when the second or later arguments of the
22887       "setevents" controller command are invalid events. Previously we
22888       would return success while silently skipping invalid events. Fixes
22889       bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns".
22891   o Minor bugfixes (directory system):
22892     - Always believe that v3 directory authorities serve extra-info
22893       documents, whether they advertise "caches-extra-info" or not.
22894       Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
22895     - When running as a v3 directory authority, advertise that you serve
22896       extra-info documents so that clients who want them can find them
22897       from you too. Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
22898     - Check the BRIDGE_DIRINFO flag bitwise rather than using equality.
22899       Previously, directories offering BRIDGE_DIRINFO and some other
22900       flag (i.e. microdescriptors or extrainfo) would be ignored when
22901       looking for bridges. Partially fixes bug 13163; bugfix
22902       on 0.2.0.7-alpha.
22904   o Minor bugfixes (networking):
22905     - Check for orconns and use connection_or_close_for_error() rather
22906       than connection_mark_for_close() directly in the getsockopt()
22907       failure case of connection_handle_write_impl(). Fixes bug 11302;
22908       bugfix on 0.2.4.4-alpha.
22910   o Minor bugfixes (relay):
22911     - When generating our family list, remove spaces from around the
22912       entries. Fixes bug 12728; bugfix on 0.2.1.7-alpha.
22913     - If our previous bandwidth estimate was 0 bytes, allow publishing a
22914       new relay descriptor immediately. Fixes bug 13000; bugfix
22915       on 0.1.1.6-alpha.
22917   o Minor bugfixes (testing networks):
22918     - Fix TestingDirAuthVoteGuard to properly give out Guard flags in a
22919       testing network. Fixes bug 13064; bugfix on 0.2.5.2-alpha.
22920     - Stop using the default authorities in networks which provide both
22921       AlternateDirAuthority and AlternateBridgeAuthority. Partially
22922       fixes bug 13163; bugfix on 0.2.0.13-alpha.
22924   o Minor bugfixes (testing):
22925     - Stop spawn test failures due to a race condition between the
22926       SIGCHLD handler updating the process status, and the test reading
22927       it. Fixes bug 13291; bugfix on 0.2.3.3-alpha.
22929   o Minor bugfixes (testing, Windows):
22930     - Avoid passing an extra backslash when creating a temporary
22931       directory for running the unit tests on Windows. Fixes bug 12392;
22932       bugfix on 0.2.2.25-alpha. Patch from Gisle Vanem.
22934   o Minor bugfixes (windows):
22935     - Remove code to special-case handling of NTE_BAD_KEYSET when
22936       acquiring windows CryptoAPI context. This error can't actually
22937       occur for the parameters we're providing. Fixes bug 10816; bugfix
22938       on 0.0.2pre26.
22940   o Minor bugfixes (zlib):
22941     - Avoid truncating a zlib stream when trying to finalize it with an
22942       empty output buffer. Fixes bug 11824; bugfix on 0.1.1.23.
22944   o Build fixes:
22945     - Allow our configure script to build correctly with autoconf 2.62
22946       again. Fixes bug 12693; bugfix on 0.2.5.2-alpha.
22947     - Improve the error message from ./configure to make it clear that
22948       when asciidoc has not been found, the user will have to either add
22949       --disable-asciidoc argument or install asciidoc. Resolves
22950       ticket 13228.
22952   o Code simplification and refactoring:
22953     - Change the entry_is_live() function to take named bitfield
22954       elements instead of an unnamed list of booleans. Closes
22955       ticket 12202.
22956     - Refactor and unit-test entry_is_time_to_retry() in entrynodes.c.
22957       Resolves ticket 12205.
22958     - Use calloc and reallocarray functions instead of multiply-
22959       then-malloc. This makes it less likely for us to fall victim to an
22960       integer overflow attack when allocating. Resolves ticket 12855.
22961     - Use the standard macro name SIZE_MAX, instead of our
22962       own SIZE_T_MAX.
22963     - Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in
22964       functions which take them as arguments. Replace 0 with NO_DIRINFO
22965       in a function call for clarity. Seeks to prevent future issues
22966       like 13163.
22967     - Avoid 4 null pointer errors under clang static analysis by using
22968       tor_assert() to prove that the pointers aren't null. Fixes
22969       bug 13284.
22970     - Rework the API of policies_parse_exit_policy() to use a bitmask to
22971       represent parsing options, instead of a confusing mess of
22972       booleans. Resolves ticket 8197.
22973     - Introduce a helper function to parse ExitPolicy in
22974       or_options_t structure.
22976   o Documentation:
22977     - Add a doc/TUNING document with tips for handling large numbers of
22978       TCP connections when running busy Tor relay. Update the warning
22979       message to point to this file when running out of sockets
22980       operating system is allowing to use simultaneously. Resolves
22981       ticket 9708.
22983   o Removed features:
22984     - We no longer remind the user about configuration options that have
22985       been obsolete since 0.2.3.x or earlier. Patch by Adrien Bak.
22986     - Remove our old, non-weighted bandwidth-based node selection code.
22987       Previously, we used it as a fallback when we couldn't perform
22988       weighted bandwidth-based node selection. But that would only
22989       happen in the cases where we had no consensus, or when we had a
22990       consensus generated by buggy or ancient directory authorities. In
22991       either case, it's better to use the more modern, better maintained
22992       algorithm, with reasonable defaults for the weights. Closes
22993       ticket 13126.
22994     - Remove the --disable-curve25519 configure option. Relays and
22995       clients now are required to support curve25519 and the
22996       ntor handshake.
22997     - The old "StrictEntryNodes" and "StrictExitNodes" options, which
22998       used to be deprecated synonyms for "StrictNodes", are now marked
22999       obsolete. Resolves ticket 12226.
23000     - Clients don't understand the BadDirectory flag in the consensus
23001       anymore, and ignore it.
23003   o Testing:
23004     - Refactor the function that chooses guard nodes so that it can more
23005       easily be tested; write some tests for it.
23006     - Fix and re-enable the fgets_eagain unit test. Fixes bug 12503;
23007       bugfix on 0.2.3.1-alpha. Patch from "cypherpunks."
23008     - Create unit tests for format_time_interval(). With bug 13393.
23009     - Add unit tests for tor_timegm signed overflow, tor_timegm and
23010       parse_rfc1123_time validity checks, correct_tm year clamping. Unit
23011       tests (visible) fixes in bug 13476.
23012     - Add a "coverage-html" make target to generate HTML-visualized
23013       coverage results when building with --enable-coverage. (Requires
23014       lcov.) Patch from Kevin Murray.
23015     - Enable the backtrace handler (where supported) when running the
23016       unit tests.
23017     - Revise all unit tests that used the legacy test_* macros to
23018       instead use the recommended tt_* macros. This patch was generated
23019       with coccinelle, to avoid manual errors. Closes ticket 13119.
23021   o Distribution (systemd):
23022     - systemd unit file: only allow tor to write to /var/lib/tor and
23023       /var/log/tor. The rest of the filesystem is accessible for reading
23024       only. Patch by intrigeri; resolves ticket 12751.
23025     - systemd unit file: ensure that the process and all its children
23026       can never gain new privileges. Patch by intrigeri; resolves
23027       ticket 12939.
23028     - systemd unit file: set up /var/run/tor as writable for the Tor
23029       service. Patch by intrigeri; resolves ticket 13196.
23031   o Removed features (directory authorities):
23032     - Remove code that prevented authorities from listing Tor relays
23033       affected by CVE-2011-2769 as guards. These relays are already
23034       rejected altogether due to the minimum version requirement of
23035       0.2.3.16-alpha. Closes ticket 13152.
23036     - The "AuthDirRejectUnlisted" option no longer has any effect, as
23037       the fingerprints file (approved-routers) has been deprecated.
23038     - Directory authorities do not support being Naming dirauths anymore.
23039       The "NamingAuthoritativeDir" config option is now obsolete.
23040     - Directory authorities do not support giving out the BadDirectory
23041       flag anymore.
23042     - Directory authorities no longer advertise or support consensus
23043       methods 1 through 12 inclusive. These consensus methods were
23044       obsolete and/or insecure: maintaining the ability to support them
23045       served no good purpose. Implements part of proposal 215; closes
23046       ticket 10163.
23048   o Testing (test-network.sh):
23049     - Stop using "echo -n", as some shells' built-in echo doesn't
23050       support "-n". Instead, use "/bin/echo -n". Partially fixes
23051       bug 13161.
23052     - Stop an apparent test-network hang when used with make -j2. Fixes
23053       bug 13331.
23054     - Add a --delay option to test-network.sh, which configures the
23055       delay before the chutney network tests for data transmission.
23056       Partially implements ticket 13161.
23059 Changes in version 0.2.5.10 - 2014-10-24
23060   Tor 0.2.5.10 is the first stable release in the 0.2.5 series.
23062   It adds several new security features, including improved
23063   denial-of-service resistance for relays, new compiler hardening
23064   options, and a system-call sandbox for hardened installations on Linux
23065   (requires seccomp2). The controller protocol has several new features,
23066   resolving IPv6 addresses should work better than before, and relays
23067   should be a little more CPU-efficient. We've added support for more
23068   OpenBSD and FreeBSD transparent proxy types. We've improved the build
23069   system and testing infrastructure to allow unit testing of more parts
23070   of the Tor codebase. Finally, we've addressed several nagging pluggable
23071   transport usability issues, and included numerous other small bugfixes
23072   and features mentioned below.
23074   This release marks end-of-life for Tor 0.2.3.x; those Tor versions
23075   have accumulated many known flaws; everyone should upgrade.
23077   o Deprecated versions:
23078     - Tor 0.2.3.x has reached end-of-life; it has received no patches or
23079       attention for some while.
23082 Changes in version 0.2.5.9-rc - 2014-10-20
23083   Tor 0.2.5.9-rc is the third release candidate for the Tor 0.2.5.x
23084   series. It disables SSL3 in response to the recent "POODLE" attack
23085   (even though POODLE does not affect Tor). It also works around a crash
23086   bug caused by some operating systems' response to the "POODLE" attack
23087   (which does affect Tor). It also contains a few miscellaneous fixes.
23089   o Major security fixes:
23090     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
23091       today support TLS 1.0 or later, so we can safely turn off support
23092       for this old (and insecure) protocol. Fixes bug 13426.
23094   o Major bugfixes (openssl bug workaround):
23095     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
23096       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
23097       13471. This is a workaround for an OpenSSL bug.
23099   o Minor bugfixes:
23100     - Disable the sandbox name resolver cache when running tor-resolve:
23101       tor-resolve doesn't use the sandbox code, and turning it on was
23102       breaking attempts to do tor-resolve on a non-default server on
23103       Linux. Fixes bug 13295; bugfix on 0.2.5.3-alpha.
23105   o Compilation fixes:
23106     - Build and run correctly on systems like OpenBSD-current that have
23107       patched OpenSSL to remove get_cipher_by_char and/or its
23108       implementations. Fixes issue 13325.
23110   o Downgraded warnings:
23111     - Downgrade the severity of the 'unexpected sendme cell from client'
23112       from 'warn' to 'protocol warning'. Closes ticket 8093.
23115 Changes in version 0.2.4.25 - 2014-10-20
23116   Tor 0.2.4.25 disables SSL3 in response to the recent "POODLE" attack
23117   (even though POODLE does not affect Tor). It also works around a crash
23118   bug caused by some operating systems' response to the "POODLE" attack
23119   (which does affect Tor).
23121   o Major security fixes (also in 0.2.5.9-rc):
23122     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
23123       today support TLS 1.0 or later, so we can safely turn off support
23124       for this old (and insecure) protocol. Fixes bug 13426.
23126   o Major bugfixes (openssl bug workaround, also in 0.2.5.9-rc):
23127     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
23128       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
23129       13471. This is a workaround for an OpenSSL bug.
23132 Changes in version 0.2.5.8-rc - 2014-09-22
23133   Tor 0.2.5.8-rc is the second release candidate for the Tor 0.2.5.x
23134   series. It fixes a bug that affects consistency and speed when
23135   connecting to hidden services, and it updates the location of one of
23136   the directory authorities.
23138   o Major bugfixes:
23139     - Clients now send the correct address for their chosen rendezvous
23140       point when trying to access a hidden service. They used to send
23141       the wrong address, which would still work some of the time because
23142       they also sent the identity digest of the rendezvous point, and if
23143       the hidden service happened to try connecting to the rendezvous
23144       point from a relay that already had a connection open to it,
23145       the relay would reuse that connection. Now connections to hidden
23146       services should be more robust and faster. Also, this bug meant
23147       that clients were leaking to the hidden service whether they were
23148       on a little-endian (common) or big-endian (rare) system, which for
23149       some users might have reduced their anonymity. Fixes bug 13151;
23150       bugfix on 0.2.1.5-alpha.
23152   o Directory authority changes:
23153     - Change IP address for gabelmoo (v3 directory authority).
23156 Changes in version 0.2.4.24 - 2014-09-22
23157   Tor 0.2.4.24 fixes a bug that affects consistency and speed when
23158   connecting to hidden services, and it updates the location of one of
23159   the directory authorities.
23161   o Major bugfixes:
23162     - Clients now send the correct address for their chosen rendezvous
23163       point when trying to access a hidden service. They used to send
23164       the wrong address, which would still work some of the time because
23165       they also sent the identity digest of the rendezvous point, and if
23166       the hidden service happened to try connecting to the rendezvous
23167       point from a relay that already had a connection open to it,
23168       the relay would reuse that connection. Now connections to hidden
23169       services should be more robust and faster. Also, this bug meant
23170       that clients were leaking to the hidden service whether they were
23171       on a little-endian (common) or big-endian (rare) system, which for
23172       some users might have reduced their anonymity. Fixes bug 13151;
23173       bugfix on 0.2.1.5-alpha.
23175   o Directory authority changes:
23176     - Change IP address for gabelmoo (v3 directory authority).
23178   o Minor features (geoip):
23179     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
23180       Country database.
23183 Changes in version 0.2.5.7-rc - 2014-09-11
23184   Tor 0.2.5.7-rc fixes several regressions from earlier in the 0.2.5.x
23185   release series, and some long-standing bugs related to ORPort reachability
23186   testing and failure to send CREATE cells. It is the first release
23187   candidate for the Tor 0.2.5.x series.
23189   o Major bugfixes (client, startup):
23190     - Start making circuits as soon as DisabledNetwork is turned off.
23191       When Tor started with DisabledNetwork set, it would correctly
23192       conclude that it shouldn't build circuits, but it would mistakenly
23193       cache this conclusion, and continue believing it even when
23194       DisableNetwork is set to 0. Fixes the bug introduced by the fix
23195       for bug 11200; bugfix on 0.2.5.4-alpha.
23196     - Resume expanding abbreviations for command-line options. The fix
23197       for bug 4647 accidentally removed our hack from bug 586 that
23198       rewrote HashedControlPassword to __HashedControlSessionPassword
23199       when it appears on the commandline (which allowed the user to set
23200       her own HashedControlPassword in the torrc file while the
23201       controller generates a fresh session password for each run). Fixes
23202       bug 12948; bugfix on 0.2.5.1-alpha.
23203     - Warn about attempts to run hidden services and relays in the same
23204       process: that's probably not a good idea. Closes ticket 12908.
23206   o Major bugfixes (relay):
23207     - Avoid queuing or sending destroy cells for circuit ID zero when we
23208       fail to send a CREATE cell. Fixes bug 12848; bugfix on 0.0.8pre1.
23209       Found and fixed by "cypherpunks".
23210     - Fix ORPort reachability detection on relays running behind a
23211       proxy, by correctly updating the "local" mark on the controlling
23212       channel when changing the address of an or_connection_t after the
23213       handshake. Fixes bug 12160; bugfix on 0.2.4.4-alpha.
23215   o Minor features (bridge):
23216     - Add an ExtORPortCookieAuthFileGroupReadable option to make the
23217       cookie file for the ExtORPort g+r by default.
23219   o Minor features (geoip):
23220     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
23221       Country database.
23223   o Minor bugfixes (logging):
23224     - Reduce the log severity of the "Pluggable transport proxy does not
23225       provide any needed transports and will not be launched." message,
23226       since Tor Browser includes several ClientTransportPlugin lines in
23227       its torrc-defaults file, leading every Tor Browser user who looks
23228       at her logs to see these notices and wonder if they're dangerous.
23229       Resolves bug 13124; bugfix on 0.2.5.3-alpha.
23230     - Downgrade "Unexpected onionskin length after decryption" warning
23231       to a protocol-warn, since there's nothing relay operators can do
23232       about a client that sends them a malformed create cell. Resolves
23233       bug 12996; bugfix on 0.0.6rc1.
23234     - Log more specific warnings when we get an ESTABLISH_RENDEZVOUS
23235       cell on a cannibalized or non-OR circuit. Resolves ticket 12997.
23236     - When logging information about an EXTEND2 or EXTENDED2 cell, log
23237       their names correctly. Fixes part of bug 12700; bugfix
23238       on 0.2.4.8-alpha.
23239     - When logging information about a relay cell whose command we don't
23240       recognize, log its command as an integer. Fixes part of bug 12700;
23241       bugfix on 0.2.1.10-alpha.
23242     - Escape all strings from the directory connection before logging
23243       them. Fixes bug 13071; bugfix on 0.1.1.15. Patch from "teor".
23245   o Minor bugfixes (controller):
23246     - Restore the functionality of CookieAuthFileGroupReadable. Fixes
23247       bug 12864; bugfix on 0.2.5.1-alpha.
23248     - Actually send TRANSPORT_LAUNCHED and HS_DESC events to
23249       controllers. Fixes bug 13085; bugfix on 0.2.5.1-alpha. Patch
23250       by "teor".
23252   o Minor bugfixes (compilation):
23253     - Fix compilation of test.h with MSVC. Patch from Gisle Vanem;
23254       bugfix on 0.2.5.5-alpha.
23255     - Make the nmake make files work again. Fixes bug 13081. Bugfix on
23256       0.2.5.1-alpha. Patch from "NewEraCracker".
23257     - In routerlist_assert_ok(), don't take the address of a
23258       routerinfo's cache_info member unless that routerinfo is non-NULL.
23259       Fixes bug 13096; bugfix on 0.1.1.9-alpha. Patch by "teor".
23260     - Fix a large number of false positive warnings from the clang
23261       analyzer static analysis tool. This should make real warnings
23262       easier for clang analyzer to find. Patch from "teor". Closes
23263       ticket 13036.
23265   o Distribution (systemd):
23266     - Verify configuration file via ExecStartPre in the systemd unit
23267       file. Patch from intrigeri; resolves ticket 12730.
23268     - Explicitly disable RunAsDaemon in the systemd unit file. Our
23269       current systemd unit uses "Type = simple", so systemd does not
23270       expect tor to fork. If the user has "RunAsDaemon 1" in their
23271       torrc, then things won't work as expected. This is e.g. the case
23272       on Debian (and derivatives), since there we pass "--defaults-torrc
23273       /usr/share/tor/tor-service-defaults-torrc" (that contains
23274       "RunAsDaemon 1") by default. Patch by intrigeri; resolves
23275       ticket 12731.
23277   o Documentation:
23278     - Adjust the URLs in the README to refer to the new locations of
23279       several documents on the website. Fixes bug 12830. Patch from
23280       Matt Pagan.
23281     - Document 'reject6' and 'accept6' ExitPolicy entries. Resolves
23282       ticket 12878.
23285 Changes in version 0.2.5.6-alpha - 2014-07-28
23286   Tor 0.2.5.6-alpha brings us a big step closer to slowing down the
23287   risk from guard rotation, and fixes a variety of other issues to get
23288   us closer to a release candidate.
23290   o Major features (also in 0.2.4.23):
23291     - Make the number of entry guards configurable via a new
23292       NumEntryGuards consensus parameter, and the number of directory
23293       guards configurable via a new NumDirectoryGuards consensus
23294       parameter. Implements ticket 12688.
23296   o Major bugfixes (also in 0.2.4.23):
23297     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
23298       implementation that caused incorrect results on 32-bit
23299       implementations when certain malformed inputs were used along with
23300       a small class of private ntor keys. This bug does not currently
23301       appear to allow an attacker to learn private keys or impersonate a
23302       Tor server, but it could provide a means to distinguish 32-bit Tor
23303       implementations from 64-bit Tor implementations. Fixes bug 12694;
23304       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
23305       Adam Langley.
23307   o Major bugfixes:
23308     - Perform circuit cleanup operations even when circuit
23309       construction operations are disabled (because the network is
23310       disabled, or because there isn't enough directory information).
23311       Previously, when we were not building predictive circuits, we
23312       were not closing expired circuits either. Fixes bug 8387; bugfix on
23313       0.1.1.11-alpha. This bug became visible in 0.2.4.10-alpha when we
23314       became more strict about when we have "enough directory information
23315       to build circuits".
23317   o Minor features:
23318     - Authorities now assign the Guard flag to the fastest 25% of the
23319       network (it used to be the fastest 50%). Also raise the consensus
23320       weight that guarantees the Guard flag from 250 to 2000. For the
23321       current network, this results in about 1100 guards, down from 2500.
23322       This step paves the way for moving the number of entry guards
23323       down to 1 (proposal 236) while still providing reasonable expected
23324       performance for most users. Implements ticket 12690.
23325     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
23326       Country database.
23327     - Slightly enhance the diagnostic message for bug 12184.
23329   o Minor bugfixes (also in 0.2.4.23):
23330     - Warn and drop the circuit if we receive an inbound 'relay early'
23331       cell. Those used to be normal to receive on hidden service circuits
23332       due to bug 1038, but the buggy Tor versions are long gone from
23333       the network so we can afford to resume watching for them. Resolves
23334       the rest of bug 1038; bugfix on 0.2.1.19.
23335     - Correct a confusing error message when trying to extend a circuit
23336       via the control protocol but we don't know a descriptor or
23337       microdescriptor for one of the specified relays. Fixes bug 12718;
23338       bugfix on 0.2.3.1-alpha.
23340   o Minor bugfixes:
23341     - Fix compilation when building with bufferevents enabled. (This
23342       configuration is still not expected to work, however.)
23343       Fixes bugs 12438, 12474, 11578; bugfixes on 0.2.5.1-alpha and
23344       0.2.5.3-alpha. Patches from Anthony G. Basile and Sathyanarayanan
23345       Gunasekaran.
23346     - Compile correctly with builds and forks of OpenSSL (such as
23347       LibreSSL) that disable compression. Fixes bug 12602; bugfix on
23348       0.2.1.1-alpha. Patch from "dhill".
23351 Changes in version 0.2.4.23 - 2014-07-28
23352   Tor 0.2.4.23 brings us a big step closer to slowing down the risk from
23353   guard rotation, and also backports several important fixes from the
23354   Tor 0.2.5 alpha release series.
23356   o Major features:
23357     - Clients now look at the "usecreatefast" consensus parameter to
23358       decide whether to use CREATE_FAST or CREATE cells for the first hop
23359       of their circuit. This approach can improve security on connections
23360       where Tor's circuit handshake is stronger than the available TLS
23361       connection security levels, but the tradeoff is more computational
23362       load on guard relays. Implements proposal 221. Resolves ticket 9386.
23363     - Make the number of entry guards configurable via a new
23364       NumEntryGuards consensus parameter, and the number of directory
23365       guards configurable via a new NumDirectoryGuards consensus
23366       parameter. Implements ticket 12688.
23368   o Major bugfixes:
23369     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
23370       implementation that caused incorrect results on 32-bit
23371       implementations when certain malformed inputs were used along with
23372       a small class of private ntor keys. This bug does not currently
23373       appear to allow an attacker to learn private keys or impersonate a
23374       Tor server, but it could provide a means to distinguish 32-bit Tor
23375       implementations from 64-bit Tor implementations. Fixes bug 12694;
23376       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
23377       Adam Langley.
23379   o Minor bugfixes:
23380     - Warn and drop the circuit if we receive an inbound 'relay early'
23381       cell. Those used to be normal to receive on hidden service circuits
23382       due to bug 1038, but the buggy Tor versions are long gone from
23383       the network so we can afford to resume watching for them. Resolves
23384       the rest of bug 1038; bugfix on 0.2.1.19.
23385     - Correct a confusing error message when trying to extend a circuit
23386       via the control protocol but we don't know a descriptor or
23387       microdescriptor for one of the specified relays. Fixes bug 12718;
23388       bugfix on 0.2.3.1-alpha.
23389     - Avoid an illegal read from stack when initializing the TLS
23390       module using a version of OpenSSL without all of the ciphers
23391       used by the v2 link handshake. Fixes bug 12227; bugfix on
23392       0.2.4.8-alpha.  Found by "starlight".
23394   o Minor features:
23395     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
23396       Country database.
23399 Changes in version 0.2.5.5-alpha - 2014-06-18
23400   Tor 0.2.5.5-alpha fixes a wide variety of remaining issues in the Tor
23401   0.2.5.x release series, including a couple of DoS issues, some
23402   performance regressions, a large number of bugs affecting the Linux
23403   seccomp2 sandbox code, and various other bugfixes. It also adds
23404   diagnostic bugfixes for a few tricky issues that we're trying to
23405   track down.
23407   o Major features (security, traffic analysis resistance):
23408     - Several major improvements to the algorithm used to decide when to
23409       close TLS connections. Previous versions of Tor closed connections
23410       at a fixed interval after the last time a non-padding cell was
23411       sent over the connection, regardless of the target of the
23412       connection. Now, we randomize the intervals by adding up to 50% of
23413       their base value, we measure the length of time since connection
23414       last had at least one circuit, and we allow connections to known
23415       ORs to remain open a little longer (15 minutes instead of 3
23416       minutes minimum). These changes should improve Tor's resistance
23417       against some kinds of traffic analysis, and lower some overhead
23418       from needlessly closed connections. Fixes ticket 6799.
23419       Incidentally fixes ticket 12023; bugfix on 0.2.5.1-alpha.
23421   o Major bugfixes (security, OOM, new since 0.2.5.4-alpha, also in 0.2.4.22):
23422     - Fix a memory leak that could occur if a microdescriptor parse
23423       fails during the tokenizing step. This bug could enable a memory
23424       exhaustion attack by directory servers. Fixes bug 11649; bugfix
23425       on 0.2.2.6-alpha.
23427   o Major bugfixes (security, directory authorities):
23428     - Directory authorities now include a digest of each relay's
23429       identity key as a part of its microdescriptor.
23431       This is a workaround for bug 11743 (reported by "cypherpunks"),
23432       where Tor clients do not support receiving multiple
23433       microdescriptors with the same SHA256 digest in the same
23434       consensus. When clients receive a consensus like this, they only
23435       use one of the relays. Without this fix, a hostile relay could
23436       selectively disable some client use of target relays by
23437       constructing a router descriptor with a different identity and the
23438       same microdescriptor parameters and getting the authorities to
23439       list it in a microdescriptor consensus. This fix prevents an
23440       attacker from causing a microdescriptor collision, because the
23441       router's identity is not forgeable.
23443   o Major bugfixes (relay):
23444     - Use a direct dirport connection when uploading non-anonymous
23445       descriptors to the directory authorities. Previously, relays would
23446       incorrectly use tunnel connections under a fairly wide variety of
23447       circumstances. Fixes bug 11469; bugfix on 0.2.4.3-alpha.
23448     - When a circuit accidentally has the same circuit ID for its
23449       forward and reverse direction, correctly detect the direction of
23450       cells using that circuit. Previously, this bug made roughly one
23451       circuit in a million non-functional. Fixes bug 12195; this is a
23452       bugfix on every version of Tor.
23454   o Major bugfixes (client, pluggable transports):
23455     - When managing pluggable transports, use OS notification facilities
23456       to learn if they have crashed, and don't attempt to kill any
23457       process that has already exited. Fixes bug 8746; bugfix
23458       on 0.2.3.6-alpha.
23460   o Minor features (diagnostic):
23461     - When logging a warning because of bug 7164, additionally check the
23462       hash table for consistency (as proposed on ticket 11737). This may
23463       help diagnose bug 7164.
23464     - When we log a heartbeat, log how many one-hop circuits we have
23465       that are at least 30 minutes old, and log status information about
23466       a few of them. This is an attempt to track down bug 8387.
23467     - When encountering an unexpected CR while writing text to a file on
23468       Windows, log the name of the file. Should help diagnosing
23469       bug 11233.
23470     - Give more specific warnings when a client notices that an onion
23471       handshake has failed. Fixes ticket 9635.
23472     - Add significant new logging code to attempt to diagnose bug 12184,
23473       where relays seem to run out of available circuit IDs.
23474     - Improve the diagnostic log message for bug 8387 even further to
23475       try to improve our odds of figuring out why one-hop directory
23476       circuits sometimes do not get closed.
23478   o Minor features (security, memory management):
23479     - Memory allocation tricks (mempools and buffer freelists) are now
23480       disabled by default. You can turn them back on with
23481       --enable-mempools and --enable-buf-freelists respectively. We're
23482       disabling these features because malloc performance is good enough
23483       on most platforms, and a similar feature in OpenSSL exacerbated
23484       exploitation of the Heartbleed attack. Resolves ticket 11476.
23486   o Minor features (security):
23487     - Apply the secure SipHash-2-4 function to the hash table mapping
23488       circuit IDs and channels to circuits. We missed this one when we
23489       were converting all the other hash functions to use SipHash back
23490       in 0.2.5.3-alpha. Resolves ticket 11750.
23492   o Minor features (build):
23493     - The configure script has a --disable-seccomp option to turn off
23494       support for libseccomp on systems that have it, in case it (or
23495       Tor's use of it) is broken. Resolves ticket 11628.
23497   o Minor features (other):
23498     - Update geoip and geoip6 to the June 4 2014 Maxmind GeoLite2
23499       Country database.
23501   o Minor bugfixes (security, new since 0.2.5.4-alpha, also in 0.2.4.22):
23502     - When running a hidden service, do not allow TunneledDirConns 0;
23503       this will keep the hidden service from running, and also
23504       make it publish its descriptors directly over HTTP. Fixes bug 10849;
23505       bugfix on 0.2.1.1-alpha.
23507   o Minor bugfixes (performance):
23508     - Avoid a bug where every successful connection made us recompute
23509       the flag telling us whether we have sufficient information to
23510       build circuits. Previously, we would forget our cached value
23511       whenever we successfully opened a channel (or marked a router as
23512       running or not running for any other reason), regardless of
23513       whether we had previously believed the router to be running. This
23514       forced us to run an expensive update operation far too often.
23515       Fixes bug 12170; bugfix on 0.1.2.1-alpha.
23516     - Avoid using tor_memeq() for checking relay cell integrity. This
23517       removes a possible performance bottleneck. Fixes part of bug
23518       12169; bugfix on 0.2.1.31.
23520   o Minor bugfixes (compilation):
23521     - Fix compilation of test_status.c when building with MVSC. Bugfix
23522       on 0.2.5.4-alpha. Patch from Gisle Vanem.
23523     - Resolve GCC complaints on OpenBSD about discarding constness in
23524       TO_{ORIGIN,OR}_CIRCUIT functions. Fixes part of bug 11633; bugfix
23525       on 0.1.1.23. Patch from Dana Koch.
23526     - Resolve clang complaints on OpenBSD with -Wshorten-64-to-32 due to
23527       treatment of long and time_t as comparable types. Fixes part of
23528       bug 11633. Patch from Dana Koch.
23529     - Make Tor compile correctly with --disable-buf-freelists. Fixes bug
23530       11623; bugfix on 0.2.5.3-alpha.
23531     - When deciding whether to build the 64-bit curve25519
23532       implementation, detect platforms where we can compile 128-bit
23533       arithmetic but cannot link it. Fixes bug 11729; bugfix on
23534       0.2.4.8-alpha. Patch from "conradev".
23535     - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761;
23536       bugfix on 0.2.3.13-alpha. Found by "cypherpunks".
23537     - Fix compilation with dmalloc. Fixes bug 11605; bugfix
23538       on 0.2.4.10-alpha.
23540   o Minor bugfixes (Directory server):
23541     - When sending a compressed set of descriptors or microdescriptors,
23542       make sure to finalize the zlib stream. Previously, we would write
23543       all the compressed data, but if the last descriptor we wanted to
23544       send was missing or too old, we would not mark the stream as
23545       finished. This caused problems for decompression tools. Fixes bug
23546       11648; bugfix on 0.1.1.23.
23548   o Minor bugfixes (Linux seccomp sandbox):
23549     - Make the seccomp sandbox code compile under ARM Linux. Fixes bug
23550       11622; bugfix on 0.2.5.1-alpha.
23551     - Avoid crashing when re-opening listener ports with the seccomp
23552       sandbox active. Fixes bug 12115; bugfix on 0.2.5.1-alpha.
23553     - Avoid crashing with the seccomp sandbox enabled along with
23554       ConstrainedSockets. Fixes bug 12139; bugfix on 0.2.5.1-alpha.
23555     - When we receive a SIGHUP with the sandbox enabled, correctly
23556       support rotating our log files. Fixes bug 12032; bugfix
23557       on 0.2.5.1-alpha.
23558     - Avoid crash when running with sandboxing enabled and
23559       DirReqStatistics not disabled. Fixes bug 12035; bugfix
23560       on 0.2.5.1-alpha.
23561     - Fix a "BUG" warning when trying to write bridge-stats files with
23562       the Linux syscall sandbox filter enabled. Fixes bug 12041; bugfix
23563       on 0.2.5.1-alpha.
23564     - Prevent the sandbox from crashing on startup when run with the
23565       --enable-expensive-hardening configuration option. Fixes bug
23566       11477; bugfix on 0.2.5.4-alpha.
23567     - When running with DirPortFrontPage and sandboxing both enabled,
23568       reload the DirPortFrontPage correctly when restarting. Fixes bug
23569       12028; bugfix on 0.2.5.1-alpha.
23570     - Don't try to enable the sandbox when using the Tor binary to check
23571       its configuration, hash a passphrase, or so on. Doing so was
23572       crashing on startup for some users. Fixes bug 11609; bugfix
23573       on 0.2.5.1-alpha.
23574     - Avoid warnings when running with sandboxing and node statistics
23575       enabled at the same time. Fixes part of 12064; bugfix on
23576       0.2.5.1-alpha. Patch from Michael Wolf.
23577     - Avoid warnings when running with sandboxing enabled at the same
23578       time as cookie authentication, hidden services, or directory
23579       authority voting. Fixes part of 12064; bugfix on 0.2.5.1-alpha.
23580     - Do not allow options that require calls to exec to be enabled
23581       alongside the seccomp2 sandbox: they will inevitably crash. Fixes
23582       bug 12043; bugfix on 0.2.5.1-alpha.
23583     - Handle failures in getpwnam()/getpwuid() when running with the
23584       User option set and the Linux syscall sandbox enabled. Fixes bug
23585       11946; bugfix on 0.2.5.1-alpha.
23586     - Refactor the getaddrinfo workaround that the seccomp sandbox uses
23587       to avoid calling getaddrinfo() after installing the sandbox
23588       filters. Previously, it preloaded a cache with the IPv4 address
23589       for our hostname, and nothing else. Now, it loads the cache with
23590       every address that it used to initialize the Tor process. Fixes
23591       bug 11970; bugfix on 0.2.5.1-alpha.
23593   o Minor bugfixes (pluggable transports):
23594     - Enable the ExtORPortCookieAuthFile option, to allow changing the
23595       default location of the authentication token for the extended OR
23596       Port as used by sever-side pluggable transports. We had
23597       implemented this option before, but the code to make it settable
23598       had been omitted. Fixes bug 11635; bugfix on 0.2.5.1-alpha.
23599     - Avoid another 60-second delay when starting Tor in a pluggable-
23600       transport-using configuration when we already have cached
23601       descriptors for our bridges. Fixes bug 11965; bugfix
23602       on 0.2.3.6-alpha.
23604   o Minor bugfixes (client):
23605     - Avoid "Tried to open a socket with DisableNetwork set" warnings
23606       when starting a client with bridges configured and DisableNetwork
23607       set. (Tor launcher starts Tor with DisableNetwork set the first
23608       time it runs.) Fixes bug 10405; bugfix on 0.2.3.9-alpha.
23610   o Minor bugfixes (testing):
23611     - The Python parts of the test scripts now work on Python 3 as well
23612       as Python 2, so systems where '/usr/bin/python' is Python 3 will
23613       no longer have the tests break. Fixes bug 11608; bugfix
23614       on 0.2.5.2-alpha.
23615     - When looking for versions of python that we could run the tests
23616       with, check for "python2.7" and "python3.3"; previously we were
23617       only looking for "python", "python2", and "python3". Patch from
23618       Dana Koch. Fixes bug 11632; bugfix on 0.2.5.2-alpha.
23619     - Fix all valgrind warnings produced by the unit tests. There were
23620       over a thousand memory leak warnings previously, mostly produced
23621       by forgetting to free things in the unit test code. Fixes bug
23622       11618, bugfixes on many versions of Tor.
23624   o Minor bugfixes (tor-fw-helper):
23625     - Give a correct log message when tor-fw-helper fails to launch.
23626       (Previously, we would say something like "tor-fw-helper sent us a
23627       string we could not parse".) Fixes bug 9781; bugfix
23628       on 0.2.4.2-alpha.
23630   o Minor bugfixes (relay, threading):
23631     - Check return code on spawn_func() in cpuworker code, so that we
23632       don't think we've spawned a nonworking cpuworker and write junk to
23633       it forever. Fix related to bug 4345; bugfix on all released Tor
23634       versions. Found by "skruffy".
23635     - Use a pthread_attr to make sure that spawn_func() cannot return an
23636       error while at the same time launching a thread. Fix related to
23637       bug 4345; bugfix on all released Tor versions. Reported
23638       by "cypherpunks".
23640   o Minor bugfixes (relay, oom prevention):
23641     - Correctly detect the total available system memory. We tried to do
23642       this in 0.2.5.4-alpha, but the code was set up to always return an
23643       error value, even on success. Fixes bug 11805; bugfix
23644       on 0.2.5.4-alpha.
23646   o Minor bugfixes (relay, other):
23647     - We now drop CREATE cells for already-existent circuit IDs and for
23648       zero-valued circuit IDs, regardless of other factors that might
23649       otherwise have called for DESTROY cells. Fixes bug 12191; bugfix
23650       on 0.0.8pre1.
23651     - Avoid an illegal read from stack when initializing the TLS module
23652       using a version of OpenSSL without all of the ciphers used by the
23653       v2 link handshake. Fixes bug 12227; bugfix on 0.2.4.8-alpha. Found
23654       by "starlight".
23655     - When rejecting DATA cells for stream_id zero, still count them
23656       against the circuit's deliver window so that we don't fail to send
23657       a SENDME. Fixes bug 11246; bugfix on 0.2.4.10-alpha.
23659   o Minor bugfixes (logging):
23660     - Fix a misformatted log message about delayed directory fetches.
23661       Fixes bug 11654; bugfix on 0.2.5.3-alpha.
23662     - Squelch a spurious LD_BUG message "No origin circuit for
23663       successful SOCKS stream" in certain hidden service failure cases;
23664       fixes bug 10616.
23666   o Distribution:
23667     - Include a tor.service file in contrib/dist for use with systemd.
23668       Some distributions will be able to use this file unmodified;
23669       others will need to tweak it, or write their own. Patch from Jamie
23670       Nguyen; resolves ticket 8368.
23672   o Documentation:
23673     - Clean up several option names in the manpage to match their real
23674       names, add the missing documentation for a couple of testing and
23675       directory authority options, remove the documentation for a
23676       V2-directory fetching option that no longer exists. Resolves
23677       ticket 11634.
23678     - Correct the documentation so that it lists the correct directory
23679       for the stats files. (They are in a subdirectory called "stats",
23680       not "status".)
23681     - In the manpage, move more authority-only options into the
23682       directory authority section so that operators of regular directory
23683       caches don't get confused.
23685   o Package cleanup:
23686     - The contrib directory has been sorted and tidied. Before, it was
23687       an unsorted dumping ground for useful and not-so-useful things.
23688       Now, it is divided based on functionality, and the items which
23689       seemed to be nonfunctional or useless have been removed. Resolves
23690       ticket 8966; based on patches from "rl1987".
23692   o Removed code:
23693     - Remove /tor/dbg-stability.txt URL that was meant to help debug WFU
23694       and MTBF calculations, but that nobody was using. Fixes ticket 11742.
23695     - The TunnelDirConns and PreferTunnelledDirConns options no longer
23696       exist; tunneled directory connections have been available since
23697       0.1.2.5-alpha, and turning them off is not a good idea. This is a
23698       brute-force fix for 10849, where "TunnelDirConns 0" would break
23699       hidden services.
23702 Changes in version 0.2.4.22 - 2014-05-16
23703   Tor 0.2.4.22 backports numerous high-priority fixes from the Tor 0.2.5
23704   alpha release series. These include blocking all authority signing
23705   keys that may have been affected by the OpenSSL "heartbleed" bug,
23706   choosing a far more secure set of TLS ciphersuites by default, closing
23707   a couple of memory leaks that could be used to run a target relay out
23708   of RAM, and several others.
23710   o Major features (security, backport from 0.2.5.4-alpha):
23711     - Block authority signing keys that were used on authorities
23712       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
23713       don't have any evidence that these keys _were_ compromised; we're
23714       doing this to be prudent.) Resolves ticket 11464.
23716   o Major bugfixes (security, OOM):
23717     - Fix a memory leak that could occur if a microdescriptor parse
23718       fails during the tokenizing step. This bug could enable a memory
23719       exhaustion attack by directory servers. Fixes bug 11649; bugfix
23720       on 0.2.2.6-alpha.
23722   o Major bugfixes (TLS cipher selection, backport from 0.2.5.4-alpha):
23723     - The relay ciphersuite list is now generated automatically based on
23724       uniform criteria, and includes all OpenSSL ciphersuites with
23725       acceptable strength and forward secrecy. Previously, we had left
23726       some perfectly fine ciphersuites unsupported due to omission or
23727       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
23728       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
23729     - Relays now trust themselves to have a better view than clients of
23730       which TLS ciphersuites are better than others. (Thanks to bug
23731       11513, the relay list is now well-considered, whereas the client
23732       list has been chosen mainly for anti-fingerprinting purposes.)
23733       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
23734       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
23735       AES128. Resolves ticket 11528.
23736     - Clients now try to advertise the same list of ciphersuites as
23737       Firefox 28. This change enables selection of (fast) GCM
23738       ciphersuites, disables some strange old ciphers, and stops
23739       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
23740       Resolves ticket 11438.
23742   o Minor bugfixes (configuration, security):
23743     - When running a hidden service, do not allow TunneledDirConns 0:
23744       trying to set that option together with a hidden service would
23745       otherwise prevent the hidden service from running, and also make
23746       it publish its descriptors directly over HTTP. Fixes bug 10849;
23747       bugfix on 0.2.1.1-alpha.
23749   o Minor bugfixes (controller, backport from 0.2.5.4-alpha):
23750     - Avoid sending a garbage value to the controller when a circuit is
23751       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
23753   o Minor bugfixes (exit relay, backport from 0.2.5.4-alpha):
23754     - Stop leaking memory when we successfully resolve a PTR record.
23755       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
23757   o Minor bugfixes (bridge client, backport from 0.2.5.4-alpha):
23758     - Avoid 60-second delays in the bootstrapping process when Tor is
23759       launching for a second time while using bridges. Fixes bug 9229;
23760       bugfix on 0.2.0.3-alpha.
23762   o Minor bugfixes (relays and bridges, backport from 0.2.5.4-alpha):
23763     - Give the correct URL in the warning message when trying to run a
23764       relay on an ancient version of Windows. Fixes bug 9393.
23766   o Minor bugfixes (compilation):
23767     - Fix a compilation error when compiling with --disable-curve25519.
23768       Fixes bug 9700; bugfix on 0.2.4.17-rc.
23770   o Minor bugfixes:
23771     - Downgrade the warning severity for the the "md was still
23772       referenced 1 node(s)" warning. Tor 0.2.5.4-alpha has better code
23773       for trying to diagnose this bug, and the current warning in
23774       earlier versions of tor achieves nothing useful. Addresses warning
23775       from bug 7164.
23777   o Minor features (log verbosity, backport from 0.2.5.4-alpha):
23778     - When we run out of usable circuit IDs on a channel, log only one
23779       warning for the whole channel, and describe how many circuits
23780       there were on the channel. Fixes part of ticket 11553.
23782   o Minor features (security, backport from 0.2.5.4-alpha):
23783     - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but
23784       leave the default at 8GBytes), to better support Raspberry Pi
23785       users. Fixes bug 9686; bugfix on 0.2.4.14-alpha.
23787   o Documentation (backport from 0.2.5.4-alpha):
23788     - Correctly document that we search for a system torrc file before
23789       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
23790       0.2.3.18-rc.
23793 Changes in version 0.2.5.4-alpha - 2014-04-25
23794   Tor 0.2.5.4-alpha includes several security and performance
23795   improvements for clients and relays, including blacklisting authority
23796   signing keys that were used while susceptible to the OpenSSL
23797   "heartbleed" bug, fixing two expensive functions on busy relays,
23798   improved TLS ciphersuite preference lists, support for run-time
23799   hardening on compilers that support AddressSanitizer, and more work on
23800   the Linux sandbox code.
23802   There are also several usability fixes for clients (especially clients
23803   that use bridges), two new TransPort protocols supported (one on
23804   OpenBSD, one on FreeBSD), and various other bugfixes.
23806   This release marks end-of-life for Tor 0.2.2.x; those Tor versions
23807   have accumulated many known flaws; everyone should upgrade.
23809   o Major features (security):
23810     - If you don't specify MaxMemInQueues yourself, Tor now tries to
23811       pick a good value based on your total system memory. Previously,
23812       the default was always 8 GB. You can still override the default by
23813       setting MaxMemInQueues yourself. Resolves ticket 11396.
23814     - Block authority signing keys that were used on authorities
23815       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
23816       don't have any evidence that these keys _were_ compromised; we're
23817       doing this to be prudent.) Resolves ticket 11464.
23819   o Major features (relay performance):
23820     - Speed up server-side lookups of rendezvous and introduction point
23821       circuits by using hashtables instead of linear searches. These
23822       functions previously accounted between 3 and 7% of CPU usage on
23823       some busy relays. Resolves ticket 9841.
23824     - Avoid wasting CPU when extending a circuit over a channel that is
23825       nearly out of circuit IDs. Previously, we would do a linear scan
23826       over possible circuit IDs before finding one or deciding that we
23827       had exhausted our possibilities. Now, we try at most 64 random
23828       circuit IDs before deciding that we probably won't succeed. Fixes
23829       a possible root cause of ticket 11553.
23831   o Major features (seccomp2 sandbox, Linux only):
23832     - The seccomp2 sandbox can now run a test network for multiple hours
23833       without crashing. The sandbox is still experimental, and more bugs
23834       will probably turn up. To try it, enable "Sandbox 1" on a Linux
23835       host. Resolves ticket 11351.
23836     - Strengthen sandbox code: the sandbox can now test the arguments
23837       for rename(), and blocks _sysctl() entirely. Resolves another part
23838       of ticket 11351.
23839     - When the sandbox blocks a system call, it now tries to log a stack
23840       trace before exiting. Resolves ticket 11465.
23842   o Major bugfixes (TLS cipher selection):
23843     - The relay ciphersuite list is now generated automatically based on
23844       uniform criteria, and includes all OpenSSL ciphersuites with
23845       acceptable strength and forward secrecy. Previously, we had left
23846       some perfectly fine ciphersuites unsupported due to omission or
23847       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
23848       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
23849     - Relays now trust themselves to have a better view than clients of
23850       which TLS ciphersuites are better than others. (Thanks to bug
23851       11513, the relay list is now well-considered, whereas the client
23852       list has been chosen mainly for anti-fingerprinting purposes.)
23853       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
23854       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
23855       AES128. Resolves ticket 11528.
23856     - Clients now try to advertise the same list of ciphersuites as
23857       Firefox 28. This change enables selection of (fast) GCM
23858       ciphersuites, disables some strange old ciphers, and stops
23859       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
23860       Resolves ticket 11438.
23862   o Major bugfixes (bridge client):
23863     - Avoid 60-second delays in the bootstrapping process when Tor is
23864       launching for a second time while using bridges. Fixes bug 9229;
23865       bugfix on 0.2.0.3-alpha.
23867   o Minor features (transparent proxy, *BSD):
23868     - Support FreeBSD's ipfw firewall interface for TransPort ports on
23869       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
23870       10267; patch from "yurivict".
23871     - Support OpenBSD's divert-to rules with the pf firewall for
23872       transparent proxy ports. To enable it, set "TransProxyType
23873       pf-divert". This allows Tor to run a TransPort transparent proxy
23874       port on OpenBSD 4.4 or later without root privileges. See the
23875       pf.conf(5) manual page for information on configuring pf to use
23876       divert-to rules. Closes ticket 10896; patch from Dana Koch.
23878   o Minor features (security):
23879     - New --enable-expensive-hardening option to enable security
23880       hardening options that consume nontrivial amounts of CPU and
23881       memory. Right now, this includes AddressSanitizer and UbSan, which
23882       are supported in newer versions of GCC and Clang. Closes ticket
23883       11477.
23885   o Minor features (log verbosity):
23886     - Demote the message that we give when a flushing connection times
23887       out for too long from NOTICE to INFO. It was usually meaningless.
23888       Resolves ticket 5286.
23889     - Don't log so many notice-level bootstrapping messages at startup
23890       about downloading descriptors. Previously, we'd log a notice
23891       whenever we learned about more routers. Now, we only log a notice
23892       at every 5% of progress. Fixes bug 9963.
23893     - Warn less verbosely when receiving a malformed
23894       ESTABLISH_RENDEZVOUS cell. Fixes ticket 11279.
23895     - When we run out of usable circuit IDs on a channel, log only one
23896       warning for the whole channel, and describe how many circuits
23897       there were on the channel. Fixes part of ticket 11553.
23899   o Minor features (relay):
23900     - If a circuit timed out for at least 3 minutes, check if we have a
23901       new external IP address, and publish a new descriptor with the new
23902       IP address if it changed. Resolves ticket 2454.
23904   o Minor features (controller):
23905     - Make the entire exit policy available from the control port via
23906       GETINFO exit-policy/*. Implements enhancement 7952. Patch from
23907       "rl1987".
23908     - Because of the fix for ticket 11396, the real limit for memory
23909       usage may no longer match the configured MaxMemInQueues value. The
23910       real limit is now exposed via GETINFO limits/max-mem-in-queues.
23912   o Minor features (bridge client):
23913     - Report a more useful failure message when we can't connect to a
23914       bridge because we don't have the right pluggable transport
23915       configured. Resolves ticket 9665. Patch from Fábio J. Bertinatto.
23917   o Minor features (diagnostic):
23918     - Add more log messages to diagnose bug 7164, which causes
23919       intermittent "microdesc_free() called but md was still referenced"
23920       warnings. We now include more information, to figure out why we
23921       might be cleaning a microdescriptor for being too old if it's
23922       still referenced by a live node_t object.
23924   o Minor bugfixes (client, DNSPort):
23925     - When using DNSPort, try to respond to AAAA requests with AAAA
23926       answers. Previously, we hadn't looked at the request type when
23927       deciding which answer type to prefer. Fixes bug 10468; bugfix on
23928       0.2.4.7-alpha.
23929     - When receiving a DNS query for an unsupported record type, reply
23930       with no answer rather than with a NOTIMPL error. This behavior
23931       isn't correct either, but it will break fewer client programs, we
23932       hope. Fixes bug 10268; bugfix on 0.2.0.1-alpha. Original patch
23933       from "epoch".
23935   o Minor bugfixes (exit relay):
23936     - Stop leaking memory when we successfully resolve a PTR record.
23937       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
23939   o Minor bugfixes (bridge client):
23940     - Stop accepting bridge lines containing hostnames. Doing so would
23941       cause clients to perform DNS requests on the hostnames, which was
23942       not sensible behavior. Fixes bug 10801; bugfix on 0.2.0.1-alpha.
23943     - Avoid a 60-second delay in the bootstrapping process when a Tor
23944       client with pluggable transports re-reads its configuration at
23945       just the wrong time. Re-fixes bug 11156; bugfix on 0.2.5.3-alpha.
23947   o Minor bugfixes (client, logging during bootstrap):
23948     - Warn only once if we start logging in an unsafe way. Previously,
23949       we complain as many times as we had problems. Fixes bug 9870;
23950       bugfix on 0.2.5.1-alpha.
23951     - Only report the first fatal bootstrap error on a given OR
23952       connection. This stops us from telling the controller bogus error
23953       messages like "DONE". Fixes bug 10431; bugfix on 0.2.1.1-alpha.
23954     - Be more helpful when trying to run sandboxed on Linux without
23955       libseccomp. Instead of saying "Sandbox is not implemented on this
23956       platform", we now explain that we need to be built with
23957       libseccomp. Fixes bug 11543; bugfix on 0.2.5.1-alpha.
23958     - Avoid generating spurious warnings when starting with
23959       DisableNetwork enabled. Fixes bug 11200 and bug 10405; bugfix on
23960       0.2.3.9-alpha.
23962   o Minor bugfixes (closing OR connections):
23963     - If write_to_buf() in connection_write_to_buf_impl_() ever fails,
23964       check if it's an or_connection_t and correctly call
23965       connection_or_close_for_error() rather than
23966       connection_mark_for_close() directly. Fixes bug 11304; bugfix on
23967       0.2.4.4-alpha.
23968     - When closing all connections on setting DisableNetwork to 1, use
23969       connection_or_close_normally() rather than closing OR connections
23970       out from under the channel layer. Fixes bug 11306; bugfix on
23971       0.2.4.4-alpha.
23973   o Minor bugfixes (controller):
23974     - Avoid sending a garbage value to the controller when a circuit is
23975       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
23977   o Minor bugfixes (tor-fw-helper):
23978     - Allow tor-fw-helper to build again by adding src/ext to its
23979       CPPFLAGS. Fixes bug 11296; bugfix on 0.2.5.3-alpha.
23981   o Minor bugfixes (bridges):
23982     - Avoid potential crashes or bad behavior when launching a
23983       server-side managed proxy with ORPort or ExtORPort temporarily
23984       disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha.
23986   o Minor bugfixes (platform-specific):
23987     - Fix compilation on Solaris, which does not have <endian.h>. Fixes
23988       bug 11426; bugfix on 0.2.5.3-alpha.
23989     - When dumping a malformed directory object to disk, save it in
23990       binary mode on Windows, not text mode. Fixes bug 11342; bugfix on
23991       0.2.2.1-alpha.
23992     - Don't report failures from make_socket_reuseable() on incoming
23993       sockets on OSX: this can happen when incoming connections close
23994       early. Fixes bug 10081.
23996   o Minor bugfixes (trivial memory leaks):
23997     - Fix a small memory leak when signing a directory object. Fixes bug
23998       11275; bugfix on 0.2.4.13-alpha.
23999     - Free placeholder entries in our circuit table at exit; fixes a
24000       harmless memory leak. Fixes bug 11278; bugfix on 0.2.5.1-alpha.
24001     - Don't re-initialize a second set of OpenSSL mutexes when starting
24002       up. Previously, we'd make one set of mutexes, and then immediately
24003       replace them with another. Fixes bug 11726; bugfix on
24004       0.2.5.3-alpha.
24005     - Resolve some memory leaks found by coverity in the unit tests, on
24006       exit in tor-gencert, and on a failure to compute digests for our
24007       own keys when generating a v3 networkstatus vote. These leaks
24008       should never have affected anyone in practice.
24010   o Minor bugfixes (hidden service):
24011     - Only retry attempts to connect to a chosen rendezvous point 8
24012       times, not 30. Fixes bug 4241; bugfix on 0.1.0.1-rc.
24014   o Minor bugfixes (misc code correctness):
24015     - Fix various instances of undefined behavior in channeltls.c,
24016       tor_memmem(), and eventdns.c that would cause us to construct
24017       pointers to memory outside an allocated object. (These invalid
24018       pointers were not accessed, but C does not even allow them to
24019       exist.) Fixes bug 10363; bugfixes on 0.1.1.1-alpha, 0.1.2.1-alpha,
24020       0.2.0.10-alpha, and 0.2.3.6-alpha. Reported by "bobnomnom".
24021     - Use the AddressSanitizer and Ubsan sanitizers (in clang-3.4) to
24022       fix some miscellaneous errors in our tests and codebase. Fixes bug
24023       11232. Bugfixes on versions back as far as 0.2.1.11-alpha.
24024     - Always check return values for unlink, munmap, UnmapViewOfFile;
24025       check strftime return values more often. In some cases all we can
24026       do is report a warning, but this may help prevent deeper bugs from
24027       going unnoticed. Closes ticket 8787; bugfixes on many, many tor
24028       versions.
24029     - Fix numerous warnings from the clang "scan-build" static analyzer.
24030       Some of these are programming style issues; some of them are false
24031       positives that indicated awkward code; some are undefined behavior
24032       cases related to constructing (but not using) invalid pointers;
24033       some are assumptions about API behavior; some are (harmlessly)
24034       logging sizeof(ptr) bytes from a token when sizeof(*ptr) would be
24035       correct; and one or two are genuine bugs that weren't reachable
24036       from the rest of the program. Fixes bug 8793; bugfixes on many,
24037       many tor versions.
24039   o Documentation:
24040     - Build the torify.1 manpage again. Previously, we were only trying
24041       to build it when also building tor-fw-helper. That's why we didn't
24042       notice that we'd broken the ability to build it. Fixes bug 11321;
24043       bugfix on 0.2.5.1-alpha.
24044     - Fix the layout of the SOCKSPort flags in the manpage. Fixes bug
24045       11061; bugfix on 0.2.4.7-alpha.
24046     - Correctly document that we search for a system torrc file before
24047       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
24048       0.2.3.18-rc.
24049     - Resolve warnings from Doxygen.
24051   o Code simplifications and refactoring:
24052     - Remove is_internal_IP() function. Resolves ticket 4645.
24053     - Remove unused function circuit_dump_by_chan from circuitlist.c.
24054       Closes issue 9107; patch from "marek".
24055     - Change our use of the ENUM_BF macro to avoid declarations that
24056       confuse Doxygen.
24058   o Deprecated versions:
24059     - Tor 0.2.2.x has reached end-of-life; it has received no patches or
24060       attention for some while. Directory authorities no longer accept
24061       descriptors from relays running any version of Tor prior to Tor
24062       0.2.3.16-alpha. Resolves ticket 11149.
24064   o Testing:
24065     - New macros in test.h to simplify writing mock-functions for unit
24066       tests. Part of ticket 11507. Patch from Dana Koch.
24067     - Complete tests for the status.c module. Resolves ticket 11507.
24068       Patch from Dana Koch.
24070   o Removed code:
24071     - Remove all code for the long unused v1 directory protocol.
24072       Resolves ticket 11070.
24075 Changes in version 0.2.5.3-alpha - 2014-03-22
24076   Tor 0.2.5.3-alpha includes all the fixes from 0.2.4.21. It contains
24077   two new anti-DoS features for Tor relays, resolves a bug that kept
24078   SOCKS5 support for IPv6 from working, fixes several annoying usability
24079   issues for bridge users, and removes more old code for unused
24080   directory formats.
24082   The Tor 0.2.5.x release series is now in patch-freeze: no feature
24083   patches not already written will be considered for inclusion in 0.2.5.x.
24085   o Major features (relay security, DoS-resistance):
24086     - When deciding whether we have run out of memory and we need to
24087       close circuits, also consider memory allocated in buffers for
24088       streams attached to each circuit.
24090       This change, which extends an anti-DoS feature introduced in
24091       0.2.4.13-alpha and improved in 0.2.4.14-alpha, lets Tor exit relays
24092       better resist more memory-based DoS attacks than before. Since the
24093       MaxMemInCellQueues option now applies to all queues, it is renamed
24094       to MaxMemInQueues. This feature fixes bug 10169.
24095     - Avoid hash-flooding denial-of-service attacks by using the secure
24096       SipHash-2-4 hash function for our hashtables. Without this
24097       feature, an attacker could degrade performance of a targeted
24098       client or server by flooding their data structures with a large
24099       number of entries to be stored at the same hash table position,
24100       thereby slowing down the Tor instance. With this feature, hash
24101       table positions are derived from a randomized cryptographic key,
24102       and an attacker cannot predict which entries will collide. Closes
24103       ticket 4900.
24104     - Decrease the lower limit of MaxMemInQueues to 256 MBytes (but leave
24105       the default at 8GBytes), to better support Raspberry Pi users. Fixes
24106       bug 9686; bugfix on 0.2.4.14-alpha.
24108   o Minor features (bridges, pluggable transports):
24109     - Bridges now write the SHA1 digest of their identity key
24110       fingerprint (that is, a hash of a hash of their public key) to
24111       notice-level logs, and to a new hashed-fingerprint file. This
24112       information will help bridge operators look up their bridge in
24113       Globe and similar tools. Resolves ticket 10884.
24114     - Improve the message that Tor displays when running as a bridge
24115       using pluggable transports without an Extended ORPort listener.
24116       Also, log the message in the log file too. Resolves ticket 11043.
24118   o Minor features (other):
24119     - Add a new option, PredictedPortsRelevanceTime, to control how long
24120       after having received a request to connect to a given port Tor
24121       will try to keep circuits ready in anticipation of future requests
24122       for that port. Patch from "unixninja92"; implements ticket 9176.
24123     - Generate a warning if any ports are listed in the SocksPolicy,
24124       DirPolicy, AuthDirReject, AuthDirInvalid, AuthDirBadDir, or
24125       AuthDirBadExit options. (These options only support address
24126       ranges.) Fixes part of ticket 11108.
24127     - Update geoip and geoip6 to the February 7 2014 Maxmind GeoLite2
24128       Country database.
24130   o Minor bugfixes (new since 0.2.5.2-alpha, also in 0.2.4.21):
24131     - Build without warnings under clang 3.4. (We have some macros that
24132       define static functions only some of which will get used later in
24133       the module. Starting with clang 3.4, these give a warning unless the
24134       unused attribute is set on them.) Resolves ticket 10904.
24135     - Fix build warnings about missing "a2x" comment when building the
24136       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
24137       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
24139   o Minor bugfixes (client):
24140     - Improve the log message when we can't connect to a hidden service
24141       because all of the hidden service directory nodes hosting its
24142       descriptor are excluded. Improves on our fix for bug 10722, which
24143       was a bugfix on 0.2.0.10-alpha.
24144     - Raise a control port warning when we fail to connect to all of
24145       our bridges. Previously, we didn't inform the controller, and
24146       the bootstrap process would stall. Fixes bug 11069; bugfix on
24147       0.2.1.2-alpha.
24148     - Exit immediately when a process-owning controller exits.
24149       Previously, tor relays would wait for a little while after their
24150       controller exited, as if they had gotten an INT signal -- but this
24151       was problematic, since there was no feedback for the user. To do a
24152       clean shutdown, controllers should send an INT signal and give Tor
24153       a chance to clean up. Fixes bug 10449; bugfix on 0.2.2.28-beta.
24154     - Stop attempting to connect to bridges before our pluggable
24155       transports are configured (harmless but resulted in some erroneous
24156       log messages). Fixes bug 11156; bugfix on 0.2.3.2-alpha.
24157     - Fix connections to IPv6 addresses over SOCKS5. Previously, we were
24158       generating incorrect SOCKS5 responses, and confusing client
24159       applications. Fixes bug 10987; bugfix on 0.2.4.7-alpha.
24161   o Minor bugfixes (relays and bridges):
24162     - Avoid crashing on a malformed resolv.conf file when running a
24163       relay using Libevent 1. Fixes bug 8788; bugfix on 0.1.1.23.
24164     - Non-exit relays no longer launch mock DNS requests to check for
24165       DNS hijacking. This has been unnecessary since 0.2.1.7-alpha, when
24166       non-exit relays stopped servicing DNS requests. Fixes bug 965;
24167       bugfix on 0.2.1.7-alpha. Patch from Matt Pagan.
24168     - Bridges now report complete directory request statistics. Related
24169       to bug 5824; bugfix on 0.2.2.1-alpha.
24170     - Bridges now never collect statistics that were designed for
24171       relays. Fixes bug 5824; bugfix on 0.2.3.8-alpha.
24172     - Stop giving annoying warning messages when we decide not to launch
24173       a pluggable transport proxy that we don't need (because there are
24174       no bridges configured to use it). Resolves ticket 5018; bugfix
24175       on 0.2.5.2-alpha.
24176     - Give the correct URL in the warning message when trying to run a
24177       relay on an ancient version of Windows. Fixes bug 9393.
24179   o Minor bugfixes (backtrace support):
24180     - Support automatic backtraces on more platforms by using the
24181       "-fasynchronous-unwind-tables" compiler option. This option is
24182       needed for platforms like 32-bit Intel where "-fomit-frame-pointer"
24183       is on by default and table generation is not. This doesn't yet
24184       add Windows support; only Linux, OSX, and some BSDs are affected.
24185       Reported by 'cypherpunks'; fixes bug 11047; bugfix on 0.2.5.2-alpha.
24186     - Avoid strange behavior if two threads hit failed assertions at the
24187       same time and both try to log backtraces at once. (Previously, if
24188       this had happened, both threads would have stored their intermediate
24189       results in the same buffer, and generated junk outputs.) Reported by
24190       "cypherpunks". Fixes bug 11048; bugfix on 0.2.5.2-alpha.
24191     - Fix a compiler warning in format_number_sigsafe(). Bugfix on
24192       0.2.5.2-alpha; patch from Nick Hopper.
24194   o Minor bugfixes (unit tests):
24195     - Fix a small bug in the unit tests that might have made the tests
24196       call 'chmod' with an uninitialized bitmask. Fixes bug 10928;
24197       bugfix on 0.2.5.1-alpha. Patch from Dana Koch.
24199   o Removed code:
24200     - Remove all remaining code related to version-0 hidden service
24201       descriptors: they have not been in use since 0.2.2.1-alpha. Fixes
24202       the rest of bug 10841.
24204   o Documentation:
24205     - Document in the manpage that "KBytes" may also be written as
24206       "kilobytes" or "KB", that "Kbits" may also be written as
24207       "kilobits", and so forth. Closes ticket 9222.
24208     - Document that the ClientOnly config option overrides ORPort.
24209       Our old explanation made ClientOnly sound as though it did
24210       nothing at all. Resolves bug 9059.
24211     - Explain that SocksPolicy, DirPolicy, and similar options don't
24212       take port arguments. Fixes the other part of ticket 11108.
24213     - Fix a comment about the rend_server_descriptor_t.protocols field
24214       to more accurately describe its range. Also, make that field
24215       unsigned, to more accurately reflect its usage. Fixes bug 9099;
24216       bugfix on 0.2.1.5-alpha.
24217     - Fix the manpage's description of HiddenServiceAuthorizeClient:
24218       the maximum client name length is 16, not 19. Fixes bug 11118;
24219       bugfix on 0.2.1.6-alpha.
24221   o Code simplifications and refactoring:
24222     - Get rid of router->address, since in all cases it was just the
24223       string representation of router->addr. Resolves ticket 5528.
24225   o Test infrastructure:
24226     - Update to the latest version of tinytest.
24227     - Improve the tinytest implementation of string operation tests so
24228       that comparisons with NULL strings no longer crash the tests; they
24229       now just fail, normally. Fixes bug 9004; bugfix on 0.2.2.4-alpha.
24232 Changes in version 0.2.4.21 - 2014-02-28
24233   Tor 0.2.4.21 further improves security against potential adversaries who
24234   find breaking 1024-bit crypto doable, and backports several stability
24235   and robustness patches from the 0.2.5 branch.
24237   o Major features (client security):
24238     - When we choose a path for a 3-hop circuit, make sure it contains
24239       at least one relay that supports the NTor circuit extension
24240       handshake. Otherwise, there is a chance that we're building
24241       a circuit that's worth attacking by an adversary who finds
24242       breaking 1024-bit crypto doable, and that chance changes the game
24243       theory. Implements ticket 9777.
24245   o Major bugfixes:
24246     - Do not treat streams that fail with reason
24247       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
24248       since it could also indicate an ENETUNREACH connection error. Fixes
24249       part of bug 10777; bugfix on 0.2.4.8-alpha.
24251   o Code simplification and refactoring:
24252     - Remove data structures which were introduced to implement the
24253       CellStatistics option: they are now redundant with the new timestamp
24254       field in the regular packed_cell_t data structure, which we did
24255       in 0.2.4.18-rc in order to resolve bug 9093. Resolves ticket 10870.
24257   o Minor features:
24258     - Always clear OpenSSL bignums before freeing them -- even bignums
24259       that don't contain secrets. Resolves ticket 10793. Patch by
24260       Florent Daigniere.
24261     - Build without warnings under clang 3.4. (We have some macros that
24262       define static functions only some of which will get used later in
24263       the module. Starting with clang 3.4, these give a warning unless the
24264       unused attribute is set on them.) Resolves ticket 10904.
24265     - Update geoip and geoip6 files to the February 7 2014 Maxmind
24266       GeoLite2 Country database.
24268   o Minor bugfixes:
24269     - Set the listen() backlog limit to the largest actually supported
24270       on the system, not to the value in a header file. Fixes bug 9716;
24271       bugfix on every released Tor.
24272     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
24273       exit node as a NOROUTE error, not an INTERNAL error, since they
24274       can apparently happen when trying to connect to the wrong sort
24275       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
24276     - Fix build warnings about missing "a2x" comment when building the
24277       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
24278       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
24279     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
24280       not entirely remove it from the connection lists. Fixes bug 9602;
24281       bugfix on 0.2.4.4-alpha.
24282     - Fix a segmentation fault in our benchmark code when running with
24283       Fedora's OpenSSL package, or any other OpenSSL that provides
24284       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
24285     - Turn "circuit handshake stats since last time" log messages into a
24286       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
24288   o Documentation fixes:
24289     - Document that all but one DirPort entry must have the NoAdvertise
24290       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
24293 Changes in version 0.2.5.2-alpha - 2014-02-13
24294   Tor 0.2.5.2-alpha includes all the fixes from 0.2.4.18-rc and 0.2.4.20,
24295   like the "poor random number generation" fix and the "building too many
24296   circuits" fix. It also further improves security against potential
24297   adversaries who find breaking 1024-bit crypto doable, and launches
24298   pluggable transports on demand (which gets us closer to integrating
24299   pluggable transport support by default -- not to be confused with Tor
24300   bundles enabling pluggable transports and bridges by default).
24302   o Major features (client security):
24303     - When we choose a path for a 3-hop circuit, make sure it contains
24304       at least one relay that supports the NTor circuit extension
24305       handshake. Otherwise, there is a chance that we're building
24306       a circuit that's worth attacking by an adversary who finds
24307       breaking 1024-bit crypto doable, and that chance changes the game
24308       theory. Implements ticket 9777.
24309     - Clients now look at the "usecreatefast" consensus parameter to
24310       decide whether to use CREATE_FAST or CREATE cells for the first hop
24311       of their circuit. This approach can improve security on connections
24312       where Tor's circuit handshake is stronger than the available TLS
24313       connection security levels, but the tradeoff is more computational
24314       load on guard relays. Implements proposal 221. Resolves ticket 9386.
24316   o Major features (bridges):
24317     - Don't launch pluggable transport proxies if we don't have any
24318       bridges configured that would use them. Now we can list many
24319       pluggable transports, and Tor will dynamically start one when it
24320       hears a bridge address that needs it. Resolves ticket 5018.
24321     - The bridge directory authority now assigns status flags (Stable,
24322       Guard, etc) to bridges based on thresholds calculated over all
24323       Running bridges. Now bridgedb can finally make use of its features
24324       to e.g. include at least one Stable bridge in its answers. Fixes
24325       bug 9859.
24327   o Major features (other):
24328     - Extend ORCONN controller event to include an "ID" parameter,
24329       and add four new controller event types CONN_BW, CIRC_BW,
24330       CELL_STATS, and TB_EMPTY that show connection and circuit usage.
24331       The new events are emitted in private Tor networks only, with the
24332       goal of being able to better track performance and load during
24333       full-network simulations. Implements proposal 218 and ticket 7359.
24334     - On some platforms (currently: recent OSX versions, glibc-based
24335       platforms that support the ELF format, and a few other
24336       Unix-like operating systems), Tor can now dump stack traces
24337       when a crash occurs or an assertion fails. By default, traces
24338       are dumped to stderr (if possible) and to any logs that are
24339       reporting errors. Implements ticket 9299.
24341   o Major bugfixes:
24342     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
24343       not entirely remove it from the connection lists. Fixes bug 9602;
24344       bugfix on 0.2.4.4-alpha.
24345     - Do not treat streams that fail with reason
24346       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
24347       since it could also indicate an ENETUNREACH connection error. Fixes
24348       part of bug 10777; bugfix on 0.2.4.8-alpha.
24350   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
24351     - Do not allow OpenSSL engines to replace the PRNG, even when
24352       HardwareAccel is set. The only default builtin PRNG engine uses
24353       the Intel RDRAND instruction to replace the entire PRNG, and
24354       ignores all attempts to seed it with more entropy. That's
24355       cryptographically stupid: the right response to a new alleged
24356       entropy source is never to discard all previously used entropy
24357       sources. Fixes bug 10402; works around behavior introduced in
24358       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
24359       and "rl1987".
24360     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
24361       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
24362     - Avoid launching spurious extra circuits when a stream is pending.
24363       This fixes a bug where any circuit that _wasn't_ unusable for new
24364       streams would be treated as if it were, causing extra circuits to
24365       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
24367   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
24368     - No longer stop reading or writing on cpuworker connections when
24369       our rate limiting buckets go empty. Now we should handle circuit
24370       handshake requests more promptly. Resolves bug 9731.
24371     - Stop trying to bootstrap all our directory information from
24372       only our first guard. Discovered while fixing bug 9946; bugfix
24373       on 0.2.4.8-alpha.
24375   o Minor features (bridges, pluggable transports):
24376     - Add threshold cutoffs to the networkstatus document created by
24377       the Bridge Authority. Fixes bug 1117.
24378     - On Windows, spawn background processes using the CREATE_NO_WINDOW
24379       flag. Now Tor Browser Bundle 3.5 with pluggable transports enabled
24380       doesn't pop up a blank console window. (In Tor Browser Bundle 2.x,
24381       Vidalia set this option for us.) Implements ticket 10297.
24383   o Minor features (security):
24384     - Always clear OpenSSL bignums before freeing them -- even bignums
24385       that don't contain secrets. Resolves ticket 10793. Patch by
24386       Florent Daignière.
24388   o Minor features (config options and command line):
24389     - Add an --allow-missing-torrc commandline option that tells Tor to
24390       run even if the configuration file specified by -f is not available.
24391       Implements ticket 10060.
24392     - Add support for the TPROXY transparent proxying facility on Linux.
24393       See documentation for the new TransProxyType option for more
24394       details. Implementation by "thomo". Closes ticket 10582.
24396   o Minor features (controller):
24397     - Add a new "HS_DESC" controller event that reports activities
24398       related to hidden service descriptors. Resolves ticket 8510.
24399     - New "DROPGUARDS" controller command to forget all current entry
24400       guards. Not recommended for ordinary use, since replacing guards
24401       too frequently makes several attacks easier. Resolves ticket 9934;
24402       patch from "ra".
24404   o Minor features (build):
24405     - Assume that a user using ./configure --host wants to cross-compile,
24406       and give an error if we cannot find a properly named
24407       tool-chain. Add a --disable-tool-name-check option to proceed
24408       nevertheless. Addresses ticket 9869. Patch by Benedikt Gollatz.
24409     - If we run ./configure and the compiler recognizes -fstack-protector
24410       but the linker rejects it, warn the user about a potentially missing
24411       libssp package. Addresses ticket 9948. Patch from Benedikt Gollatz.
24413   o Minor features (testing):
24414     - If Python is installed, "make check" now runs extra tests beyond
24415       the unit test scripts.
24416     - When bootstrapping a test network, sometimes very few relays get
24417       the Guard flag. Now a new option "TestingDirAuthVoteGuard" can
24418       specify a set of relays which should be voted Guard regardless of
24419       their uptime or bandwidth. Addresses ticket 9206.
24421   o Minor features (log messages):
24422     - When ServerTransportPlugin is set on a bridge, Tor can write more
24423       useful statistics about bridge use in its extrainfo descriptors,
24424       but only if the Extended ORPort ("ExtORPort") is set too. Add a
24425       log message to inform the user in this case. Resolves ticket 9651.
24426     - When receiving a new controller connection, log the origin address.
24427       Resolves ticket 9698; patch from "sigpipe".
24428     - When logging OpenSSL engine status at startup, log the status of
24429       more engines. Fixes ticket 10043; patch from Joshua Datko.
24430     - Turn "circuit handshake stats since last time" log messages into a
24431       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
24433   o Minor features (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
24434     - Improve the circuit queue out-of-memory handler. Previously, when
24435       we ran low on memory, we'd close whichever circuits had the most
24436       queued cells. Now, we close those that have the *oldest* queued
24437       cells, on the theory that those are most responsible for us
24438       running low on memory. Based on analysis from a forthcoming paper
24439       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
24440     - Generate bootstrapping status update events correctly when fetching
24441       microdescriptors. Fixes bug 9927.
24442     - Update to the October 2 2013 Maxmind GeoLite Country database.
24444   o Minor bugfixes (clients):
24445     - When closing a channel that has already been open, do not close
24446       pending circuits that were waiting to connect to the same relay.
24447       Fixes bug 9880; bugfix on 0.2.5.1-alpha. Thanks to skruffy for
24448       finding this bug.
24450   o Minor bugfixes (relays):
24451     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
24452       exit node as a NOROUTE error, not an INTERNAL error, since they
24453       can apparently happen when trying to connect to the wrong sort
24454       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
24456   o Minor bugfixes (bridges):
24457     - Fix a bug where the first connection works to a bridge that uses a
24458       pluggable transport with client-side parameters, but we don't send
24459       the client-side parameters on subsequent connections. (We don't
24460       use any pluggable transports with client-side parameters yet,
24461       but ScrambleSuit will soon become the first one.) Fixes bug 9162;
24462       bugfix on 0.2.0.3-alpha. Based on a patch from "rl1987".
24464   o Minor bugfixes (node selection):
24465     - If ExcludeNodes is set, consider non-excluded hidden service
24466       directory servers before excluded ones. Do not consider excluded
24467       hidden service directory servers at all if StrictNodes is
24468       set. (Previously, we would sometimes decide to connect to those
24469       servers, and then realize before we initiated a connection that
24470       we had excluded them.) Fixes bug 10722; bugfix on 0.2.0.10-alpha.
24471       Reported by "mr-4".
24472     - If we set the ExitNodes option but it doesn't include any nodes
24473       that have the Exit flag, we would choose not to bootstrap. Now we
24474       bootstrap so long as ExitNodes includes nodes which can exit to
24475       some port. Fixes bug 10543; bugfix on 0.2.4.10-alpha.
24477   o Minor bugfixes (controller and command-line):
24478     - If changing a config option via "setconf" fails in a recoverable
24479       way, we used to nonetheless write our new control ports to the
24480       file described by the "ControlPortWriteToFile" option. Now we only
24481       write out that file if we successfully switch to the new config
24482       option. Fixes bug 5605; bugfix on 0.2.2.26-beta. Patch from "Ryman".
24483     - When a command-line option such as --version or --help that
24484       ordinarily implies --hush appears on the command line along with
24485       --quiet, then actually obey --quiet. Previously, we obeyed --quiet
24486       only if it appeared later on the command line. Fixes bug 9578;
24487       bugfix on 0.2.5.1-alpha.
24489   o Minor bugfixes (code correctness):
24490     - Previously we used two temporary files when writing descriptors to
24491       disk; now we only use one. Fixes bug 1376.
24492     - Remove an erroneous (but impossible and thus harmless) pointer
24493       comparison that would have allowed compilers to skip a bounds
24494       check in channeltls.c. Fixes bugs 10313 and 9980; bugfix on
24495       0.2.0.10-alpha. Noticed by Jared L Wong and David Fifield.
24496     - Fix an always-true assertion in pluggable transports code so it
24497       actually checks what it was trying to check. Fixes bug 10046;
24498       bugfix on 0.2.3.9-alpha. Found by "dcb".
24500   o Minor bugfixes (protocol correctness):
24501     - When receiving a VERSIONS cell with an odd number of bytes, close
24502       the connection immediately since the cell is malformed. Fixes bug
24503       10365; bugfix on 0.2.0.10-alpha. Spotted by "bobnomnom"; fix by
24504       "rl1987".
24506   o Minor bugfixes (build):
24507     - Restore the ability to compile Tor with V2_HANDSHAKE_SERVER
24508       turned off (that is, without support for v2 link handshakes). Fixes
24509       bug 4677; bugfix on 0.2.3.2-alpha. Patch from "piet".
24510     - Fix compilation warnings and startup issues when running with
24511       "Sandbox 1" and libseccomp-2.1.0. Fixes bug 10563; bugfix on
24512       0.2.5.1-alpha.
24513     - Fix compilation on Solaris 9, which didn't like us having an
24514       identifier named "sun". Fixes bug 10565; bugfix in 0.2.5.1-alpha.
24516   o Minor bugfixes (testing):
24517     - Fix a segmentation fault in our benchmark code when running with
24518       Fedora's OpenSSL package, or any other OpenSSL that provides
24519       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
24521   o Minor bugfixes (log messages):
24522     - Fix a bug where clients using bridges would report themselves
24523       as 50% bootstrapped even without a live consensus document.
24524       Fixes bug 9922; bugfix on 0.2.1.1-alpha.
24525     - Suppress a warning where, if there's only one directory authority
24526       in the network, we would complain that votes and signatures cannot
24527       be uploaded to other directory authorities. Fixes bug 10842;
24528       bugfix on 0.2.2.26-beta.
24529     - Report bootstrapping progress correctly when we're downloading
24530       microdescriptors. We had updated our "do we have enough microdescs
24531       to begin building circuits?" logic most recently in 0.2.4.10-alpha
24532       (see bug 5956), but we left the bootstrap status event logic at
24533       "how far through getting 1/4 of them are we?" Fixes bug 9958;
24534       bugfix on 0.2.2.36, which is where they diverged (see bug 5343).
24536   o Minor bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
24537     - Avoid a crash bug when starting with a corrupted microdescriptor
24538       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
24539     - If we fail to dump a previously cached microdescriptor to disk, avoid
24540       freeing duplicate data later on. Fixes bug 10423; bugfix on
24541       0.2.4.13-alpha. Spotted by "bobnomnom".
24543   o Minor bugfixes on 0.2.4.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
24544     - Correctly log long IPv6 exit policies, instead of truncating them
24545       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
24546     - Our default TLS ecdhe groups were backwards: we meant to be using
24547       P224 for relays (for performance win) and P256 for bridges (since
24548       it is more common in the wild). Instead we had it backwards. After
24549       reconsideration, we decided that the default should be P256 on all
24550       hosts, since its security is probably better, and since P224 is
24551       reportedly used quite little in the wild.  Found by "skruffy" on
24552       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
24553     - Free directory authority certificate download statuses on exit
24554       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
24556   o Minor bugfixes on 0.2.3.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
24557     - If the guard we choose first doesn't answer, we would try the
24558       second guard, but once we connected to the second guard we would
24559       abandon it and retry the first one, slowing down bootstrapping.
24560       The fix is to treat all our initially chosen guards as acceptable
24561       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
24562     - Fix an assertion failure that would occur when disabling the
24563       ORPort setting on a running Tor process while accounting was
24564       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
24565     - When examining the list of network interfaces to find our address,
24566       do not consider non-running or disabled network interfaces. Fixes
24567       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
24568     - Avoid an off-by-one error when checking buffer boundaries when
24569       formatting the exit status of a pluggable transport helper.
24570       This is probably not an exploitable bug, but better safe than
24571       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
24572       Pedro Ribeiro.
24574   o Removed code and features:
24575     - Clients now reject any directory authority certificates lacking
24576       a dir-key-crosscert element. These have been included since
24577       0.2.1.9-alpha, so there's no real reason for them to be optional
24578       any longer. Completes proposal 157. Resolves ticket 10162.
24579     - Remove all code that existed to support the v2 directory system,
24580       since there are no longer any v2 directory authorities. Resolves
24581       ticket 10758.
24582     - Remove the HSAuthoritativeDir and AlternateHSAuthority torrc
24583       options, which were used for designating authorities as "Hidden
24584       service authorities". There has been no use of hidden service
24585       authorities since 0.2.2.1-alpha, when we stopped uploading or
24586       downloading v0 hidden service descriptors. Fixes bug 10881; also
24587       part of a fix for bug 10841.
24589   o Code simplification and refactoring:
24590     - Remove some old fallback code designed to keep Tor clients working
24591       in a network with only two working relays. Elsewhere in the code we
24592       have long since stopped supporting such networks, so there wasn't
24593       much point in keeping it around. Addresses ticket 9926.
24594     - Reject 0-length EXTEND2 cells more explicitly. Fixes bug 10536;
24595       bugfix on 0.2.4.8-alpha. Reported by "cypherpunks".
24596     - Remove data structures which were introduced to implement the
24597       CellStatistics option: they are now redundant with the addition
24598       of a timestamp to the regular packed_cell_t data structure, which
24599       we did in 0.2.4.18-rc in order to resolve ticket 9093. Implements
24600       ticket 10870.
24602   o Documentation (man page) fixes:
24603     - Update manpage to describe some of the files you can expect to
24604       find in Tor's DataDirectory. Addresses ticket 9839.
24605     - Document that all but one DirPort entry must have the NoAdvertise
24606       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
24608   o Documentation fixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
24609     - Clarify the usage and risks of setting the ContactInfo torrc line
24610       for your relay or bridge. Resolves ticket 9854.
24611     - Add anchors to the manpage so we can link to the html version of
24612       the documentation for specific options. Resolves ticket 9866.
24613     - Replace remaining references to DirServer in man page and
24614       log entries. Resolves ticket 10124.
24616   o Tool changes:
24617     - Make the "tor-gencert" tool used by directory authority operators
24618       create 2048-bit signing keys by default (rather than 1024-bit, since
24619       1024-bit is uncomfortably small these days). Addresses ticket 10324.
24622 Changes in version 0.2.4.20 - 2013-12-22
24623   Tor 0.2.4.20 fixes potentially poor random number generation for users
24624   who 1) use OpenSSL 1.0.0 or later, 2) set "HardwareAccel 1" in their
24625   torrc file, 3) have "Sandy Bridge" or "Ivy Bridge" Intel processors,
24626   and 4) have no state file in their DataDirectory (as would happen on
24627   first start). Users who generated relay or hidden service identity
24628   keys in such a situation should discard them and generate new ones.
24630   This release also fixes a logic error that caused Tor clients to build
24631   many more preemptive circuits than they actually need.
24633   o Major bugfixes:
24634     - Do not allow OpenSSL engines to replace the PRNG, even when
24635       HardwareAccel is set. The only default builtin PRNG engine uses
24636       the Intel RDRAND instruction to replace the entire PRNG, and
24637       ignores all attempts to seed it with more entropy. That's
24638       cryptographically stupid: the right response to a new alleged
24639       entropy source is never to discard all previously used entropy
24640       sources. Fixes bug 10402; works around behavior introduced in
24641       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
24642       and "rl1987".
24643     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
24644       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
24645     - Avoid launching spurious extra circuits when a stream is pending.
24646       This fixes a bug where any circuit that _wasn't_ unusable for new
24647       streams would be treated as if it were, causing extra circuits to
24648       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
24650   o Minor bugfixes:
24651     - Avoid a crash bug when starting with a corrupted microdescriptor
24652       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
24653     - If we fail to dump a previously cached microdescriptor to disk, avoid
24654       freeing duplicate data later on. Fixes bug 10423; bugfix on
24655       0.2.4.13-alpha. Spotted by "bobnomnom".
24658 Changes in version 0.2.4.19 - 2013-12-11
24659   The Tor 0.2.4 release series is dedicated to the memory of Aaron Swartz
24660   (1986-2013). Aaron worked on diverse projects including helping to guide
24661   Creative Commons, playing a key role in stopping SOPA/PIPA, bringing
24662   transparency to the U.S government's PACER documents, and contributing
24663   design and development for Tor and Tor2Web. Aaron was one of the latest
24664   martyrs in our collective fight for civil liberties and human rights,
24665   and his death is all the more painful because he was one of us.
24667   Tor 0.2.4.19, the first stable release in the 0.2.4 branch, features
24668   a new circuit handshake and link encryption that use ECC to provide
24669   better security and efficiency; makes relays better manage circuit
24670   creation requests; uses "directory guards" to reduce client enumeration
24671   risks; makes bridges collect and report statistics about the pluggable
24672   transports they support; cleans up and improves our geoip database;
24673   gets much closer to IPv6 support for clients, bridges, and relays; makes
24674   directory authorities use measured bandwidths rather than advertised
24675   ones when computing flags and thresholds; disables client-side DNS
24676   caching to reduce tracking risks; and fixes a big bug in bridge
24677   reachability testing. This release introduces two new design
24678   abstractions in the code: a new "channel" abstraction between circuits
24679   and or_connections to allow for implementing alternate relay-to-relay
24680   transports, and a new "circuitmux" abstraction storing the queue of
24681   circuits for a channel. The release also includes many stability,
24682   security, and privacy fixes.
24685 Changes in version 0.2.4.18-rc - 2013-11-16
24686   Tor 0.2.4.18-rc is the fourth release candidate for the Tor 0.2.4.x
24687   series. It takes a variety of fixes from the 0.2.5.x branch to improve
24688   stability, performance, and better handling of edge cases.
24690   o Major features:
24691     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
24692       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
24693       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
24694       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
24695       them to solve bug 6033.)
24697   o Major bugfixes:
24698     - No longer stop reading or writing on cpuworker connections when
24699       our rate limiting buckets go empty. Now we should handle circuit
24700       handshake requests more promptly. Resolves bug 9731.
24701     - If we are unable to save a microdescriptor to the journal, do not
24702       drop it from memory and then reattempt downloading it. Fixes bug
24703       9645; bugfix on 0.2.2.6-alpha.
24704     - Stop trying to bootstrap all our directory information from
24705       only our first guard. Discovered while fixing bug 9946; bugfix
24706       on 0.2.4.8-alpha.
24707     - The new channel code sometimes lost track of in-progress circuits,
24708       causing long-running clients to stop building new circuits. The
24709       fix is to always call circuit_n_chan_done(chan, 0) from
24710       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
24712   o Minor bugfixes (on 0.2.4.x):
24713     - Correctly log long IPv6 exit policies, instead of truncating them
24714       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
24715     - Our default TLS ecdhe groups were backwards: we meant to be using
24716       P224 for relays (for performance win) and P256 for bridges (since
24717       it is more common in the wild). Instead we had it backwards. After
24718       reconsideration, we decided that the default should be P256 on all
24719       hosts, since its security is probably better, and since P224 is
24720       reportedly used quite little in the wild.  Found by "skruffy" on
24721       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
24722     - Free directory authority certificate download statuses on exit
24723       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
24725   o Minor bugfixes (on 0.2.3.x and earlier):
24726     - If the guard we choose first doesn't answer, we would try the
24727       second guard, but once we connected to the second guard we would
24728       abandon it and retry the first one, slowing down bootstrapping.
24729       The fix is to treat all our initially chosen guards as acceptable
24730       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
24731     - Fix an assertion failure that would occur when disabling the
24732       ORPort setting on a running Tor process while accounting was
24733       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
24734     - When examining the list of network interfaces to find our address,
24735       do not consider non-running or disabled network interfaces. Fixes
24736       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
24737     - Avoid an off-by-one error when checking buffer boundaries when
24738       formatting the exit status of a pluggable transport helper.
24739       This is probably not an exploitable bug, but better safe than
24740       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
24741       Pedro Ribeiro.
24743   o Minor features (protecting client timestamps):
24744     - Clients no longer send timestamps in their NETINFO cells. These were
24745       not used for anything, and they provided one small way for clients
24746       to be distinguished from each other as they moved from network to
24747       network or behind NAT. Implements part of proposal 222.
24748     - Clients now round timestamps in INTRODUCE cells down to the nearest
24749       10 minutes. If a new Support022HiddenServices option is set to 0, or
24750       if it's set to "auto" and the feature is disabled in the consensus,
24751       the timestamp is sent as 0 instead. Implements part of proposal 222.
24752     - Stop sending timestamps in AUTHENTICATE cells. This is not such
24753       a big deal from a security point of view, but it achieves no actual
24754       good purpose, and isn't needed. Implements part of proposal 222.
24755     - Reduce down accuracy of timestamps in hidden service descriptors.
24756       Implements part of proposal 222.
24758   o Minor features (other):
24759     - Improve the circuit queue out-of-memory handler. Previously, when
24760       we ran low on memory, we'd close whichever circuits had the most
24761       queued cells. Now, we close those that have the *oldest* queued
24762       cells, on the theory that those are most responsible for us
24763       running low on memory. Based on analysis from a forthcoming paper
24764       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
24765     - Generate bootstrapping status update events correctly when fetching
24766       microdescriptors. Fixes bug 9927.
24767     - Update to the October 2 2013 Maxmind GeoLite Country database.
24769   o Documentation fixes:
24770     - Clarify the usage and risks of setting the ContactInfo torrc line
24771       for your relay or bridge. Resolves ticket 9854.
24772     - Add anchors to the manpage so we can link to the html version of
24773       the documentation for specific options. Resolves ticket 9866.
24774     - Replace remaining references to DirServer in man page and
24775       log entries. Resolves ticket 10124.
24778 Changes in version 0.2.5.1-alpha - 2013-10-02
24779   Tor 0.2.5.1-alpha introduces experimental support for syscall sandboxing
24780   on Linux, allows bridges that offer pluggable transports to report usage
24781   statistics, fixes many issues to make testing easier, and provides
24782   a pile of minor features and bugfixes that have been waiting for a
24783   release of the new branch.
24785   This is the first alpha release in a new series, so expect there to
24786   be bugs. Users who would rather test out a more stable branch should
24787   stay with 0.2.4.x for now.
24789   o Major features (security):
24790     - Use the seccomp2 syscall filtering facility on Linux to limit
24791       which system calls Tor can invoke. This is an experimental,
24792       Linux-only feature to provide defense-in-depth against unknown
24793       attacks. To try turning it on, set "Sandbox 1" in your torrc
24794       file. Please be ready to report bugs. We hope to add support
24795       for better sandboxing in the future, including more fine-grained
24796       filters, better division of responsibility, and support for more
24797       platforms. This work has been done by Cristian-Matei Toader for
24798       Google Summer of Code.
24799     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
24800       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
24801       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
24802       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
24803       them to solve bug 6033.)
24805   o Major features (other):
24806     - Add support for passing arguments to managed pluggable transport
24807       proxies. Implements ticket 3594.
24808     - Bridges now track GeoIP information and the number of their users
24809       even when pluggable transports are in use, and report usage
24810       statistics in their extra-info descriptors. Resolves tickets 4773
24811       and 5040.
24812     - Make testing Tor networks bootstrap better: lower directory fetch
24813       retry schedules and maximum interval without directory requests,
24814       and raise maximum download tries. Implements ticket 6752.
24815     - Add make target 'test-network' to run tests on a Chutney network.
24816       Implements ticket 8530.
24817     - The ntor handshake is now on-by-default, no matter what the
24818       directory authorities recommend. Implements ticket 8561.
24820   o Major bugfixes:
24821     - Instead of writing destroy cells directly to outgoing connection
24822       buffers, queue them and intersperse them with other outgoing cells.
24823       This can prevent a set of resource starvation conditions where too
24824       many pending destroy cells prevent data cells from actually getting
24825       delivered. Reported by "oftc_must_be_destroyed". Fixes bug 7912;
24826       bugfix on 0.2.0.1-alpha.
24827     - If we are unable to save a microdescriptor to the journal, do not
24828       drop it from memory and then reattempt downloading it. Fixes bug
24829       9645; bugfix on 0.2.2.6-alpha.
24830     - The new channel code sometimes lost track of in-progress circuits,
24831       causing long-running clients to stop building new circuits. The
24832       fix is to always call circuit_n_chan_done(chan, 0) from
24833       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
24835   o Build features:
24836     - Tor now builds each source file in two modes: a mode that avoids
24837       exposing identifiers needlessly, and another mode that exposes
24838       more identifiers for testing. This lets the compiler do better at
24839       optimizing the production code, while enabling us to take more
24840       radical measures to let the unit tests test things.
24841     - The production builds no longer include functions used only in
24842       the unit tests; all functions exposed from a module only for
24843       unit-testing are now static in production builds.
24844     - Add an --enable-coverage configuration option to make the unit
24845       tests (and a new src/or/tor-cov target) to build with gcov test
24846       coverage support.
24848   o Testing:
24849     - We now have rudimentary function mocking support that our unit
24850       tests can use to test functions in isolation. Function mocking
24851       lets the tests temporarily replace a function's dependencies with
24852       stub functions, so that the tests can check the function without
24853       invoking the other functions it calls.
24854     - Add more unit tests for the <circid,channel>->circuit map, and
24855       the destroy-cell-tracking code to fix bug 7912.
24856     - Unit tests for failing cases of the TAP onion handshake.
24857     - More unit tests for address-manipulation functions.
24859   o Minor features (protecting client timestamps):
24860     - Clients no longer send timestamps in their NETINFO cells. These were
24861       not used for anything, and they provided one small way for clients
24862       to be distinguished from each other as they moved from network to
24863       network or behind NAT. Implements part of proposal 222.
24864     - Clients now round timestamps in INTRODUCE cells down to the nearest
24865       10 minutes. If a new Support022HiddenServices option is set to 0, or
24866       if it's set to "auto" and the feature is disabled in the consensus,
24867       the timestamp is sent as 0 instead. Implements part of proposal 222.
24868     - Stop sending timestamps in AUTHENTICATE cells. This is not such
24869       a big deal from a security point of view, but it achieves no actual
24870       good purpose, and isn't needed. Implements part of proposal 222.
24871     - Reduce down accuracy of timestamps in hidden service descriptors.
24872       Implements part of proposal 222.
24874   o Minor features (config options):
24875     - Config (torrc) lines now handle fingerprints which are missing
24876       their initial '$'. Resolves ticket 4341; improvement over 0.0.9pre5.
24877     - Support a --dump-config option to print some or all of the
24878       configured options. Mainly useful for debugging the command-line
24879       option parsing code. Helps resolve ticket 4647.
24880     - Raise awareness of safer logging: notify user of potentially
24881       unsafe config options, like logging more verbosely than severity
24882       "notice" or setting SafeLogging to 0. Resolves ticket 5584.
24883     - Add a new configuration option TestingV3AuthVotingStartOffset
24884       that bootstraps a network faster by changing the timing for
24885       consensus votes. Addresses ticket 8532.
24886     - Add a new torrc option "ServerTransportOptions" that allows
24887       bridge operators to pass configuration parameters to their
24888       pluggable transports. Resolves ticket 8929.
24889     - The config (torrc) file now accepts bandwidth and space limits in
24890       bits as well as bytes. (Anywhere that you can say "2 Kilobytes",
24891       you can now say "16 kilobits", and so on.) Resolves ticket 9214.
24892       Patch by CharlieB.
24894   o Minor features (build):
24895     - Add support for `--library-versions` flag. Implements ticket 6384.
24896     - Return the "unexpected sendme" warnings to a warn severity, but make
24897       them rate limited, to help diagnose ticket 8093.
24898     - Detect a missing asciidoc, and warn the user about it, during
24899       configure rather than at build time. Fixes issue 6506. Patch from
24900       Arlo Breault.
24902   o Minor features (other):
24903     - Use the SOCK_NONBLOCK socket type, if supported, to open nonblocking
24904       sockets in a single system call. Implements ticket 5129.
24905     - Log current accounting state (bytes sent and received + remaining
24906       time for the current accounting period) in the relay's heartbeat
24907       message. Implements ticket 5526; patch from Peter Retzlaff.
24908     - Implement the TRANSPORT_LAUNCHED control port event that
24909       notifies controllers about new launched pluggable
24910       transports. Resolves ticket 5609.
24911     - If we're using the pure-C 32-bit curve25519_donna implementation
24912       of curve25519, build it with the -fomit-frame-pointer option to
24913       make it go faster on register-starved hosts. This improves our
24914       handshake performance by about 6% on i386 hosts without nacl.
24915       Closes ticket 8109.
24916     - Update to the September 4 2013 Maxmind GeoLite Country database.
24918   o Minor bugfixes:
24919     - Set the listen() backlog limit to the largest actually supported
24920       on the system, not to the value in a header file. Fixes bug 9716;
24921       bugfix on every released Tor.
24922     - No longer accept malformed http headers when parsing urls from
24923       headers. Now we reply with Bad Request ("400"). Fixes bug 2767;
24924       bugfix on 0.0.6pre1.
24925     - In munge_extrainfo_into_routerinfo(), check the return value of
24926       memchr(). This would have been a serious issue if we ever passed
24927       it a non-extrainfo. Fixes bug 8791; bugfix on 0.2.0.6-alpha. Patch
24928       from Arlo Breault.
24929     - On the chance that somebody manages to build Tor on a
24930       platform where time_t is unsigned, correct the way that
24931       microdesc_add_to_cache() handles negative time arguments.
24932       Fixes bug 8042; bugfix on 0.2.3.1-alpha.
24933     - Reject relative control socket paths and emit a warning. Previously,
24934       single-component control socket paths would be rejected, but Tor
24935       would not log why it could not validate the config. Fixes bug 9258;
24936       bugfix on 0.2.3.16-alpha.
24938   o Minor bugfixes (command line):
24939     - Use a single command-line parser for parsing torrc options on the
24940       command line and for finding special command-line options to avoid
24941       inconsistent behavior for torrc option arguments that have the same
24942       names as command-line options. Fixes bugs 4647 and 9578; bugfix on
24943       0.0.9pre5.
24944     - No longer allow 'tor --hash-password' with no arguments. Fixes bug
24945       9573; bugfix on 0.0.9pre5.
24947   o Minor fixes (build, auxiliary programs):
24948     - Stop preprocessing the "torify" script with autoconf, since
24949       it no longer refers to LOCALSTATEDIR. Fixes bug 5505; patch
24950       from Guilhem.
24951     - The tor-fw-helper program now follows the standard convention and
24952       exits with status code "0" on success. Fixes bug 9030; bugfix on
24953       0.2.3.1-alpha. Patch by Arlo Breault.
24954     - Corrected ./configure advice for what openssl dev package you should
24955       install on Debian. Fixes bug 9207; bugfix on 0.2.0.1-alpha.
24957   o Minor code improvements:
24958     - Remove constants and tests for PKCS1 padding; it's insecure and
24959       shouldn't be used for anything new. Fixes bug 8792; patch
24960       from Arlo Breault.
24961     - Remove instances of strcpy() from the unit tests. They weren't
24962       hurting anything, since they were only in the unit tests, but it's
24963       embarrassing to have strcpy() in the code at all, and some analysis
24964       tools don't like it. Fixes bug 8790; bugfix on 0.2.3.6-alpha and
24965       0.2.3.8-alpha. Patch from Arlo Breault.
24967   o Removed features:
24968     - Remove migration code from when we renamed the "cached-routers"
24969       file to "cached-descriptors" back in 0.2.0.8-alpha. This
24970       incidentally resolves ticket 6502 by cleaning up the related code
24971       a bit. Patch from Akshay Hebbar.
24973   o Code simplification and refactoring:
24974     - Extract the common duplicated code for creating a subdirectory
24975       of the data directory and writing to a file in it. Fixes ticket
24976       4282; patch from Peter Retzlaff.
24977     - Since OpenSSL 0.9.7, the i2d_*() functions support allocating output
24978       buffer. Avoid calling twice: i2d_RSAPublicKey(), i2d_DHparams(),
24979       i2d_X509(), and i2d_PublicKey(). Resolves ticket 5170.
24980     - Add a set of accessor functions for the circuit timeout data
24981       structure. Fixes ticket 6153; patch from "piet".
24982     - Clean up exit paths from connection_listener_new(). Closes ticket
24983       8789. Patch from Arlo Breault.
24984     - Since we rely on OpenSSL 0.9.8 now, we can use EVP_PKEY_cmp()
24985       and drop our own custom pkey_eq() implementation. Fixes bug 9043.
24986     - Use a doubly-linked list to implement the global circuit list.
24987       Resolves ticket 9108. Patch from Marek Majkowski.
24988     - Remove contrib/id_to_fp.c since it wasn't used anywhere.
24991 Changes in version 0.2.4.17-rc - 2013-09-05
24992   Tor 0.2.4.17-rc is the third release candidate for the Tor 0.2.4.x
24993   series. It adds an emergency step to help us tolerate the massive
24994   influx of users: 0.2.4 clients using the new (faster and safer) "NTor"
24995   circuit-level handshakes now effectively jump the queue compared to
24996   the 0.2.3 clients using "TAP" handshakes. This release also fixes a
24997   big bug hindering bridge reachability tests.
24999   o Major features:
25000     - Relays now process the new "NTor" circuit-level handshake requests
25001       with higher priority than the old "TAP" circuit-level handshake
25002       requests. We still process some TAP requests to not totally starve
25003       0.2.3 clients when NTor becomes popular. A new consensus parameter
25004       "NumNTorsPerTAP" lets us tune the balance later if we need to.
25005       Implements ticket 9574.
25007   o Major bugfixes:
25008     - If the circuit build timeout logic is disabled (via the consensus,
25009       or because we are an authority), then don't build testing circuits.
25010       Fixes bug 9657; bugfix on 0.2.2.14-alpha.
25011     - Bridges now send AUTH_CHALLENGE cells during their v3 handshakes;
25012       previously they did not, which prevented them from receiving
25013       successful connections from relays for self-test or bandwidth
25014       testing. Also, when a relay is extending a circuit to a bridge,
25015       it needs to send a NETINFO cell, even when the bridge hasn't sent
25016       an AUTH_CHALLENGE cell. Fixes bug 9546; bugfix on 0.2.3.6-alpha.
25017     - If the time to download the next old-style networkstatus is in
25018       the future, do not decline to consider whether to download the
25019       next microdescriptor networkstatus. Fixes bug 9564; bugfix on
25020       0.2.3.14-alpha.
25022   o Minor bugfixes:
25023     - Avoid double-closing the listener socket in our socketpair()
25024       replacement (used on Windows) in the case where the addresses on
25025       our opened sockets don't match what we expected. Fixes bug 9400;
25026       bugfix on 0.0.2pre7. Found by Coverity.
25028   o Minor fixes (config options):
25029     - Avoid overflows when the user sets MaxCircuitDirtiness to a
25030       ridiculously high value, by imposing a (ridiculously high) 30-day
25031       maximum on MaxCircuitDirtiness.
25032     - Fix the documentation of HeartbeatPeriod to say that the heartbeat
25033       message is logged at notice, not at info.
25034     - Warn and fail if a server is configured not to advertise any
25035       ORPorts at all. (We need *something* to put in our descriptor,
25036       or we just won't work.)
25038   o Minor features:
25039     - Track how many "TAP" and "NTor" circuit handshake requests we get,
25040       and how many we complete, and log it every hour to help relay
25041       operators follow trends in network load. Addresses ticket 9658.
25042     - Update to the August 7 2013 Maxmind GeoLite Country database.
25045 Changes in version 0.2.4.16-rc - 2013-08-10
25046   Tor 0.2.4.16-rc is the second release candidate for the Tor 0.2.4.x
25047   series. It fixes several crash bugs in the 0.2.4 branch.
25049   o Major bugfixes:
25050     - Fix a bug in the voting algorithm that could yield incorrect results
25051       when a non-naming authority declared too many flags. Fixes bug 9200;
25052       bugfix on 0.2.0.3-alpha.
25053     - Fix an uninitialized read that could in some cases lead to a remote
25054       crash while parsing INTRODUCE2 cells. Bugfix on 0.2.4.1-alpha.
25055       Anybody running a hidden service on the experimental 0.2.4.x
25056       branch should upgrade. (This is, so far as we know, unrelated to
25057       the recent news.)
25058     - Avoid an assertion failure when processing DNS replies without the
25059       answer types we expected. Fixes bug 9337; bugfix on 0.2.4.7-alpha.
25060     - Avoid a crash when using --hash-password. Fixes bug 9295; bugfix on
25061       0.2.4.15-rc. Found by stem integration tests.
25063   o Minor bugfixes:
25064     - Fix an invalid memory read that occurred when a pluggable
25065       transport proxy failed its configuration protocol.
25066       Fixes bug 9288; bugfix on 0.2.4.1-alpha.
25067     - When evaluating whether to use a connection that we haven't
25068       decided is canonical using a recent link protocol version,
25069       decide that it's canonical only if it used address _does_
25070       match the desired address. Fixes bug 9309; bugfix on
25071       0.2.4.4-alpha. Reported by skruffy.
25072     - Make the default behavior of NumDirectoryGuards be to track
25073       NumEntryGuards. Now a user who changes only NumEntryGuards will get
25074       the behavior she expects. Fixes bug 9354; bugfix on 0.2.4.8-alpha.
25075     - Fix a spurious compilation warning with some older versions of
25076       GCC on FreeBSD. Fixes bug 9254; bugfix on 0.2.4.14-alpha.
25078   o Minor features:
25079     - Update to the July 3 2013 Maxmind GeoLite Country database.
25082 Changes in version 0.2.4.15-rc - 2013-07-01
25083   Tor 0.2.4.15-rc is the first release candidate for the Tor 0.2.4.x
25084   series. It fixes a few smaller bugs, but generally appears stable.
25085   Please test it and let us know whether it is!
25087   o Major bugfixes:
25088     - When receiving a new configuration file via the control port's
25089       LOADCONF command, do not treat the defaults file as absent.
25090       Fixes bug 9122; bugfix on 0.2.3.9-alpha.
25092   o Minor features:
25093     - Issue a warning when running with the bufferevents backend enabled.
25094       It's still not stable, and people should know that they're likely
25095       to hit unexpected problems. Closes ticket 9147.
25098 Changes in version 0.2.4.14-alpha - 2013-06-18
25099   Tor 0.2.4.14-alpha fixes a pair of client guard enumeration problems
25100   present in 0.2.4.13-alpha.
25102   o Major bugfixes:
25103     - When we have too much memory queued in circuits (according to a new
25104       MaxMemInCellQueues option), close the circuits consuming the most
25105       memory. This prevents us from running out of memory as a relay if
25106       circuits fill up faster than they can be drained. Fixes bug 9063;
25107       bugfix on the 54th commit of Tor. This bug is a further fix beyond
25108       bug 6252, whose fix was merged into 0.2.3.21-rc.
25110       This change also fixes an earlier approach taken in 0.2.4.13-alpha,
25111       where we tried to solve this issue simply by imposing an upper limit
25112       on the number of queued cells for a single circuit. That approach
25113       proved to be problematic, since there are ways to provoke clients to
25114       send a number of cells in excess of any such reasonable limit. Fixes
25115       bug 9072; bugfix on 0.2.4.13-alpha.
25117     - Limit hidden service descriptors to at most ten introduction
25118       points, to slow one kind of guard enumeration. Fixes bug 9002;
25119       bugfix on 0.1.1.11-alpha.
25122 Changes in version 0.2.4.13-alpha - 2013-06-14
25123   Tor 0.2.4.13-alpha fixes a variety of potential remote crash
25124   vulnerabilities, makes socks5 username/password circuit isolation
25125   actually actually work (this time for sure!), and cleans up a bunch
25126   of other issues in preparation for a release candidate.
25128   o Major bugfixes (robustness):
25129     - Close any circuit that has too many cells queued on it. Fixes
25130       bug 9063; bugfix on the 54th commit of Tor. This bug is a further
25131       fix beyond bug 6252, whose fix was merged into 0.2.3.21-rc.
25132     - Prevent the get_freelists() function from running off the end of
25133       the list of freelists if it somehow gets an unrecognized
25134       allocation. Fixes bug 8844; bugfix on 0.2.0.16-alpha. Reported by
25135       eugenis.
25136     - Avoid an assertion failure on OpenBSD (and perhaps other BSDs)
25137       when an exit connection with optimistic data succeeds immediately
25138       rather than returning EINPROGRESS. Fixes bug 9017; bugfix on
25139       0.2.3.1-alpha.
25140     - Fix a directory authority crash bug when building a consensus
25141       using an older consensus as its basis. Fixes bug 8833. Bugfix
25142       on 0.2.4.12-alpha.
25144   o Major bugfixes:
25145     - Avoid a memory leak where we would leak a consensus body when we
25146       find that a consensus which we couldn't previously verify due to
25147       missing certificates is now verifiable. Fixes bug 8719; bugfix
25148       on 0.2.0.10-alpha.
25149     - We used to always request authority certificates by identity digest,
25150       meaning we'd get the newest one even when we wanted one with a
25151       different signing key. Then we would complain about being given
25152       a certificate we already had, and never get the one we really
25153       wanted. Now we use the "fp-sk/" resource as well as the "fp/"
25154       resource to request the one we want. Fixes bug 5595; bugfix on
25155       0.2.0.8-alpha.
25156     - Follow the socks5 protocol when offering username/password
25157       authentication. The fix for bug 8117 exposed this bug, and it
25158       turns out real-world applications like Pidgin do care. Bugfix on
25159       0.2.3.2-alpha; fixes bug 8879.
25160     - Prevent failures on Windows Vista and later when rebuilding the
25161       microdescriptor cache. Diagnosed by Robert Ransom. Fixes bug 8822;
25162       bugfix on 0.2.4.12-alpha.
25164   o Minor bugfixes:
25165     - Fix an impossible buffer overrun in the AES unit tests. Fixes
25166       bug 8845; bugfix on 0.2.0.7-alpha. Found by eugenis.
25167     - If for some reason we fail to write a microdescriptor while
25168       rebuilding the cache, do not let the annotations from that
25169       microdescriptor linger in the cache file, and do not let the
25170       microdescriptor stay recorded as present in its old location.
25171       Fixes bug 9047; bugfix on 0.2.2.6-alpha.
25172     - Fix a memory leak that would occur whenever a configuration
25173       option changed. Fixes bug 8718; bugfix on 0.2.3.3-alpha.
25174     - Paste the description for PathBias parameters from the man
25175       page into or.h, so the code documents them too. Fixes bug 7982;
25176       bugfix on 0.2.3.17-beta and 0.2.4.8-alpha.
25177     - Relays now treat a changed IPv6 ORPort as sufficient reason to
25178       publish an updated descriptor. Fixes bug 6026; bugfix on
25179       0.2.4.1-alpha.
25180     - When launching a resolve request on behalf of an AF_UNIX control
25181       socket, omit the address field of the new entry connection, used in
25182       subsequent controller events, rather than letting tor_dup_addr()
25183       set it to "<unknown address type>". Fixes bug 8639; bugfix on
25184       0.2.4.12-alpha.
25186   o Minor bugfixes (log messages):
25187     - Fix a scaling issue in the path bias accounting code that
25188       resulted in "Bug:" log messages from either
25189       pathbias_scale_close_rates() or pathbias_count_build_success().
25190       This represents a bugfix on a previous bugfix: the original fix
25191       attempted in 0.2.4.10-alpha was incomplete. Fixes bug 8235; bugfix
25192       on 0.2.4.1-alpha.
25193     - Give a less useless error message when the user asks for an IPv4
25194       address on an IPv6-only port, or vice versa. Fixes bug 8846; bugfix
25195       on 0.2.4.7-alpha.
25197   o Minor features:
25198     - Downgrade "unexpected SENDME" warnings to protocol-warn for 0.2.4.x,
25199       to tolerate bug 8093 for now.
25200     - Add an "ignoring-advertised-bws" boolean to the flag-threshold lines
25201       in directory authority votes to describe whether they have enough
25202       measured bandwidths to ignore advertised (relay descriptor)
25203       bandwidth claims. Resolves ticket 8711.
25204     - Update to the June 5 2013 Maxmind GeoLite Country database.
25206   o Removed documentation:
25207     - Remove some of the older contents of doc/ as obsolete; move others
25208       to torspec.git. Fixes bug 8965.
25210   o Code simplification and refactoring:
25211     - Avoid using character buffers when constructing most directory
25212       objects: this approach was unwieldy and error-prone. Instead,
25213       build smartlists of strings, and concatenate them when done.
25216 Changes in version 0.2.4.12-alpha - 2013-04-18
25217   Tor 0.2.4.12-alpha moves Tor forward on several fronts: it starts the
25218   process for lengthening the guard rotation period, makes directory
25219   authority opinions in the consensus a bit less gameable, makes socks5
25220   username/password circuit isolation actually work, and fixes a wide
25221   variety of other issues.
25223   o Major features:
25224     - Raise the default time that a client keeps an entry guard from
25225       "1-2 months" to "2-3 months", as suggested by Tariq Elahi's WPES
25226       2012 paper. (We would make it even longer, but we need better client
25227       load balancing first.) Also, make the guard lifetime controllable
25228       via a new GuardLifetime torrc option and a GuardLifetime consensus
25229       parameter. Start of a fix for bug 8240; bugfix on 0.1.1.11-alpha.
25230     - Directory authorities now prefer using measured bandwidths to
25231       advertised ones when computing flags and thresholds. Resolves
25232       ticket 8273.
25233     - Directory authorities that have more than a threshold number
25234       of relays with measured bandwidths now treat relays with unmeasured
25235       bandwidths as having bandwidth 0. Resolves ticket 8435.
25237   o Major bugfixes (assert / resource use):
25238     - Avoid a bug where our response to TLS renegotiation under certain
25239       network conditions could lead to a busy-loop, with 100% CPU
25240       consumption. Fixes bug 5650; bugfix on 0.2.0.16-alpha.
25241     - Avoid an assertion when we discover that we'd like to write a cell
25242       onto a closing connection: just discard the cell. Fixes another
25243       case of bug 7350; bugfix on 0.2.4.4-alpha.
25245   o Major bugfixes (client-side privacy):
25246     - When we mark a circuit as unusable for new circuits, have it
25247       continue to be unusable for new circuits even if MaxCircuitDirtiness
25248       is increased too much at the wrong time, or the system clock jumps
25249       backwards. Fixes bug 6174; bugfix on 0.0.2pre26.
25250     - If ClientDNSRejectInternalAddresses ("do not believe DNS queries
25251       which have resolved to internal addresses") is set, apply that
25252       rule to IPv6 as well. Fixes bug 8475; bugfix on 0.2.0.7-alpha.
25253     - When an exit relay rejects a stream with reason "exit policy", but
25254       we only know an exit policy summary (e.g. from the microdesc
25255       consensus) for it, do not mark the relay as useless for all exiting.
25256       Instead, mark just the circuit as unsuitable for that particular
25257       address. Fixes part of bug 7582; bugfix on 0.2.3.2-alpha.
25258     - Allow applications to get proper stream isolation with
25259       IsolateSOCKSAuth. Many SOCKS5 clients that want to offer
25260       username/password authentication also offer "no authentication". Tor
25261       had previously preferred "no authentication", so the applications
25262       never actually sent Tor their auth details. Now Tor selects
25263       username/password authentication if it's offered. You can disable
25264       this behavior on a per-SOCKSPort basis via PreferSOCKSNoAuth. Fixes
25265       bug 8117; bugfix on 0.2.3.3-alpha.
25267   o Major bugfixes (other):
25268     - When unable to find any working directory nodes to use as a
25269       directory guard, give up rather than adding the same non-working
25270       nodes to the directory guard list over and over. Fixes bug 8231;
25271       bugfix on 0.2.4.8-alpha.
25273   o Minor features:
25274     - Reject as invalid most directory objects containing a NUL.
25275       Belt-and-suspender fix for bug 8037.
25276     - In our testsuite, create temporary directories with a bit more
25277       entropy in their name to make name collisions less likely. Fixes
25278       bug 8638.
25279     - Add CACHED keyword to ADDRMAP events in the control protocol
25280       to indicate whether a DNS result will be cached or not. Resolves
25281       ticket 8596.
25282     - Update to the April 3 2013 Maxmind GeoLite Country database.
25284   o Minor features (build):
25285     - Detect and reject attempts to build Tor with threading support
25286       when OpenSSL has been compiled without threading support.
25287       Fixes bug 6673.
25288     - Clarify that when autoconf is checking for nacl, it is checking
25289       specifically for nacl with a fast curve25519 implementation.
25290       Fixes bug 8014.
25291     - Warn if building on a platform with an unsigned time_t: there
25292       are too many places where Tor currently assumes that time_t can
25293       hold negative values. We'd like to fix them all, but probably
25294       some will remain.
25296   o Minor bugfixes (build):
25297     - Fix some bugs in tor-fw-helper-natpmp when trying to build and
25298       run it on Windows. More bugs likely remain. Patch from Gisle Vanem.
25299       Fixes bug 7280; bugfix on 0.2.3.1-alpha.
25300     - Add the old src/or/micro-revision.i filename to CLEANFILES.
25301       On the off chance that somebody has one, it will go away as soon
25302       as they run "make clean". Fix for bug 7143; bugfix on 0.2.4.1-alpha.
25303     - Build Tor correctly on 32-bit platforms where the compiler can build
25304       but not run code using the "uint128_t" construction. Fixes bug 8587;
25305       bugfix on 0.2.4.8-alpha.
25306     - Fix compilation warning with some versions of clang that would
25307       prefer the -Wswitch-enum compiler flag to warn about switch
25308       statements with missing enum values, even if those switch
25309       statements have a "default:" statement. Fixes bug 8598; bugfix
25310       on 0.2.4.10-alpha.
25312   o Minor bugfixes (protocol):
25313     - Fix the handling of a TRUNCATE cell when it arrives while the
25314       circuit extension is in progress. Fixes bug 7947; bugfix on 0.0.7.1.
25315     - Fix a misframing issue when reading the version numbers in a
25316       VERSIONS cell. Previously we would recognize [00 01 00 02] as
25317       'version 1, version 2, and version 0x100', when it should have
25318       only included versions 1 and 2. Fixes bug 8059; bugfix on
25319       0.2.0.10-alpha. Reported pseudonymously.
25320     - Make the format and order of STREAM events for DNS lookups
25321       consistent among the various ways to launch DNS lookups. Fixes
25322       bug 8203; bugfix on 0.2.0.24-rc. Patch by "Desoxy".
25323     - Correct our check for which versions of Tor support the EXTEND2
25324       cell. We had been willing to send it to Tor 0.2.4.7-alpha and
25325       later, when support was really added in version 0.2.4.8-alpha.
25326       Fixes bug 8464; bugfix on 0.2.4.8-alpha.
25328   o Minor bugfixes (other):
25329     - Correctly store microdescriptors and extrainfo descriptors with
25330       an internal NUL byte. Fixes bug 8037; bugfix on 0.2.0.1-alpha.
25331       Bug reported by "cypherpunks".
25332     - Increase the width of the field used to remember a connection's
25333       link protocol version to two bytes. Harmless for now, since the
25334       only currently recognized versions are one byte long. Reported
25335       pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha.
25336     - If the state file's path bias counts are invalid (presumably from a
25337       buggy Tor prior to 0.2.4.10-alpha), make them correct. Also add
25338       additional checks and log messages to the scaling of Path Bias
25339       counts, in case there still are remaining issues with scaling.
25340       Should help resolve bug 8235.
25341     - Eliminate several instances where we use "Nickname=ID" to refer to
25342       nodes in logs. Use "Nickname (ID)" instead. (Elsewhere, we still use
25343       "$ID=Nickname", which is also acceptable.) Fixes bug 7065. Bugfix
25344       on 0.2.3.21-rc, 0.2.4.5-alpha, 0.2.4.8-alpha, and 0.2.4.10-alpha.
25346   o Minor bugfixes (syscalls):
25347     - Always check the return values of functions fcntl() and
25348       setsockopt(). We don't believe these are ever actually failing in
25349       practice, but better safe than sorry. Also, checking these return
25350       values should please analysis tools like Coverity. Patch from
25351       'flupzor'. Fixes bug 8206; bugfix on all versions of Tor.
25352     - Use direct writes rather than stdio when building microdescriptor
25353       caches, in an attempt to mitigate bug 8031, or at least make it
25354       less common.
25356   o Minor bugfixes (config):
25357     - When rejecting a configuration because we were unable to parse a
25358       quoted string, log an actual error message. Fixes bug 7950; bugfix
25359       on 0.2.0.16-alpha.
25360     - Behave correctly when the user disables LearnCircuitBuildTimeout
25361       but doesn't tell us what they would like the timeout to be. Fixes
25362       bug 6304; bugfix on 0.2.2.14-alpha.
25363     - When autodetecting the number of CPUs, use the number of available
25364       CPUs in preference to the number of configured CPUs. Inform the
25365       user if this reduces the number of available CPUs. Fixes bug 8002;
25366       bugfix on 0.2.3.1-alpha.
25367     - Make it an error when you set EntryNodes but disable UseGuardNodes,
25368       since it will (surprisingly to some users) ignore EntryNodes. Fixes
25369       bug 8180; bugfix on 0.2.3.11-alpha.
25370     - Allow TestingTorNetworks to override the 4096-byte minimum for
25371       the Fast threshold. Otherwise they can't bootstrap until they've
25372       observed more traffic. Fixes bug 8508; bugfix on 0.2.4.10-alpha.
25373     - Fix some logic errors when the user manually overrides the
25374       PathsNeededToBuildCircuits option in torrc. Fixes bug 8599; bugfix
25375       on 0.2.4.10-alpha.
25377   o Minor bugfixes (log messages to help diagnose bugs):
25378     - If we fail to free a microdescriptor because of bug 7164, log
25379       the filename and line number from which we tried to free it.
25380     - Add another diagnostic to the heartbeat message: track and log
25381       overhead that TLS is adding to the data we write. If this is
25382       high, we are sending too little data to SSL_write at a time.
25383       Diagnostic for bug 7707.
25384     - Add more detail to a log message about relaxed timeouts, to help
25385       track bug 7799.
25386     - Warn more aggressively when flushing microdescriptors to a
25387       microdescriptor cache fails, in an attempt to mitigate bug 8031,
25388       or at least make it more diagnosable.
25389     - Improve debugging output to help track down bug 8185 ("Bug:
25390       outgoing relay cell has n_chan==NULL. Dropping.")
25391     - Log the purpose of a path-bias testing circuit correctly.
25392       Improves a log message from bug 8477; bugfix on 0.2.4.8-alpha.
25394   o Minor bugfixes (0.2.4.x log messages that were too noisy):
25395     - Don't attempt to relax the timeout of already opened 1-hop circuits.
25396       They might never timeout. This should eliminate some/all cases of
25397       the relaxed timeout log message.
25398     - Use circuit creation time for network liveness evaluation. This
25399       should eliminate warning log messages about liveness caused
25400       by changes in timeout evaluation. Fixes bug 6572; bugfix on
25401       0.2.4.8-alpha.
25402     - Reduce a path bias length check from notice to info. The message
25403       is triggered when creating controller circuits. Fixes bug 8196;
25404       bugfix on 0.2.4.8-alpha.
25405     - Fix a path state issue that triggered a notice during relay startup.
25406       Fixes bug 8320; bugfix on 0.2.4.10-alpha.
25407     - Reduce occurrences of warns about circuit purpose in
25408       connection_ap_expire_building(). Fixes bug 8477; bugfix on
25409       0.2.4.11-alpha.
25411   o Minor bugfixes (pre-0.2.4.x log messages that were too noisy):
25412     - If we encounter a write failure on a SOCKS connection before we
25413       finish our SOCKS handshake, don't warn that we closed the
25414       connection before we could send a SOCKS reply. Fixes bug 8427;
25415       bugfix on 0.1.0.1-rc.
25416     - Correctly recognize that [::1] is a loopback address. Fixes
25417       bug 8377; bugfix on 0.2.1.3-alpha.
25418     - Fix a directory authority warn caused when we have a large amount
25419       of badexit bandwidth. Fixes bug 8419; bugfix on 0.2.2.10-alpha.
25420     - Don't log inappropriate heartbeat messages when hibernating: a
25421       hibernating node is _expected_ to drop out of the consensus,
25422       decide it isn't bootstrapped, and so forth. Fixes bug 7302;
25423       bugfix on 0.2.3.1-alpha.
25424     - Don't complain about bootstrapping problems while hibernating.
25425       These complaints reflect a general code problem, but not one
25426       with any problematic effects (no connections are actually
25427       opened). Fixes part of bug 7302; bugfix on 0.2.3.2-alpha.
25429   o Documentation fixes:
25430     - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option
25431       names match. Fixes bug 7768.
25432     - Make the torify manpage no longer refer to tsocks; torify hasn't
25433       supported tsocks since 0.2.3.14-alpha.
25434     - Make the tor manpage no longer reference tsocks.
25435     - Fix the GeoIPExcludeUnknown documentation to refer to
25436       ExcludeExitNodes rather than the currently nonexistent
25437       ExcludeEntryNodes. Spotted by "hamahangi" on tor-talk.
25439   o Removed files:
25440     - The tor-tsocks.conf is no longer distributed or installed. We
25441       recommend that tsocks users use torsocks instead. Resolves
25442       ticket 8290.
25445 Changes in version 0.2.4.11-alpha - 2013-03-11
25446   Tor 0.2.4.11-alpha makes relay measurement by directory authorities
25447   more robust, makes hidden service authentication work again, and
25448   resolves a DPI fingerprint for Tor's SSL transport.
25450   o Major features (directory authorities):
25451     - Directory authorities now support a new consensus method (17)
25452       where they cap the published bandwidth of servers for which
25453       insufficient bandwidth measurements exist. Fixes part of bug 2286.
25454     - Directory authorities that set "DisableV2DirectoryInfo_ 1" no longer
25455       serve any v2 directory information. Now we can test disabling the
25456       old deprecated v2 directory format, and see whether doing so has
25457       any effect on network load. Begins to fix bug 6783.
25458     - Directory authorities now include inside each vote a statement of
25459       the performance thresholds they used when assigning flags.
25460       Implements ticket 8151.
25462   o Major bugfixes (directory authorities):
25463     - Stop marking every relay as having been down for one hour every
25464       time we restart a directory authority. These artificial downtimes
25465       were messing with our Stable and Guard flag calculations. Fixes
25466       bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha.
25468   o Major bugfixes (hidden services):
25469     - Allow hidden service authentication to succeed again. When we
25470       refactored the hidden service introduction code back
25471       in 0.2.4.1-alpha, we didn't update the code that checks
25472       whether authentication information is present, causing all
25473       authentication checks to return "false". Fix for bug 8207; bugfix
25474       on 0.2.4.1-alpha. Found by Coverity; this is CID 718615.
25476   o Minor features (relays, bridges):
25477     - Make bridge relays check once a minute for whether their IP
25478       address has changed, rather than only every 15 minutes. Resolves
25479       bugs 1913 and 1992.
25480     - Refactor resolve_my_address() so it returns the method by which we
25481       decided our public IP address (explicitly configured, resolved from
25482       explicit hostname, guessed from interfaces, learned by gethostname).
25483       Now we can provide more helpful log messages when a relay guesses
25484       its IP address incorrectly (e.g. due to unexpected lines in
25485       /etc/hosts). Resolves ticket 2267.
25486     - Teach bridge-using clients to avoid 0.2.2 bridges when making
25487       microdescriptor-related dir requests, and only fall back to normal
25488       descriptors if none of their bridges can handle microdescriptors
25489       (as opposed to the fix in ticket 4013, which caused them to fall
25490       back to normal descriptors if *any* of their bridges preferred
25491       them). Resolves ticket 4994.
25492     - Randomize the lifetime of our SSL link certificate, so censors can't
25493       use the static value for filtering Tor flows. Resolves ticket 8443;
25494       related to ticket 4014 which was included in 0.2.2.33.
25495     - Support a new version of the link protocol that allows 4-byte circuit
25496       IDs. Previously, circuit IDs were limited to 2 bytes, which presented
25497       a possible resource exhaustion issue. Closes ticket 7351; implements
25498       proposal 214.
25500   o Minor features (portability):
25501     - Tweak the curve25519-donna*.c implementations to tolerate systems
25502       that lack stdint.h. Fixes bug 3894; bugfix on 0.2.4.8-alpha.
25503     - Use Ville Laurikari's implementation of AX_CHECK_SIGN() to determine
25504       the signs of types during autoconf. This is better than our old
25505       approach, which didn't work when cross-compiling.
25506     - Detect the sign of enum values, rather than assuming that MSC is the
25507       only compiler where enum types are all signed. Fixes bug 7727;
25508       bugfix on 0.2.4.10-alpha.
25510   o Minor features (other):
25511     - Say "KBytes" rather than "KB" in the man page (for various values
25512       of K), to further reduce confusion about whether Tor counts in
25513       units of memory or fractions of units of memory. Resolves ticket 7054.
25514     - Clear the high bit on curve25519 public keys before passing them to
25515       our backend, in case we ever wind up using a backend that doesn't do
25516       so itself. If we used such a backend, and *didn't* clear the high bit,
25517       we could wind up in a situation where users with such backends would
25518       be distinguishable from users without. Fixes bug 8121; bugfix on
25519       0.2.4.8-alpha.
25520     - Update to the March 6 2013 Maxmind GeoLite Country database.
25522   o Minor bugfixes (clients):
25523     - When we receive a RELAY_END cell with the reason DONE, or with no
25524       reason, before receiving a RELAY_CONNECTED cell, report the SOCKS
25525       status as "connection refused". Previously we reported these cases
25526       as success but then immediately closed the connection. Fixes bug
25527       7902; bugfix on 0.1.0.1-rc. Reported by "oftc_must_be_destroyed".
25528     - Downgrade an assertion in connection_ap_expire_beginning to an
25529       LD_BUG message. The fix for bug 8024 should prevent this message
25530       from displaying, but just in case, a warn that we can diagnose
25531       is better than more assert crashes. Fixes bug 8065; bugfix on
25532       0.2.4.8-alpha.
25533     - Lower path use bias thresholds to .80 for notice and .60 for warn.
25534       Also make the rate limiting flags for the path use bias log messages
25535       independent from the original path bias flags. Fixes bug 8161;
25536       bugfix on 0.2.4.10-alpha.
25538   o Minor bugfixes (relays):
25539     - Stop trying to resolve our hostname so often (e.g. every time we
25540       think about doing a directory fetch). Now we reuse the cached
25541       answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc)
25542       and 2410 (bugfix on 0.1.2.2-alpha).
25543     - Stop sending a stray "(null)" in some cases for the server status
25544       "EXTERNAL_ADDRESS" controller event. Resolves bug 8200; bugfix
25545       on 0.1.2.6-alpha.
25546     - When choosing which stream on a formerly stalled circuit to wake
25547       first, make better use of the platform's weak RNG. Previously,
25548       we had been using the % ("modulo") operator to try to generate a
25549       1/N chance of picking each stream, but this behaves badly with
25550       many platforms' choice of weak RNG. Fixes bug 7801; bugfix on
25551       0.2.2.20-alpha.
25552     - Use our own weak RNG when we need a weak RNG. Windows's rand() and
25553       Irix's random() only return 15 bits; Solaris's random() returns more
25554       bits but its RAND_MAX says it only returns 15, and so on. Motivated
25555       by the fix for bug 7801; bugfix on 0.2.2.20-alpha.
25557   o Minor bugfixes (directory authorities):
25558     - Directory authorities now use less space when formatting identical
25559       microdescriptor lines in directory votes. Fixes bug 8158; bugfix
25560       on 0.2.4.1-alpha.
25562   o Minor bugfixes (memory leaks spotted by Coverity -- bug 7816):
25563     - Avoid leaking memory if we fail to compute a consensus signature
25564       or we generate a consensus we can't parse. Bugfix on 0.2.0.5-alpha.
25565     - Fix a memory leak when receiving headers from an HTTPS proxy. Bugfix
25566       on 0.2.1.1-alpha.
25567     - Fix a memory leak during safe-cookie controller authentication.
25568       Bugfix on 0.2.3.13-alpha.
25569     - Avoid memory leak of IPv6 policy content if we fail to format it into
25570       a router descriptor. Bugfix on 0.2.4.7-alpha.
25572   o Minor bugfixes (other code correctness issues):
25573     - Avoid a crash if we fail to generate an extrainfo descriptor.
25574       Fixes bug 8208; bugfix on 0.2.3.16-alpha. Found by Coverity;
25575       this is CID 718634.
25576     - When detecting the largest possible file descriptor (in order to
25577       close all file descriptors when launching a new program), actually
25578       use _SC_OPEN_MAX. The old code for doing this was very, very broken.
25579       Fixes bug 8209; bugfix on 0.2.3.1-alpha. Found by Coverity; this
25580       is CID 743383.
25581     - Fix a copy-and-paste error when adding a missing A1 to a routerset
25582       because of GeoIPExcludeUnknown. Fix for Coverity CID 980650.
25583       Bugfix on 0.2.4.10-alpha.
25584     - Fix an impossible-to-trigger integer overflow when estimating how
25585       long our onionskin queue would take. (This overflow would require us
25586       to accept 4 million onionskins before processing 100 of them.) Fixes
25587       bug 8210; bugfix on 0.2.4.10-alpha.
25589   o Code simplification and refactoring:
25590     - Add a wrapper function for the common "log a message with a
25591       rate-limit" case.
25594 Changes in version 0.2.4.10-alpha - 2013-02-04
25595   Tor 0.2.4.10-alpha adds defenses at the directory authority level from
25596   certain attacks that flood the network with relays; changes the queue
25597   for circuit create requests from a sized-based limit to a time-based
25598   limit; resumes building with MSVC on Windows; and fixes a wide variety
25599   of other issues.
25601   o Major bugfixes (directory authority):
25602     - When computing directory thresholds, ignore any rejected-as-sybil
25603       nodes during the computation so that they can't influence Fast,
25604       Guard, etc. (We should have done this for proposal 109.) Fixes
25605       bug 8146.
25606     - When marking a node as a likely sybil, reset its uptime metrics
25607       to zero, so that it cannot time towards getting marked as Guard,
25608       Stable, or HSDir. (We should have done this for proposal 109.) Fixes
25609       bug 8147.
25611   o Major bugfixes:
25612     - When a TLS write is partially successful but incomplete, remember
25613       that the flushed part has been flushed, and notice that bytes were
25614       actually written. Reported and fixed pseudonymously. Fixes bug
25615       7708; bugfix on Tor 0.1.0.5-rc.
25616     - Reject bogus create and relay cells with 0 circuit ID or 0 stream
25617       ID: these could be used to create unexpected streams and circuits
25618       which would count as "present" to some parts of Tor but "absent"
25619       to others, leading to zombie circuits and streams or to a bandwidth
25620       denial-of-service. Fixes bug 7889; bugfix on every released version
25621       of Tor. Reported by "oftc_must_be_destroyed".
25622     - Rename all macros in our local copy of queue.h to begin with "TOR_".
25623       This change seems the only good way to permanently prevent conflicts
25624       with queue.h on various operating systems. Fixes bug 8107; bugfix
25625       on 0.2.4.6-alpha.
25627   o Major features (relay):
25628     - Instead of limiting the number of queued onionskins (aka circuit
25629       create requests) to a fixed, hard-to-configure number, we limit
25630       the size of the queue based on how many we expect to be able to
25631       process in a given amount of time. We estimate the time it will
25632       take to process an onionskin based on average processing time
25633       of previous onionskins. Closes ticket 7291. You'll never have to
25634       configure MaxOnionsPending again.
25636   o Major features (portability):
25637     - Resume building correctly with MSVC and Makefile.nmake. This patch
25638       resolves numerous bugs and fixes reported by ultramage, including
25639       7305, 7308, 7309, 7310, 7312, 7313, 7315, 7316, and 7669.
25640     - Make the ntor and curve25519 code build correctly with MSVC.
25641       Fix on 0.2.4.8-alpha.
25643   o Minor features:
25644     - When directory authorities are computing thresholds for flags,
25645       never let the threshold for the Fast flag fall below 4096
25646       bytes. Also, do not consider nodes with extremely low bandwidths
25647       when deciding thresholds for various directory flags. This change
25648       should raise our threshold for Fast relays, possibly in turn
25649       improving overall network performance; see ticket 1854. Resolves
25650       ticket 8145.
25651     - The Tor client now ignores sub-domain components of a .onion
25652       address. This change makes HTTP "virtual" hosting
25653       possible: http://foo.aaaaaaaaaaaaaaaa.onion/ and
25654       http://bar.aaaaaaaaaaaaaaaa.onion/ can be two different websites
25655       hosted on the same hidden service. Implements proposal 204.
25656     - We compute the overhead from passing onionskins back and forth to
25657       cpuworkers, and report it when dumping statistics in response to
25658       SIGUSR1. Supports ticket 7291.
25660   o Minor features (path selection):
25661     - When deciding whether we have enough descriptors to build circuits,
25662       instead of looking at raw relay counts, look at which fraction
25663       of (bandwidth-weighted) paths we're able to build. This approach
25664       keeps clients from building circuits if their paths are likely to
25665       stand out statistically. The default fraction of paths needed is
25666       taken from the consensus directory; you can override it with the
25667       new PathsNeededToBuildCircuits option. Fixes ticket 5956.
25668     - When any country code is listed in ExcludeNodes or ExcludeExitNodes,
25669       and we have GeoIP information, also exclude all nodes with unknown
25670       countries "??" and "A1". This behavior is controlled by the
25671       new GeoIPExcludeUnknown option: you can make such nodes always
25672       excluded with "GeoIPExcludeUnknown 1", and disable the feature
25673       with "GeoIPExcludeUnknown 0". Setting "GeoIPExcludeUnknown auto"
25674       gets you the default behavior. Implements feature 7706.
25675     - Path Use Bias: Perform separate accounting for successful circuit
25676       use. Keep separate statistics on stream attempt rates versus stream
25677       success rates for each guard. Provide configurable thresholds to
25678       determine when to emit log messages or disable use of guards that
25679       fail too many stream attempts. Resolves ticket 7802.
25681   o Minor features (log messages):
25682     - When learning a fingerprint for a bridge, log its corresponding
25683       transport type. Implements ticket 7896.
25684     - Improve the log message when "Bug/attack: unexpected sendme cell
25685       from client" occurs, to help us track bug 8093.
25687   o Minor bugfixes:
25688     - Remove a couple of extraneous semicolons that were upsetting the
25689       cparser library. Patch by Christian Grothoff. Fixes bug 7115;
25690       bugfix on 0.2.2.1-alpha.
25691     - Remove a source of rounding error during path bias count scaling;
25692       don't count cannibalized circuits as used for path bias until we
25693       actually try to use them; and fix a circuit_package_relay_cell()
25694       warning message about n_chan==NULL. Fixes bug 7802.
25695     - Detect nacl when its headers are in a nacl/ subdirectory. Also,
25696       actually link against nacl when we're configured to use it. Fixes
25697       bug 7972; bugfix on 0.2.4.8-alpha.
25698     - Compile correctly with the --disable-curve25519 option. Fixes
25699       bug 8153; bugfix on 0.2.4.8-alpha.
25701   o Build improvements:
25702     - Do not report status verbosely from autogen.sh unless the -v flag
25703       is specified. Fixes issue 4664. Patch from Onizuka.
25704     - Replace all calls to snprintf() outside of src/ext with
25705       tor_snprintf(). Also remove the #define to replace snprintf with
25706       _snprintf on Windows; they have different semantics, and all of
25707       our callers should be using tor_snprintf() anyway. Fixes bug 7304.
25708     - Try to detect if we are ever building on a platform where
25709       memset(...,0,...) does not set the value of a double to 0.0. Such
25710       platforms are permitted by the C standard, though in practice
25711       they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't
25712       currently support them, but it's better to detect them and fail
25713       than to perform erroneously.
25715   o Removed features:
25716     - Stop exporting estimates of v2 and v3 directory traffic shares
25717       in extrainfo documents. They were unneeded and sometimes inaccurate.
25718       Also stop exporting any v2 directory request statistics. Resolves
25719       ticket 5823.
25720     - Drop support for detecting and warning about versions of Libevent
25721       before 1.3e. Nothing reasonable ships with them any longer;
25722       warning the user about them shouldn't be needed. Resolves ticket
25723       6826.
25725   o Code simplifications and refactoring:
25726     - Rename "isin" functions to "contains", for grammar. Resolves
25727       ticket 5285.
25728     - Rename Tor's logging function log() to tor_log(), to avoid conflicts
25729       with the natural logarithm function from the system libm. Resolves
25730       ticket 7599.
25733 Changes in version 0.2.4.9-alpha - 2013-01-15
25734   Tor 0.2.4.9-alpha provides a quick fix to make the new ntor handshake
25735   work more robustly.
25737   o Major bugfixes:
25738     - Fix backward compatibility logic when receiving an embedded ntor
25739       handshake tunneled in a CREATE cell. This clears up the "Bug:
25740       couldn't format CREATED cell" warning. Fixes bug 7959; bugfix
25741       on 0.2.4.8-alpha.
25744 Changes in version 0.2.4.8-alpha - 2013-01-14
25745   Tor 0.2.4.8-alpha introduces directory guards to reduce user enumeration
25746   risks, adds a new stronger and faster circuit handshake, and offers
25747   stronger and faster link encryption when both sides support it.
25749   o Major features:
25750     - Preliminary support for directory guards (proposal 207): when
25751       possible, clients now use their entry guards for non-anonymous
25752       directory requests. This can help prevent client enumeration. Note
25753       that this behavior only works when we have a usable consensus
25754       directory, and when options about what to download are more or less
25755       standard. In the future we should re-bootstrap from our guards,
25756       rather than re-bootstrapping from the preconfigured list of
25757       directory sources that ships with Tor. Resolves ticket 6526.
25758     - Tor relays and clients now support a better CREATE/EXTEND cell
25759       format, allowing the sender to specify multiple address, identity,
25760       and handshake types. Implements Robert Ransom's proposal 200;
25761       closes ticket 7199.
25763   o Major features (new circuit handshake):
25764     - Tor now supports a new circuit extension handshake designed by Ian
25765       Goldberg, Douglas Stebila, and Berkant Ustaoglu. Our original
25766       circuit extension handshake, later called "TAP", was a bit slow
25767       (especially on the relay side), had a fragile security proof, and
25768       used weaker keys than we'd now prefer. The new circuit handshake
25769       uses Dan Bernstein's "curve25519" elliptic-curve Diffie-Hellman
25770       function, making it significantly more secure than the older
25771       handshake, and significantly faster. Tor can use one of two built-in
25772       pure-C curve25519-donna implementations by Adam Langley, or it
25773       can link against the "nacl" library for a tuned version if present.
25775       The built-in version is very fast for 64-bit systems when building
25776       with GCC. The built-in 32-bit version is still faster than the
25777       old TAP protocol, but using libnacl is better on most such hosts.
25779       Clients don't currently use this protocol by default, since
25780       comparatively few clients support it so far. To try it, set
25781       UseNTorHandshake to 1.
25783       Implements proposal 216; closes ticket 7202.
25785   o Major features (better link encryption):
25786     - Relays can now enable the ECDHE TLS ciphersuites when available
25787       and appropriate. These ciphersuites let us negotiate forward-secure
25788       TLS secret keys more safely and more efficiently than with our
25789       previous use of Diffie-Hellman modulo a 1024-bit prime. By default,
25790       public relays prefer the (faster) P224 group, and bridges prefer
25791       the (more common) P256 group; you can override this with the
25792       TLSECGroup option.
25794       Enabling these ciphers was a little tricky, since for a long time,
25795       clients had been claiming to support them without actually doing
25796       so, in order to foil fingerprinting. But with the client-side
25797       implementation of proposal 198 in 0.2.3.17-beta, clients can now
25798       match the ciphers from recent Firefox versions *and* list the
25799       ciphers they actually mean, so relays can believe such clients
25800       when they advertise ECDHE support in their TLS ClientHello messages.
25802       This feature requires clients running 0.2.3.17-beta or later,
25803       and requires both sides to be running OpenSSL 1.0.0 or later
25804       with ECC support. OpenSSL 1.0.1, with the compile-time option
25805       "enable-ec_nistp_64_gcc_128", is highly recommended.
25807       Implements the relay side of proposal 198; closes ticket 7200.
25809   o Major bugfixes:
25810     - Avoid crashing when, as a relay without IPv6-exit support, a
25811       client insists on getting an IPv6 address or nothing. Fixes bug
25812       7814; bugfix on 0.2.4.7-alpha.
25814   o Minor features:
25815     - Improve circuit build timeout handling for hidden services.
25816       In particular: adjust build timeouts more accurately depending
25817       upon the number of hop-RTTs that a particular circuit type
25818       undergoes. Additionally, launch intro circuits in parallel
25819       if they timeout, and take the first one to reply as valid.
25820     - Work correctly on Unix systems where EAGAIN and EWOULDBLOCK are
25821       separate error codes; or at least, don't break for that reason.
25822       Fixes bug 7935. Reported by "oftc_must_be_destroyed".
25823     - Update to the January 2 2013 Maxmind GeoLite Country database.
25825   o Minor features (testing):
25826     - Add benchmarks for DH (1024-bit multiplicative group) and ECDH
25827       (P-256) Diffie-Hellman handshakes to src/or/bench.
25828     - Add benchmark functions to test onion handshake performance.
25830   o Minor features (path bias detection):
25831     - Alter the Path Bias log messages to be more descriptive in terms
25832       of reporting timeouts and other statistics.
25833     - Create three levels of Path Bias log messages, as opposed to just
25834       two. These are configurable via consensus as well as via the torrc
25835       options PathBiasNoticeRate, PathBiasWarnRate, PathBiasExtremeRate.
25836       The default values are 0.70, 0.50, and 0.30 respectively.
25837     - Separate the log message levels from the decision to drop guards,
25838       which also is available via torrc option PathBiasDropGuards.
25839       PathBiasDropGuards still defaults to 0 (off).
25840     - Deprecate PathBiasDisableRate in favor of PathBiasDropGuards
25841       in combination with PathBiasExtremeRate.
25842     - Increase the default values for PathBiasScaleThreshold and
25843       PathBiasCircThreshold from (200, 20) to (300, 150).
25844     - Add in circuit usage accounting to path bias. If we try to use a
25845       built circuit but fail for any reason, it counts as path bias.
25846       Certain classes of circuits where the adversary gets to pick your
25847       destination node are exempt from this accounting. Usage accounting
25848       can be specifically disabled via consensus parameter or torrc.
25849     - Convert all internal path bias state to double-precision floating
25850       point, to avoid roundoff error and other issues.
25851     - Only record path bias information for circuits that have completed
25852       *two* hops. Assuming end-to-end tagging is the attack vector, this
25853       makes us more resilient to ambient circuit failure without any
25854       detection capability loss.
25856   o Minor bugfixes (log messages):
25857     - Rate-limit the "No circuits are opened. Relaxed timeout for a
25858       circuit with channel state open..." message to once per hour to
25859       keep it from filling the notice logs. Mitigates bug 7799 but does
25860       not fix the underlying cause. Bugfix on 0.2.4.7-alpha.
25861     - Avoid spurious warnings when configuring multiple client ports of
25862       which only some are nonlocal. Previously, we had claimed that some
25863       were nonlocal when in fact they weren't. Fixes bug 7836; bugfix on
25864       0.2.3.3-alpha.
25866   o Code simplifications and refactoring:
25867     - Get rid of a couple of harmless clang warnings, where we compared
25868       enums to ints. These warnings are newly introduced in clang 3.2.
25869     - Split the onion.c file into separate modules for the onion queue
25870       and the different handshakes it supports.
25871     - Remove the marshalling/unmarshalling code for sending requests to
25872       cpuworkers over a socket, and instead just send structs. The
25873       recipient will always be the same Tor binary as the sender, so
25874       any encoding is overkill.
25877 Changes in version 0.2.4.7-alpha - 2012-12-24
25878   Tor 0.2.4.7-alpha introduces a new approach to providing fallback
25879   directory mirrors for more robust bootstrapping; fixes more issues where
25880   clients with changing network conditions refuse to make any circuits;
25881   adds initial support for exiting to IPv6 addresses; resumes being able
25882   to update our GeoIP database, and includes the geoip6 file this time;
25883   turns off the client-side DNS cache by default due to privacy risks;
25884   and fixes a variety of other issues.
25886   o Major features (client resilience):
25887     - Add a new "FallbackDir" torrc option to use when we can't use
25888       a directory mirror from the consensus (either because we lack a
25889       consensus, or because they're all down). Currently, all authorities
25890       are fallbacks by default, and there are no other default fallbacks,
25891       but that will change. This option will allow us to give clients a
25892       longer list of servers to try to get a consensus from when first
25893       connecting to the Tor network, and thereby reduce load on the
25894       directory authorities. Implements proposal 206, "Preconfigured
25895       directory sources for bootstrapping". We also removed the old
25896       "FallbackNetworkstatus" option, since we never got it working well
25897       enough to use it. Closes bug 572.
25898     - If we have no circuits open, use a relaxed timeout (the
25899       95-percentile cutoff) until a circuit succeeds. This heuristic
25900       should allow Tor to succeed at building circuits even when the
25901       network connection drastically changes. Should help with bug 3443.
25903   o Major features (IPv6):
25904     - Relays can now exit to IPv6 addresses: make sure that you have IPv6
25905       connectivity, then set the IPv6Exit flag to 1. Also make sure your
25906       exit policy reads as you would like: the address * applies to all
25907       address families, whereas *4 is IPv4 address only, and *6 is IPv6
25908       addresses only. On the client side, you'll need to wait until the
25909       authorities have upgraded, wait for enough exits to support IPv6,
25910       apply the "IPv6Traffic" flag to a SocksPort, and use Socks5. Closes
25911       ticket 5547, implements proposal 117 as revised in proposal 208.
25913       We DO NOT recommend that clients with actual anonymity needs start
25914       using IPv6 over Tor yet, since not enough exits support it yet.
25916   o Major features (geoip database):
25917     - Maxmind began labelling Tor relays as being in country "A1",
25918       which breaks by-country node selection inside Tor. Now we use a
25919       script to replace "A1" ("Anonymous Proxy") entries in our geoip
25920       file with real country codes. This script fixes about 90% of "A1"
25921       entries automatically and uses manual country code assignments to
25922       fix the remaining 10%. See src/config/README.geoip for details.
25923       Fixes bug 6266. Also update to the December 5 2012 Maxmind GeoLite
25924       Country database, as modified above.
25926   o Major bugfixes (client-side DNS):
25927     - Turn off the client-side DNS cache by default. Updating and using
25928       the DNS cache is now configurable on a per-client-port
25929       level. SOCKSPort, DNSPort, etc lines may now contain
25930       {No,}Cache{IPv4,IPv6,}DNS lines to indicate that we shouldn't
25931       cache these types of DNS answers when we receive them from an
25932       exit node in response to an application request on this port, and
25933       {No,}UseCached{IPv4,IPv6,DNS} lines to indicate that if we have
25934       cached DNS answers of these types, we shouldn't use them. It's
25935       potentially risky to use cached DNS answers at the client, since
25936       doing so can indicate to one exit what answers we've gotten
25937       for DNS lookups in the past. With IPv6, this becomes especially
25938       problematic. Using cached DNS answers for requests on the same
25939       circuit would present less linkability risk, since all traffic
25940       on a circuit is already linkable, but it would also provide
25941       little performance benefit: the exit node caches DNS replies
25942       too. Implements a simplified version of Proposal 205. Implements
25943       ticket 7570.
25945   o Major bugfixes (other):
25946     - Alter circuit build timeout measurement to start at the point
25947       where we begin the CREATE/CREATE_FAST step (as opposed to circuit
25948       initialization). This should make our timeout measurements more
25949       uniform. Previously, we were sometimes including ORconn setup time
25950       in our circuit build time measurements. Should resolve bug 3443.
25951     - Fix an assertion that could trigger in hibernate_go_dormant() when
25952       closing an or_connection_t: call channel_mark_for_close() rather
25953       than connection_mark_for_close(). Fixes bug 7267. Bugfix on
25954       0.2.4.4-alpha.
25955     - Include the geoip6 IPv6 GeoIP database in the tarball. Fixes bug
25956       7655; bugfix on 0.2.4.6-alpha.
25958   o Minor features:
25959     - Add a new torrc option "ServerTransportListenAddr" to let bridge
25960       operators select the address where their pluggable transports will
25961       listen for connections. Resolves ticket 7013.
25962     - Allow an optional $ before the node identity digest in the
25963       controller command GETINFO ns/id/<identity>, for consistency with
25964       md/id/<identity> and desc/id/<identity>. Resolves ticket 7059.
25965     - Log packaged cell fullness as part of the heartbeat message.
25966       Diagnosis to try to determine the extent of bug 7743.
25968   o Minor features (IPv6):
25969     - AutomapHostsOnResolve now supports IPv6 addresses. By default, we
25970       prefer to hand out virtual IPv6 addresses, since there are more of
25971       them and we can't run out. To override this behavior and make IPv4
25972       addresses preferred, set NoPreferIPv6Automap on whatever SOCKSPort
25973       or DNSPort you're using for resolving. Implements ticket 7571.
25974     - AutomapHostsOnResolve responses are now randomized, to avoid
25975       annoying situations where Tor is restarted and applications
25976       connect to the wrong addresses.
25977     - Never try more than 1000 times to pick a new virtual address when
25978       AutomapHostsOnResolve is set. That's good enough so long as we
25979       aren't close to handing out our entire virtual address space;
25980       if you're getting there, it's best to switch to IPv6 virtual
25981       addresses anyway.
25983   o Minor bugfixes:
25984     - The ADDRMAP command can no longer generate an ill-formed error
25985       code on a failed MAPADDRESS. It now says "internal" rather than
25986       an English sentence fragment with spaces in the middle. Bugfix on
25987       Tor 0.2.0.19-alpha.
25988     - Fix log messages and comments to avoid saying "GMT" when we mean
25989       "UTC". Fixes bug 6113.
25990     - Compile on win64 using mingw64. Fixes bug 7260; patches from
25991       "yayooo".
25992     - Fix a crash when debugging unit tests on Windows: deallocate a
25993       shared library with FreeLibrary, not CloseHandle. Fixes bug 7306;
25994       bugfix on 0.2.2.17-alpha. Reported by "ultramage".
25996   o Renamed options:
25997     - The DirServer option is now DirAuthority, for consistency with
25998       current naming patterns. You can still use the old DirServer form.
26000   o Code simplification and refactoring:
26001     - Move the client-side address-map/virtual-address/DNS-cache code
26002       out of connection_edge.c into a new addressmap.c module.
26003     - Remove unused code for parsing v1 directories and "running routers"
26004       documents. Fixes bug 6887.
26007 Changes in version 0.2.3.25 - 2012-11-19
26008   The Tor 0.2.3 release series is dedicated to the memory of Len "rabbi"
26009   Sassaman (1980-2011), a long-time cypherpunk, anonymity researcher,
26010   Mixmaster maintainer, Pynchon Gate co-designer, CodeCon organizer,
26011   programmer, and friend. Unstinting in his dedication to the cause of
26012   freedom, he inspired and helped many of us as we began our work on
26013   anonymity, and inspires us still. Please honor his memory by writing
26014   software to protect people's freedoms, and by helping others to do so.
26016   Tor 0.2.3.25, the first stable release in the 0.2.3 branch, features
26017   significantly reduced directory overhead (via microdescriptors),
26018   enormous crypto performance improvements for fast relays on new
26019   enough hardware, a new v3 TLS handshake protocol that can better
26020   resist fingerprinting, support for protocol obfuscation plugins (aka
26021   pluggable transports), better scalability for hidden services, IPv6
26022   support for bridges, performance improvements like allowing clients
26023   to skip the first round-trip on the circuit ("optimistic data") and
26024   refilling token buckets more often, a new "stream isolation" design
26025   to isolate different applications on different circuits, and many
26026   stability, security, and privacy fixes.
26028   o Major bugfixes:
26029     - Tor tries to wipe potentially sensitive data after using it, so
26030       that if some subsequent security failure exposes Tor's memory,
26031       the damage will be limited. But we had a bug where the compiler
26032       was eliminating these wipe operations when it decided that the
26033       memory was no longer visible to a (correctly running) program,
26034       hence defeating our attempt at defense in depth. We fix that
26035       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
26036       is unlikely to optimize away. Future versions of Tor may use
26037       a less ridiculously heavy approach for this. Fixes bug 7352.
26038       Reported in an article by Andrey Karpov.
26040   o Minor bugfixes:
26041     - Fix a harmless bug when opting against publishing a relay descriptor
26042       because DisableNetwork is set. Fixes bug 7464; bugfix on
26043       0.2.3.9-alpha.
26046 Changes in version 0.2.4.6-alpha - 2012-11-13
26047   Tor 0.2.4.6-alpha fixes an assert bug that has been plaguing relays,
26048   makes our defense-in-depth memory wiping more reliable, and begins to
26049   count IPv6 addresses in bridge statistics,
26051   o Major bugfixes:
26052     - Fix an assertion failure that could occur when closing a connection
26053       with a spliced rendezvous circuit. Fix for bug 7212; bugfix on
26054       Tor 0.2.4.4-alpha.
26055     - Tor tries to wipe potentially sensitive data after using it, so
26056       that if some subsequent security failure exposes Tor's memory,
26057       the damage will be limited. But we had a bug where the compiler
26058       was eliminating these wipe operations when it decided that the
26059       memory was no longer visible to a (correctly running) program,
26060       hence defeating our attempt at defense in depth. We fix that
26061       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
26062       is unlikely to optimize away. Future versions of Tor may use
26063       a less ridiculously heavy approach for this. Fixes bug 7352.
26064       Reported in an article by Andrey Karpov.
26066   o Minor features:
26067     - Add GeoIP database for IPv6 addresses. The new config option
26068       is GeoIPv6File.
26069     - Bridge statistics now count bridge clients connecting over IPv6:
26070       bridge statistics files now list "bridge-ip-versions" and
26071       extra-info documents list "geoip6-db-digest". The control protocol
26072       "CLIENTS_SEEN" and "ip-to-country" queries now support IPv6. Initial
26073       implementation by "shkoo", addressing ticket 5055.
26075   o Minor bugfixes:
26076     - Warn when we are binding low ports when hibernation is enabled;
26077       previously we had warned when we were _advertising_ low ports with
26078       hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
26079     - Fix a harmless bug when opting against publishing a relay descriptor
26080       because DisableNetwork is set. Fixes bug 7464; bugfix on
26081       0.2.3.9-alpha.
26082     - Add warning message when a managed proxy dies during configuration.
26083       Fixes bug 7195; bugfix on 0.2.4.2-alpha.
26084     - Fix a linking error when building tor-fw-helper without miniupnp.
26085       Fixes bug 7235; bugfix on 0.2.4.2-alpha. Fix by Anthony G. Basile.
26086     - Check for closing an or_connection_t without going through correct
26087       channel functions; emit a warning and then call
26088       connection_or_close_for_error() so we don't assert as in bugs 7212
26089       and 7267.
26090     - Compile correctly on compilers without C99 designated initializer
26091       support. Fixes bug 7286; bugfix on 0.2.4.4-alpha.
26092     - Avoid a possible assert that can occur when channel_send_destroy() is
26093       called on a channel in CHANNEL_STATE_CLOSING, CHANNEL_STATE_CLOSED,
26094       or CHANNEL_STATE_ERROR when the Tor process is resumed after being
26095       blocked for a long interval. Fixes bug 7350; bugfix on 0.2.4.4-alpha.
26096     - Fix a memory leak on failing cases of channel_tls_process_certs_cell.
26097       Fixes bug 7422; bugfix on 0.2.4.4-alpha.
26099   o Code simplification and refactoring:
26100     - Start using OpenBSD's implementation of queue.h, so that we don't
26101       need to hand-roll our own pointer and list structures whenever we
26102       need them. (We can't rely on a sys/queue.h, since some operating
26103       systems don't have them, and the ones that do have them don't all
26104       present the same extensions.)
26107 Changes in version 0.2.4.5-alpha - 2012-10-25
26108   Tor 0.2.4.5-alpha comes hard at the heels of 0.2.4.4-alpha, to fix
26109   two important security vulnerabilities that could lead to remotely
26110   triggerable relay crashes, fix a major bug that was preventing clients
26111   from choosing suitable exit nodes, and refactor some of our code.
26113   o Major bugfixes (security, also in 0.2.3.24-rc):
26114     - Fix a group of remotely triggerable assertion failures related to
26115       incorrect link protocol negotiation. Found, diagnosed, and fixed
26116       by "some guy from France". Fix for CVE-2012-2250; bugfix on
26117       0.2.3.6-alpha.
26118     - Fix a denial of service attack by which any directory authority
26119       could crash all the others, or by which a single v2 directory
26120       authority could crash everybody downloading v2 directory
26121       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
26123   o Major bugfixes (also in 0.2.3.24-rc):
26124     - When parsing exit policy summaries from microdescriptors, we had
26125       previously been ignoring the last character in each one, so that
26126       "accept 80,443,8080" would be treated by clients as indicating
26127       a node that allows access to ports 80, 443, and 808. That would
26128       lead to clients attempting connections that could never work,
26129       and ignoring exit nodes that would support their connections. Now
26130       clients parse these exit policy summaries correctly. Fixes bug 7192;
26131       bugfix on 0.2.3.1-alpha.
26133   o Minor bugfixes (also in 0.2.3.24-rc):
26134     - Clients now consider the ClientRejectInternalAddresses config option
26135       when using a microdescriptor consensus stanza to decide whether
26136       an exit relay would allow exiting to an internal address. Fixes
26137       bug 7190; bugfix on 0.2.3.1-alpha.
26139   o Minor bugfixes:
26140     - Only disable TLS session ticket support when running as a TLS
26141       server. Now clients will blend better with regular Firefox
26142       connections. Fixes bug 7189; bugfix on Tor 0.2.3.23-rc.
26144   o Code simplification and refactoring:
26145     - Start using OpenBSD's implementation of queue.h (originally by
26146       Niels Provos).
26147     - Move the entry node code from circuitbuild.c to its own file.
26148     - Move the circuit build timeout tracking code from circuitbuild.c
26149       to its own file.
26152 Changes in version 0.2.3.24-rc - 2012-10-25
26153   Tor 0.2.3.24-rc fixes two important security vulnerabilities that
26154   could lead to remotely triggerable relay crashes, and fixes
26155   a major bug that was preventing clients from choosing suitable exit
26156   nodes.
26158   o Major bugfixes (security):
26159     - Fix a group of remotely triggerable assertion failures related to
26160       incorrect link protocol negotiation. Found, diagnosed, and fixed
26161       by "some guy from France". Fix for CVE-2012-2250; bugfix on
26162       0.2.3.6-alpha.
26163     - Fix a denial of service attack by which any directory authority
26164       could crash all the others, or by which a single v2 directory
26165       authority could crash everybody downloading v2 directory
26166       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
26168   o Major bugfixes:
26169     - When parsing exit policy summaries from microdescriptors, we had
26170       previously been ignoring the last character in each one, so that
26171       "accept 80,443,8080" would be treated by clients as indicating
26172       a node that allows access to ports 80, 443, and 808. That would
26173       lead to clients attempting connections that could never work,
26174       and ignoring exit nodes that would support their connections. Now
26175       clients parse these exit policy summaries correctly. Fixes bug 7192;
26176       bugfix on 0.2.3.1-alpha.
26178   o Minor bugfixes:
26179     - Clients now consider the ClientRejectInternalAddresses config option
26180       when using a microdescriptor consensus stanza to decide whether
26181       an exit relay would allow exiting to an internal address. Fixes
26182       bug 7190; bugfix on 0.2.3.1-alpha.
26185 Changes in version 0.2.4.4-alpha - 2012-10-20
26186   Tor 0.2.4.4-alpha adds a new v3 directory authority, fixes a privacy
26187   vulnerability introduced by a change in OpenSSL, fixes a remotely
26188   triggerable assert, and adds new channel_t and circuitmux_t abstractions
26189   that will make it easier to test new connection transport and cell
26190   scheduling algorithms.
26192   o New directory authorities (also in 0.2.3.23-rc):
26193     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
26194       authority. Closes ticket 5749.
26196   o Major bugfixes (security/privacy, also in 0.2.3.23-rc):
26197     - Disable TLS session tickets. OpenSSL's implementation was giving
26198       our TLS session keys the lifetime of our TLS context objects, when
26199       perfect forward secrecy would want us to discard anything that
26200       could decrypt a link connection as soon as the link connection
26201       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
26202       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
26203     - Discard extraneous renegotiation attempts once the V3 link
26204       protocol has been initiated. Failure to do so left us open to
26205       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
26206       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
26208   o Internal abstraction features:
26209     - Introduce new channel_t abstraction between circuits and
26210       or_connection_t to allow for implementing alternate OR-to-OR
26211       transports. A channel_t is an abstract object which can either be a
26212       cell-bearing channel, which is responsible for authenticating and
26213       handshaking with the remote OR and transmitting cells to and from
26214       it, or a listening channel, which spawns new cell-bearing channels
26215       at the request of remote ORs. Implements part of ticket 6465.
26216     - Also new is the channel_tls_t subclass of channel_t, adapting it
26217       to the existing or_connection_t code. The V2/V3 protocol handshaking
26218       code which formerly resided in command.c has been moved below the
26219       channel_t abstraction layer and may be found in channeltls.c now.
26220       Implements the rest of ticket 6465.
26221     - Introduce new circuitmux_t storing the queue of circuits for
26222       a channel; this encapsulates and abstracts the queue logic and
26223       circuit selection policy, and allows the latter to be overridden
26224       easily by switching out a policy object. The existing EWMA behavior
26225       is now implemented as a circuitmux_policy_t. Resolves ticket 6816.
26227   o Required libraries:
26228     - Tor now requires OpenSSL 0.9.8 or later. OpenSSL 1.0.0 or later is
26229       strongly recommended.
26231   o Minor features:
26232     - Warn users who run hidden services on a Tor client with
26233       UseEntryGuards disabled that their hidden services will be
26234       vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the
26235       attack which motivated Tor to support entry guards in the first
26236       place). Resolves ticket 6889.
26237     - Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from
26238       dhill. Resolves ticket 6982.
26239     - Option OutboundBindAddress can be specified multiple times and
26240       accepts IPv6 addresses. Resolves ticket 6876.
26242   o Minor bugfixes (also in 0.2.3.23-rc):
26243     - Don't serve or accept v2 hidden service descriptors over a
26244       relay's DirPort. It's never correct to do so, and disabling it
26245       might make it more annoying to exploit any bugs that turn up in the
26246       descriptor-parsing code. Fixes bug 7149.
26247     - Fix two cases in src/or/transports.c where we were calling
26248       fmt_addr() twice in a parameter list. Bug found by David
26249       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
26250     - Fix memory leaks whenever we logged any message about the "path
26251       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
26252     - When relays refuse a "create" cell because their queue of pending
26253       create cells is too big (typically because their cpu can't keep up
26254       with the arrival rate), send back reason "resource limit" rather
26255       than reason "internal", so network measurement scripts can get a
26256       more accurate picture. Fixes bug 7037; bugfix on 0.1.1.11-alpha.
26258   o Minor bugfixes:
26259     - Command-line option "--version" implies "--quiet". Fixes bug 6997.
26260     - Free some more still-in-use memory at exit, to make hunting for
26261       memory leaks easier. Resolves bug 7029.
26262     - When a Tor client gets a "truncated" relay cell, the first byte of
26263       its payload specifies why the circuit was truncated. We were
26264       ignoring this 'reason' byte when tearing down the circuit, resulting
26265       in the controller not being told why the circuit closed. Now we
26266       pass the reason from the truncated cell to the controller. Bugfix
26267       on 0.1.2.3-alpha; fixes bug 7039.
26268     - Downgrade "Failed to hand off onionskin" messages to "debug"
26269       severity, since they're typically redundant with the "Your computer
26270       is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.
26271     - Make clients running with IPv6 bridges connect over IPv6 again,
26272       even without setting new config options ClientUseIPv6 and
26273       ClientPreferIPv6ORPort. Fixes bug 6757; bugfix on 0.2.4.1-alpha.
26274     - Use square brackets around IPv6 addresses in numerous places
26275       that needed them, including log messages, HTTPS CONNECT proxy
26276       requests, TransportProxy statefile entries, and pluggable transport
26277       extra-info lines. Fixes bug 7011; patch by David Fifield.
26279   o Code refactoring and cleanup:
26280     - Source files taken from other packages now reside in src/ext;
26281       previously they were scattered around the rest of Tor.
26282     - Avoid use of reserved identifiers in our C code. The C standard
26283       doesn't like us declaring anything that starts with an
26284       underscore, so let's knock it off before we get in trouble. Fix
26285       for bug 1031; bugfix on the first Tor commit.
26288 Changes in version 0.2.3.23-rc - 2012-10-20
26289   Tor 0.2.3.23-rc adds a new v3 directory authority, fixes a privacy
26290   vulnerability introduced by a change in OpenSSL, and fixes a variety
26291   of smaller bugs in preparation for the release.
26293   o New directory authorities:
26294     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
26295       authority. Closes ticket 5749.
26297   o Major bugfixes (security/privacy):
26298     - Disable TLS session tickets. OpenSSL's implementation was giving
26299       our TLS session keys the lifetime of our TLS context objects, when
26300       perfect forward secrecy would want us to discard anything that
26301       could decrypt a link connection as soon as the link connection
26302       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
26303       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
26304     - Discard extraneous renegotiation attempts once the V3 link
26305       protocol has been initiated. Failure to do so left us open to
26306       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
26307       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
26309   o Major bugfixes:
26310     - Fix a possible crash bug when checking for deactivated circuits
26311       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
26312       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
26314   o Minor bugfixes (on 0.2.3.x):
26315     - Fix two cases in src/or/transports.c where we were calling
26316       fmt_addr() twice in a parameter list. Bug found by David
26317       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
26318     - Convert an assert in the pathbias code to a log message. The assert
26319       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
26320       bugfix on 0.2.3.17-beta.
26321     - Fix memory leaks whenever we logged any message about the "path
26322       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
26324   o Minor bugfixes (on 0.2.2.x and earlier):
26325     - Don't serve or accept v2 hidden service descriptors over a relay's
26326       DirPort. It's never correct to do so, and disabling it might
26327       make it more annoying to exploit any bugs that turn up in the
26328       descriptor-parsing code. Fixes bug 7149.
26329     - When relays refuse a "create" cell because their queue of pending
26330       create cells is too big (typically because their cpu can't keep up
26331       with the arrival rate), send back reason "resource limit" rather
26332       than reason "internal", so network measurement scripts can get a
26333       more accurate picture. Bugfix on 0.1.1.11-alpha; fixes bug 7037.
26334     - Correct file sizes when reading binary files on Cygwin, to avoid
26335       a bug where Tor would fail to read its state file. Fixes bug 6844;
26336       bugfix on 0.1.2.7-alpha.
26337     - Avoid undefined behavior when parsing the list of supported
26338       rendezvous/introduction protocols in a hidden service descriptor.
26339       Previously, Tor would have confused (as-yet-unused) protocol version
26340       numbers greater than 32 with lower ones on many platforms. Fixes
26341       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
26343   o Documentation fixes:
26344     - Clarify that hidden services are TCP only. Fixes bug 6024.
26347 Changes in version 0.2.4.3-alpha - 2012-09-22
26348   Tor 0.2.4.3-alpha fixes another opportunity for a remotely triggerable
26349   assertion, resumes letting relays test reachability of their DirPort,
26350   and cleans up a bunch of smaller bugs.
26352   o Security fixes:
26353     - Fix an assertion failure in tor_timegm() that could be triggered
26354       by a badly formatted directory object. Bug found by fuzzing with
26355       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
26357   o Major bugfixes:
26358     - Fix a possible crash bug when checking for deactivated circuits
26359       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
26360       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
26361     - Allow routers to detect that their own DirPorts are running. When
26362       we removed support for versions_supports_begindir, we also
26363       accidentally removed the mechanism we used to self-test our
26364       DirPort. Diagnosed with help from kargig. Fixes bugs 6814 and 6815;
26365       bugfix on 0.2.4.2-alpha.
26367   o Security features:
26368     - Switch to a completely time-invariant approach for picking nodes
26369       weighted by bandwidth. Our old approach would run through the
26370       part of the loop after it had made its choice slightly slower
26371       than it ran through the part of the loop before it had made its
26372       choice. Addresses ticket 6538.
26373     - Disable the use of Guard nodes when in Tor2WebMode. Guard usage
26374       by tor2web clients allows hidden services to identify tor2web
26375       clients through their repeated selection of the same rendezvous
26376       and introduction point circuit endpoints (their guards). Resolves
26377       ticket 6888.
26379   o Minor features:
26380     - Enable Tor to read configuration, state, and key information from
26381       a FIFO. Previously Tor would only read from files with a positive
26382       stat.st_size. Code from meejah; fixes bug 6044.
26384   o Minor bugfixes:
26385     - Correct file sizes when reading binary files on Cygwin, to avoid
26386       a bug where Tor would fail to read its state file. Fixes bug 6844;
26387       bugfix on 0.1.2.7-alpha.
26388     - Correctly handle votes with more than 31 flags. Fixes bug 6853;
26389       bugfix on 0.2.0.3-alpha.
26390     - When complaining about a client port on a public address, log
26391       which address we're complaining about. Fixes bug 4020; bugfix on
26392       0.2.3.3-alpha. Patch by Tom Fitzhenry.
26393     - Convert an assert in the pathbias code to a log message. The assert
26394       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
26395       bugfix on 0.2.3.17-beta.
26396     - Our new buildsystem was overzealous about rebuilding manpages: it
26397       would rebuild them all whenever any one of them changed. Now our
26398       dependency checking should be correct. Fixes bug 6843; bugfix on
26399       0.2.4.1-alpha.
26400     - Don't do reachability testing over IPv6 unless AuthDirPublishIPv6
26401       is set. Fixes bug 6880. Bugfix on 0.2.4.1-alpha.
26402     - Correct log printout about which address family is preferred
26403       when connecting to a bridge with both an IPv4 and IPv6 OR port.
26404       Fixes bug 6884; bugfix on 0.2.4.1-alpha.
26406   o Minor bugfixes (code cleanliness):
26407     - Fix round_to_power_of_2() so it doesn't invoke undefined behavior
26408       with large values. This situation was untriggered, but nevertheless
26409       incorrect. Fixes bug 6831; bugfix on 0.2.0.1-alpha.
26410     - Reject consensus votes with more than 64 known-flags. We aren't even
26411       close to that limit yet, and our code doesn't handle it correctly.
26412       Fixes bug 6833; bugfix on 0.2.0.1-alpha.
26413     - Avoid undefined behavior when parsing the list of supported
26414       rendezvous/introduction protocols in a hidden service descriptor.
26415       Previously, Tor would have confused (as-yet-unused) protocol version
26416       numbers greater than 32 with lower ones on many platforms. Fixes
26417       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
26418     - Fix handling of rendezvous client authorization types over 8.
26419       Fixes bug 6861; bugfix on 0.2.1.5-alpha.
26420     - Fix building with older versions of GCC (2.95, for one) that don't
26421       like preprocessor directives inside macro arguments. Found by
26422       grarpamp. Fixes bug 6842; bugfix on 0.2.4.2-alpha.
26423     - Switch weighted node selection rule from using a list of doubles
26424       to using a list of int64_t. This change should make the process
26425       slightly easier to debug and maintain. Needed to finish ticket 6538.
26427   o Code simplification and refactoring:
26428     - Move the generic "config" code into a new file, and have "config.c"
26429       hold only torrc- and state-related code. Resolves ticket 6823.
26430     - Move the core of our "choose a weighted element at random" logic
26431       into its own function, and give it unit tests. Now the logic is
26432       testable, and a little less fragile too.
26433     - Removed the testing_since field of node_t, which hasn't been used
26434       for anything since 0.2.0.9-alpha.
26436   o Documentation fixes:
26437     - Clarify that hidden services are TCP only. Fixes bug 6024.
26438     - Resolve a typo in torrc.sample.in. Fixes bug 6819; bugfix on
26439       0.2.3.14-alpha.
26442 Changes in version 0.2.3.22-rc - 2012-09-11
26443   Tor 0.2.3.22-rc fixes another opportunity for a remotely triggerable
26444   assertion.
26446   o Security fixes:
26447     - Fix an assertion failure in tor_timegm() that could be triggered
26448       by a badly formatted directory object. Bug found by fuzzing with
26449       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
26451   o Minor bugfixes:
26452     - Avoid segfault when starting up having run with an extremely old
26453       version of Tor and parsing its state file. Fixes bug 6801; bugfix
26454       on 0.2.2.23-alpha.
26457 Changes in version 0.2.2.39 - 2012-09-11
26458   Tor 0.2.2.39 fixes two more opportunities for remotely triggerable
26459   assertions.
26461   o Security fixes:
26462     - Fix an assertion failure in tor_timegm() that could be triggered
26463       by a badly formatted directory object. Bug found by fuzzing with
26464       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
26465     - Do not crash when comparing an address with port value 0 to an
26466       address policy. This bug could have been used to cause a remote
26467       assertion failure by or against directory authorities, or to
26468       allow some applications to crash clients. Fixes bug 6690; bugfix
26469       on 0.2.1.10-alpha.
26472 Changes in version 0.2.4.2-alpha - 2012-09-10
26473   Tor 0.2.4.2-alpha enables port forwarding for pluggable transports,
26474   raises the default rate limiting even more, and makes the bootstrapping
26475   log messages less noisy.
26477   o Major features:
26478     - Automatically forward the TCP ports of pluggable transport
26479       proxies using tor-fw-helper if PortForwarding is enabled. Implements
26480       ticket 4567.
26482   o Major bugfixes:
26483     - Raise the default BandwidthRate/BandwidthBurst values from 5MB/10MB
26484       to 1GB/1GB. The previous defaults were intended to be "basically
26485       infinite", but it turns out they're now limiting our 100mbit+
26486       relays and bridges. Fixes bug 6605; bugfix on 0.2.0.10-alpha (the
26487       last time we raised it).
26489   o Minor features:
26490     - Detect when we're running with a version of OpenSSL other than the
26491       one we compiled with. This has occasionally given people hard-to-
26492       track-down errors.
26493     - Log fewer lines at level "notice" about our OpenSSL and Libevent
26494       versions and capabilities when everything is going right. Resolves
26495       part of ticket 6736.
26496     - Directory authorities no long accept descriptors for any version of
26497       Tor before 0.2.2.35, or for any 0.2.3 release before 0.2.3.10-alpha.
26498       These versions are insecure, unsupported, or both. Implements
26499       ticket 6789.
26501   o Minor bugfixes:
26502     - Rename the (internal-use-only) UsingTestingNetworkDefaults option
26503       to start with a triple-underscore so the controller won't touch it.
26504       Patch by Meejah. Fixes bug 3155. Bugfix on 0.2.2.23-alpha.
26505     - Avoid segfault when starting up having run with an extremely old
26506       version of Tor and parsing its state file. Fixes bug 6801; bugfix
26507       on 0.2.2.23-alpha.
26508     - Rename the (testing-use-only) _UseFilteringSSLBufferevents option
26509       so it doesn't start with _. Fixes bug 3155. Bugfix on 0.2.3.1-alpha.
26510     - Don't follow the NULL pointer if microdescriptor generation fails.
26511       (This does not appear to be triggerable, but it's best to be safe.)
26512       Found by "f. tp.". Fixes bug 6797; bugfix on 0.2.4.1-alpha.
26513     - Fix mis-declared dependencies on src/common/crypto.c and
26514       src/or/tor_main.c that could break out-of-tree builds under some
26515       circumstances. Fixes bug 6778; bugfix on 0.2.4.1-alpha.
26516     - Avoid a warning when building common_sha1.i out of tree. Fixes bug
26517       6778; bugfix on 0.2.4.1-alpha.
26518     - Fix a harmless (in this case) build warning for implicitly
26519       converting a strlen() to an int. Bugfix on 0.2.4.1-alpha.
26521   o Removed features:
26522     - Now that all versions before 0.2.2.x are disallowed, we no longer
26523       need to work around their missing features. Thus we can remove a
26524       bunch of compatibility code.
26526   o Code refactoring:
26527     - Tweak tor-fw-helper to accept an arbitrary amount of arbitrary
26528       TCP ports to forward. In the past it only accepted two ports:
26529       the ORPort and the DirPort.
26532 Changes in version 0.2.4.1-alpha - 2012-09-05
26533   Tor 0.2.4.1-alpha lets bridges publish their pluggable transports to
26534   bridgedb; lets relays use IPv6 addresses and directory authorities
26535   advertise them; and switches to a cleaner build interface.
26537   This is the first alpha release in a new series, so expect there to
26538   be bugs. Users who would rather test out a more stable branch should
26539   stay with 0.2.3.x for now.
26541   o Major features (bridges):
26542     - Bridges now report the pluggable transports they support to the
26543       bridge authority, so it can pass the supported transports on to
26544       bridgedb and/or eventually do reachability testing. Implements
26545       ticket 3589.
26547   o Major features (IPv6):
26548     - Bridge authorities now accept IPv6 bridge addresses and include
26549       them in network status documents. Implements ticket 5534.
26550     - Clients who set "ClientUseIPv6 1" may connect to entry nodes over
26551       IPv6. Set "ClientPreferIPv6ORPort 1" to make this even more likely
26552       to happen. Implements ticket 5535.
26553     - All kind of relays, not just bridges, can now advertise an IPv6
26554       OR port. Implements ticket 6362.
26555     - Directory authorities vote on IPv6 OR ports using the new consensus
26556       method 14. Implements ticket 6363.
26558   o Major features (build):
26559     - Switch to a nonrecursive Makefile structure. Now instead of each
26560       Makefile.am invoking other Makefile.am's, there is a master
26561       Makefile.am that includes the others. This change makes our build
26562       process slightly more maintainable, and improves parallelism for
26563       building with make -j. Original patch by Stewart Smith; various
26564       fixes by Jim Meyering.
26565     - Where available, we now use automake's "silent" make rules by
26566       default, so that warnings are easier to spot. You can get the old
26567       behavior with "make V=1". Patch by Stewart Smith for ticket 6522.
26569   o Minor features (code security and spec conformance):
26570     - Clear keys and key-derived material left on the stack in
26571       rendservice.c and rendclient.c. Check return value of
26572       crypto_pk_write_private_key_to_string() in rend_service_load_keys().
26573       These fixes should make us more forward-secure against cold-boot
26574       attacks and the like. Fixes bug 2385.
26575     - Reject EXTEND cells sent to nonexistent streams. According to the
26576       spec, an EXTEND cell sent to _any_ nonzero stream ID is invalid, but
26577       we were only checking for stream IDs that were currently in use.
26578       Found while hunting for more instances of bug 6271. Bugfix on
26579       0.0.2pre8, which introduced incremental circuit construction.
26581   o Minor features (streamlining);
26582     - No longer include the "opt" prefix when generating routerinfos
26583       or v2 directories: it has been needless since Tor 0.1.2. Closes
26584       ticket 5124.
26585     - Remove some now-needless code that tried to aggressively flush
26586       OR connections as data was added to them. Since 0.2.0.1-alpha, our
26587       cell queue logic has saved us from the failure mode that this code
26588       was supposed to prevent. Removing this code will limit the number
26589       of baroque control flow paths through Tor's network logic. Reported
26590       pseudonymously on IRC. Fixes bug 6468; bugfix on 0.2.0.1-alpha.
26592   o Minor features (controller):
26593     - Add a "GETINFO signal/names" control port command. Implements
26594       ticket 3842.
26595     - Provide default values for all options via "GETINFO config/defaults".
26596       Implements ticket 4971.
26598   o Minor features (IPv6):
26599     - New config option "AuthDirHasIPv6Connectivity 1" that directory
26600       authorities should set if they have IPv6 connectivity and want to
26601       do reachability tests for IPv6 relays. Implements feature 5974.
26602     - A relay with an IPv6 OR port now sends that address in NETINFO
26603       cells (in addition to its other address). Implements ticket 6364.
26605   o Minor features (log messages):
26606     - Omit the first heartbeat log message, because it never has anything
26607       useful to say, and it clutters up the bootstrapping messages.
26608       Resolves ticket 6758.
26609     - Don't log about reloading the microdescriptor cache at startup. Our
26610       bootstrap warnings are supposed to tell the user when there's a
26611       problem, and our bootstrap notices say when there isn't. Resolves
26612       ticket 6759; bugfix on 0.2.2.6-alpha.
26613     - Don't log "I learned some more directory information" when we're
26614       reading cached directory information. Reserve it for when new
26615       directory information arrives in response to a fetch. Resolves
26616       ticket 6760.
26617     - Prevent rounding error in path bias counts when scaling
26618       them down, and use the correct scale factor default. Also demote
26619       some path bias related log messages down a level and make others
26620       less scary sounding. Fixes bug 6647. Bugfix against 0.2.3.17-beta.
26621     - We no longer warn so much when generating manpages from their
26622       asciidoc source.
26624   o Code simplifications and refactoring:
26625     - Enhance our internal sscanf replacement so that we can eliminate
26626       the last remaining uses of the system sscanf. (Though those uses
26627       of sscanf were safe, sscanf itself is generally error prone, so
26628       we want to eliminate when we can.) Fixes ticket 4195 and Coverity
26629       CID 448.
26630     - Move ipv6_preferred from routerinfo_t to node_t. Addresses bug 4620.
26631     - Move last_reachable and testing_since from routerinfo_t to node_t.
26632       Implements ticket 5529.
26633     - Add replaycache_t structure, functions and unit tests, then refactor
26634       rend_service_introduce() to be more clear to read, improve, debug,
26635       and test. Resolves bug 6177.
26636     - Finally remove support for malloc_good_size and malloc_usable_size.
26637       We had hoped that these functions would let us eke a little more
26638       memory out of our malloc implementation. Unfortunately, the only
26639       implementations that provided these functions are also ones that
26640       are already efficient about not overallocation: they never got us
26641       more than 7 or so bytes per allocation. Removing them saves us a
26642       little code complexity and a nontrivial amount of build complexity.
26644   o New requirements:
26645     - Tor maintainers now require Automake version 1.9 or later to build
26646       Tor from the Git repository. (Automake is not required when building
26647       from a source distribution.)
26650 Changes in version 0.2.3.21-rc - 2012-09-05
26651   Tor 0.2.3.21-rc is the fourth release candidate for the Tor 0.2.3.x
26652   series. It fixes a trio of potential security bugs, fixes a bug where
26653   we were leaving some of the fast relays out of the microdescriptor
26654   consensus, resumes interpreting "ORPort 0" and "DirPort 0" correctly,
26655   and cleans up other smaller issues.
26657   o Major bugfixes (security):
26658     - Tear down the circuit if we get an unexpected SENDME cell. Clients
26659       could use this trick to make their circuits receive cells faster
26660       than our flow control would have allowed, or to gum up the network,
26661       or possibly to do targeted memory denial-of-service attacks on
26662       entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor --
26663       from July 2002, before the release of Tor 0.0.0. We had committed
26664       this patch previously, but we had to revert it because of bug 6271.
26665       Now that 6271 is fixed, this patch appears to work.
26666     - Reject any attempt to extend to an internal address. Without
26667       this fix, a router could be used to probe addresses on an internal
26668       network to see whether they were accepting connections. Fixes bug
26669       6710; bugfix on 0.0.8pre1.
26670     - Do not crash when comparing an address with port value 0 to an
26671       address policy. This bug could have been used to cause a remote
26672       assertion failure by or against directory authorities, or to
26673       allow some applications to crash clients. Fixes bug 6690; bugfix
26674       on 0.2.1.10-alpha.
26676   o Major bugfixes:
26677     - Remove the upper bound on microdescriptor length. We were hitting
26678       the limit for routers with complex exit policies or family
26679       declarations, causing clients to not use them. Fixes the first
26680       piece of bug 6404; fix on 0.2.2.6-alpha.
26681     - Detect "ORPort 0" as meaning, uniformly, that we're not running
26682       as a relay. Previously, some of our code would treat the presence
26683       of any ORPort line as meaning that we should act like a relay,
26684       even though our new listener code would correctly not open any
26685       ORPorts for ORPort 0. Similar bugs in other Port options are also
26686       fixed. Fixes the first half of bug 6507; bugfix on 0.2.3.3-alpha.
26688   o Minor bugfixes:
26689     - Avoid a pair of double-free and use-after-mark bugs that can
26690       occur with certain timings in canceled and re-received DNS
26691       requests. Fixes bug 6472; bugfix on 0.0.7rc1.
26692     - Fix build and 64-bit compile warnings from --enable-openbsd-malloc.
26693       Fixes bug 6379. Bugfix on 0.2.0.20-rc.
26694     - Allow one-hop directory fetching circuits the full "circuit build
26695       timeout" period, rather than just half of it, before failing them
26696       and marking the relay down. This fix should help reduce cases where
26697       clients declare relays (or worse, bridges) unreachable because
26698       the TLS handshake takes a few seconds to complete. Fixes bug 6743;
26699       bugfix on 0.2.2.2-alpha, where we changed the timeout from a static
26700       30 seconds.
26701     - Authorities no longer include any router in their microdescriptor
26702       consensuses for which they couldn't generate or agree on a
26703       microdescriptor. Fixes the second piece of bug 6404; fix on
26704       0.2.2.6-alpha.
26705     - Detect and reject attempts to specify both "FooPort" and
26706       "FooPort 0" in the same configuration domain. (It's still okay
26707       to have a FooPort in your configuration file, and use "FooPort 0"
26708       on the command line to disable it.) Fixes the second half of bug
26709       6507; bugfix on 0.2.3.3-alpha.
26710     - Make wildcarded addresses (that is, ones beginning with "*.") work
26711       when provided via the controller's MapAddress command. Previously,
26712       they were accepted, but we never actually noticed that they were
26713       wildcards. Fixes bug 6244; bugfix on 0.2.3.9-alpha.
26714     - Avoid crashing on a malformed state file where EntryGuardPathBias
26715       precedes EntryGuard. Fix for bug 6774; bugfix on 0.2.3.17-beta.
26716     - Add a (probably redundant) memory clear between iterations of
26717       the router status voting loop, to prevent future coding errors
26718       where data might leak between iterations of the loop. Resolves
26719       ticket 6514.
26721   o Minor bugfixes (log messages):
26722     - Downgrade "set buildtimeout to low value" messages to "info"
26723       severity; they were never an actual problem, there was never
26724       anything reasonable to do about them, and they tended to spam logs
26725       from time to time. Fixes bug 6251; bugfix on 0.2.2.2-alpha.
26726     - Downgrade path-bias warning messages to "info". We'll try to get
26727       them working better in 0.2.4. Add internal circuit construction
26728       state to protect against the noisy warn message "Unexpectedly high
26729       circuit_successes". Also add some additional rate-limited notice
26730       messages to help determine the root cause of the warn. Fixes bug
26731       6475. Bugfix against 0.2.3.17-beta.
26732     - Move log message when unable to find a microdesc in a routerstatus
26733       entry to parse time. Previously we'd spam this warning every time
26734       we tried to figure out which microdescriptors to download. Fixes
26735       the third piece of bug 6404; fix on 0.2.3.18-rc.
26737   o Minor features:
26738     - Consider new, removed or changed IPv6 OR ports a non-cosmetic
26739       change when the authority is deciding whether to accept a newly
26740       uploaded descriptor. Implements ticket 6423.
26741     - Add missing documentation for consensus and microdesc files.
26742       Resolves ticket 6732.
26745 Changes in version 0.2.2.38 - 2012-08-12
26746   Tor 0.2.2.38 fixes a remotely triggerable crash bug, and fixes a timing
26747   attack that could in theory leak path information.
26749   o Security fixes:
26750     - Avoid an uninitialized memory read when reading a vote or consensus
26751       document that has an unrecognized flavor name. This read could
26752       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
26753     - Try to leak less information about what relays a client is
26754       choosing to a side-channel attacker. Previously, a Tor client would
26755       stop iterating through the list of available relays as soon as it
26756       had chosen one, thus finishing a little earlier when it picked
26757       a router earlier in the list. If an attacker can recover this
26758       timing information (nontrivial but not proven to be impossible),
26759       they could learn some coarse-grained information about which relays
26760       a client was picking (middle nodes in particular are likelier to
26761       be affected than exits). The timing attack might be mitigated by
26762       other factors (see bug 6537 for some discussion), but it's best
26763       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
26766 Changes in version 0.2.3.20-rc - 2012-08-05
26767   Tor 0.2.3.20-rc is the third release candidate for the Tor 0.2.3.x
26768   series. It fixes a pair of code security bugs and a potential anonymity
26769   issue, updates our RPM spec files, and cleans up other smaller issues.
26771   o Security fixes:
26772     - Avoid read-from-freed-memory and double-free bugs that could occur
26773       when a DNS request fails while launching it. Fixes bug 6480;
26774       bugfix on 0.2.0.1-alpha.
26775     - Avoid an uninitialized memory read when reading a vote or consensus
26776       document that has an unrecognized flavor name. This read could
26777       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
26778     - Try to leak less information about what relays a client is
26779       choosing to a side-channel attacker. Previously, a Tor client would
26780       stop iterating through the list of available relays as soon as it
26781       had chosen one, thus finishing a little earlier when it picked
26782       a router earlier in the list. If an attacker can recover this
26783       timing information (nontrivial but not proven to be impossible),
26784       they could learn some coarse-grained information about which relays
26785       a client was picking (middle nodes in particular are likelier to
26786       be affected than exits). The timing attack might be mitigated by
26787       other factors (see bug 6537 for some discussion), but it's best
26788       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
26790   o Minor features:
26791     - Try to make the warning when giving an obsolete SOCKSListenAddress
26792       a little more useful.
26793     - Terminate active server managed proxies if Tor stops being a
26794       relay. Addresses parts of bug 6274; bugfix on 0.2.3.6-alpha.
26795     - Provide a better error message about possible OSX Asciidoc failure
26796       reasons. Fixes bug 6436.
26797     - Warn when Tor is configured to use accounting in a way that can
26798       link a hidden service to some other hidden service or public
26799       address. Resolves ticket 6490.
26801   o Minor bugfixes:
26802     - Check return value of fputs() when writing authority certificate
26803       file. Fixes Coverity issue 709056; bugfix on 0.2.0.1-alpha.
26804     - Ignore ServerTransportPlugin lines when Tor is not configured as
26805       a relay. Fixes bug 6274; bugfix on 0.2.3.6-alpha.
26806     - When disabling guards for having too high a proportion of failed
26807       circuits, make sure to look at each guard. Fixes bug 6397; bugfix
26808       on 0.2.3.17-beta.
26810   o Packaging (RPM):
26811     - Update our default RPM spec files to work with mock and rpmbuild
26812       on RHEL/Fedora. They have an updated set of dependencies and
26813       conflicts, a fix for an ancient typo when creating the "_tor"
26814       user, and better instructions. Thanks to Ondrej Mikle for the
26815       patch series. Fixes bug 6043.
26817   o Testing:
26818     - Make it possible to set the TestingTorNetwork configuration
26819       option using AlternateDirAuthority and AlternateBridgeAuthority
26820       as an alternative to setting DirServer. Addresses ticket 6377.
26822   o Documentation:
26823     - Clarify the documentation for the Alternate*Authority options.
26824       Fixes bug 6387.
26825     - Fix some typos in the manpages. Patch from A. Costa. Fixes bug 6500.
26827   o Code simplification and refactoring:
26828     - Do not use SMARTLIST_FOREACH for any loop whose body exceeds
26829       10 lines. Also, don't nest them. Doing so in the past has
26830       led to hard-to-debug code. The new style is to use the
26831       SMARTLIST_FOREACH_{BEGIN,END} pair. Addresses issue 6400.
26834 Changes in version 0.2.3.19-rc - 2012-07-06
26835   Tor 0.2.3.19-rc is the second release candidate for the Tor 0.2.3.x
26836   series. It fixes the compile on Windows, reverts to a GeoIP database
26837   that isn't as broken, and fixes a flow control bug that has been around
26838   since the beginning of Tor.
26840   o Major bugfixes:
26841     - Fix a bug handling SENDME cells on nonexistent streams that could
26842       result in bizarre window values. Report and patch contributed
26843       pseudonymously. Fixes part of bug 6271. This bug was introduced
26844       before the first Tor release, in svn commit r152.
26845     - Revert to the May 1 2012 Maxmind GeoLite Country database. In the
26846       June 2012 database, Maxmind marked many Tor relays as country "A1",
26847       which will cause risky behavior for clients that set EntryNodes
26848       or ExitNodes. Addresses bug 6334; bugfix on 0.2.3.17-beta.
26849     - Instead of ENOBUFS on Windows, say WSAENOBUFS. Fixes compilation
26850       on Windows. Fixes bug 6296; bugfix on 0.2.3.18-rc.
26852   o Minor bugfixes:
26853     - Fix wrong TCP port range in parse_port_range(). Fixes bug 6218;
26854       bugfix on 0.2.1.10-alpha.
26857 Changes in version 0.2.3.18-rc - 2012-06-28
26858   Tor 0.2.3.18-rc is the first release candidate for the Tor 0.2.3.x
26859   series. It fixes a few smaller bugs, but generally appears stable.
26860   Please test it and let us know whether it is!
26862   o Major bugfixes:
26863     - Allow wildcarded mapaddress targets to be specified on the
26864       controlport. Partially fixes bug 6244; bugfix on 0.2.3.9-alpha.
26865     - Make our linker option detection code more robust against linkers
26866       such as on FreeBSD 8, where a bad combination of options completes
26867       successfully but makes an unrunnable binary. Fixes bug 6173;
26868       bugfix on 0.2.3.17-beta.
26870   o Minor bugfixes (on 0.2.2.x and earlier):
26871     - Avoid a false positive in the util/threads unit test by increasing
26872       the maximum timeout time. Fixes bug 6227; bugfix on 0.2.0.4-alpha.
26873     - Replace "Sending publish request" log messages with "Launching
26874       upload", so that they no longer confusingly imply that we're
26875       sending something to a directory we might not even be connected
26876       to yet. Fixes bug 3311; bugfix on 0.2.0.10-alpha.
26877     - Make sure to set *socket_error in all error cases in
26878       connection_connect(), so it can't produce a warning about
26879       errno being zero from errno_to_orconn_end_reason(). Bugfix on
26880       0.2.1.1-alpha; resolves ticket 6028.
26881     - Downgrade "Got a certificate, but we already have it" log messages
26882       from warning to info, except when we're a dirauth. Fixes bug 5238;
26883       bugfix on 0.2.1.7-alpha.
26884     - When checking for requested signatures on the latest consensus
26885       before serving it to a client, make sure to check the right
26886       consensus flavor. Bugfix on 0.2.2.6-alpha.
26887     - Downgrade "eventdns rejected address" message to LOG_PROTOCOL_WARN.
26888       Fixes bug 5932; bugfix on 0.2.2.7-alpha.
26890   o Minor bugfixes (on 0.2.3.x):
26891     - Make format_helper_exit_status() avoid unnecessary space padding
26892       and stop confusing log_from_pipe(). Fixes ticket 5557; bugfix
26893       on 0.2.3.1-alpha.
26894     - Downgrade a message about cleaning the microdescriptor cache to
26895       "info" from "notice". Fixes bug 6238; bugfix on 0.2.3.1-alpha.
26896     - Log a BUG message at severity INFO if we have a networkstatus with
26897       a missing entry for some microdescriptor. Continues on a patch
26898       to 0.2.3.2-alpha.
26899     - Improve the log message when a managed proxy fails to launch. Fixes
26900       bug 5099; bugfix on 0.2.3.6-alpha.
26901     - Don't do DNS lookups when parsing corrupted managed proxy protocol
26902       messages. Fixes bug 6226; bugfix on 0.2.3.6-alpha.
26903     - When formatting wildcarded address mappings for the controller,
26904       be sure to include "*." as appropriate. Partially fixes bug 6244;
26905       bugfix on 0.2.3.9-alpha.
26906     - Avoid a warning caused by using strcspn() from glibc with clang 3.0.
26907       Bugfix on 0.2.3.13-alpha.
26908     - Stop logging messages about running with circuit timeout learning
26909       enabled at severity LD_BUG. Fixes bug 6169; bugfix on 0.2.3.17-beta.
26910     - Disable a spurious warning about reading on a marked and flushing
26911       connection. We shouldn't be doing that, but apparently we
26912       sometimes do. Fixes bug 6203; bugfix on 0.2.3.17-beta.
26913     - Fix a bug that stopped AllowDotExit from working on addresses
26914       that had an entry in the DNS cache. Fixes bug 6211; bugfix on
26915       0.2.3.17-beta.
26917   o Code simplification, refactoring, unit tests:
26918     - Move tor_gettimeofday_cached() into compat_libevent.c, and use
26919       Libevent's notion of cached time when possible.
26920     - Remove duplicate code for invoking getrlimit() from control.c.
26921     - Add a unit test for the environment_variable_names_equal function.
26923   o Documentation:
26924     - Document the --defaults-torrc option, and the new (in 0.2.3)
26925       semantics for overriding, extending, and clearing lists of
26926       options. Closes bug 4748.
26929 Changes in version 0.2.3.17-beta - 2012-06-15
26930   Tor 0.2.3.17-beta enables compiler and linker hardening by default,
26931   gets our TLS handshake back on track for being able to blend in with
26932   Firefox, fixes a big bug in 0.2.3.16-alpha that broke Tor's interaction
26933   with Vidalia, and otherwise continues to get us closer to a release
26934   candidate.
26936   o Major features:
26937     - Enable gcc and ld hardening by default. Resolves ticket 5210.
26938     - Update TLS cipher list to match Firefox 8 and later. Resolves
26939       ticket 4744.
26940     - Implement the client side of proposal 198: remove support for
26941       clients falsely claiming to support standard ciphersuites that
26942       they can actually provide. As of modern OpenSSL versions, it's not
26943       necessary to fake any standard ciphersuite, and doing so prevents
26944       us from using better ciphersuites in the future, since servers
26945       can't know whether an advertised ciphersuite is really supported or
26946       not. Some hosts -- notably, ones with very old versions of OpenSSL
26947       or where OpenSSL has been built with ECC disabled -- will stand
26948       out because of this change; TBB users should not be affected.
26950   o Major bugfixes:
26951     - Change the default value for DynamicDHGroups (introduced in
26952       0.2.3.9-alpha) to 0. This feature can make Tor relays less
26953       identifiable by their use of the mod_ssl DH group, but at
26954       the cost of some usability (#4721) and bridge tracing (#6087)
26955       regressions. Resolves ticket 5598.
26956     - Send a CRLF at the end of each STATUS_* control protocol event. This
26957       bug tickled a bug in Vidalia which would make it freeze. Fixes
26958       bug 6094; bugfix on 0.2.3.16-alpha.
26960   o Minor bugfixes:
26961     - Disable writing on marked-for-close connections when they are
26962       blocked on bandwidth, to prevent busy-looping in Libevent. Fixes
26963       bug 5263; bugfix on 0.0.2pre13, where we first added a special
26964       case for flushing marked connections.
26965     - Detect SSL handshake even when the initial attempt to write the
26966       server hello fails. Fixes bug 4592; bugfix on 0.2.0.13-alpha.
26967     - Change the AllowDotExit rules so they should actually work.
26968       We now enforce AllowDotExit only immediately after receiving an
26969       address via SOCKS or DNSPort: other sources are free to provide
26970       .exit addresses after the resolution occurs. Fixes bug 3940;
26971       bugfix on 0.2.2.1-alpha.
26972     - Fix a (harmless) integer overflow in cell statistics reported by
26973       some fast relays. Fixes bug 5849; bugfix on 0.2.2.1-alpha.
26974     - Make sure circuitbuild.c checks LearnCircuitBuildTimeout in all the
26975       right places and never depends on the consensus parameters or
26976       computes adaptive timeouts when it is disabled. Fixes bug 5049;
26977       bugfix on 0.2.2.14-alpha.
26978     - When building Tor on Windows with -DUNICODE (not default), ensure
26979       that error messages, filenames, and DNS server names are always
26980       NUL-terminated when we convert them to a single-byte encoding.
26981       Fixes bug 5909; bugfix on 0.2.2.16-alpha.
26982     - Make Tor build correctly again with -DUNICODE -D_UNICODE defined.
26983       Fixes bug 6097; bugfix on 0.2.2.16-alpha.
26984     - Fix an edge case where TestingTorNetwork is set but the authorities
26985       and relays all have an uptime of zero, where the private Tor network
26986       could briefly lack support for hidden services. Fixes bug 3886;
26987       bugfix on 0.2.2.18-alpha.
26988     - Correct the manpage's descriptions for the default values of
26989       DirReqStatistics and ExtraInfoStatistics. Fixes bug 2865; bugfix
26990       on 0.2.3.1-alpha.
26991     - Fix the documentation for the --hush and --quiet command line
26992       options, which changed their behavior back in 0.2.3.3-alpha.
26993     - Fix compilation warning with clang 3.1. Fixes bug 6141; bugfix on
26994       0.2.3.11-alpha.
26996   o Minor features:
26997     - Rate-limit the "Weighted bandwidth is 0.000000" message, and add
26998       more information to it, so that we can track it down in case it
26999       returns again. Mitigates bug 5235.
27000     - Check CircuitBuildTimeout and LearnCircuitBuildTimeout in
27001       options_validate(); warn if LearnCircuitBuildTimeout is disabled and
27002       CircuitBuildTimeout is set unreasonably low. Resolves ticket 5452.
27003     - Warn the user when HTTPProxy, but no other proxy type, is
27004       configured. This can cause surprising behavior: it doesn't send
27005       all of Tor's traffic over the HTTPProxy -- it sends unencrypted
27006       directory traffic only. Resolves ticket 4663.
27007     - Issue a notice if a guard completes less than 40% of your circuits.
27008       Threshold is configurable by torrc option PathBiasNoticeRate and
27009       consensus parameter pb_noticepct. There is additional, off-by-
27010       default code to disable guards which fail too many circuits.
27011       Addresses ticket 5458.
27012     - Update to the June 6 2012 Maxmind GeoLite Country database.
27014   o Code simplifications and refactoring:
27015     - Remove validate_pluggable_transports_config(): its warning
27016       message is now handled by connection_or_connect().
27019 Changes in version 0.2.2.37 - 2012-06-06
27020   Tor 0.2.2.37 introduces a workaround for a critical renegotiation
27021   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
27022   currently).
27024   o Major bugfixes:
27025     - Work around a bug in OpenSSL that broke renegotiation with TLS
27026       1.1 and TLS 1.2. Without this workaround, all attempts to speak
27027       the v2 Tor connection protocol when both sides were using OpenSSL
27028       1.0.1 would fail. Resolves ticket 6033.
27029     - When waiting for a client to renegotiate, don't allow it to add
27030       any bytes to the input buffer. This fixes a potential DoS issue.
27031       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
27032     - Fix an edge case where if we fetch or publish a hidden service
27033       descriptor, we might build a 4-hop circuit and then use that circuit
27034       for exiting afterwards -- even if the new last hop doesn't obey our
27035       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
27037   o Minor bugfixes:
27038     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
27039       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
27041   o Minor features:
27042     - Tell GCC and Clang to check for any errors in format strings passed
27043       to the tor_v*(print|scan)f functions.
27046 Changes in version 0.2.3.16-alpha - 2012-06-05
27047   Tor 0.2.3.16-alpha introduces a workaround for a critical renegotiation
27048   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
27049   currently). It also fixes a variety of smaller bugs and other cleanups
27050   that get us closer to a release candidate.
27052   o Major bugfixes (general):
27053     - Work around a bug in OpenSSL that broke renegotiation with TLS
27054       1.1 and TLS 1.2. Without this workaround, all attempts to speak
27055       the v2 Tor connection protocol when both sides were using OpenSSL
27056       1.0.1 would fail. Resolves ticket 6033.
27057     - When waiting for a client to renegotiate, don't allow it to add
27058       any bytes to the input buffer. This fixes a potential DoS issue.
27059       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
27060     - Pass correct OR address to managed proxies (like obfsproxy),
27061       even when ORListenAddress is used. Fixes bug 4865; bugfix on
27062       0.2.3.9-alpha.
27063     - The advertised platform of a router now includes only its operating
27064       system's name (e.g., "Linux", "Darwin", "Windows 7"), and not its
27065       service pack level (for Windows) or its CPU architecture (for Unix).
27066       We also no longer include the "git-XYZ" tag in the version. Resolves
27067       part of bug 2988.
27069   o Major bugfixes (clients):
27070     - If we are unable to find any exit that supports our predicted ports,
27071       stop calling them predicted, so that we don't loop and build
27072       hopeless circuits indefinitely. Fixes bug 3296; bugfix on 0.0.9pre6,
27073       which introduced predicted ports.
27074     - Fix an edge case where if we fetch or publish a hidden service
27075       descriptor, we might build a 4-hop circuit and then use that circuit
27076       for exiting afterwards -- even if the new last hop doesn't obey our
27077       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
27078     - Check at each new consensus whether our entry guards were picked
27079       long enough ago that we should rotate them. Previously, we only
27080       did this check at startup, which could lead to us holding a guard
27081       indefinitely. Fixes bug 5380; bugfix on 0.2.1.14-rc.
27082     - When fetching a bridge descriptor from a bridge authority,
27083       always do so anonymously, whether we have been able to open
27084       circuits or not. Partial fix for bug 1938; bugfix on 0.2.0.7-alpha.
27085       This behavior makes it *safer* to use UpdateBridgesFromAuthority,
27086       but we'll need to wait for bug 6010 before it's actually usable.
27088   o Major bugfixes (directory authorities):
27089     - When computing weight parameters, behave more robustly in the
27090       presence of a bad bwweightscale value. Previously, the authorities
27091       would crash if they agreed on a sufficiently broken weight_scale
27092       value: now, they use a reasonable default and carry on. Partial
27093       fix for 5786; bugfix on 0.2.2.17-alpha.
27094     - Check more thoroughly to prevent a rogue authority from
27095       double-voting on any consensus directory parameter. Previously,
27096       authorities would crash in this case if the total number of
27097       votes for any parameter exceeded the number of active voters,
27098       but would let it pass otherwise. Partial fix for bug 5786; bugfix
27099       on 0.2.2.2-alpha.
27101   o Minor features:
27102     - Rate-limit log messages when asked to connect anonymously to
27103       a private address. When these hit, they tended to hit fast and
27104       often. Also, don't bother trying to connect to addresses that we
27105       are sure will resolve to 127.0.0.1: getting 127.0.0.1 in a directory
27106       reply makes us think we have been lied to, even when the address the
27107       client tried to connect to was "localhost." Resolves ticket 2822.
27108     - Allow packagers to insert an extra string in server descriptor
27109       platform lines by setting the preprocessor variable TOR_BUILD_TAG.
27110       Resolves the rest of ticket 2988.
27111     - Raise the threshold of server descriptors needed (75%) and exit
27112       server descriptors needed (50%) before we will declare ourselves
27113       bootstrapped. This will make clients start building circuits a
27114       little later, but makes the initially constructed circuits less
27115       skewed and less in conflict with further directory fetches. Fixes
27116       ticket 3196.
27117     - Close any connection that sends unrecognized junk before the
27118       handshake. Solves an issue noted in bug 4369.
27119     - Improve log messages about managed transports. Resolves ticket 5070.
27120     - Tag a bridge's descriptor as "never to be sent unencrypted".
27121       This shouldn't matter, since bridges don't open non-anonymous
27122       connections to the bridge authority and don't allow unencrypted
27123       directory connections from clients, but we might as well make
27124       sure. Closes bug 5139.
27125     - Expose our view of whether we have gone dormant to the controller,
27126       via a new "GETINFO dormant" value. Torbutton and other controllers
27127       can use this to avoid doing periodic requests through Tor while
27128       it's dormant (bug 4718). Fixes bug 5954.
27129     - Tell GCC and Clang to check for any errors in format strings passed
27130       to the tor_v*(print|scan)f functions.
27131     - Update to the May 1 2012 Maxmind GeoLite Country database.
27133   o Minor bugfixes (already included in 0.2.2.36):
27134     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
27135       Fixes bug 5346; bugfix on 0.0.8pre3.
27136     - Correct parsing of certain date types in parse_http_time().
27137       Without this patch, If-Modified-Since would behave
27138       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
27139       Esteban Manchado Velázques.
27140     - Make our number-parsing functions always treat too-large values
27141       as an error, even when those values exceed the width of the
27142       underlying type. Previously, if the caller provided these
27143       functions with minima or maxima set to the extreme values of the
27144       underlying integer type, these functions would return those
27145       values on overflow rather than treating overflow as an error.
27146       Fixes part of bug 5786; bugfix on 0.0.9.
27147     - If we hit the error case where routerlist_insert() replaces an
27148       existing (old) server descriptor, make sure to remove that
27149       server descriptor from the old_routers list. Fix related to bug
27150       1776. Bugfix on 0.2.2.18-alpha.
27151     - Clarify the behavior of MaxCircuitDirtiness with hidden service
27152       circuits. Fixes issue 5259.
27154   o Minor bugfixes (coding cleanup, on 0.2.2.x and earlier):
27155     - Prevent a null-pointer dereference when receiving a data cell
27156       for a nonexistent stream when the circuit in question has an
27157       empty deliver window. We don't believe this is triggerable,
27158       since we don't currently allow deliver windows to become empty,
27159       but the logic is tricky enough that it's better to make the code
27160       robust. Fixes bug 5541; bugfix on 0.0.2pre14.
27161     - Fix a memory leak when trying to launch a DNS request when the
27162       network is disabled or the nameservers are unconfigurable. Fixes
27163       bug 5916; bugfix on Tor 0.1.2.1-alpha (for the unconfigurable
27164       nameserver case) and on 0.2.3.9-alpha (for the DisableNetwork case).
27165     - Don't hold a Windows file handle open for every file mapping;
27166       the file mapping handle is sufficient. Fixes bug 5951; bugfix on
27167       0.1.2.1-alpha.
27168     - Avoid O(n^2) performance characteristics when parsing a large
27169       extrainfo cache. Fixes bug 5828; bugfix on 0.2.0.1-alpha.
27170     - Format more doubles with %f, not %lf. Patch from grarpamp to make
27171       Tor build correctly on older BSDs again. Fixes bug 3894; bugfix on
27172       Tor 0.2.0.8-alpha.
27173     - Make our replacement implementation of strtok_r() compatible with
27174       the standard behavior of strtok_r(). Patch by nils. Fixes bug 5091;
27175       bugfix on 0.2.2.1-alpha.
27176     - Fix a NULL-pointer dereference on a badly formed
27177       SETCIRCUITPURPOSE command. Found by mikeyc. Fixes bug 5796;
27178       bugfix on 0.2.2.9-alpha.
27179     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
27180       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
27181     - Defensively refactor rend_mid_rendezvous() so that protocol
27182       violations and length checks happen in the beginning. Fixes
27183       bug 5645.
27184     - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so
27185       that IPv6 stuff will compile on MSVC, and compilation issues
27186       will be easier to track down. Fixes bug 5861.
27188   o Minor bugfixes (correctness, on 0.2.2.x and earlier):
27189     - Exit nodes now correctly report EADDRINUSE and EADDRNOTAVAIL as
27190       resource exhaustion, so that clients can adjust their load to
27191       try other exits. Fixes bug 4710; bugfix on 0.1.0.1-rc, which
27192       started using END_STREAM_REASON_RESOURCELIMIT.
27193     - Don't check for whether the address we're using for outbound
27194       connections has changed until after the outbound connection has
27195       completed. On Windows, getsockname() doesn't succeed until the
27196       connection is finished. Fixes bug 5374; bugfix on 0.1.1.14-alpha.
27197     - If the configuration tries to set MyFamily on a bridge, refuse to
27198       do so, and warn about the security implications. Fixes bug 4657;
27199       bugfix on 0.2.0.3-alpha.
27200     - If the client fails to set a reasonable set of ciphersuites
27201       during its v2 handshake renegotiation, allow the renegotiation to
27202       continue nevertheless (i.e. send all the required certificates).
27203       Fixes bug 4591; bugfix on 0.2.0.20-rc.
27204     - When we receive a SIGHUP and the controller __ReloadTorrcOnSIGHUP
27205       option is set to 0 (which Vidalia version 0.2.16 now does when
27206       a SAVECONF attempt fails), perform other actions that SIGHUP
27207       usually causes (like reopening the logs). Fixes bug 5095; bugfix
27208       on 0.2.1.9-alpha.
27209     - If we fail to write a microdescriptor to the disk cache, do not
27210       continue replacing the old microdescriptor file. Fixes bug 2954;
27211       bugfix on 0.2.2.6-alpha.
27212     - Exit nodes don't need to fetch certificates for authorities that
27213       they don't recognize; only directory authorities, bridges,
27214       and caches need to do that. Fixes part of bug 2297; bugfix on
27215       0.2.2.11-alpha.
27216     - Correctly handle checking the permissions on the parent
27217       directory of a control socket in the root directory. Bug found
27218       by Esteban Manchado Velázquez. Fixes bug 5089; bugfix on Tor
27219       0.2.2.26-beta.
27220     - When told to add a bridge with the same digest as a preexisting
27221       bridge but a different addr:port, change the addr:port as
27222       requested. Previously we would not notice the change. Fixes half
27223       of bug 5603; fix on 0.2.2.26-beta.
27224     - End AUTHCHALLENGE error messages (in the control protocol) with
27225       a CRLF. Fixes bug 5760; bugfix on 0.2.2.36 and 0.2.3.13-alpha.
27227   o Minor bugfixes (on 0.2.3.x):
27228     - Turn an assertion (that the number of handshakes received as a
27229       server is not < 1) into a warning. Fixes bug 4873; bugfix on
27230       0.2.3.1-alpha.
27231     - Format IPv4 addresses correctly in ADDRMAP events. (Previously,
27232       we had reversed them when the answer was cached.) Fixes bug
27233       5723; bugfix on 0.2.3.1-alpha.
27234     - Work correctly on Linux systems with accept4 support advertised in
27235       their headers, but without accept4 support in the kernel. Fix
27236       by murb. Fixes bug 5762; bugfix on 0.2.3.1-alpha.
27237     - When told to add a bridge with the same addr:port as a preexisting
27238       bridge but a different transport, change the transport as
27239       requested. Previously we would not notice the change. Fixes half
27240       of bug 5603; fix on 0.2.3.2-alpha.
27241     - Avoid a "double-reply" warning when replying to a SOCKS request
27242       with a parse error. Patch from Fabian Keil. Fixes bug 4108;
27243       bugfix on 0.2.3.4-alpha.
27244     - Fix a bug where a bridge authority crashes if it has seen no
27245       directory requests when it's time to write statistics to disk.
27246       Fixes bug 5891; bugfix on 0.2.3.6-alpha. Also fixes bug 5508 in
27247       a better way.
27248     - Don't try to open non-control listeners when DisableNetwork is set.
27249       Previously, we'd open all listeners, then immediately close them.
27250       Fixes bug 5604; bugfix on 0.2.3.9-alpha.
27251     - Don't abort the managed proxy protocol if the managed proxy
27252       sends us an unrecognized line; ignore it instead. Fixes bug
27253       5910; bugfix on 0.2.3.9-alpha.
27254     - Fix a compile warning in crypto.c when compiling with clang 3.1.
27255       Fixes bug 5969, bugfix on 0.2.3.9-alpha.
27256     - Fix a compilation issue on GNU Hurd, which doesn't have PATH_MAX.
27257       Fixes bug 5355; bugfix on 0.2.3.11-alpha.
27258     - Remove bogus definition of "_WIN32" from src/win32/orconfig.h, to
27259       unbreak the MSVC build. Fixes bug 5858; bugfix on 0.2.3.12-alpha.
27260     - Resolve numerous small warnings and build issues with MSVC. Resolves
27261       bug 5859.
27263   o Documentation fixes:
27264     - Improve the manual's documentation for the NT Service command-line
27265       options. Addresses ticket 3964.
27266     - Clarify SessionGroup documentation slightly; resolves ticket 5437.
27267     - Document the changes to the ORPort and DirPort options, and the
27268       fact that {OR/Dir}ListenAddress is now unnecessary (and
27269       therefore deprecated). Resolves ticket 5597.
27271   o Removed files:
27272     - Remove the torrc.bridge file: we don't use it for anything, and
27273       it had become badly desynchronized from torrc.sample. Resolves
27274       bug 5622.
27277 Changes in version 0.2.2.36 - 2012-05-24
27278   Tor 0.2.2.36 updates the addresses for two of the eight directory
27279   authorities, fixes some potential anonymity and security issues,
27280   and fixes several crash bugs.
27282   Tor 0.2.1.x has reached its end-of-life. Those Tor versions have many
27283   known flaws, and nobody should be using them. You should upgrade. If
27284   you're using a Linux or BSD and its packages are obsolete, stop using
27285   those packages and upgrade anyway.
27287   o Directory authority changes:
27288     - Change IP address for maatuska (v3 directory authority).
27289     - Change IP address for ides (v3 directory authority), and rename
27290       it to turtles.
27292   o Security fixes:
27293     - When building or running with any version of OpenSSL earlier
27294       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
27295       versions have a bug (CVE-2011-4576) in which their block cipher
27296       padding includes uninitialized data, potentially leaking sensitive
27297       information to any peer with whom they make a SSLv3 connection. Tor
27298       does not use SSL v3 by default, but a hostile client or server
27299       could force an SSLv3 connection in order to gain information that
27300       they shouldn't have been able to get. The best solution here is to
27301       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
27302       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
27303       to make sure that the bug can't happen.
27304     - Never use a bridge or a controller-supplied node as an exit, even
27305       if its exit policy allows it. Found by wanoskarnet. Fixes bug
27306       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
27307       and 0.2.0.3-alpha (for bridge-purpose descriptors).
27308     - Only build circuits if we have a sufficient threshold of the total
27309       descriptors that are marked in the consensus with the "Exit"
27310       flag. This mitigates an attack proposed by wanoskarnet, in which
27311       all of a client's bridges collude to restrict the exit nodes that
27312       the client knows about. Fixes bug 5343.
27313     - Provide controllers with a safer way to implement the cookie
27314       authentication mechanism. With the old method, if another locally
27315       running program could convince a controller that it was the Tor
27316       process, then that program could trick the controller into telling
27317       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
27318       authentication method uses a challenge-response approach to prevent
27319       this attack. Fixes bug 5185; implements proposal 193.
27321   o Major bugfixes:
27322     - Avoid logging uninitialized data when unable to decode a hidden
27323       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
27324     - Avoid a client-side assertion failure when receiving an INTRODUCE2
27325       cell on a general purpose circuit. Fixes bug 5644; bugfix on
27326       0.2.1.6-alpha.
27327     - Fix builds when the path to sed, openssl, or sha1sum contains
27328       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
27329       on 0.2.2.1-alpha.
27330     - Correct our replacements for the timeradd() and timersub() functions
27331       on platforms that lack them (for example, Windows). The timersub()
27332       function is used when expiring circuits, while timeradd() is
27333       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
27334       bugfix on 0.2.2.24-alpha.
27335     - Fix the SOCKET_OK test that we use to tell when socket
27336       creation fails so that it works on Win64. Fixes part of bug 4533;
27337       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
27339   o Minor bugfixes:
27340     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
27341       Fixes bug 5346; bugfix on 0.0.8pre3.
27342     - Make our number-parsing functions always treat too-large values
27343       as an error, even when those values exceed the width of the
27344       underlying type. Previously, if the caller provided these
27345       functions with minima or maxima set to the extreme values of the
27346       underlying integer type, these functions would return those
27347       values on overflow rather than treating overflow as an error.
27348       Fixes part of bug 5786; bugfix on 0.0.9.
27349     - Older Linux kernels erroneously respond to strange nmap behavior
27350       by having accept() return successfully with a zero-length
27351       socket. When this happens, just close the connection. Previously,
27352       we would try harder to learn the remote address: but there was
27353       no such remote address to learn, and our method for trying to
27354       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
27355       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
27356     - Correct parsing of certain date types in parse_http_time().
27357       Without this patch, If-Modified-Since would behave
27358       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
27359       Esteban Manchado Velázques.
27360     - Change the BridgePassword feature (part of the "bridge community"
27361       design, which is not yet implemented) to use a time-independent
27362       comparison. The old behavior might have allowed an adversary
27363       to use timing to guess the BridgePassword value. Fixes bug 5543;
27364       bugfix on 0.2.0.14-alpha.
27365     - Detect and reject certain misformed escape sequences in
27366       configuration values. Previously, these values would cause us
27367       to crash if received in a torrc file or over an authenticated
27368       control port. Bug found by Esteban Manchado Velázquez, and
27369       independently by Robert Connolly from Matta Consulting who further
27370       noted that it allows a post-authentication heap overflow. Patch
27371       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
27372       bugfix on 0.2.0.16-alpha.
27373     - Fix a compile warning when using the --enable-openbsd-malloc
27374       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
27375     - During configure, detect when we're building with clang version
27376       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
27377       CFLAGS. clang doesn't support them yet.
27378     - When sending an HTTP/1.1 proxy request, include a Host header.
27379       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
27380     - Fix a NULL-pointer dereference on a badly formed SETCIRCUITPURPOSE
27381       command. Found by mikeyc. Fixes bug 5796; bugfix on 0.2.2.9-alpha.
27382     - If we hit the error case where routerlist_insert() replaces an
27383       existing (old) server descriptor, make sure to remove that
27384       server descriptor from the old_routers list. Fix related to bug
27385       1776. Bugfix on 0.2.2.18-alpha.
27387   o Minor bugfixes (documentation and log messages):
27388     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
27389       Fixes bug 4856; bugfix on Tor 0.0.6.
27390     - Update "ClientOnly" man page entry to explain that there isn't
27391       really any point to messing with it. Resolves ticket 5005.
27392     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
27393       directory authority option (introduced in Tor 0.2.2.34).
27394     - Downgrade the "We're missing a certificate" message from notice
27395       to info: people kept mistaking it for a real problem, whereas it
27396       is seldom the problem even when we are failing to bootstrap. Fixes
27397       bug 5067; bugfix on 0.2.0.10-alpha.
27398     - Correctly spell "connect" in a log message on failure to create a
27399       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta.
27400     - Clarify the behavior of MaxCircuitDirtiness with hidden service
27401       circuits. Fixes issue 5259.
27403   o Minor features:
27404     - Directory authorities now reject versions of Tor older than
27405       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
27406       inclusive. These versions accounted for only a small fraction of
27407       the Tor network, and have numerous known security issues. Resolves
27408       issue 4788.
27409     - Update to the May 1 2012 Maxmind GeoLite Country database.
27411   o Feature removal:
27412     - When sending or relaying a RELAY_EARLY cell, we used to convert
27413       it to a RELAY cell if the connection was using the v1 link
27414       protocol. This was a workaround for older versions of Tor, which
27415       didn't handle RELAY_EARLY cells properly. Now that all supported
27416       versions can handle RELAY_EARLY cells, and now that we're enforcing
27417       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
27418       remove this workaround. Addresses bug 4786.
27421 Changes in version 0.2.3.15-alpha - 2012-04-30
27422   Tor 0.2.3.15-alpha fixes a variety of smaller bugs, including making
27423   the development branch build on Windows again.
27425   o Minor bugfixes (on 0.2.2.x and earlier):
27426     - Make sure that there are no unhandled pending TLS errors before
27427       reading from a TLS stream. We had checks in 0.1.0.3-rc, but
27428       lost them in 0.1.0.5-rc when we refactored read_to_buf_tls().
27429       Bugfix on 0.1.0.5-rc; fixes bug 4528.
27430     - Fix an assert that directory authorities could trigger on sighup
27431       during some configuration state transitions. We now don't treat
27432       it as a fatal error when the new descriptor we just generated in
27433       init_keys() isn't accepted. Fixes bug 4438; bugfix on 0.2.1.9-alpha.
27434     - After we pick a directory mirror, we would refuse to use it if
27435       it's in our ExcludeExitNodes list, resulting in mysterious failures
27436       to bootstrap for people who just wanted to avoid exiting from
27437       certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha.
27438     - When building with --enable-static-tor on OpenBSD, do not
27439       erroneously attempt to link -lrt. Fixes bug 5103.
27441   o Minor bugfixes (on 0.2.3.x):
27442     - When Tor is built with kernel headers from a recent (last few
27443       years) Linux kernel, do not fail to run on older (pre-2.6.28
27444       Linux kernels). Fixes bug 5112; bugfix on 0.2.3.1-alpha.
27445     - Fix cross-compilation issues with mingw. Bugfixes on 0.2.3.6-alpha
27446       and 0.2.3.12-alpha.
27447     - Fix compilation with miniupnpc version 1.6; patch from
27448       Anthony G. Basile. Fixes bug 5434; bugfix on 0.2.3.12-alpha.
27449     - Fix compilation with MSVC, which had defined MS_WINDOWS. Bugfix
27450       on 0.2.3.13-alpha; found and fixed by Gisle Vanem.
27451     - Fix compilation on platforms without unistd.h, or where environ
27452       is defined in stdlib.h. Fixes bug 5704; bugfix on 0.2.3.13-alpha.
27454   o Minor features:
27455     - Directory authorities are now a little more lenient at accepting
27456       older router descriptors, or newer router descriptors that don't
27457       make big changes. This should help ameliorate past and future
27458       issues where routers think they have uploaded valid descriptors,
27459       but the authorities don't think so. Fix for ticket 2479.
27460     - Make the code that clients use to detect an address change be
27461       IPv6-aware, so that it won't fill clients' logs with error
27462       messages when trying to get the IPv4 address of an IPv6
27463       connection. Implements ticket 5537.
27465   o Removed features:
27466     - Remove the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays option;
27467       authorities needed to use it for a while to keep the network working
27468       as people upgraded to 0.2.1.31, 0.2.2.34, or 0.2.3.6-alpha, but
27469       that was six months ago. As of now, it should no longer be needed
27470       or used.
27473 Changes in version 0.2.3.14-alpha - 2012-04-23
27474   Tor 0.2.3.14-alpha fixes yet more bugs to get us closer to a release
27475   candidate. It also dramatically speeds up AES: fast relays should
27476   consider switching to the newer OpenSSL library.
27478   o Directory authority changes:
27479     - Change IP address for ides (v3 directory authority), and rename
27480       it to turtles.
27482   o Major bugfixes:
27483     - Avoid logging uninitialized data when unable to decode a hidden
27484       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
27485     - Avoid a client-side assertion failure when receiving an INTRODUCE2
27486       cell on a general purpose circuit. Fixes bug 5644; bugfix on
27487       0.2.1.6-alpha.
27488     - If authorities are unable to get a v2 consensus document from other
27489       directory authorities, they no longer fall back to fetching
27490       them from regular directory caches. Fixes bug 5635; bugfix on
27491       0.2.2.26-beta, where routers stopped downloading v2 consensus
27492       documents entirely.
27493     - When we start a Tor client with a normal consensus already cached,
27494       be willing to download a microdescriptor consensus. Fixes bug 4011;
27495       fix on 0.2.3.1-alpha.
27497   o Major features (performance):
27498     - When built to use OpenSSL 1.0.1, and built for an x86 or x86_64
27499       instruction set, take advantage of OpenSSL's AESNI, bitsliced, or
27500       vectorized AES implementations as appropriate. These can be much,
27501       much faster than other AES implementations.
27503   o Minor bugfixes (0.2.2.x and earlier):
27504     - Don't launch more than 10 service-side introduction-point circuits
27505       for a hidden service in five minutes. Previously, we would consider
27506       launching more introduction-point circuits if at least one second
27507       had passed without any introduction-point circuits failing. Fixes
27508       bug 4607; bugfix on 0.0.7pre1.
27509     - Change the BridgePassword feature (part of the "bridge community"
27510       design, which is not yet implemented) to use a time-independent
27511       comparison. The old behavior might have allowed an adversary
27512       to use timing to guess the BridgePassword value. Fixes bug 5543;
27513       bugfix on 0.2.0.14-alpha.
27514     - Enforce correct return behavior of tor_vsscanf() when the '%%'
27515       pattern is used. Fixes bug 5558. Bugfix on 0.2.1.13.
27516     - When sending an HTTP/1.1 proxy request, include a Host header.
27517       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
27518     - Don't log that we have "decided to publish new relay descriptor"
27519       unless we are actually publishing a descriptor. Fixes bug 3942;
27520       bugfix on 0.2.2.28-beta.
27522   o Minor bugfixes (0.2.3.x):
27523     - Fix a bug where a bridge authority crashes (on a failed assert)
27524       if it has seen no directory requests when it's time to write
27525       statistics to disk. Fixes bug 5508. Bugfix on 0.2.3.6-alpha.
27526     - Fix bug stomping on ORPort option NoListen and ignoring option
27527       NoAdvertise. Fixes bug 5151; bugfix on 0.2.3.9-alpha.
27528     - In the testsuite, provide a large enough buffer in the tor_sscanf
27529       unit test. Otherwise we'd overrun that buffer and crash during
27530       the unit tests. Found by weasel. Fixes bug 5449; bugfix on
27531       0.2.3.12-alpha.
27532     - Make sure we create the keys directory if it doesn't exist and we're
27533       about to store the dynamic Diffie-Hellman parameters. Fixes bug
27534       5572; bugfix on 0.2.3.13-alpha.
27535     - Fix a small memory leak when trying to decode incorrect base16
27536       authenticator during SAFECOOKIE authentication. Found by
27537       Coverity Scan. Fixes CID 507. Bugfix on 0.2.3.13-alpha.
27539   o Minor features:
27540     - Add more information to a log statement that might help track down
27541       bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a
27542       non-IP address" messages (or any Bug messages, for that matter!),
27543       please let us know about it.
27544     - Relays now understand an IPv6 address when they get one from a
27545       directory server. Resolves ticket 4875.
27546     - Resolve IPv6 addresses in bridge and entry statistics to country
27547       code "??" which means we at least count them. Resolves ticket 5053;
27548       improves on 0.2.3.9-alpha.
27549     - Update to the April 3 2012 Maxmind GeoLite Country database.
27550     - Begin a doc/state-contents.txt file to explain the contents of
27551       the Tor state file. Fixes bug 2987.
27553   o Default torrc changes:
27554     - Stop listing "socksport 9050" in torrc.sample. We open a socks
27555       port on 9050 by default anyway, so this should not change anything
27556       in practice.
27557     - Stop mentioning the deprecated *ListenAddress options in
27558       torrc.sample. Fixes bug 5438.
27559     - Document unit of bandwidth related options in sample torrc.
27560       Fixes bug 5621.
27562   o Removed features:
27563     - The "torify" script no longer supports the "tsocks" socksifier
27564       tool, since tsocks doesn't support DNS and UDP right for Tor.
27565       Everyone should be using torsocks instead. Fixes bugs 3530 and
27566       5180. Based on a patch by "ugh".
27568   o Code refactoring:
27569     - Change the symmetric cipher interface so that creating and
27570       initializing a stream cipher are no longer separate functions.
27571     - Remove all internal support for unpadded RSA. We never used it, and
27572       it would be a bad idea to start.
27575 Changes in version 0.2.3.13-alpha - 2012-03-26
27576   Tor 0.2.3.13-alpha fixes a variety of stability and correctness bugs
27577   in managed pluggable transports, as well as providing other cleanups
27578   that get us closer to a release candidate.
27580   o Directory authority changes:
27581     - Change IP address for maatuska (v3 directory authority).
27583   o Security fixes:
27584     - Provide controllers with a safer way to implement the cookie
27585       authentication mechanism. With the old method, if another locally
27586       running program could convince a controller that it was the Tor
27587       process, then that program could trick the controller into telling
27588       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
27589       authentication method uses a challenge-response approach to prevent
27590       this attack. Fixes bug 5185, implements proposal 193.
27591     - Never use a bridge or a controller-supplied node as an exit, even
27592       if its exit policy allows it. Found by wanoskarnet. Fixes bug
27593       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
27594       and 0.2.0.3-alpha (for bridge-purpose descriptors).
27595     - Only build circuits if we have a sufficient threshold of the total
27596       descriptors that are marked in the consensus with the "Exit"
27597       flag. This mitigates an attack proposed by wanoskarnet, in which
27598       all of a client's bridges collude to restrict the exit nodes that
27599       the client knows about. Fixes bug 5343.
27601   o Major bugfixes (on Tor 0.2.3.x):
27602     - Avoid an assert when managed proxies like obfsproxy are configured,
27603       and we receive HUP signals or setconf attempts too rapidly. This
27604       situation happens most commonly when Vidalia tries to attach to
27605       Tor or tries to configure the Tor it's attached to. Fixes bug 5084;
27606       bugfix on 0.2.3.6-alpha.
27607     - Fix a relay-side pluggable transports bug where managed proxies were
27608       unreachable from the Internet, because Tor asked them to bind on
27609       localhost. Fixes bug 4725; bugfix on 0.2.3.9-alpha.
27610     - Stop discarding command-line arguments when TestingTorNetwork
27611       is set. Discovered by Kevin Bauer. Fixes bug 5373; bugfix on
27612       0.2.3.9-alpha, where task 4552 added support for two layers of
27613       torrc files.
27614     - Resume allowing the unit tests to run in gdb. This was accidentally
27615       made impossible when the DisableDebuggerAttachment option was
27616       introduced. Fixes bug 5448; bugfix on 0.2.3.9-alpha.
27617     - Resume building with nat-pmp support. Fixes bug 4955; bugfix on
27618       0.2.3.11-alpha. Reported by Anthony G. Basile.
27620   o Minor bugfixes (on 0.2.2.x and earlier):
27621     - Ensure we don't cannibalize circuits that are longer than three hops
27622       already, so we don't end up making circuits with 5 or more
27623       hops. Patch contributed by wanoskarnet. Fixes bug 5231; bugfix on
27624       0.1.0.1-rc which introduced cannibalization.
27625     - Detect and reject certain misformed escape sequences in
27626       configuration values. Previously, these values would cause us
27627       to crash if received in a torrc file or over an authenticated
27628       control port. Bug found by Esteban Manchado Velázquez, and
27629       independently by Robert Connolly from Matta Consulting who further
27630       noted that it allows a post-authentication heap overflow. Patch
27631       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
27632       bugfix on 0.2.0.16-alpha.
27633     - Fix a compile warning when using the --enable-openbsd-malloc
27634       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
27635     - Directory caches no longer refuse to clean out descriptors because
27636       of missing v2 networkstatus documents, unless they're configured
27637       to retrieve v2 networkstatus documents. Fixes bug 4838; bugfix on
27638       0.2.2.26-beta. Patch by Daniel Bryg.
27639     - Update to the latest version of the tinytest unit testing framework.
27640       This includes a couple of bugfixes that can be relevant for
27641       running forked unit tests on Windows, and removes all reserved
27642       identifiers.
27644   o Minor bugfixes (on 0.2.3.x):
27645     - On a failed pipe() call, don't leak file descriptors. Fixes bug
27646       4296; bugfix on 0.2.3.1-alpha.
27647     - Spec conformance: on a v3 handshake, do not send a NETINFO cell
27648       until after we have received a CERTS cell. Fixes bug 4361; bugfix
27649       on 0.2.3.6-alpha. Patch by "frosty".
27650     - When binding to an IPv6 address, set the IPV6_V6ONLY socket
27651       option, so that the IP stack doesn't decide to use it for IPv4
27652       too. Fixes bug 4760; bugfix on 0.2.3.9-alpha.
27653     - Ensure that variables set in Tor's environment cannot override
27654       environment variables that Tor passes to a managed
27655       pluggable-transport proxy. Previously, Tor would pass every
27656       variable in its environment to managed proxies along with the new
27657       ones, in such a way that on many operating systems, the inherited
27658       environment variables would override those which Tor tried to
27659       explicitly set. Bugfix on 0.2.3.12-alpha for most Unixoid systems;
27660       bugfix on 0.2.3.9-alpha for Windows.
27662   o Minor features:
27663     - A wide variety of new unit tests by Esteban Manchado Velázquez.
27664     - Shorten links in the tor-exit-notice file. Patch by Christian Kujau.
27665     - Update to the March 6 2012 Maxmind GeoLite Country database.
27668 Changes in version 0.2.3.12-alpha - 2012-02-13
27669   Tor 0.2.3.12-alpha lets fast exit relays scale better, allows clients
27670   to use bridges that run Tor 0.2.2.x, and resolves several big bugs
27671   when Tor is configured to use a pluggable transport like obfsproxy.
27673   o Major bugfixes:
27674     - Fix builds when the path to sed, openssl, or sha1sum contains
27675       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
27676       on 0.2.2.1-alpha.
27677     - Set the SO_REUSEADDR socket option before we call bind() on outgoing
27678       connections. This change should allow busy exit relays to stop
27679       running out of available sockets as quickly. Fixes bug 4950;
27680       bugfix on 0.2.2.26-beta.
27681     - Allow 0.2.3.x clients to use 0.2.2.x bridges. Previously the client
27682       would ask the bridge for microdescriptors, which are only supported
27683       in 0.2.3.x, and then fail to bootstrap when it didn't get the
27684       answers it wanted. Fixes bug 4013; bugfix on 0.2.3.2-alpha.
27685     - Properly set up obfsproxy's environment when in managed mode. The
27686       Tor Browser Bundle needs LD_LIBRARY_PATH to be passed to obfsproxy,
27687       and when you run your Tor as a daemon, there's no HOME. Fixes bugs
27688       5076 and 5082; bugfix on 0.2.3.6-alpha.
27690   o Minor features:
27691     - Use the dead_strip option when building Tor on OS X. This reduces
27692       binary size by almost 19% when linking openssl and libevent
27693       statically, which we do for Tor Browser Bundle.
27694     - Fix broken URLs in the sample torrc file, and tell readers about
27695       the OutboundBindAddress, ExitPolicyRejectPrivate, and
27696       PublishServerDescriptor options. Addresses bug 4652.
27697     - Update to the February 7 2012 Maxmind GeoLite Country database.
27699   o Minor bugfixes:
27700     - Downgrade the "We're missing a certificate" message from notice
27701       to info: people kept mistaking it for a real problem, whereas it
27702       is seldom the problem even when we are failing to bootstrap. Fixes
27703       bug 5067; bugfix on 0.2.0.10-alpha.
27704     - Don't put "TOR_PT_EXTENDED_SERVER_PORT=127.0.0.1:4200" in a
27705       managed pluggable transport server proxy's environment.
27706       Previously, we would put it there, even though Tor doesn't
27707       implement an 'extended server port' yet, and even though Tor
27708       almost certainly isn't listening at that address. For now, we set
27709       it to an empty string to avoid crashing older obfsproxies. Bugfix
27710       on 0.2.3.6-alpha.
27711     - Log the heartbeat message every HeartbeatPeriod seconds, not every
27712       HeartbeatPeriod + 1 seconds. Fixes bug 4942; bugfix on
27713       0.2.3.1-alpha. Bug reported by Scott Bennett.
27714     - Calculate absolute paths correctly on Windows. Fixes bug 4973;
27715       bugfix on 0.2.3.11-alpha.
27716     - Update "ClientOnly" man page entry to explain that there isn't
27717       really any point to messing with it. Resolves ticket 5005.
27718     - Use the correct CVE number for CVE-2011-4576 in our comments and
27719       log messages. Found by "fermenthor". Resolves bug 5066; bugfix on
27720       0.2.3.11-alpha.
27722   o Code simplifications and refactoring:
27723     - Use the _WIN32 macro throughout our code to detect Windows.
27724       (Previously we had used the obsolete 'WIN32' and the idiosyncratic
27725       'MS_WINDOWS'.)
27728 Changes in version 0.2.3.11-alpha - 2012-01-22
27729   Tor 0.2.3.11-alpha marks feature-freeze for the 0.2.3 tree. It deploys
27730   the last step of the plan to limit maximum circuit length, includes
27731   a wide variety of hidden service performance and correctness fixes,
27732   works around an OpenSSL security flaw if your distro is too stubborn
27733   to upgrade, and fixes a bunch of smaller issues.
27735   o Major features:
27736     - Now that Tor 0.2.0.x is completely deprecated, enable the final
27737       part of "Proposal 110: Avoiding infinite length circuits" by
27738       refusing all circuit-extend requests that do not use a relay_early
27739       cell. This change helps Tor resist a class of denial-of-service
27740       attacks by limiting the maximum circuit length.
27741     - Adjust the number of introduction points that a hidden service
27742       will try to maintain based on how long its introduction points
27743       remain in use and how many introductions they handle. Fixes
27744       part of bug 3825.
27745     - Try to use system facilities for enumerating local interface
27746       addresses, before falling back to our old approach (which was
27747       binding a UDP socket, and calling getsockname() on it). That
27748       approach was scaring OS X users whose draconian firewall
27749       software warned about binding to UDP sockets, regardless of
27750       whether packets were sent. Now we try to use getifaddrs(),
27751       SIOCGIFCONF, or GetAdaptersAddresses(), depending on what the
27752       system supports. Resolves ticket 1827.
27754   o Major security workaround:
27755     - When building or running with any version of OpenSSL earlier
27756       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
27757       versions have a bug (CVE-2011-4576) in which their block cipher
27758       padding includes uninitialized data, potentially leaking sensitive
27759       information to any peer with whom they make a SSLv3 connection. Tor
27760       does not use SSL v3 by default, but a hostile client or server
27761       could force an SSLv3 connection in order to gain information that
27762       they shouldn't have been able to get. The best solution here is to
27763       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
27764       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
27765       to make sure that the bug can't happen.
27767   o Major bugfixes:
27768     - Fix the SOCKET_OK test that we use to tell when socket
27769       creation fails so that it works on Win64. Fixes part of bug 4533;
27770       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
27771     - Correct our replacements for the timeradd() and timersub() functions
27772       on platforms that lack them (for example, Windows). The timersub()
27773       function is used when expiring circuits, while timeradd() is
27774       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
27775       bugfix on 0.2.2.24-alpha and 0.2.3.1-alpha.
27776     - Do not use OpenSSL 1.0.0's counter mode: it has a critical bug
27777       that was fixed in OpenSSL 1.0.0a. We test for the counter mode
27778       bug at runtime, not compile time, because some distributions hack
27779       their OpenSSL to mis-report its version. Fixes bug 4779; bugfix
27780       on 0.2.3.9-alpha. Found by Pascal.
27782   o Minor features (controller):
27783     - Use absolute path names when reporting the torrc filename in the
27784       control protocol, so a controller can more easily find the torrc
27785       file. Resolves bug 1101.
27786     - Extend the control protocol to report flags that control a circuit's
27787       path selection in CIRC events and in replies to 'GETINFO
27788       circuit-status'. Implements part of ticket 2411.
27789     - Extend the control protocol to report the hidden service address
27790       and current state of a hidden-service-related circuit in CIRC
27791       events and in replies to 'GETINFO circuit-status'. Implements part
27792       of ticket 2411.
27793     - When reporting the path to the cookie file to the controller,
27794       give an absolute path. Resolves ticket 4881.
27795     - Allow controllers to request an event notification whenever a
27796       circuit is cannibalized or its purpose is changed. Implements
27797       part of ticket 3457.
27798     - Include the creation time of a circuit in CIRC and CIRC2
27799       control-port events and the list produced by the 'GETINFO
27800       circuit-status' control-port command.
27802   o Minor features (directory authorities):
27803     - Directory authorities now reject versions of Tor older than
27804       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
27805       inclusive. These versions accounted for only a small fraction of
27806       the Tor network, and have numerous known security issues. Resolves
27807       issue 4788.
27808     - Authority operators can now vote for all relays in a given
27809       set of countries to be BadDir/BadExit/Invalid/Rejected.
27810     - Provide two consensus parameters (FastFlagMinThreshold and
27811       FastFlagMaxThreshold) to control the range of allowable bandwidths
27812       for the Fast directory flag. These allow authorities to run
27813       experiments on appropriate requirements for being a "Fast" node.
27814       The AuthDirFastGuarantee config value still applies. Implements
27815       ticket 3946.
27816     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
27817       directory authority option (introduced in Tor 0.2.2.34).
27819   o Minor features (other):
27820     - Don't disable the DirPort when we cannot exceed our AccountingMax
27821       limit during this interval because the effective bandwidthrate is
27822       low enough. This is useful in a situation where AccountMax is only
27823       used as an additional safeguard or to provide statistics.
27824     - Prepend an informative header to generated dynamic_dh_params files.
27825     - If EntryNodes are given, but UseEntryGuards is set to 0, warn that
27826       EntryNodes will have no effect. Resolves issue 2571.
27827     - Log more useful messages when we fail to disable debugger
27828       attachment.
27829     - Log which authority we're missing votes from when we go to fetch
27830       them from the other auths.
27831     - Log (at debug level) whenever a circuit's purpose is changed.
27832     - Add missing documentation for the MaxClientCircuitsPending,
27833       UseMicrodescriptors, UserspaceIOCPBuffers, and
27834       _UseFilteringSSLBufferevents options, all introduced during
27835       the 0.2.3.x series.
27836     - Update to the January 3 2012 Maxmind GeoLite Country database.
27838   o Minor bugfixes (hidden services):
27839     - Don't close hidden service client circuits which have almost
27840       finished connecting to their destination when they reach
27841       the normal circuit-build timeout. Previously, we would close
27842       introduction circuits which are waiting for an acknowledgement
27843       from the introduction point, and rendezvous circuits which have
27844       been specified in an INTRODUCE1 cell sent to a hidden service,
27845       after the normal CBT. Now, we mark them as 'timed out', and launch
27846       another rendezvous attempt in parallel. This behavior change can
27847       be disabled using the new CloseHSClientCircuitsImmediatelyOnTimeout
27848       option. Fixes part of bug 1297; bugfix on 0.2.2.2-alpha.
27849     - Don't close hidden-service-side rendezvous circuits when they
27850       reach the normal circuit-build timeout. This behavior change can
27851       be disabled using the new
27852       CloseHSServiceRendCircuitsImmediatelyOnTimeout option. Fixes the
27853       remaining part of bug 1297; bugfix on 0.2.2.2-alpha.
27854     - Make sure we never mark the wrong rendezvous circuit as having
27855       had its introduction cell acknowledged by the introduction-point
27856       relay. Previously, when we received an INTRODUCE_ACK cell on a
27857       client-side hidden-service introduction circuit, we might have
27858       marked a rendezvous circuit other than the one we specified in
27859       the INTRODUCE1 cell as INTRO_ACKED, which would have produced
27860       a warning message and interfered with the hidden service
27861       connection-establishment process. Fixes bug 4759; bugfix on
27862       0.2.3.3-alpha, when we added the stream-isolation feature which
27863       might cause Tor to open multiple rendezvous circuits for the same
27864       hidden service.
27865     - Don't trigger an assertion failure when we mark a new client-side
27866       hidden-service introduction circuit for close during the process
27867       of creating it. Fixes bug 4796; bugfix on 0.2.3.6-alpha. Reported
27868       by murb.
27870   o Minor bugfixes (log messages):
27871     - Correctly spell "connect" in a log message on failure to create a
27872       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta and
27873       0.2.3.2-alpha.
27874     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
27875       Fixes bug 4856; bugfix on Tor 0.0.6.
27876     - Fix the log message describing how we work around discovering
27877       that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug
27878       4837; bugfix on 0.2.2.9-alpha.
27879     - When logging about a disallowed .exit name, do not also call it
27880       an "invalid onion address". Fixes bug 3325; bugfix on 0.2.2.9-alpha.
27882   o Minor bugfixes (build fixes):
27883     - During configure, detect when we're building with clang version
27884       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
27885       CFLAGS. clang doesn't support them yet.
27886     - During configure, search for library containing cos function as
27887       libm lives in libcore on some platforms (BeOS/Haiku). Linking
27888       against libm was hard-coded before. Fixes the first part of bug
27889       4727; bugfix on 0.2.2.2-alpha. Patch and analysis by Martin Hebnes
27890       Pedersen.
27891     - Detect attempts to build Tor on (as yet hypothetical) versions
27892       of Windows where sizeof(intptr_t) != sizeof(SOCKET). Partial
27893       fix for bug 4533. Bugfix on 0.2.2.28-beta.
27894     - Preprocessor directives should not be put inside the arguments
27895       of a macro. This would break compilation with GCC releases prior
27896       to version 3.3. We would never recommend such an old GCC version,
27897       but it is apparently required for binary compatibility on some
27898       platforms (namely, certain builds of Haiku). Fixes the other part
27899       of bug 4727; bugfix on 0.2.3.3-alpha. Patch and analysis by Martin
27900       Hebnes Pedersen.
27902   o Minor bugfixes (other):
27903     - Older Linux kernels erroneously respond to strange nmap behavior
27904       by having accept() return successfully with a zero-length
27905       socket. When this happens, just close the connection. Previously,
27906       we would try harder to learn the remote address: but there was
27907       no such remote address to learn, and our method for trying to
27908       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
27909       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
27910     - Fix null-pointer access that could occur if TLS allocation failed.
27911       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un". This was
27912       erroneously listed as fixed in 0.2.3.9-alpha, but the fix had
27913       accidentally been reverted.
27914     - Fix our implementation of crypto_random_hostname() so it can't
27915       overflow on ridiculously large inputs. (No Tor version has ever
27916       provided this kind of bad inputs, but let's be correct in depth.)
27917       Fixes bug 4413; bugfix on 0.2.2.9-alpha. Fix by Stephen Palmateer.
27918     - Find more places in the code that should have been testing for
27919       invalid sockets using the SOCKET_OK macro. Required for a fix
27920       for bug 4533. Bugfix on 0.2.2.28-beta.
27921     - Fix an assertion failure when, while running with bufferevents, a
27922       connection finishes connecting after it is marked for close, but
27923       before it is closed. Fixes bug 4697; bugfix on 0.2.3.1-alpha.
27924     - test_util_spawn_background_ok() hardcoded the expected value
27925       for ENOENT to 2. This isn't portable as error numbers are
27926       platform specific, and particularly the hurd has ENOENT at
27927       0x40000002. Construct expected string at runtime, using the correct
27928       value for ENOENT. Fixes bug 4733; bugfix on 0.2.3.1-alpha.
27929     - Reject attempts to disable DisableDebuggerAttachment while Tor is
27930       running. Fixes bug 4650; bugfix on 0.2.3.9-alpha.
27931     - Use an appropriate-width type for sockets in tor-fw-helper on
27932       win64. Fixes bug 1983 at last. Bugfix on 0.2.3.9-alpha.
27934   o Feature removal:
27935     - When sending or relaying a RELAY_EARLY cell, we used to convert
27936       it to a RELAY cell if the connection was using the v1 link
27937       protocol. This was a workaround for older versions of Tor, which
27938       didn't handle RELAY_EARLY cells properly. Now that all supported
27939       versions can handle RELAY_EARLY cells, and now that we're enforcing
27940       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
27941       remove this workaround. Addresses bug 4786.
27943   o Code simplifications and refactoring:
27944     - Use OpenSSL's built-in SSL_state_string_long() instead of our
27945       own homebrewed ssl_state_to_string() replacement. Patch from
27946       Emile Snyder. Fixes bug 4653.
27947     - Use macros to indicate OpenSSL versions, so we don't need to worry
27948       about accidental hexadecimal bit shifts.
27949     - Remove some workaround code for OpenSSL 0.9.6 (which is no longer
27950       supported).
27951     - Convert more instances of tor_snprintf+tor_strdup into tor_asprintf.
27952     - Use the smartlist_add_asprintf() alias more consistently.
27953     - Use a TOR_INVALID_SOCKET macro when initializing a socket to an
27954       invalid value, rather than just -1.
27955     - Rename a handful of old identifiers, mostly related to crypto
27956       structures and crypto functions. By convention, our "create an
27957       object" functions are called "type_new()", our "free an object"
27958       functions are called "type_free()", and our types indicate that
27959       they are types only with a final "_t". But a handful of older
27960       types and functions broke these rules, with function names like
27961       "type_create" or "subsystem_op_type", or with type names like
27962       type_env_t.
27965 Changes in version 0.2.3.10-alpha - 2011-12-16
27966   Tor 0.2.3.10-alpha fixes a critical heap-overflow security issue in
27967   Tor's buffers code. Absolutely everybody should upgrade.
27969   The bug relied on an incorrect calculation when making data continuous
27970   in one of our IO buffers, if the first chunk of the buffer was
27971   misaligned by just the wrong amount. The miscalculation would allow an
27972   attacker to overflow a piece of heap-allocated memory. To mount this
27973   attack, the attacker would need to either open a SOCKS connection to
27974   Tor's SocksPort (usually restricted to localhost), or target a Tor
27975   instance configured to make its connections through a SOCKS proxy
27976   (which Tor does not do by default).
27978   Good security practice requires that all heap-overflow bugs should be
27979   presumed to be exploitable until proven otherwise, so we are treating
27980   this as a potential code execution attack. Please upgrade immediately!
27981   This bug does not affect bufferevents-based builds of Tor. Special
27982   thanks to "Vektor" for reporting this issue to us!
27984   This release also contains a few minor bugfixes for issues discovered
27985   in 0.2.3.9-alpha.
27987   o Major bugfixes:
27988     - Fix a heap overflow bug that could occur when trying to pull
27989       data into the first chunk of a buffer, when that chunk had
27990       already had some data drained from it. Fixes CVE-2011-2778;
27991       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
27993   o Minor bugfixes:
27994     - If we can't attach streams to a rendezvous circuit when we
27995       finish connecting to a hidden service, clear the rendezvous
27996       circuit's stream-isolation state and try to attach streams
27997       again. Previously, we cleared rendezvous circuits' isolation
27998       state either too early (if they were freshly built) or not at all
27999       (if they had been built earlier and were cannibalized). Bugfix on
28000       0.2.3.3-alpha; fixes bug 4655.
28001     - Fix compilation of the libnatpmp helper on non-Windows. Bugfix on
28002       0.2.3.9-alpha; fixes bug 4691. Reported by Anthony G. Basile.
28003     - Fix an assertion failure when a relay with accounting enabled
28004       starts up while dormant. Fixes bug 4702; bugfix on 0.2.3.9-alpha.
28006   o Minor features:
28007     - Update to the December 6 2011 Maxmind GeoLite Country database.
28010 Changes in version 0.2.2.35 - 2011-12-16
28011   Tor 0.2.2.35 fixes a critical heap-overflow security issue in Tor's
28012   buffers code. Absolutely everybody should upgrade.
28014   The bug relied on an incorrect calculation when making data continuous
28015   in one of our IO buffers, if the first chunk of the buffer was
28016   misaligned by just the wrong amount. The miscalculation would allow an
28017   attacker to overflow a piece of heap-allocated memory. To mount this
28018   attack, the attacker would need to either open a SOCKS connection to
28019   Tor's SocksPort (usually restricted to localhost), or target a Tor
28020   instance configured to make its connections through a SOCKS proxy
28021   (which Tor does not do by default).
28023   Good security practice requires that all heap-overflow bugs should be
28024   presumed to be exploitable until proven otherwise, so we are treating
28025   this as a potential code execution attack. Please upgrade immediately!
28026   This bug does not affect bufferevents-based builds of Tor. Special
28027   thanks to "Vektor" for reporting this issue to us!
28029   Tor 0.2.2.35 also fixes several bugs in previous versions, including
28030   crash bugs for unusual configurations, and a long-term bug that
28031   would prevent Tor from starting on Windows machines with draconian
28032   AV software.
28034   With this release, we remind everyone that 0.2.0.x has reached its
28035   formal end-of-life. Those Tor versions have many known flaws, and
28036   nobody should be using them. You should upgrade -- ideally to the
28037   0.2.2.x series. If you're using a Linux or BSD and its packages are
28038   obsolete, stop using those packages and upgrade anyway.
28040   The Tor 0.2.1.x series is also approaching its end-of-life: it will no
28041   longer receive support after some time in early 2012.
28043   o Major bugfixes:
28044     - Fix a heap overflow bug that could occur when trying to pull
28045       data into the first chunk of a buffer, when that chunk had
28046       already had some data drained from it. Fixes CVE-2011-2778;
28047       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
28048     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
28049       that it doesn't attempt to allocate a socketpair. This could cause
28050       some problems on Windows systems with overzealous firewalls. Fix for
28051       bug 4457; workaround for Libevent versions 2.0.1-alpha through
28052       2.0.15-stable.
28053     - If we mark an OR connection for close based on a cell we process,
28054       don't process any further cells on it. We already avoid further
28055       reads on marked-for-close connections, but now we also discard the
28056       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
28057       which was the first version where we might mark a connection for
28058       close based on processing a cell on it.
28059     - Correctly sanity-check that we don't underflow on a memory
28060       allocation (and then assert) for hidden service introduction
28061       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
28062       bugfix on 0.2.1.5-alpha.
28063     - Fix a memory leak when we check whether a hidden service
28064       descriptor has any usable introduction points left. Fixes bug
28065       4424. Bugfix on 0.2.2.25-alpha.
28066     - Don't crash when we're running as a relay and don't have a GeoIP
28067       file. Bugfix on 0.2.2.34; fixes bug 4340. This backports a fix
28068       we've had in the 0.2.3.x branch already.
28069     - When running as a client, do not print a misleading (and plain
28070       wrong) log message that we're collecting "directory request"
28071       statistics: clients don't collect statistics. Also don't create a
28072       useless (because empty) stats file in the stats/ directory. Fixes
28073       bug 4353; bugfix on 0.2.2.34.
28075   o Minor bugfixes:
28076     - Detect failure to initialize Libevent. This fix provides better
28077       detection for future instances of bug 4457.
28078     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
28079       function. This was eating up hideously large amounts of time on some
28080       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
28081     - Resolve an integer overflow bug in smartlist_ensure_capacity().
28082       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
28083       Mansour Moufid.
28084     - Don't warn about unused log_mutex in log.c when building with
28085       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
28086       0.1.0.6-rc which introduced --disable-threads.
28087     - When configuring, starting, or stopping an NT service, stop
28088       immediately after the service configuration attempt has succeeded
28089       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
28090     - When sending a NETINFO cell, include the original address
28091       received for the other side, not its canonical address. Found
28092       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
28093     - Fix a typo in a hibernation-related log message. Fixes bug 4331;
28094       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
28095     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
28096       occurred when a client tried to fetch a descriptor for a bridge
28097       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
28098     - Backport fixes for a pair of compilation warnings on Windows.
28099       Fixes bug 4521; bugfix on 0.2.2.28-beta and on 0.2.2.29-beta.
28100     - If we had ever tried to call tor_addr_to_str on an address of
28101       unknown type, we would have done a strdup on an uninitialized
28102       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
28103       Reported by "troll_un".
28104     - Correctly detect and handle transient lookup failures from
28105       tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha.
28106       Reported by "troll_un".
28107     - Fix null-pointer access that could occur if TLS allocation failed.
28108       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
28109     - Use tor_socket_t type for listener argument to accept(). Fixes bug
28110       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
28112   o Minor features:
28113     - Add two new config options for directory authorities:
28114       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
28115       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
28116       that is always sufficient to satisfy the bandwidth requirement for
28117       the Guard flag. Now it will be easier for researchers to simulate
28118       Tor networks with different values. Resolves ticket 4484.
28119     - When Tor ignores a hidden service specified in its configuration,
28120       include the hidden service's directory in the warning message.
28121       Previously, we would only tell the user that some hidden service
28122       was ignored. Bugfix on 0.0.6; fixes bug 4426.
28123     - Update to the December 6 2011 Maxmind GeoLite Country database.
28125   o Packaging changes:
28126     - Make it easier to automate expert package builds on Windows,
28127       by removing an absolute path from makensis.exe command.
28130 Changes in version 0.2.1.32 - 2011-12-16
28131   Tor 0.2.1.32 backports important security and privacy fixes for
28132   oldstable. This release is intended only for package maintainers and
28133   others who cannot use the 0.2.2 stable series. All others should be
28134   using Tor 0.2.2.x or newer.
28136   The Tor 0.2.1.x series will reach formal end-of-life some time in
28137   early 2012; we will stop releasing patches for it then.
28139   o Major bugfixes (also included in 0.2.2.x):
28140     - Correctly sanity-check that we don't underflow on a memory
28141       allocation (and then assert) for hidden service introduction
28142       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
28143       bugfix on 0.2.1.5-alpha.
28144     - Fix a heap overflow bug that could occur when trying to pull
28145       data into the first chunk of a buffer, when that chunk had
28146       already had some data drained from it. Fixes CVE-2011-2778;
28147       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
28149   o Minor features:
28150     - Update to the December 6 2011 Maxmind GeoLite Country database.
28153 Changes in version 0.2.3.9-alpha - 2011-12-08
28154   Tor 0.2.3.9-alpha introduces initial IPv6 support for bridges, adds
28155   a "DisableNetwork" security feature that bundles can use to avoid
28156   touching the network until bridges are configured, moves forward on
28157   the pluggable transport design, fixes a flaw in the hidden service
28158   design that unnecessarily prevented clients with wrong clocks from
28159   reaching hidden services, and fixes a wide variety of other issues.
28161   o Major features:
28162     - Clients can now connect to private bridges over IPv6. Bridges
28163       still need at least one IPv4 address in order to connect to
28164       other relays. Note that we don't yet handle the case where the
28165       user has two bridge lines for the same bridge (one IPv4, one
28166       IPv6). Implements parts of proposal 186.
28167     - New "DisableNetwork" config option to prevent Tor from launching any
28168       connections or accepting any connections except on a control port.
28169       Bundles and controllers can set this option before letting Tor talk
28170       to the rest of the network, for example to prevent any connections
28171       to a non-bridge address. Packages like Orbot can also use this
28172       option to instruct Tor to save power when the network is off.
28173     - Clients and bridges can now be configured to use a separate
28174       "transport" proxy. This approach makes the censorship arms race
28175       easier by allowing bridges to use protocol obfuscation plugins. It
28176       implements the "managed proxy" part of proposal 180 (ticket 3472).
28177     - When using OpenSSL 1.0.0 or later, use OpenSSL's counter mode
28178       implementation. It makes AES_CTR about 7% faster than our old one
28179       (which was about 10% faster than the one OpenSSL used to provide).
28180       Resolves ticket 4526.
28181     - Add a "tor2web mode" for clients that want to connect to hidden
28182       services non-anonymously (and possibly more quickly). As a safety
28183       measure to try to keep users from turning this on without knowing
28184       what they are doing, tor2web mode must be explicitly enabled at
28185       compile time, and a copy of Tor compiled to run in tor2web mode
28186       cannot be used as a normal Tor client. Implements feature 2553.
28187     - Add experimental support for running on Windows with IOCP and no
28188       kernel-space socket buffers. This feature is controlled by a new
28189       "UserspaceIOCPBuffers" config option (off by default), which has
28190       no effect unless Tor has been built with support for bufferevents,
28191       is running on Windows, and has enabled IOCP. This may, in the long
28192       run, help solve or mitigate bug 98.
28193     - Use a more secure consensus parameter voting algorithm. Now at
28194       least three directory authorities or a majority of them must
28195       vote on a given parameter before it will be included in the
28196       consensus. Implements proposal 178.
28198   o Major bugfixes:
28199     - Hidden services now ignore the timestamps on INTRODUCE2 cells.
28200       They used to check that the timestamp was within 30 minutes
28201       of their system clock, so they could cap the size of their
28202       replay-detection cache, but that approach unnecessarily refused
28203       service to clients with wrong clocks. Bugfix on 0.2.1.6-alpha, when
28204       the v3 intro-point protocol (the first one which sent a timestamp
28205       field in the INTRODUCE2 cell) was introduced; fixes bug 3460.
28206     - Only use the EVP interface when AES acceleration is enabled,
28207       to avoid a 5-7% performance regression. Resolves issue 4525;
28208       bugfix on 0.2.3.8-alpha.
28210   o Privacy/anonymity features (bridge detection):
28211     - Make bridge SSL certificates a bit more stealthy by using random
28212       serial numbers, in the same fashion as OpenSSL when generating
28213       self-signed certificates. Implements ticket 4584.
28214     - Introduce a new config option "DynamicDHGroups", enabled by
28215       default, which provides each bridge with a unique prime DH modulus
28216       to be used during SSL handshakes. This option attempts to help
28217       against censors who might use the Apache DH modulus as a static
28218       identifier for bridges. Addresses ticket 4548.
28220   o Minor features (new/different config options):
28221     - New configuration option "DisableDebuggerAttachment" (on by default)
28222       to prevent basic debugging attachment attempts by other processes.
28223       Supports Mac OS X and Gnu/Linux. Resolves ticket 3313.
28224     - Allow MapAddress directives to specify matches against super-domains,
28225       as in "MapAddress *.torproject.org *.torproject.org.torserver.exit".
28226       Implements issue 933.
28227     - Slightly change behavior of "list" options (that is, config
28228       options that can appear more than once) when they appear both in
28229       torrc and on the command line. Previously, the command-line options
28230       would be appended to the ones from torrc. Now, the command-line
28231       options override the torrc options entirely. This new behavior
28232       allows the user to override list options (like exit policies and
28233       ports to listen on) from the command line, rather than simply
28234       appending to the list.
28235     - You can get the old (appending) command-line behavior for "list"
28236       options by prefixing the option name with a "+".
28237     - You can remove all the values for a "list" option from the command
28238       line without adding any new ones by prefixing the option name
28239       with a "/".
28240     - Add experimental support for a "defaults" torrc file to be parsed
28241       before the regular torrc. Torrc options override the defaults file's
28242       options in the same way that the command line overrides the torrc.
28243       The SAVECONF controller command saves only those options which
28244       differ between the current configuration and the defaults file. HUP
28245       reloads both files. (Note: This is an experimental feature; its
28246       behavior will probably be refined in future 0.2.3.x-alpha versions
28247       to better meet packagers' needs.) Implements task 4552.
28249   o Minor features:
28250     - Try to make the introductory warning message that Tor prints on
28251       startup more useful for actually finding help and information.
28252       Resolves ticket 2474.
28253     - Running "make version" now displays the version of Tor that
28254       we're about to build. Idea from katmagic; resolves issue 4400.
28255     - Expire old or over-used hidden service introduction points.
28256       Required by fix for bug 3460.
28257     - Move the replay-detection cache for the RSA-encrypted parts of
28258       INTRODUCE2 cells to the introduction point data structures.
28259       Previously, we would use one replay-detection cache per hidden
28260       service. Required by fix for bug 3460.
28261     - Reduce the lifetime of elements of hidden services' Diffie-Hellman
28262       public key replay-detection cache from 60 minutes to 5 minutes. This
28263       replay-detection cache is now used only to detect multiple
28264       INTRODUCE2 cells specifying the same rendezvous point, so we can
28265       avoid launching multiple simultaneous attempts to connect to it.
28267   o Minor bugfixes (on Tor 0.2.2.x and earlier):
28268     - Resolve an integer overflow bug in smartlist_ensure_capacity().
28269       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
28270       Mansour Moufid.
28271     - Fix a minor formatting issue in one of tor-gencert's error messages.
28272       Fixes bug 4574.
28273     - Prevent a false positive from the check-spaces script, by disabling
28274       the "whitespace between function name and (" check for functions
28275       named 'op()'.
28276     - Fix a log message suggesting that people contact a non-existent
28277       email address. Fixes bug 3448.
28278     - Fix null-pointer access that could occur if TLS allocation failed.
28279       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
28280     - Report a real bootstrap problem to the controller on router
28281       identity mismatch. Previously we just said "foo", which probably
28282       made a lot of sense at the time. Fixes bug 4169; bugfix on
28283       0.2.1.1-alpha.
28284     - If we had ever tried to call tor_addr_to_str() on an address of
28285       unknown type, we would have done a strdup() on an uninitialized
28286       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
28287       Reported by "troll_un".
28288     - Correctly detect and handle transient lookup failures from
28289       tor_addr_lookup(). Fixes bug 4530; bugfix on 0.2.1.5-alpha.
28290       Reported by "troll_un".
28291     - Use tor_socket_t type for listener argument to accept(). Fixes bug
28292       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
28293     - Initialize conn->addr to a valid state in spawn_cpuworker(). Fixes
28294       bug 4532; found by "troll_un".
28296   o Minor bugfixes (on Tor 0.2.3.x):
28297     - Fix a compile warning in tor_inet_pton(). Bugfix on 0.2.3.8-alpha;
28298       fixes bug 4554.
28299     - Don't send two ESTABLISH_RENDEZVOUS cells when opening a new
28300       circuit for use as a hidden service client's rendezvous point.
28301       Fixes bugs 4641 and 4171; bugfix on 0.2.3.3-alpha. Diagnosed
28302       with help from wanoskarnet.
28303     - Restore behavior of overriding SocksPort, ORPort, and similar
28304       options from the command line. Bugfix on 0.2.3.3-alpha.
28306   o Build fixes:
28307     - Properly handle the case where the build-tree is not the same
28308       as the source tree when generating src/common/common_sha1.i,
28309       src/or/micro-revision.i, and src/or/or_sha1.i. Fixes bug 3953;
28310       bugfix on 0.2.0.1-alpha.
28312   o Code simplifications, cleanups, and refactorings:
28313     - Remove the pure attribute from all functions that used it
28314       previously. In many cases we assigned it incorrectly, because the
28315       functions might assert or call impure functions, and we don't have
28316       evidence that keeping the pure attribute is worthwhile. Implements
28317       changes suggested in ticket 4421.
28318     - Remove some dead code spotted by coverity. Fixes cid 432.
28319       Bugfix on 0.2.3.1-alpha, closes bug 4637.
28322 Changes in version 0.2.3.8-alpha - 2011-11-22
28323   Tor 0.2.3.8-alpha fixes some crash and assert bugs, including a
28324   socketpair-related bug that has been bothering Windows users. It adds
28325   support to serve microdescriptors to controllers, so Vidalia's network
28326   map can resume listing relays (once Vidalia implements its side),
28327   and adds better support for hardware AES acceleration. Finally, it
28328   starts the process of adjusting the bandwidth cutoff for getting the
28329   "Fast" flag from 20KB to (currently) 32KB -- preliminary results show
28330   that tiny relays harm performance more than they help network capacity.
28332   o Major bugfixes:
28333     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
28334       that it doesn't attempt to allocate a socketpair. This could cause
28335       some problems on Windows systems with overzealous firewalls. Fix for
28336       bug 4457; workaround for Libevent versions 2.0.1-alpha through
28337       2.0.15-stable.
28338     - Correctly sanity-check that we don't underflow on a memory
28339       allocation (and then assert) for hidden service introduction
28340       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
28341       bugfix on 0.2.1.5-alpha.
28342     - Remove the artificially low cutoff of 20KB to guarantee the Fast
28343       flag. In the past few years the average relay speed has picked
28344       up, and while the "top 7/8 of the network get the Fast flag" and
28345       "all relays with 20KB or more of capacity get the Fast flag" rules
28346       used to have the same result, now the top 7/8 of the network has
28347       a capacity more like 32KB. Bugfix on 0.2.1.14-rc. Fixes bug 4489.
28348     - Fix a rare assertion failure when checking whether a v0 hidden
28349       service descriptor has any usable introduction points left, and
28350       we don't have enough information to build a circuit to the first
28351       intro point named in the descriptor. The HS client code in
28352       0.2.3.x no longer uses v0 HS descriptors, but this assertion can
28353       trigger on (and crash) v0 HS authorities. Fixes bug 4411.
28354       Bugfix on 0.2.3.1-alpha; diagnosed by frosty_un.
28355     - Make bridge authorities not crash when they are asked for their own
28356       descriptor. Bugfix on 0.2.3.7-alpha, reported by Lucky Green.
28357     - When running as a client, do not print a misleading (and plain
28358       wrong) log message that we're collecting "directory request"
28359       statistics: clients don't collect statistics. Also don't create a
28360       useless (because empty) stats file in the stats/ directory. Fixes
28361       bug 4353; bugfix on 0.2.2.34 and 0.2.3.7-alpha.
28363   o Major features:
28364     - Allow Tor controllers like Vidalia to obtain the microdescriptor
28365       for a relay by identity digest or nickname. Previously,
28366       microdescriptors were only available by their own digests, so a
28367       controller would have to ask for and parse the whole microdescriptor
28368       consensus in order to look up a single relay's microdesc. Fixes
28369       bug 3832; bugfix on 0.2.3.1-alpha.
28370     - Use OpenSSL's EVP interface for AES encryption, so that all AES
28371       operations can use hardware acceleration (if present). Resolves
28372       ticket 4442.
28374   o Minor bugfixes (on 0.2.2.x and earlier):
28375     - Detect failure to initialize Libevent. This fix provides better
28376       detection for future instances of bug 4457.
28377     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
28378       function. This was eating up hideously large amounts of time on some
28379       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
28380     - Don't warn about unused log_mutex in log.c when building with
28381       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
28382       0.1.0.6-rc which introduced --disable-threads.
28383     - Allow manual 'authenticate' commands to the controller interface
28384       from netcat (nc) as well as telnet. We were rejecting them because
28385       they didn't come with the expected whitespace at the end of the
28386       command. Bugfix on 0.1.1.1-alpha; fixes bug 2893.
28387     - Fix some (not actually triggerable) buffer size checks in usage of
28388       tor_inet_ntop. Fixes bug 4434; bugfix on Tor 0.2.0.1-alpha. Patch
28389       by Anders Sundman.
28390     - Fix parsing of some corner-cases with tor_inet_pton(). Fixes
28391       bug 4515; bugfix on 0.2.0.1-alpha; fix by Anders Sundman.
28392     - When configuring, starting, or stopping an NT service, stop
28393       immediately after the service configuration attempt has succeeded
28394       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
28395     - When sending a NETINFO cell, include the original address
28396       received for the other side, not its canonical address. Found
28397       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
28398     - Rename the bench_{aes,dmap} functions to test_*, so that tinytest
28399       can pick them up when the tests aren't disabled. Bugfix on
28400       0.2.2.4-alpha which introduced tinytest.
28401     - Fix a memory leak when we check whether a hidden service
28402       descriptor has any usable introduction points left. Fixes bug
28403       4424. Bugfix on 0.2.2.25-alpha.
28404     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
28405       occurred when a client tried to fetch a descriptor for a bridge
28406       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
28408   o Minor bugfixes (on 0.2.3.x):
28409     - Make util unit tests build correctly with MSVC. Bugfix on
28410       0.2.3.3-alpha. Patch by Gisle Vanem.
28411     - Successfully detect AUTH_CHALLENGE cells with no recognized
28412       authentication type listed. Fixes bug 4367; bugfix on 0.2.3.6-alpha.
28413       Found by frosty_un.
28414     - If a relay receives an AUTH_CHALLENGE cell it can't answer,
28415       it should still send a NETINFO cell to allow the connection to
28416       become open. Fixes bug 4368; fix on 0.2.3.6-alpha; bug found by
28417       "frosty".
28418     - Log less loudly when we get an invalid authentication certificate
28419       from a source other than a directory authority: it's not unusual
28420       to see invalid certs because of clock skew. Fixes bug 4370; bugfix
28421       on 0.2.3.6-alpha.
28422     - Tolerate servers with more clock skew in their authentication
28423       certificates than previously. Fixes bug 4371; bugfix on
28424       0.2.3.6-alpha.
28425     - Fix a couple of compile warnings on Windows. Fixes bug 4469; bugfix
28426       on 0.2.3.4-alpha and 0.2.3.6-alpha.
28428   o Minor features:
28429     - Add two new config options for directory authorities:
28430       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
28431       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
28432       that is always sufficient to satisfy the bandwidth requirement for
28433       the Guard flag. Now it will be easier for researchers to simulate
28434       Tor networks with different values. Resolves ticket 4484.
28435     - When Tor ignores a hidden service specified in its configuration,
28436       include the hidden service's directory in the warning message.
28437       Previously, we would only tell the user that some hidden service
28438       was ignored. Bugfix on 0.0.6; fixes bug 4426.
28439     - When we fail to initialize Libevent, retry with IOCP disabled so we
28440       don't need to turn on multi-threading support in Libevent, which in
28441       turn requires a working socketpair(). This is a workaround for bug
28442       4457, which affects Libevent versions from 2.0.1-alpha through
28443       2.0.15-stable.
28444     - Detect when we try to build on a platform that doesn't define
28445       AF_UNSPEC to 0. We don't work there, so refuse to compile.
28446     - Update to the November 1 2011 Maxmind GeoLite Country database.
28448   o Packaging changes:
28449     - Make it easier to automate expert package builds on Windows,
28450       by removing an absolute path from makensis.exe command.
28452   o Code simplifications and refactoring:
28453     - Remove some redundant #include directives throughout the code.
28454       Patch from Andrea Gelmini.
28455     - Unconditionally use OpenSSL's AES implementation instead of our
28456       old built-in one. OpenSSL's AES has been better for a while, and
28457       relatively few servers should still be on any version of OpenSSL
28458       that doesn't have good optimized assembly AES.
28459     - Use the name "CERTS" consistently to refer to the new cell type;
28460       we were calling it CERT in some places and CERTS in others.
28462   o Testing:
28463     - Numerous new unit tests for functions in util.c and address.c by
28464       Anders Sundman.
28465     - The long-disabled benchmark tests are now split into their own
28466       ./src/test/bench binary.
28467     - The benchmark tests can now use more accurate timers than
28468       gettimeofday() when such timers are available.
28471 Changes in version 0.2.3.7-alpha - 2011-10-30
28472   Tor 0.2.3.7-alpha fixes a crash bug in 0.2.3.6-alpha introduced by
28473   the new v3 handshake. It also resolves yet another bridge address
28474   enumeration issue.
28476   o Major bugfixes:
28477     - If we mark an OR connection for close based on a cell we process,
28478       don't process any further cells on it. We already avoid further
28479       reads on marked-for-close connections, but now we also discard the
28480       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
28481       which was the first version where we might mark a connection for
28482       close based on processing a cell on it.
28483     - Fix a double-free bug that would occur when we received an invalid
28484       certificate in a CERT cell in the new v3 handshake. Fixes bug 4343;
28485       bugfix on 0.2.3.6-alpha.
28486     - Bridges no longer include their address in NETINFO cells on outgoing
28487       OR connections, to allow them to blend in better with clients.
28488       Removes another avenue for enumerating bridges. Reported by
28489       "troll_un". Fixes bug 4348; bugfix on 0.2.0.10-alpha, when NETINFO
28490       cells were introduced.
28492   o Trivial fixes:
28493     - Fixed a typo in a hibernation-related log message. Fixes bug 4331;
28494       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
28497 Changes in version 0.2.3.6-alpha - 2011-10-26
28498   Tor 0.2.3.6-alpha includes the fix from 0.2.2.34 for a critical
28499   anonymity vulnerability where an attacker can deanonymize Tor
28500   users. Everybody should upgrade.
28502   This release also features support for a new v3 connection handshake
28503   protocol, and fixes to make hidden service connections more robust.
28505   o Major features:
28506     - Implement a new handshake protocol (v3) for authenticating Tors to
28507       each other over TLS. It should be more resistant to fingerprinting
28508       than previous protocols, and should require less TLS hacking for
28509       future Tor implementations. Implements proposal 176.
28510     - Allow variable-length padding cells to disguise the length of
28511       Tor's TLS records. Implements part of proposal 184.
28513   o Privacy/anonymity fixes (clients):
28514     - Clients and bridges no longer send TLS certificate chains on
28515       outgoing OR connections. Previously, each client or bridge would
28516       use the same cert chain for all outgoing OR connections until
28517       its IP address changes, which allowed any relay that the client
28518       or bridge contacted to determine which entry guards it is using.
28519       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
28520     - If a relay receives a CREATE_FAST cell on a TLS connection, it
28521       no longer considers that connection as suitable for satisfying a
28522       circuit EXTEND request. Now relays can protect clients from the
28523       CVE-2011-2768 issue even if the clients haven't upgraded yet.
28524     - Directory authorities no longer assign the Guard flag to relays
28525       that haven't upgraded to the above "refuse EXTEND requests
28526       to client connections" fix. Now directory authorities can
28527       protect clients from the CVE-2011-2768 issue even if neither
28528       the clients nor the relays have upgraded yet. There's a new
28529       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
28530       to let us transition smoothly, else tomorrow there would be no
28531       guard relays.
28533   o Major bugfixes (hidden services):
28534     - Improve hidden service robustness: when an attempt to connect to
28535       a hidden service ends, be willing to refetch its hidden service
28536       descriptors from each of the HSDir relays responsible for them
28537       immediately. Previously, we would not consider refetching the
28538       service's descriptors from each HSDir for 15 minutes after the last
28539       fetch, which was inconvenient if the hidden service was not running
28540       during the first attempt. Bugfix on 0.2.0.18-alpha; fixes bug 3335.
28541     - When one of a hidden service's introduction points appears to be
28542       unreachable, stop trying it. Previously, we would keep trying
28543       to build circuits to the introduction point until we lost the
28544       descriptor, usually because the user gave up and restarted Tor.
28545       Partly fixes bug 3825.
28546     - Don't launch a useless circuit after failing to use one of a
28547       hidden service's introduction points. Previously, we would
28548       launch a new introduction circuit, but not set the hidden service
28549       which that circuit was intended to connect to, so it would never
28550       actually be used. A different piece of code would then create a
28551       new introduction circuit correctly. Bug reported by katmagic and
28552       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
28554   o Major bugfixes (other):
28555     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
28556       that they initiated. Relays could distinguish incoming bridge
28557       connections from client connections, creating another avenue for
28558       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
28559       Found by "frosty_un".
28560     - Don't update the AccountingSoftLimitHitAt state file entry whenever
28561       tor gets started. This prevents a wrong average bandwidth
28562       estimate, which would cause relays to always start a new accounting
28563       interval at the earliest possible moment. Fixes bug 2003; bugfix
28564       on 0.2.2.7-alpha. Reported by BryonEldridge, who also helped
28565       immensely in tracking this bug down.
28566     - Fix a crash bug when changing node restrictions while a DNS lookup
28567       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
28568       by "Tey'".
28570   o Minor bugfixes (on 0.2.2.x and earlier):
28571     - When a hidden service turns an extra service-side introduction
28572       circuit into a general-purpose circuit, free the rend_data and
28573       intro_key fields first, so we won't leak memory if the circuit
28574       is cannibalized for use as another service-side introduction
28575       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
28576     - Rephrase the log message emitted if the TestSocks check is
28577       successful. Patch from Fabian Keil; fixes bug 4094.
28578     - Bridges now skip DNS self-tests, to act a little more stealthily.
28579       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
28580       bridges. Patch by "warms0x".
28581     - Remove a confusing dollar sign from the example fingerprint in the
28582       man page, and also make the example fingerprint a valid one. Fixes
28583       bug 4309; bugfix on 0.2.1.3-alpha.
28584     - Fix internal bug-checking logic that was supposed to catch
28585       failures in digest generation so that it will fail more robustly
28586       if we ask for a nonexistent algorithm. Found by Coverity Scan.
28587       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
28588     - Report any failure in init_keys() calls launched because our
28589       IP address has changed. Spotted by Coverity Scan. Bugfix on
28590       0.1.1.4-alpha; fixes CID 484.
28592   o Minor bugfixes (on 0.2.3.x):
28593     - Fix a bug in configure.in that kept it from building a configure
28594       script with autoconf versions earlier than 2.61. Fixes bug 2430;
28595       bugfix on 0.2.3.1-alpha.
28596     - Don't warn users that they are exposing a client port to the
28597       Internet if they have specified an RFC1918 address. Previously,
28598       we would warn if the user had specified any non-loopback
28599       address. Bugfix on 0.2.3.3-alpha. Fixes bug 4018; reported by Tas.
28600     - Fix memory leaks in the failing cases of the new SocksPort and
28601       ControlPort code. Found by Coverity Scan. Bugfix on 0.2.3.3-alpha;
28602       fixes coverity CIDs 485, 486, and 487.
28604   o Minor features:
28605     - When a hidden service's introduction point times out, consider
28606       trying it again during the next attempt to connect to the
28607       HS. Previously, we would not try it again unless a newly fetched
28608       descriptor contained it. Required by fixes for bugs 1297 and 3825.
28609     - The next version of Windows will be called Windows 8, and it has
28610       a major version of 6, minor version of 2. Correctly identify that
28611       version instead of calling it "Very recent version". Resolves
28612       ticket 4153; reported by funkstar.
28613     - The Bridge Authority now writes statistics on how many bridge
28614       descriptors it gave out in total, and how many unique descriptors
28615       it gave out. It also lists how often the most and least commonly
28616       fetched descriptors were given out, as well as the median and
28617       25th/75th percentile. Implements tickets 4200 and 4294.
28618     - Update to the October 4 2011 Maxmind GeoLite Country database.
28620   o Code simplifications and refactoring:
28621     - Remove some old code to remember statistics about which descriptors
28622       we've served as a directory mirror. The feature wasn't used and
28623       is outdated now that microdescriptors are around.
28624     - Rename Tor functions that turn strings into addresses, so that
28625       "parse" indicates that no hostname resolution occurs, and
28626       "lookup" indicates that hostname resolution may occur. This
28627       should help prevent mistakes in the future. Fixes bug 3512.
28630 Changes in version 0.2.2.34 - 2011-10-26
28631   Tor 0.2.2.34 fixes a critical anonymity vulnerability where an attacker
28632   can deanonymize Tor users. Everybody should upgrade.
28634   The attack relies on four components: 1) Clients reuse their TLS cert
28635   when talking to different relays, so relays can recognize a user by
28636   the identity key in her cert. 2) An attacker who knows the client's
28637   identity key can probe each guard relay to see if that identity key
28638   is connected to that guard relay right now. 3) A variety of active
28639   attacks in the literature (starting from "Low-Cost Traffic Analysis
28640   of Tor" by Murdoch and Danezis in 2005) allow a malicious website to
28641   discover the guard relays that a Tor user visiting the website is using.
28642   4) Clients typically pick three guards at random, so the set of guards
28643   for a given user could well be a unique fingerprint for her. This
28644   release fixes components #1 and #2, which is enough to block the attack;
28645   the other two remain as open research problems. Special thanks to
28646   "frosty_un" for reporting the issue to us!
28648   Clients should upgrade so they are no longer recognizable by the TLS
28649   certs they present. Relays should upgrade so they no longer allow a
28650   remote attacker to probe them to test whether unpatched clients are
28651   currently connected to them.
28653   This release also fixes several vulnerabilities that allow an attacker
28654   to enumerate bridge relays. Some bridge enumeration attacks still
28655   remain; see for example proposal 188.
28657   o Privacy/anonymity fixes (clients):
28658     - Clients and bridges no longer send TLS certificate chains on
28659       outgoing OR connections. Previously, each client or bridge would
28660       use the same cert chain for all outgoing OR connections until
28661       its IP address changes, which allowed any relay that the client
28662       or bridge contacted to determine which entry guards it is using.
28663       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
28664     - If a relay receives a CREATE_FAST cell on a TLS connection, it
28665       no longer considers that connection as suitable for satisfying a
28666       circuit EXTEND request. Now relays can protect clients from the
28667       CVE-2011-2768 issue even if the clients haven't upgraded yet.
28668     - Directory authorities no longer assign the Guard flag to relays
28669       that haven't upgraded to the above "refuse EXTEND requests
28670       to client connections" fix. Now directory authorities can
28671       protect clients from the CVE-2011-2768 issue even if neither
28672       the clients nor the relays have upgraded yet. There's a new
28673       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
28674       to let us transition smoothly, else tomorrow there would be no
28675       guard relays.
28677   o Privacy/anonymity fixes (bridge enumeration):
28678     - Bridge relays now do their directory fetches inside Tor TLS
28679       connections, like all the other clients do, rather than connecting
28680       directly to the DirPort like public relays do. Removes another
28681       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
28682     - Bridges relays now build circuits for themselves in a more similar
28683       way to how clients build them. Removes another avenue for
28684       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
28685       when bridges were introduced.
28686     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
28687       that they initiated. Relays could distinguish incoming bridge
28688       connections from client connections, creating another avenue for
28689       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
28690       Found by "frosty_un".
28692   o Major bugfixes:
28693     - Fix a crash bug when changing node restrictions while a DNS lookup
28694       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
28695       by "Tey'".
28696     - Don't launch a useless circuit after failing to use one of a
28697       hidden service's introduction points. Previously, we would
28698       launch a new introduction circuit, but not set the hidden service
28699       which that circuit was intended to connect to, so it would never
28700       actually be used. A different piece of code would then create a
28701       new introduction circuit correctly. Bug reported by katmagic and
28702       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
28704   o Minor bugfixes:
28705     - Change an integer overflow check in the OpenBSD_Malloc code so
28706       that GCC is less likely to eliminate it as impossible. Patch
28707       from Mansour Moufid. Fixes bug 4059.
28708     - When a hidden service turns an extra service-side introduction
28709       circuit into a general-purpose circuit, free the rend_data and
28710       intro_key fields first, so we won't leak memory if the circuit
28711       is cannibalized for use as another service-side introduction
28712       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
28713     - Bridges now skip DNS self-tests, to act a little more stealthily.
28714       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
28715       bridges. Patch by "warms0x".
28716     - Fix internal bug-checking logic that was supposed to catch
28717       failures in digest generation so that it will fail more robustly
28718       if we ask for a nonexistent algorithm. Found by Coverity Scan.
28719       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
28720     - Report any failure in init_keys() calls launched because our
28721       IP address has changed. Spotted by Coverity Scan. Bugfix on
28722       0.1.1.4-alpha; fixes CID 484.
28724   o Minor bugfixes (log messages and documentation):
28725     - Remove a confusing dollar sign from the example fingerprint in the
28726       man page, and also make the example fingerprint a valid one. Fixes
28727       bug 4309; bugfix on 0.2.1.3-alpha.
28728     - The next version of Windows will be called Windows 8, and it has
28729       a major version of 6, minor version of 2. Correctly identify that
28730       version instead of calling it "Very recent version". Resolves
28731       ticket 4153; reported by funkstar.
28732     - Downgrade log messages about circuit timeout calibration from
28733       "notice" to "info": they don't require or suggest any human
28734       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
28735       bugfix on 0.2.2.14-alpha.
28737   o Minor features:
28738     - Turn on directory request statistics by default and include them in
28739       extra-info descriptors. Don't break if we have no GeoIP database.
28740       Backported from 0.2.3.1-alpha; implements ticket 3951.
28741     - Update to the October 4 2011 Maxmind GeoLite Country database.
28744 Changes in version 0.2.1.31 - 2011-10-26
28745   Tor 0.2.1.31 backports important security and privacy fixes for
28746   oldstable. This release is intended only for package maintainers and
28747   others who cannot use the 0.2.2 stable series. All others should be
28748   using Tor 0.2.2.x or newer.
28750   o Security fixes (also included in 0.2.2.x):
28751     - Replace all potentially sensitive memory comparison operations
28752       with versions whose runtime does not depend on the data being
28753       compared. This will help resist a class of attacks where an
28754       adversary can use variations in timing information to learn
28755       sensitive data. Fix for one case of bug 3122. (Safe memcmp
28756       implementation by Robert Ransom based partially on code by DJB.)
28757     - Fix an assert in parsing router descriptors containing IPv6
28758       addresses. This one took down the directory authorities when
28759       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
28761   o Privacy/anonymity fixes (also included in 0.2.2.x):
28762     - Clients and bridges no longer send TLS certificate chains on
28763       outgoing OR connections. Previously, each client or bridge would
28764       use the same cert chain for all outgoing OR connections until
28765       its IP address changes, which allowed any relay that the client
28766       or bridge contacted to determine which entry guards it is using.
28767       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
28768     - If a relay receives a CREATE_FAST cell on a TLS connection, it
28769       no longer considers that connection as suitable for satisfying a
28770       circuit EXTEND request. Now relays can protect clients from the
28771       CVE-2011-2768 issue even if the clients haven't upgraded yet.
28772     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
28773       that they initiated. Relays could distinguish incoming bridge
28774       connections from client connections, creating another avenue for
28775       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
28776       Found by "frosty_un".
28777     - When receiving a hidden service descriptor, check that it is for
28778       the hidden service we wanted. Previously, Tor would store any
28779       hidden service descriptors that a directory gave it, whether it
28780       wanted them or not. This wouldn't have let an attacker impersonate
28781       a hidden service, but it did let directories pre-seed a client
28782       with descriptors that it didn't want. Bugfix on 0.0.6.
28783     - Avoid linkability based on cached hidden service descriptors: forget
28784       all hidden service descriptors cached as a client when processing a
28785       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
28786     - Make the bridge directory authority refuse to answer directory
28787       requests for "all" descriptors. It used to include bridge
28788       descriptors in its answer, which was a major information leak.
28789       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
28790     - Don't attach new streams to old rendezvous circuits after SIGNAL
28791       NEWNYM. Previously, we would keep using an existing rendezvous
28792       circuit if it remained open (i.e. if it were kept open by a
28793       long-lived stream, or if a new stream were attached to it before
28794       Tor could notice that it was old and no longer in use). Bugfix on
28795       0.1.1.15-rc; fixes bug 3375.
28797   o Minor bugfixes (also included in 0.2.2.x):
28798     - When we restart our relay, we might get a successful connection
28799       from the outside before we've started our reachability tests,
28800       triggering a warning: "ORPort found reachable, but I have no
28801       routerinfo yet. Failing to inform controller of success." This
28802       bug was harmless unless Tor is running under a controller
28803       like Vidalia, in which case the controller would never get a
28804       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
28805       fixes bug 1172.
28806     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
28807       enabled. Fixes bug 1526.
28808     - Remove undocumented option "-F" from tor-resolve: it hasn't done
28809       anything since 0.2.1.16-rc.
28810     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
28811       None of the cases where we did this before were wrong, but by making
28812       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
28813     - Fix a rare crash bug that could occur when a client was configured
28814       with a large number of bridges. Fixes bug 2629; bugfix on
28815       0.2.1.2-alpha. Bugfix by trac user "shitlei".
28816     - Correct the warning displayed when a rendezvous descriptor exceeds
28817       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
28818       John Brooks.
28819     - Fix an uncommon assertion failure when running with DNSPort under
28820       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
28821     - When warning about missing zlib development packages during compile,
28822       give the correct package names. Bugfix on 0.2.0.1-alpha.
28823     - Require that introduction point keys and onion keys have public
28824       exponent 65537. Bugfix on 0.2.0.10-alpha.
28825     - Do not crash when our configuration file becomes unreadable, for
28826       example due to a permissions change, between when we start up
28827       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
28828       on 0.0.9pre6.
28829     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
28830       Fixes bug 3208.
28831     - Always NUL-terminate the sun_path field of a sockaddr_un before
28832       passing it to the kernel. (Not a security issue: kernels are
28833       smart enough to reject bad sockaddr_uns.) Found by Coverity;
28834       CID #428. Bugfix on Tor 0.2.0.3-alpha.
28835     - Don't stack-allocate the list of supplementary GIDs when we're
28836       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
28837       could take up to 256K, which is way too much stack. Found by
28838       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
28840   o Minor bugfixes (only in 0.2.1.x):
28841     - Resume using micro-version numbers in 0.2.1.x: our Debian packages
28842       rely on them. Bugfix on 0.2.1.30.
28843     - Use git revisions instead of svn revisions when generating our
28844       micro-version numbers. Bugfix on 0.2.1.15-rc; fixes bug 2402.
28846   o Minor features (also included in 0.2.2.x):
28847     - Adjust the expiration time on our SSL session certificates to
28848       better match SSL certs seen in the wild. Resolves ticket 4014.
28849     - Allow nameservers with IPv6 address. Resolves bug 2574.
28850     - Update to the October 4 2011 Maxmind GeoLite Country database.
28853 Changes in version 0.2.3.5-alpha - 2011-09-28
28854   Tor 0.2.3.5-alpha fixes two bugs that make it possible to enumerate
28855   bridge relays; fixes an assertion error that many users started hitting
28856   today; and adds the ability to refill token buckets more often than
28857   once per second, allowing significant performance improvements.
28859   o Security fixes:
28860     - Bridge relays now do their directory fetches inside Tor TLS
28861       connections, like all the other clients do, rather than connecting
28862       directly to the DirPort like public relays do. Removes another
28863       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
28864     - Bridges relays now build circuits for themselves in a more similar
28865       way to how clients build them. Removes another avenue for
28866       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
28867       when bridges were introduced.
28869   o Major bugfixes:
28870     - Fix an "Assertion md->held_by_node == 1 failed" error that could
28871       occur when the same microdescriptor was referenced by two node_t
28872       objects at once. Fix for bug 4118; bugfix on Tor 0.2.3.1-alpha.
28874   o Major features (networking):
28875     - Add a new TokenBucketRefillInterval option to refill token buckets
28876       more frequently than once per second. This should improve network
28877       performance, alleviate queueing problems, and make traffic less
28878       bursty. Implements proposal 183; closes ticket 3630. Design by
28879       Florian Tschorsch and Björn Scheuermann; implementation by
28880       Florian Tschorsch.
28882   o Minor bugfixes:
28883     - Change an integer overflow check in the OpenBSD_Malloc code so
28884       that GCC is less likely to eliminate it as impossible. Patch
28885       from Mansour Moufid. Fixes bug 4059.
28887   o Minor bugfixes (usability):
28888     - Downgrade log messages about circuit timeout calibration from
28889       "notice" to "info": they don't require or suggest any human
28890       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
28891       bugfix on 0.2.2.14-alpha.
28893   o Minor features (diagnostics):
28894     - When the system call to create a listener socket fails, log the
28895       error message explaining why. This may help diagnose bug 4027.
28898 Changes in version 0.2.3.4-alpha - 2011-09-13
28899   Tor 0.2.3.4-alpha includes the fixes from 0.2.2.33, including a slight
28900   tweak to Tor's TLS handshake that makes relays and bridges that run
28901   this new version reachable from Iran again. It also fixes a few new
28902   bugs in 0.2.3.x, and teaches relays to recognize when they're not
28903   listed in the network consensus and republish.
28905   o Major bugfixes (also part of 0.2.2.33):
28906     - Avoid an assertion failure when reloading a configuration with
28907       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
28908       3923; bugfix on 0.2.2.25-alpha.
28910   o Minor features (security, also part of 0.2.2.33):
28911     - Check for replays of the public-key encrypted portion of an
28912       INTRODUCE1 cell, in addition to the current check for replays of
28913       the g^x value. This prevents a possible class of active attacks
28914       by an attacker who controls both an introduction point and a
28915       rendezvous point, and who uses the malleability of AES-CTR to
28916       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
28917       that these attacks are infeasible (requiring the attacker to send
28918       on the order of zettabytes of altered cells in a short interval),
28919       but we'd rather block them off in case there are any classes of
28920       this attack that we missed. Reported by Willem Pinckaers.
28922   o Minor features (also part of 0.2.2.33):
28923     - Adjust the expiration time on our SSL session certificates to
28924       better match SSL certs seen in the wild. Resolves ticket 4014.
28925     - Change the default required uptime for a relay to be accepted as
28926       a HSDir (hidden service directory) from 24 hours to 25 hours.
28927       Improves on 0.2.0.10-alpha; resolves ticket 2649.
28928     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
28929       authorities to abstain from voting on assignment of the HSDir
28930       consensus flag. Related to bug 2649.
28931     - Update to the September 6 2011 Maxmind GeoLite Country database.
28933   o Minor bugfixes (also part of 0.2.2.33):
28934     - Demote the 'replay detected' log message emitted when a hidden
28935       service receives the same Diffie-Hellman public key in two different
28936       INTRODUCE2 cells to info level. A normal Tor client can cause that
28937       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
28938       fixes part of bug 2442.
28939     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
28940       level. There is nothing that a hidden service's operator can do
28941       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
28942       of bug 2442.
28943     - Clarify a log message specifying the characters permitted in
28944       HiddenServiceAuthorizeClient client names. Previously, the log
28945       message said that "[A-Za-z0-9+-_]" were permitted; that could have
28946       given the impression that every ASCII character between "+" and "_"
28947       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
28949   o Build fixes (also part of 0.2.2.33):
28950     - Clean up some code issues that prevented Tor from building on older
28951       BSDs. Fixes bug 3894; reported by "grarpamp".
28952     - Search for a platform-specific version of "ar" when cross-compiling.
28953       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
28955   o Major bugfixes:
28956     - Fix a bug where the SocksPort option (for example) would get
28957       ignored and replaced by the default if a SocksListenAddress
28958       option was set. Bugfix on 0.2.3.3-alpha; fixes bug 3936. Fix by
28959       Fabian Keil.
28961   o Major features:
28962     - Relays now try regenerating and uploading their descriptor more
28963       frequently if they are not listed in the consensus, or if the
28964       version of their descriptor listed in the consensus is too
28965       old. This fix should prevent situations where a server declines
28966       to re-publish itself because it has done so too recently, even
28967       though the authorities decided not to list its recent-enough
28968       descriptor. Fix for bug 3327.
28970   o Minor features:
28971     - Relays now include a reason for regenerating their descriptors
28972       in an HTTP header when uploading to the authorities. This will
28973       make it easier to debug descriptor-upload issues in the future.
28974     - When starting as root and then changing our UID via the User
28975       control option, and we have a ControlSocket configured, make sure
28976       that the ControlSocket is owned by the same account that Tor will
28977       run under. Implements ticket 3421; fix by Jérémy Bobbio.
28979   o Minor bugfixes:
28980     - Abort if tor_vasprintf fails in connection_printf_to_buf (a
28981       utility function used in the control-port code). This shouldn't
28982       ever happen unless Tor is completely out of memory, but if it did
28983       happen and Tor somehow recovered from it, Tor could have sent a log
28984       message to a control port in the middle of a reply to a controller
28985       command. Fixes part of bug 3428; bugfix on 0.1.2.3-alpha.
28986     - Make 'FetchUselessDescriptors' cause all descriptor types and
28987       all consensus types (including microdescriptors) to get fetched.
28988       Fixes bug 3851; bugfix on 0.2.3.1-alpha.
28990   o Code refactoring:
28991     - Make a new "entry connection" struct as an internal subtype of "edge
28992       connection", to simplify the code and make exit connections smaller.
28995 Changes in version 0.2.2.33 - 2011-09-13
28996   Tor 0.2.2.33 fixes several bugs, and includes a slight tweak to Tor's
28997   TLS handshake that makes relays and bridges that run this new version
28998   reachable from Iran again.
29000   o Major bugfixes:
29001     - Avoid an assertion failure when reloading a configuration with
29002       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
29003       3923; bugfix on 0.2.2.25-alpha.
29005   o Minor features (security):
29006     - Check for replays of the public-key encrypted portion of an
29007       INTRODUCE1 cell, in addition to the current check for replays of
29008       the g^x value. This prevents a possible class of active attacks
29009       by an attacker who controls both an introduction point and a
29010       rendezvous point, and who uses the malleability of AES-CTR to
29011       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
29012       that these attacks are infeasible (requiring the attacker to send
29013       on the order of zettabytes of altered cells in a short interval),
29014       but we'd rather block them off in case there are any classes of
29015       this attack that we missed. Reported by Willem Pinckaers.
29017   o Minor features:
29018     - Adjust the expiration time on our SSL session certificates to
29019       better match SSL certs seen in the wild. Resolves ticket 4014.
29020     - Change the default required uptime for a relay to be accepted as
29021       a HSDir (hidden service directory) from 24 hours to 25 hours.
29022       Improves on 0.2.0.10-alpha; resolves ticket 2649.
29023     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
29024       authorities to abstain from voting on assignment of the HSDir
29025       consensus flag. Related to bug 2649.
29026     - Update to the September 6 2011 Maxmind GeoLite Country database.
29028   o Minor bugfixes (documentation and log messages):
29029     - Correct the man page to explain that HashedControlPassword and
29030       CookieAuthentication can both be set, in which case either method
29031       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
29032       when we decided to allow these config options to both be set. Issue
29033       raised by bug 3898.
29034     - Demote the 'replay detected' log message emitted when a hidden
29035       service receives the same Diffie-Hellman public key in two different
29036       INTRODUCE2 cells to info level. A normal Tor client can cause that
29037       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
29038       fixes part of bug 2442.
29039     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
29040       level. There is nothing that a hidden service's operator can do
29041       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
29042       of bug 2442.
29043     - Clarify a log message specifying the characters permitted in
29044       HiddenServiceAuthorizeClient client names. Previously, the log
29045       message said that "[A-Za-z0-9+-_]" were permitted; that could have
29046       given the impression that every ASCII character between "+" and "_"
29047       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
29049   o Build fixes:
29050     - Provide a substitute implementation of lround() for MSVC, which
29051       apparently lacks it. Patch from Gisle Vanem.
29052     - Clean up some code issues that prevented Tor from building on older
29053       BSDs. Fixes bug 3894; reported by "grarpamp".
29054     - Search for a platform-specific version of "ar" when cross-compiling.
29055       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
29058 Changes in version 0.2.3.3-alpha - 2011-09-01
29059   Tor 0.2.3.3-alpha adds a new "stream isolation" feature to improve Tor's
29060   security, and provides client-side support for the microdescriptor
29061   and optimistic data features introduced earlier in the 0.2.3.x
29062   series. It also includes numerous critical bugfixes in the (optional)
29063   bufferevent-based networking backend.
29065   o Major features (stream isolation):
29066     - You can now configure Tor so that streams from different
29067       applications are isolated on different circuits, to prevent an
29068       attacker who sees your streams as they leave an exit node from
29069       linking your sessions to one another. To do this, choose some way
29070       to distinguish the applications: have them connect to different
29071       SocksPorts, or have one of them use SOCKS4 while the other uses
29072       SOCKS5, or have them pass different authentication strings to the
29073       SOCKS proxy. Then, use the new SocksPort syntax to configure the
29074       degree of isolation you need. This implements Proposal 171.
29075     - There's a new syntax for specifying multiple client ports (such as
29076       SOCKSPort, TransPort, DNSPort, NATDPort): you can now just declare
29077       multiple *Port entries with full addr:port syntax on each.
29078       The old *ListenAddress format is still supported, but you can't
29079       mix it with the new *Port syntax.
29081   o Major features (other):
29082     - Enable microdescriptor fetching by default for clients. This allows
29083       clients to download a much smaller amount of directory information.
29084       To disable it (and go back to the old-style consensus and
29085       descriptors), set "UseMicrodescriptors 0" in your torrc file.
29086     - Tor's firewall-helper feature, introduced in 0.2.3.1-alpha (see the
29087       "PortForwarding" config option), now supports Windows.
29088     - When using an exit relay running 0.2.3.x, clients can now
29089       "optimistically" send data before the exit relay reports that
29090       the stream has opened. This saves a round trip when starting
29091       connections where the client speaks first (such as web browsing).
29092       This behavior is controlled by a consensus parameter (currently
29093       disabled). To turn it on or off manually, use the "OptimisticData"
29094       torrc option. Implements proposal 181; code by Ian Goldberg.
29096   o Major bugfixes (bufferevents, fixes on 0.2.3.1-alpha):
29097     - When using IOCP on Windows, we need to enable Libevent windows
29098       threading support.
29099     - The IOCP backend now works even when the user has not specified
29100       the (internal, debugging-only) _UseFilteringSSLBufferevents option.
29101       Fixes part of bug 3752.
29102     - Correctly record the bytes we've read and written when using
29103       bufferevents, so that we can include them in our bandwidth history
29104       and advertised bandwidth. Fixes bug 3803.
29105     - Apply rate-limiting only at the bottom of a chain of filtering
29106       bufferevents. This prevents us from filling up internal read
29107       buffers and violating rate-limits when filtering bufferevents
29108       are enabled. Fixes part of bug 3804.
29109     - Add high-watermarks to the output buffers for filtered
29110       bufferevents. This prevents us from filling up internal write
29111       buffers and wasting CPU cycles when filtering bufferevents are
29112       enabled. Fixes part of bug 3804.
29113     - Correctly notice when data has been written from a bufferevent
29114       without flushing it completely. Fixes bug 3805.
29115     - Fix a bug where server-side tunneled bufferevent-based directory
29116       streams would get closed prematurely. Fixes bug 3814.
29117     - Fix a use-after-free error with per-connection rate-limiting
29118       buckets. Fixes bug 3888.
29120   o Major bugfixes (also part of 0.2.2.31-rc):
29121     - If we're configured to write our ControlPorts to disk, only write
29122       them after switching UID and creating the data directory. This way,
29123       we don't fail when starting up with a nonexistent DataDirectory
29124       and a ControlPortWriteToFile setting based on that directory. Fixes
29125       bug 3747; bugfix on Tor 0.2.2.26-beta.
29127   o Minor features:
29128     - Added a new CONF_CHANGED event so that controllers can be notified
29129       of any configuration changes made by other controllers, or by the
29130       user. Implements ticket 1692.
29131     - Use evbuffer_copyout() in inspect_evbuffer(). This fixes a memory
29132       leak when using bufferevents, and lets Libevent worry about how to
29133       best copy data out of a buffer.
29134     - Replace files in stats/ rather than appending to them. Now that we
29135       include statistics in extra-info descriptors, it makes no sense to
29136       keep old statistics forever. Implements ticket 2930.
29138   o Minor features (build compatibility):
29139     - Limited, experimental support for building with nmake and MSVC.
29140     - Provide a substitute implementation of lround() for MSVC, which
29141       apparently lacks it. Patch from Gisle Vanem.
29143   o Minor features (also part of 0.2.2.31-rc):
29144     - Update to the August 2 2011 Maxmind GeoLite Country database.
29146   o Minor bugfixes (on 0.2.3.x-alpha):
29147     - Fix a spurious warning when parsing SOCKS requests with
29148       bufferevents enabled. Fixes bug 3615; bugfix on 0.2.3.2-alpha.
29149     - Get rid of a harmless warning that could happen on relays running
29150       with bufferevents. The warning was caused by someone doing an http
29151       request to a relay's orport. Also don't warn for a few related
29152       non-errors. Fixes bug 3700; bugfix on 0.2.3.1-alpha.
29154   o Minor bugfixes (on 2.2.x and earlier):
29155     - Correct the man page to explain that HashedControlPassword and
29156       CookieAuthentication can both be set, in which case either method
29157       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
29158       when we decided to allow these config options to both be set. Issue
29159       raised by bug 3898.
29160     - The "--quiet" and "--hush" options now apply not only to Tor's
29161       behavior before logs are configured, but also to Tor's behavior in
29162       the absence of configured logs. Fixes bug 3550; bugfix on
29163       0.2.0.10-alpha.
29165   o Minor bugfixes (also part of 0.2.2.31-rc):
29166     - Write several files in text mode, on OSes that distinguish text
29167       mode from binary mode (namely, Windows). These files are:
29168       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
29169       that collect those statistics; 'client_keys' and 'hostname' for
29170       hidden services that use authentication; and (in the tor-gencert
29171       utility) newly generated identity and signing keys. Previously,
29172       we wouldn't specify text mode or binary mode, leading to an
29173       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
29174       the DirRecordUsageByCountry option which would have triggered
29175       the assertion failure was added), although this assertion failure
29176       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
29177     - Selectively disable deprecation warnings on OS X because Lion
29178       started deprecating the shipped copy of openssl. Fixes bug 3643.
29179     - Remove an extra pair of quotation marks around the error
29180       message in control-port STATUS_GENERAL BUG events. Bugfix on
29181       0.1.2.6-alpha; fixes bug 3732.
29182     - When unable to format an address as a string, report its value
29183       as "???" rather than reusing the last formatted address. Bugfix
29184       on 0.2.1.5-alpha.
29186   o Code simplifications and refactoring:
29187     - Rewrite the listener-selection logic so that parsing which ports
29188       we want to listen on is now separate from binding to the ports
29189       we want.
29191   o Build changes:
29192     - Building Tor with bufferevent support now requires Libevent
29193       2.0.13-stable or later. Previous versions of Libevent had bugs in
29194       SSL-related bufferevents and related issues that would make Tor
29195       work badly with bufferevents. Requiring 2.0.13-stable also allows
29196       Tor with bufferevents to take advantage of Libevent APIs
29197       introduced after 2.0.8-rc.
29200 Changes in version 0.2.2.32 - 2011-08-27
29201   The Tor 0.2.2 release series is dedicated to the memory of Andreas
29202   Pfitzmann (1958-2010), a pioneer in anonymity and privacy research,
29203   a founder of the PETS community, a leader in our field, a mentor,
29204   and a friend. He left us with these words: "I had the possibility
29205   to contribute to this world that is not as it should be. I hope I
29206   could help in some areas to make the world a better place, and that
29207   I could also encourage other people to be engaged in improving the
29208   world. Please, stay engaged. This world needs you, your love, your
29209   initiative -- now I cannot be part of that anymore."
29211   Tor 0.2.2.32, the first stable release in the 0.2.2 branch, is finally
29212   ready. More than two years in the making, this release features improved
29213   client performance and hidden service reliability, better compatibility
29214   for Android, correct behavior for bridges that listen on more than
29215   one address, more extensible and flexible directory object handling,
29216   better reporting of network statistics, improved code security, and
29217   many many other features and bugfixes.
29220 Changes in version 0.2.2.31-rc - 2011-08-17
29221   Tor 0.2.2.31-rc is the second and hopefully final release candidate
29222   for the Tor 0.2.2.x series.
29224   o Major bugfixes:
29225     - Remove an extra pair of quotation marks around the error
29226       message in control-port STATUS_GENERAL BUG events. Bugfix on
29227       0.1.2.6-alpha; fixes bug 3732.
29228     - If we're configured to write our ControlPorts to disk, only write
29229       them after switching UID and creating the data directory. This way,
29230       we don't fail when starting up with a nonexistent DataDirectory
29231       and a ControlPortWriteToFile setting based on that directory. Fixes
29232       bug 3747; bugfix on Tor 0.2.2.26-beta.
29234   o Minor features:
29235     - Update to the August 2 2011 Maxmind GeoLite Country database.
29237   o Minor bugfixes:
29238     - Allow GETINFO fingerprint to return a fingerprint even when
29239       we have not yet built a router descriptor. Fixes bug 3577;
29240       bugfix on 0.2.0.1-alpha.
29241     - Write several files in text mode, on OSes that distinguish text
29242       mode from binary mode (namely, Windows). These files are:
29243       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
29244       that collect those statistics; 'client_keys' and 'hostname' for
29245       hidden services that use authentication; and (in the tor-gencert
29246       utility) newly generated identity and signing keys. Previously,
29247       we wouldn't specify text mode or binary mode, leading to an
29248       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
29249       the DirRecordUsageByCountry option which would have triggered
29250       the assertion failure was added), although this assertion failure
29251       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
29252     - Selectively disable deprecation warnings on OS X because Lion
29253       started deprecating the shipped copy of openssl. Fixes bug 3643.
29254     - When unable to format an address as a string, report its value
29255       as "???" rather than reusing the last formatted address. Bugfix
29256       on 0.2.1.5-alpha.
29259 Changes in version 0.2.3.2-alpha - 2011-07-18
29260   Tor 0.2.3.2-alpha introduces two new experimental features:
29261   microdescriptors and pluggable transports. It also continues cleaning
29262   up a variety of recently introduced features.
29264   o Major features:
29265     - Clients can now use microdescriptors instead of regular descriptors
29266       to build circuits. Microdescriptors are authority-generated
29267       summaries of regular descriptors' contents, designed to change
29268       very rarely (see proposal 158 for details). This feature is
29269       designed to save bandwidth, especially for clients on slow internet
29270       connections. It's off by default for now, since nearly no caches
29271       support it, but it will be on-by-default for clients in a future
29272       version. You can use the UseMicrodescriptors option to turn it on.
29273     - Tor clients using bridges can now be configured to use a separate
29274       'transport' proxy for each bridge. This approach helps to resist
29275       censorship by allowing bridges to use protocol obfuscation
29276       plugins. It implements part of proposal 180. Implements ticket 2841.
29277     - While we're trying to bootstrap, record how many TLS connections
29278       fail in each state, and report which states saw the most failures
29279       in response to any bootstrap failures. This feature may speed up
29280       diagnosis of censorship events. Implements ticket 3116.
29282   o Major bugfixes (on 0.2.3.1-alpha):
29283     - When configuring a large set of nodes in EntryNodes (as with
29284       'EntryNodes {cc}' or 'EntryNodes 1.1.1.1/16'), choose only a
29285       random subset to be guards, and choose them in random
29286       order. Fixes bug 2798.
29287     - Tor could crash when remembering a consensus in a non-used consensus
29288       flavor without having a current consensus set. Fixes bug 3361.
29289     - Comparing an unknown address to a microdescriptor's shortened exit
29290       policy would always give a "rejected" result. Fixes bug 3599.
29291     - Using microdescriptors as a client no longer prevents Tor from
29292       uploading and downloading hidden service descriptors. Fixes
29293       bug 3601.
29295   o Minor features:
29296     - Allow nameservers with IPv6 address. Resolves bug 2574.
29297     - Accept attempts to include a password authenticator in the
29298       handshake, as supported by SOCKS5. This handles SOCKS clients that
29299       don't know how to omit a password when authenticating. Resolves
29300       bug 1666.
29301     - When configuring a large set of nodes in EntryNodes, and there are
29302       enough of them listed as Guard so that we don't need to consider
29303       the non-guard entries, prefer the ones listed with the Guard flag.
29304     - Check for and recover from inconsistency in the microdescriptor
29305       cache. This will make it harder for us to accidentally free a
29306       microdescriptor without removing it from the appropriate data
29307       structures. Fixes issue 3135; issue noted by "wanoskarnet".
29308     - Log SSL state transitions at log level DEBUG, log domain
29309       HANDSHAKE. This can be useful for debugging censorship events.
29310       Implements ticket 3264.
29311     - Add port 6523 (Gobby) to LongLivedPorts. Patch by intrigeri;
29312       implements ticket 3439.
29314   o Minor bugfixes (on 0.2.3.1-alpha):
29315     - Do not free all general-purpose regular descriptors just
29316       because microdescriptor use is enabled. Fixes bug 3113.
29317     - Correctly link libevent_openssl when --enable-static-libevent
29318       is passed to configure. Fixes bug 3118.
29319     - Bridges should not complain during their heartbeat log messages that
29320       they are unlisted in the consensus: that's more or less the point
29321       of being a bridge. Fixes bug 3183.
29322     - Report a SIGNAL event to controllers when acting on a delayed
29323       SIGNAL NEWNYM command. Previously, we would report a SIGNAL
29324       event to the controller if we acted on a SIGNAL NEWNYM command
29325       immediately, and otherwise not report a SIGNAL event for the
29326       command at all. Fixes bug 3349.
29327     - Fix a crash when handling the SIGNAL controller command or
29328       reporting ERR-level status events with bufferevents enabled. Found
29329       by Robert Ransom. Fixes bug 3367.
29330     - Always ship the tor-fw-helper manpage in our release tarballs.
29331       Fixes bug 3389. Reported by Stephen Walker.
29332     - Fix a class of double-mark-for-close bugs when bufferevents
29333       are enabled. Fixes bug 3403.
29334     - Update tor-fw-helper to support libnatpmp-20110618. Fixes bug 3434.
29335     - Add SIGNAL to the list returned by the 'GETINFO events/names'
29336       control-port command. Fixes part of bug 3465.
29337     - Prevent using negative indices during unit test runs when read_all()
29338       fails. Spotted by coverity.
29339     - Fix a rare memory leak when checking the nodelist without it being
29340       present. Found by coverity.
29341     - Only try to download a microdescriptor-flavored consensus from
29342       a directory cache that provides them.
29344   o Minor bugfixes (on 0.2.2.x and earlier):
29345     - Assert that hidden-service-related operations are not performed
29346       using single-hop circuits. Previously, Tor would assert that
29347       client-side streams are not attached to single-hop circuits,
29348       but not that other sensitive operations on the client and service
29349       side are not performed using single-hop circuits. Fixes bug 3332;
29350       bugfix on 0.0.6.
29351     - Don't publish a new relay descriptor when we reload our onion key,
29352       unless the onion key has actually changed. Fixes bug 3263 and
29353       resolves another cause of bug 1810. Bugfix on 0.1.1.11-alpha.
29354     - Allow GETINFO fingerprint to return a fingerprint even when
29355       we have not yet built a router descriptor. Fixes bug 3577;
29356       bugfix on 0.2.0.1-alpha.
29357     - Make 'tor --digests' list hashes of all Tor source files. Bugfix
29358       on 0.2.2.4-alpha; fixes bug 3427.
29360   o Code simplification and refactoring:
29361     - Use tor_sscanf() in place of scanf() in more places through the
29362       code. This makes us a little more locale-independent, and
29363       should help shut up code-analysis tools that can't tell
29364       a safe sscanf string from a dangerous one.
29365     - Use tt_assert(), not tor_assert(), for checking for test failures.
29366       This makes the unit tests more able to go on in the event that
29367       one of them fails.
29368     - Split connection_about_to_close() into separate functions for each
29369       connection type.
29371   o Build changes:
29372     - On Windows, we now define the _WIN32_WINNT macros only if they
29373       are not already defined. This lets the person building Tor decide,
29374       if they want, to require a later version of Windows.
29377 Changes in version 0.2.2.30-rc - 2011-07-07
29378   Tor 0.2.2.30-rc is the first release candidate for the Tor 0.2.2.x
29379   series. It fixes a few smaller bugs, but generally appears stable.
29380   Please test it and let us know whether it is!
29382   o Minor bugfixes:
29383     - Send a SUCCEEDED stream event to the controller when a reverse
29384       resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue
29385       discovered by katmagic.
29386     - Always NUL-terminate the sun_path field of a sockaddr_un before
29387       passing it to the kernel. (Not a security issue: kernels are
29388       smart enough to reject bad sockaddr_uns.) Found by Coverity;
29389       CID #428. Bugfix on Tor 0.2.0.3-alpha.
29390     - Don't stack-allocate the list of supplementary GIDs when we're
29391       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
29392       could take up to 256K, which is way too much stack. Found by
29393       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
29394     - Add BUILDTIMEOUT_SET to the list returned by the 'GETINFO
29395       events/names' control-port command. Bugfix on 0.2.2.9-alpha;
29396       fixes part of bug 3465.
29397     - Fix a memory leak when receiving a descriptor for a hidden
29398       service we didn't ask for. Found by Coverity; CID #30. Bugfix
29399       on 0.2.2.26-beta.
29401   o Minor features:
29402     - Update to the July 1 2011 Maxmind GeoLite Country database.
29405 Changes in version 0.2.2.29-beta - 2011-06-20
29406   Tor 0.2.2.29-beta reverts an accidental behavior change for users who
29407   have bridge lines in their torrc but don't want to use them; gets
29408   us closer to having the control socket feature working on Debian;
29409   and fixes a variety of smaller bugs.
29411   o Major bugfixes:
29412     - Revert the UseBridges option to its behavior before 0.2.2.28-beta.
29413       When we changed the default behavior to "use bridges if any
29414       are listed in the torrc", we surprised users who had bridges
29415       in their torrc files but who didn't actually want to use them.
29416       Partial resolution for bug 3354.
29418   o Privacy fixes:
29419     - Don't attach new streams to old rendezvous circuits after SIGNAL
29420       NEWNYM. Previously, we would keep using an existing rendezvous
29421       circuit if it remained open (i.e. if it were kept open by a
29422       long-lived stream, or if a new stream were attached to it before
29423       Tor could notice that it was old and no longer in use). Bugfix on
29424       0.1.1.15-rc; fixes bug 3375.
29426   o Minor bugfixes:
29427     - Fix a bug when using ControlSocketsGroupWritable with User. The
29428       directory's group would be checked against the current group, not
29429       the configured group. Patch by Jérémy Bobbio. Fixes bug 3393;
29430       bugfix on 0.2.2.26-beta.
29431     - Make connection_printf_to_buf()'s behavior sane. Its callers
29432       expect it to emit a CRLF iff the format string ends with CRLF;
29433       it actually emitted a CRLF iff (a) the format string ended with
29434       CRLF or (b) the resulting string was over 1023 characters long or
29435       (c) the format string did not end with CRLF *and* the resulting
29436       string was 1021 characters long or longer. Bugfix on 0.1.1.9-alpha;
29437       fixes part of bug 3407.
29438     - Make send_control_event_impl()'s behavior sane. Its callers
29439       expect it to always emit a CRLF at the end of the string; it
29440       might have emitted extra control characters as well. Bugfix on
29441       0.1.1.9-alpha; fixes another part of bug 3407.
29442     - Make crypto_rand_int() check the value of its input correctly.
29443       Previously, it accepted values up to UINT_MAX, but could return a
29444       negative number if given a value above INT_MAX+1. Found by George
29445       Kadianakis. Fixes bug 3306; bugfix on 0.2.2pre14.
29446     - Avoid a segfault when reading a malformed circuit build state
29447       with more than INT_MAX entries. Found by wanoskarnet. Bugfix on
29448       0.2.2.4-alpha.
29449     - When asked about a DNS record type we don't support via a
29450       client DNSPort, reply with NOTIMPL rather than an empty
29451       reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha.
29452     - Fix a rare memory leak during stats writing. Found by coverity.
29454   o Minor features:
29455     - Update to the June 1 2011 Maxmind GeoLite Country database.
29457   o Code simplifications and refactoring:
29458     - Remove some dead code as indicated by coverity.
29459     - Remove a few dead assignments during router parsing. Found by
29460       coverity.
29461     - Add some forgotten return value checks during unit tests. Found
29462       by coverity.
29463     - Don't use 1-bit wide signed bit fields. Found by coverity.
29466 Changes in version 0.2.2.28-beta - 2011-06-04
29467   Tor 0.2.2.28-beta makes great progress towards a new stable release: we
29468   fixed a big bug in whether relays stay in the consensus consistently,
29469   we moved closer to handling bridges and hidden services correctly,
29470   and we started the process of better handling the dreaded "my Vidalia
29471   died, and now my Tor demands a password when I try to reconnect to it"
29472   usability issue.
29474   o Major bugfixes:
29475     - Don't decide to make a new descriptor when receiving a HUP signal.
29476       This bug has caused a lot of 0.2.2.x relays to disappear from the
29477       consensus periodically. Fixes the most common case of triggering
29478       bug 1810; bugfix on 0.2.2.7-alpha.
29479     - Actually allow nameservers with IPv6 addresses. Fixes bug 2574.
29480     - Don't try to build descriptors if "ORPort auto" is set and we
29481       don't know our actual ORPort yet. Fix for bug 3216; bugfix on
29482       0.2.2.26-beta.
29483     - Resolve a crash that occurred when setting BridgeRelay to 1 with
29484       accounting enabled. Fixes bug 3228; bugfix on 0.2.2.18-alpha.
29485     - Apply circuit timeouts to opened hidden-service-related circuits
29486       based on the correct start time. Previously, we would apply the
29487       circuit build timeout based on time since the circuit's creation;
29488       it was supposed to be applied based on time since the circuit
29489       entered its current state. Bugfix on 0.0.6; fixes part of bug 1297.
29490     - Use the same circuit timeout for client-side introduction
29491       circuits as for other four-hop circuits, rather than the timeout
29492       for single-hop directory-fetch circuits; the shorter timeout may
29493       have been appropriate with the static circuit build timeout in
29494       0.2.1.x and earlier, but caused many hidden service access attempts
29495       to fail with the adaptive CBT introduced in 0.2.2.2-alpha. Bugfix
29496       on 0.2.2.2-alpha; fixes another part of bug 1297.
29497     - In ticket 2511 we fixed a case where you could use an unconfigured
29498       bridge if you had configured it as a bridge the last time you ran
29499       Tor. Now fix another edge case: if you had configured it as a bridge
29500       but then switched to a different bridge via the controller, you
29501       would still be willing to use the old one. Bugfix on 0.2.0.1-alpha;
29502       fixes bug 3321.
29504   o Major features:
29505     - Add an __OwningControllerProcess configuration option and a
29506       TAKEOWNERSHIP control-port command. Now a Tor controller can ensure
29507       that when it exits, Tor will shut down. Implements feature 3049.
29508     - If "UseBridges 1" is set and no bridges are configured, Tor will
29509       now refuse to build any circuits until some bridges are set.
29510       If "UseBridges auto" is set, Tor will use bridges if they are
29511       configured and we are not running as a server, but otherwise will
29512       make circuits as usual. The new default is "auto". Patch by anonym,
29513       so the Tails LiveCD can stop automatically revealing you as a Tor
29514       user on startup.
29516   o Minor bugfixes:
29517     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
29518     - Remove a trailing asterisk from "exit-policy/default" in the
29519       output of the control port command "GETINFO info/names". Bugfix
29520       on 0.1.2.5-alpha.
29521     - Use a wide type to hold sockets when built for 64-bit Windows builds.
29522       Fixes bug 3270.
29523     - Warn when the user configures two HiddenServiceDir lines that point
29524       to the same directory. Bugfix on 0.0.6 (the version introducing
29525       HiddenServiceDir); fixes bug 3289.
29526     - Remove dead code from rend_cache_lookup_v2_desc_as_dir. Fixes
29527       part of bug 2748; bugfix on 0.2.0.10-alpha.
29528     - Log malformed requests for rendezvous descriptors as protocol
29529       warnings, not warnings. Also, use a more informative log message
29530       in case someone sees it at log level warning without prior
29531       info-level messages. Fixes the other part of bug 2748; bugfix
29532       on 0.2.0.10-alpha.
29533     - Clear the table recording the time of the last request for each
29534       hidden service descriptor from each HS directory on SIGNAL NEWNYM.
29535       Previously, we would clear our HS descriptor cache on SIGNAL
29536       NEWNYM, but if we had previously retrieved a descriptor (or tried
29537       to) from every directory responsible for it, we would refuse to
29538       fetch it again for up to 15 minutes. Bugfix on 0.2.2.25-alpha;
29539       fixes bug 3309.
29540     - Fix a log message that said "bits" while displaying a value in
29541       bytes. Found by wanoskarnet. Fixes bug 3318; bugfix on
29542       0.2.0.1-alpha.
29543     - When checking for 1024-bit keys, check for 1024 bits, not 128
29544       bytes. This allows Tor to correctly discard keys of length 1017
29545       through 1023. Bugfix on 0.0.9pre5.
29547   o Minor features:
29548     - Relays now log the reason for publishing a new relay descriptor,
29549       so we have a better chance of hunting down instances of bug 1810.
29550       Resolves ticket 3252.
29551     - Revise most log messages that refer to nodes by nickname to
29552       instead use the "$key=nickname at address" format. This should be
29553       more useful, especially since nicknames are less and less likely
29554       to be unique. Resolves ticket 3045.
29555     - Log (at info level) when purging pieces of hidden-service-client
29556       state because of SIGNAL NEWNYM.
29558   o Removed options:
29559     - Remove undocumented option "-F" from tor-resolve: it hasn't done
29560       anything since 0.2.1.16-rc.
29563 Changes in version 0.2.2.27-beta - 2011-05-18
29564   Tor 0.2.2.27-beta fixes a bridge-related stability bug in the previous
29565   release, and also adds a few more general bugfixes.
29567   o Major bugfixes:
29568     - Fix a crash bug when changing bridges in a running Tor process.
29569       Fixes bug 3213; bugfix on 0.2.2.26-beta.
29570     - When the controller configures a new bridge, don't wait 10 to 60
29571       seconds before trying to fetch its descriptor. Bugfix on
29572       0.2.0.3-alpha; fixes bug 3198 (suggested by 2355).
29574   o Minor bugfixes:
29575     - Require that onion keys have exponent 65537 in microdescriptors too.
29576       Fixes more of bug 3207; bugfix on 0.2.2.26-beta.
29577     - Tor used to limit HttpProxyAuthenticator values to 48 characters.
29578       Changed the limit to 512 characters by removing base64 newlines.
29579       Fixes bug 2752. Fix by Michael Yakubovich.
29580     - When a client starts or stops using bridges, never use a circuit
29581       that was built before the configuration change. This behavior could
29582       put at risk a user who uses bridges to ensure that her traffic
29583       only goes to the chosen addresses. Bugfix on 0.2.0.3-alpha; fixes
29584       bug 3200.
29587 Changes in version 0.2.2.26-beta - 2011-05-17
29588   Tor 0.2.2.26-beta fixes a variety of potential privacy problems. It
29589   also introduces a new "socksport auto" approach that should make it
29590   easier to run multiple Tors on the same system, and does a lot of
29591   cleanup to get us closer to a release candidate.
29593   o Security/privacy fixes:
29594     - Replace all potentially sensitive memory comparison operations
29595       with versions whose runtime does not depend on the data being
29596       compared. This will help resist a class of attacks where an
29597       adversary can use variations in timing information to learn
29598       sensitive data. Fix for one case of bug 3122. (Safe memcmp
29599       implementation by Robert Ransom based partially on code by DJB.)
29600     - When receiving a hidden service descriptor, check that it is for
29601       the hidden service we wanted. Previously, Tor would store any
29602       hidden service descriptors that a directory gave it, whether it
29603       wanted them or not. This wouldn't have let an attacker impersonate
29604       a hidden service, but it did let directories pre-seed a client
29605       with descriptors that it didn't want. Bugfix on 0.0.6.
29606     - On SIGHUP, do not clear out all TrackHostExits mappings, client
29607       DNS cache entries, and virtual address mappings: that's what
29608       NEWNYM is for. Fixes bug 1345; bugfix on 0.1.0.1-rc.
29610   o Major features:
29611     - The options SocksPort, ControlPort, and so on now all accept a
29612       value "auto" that opens a socket on an OS-selected port. A
29613       new ControlPortWriteToFile option tells Tor to write its
29614       actual control port or ports to a chosen file. If the option
29615       ControlPortFileGroupReadable is set, the file is created as
29616       group-readable. Now users can run two Tor clients on the same
29617       system without needing to manually mess with parameters. Resolves
29618       part of ticket 3076.
29619     - Set SO_REUSEADDR on all sockets, not just listeners. This should
29620       help busy exit nodes avoid running out of useable ports just
29621       because all the ports have been used in the near past. Resolves
29622       issue 2850.
29624   o Minor features:
29625     - New "GETINFO net/listeners/(type)" controller command to return
29626       a list of addresses and ports that are bound for listeners for a
29627       given connection type. This is useful when the user has configured
29628       "SocksPort auto" and the controller needs to know which port got
29629       chosen. Resolves another part of ticket 3076.
29630     - Add a new ControlSocketsGroupWritable configuration option: when
29631       it is turned on, ControlSockets are group-writeable by the default
29632       group of the current user. Patch by Jérémy Bobbio; implements
29633       ticket 2972.
29634     - Tor now refuses to create a ControlSocket in a directory that is
29635       world-readable (or group-readable if ControlSocketsGroupWritable
29636       is 0). This is necessary because some operating systems do not
29637       enforce permissions on an AF_UNIX sockets. Permissions on the
29638       directory holding the socket, however, seems to work everywhere.
29639     - Rate-limit a warning about failures to download v2 networkstatus
29640       documents. Resolves part of bug 1352.
29641     - Backport code from 0.2.3.x that allows directory authorities to
29642       clean their microdescriptor caches. Needed to resolve bug 2230.
29643     - When an HTTPS proxy reports "403 Forbidden", we now explain
29644       what it means rather than calling it an unexpected status code.
29645       Closes bug 2503. Patch from Michael Yakubovich.
29646     - Update to the May 1 2011 Maxmind GeoLite Country database.
29648   o Minor bugfixes:
29649     - Authorities now clean their microdesc cache periodically and when
29650       reading from disk initially, not only when adding new descriptors.
29651       This prevents a bug where we could lose microdescriptors. Bugfix
29652       on 0.2.2.6-alpha. Fixes bug 2230.
29653     - Do not crash when our configuration file becomes unreadable, for
29654       example due to a permissions change, between when we start up
29655       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
29656       on 0.0.9pre6.
29657     - Avoid a bug that would keep us from replacing a microdescriptor
29658       cache on Windows. (We would try to replace the file while still
29659       holding it open. That's fine on Unix, but Windows doesn't let us
29660       do that.) Bugfix on 0.2.2.6-alpha; bug found by wanoskarnet.
29661     - Add missing explanations for the authority-related torrc options
29662       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey in the
29663       man page. Resolves issue 2379.
29664     - As an authority, do not upload our own vote or signature set to
29665       ourself. It would tell us nothing new, and as of 0.2.2.24-alpha,
29666       it would get flagged as a duplicate. Resolves bug 3026.
29667     - Accept hidden service descriptors if we think we might be a hidden
29668       service directory, regardless of what our consensus says. This
29669       helps robustness, since clients and hidden services can sometimes
29670       have a more up-to-date view of the network consensus than we do,
29671       and if they think that the directory authorities list us a HSDir,
29672       we might actually be one. Related to bug 2732; bugfix on
29673       0.2.0.10-alpha.
29674     - When a controller changes TrackHostExits, remove mappings for
29675       hosts that should no longer have their exits tracked. Bugfix on
29676       0.1.0.1-rc.
29677     - When a controller changes VirtualAddrNetwork, remove any mappings
29678       for hosts that were automapped to the old network. Bugfix on
29679       0.1.1.19-rc.
29680     - When a controller changes one of the AutomapHosts* options, remove
29681       any mappings for hosts that should no longer be automapped. Bugfix
29682       on 0.2.0.1-alpha.
29683     - Do not reset the bridge descriptor download status every time we
29684       re-parse our configuration or get a configuration change. Fixes
29685       bug 3019; bugfix on 0.2.0.3-alpha.
29687   o Minor bugfixes (code cleanup):
29688     - When loading the microdesc journal, remember its current size.
29689       In 0.2.2, this helps prevent the microdesc journal from growing
29690       without limit on authorities (who are the only ones to use it in
29691       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
29692       Fix posted by "cypherpunks."
29693     - The microdesc journal is supposed to get rebuilt only if it is
29694       at least _half_ the length of the store, not _twice_ the length
29695       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
29696     - Fix a potential null-pointer dereference while computing a
29697       consensus. Bugfix on 0.2.0.3-alpha, found with the help of
29698       clang's analyzer.
29699     - Avoid a possible null-pointer dereference when rebuilding the mdesc
29700       cache without actually having any descriptors to cache. Bugfix on
29701       0.2.2.6-alpha. Issue discovered using clang's static analyzer.
29702     - If we fail to compute the identity digest of a v3 legacy keypair,
29703       warn, and don't use a buffer-full of junk instead. Bugfix on
29704       0.2.1.1-alpha; fixes bug 3106.
29705     - Resolve an untriggerable issue in smartlist_string_num_isin(),
29706       where if the function had ever in the future been used to check
29707       for the presence of a too-large number, it would have given an
29708       incorrect result. (Fortunately, we only used it for 16-bit
29709       values.) Fixes bug 3175; bugfix on 0.1.0.1-rc.
29710     - Require that introduction point keys and onion handshake keys
29711       have a public exponent of 65537. Starts to fix bug 3207; bugfix
29712       on 0.2.0.10-alpha.
29714   o Removed features:
29715     - Caches no longer download and serve v2 networkstatus documents
29716       unless FetchV2Networkstatus flag is set: these documents haven't
29717       haven't been used by clients or relays since 0.2.0.x. Resolves
29718       bug 3022.
29721 Changes in version 0.2.3.1-alpha - 2011-05-05
29722   Tor 0.2.3.1-alpha adds some new experimental features, including support
29723   for an improved network IO backend, IOCP networking on Windows,
29724   microdescriptor caching, "fast-start" support for streams, and automatic
29725   home router configuration. There are also numerous internal improvements
29726   to try to make the code easier for developers to work with.
29728   This is the first alpha release in a new series, so expect there to be
29729   bugs. Users who would rather test out a more stable branch should
29730   stay with 0.2.2.x for now.
29732   o Major features:
29733     - Tor can now optionally build with the "bufferevents" buffered IO
29734       backend provided by Libevent 2. To use this feature, make sure you
29735       have the latest possible version of Libevent, and pass the
29736       --enable-bufferevents flag to configure when building Tor from
29737       source. This feature will make our networking code more flexible,
29738       let us stack layers on each other, and let us use more efficient
29739       zero-copy transports where available.
29740     - As an experimental feature, Tor can use IOCP for networking on Windows.
29741       Once this code is tuned and optimized, it promises much better
29742       performance than the select-based backend we've used in the past. To
29743       try this feature, you must build Tor with Libevent 2, configure Tor
29744       with the "bufferevents" buffered IO backend, and add "DisableIOCP 0" to
29745       your torrc. There are known bugs here: only try this if you can help
29746       debug it as it breaks.
29747     - The EntryNodes option can now include country codes like {de} or IP
29748       addresses or network masks. Previously we had disallowed these options
29749       because we didn't have an efficient way to keep the list up to
29750       date. Fixes bug 1982, but see bug 2798 for an unresolved issue here.
29751     - Exit nodes now accept and queue data on not-yet-connected streams.
29752       Previously, the client wasn't allowed to send data until the stream was
29753       connected, which slowed down all connections. This change will enable
29754       clients to perform a "fast-start" on streams and send data without
29755       having to wait for a confirmation that the stream has opened. (Patch
29756       from Ian Goldberg; implements the server side of Proposal 174.)
29757     - Tor now has initial support for automatic port mapping on the many
29758       home routers that support NAT-PMP or UPnP. (Not yet supported on
29759       Windows). To build the support code, you'll need to have libnatpnp
29760       library and/or the libminiupnpc library, and you'll need to enable the
29761       feature specifically by passing "--enable-upnp" and/or
29762       "--enable-natpnp" to configure. To turn it on, use the new
29763       PortForwarding option.
29764     - Caches now download, cache, and serve multiple "flavors" of the
29765       consensus, including a flavor that describes microdescriptors.
29766     - Caches now download, cache, and serve microdescriptors -- small
29767       summaries of router descriptors that are authenticated by all of the
29768       directory authorities. Once enough caches are running this code,
29769       clients will be able to save significant amounts of directory bandwidth
29770       by downloading microdescriptors instead of router descriptors.
29772   o Minor features:
29773     - Make logging resolution configurable with a new LogTimeGranularity
29774       option, and change the default from 1 millisecond to 1 second.
29775       Implements enhancement 1668.
29776     - We log which torrc file we're using on startup. Implements ticket
29777       2444.
29778     - Ordinarily, Tor does not count traffic from private addresses (like
29779       127.0.0.1 or 10.0.0.1) when calculating rate limits or accounting.
29780       There is now a new option, CountPrivateBandwidth, to disable this
29781       behavior. Patch from Daniel Cagara.
29782     - New --enable-static-tor configure option for building Tor as
29783       statically as possible. Idea, general hackery and thoughts from
29784       Alexei Czeskis, John Gilmore, Jacob Appelbaum. Implements ticket
29785       2702.
29786     - If you set the NumCPUs option to 0, Tor will now try to detect how
29787       many CPUs you have. This is the new default behavior.
29788     - Turn on directory request statistics by default and include them in
29789       extra-info descriptors. Don't break if we have no GeoIP database.
29790     - Relays that set "ConnDirectionStatistics 1" write statistics on the
29791       bidirectional use of connections to disk every 24 hours.
29792     - Add a GeoIP file digest to the extra-info descriptor. Implements
29793       enhancement 1883.
29794     - The NodeFamily option -- which let you declare that you want to
29795       consider nodes to be part of a family whether they list themselves
29796       that way or not -- now allows IP address ranges and country codes.
29797     - Add a new 'Heartbeat' log message type to periodically log a message
29798       describing Tor's status at level Notice. This feature is meant for
29799       operators who log at notice, and want to make sure that their Tor
29800       server is still working. Implementation by George Kadianakis.
29802   o Minor bugfixes (on 0.2.2.25-alpha):
29803     - When loading the microdesc journal, remember its current size.
29804       In 0.2.2, this helps prevent the microdesc journal from growing
29805       without limit on authorities (who are the only ones to use it in
29806       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
29807       Fix posted by "cypherpunks."
29808     - The microdesc journal is supposed to get rebuilt only if it is
29809       at least _half_ the length of the store, not _twice_ the length
29810       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
29811     - If as an authority we fail to compute the identity digest of a v3
29812       legacy keypair, warn, and don't use a buffer-full of junk instead.
29813       Bugfix on 0.2.1.1-alpha; fixes bug 3106.
29814     - Authorities now clean their microdesc cache periodically and when
29815       reading from disk initially, not only when adding new descriptors.
29816       This prevents a bug where we could lose microdescriptors. Bugfix
29817       on 0.2.2.6-alpha.
29819   o Minor features (controller):
29820     - Add a new SIGNAL event to the controller interface so that
29821       controllers can be notified when Tor handles a signal. Resolves
29822       issue 1955. Patch by John Brooks.
29823     - Add a new GETINFO option to get total bytes read and written. Patch
29824       from pipe, revised by atagar. Resolves ticket 2345.
29825     - Implement some GETINFO controller fields to provide information about
29826       the Tor process's pid, euid, username, and resource limits.
29828   o Build changes:
29829     - Our build system requires automake 1.6 or later to create the
29830       Makefile.in files. Previously, you could have used 1.4.
29831       This only affects developers and people building Tor from git;
29832       people who build Tor from the source distribution without changing
29833       the Makefile.am files should be fine.
29834     - Our autogen.sh script uses autoreconf to launch autoconf, automake, and
29835       so on. This is more robust against some of the failure modes
29836       associated with running the autotools pieces on their own.
29838   o Minor packaging issues:
29839     - On OpenSUSE, create the /var/run/tor directory on startup if it is not
29840       already created. Patch from Andreas Stieger. Fixes bug 2573.
29842   o Code simplifications and refactoring:
29843     - A major revision to our internal node-selecting and listing logic.
29844       Tor already had at least two major ways to look at the question of
29845       "which Tor servers do we know about": a list of router descriptors,
29846       and a list of entries in the current consensus. With
29847       microdescriptors, we're adding a third. Having so many systems
29848       without an abstraction layer over them was hurting the codebase.
29849       Now, we have a new "node_t" abstraction that presents a consistent
29850       interface to a client's view of a Tor node, and holds (nearly) all
29851       of the mutable state formerly in routerinfo_t and routerstatus_t.
29852     - The helper programs tor-gencert, tor-resolve, and tor-checkkey
29853       no longer link against Libevent: they never used it, but
29854       our library structure used to force them to link it.
29856   o Removed features:
29857     - Remove some old code to work around even older versions of Tor that
29858       used forked processes to handle DNS requests. Such versions of Tor
29859       are no longer in use as servers.
29861   o Documentation fixes:
29862     - Correct a broken faq link in the INSTALL file. Fixes bug 2307.
29863     - Add missing documentation for the authority-related torrc options
29864       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey. Resolves
29865       issue 2379.
29868 Changes in version 0.2.2.25-alpha - 2011-04-29
29869   Tor 0.2.2.25-alpha fixes many bugs: hidden service clients are more
29870   robust, routers no longer overreport their bandwidth, Win7 should crash
29871   a little less, and NEWNYM (as used by Vidalia's "new identity" button)
29872   now prevents hidden service-related activity from being linkable. It
29873   provides more information to Vidalia so you can see if your bridge is
29874   working. Also, 0.2.2.25-alpha revamps the Entry/Exit/ExcludeNodes and
29875   StrictNodes configuration options to make them more reliable, more
29876   understandable, and more regularly applied. If you use those options,
29877   please see the revised documentation for them in the manual page.
29879   o Major bugfixes:
29880     - Relays were publishing grossly inflated bandwidth values because
29881       they were writing their state files wrong--now they write the
29882       correct value. Also, resume reading bandwidth history from the
29883       state file correctly. Fixes bug 2704; bugfix on 0.2.2.23-alpha.
29884     - Improve hidden service robustness: When we find that we have
29885       extended a hidden service's introduction circuit to a relay not
29886       listed as an introduction point in the HS descriptor we currently
29887       have, retry with an introduction point from the current
29888       descriptor. Previously we would just give up. Fixes bugs 1024 and
29889       1930; bugfix on 0.2.0.10-alpha.
29890     - Clients now stop trying to use an exit node associated with a given
29891       destination by TrackHostExits if they fail to reach that exit node.
29892       Fixes bug 2999. Bugfix on 0.2.0.20-rc.
29893     - Fix crash bug on platforms where gmtime and localtime can return
29894       NULL. Windows 7 users were running into this one. Fixes part of bug
29895       2077. Bugfix on all versions of Tor. Found by boboper.
29897   o Security and stability fixes:
29898     - Don't double-free a parsable, but invalid, microdescriptor, even if
29899       it is followed in the blob we're parsing by an unparsable
29900       microdescriptor. Fixes an issue reported in a comment on bug 2954.
29901       Bugfix on 0.2.2.6-alpha; fix by "cypherpunks".
29902     - If the Nickname configuration option isn't given, Tor would pick a
29903       nickname based on the local hostname as the nickname for a relay.
29904       Because nicknames are not very important in today's Tor and the
29905       "Unnamed" nickname has been implemented, this is now problematic
29906       behavior: It leaks information about the hostname without being
29907       useful at all. Fixes bug 2979; bugfix on 0.1.2.2-alpha, which
29908       introduced the Unnamed nickname. Reported by tagnaq.
29909     - Fix an uncommon assertion failure when running with DNSPort under
29910       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
29911     - Avoid linkability based on cached hidden service descriptors: forget
29912       all hidden service descriptors cached as a client when processing a
29913       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
29915   o Major features:
29916     - Export GeoIP information on bridge usage to controllers even if we
29917       have not yet been running for 24 hours. Now Vidalia bridge operators
29918       can get more accurate and immediate feedback about their
29919       contributions to the network.
29921   o Major features and bugfixes (node selection):
29922     - Revise and reconcile the meaning of the ExitNodes, EntryNodes,
29923       ExcludeEntryNodes, ExcludeExitNodes, ExcludeNodes, and StrictNodes
29924       options. Previously, we had been ambiguous in describing what
29925       counted as an "exit" node, and what operations exactly "StrictNodes
29926       0" would permit. This created confusion when people saw nodes built
29927       through unexpected circuits, and made it hard to tell real bugs from
29928       surprises. Now the intended behavior is:
29929         . "Exit", in the context of ExitNodes and ExcludeExitNodes, means
29930           a node that delivers user traffic outside the Tor network.
29931         . "Entry", in the context of EntryNodes, means a node used as the
29932           first hop of a multihop circuit. It doesn't include direct
29933           connections to directory servers.
29934         . "ExcludeNodes" applies to all nodes.
29935         . "StrictNodes" changes the behavior of ExcludeNodes only. When
29936           StrictNodes is set, Tor should avoid all nodes listed in
29937           ExcludeNodes, even when it will make user requests fail. When
29938           StrictNodes is *not* set, then Tor should follow ExcludeNodes
29939           whenever it can, except when it must use an excluded node to
29940           perform self-tests, connect to a hidden service, provide a
29941           hidden service, fulfill a .exit request, upload directory
29942           information, or fetch directory information.
29943       Collectively, the changes to implement the behavior fix bug 1090.
29944     - ExcludeNodes now takes precedence over EntryNodes and ExitNodes: if
29945       a node is listed in both, it's treated as excluded.
29946     - ExcludeNodes now applies to directory nodes -- as a preference if
29947       StrictNodes is 0, or an absolute requirement if StrictNodes is 1.
29948       Don't exclude all the directory authorities and set StrictNodes to 1
29949       unless you really want your Tor to break.
29950     - ExcludeNodes and ExcludeExitNodes now override exit enclaving.
29951     - ExcludeExitNodes now overrides .exit requests.
29952     - We don't use bridges listed in ExcludeNodes.
29953     - When StrictNodes is 1:
29954        . We now apply ExcludeNodes to hidden service introduction points
29955          and to rendezvous points selected by hidden service users. This
29956          can make your hidden service less reliable: use it with caution!
29957        . If we have used ExcludeNodes on ourself, do not try relay
29958          reachability self-tests.
29959        . If we have excluded all the directory authorities, we will not
29960          even try to upload our descriptor if we're a relay.
29961        . Do not honor .exit requests to an excluded node.
29962     - Remove a misfeature that caused us to ignore the Fast/Stable flags
29963       when ExitNodes is set. Bugfix on 0.2.2.7-alpha.
29964     - When the set of permitted nodes changes, we now remove any mappings
29965       introduced via TrackExitHosts to now-excluded nodes. Bugfix on
29966       0.1.0.1-rc.
29967     - We never cannibalize a circuit that had excluded nodes on it, even
29968       if StrictNodes is 0. Bugfix on 0.1.0.1-rc.
29969     - Revert a change where we would be laxer about attaching streams to
29970       circuits than when building the circuits. This was meant to prevent
29971       a set of bugs where streams were never attachable, but our improved
29972       code here should make this unnecessary. Bugfix on 0.2.2.7-alpha.
29973     - Keep track of how many times we launch a new circuit to handle a
29974       given stream. Too many launches could indicate an inconsistency
29975       between our "launch a circuit to handle this stream" logic and our
29976       "attach this stream to one of the available circuits" logic.
29977     - Improve log messages related to excluded nodes.
29979   o Minor bugfixes:
29980     - Fix a spurious warning when moving from a short month to a long
29981       month on relays with month-based BandwidthAccounting. Bugfix on
29982       0.2.2.17-alpha; fixes bug 3020.
29983     - When a client finds that an origin circuit has run out of 16-bit
29984       stream IDs, we now mark it as unusable for new streams. Previously,
29985       we would try to close the entire circuit. Bugfix on 0.0.6.
29986     - Add a forgotten cast that caused a compile warning on OS X 10.6.
29987       Bugfix on 0.2.2.24-alpha.
29988     - Be more careful about reporting the correct error from a failed
29989       connect() system call. Under some circumstances, it was possible to
29990       look at an incorrect value for errno when sending the end reason.
29991       Bugfix on 0.1.0.1-rc.
29992     - Correctly handle an "impossible" overflow cases in connection byte
29993       counting, where we write or read more than 4GB on an edge connection
29994       in a single second. Bugfix on 0.1.2.8-beta.
29995     - Correct the warning displayed when a rendezvous descriptor exceeds
29996       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
29997       John Brooks.
29998     - Clients and hidden services now use HSDir-flagged relays for hidden
29999       service descriptor downloads and uploads even if the relays have no
30000       DirPort set and the client has disabled TunnelDirConns. This will
30001       eventually allow us to give the HSDir flag to relays with no
30002       DirPort. Fixes bug 2722; bugfix on 0.2.1.6-alpha.
30003     - Downgrade "no current certificates known for authority" message from
30004       Notice to Info. Fixes bug 2899; bugfix on 0.2.0.10-alpha.
30005     - Make the SIGNAL DUMP control-port command work on FreeBSD. Fixes bug
30006       2917. Bugfix on 0.1.1.1-alpha.
30007     - Only limit the lengths of single HS descriptors, even when multiple
30008       HS descriptors are published to an HSDir relay in a single POST
30009       operation. Fixes bug 2948; bugfix on 0.2.1.5-alpha. Found by hsdir.
30010     - Write the current time into the LastWritten line in our state file,
30011       rather than the time from the previous write attempt. Also, stop
30012       trying to use a time of -1 in our log statements. Fixes bug 3039;
30013       bugfix on 0.2.2.14-alpha.
30014     - Be more consistent in our treatment of file system paths. "~" should
30015       get expanded to the user's home directory in the Log config option.
30016       Fixes bug 2971; bugfix on 0.2.0.1-alpha, which introduced the
30017       feature for the -f and --DataDirectory options.
30019   o Minor features:
30020     - Make sure every relay writes a state file at least every 12 hours.
30021       Previously, a relay could go for weeks without writing its state
30022       file, and on a crash could lose its bandwidth history, capacity
30023       estimates, client country statistics, and so on. Addresses bug 3012.
30024     - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors.
30025       Clients before 0.2.1.27 didn't handle NOROUTE correctly, but such
30026       clients are already deprecated because of security bugs.
30027     - Don't allow v0 hidden service authorities to act as clients.
30028       Required by fix for bug 3000.
30029     - Ignore SIGNAL NEWNYM commands on relay-only Tor instances. Required
30030       by fix for bug 3000.
30031     - Ensure that no empty [dirreq-](read|write)-history lines are added
30032       to an extrainfo document. Implements ticket 2497.
30034   o Code simplification and refactoring:
30035     - Remove workaround code to handle directory responses from servers
30036       that had bug 539 (they would send HTTP status 503 responses _and_
30037       send a body too). Since only server versions before
30038       0.2.0.16-alpha/0.1.2.19 were affected, there is no longer reason to
30039       keep the workaround in place.
30040     - Remove the old 'fuzzy time' logic. It was supposed to be used for
30041       handling calculations where we have a known amount of clock skew and
30042       an allowed amount of unknown skew. But we only used it in three
30043       places, and we never adjusted the known/unknown skew values. This is
30044       still something we might want to do someday, but if we do, we'll
30045       want to do it differently.
30046     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
30047       None of the cases where we did this before were wrong, but by making
30048       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
30049     - Use GetTempDir to find the proper temporary directory location on
30050       Windows when generating temporary files for the unit tests. Patch by
30051       Gisle Vanem.
30054 Changes in version 0.2.2.24-alpha - 2011-04-08
30055   Tor 0.2.2.24-alpha fixes a variety of bugs, including a big bug that
30056   prevented Tor clients from effectively using "multihomed" bridges,
30057   that is, bridges that listen on multiple ports or IP addresses so users
30058   can continue to use some of their addresses even if others get blocked.
30060   o Major bugfixes:
30061     - Fix a bug where bridge users who configure the non-canonical
30062       address of a bridge automatically switch to its canonical
30063       address. If a bridge listens at more than one address, it should be
30064       able to advertise those addresses independently and any non-blocked
30065       addresses should continue to work. Bugfix on Tor 0.2.0.x. Fixes
30066       bug 2510.
30067     - If you configured Tor to use bridge A, and then quit and
30068       configured Tor to use bridge B instead, it would happily continue
30069       to use bridge A if it's still reachable. While this behavior is
30070       a feature if your goal is connectivity, in some scenarios it's a
30071       dangerous bug. Bugfix on Tor 0.2.0.1-alpha; fixes bug 2511.
30072     - Directory authorities now use data collected from their own
30073       uptime observations when choosing whether to assign the HSDir flag
30074       to relays, instead of trusting the uptime value the relay reports in
30075       its descriptor. This change helps prevent an attack where a small
30076       set of nodes with frequently-changing identity keys can blackhole
30077       a hidden service. (Only authorities need upgrade; others will be
30078       fine once they do.) Bugfix on 0.2.0.10-alpha; fixes bug 2709.
30080   o Minor bugfixes:
30081     - When we restart our relay, we might get a successful connection
30082       from the outside before we've started our reachability tests,
30083       triggering a warning: "ORPort found reachable, but I have no
30084       routerinfo yet. Failing to inform controller of success." This
30085       bug was harmless unless Tor is running under a controller
30086       like Vidalia, in which case the controller would never get a
30087       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
30088       fixes bug 1172.
30089     - Make directory authorities more accurate at recording when
30090       relays that have failed several reachability tests became
30091       unreachable, so we can provide more accuracy at assigning Stable,
30092       Guard, HSDir, etc flags. Bugfix on 0.2.0.6-alpha. Resolves bug 2716.
30093     - Fix an issue that prevented static linking of libevent on
30094       some platforms (notably Linux). Fixes bug 2698; bugfix on
30095       versions 0.2.1.23/0.2.2.8-alpha (the versions introducing
30096       the --with-static-libevent configure option).
30097     - We now ask the other side of a stream (the client or the exit)
30098       for more data on that stream when the amount of queued data on
30099       that stream dips low enough. Previously, we wouldn't ask the
30100       other side for more data until either it sent us more data (which
30101       it wasn't supposed to do if it had exhausted its window!) or we
30102       had completely flushed all our queued data. This flow control fix
30103       should improve throughput. Fixes bug 2756; bugfix on the earliest
30104       released versions of Tor (svn commit r152).
30105     - Avoid a double-mark-for-free warning when failing to attach a
30106       transparent proxy connection. (We thought we had fixed this in
30107       0.2.2.23-alpha, but it turns out our fix was checking the wrong
30108       connection.) Fixes bug 2757; bugfix on 0.1.2.1-alpha (the original
30109       bug) and 0.2.2.23-alpha (the incorrect fix).
30110     - When warning about missing zlib development packages during compile,
30111       give the correct package names. Bugfix on 0.2.0.1-alpha.
30113   o Minor features:
30114     - Directory authorities now log the source of a rejected POSTed v3
30115       networkstatus vote.
30116     - Make compilation with clang possible when using
30117       --enable-gcc-warnings by removing two warning options that clang
30118       hasn't implemented yet and by fixing a few warnings. Implements
30119       ticket 2696.
30120     - When expiring circuits, use microsecond timers rather than
30121       one-second timers. This can avoid an unpleasant situation where a
30122       circuit is launched near the end of one second and expired right
30123       near the beginning of the next, and prevent fluctuations in circuit
30124       timeout values.
30125     - Use computed circuit-build timeouts to decide when to launch
30126       parallel introduction circuits for hidden services. (Previously,
30127       we would retry after 15 seconds.)
30128     - Update to the April 1 2011 Maxmind GeoLite Country database.
30130   o Packaging fixes:
30131     - Create the /var/run/tor directory on startup on OpenSUSE if it is
30132       not already created. Patch from Andreas Stieger. Fixes bug 2573.
30134   o Documentation changes:
30135     - Modernize the doxygen configuration file slightly. Fixes bug 2707.
30136     - Resolve all doxygen warnings except those for missing documentation.
30137       Fixes bug 2705.
30138     - Add doxygen documentation for more functions, fields, and types.
30141 Changes in version 0.2.2.23-alpha - 2011-03-08
30142   Tor 0.2.2.23-alpha lets relays record their bandwidth history so when
30143   they restart they don't lose their bandwidth capacity estimate. This
30144   release also fixes a diverse set of user-facing bugs, ranging from
30145   relays overrunning their rate limiting to clients falsely warning about
30146   clock skew to bridge descriptor leaks by our bridge directory authority.
30148   o Major bugfixes:
30149     - Stop sending a CLOCK_SKEW controller status event whenever
30150       we fetch directory information from a relay that has a wrong clock.
30151       Instead, only inform the controller when it's a trusted authority
30152       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
30153       the rest of bug 1074.
30154     - Fix an assert in parsing router descriptors containing IPv6
30155       addresses. This one took down the directory authorities when
30156       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
30157     - Make the bridge directory authority refuse to answer directory
30158       requests for "all" descriptors. It used to include bridge
30159       descriptors in its answer, which was a major information leak.
30160       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
30161     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
30162       Tor would ignore their RelayBandwidthBurst setting,
30163       potentially using more bandwidth than expected. Bugfix on
30164       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
30165     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
30166       hidserv" in her torrc. The 'hidserv' argument never controlled
30167       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
30169   o Major features:
30170     - Relays now save observed peak bandwidth throughput rates to their
30171       state file (along with total usage, which was already saved)
30172       so that they can determine their correct estimated bandwidth on
30173       restart. Resolves bug 1863, where Tor relays would reset their
30174       estimated bandwidth to 0 after restarting.
30175     - Directory authorities now take changes in router IP address and
30176       ORPort into account when determining router stability. Previously,
30177       if a router changed its IP or ORPort, the authorities would not
30178       treat it as having any downtime for the purposes of stability
30179       calculation, whereas clients would experience downtime since the
30180       change could take a while to propagate to them. Resolves issue 1035.
30181     - Enable Address Space Layout Randomization (ASLR) and Data Execution
30182       Prevention (DEP) by default on Windows to make it harder for
30183       attackers to exploit vulnerabilities. Patch from John Brooks.
30185   o Minor bugfixes (on 0.2.1.x and earlier):
30186     - Fix a rare crash bug that could occur when a client was configured
30187       with a large number of bridges. Fixes bug 2629; bugfix on
30188       0.2.1.2-alpha. Bugfix by trac user "shitlei".
30189     - Avoid a double mark-for-free warning when failing to attach a
30190       transparent proxy connection. Bugfix on 0.1.2.1-alpha. Fixes
30191       bug 2279.
30192     - Correctly detect failure to allocate an OpenSSL BIO. Fixes bug 2378;
30193       found by "cypherpunks". This bug was introduced before the first
30194       Tor release, in svn commit r110.
30195     - Country codes aren't supported in EntryNodes until 0.2.3.x, so
30196       don't mention them in the manpage. Fixes bug 2450; issue
30197       spotted by keb and G-Lo.
30198     - Fix a bug in bandwidth history state parsing that could have been
30199       triggered if a future version of Tor ever changed the timing
30200       granularity at which bandwidth history is measured. Bugfix on
30201       Tor 0.1.1.11-alpha.
30202     - When a relay decides that its DNS is too broken for it to serve
30203       as an exit server, it advertised itself as a non-exit, but
30204       continued to act as an exit. This could create accidental
30205       partitioning opportunities for users. Instead, if a relay is
30206       going to advertise reject *:* as its exit policy, it should
30207       really act with exit policy "reject *:*". Fixes bug 2366.
30208       Bugfix on Tor 0.1.2.5-alpha. Bugfix by user "postman" on trac.
30209     - In the special case where you configure a public exit relay as your
30210       bridge, Tor would be willing to use that exit relay as the last
30211       hop in your circuit as well. Now we fail that circuit instead.
30212       Bugfix on 0.2.0.12-alpha. Fixes bug 2403. Reported by "piebeer".
30213     - Fix a bug with our locking implementation on Windows that couldn't
30214       correctly detect when a file was already locked. Fixes bug 2504,
30215       bugfix on 0.2.1.6-alpha.
30216     - Fix IPv6-related connect() failures on some platforms (BSD, OS X).
30217       Bugfix on 0.2.0.3-alpha; fixes first part of bug 2660. Patch by
30218       "piebeer".
30219     - Set target port in get_interface_address6() correctly. Bugfix
30220       on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug 2660.
30221     - Directory authorities are now more robust to hops back in time
30222       when calculating router stability. Previously, if a run of uptime
30223       or downtime appeared to be negative, the calculation could give
30224       incorrect results. Bugfix on 0.2.0.6-alpha; noticed when fixing
30225       bug 1035.
30226     - Fix an assert that got triggered when using the TestingTorNetwork
30227       configuration option and then issuing a GETINFO config-text control
30228       command. Fixes bug 2250; bugfix on 0.2.1.2-alpha.
30230   o Minor bugfixes (on 0.2.2.x):
30231     - Clients should not weight BadExit nodes as Exits in their node
30232       selection. Similarly, directory authorities should not count BadExit
30233       bandwidth as Exit bandwidth when computing bandwidth-weights.
30234       Bugfix on 0.2.2.10-alpha; fixes bug 2203.
30235     - Correctly clear our dir_read/dir_write history when there is an
30236       error parsing any bw history value from the state file. Bugfix on
30237       Tor 0.2.2.15-alpha.
30238     - Resolve a bug in verifying signatures of directory objects
30239       with digests longer than SHA1. Bugfix on 0.2.2.20-alpha.
30240       Fixes bug 2409. Found by "piebeer".
30241     - Bridge authorities no longer crash on SIGHUP when they try to
30242       publish their relay descriptor to themselves. Fixes bug 2572. Bugfix
30243       on 0.2.2.22-alpha.
30245   o Minor features:
30246     - Log less aggressively about circuit timeout changes, and improve
30247       some other circuit timeout messages. Resolves bug 2004.
30248     - Log a little more clearly about the times at which we're no longer
30249       accepting new connections. Resolves bug 2181.
30250     - Reject attempts at the client side to open connections to private
30251       IP addresses (like 127.0.0.1, 10.0.0.1, and so on) with
30252       a randomly chosen exit node. Attempts to do so are always
30253       ill-defined, generally prevented by exit policies, and usually
30254       in error. This will also help to detect loops in transparent
30255       proxy configurations. You can disable this feature by setting
30256       "ClientRejectInternalAddresses 0" in your torrc.
30257     - Always treat failure to allocate an RSA key as an unrecoverable
30258       allocation error.
30259     - Update to the March 1 2011 Maxmind GeoLite Country database.
30261   o Minor features (log subsystem):
30262     - Add documentation for configuring logging at different severities in
30263       different log domains. We've had this feature since 0.2.1.1-alpha,
30264       but for some reason it never made it into the manpage. Fixes
30265       bug 2215.
30266     - Make it simpler to specify "All log domains except for A and B".
30267       Previously you needed to say "[*,~A,~B]". Now you can just say
30268       "[~A,~B]".
30269     - Add a "LogMessageDomains 1" option to include the domains of log
30270       messages along with the messages. Without this, there's no way
30271       to use log domains without reading the source or doing a lot
30272       of guessing.
30274   o Packaging changes:
30275     - Stop shipping the Tor specs files and development proposal documents
30276       in the tarball. They are now in a separate git repository at
30277       git://git.torproject.org/torspec.git
30280 Changes in version 0.2.1.30 - 2011-02-23
30281   Tor 0.2.1.30 fixes a variety of less critical bugs. The main other
30282   change is a slight tweak to Tor's TLS handshake that makes relays
30283   and bridges that run this new version reachable from Iran again.
30284   We don't expect this tweak will win the arms race long-term, but it
30285   buys us time until we roll out a better solution.
30287   o Major bugfixes:
30288     - Stop sending a CLOCK_SKEW controller status event whenever
30289       we fetch directory information from a relay that has a wrong clock.
30290       Instead, only inform the controller when it's a trusted authority
30291       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
30292       the rest of bug 1074.
30293     - Fix a bounds-checking error that could allow an attacker to
30294       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
30295       Found by "piebeer".
30296     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
30297       Tor would ignore their RelayBandwidthBurst setting,
30298       potentially using more bandwidth than expected. Bugfix on
30299       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
30300     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
30301       hidserv" in her torrc. The 'hidserv' argument never controlled
30302       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
30304   o Minor features:
30305     - Adjust our TLS Diffie-Hellman parameters to match those used by
30306       Apache's mod_ssl.
30307     - Update to the February 1 2011 Maxmind GeoLite Country database.
30309   o Minor bugfixes:
30310     - Check for and reject overly long directory certificates and
30311       directory tokens before they have a chance to hit any assertions.
30312       Bugfix on 0.2.1.28. Found by "doorss".
30313     - Bring the logic that gathers routerinfos and assesses the
30314       acceptability of circuits into line. This prevents a Tor OP from
30315       getting locked in a cycle of choosing its local OR as an exit for a
30316       path (due to a .exit request) and then rejecting the circuit because
30317       its OR is not listed yet. It also prevents Tor clients from using an
30318       OR running in the same instance as an exit (due to a .exit request)
30319       if the OR does not meet the same requirements expected of an OR
30320       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
30322   o Packaging changes:
30323     - Stop shipping the Tor specs files and development proposal documents
30324       in the tarball. They are now in a separate git repository at
30325       git://git.torproject.org/torspec.git
30326     - Do not include Git version tags as though they are SVN tags when
30327       generating a tarball from inside a repository that has switched
30328       between branches. Bugfix on 0.2.1.15-rc; fixes bug 2402.
30331 Changes in version 0.2.2.22-alpha - 2011-01-25
30332   Tor 0.2.2.22-alpha fixes a few more less-critical security issues. The
30333   main other change is a slight tweak to Tor's TLS handshake that makes
30334   relays and bridges that run this new version reachable from Iran again.
30335   We don't expect this tweak will win the arms race long-term, but it
30336   will buy us a bit more time until we roll out a better solution.
30338   o Major bugfixes:
30339     - Fix a bounds-checking error that could allow an attacker to
30340       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
30341       Found by "piebeer".
30342     - Don't assert when changing from bridge to relay or vice versa
30343       via the controller. The assert happened because we didn't properly
30344       initialize our keys in this case. Bugfix on 0.2.2.18-alpha; fixes
30345       bug 2433. Reported by bastik.
30347   o Minor features:
30348     - Adjust our TLS Diffie-Hellman parameters to match those used by
30349       Apache's mod_ssl.
30350     - Provide a log message stating which geoip file we're parsing
30351       instead of just stating that we're parsing the geoip file.
30352       Implements ticket 2432.
30354   o Minor bugfixes:
30355     - Check for and reject overly long directory certificates and
30356       directory tokens before they have a chance to hit any assertions.
30357       Bugfix on 0.2.1.28 / 0.2.2.20-alpha. Found by "doorss".
30360 Changes in version 0.2.2.21-alpha - 2011-01-15
30361   Tor 0.2.2.21-alpha includes all the patches from Tor 0.2.1.29, which
30362   continues our recent code security audit work. The main fix resolves
30363   a remote heap overflow vulnerability that can allow remote code
30364   execution (CVE-2011-0427). Other fixes address a variety of assert
30365   and crash bugs, most of which we think are hard to exploit remotely.
30367   o Major bugfixes (security), also included in 0.2.1.29:
30368     - Fix a heap overflow bug where an adversary could cause heap
30369       corruption. This bug probably allows remote code execution
30370       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
30371       0.1.2.10-rc.
30372     - Prevent a denial-of-service attack by disallowing any
30373       zlib-compressed data whose compression factor is implausibly
30374       high. Fixes part of bug 2324; reported by "doorss".
30375     - Zero out a few more keys in memory before freeing them. Fixes
30376       bug 2384 and part of bug 2385. These key instances found by
30377       "cypherpunks", based on Andrew Case's report about being able
30378       to find sensitive data in Tor's memory space if you have enough
30379       permissions. Bugfix on 0.0.2pre9.
30381   o Major bugfixes (crashes), also included in 0.2.1.29:
30382     - Prevent calls to Libevent from inside Libevent log handlers.
30383       This had potential to cause a nasty set of crashes, especially
30384       if running Libevent with debug logging enabled, and running
30385       Tor with a controller watching for low-severity log messages.
30386       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
30387     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
30388       underflow errors there too. Fixes the other part of bug 2324.
30389     - Fix a bug where we would assert if we ever had a
30390       cached-descriptors.new file (or another file read directly into
30391       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
30392       on 0.2.1.25. Found by doorss.
30393     - Fix some potential asserts and parsing issues with grossly
30394       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
30395       Found by doorss.
30397   o Minor bugfixes (other), also included in 0.2.1.29:
30398     - Fix a bug with handling misformed replies to reverse DNS lookup
30399       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
30400       bug reported by doorss.
30401     - Fix compilation on mingw when a pthreads compatibility library
30402       has been installed. (We don't want to use it, so we shouldn't
30403       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
30404     - Fix a bug where we would declare that we had run out of virtual
30405       addresses when the address space was only half-exhausted. Bugfix
30406       on 0.1.2.1-alpha.
30407     - Correctly handle the case where AutomapHostsOnResolve is set but
30408       no virtual addresses are available. Fixes bug 2328; bugfix on
30409       0.1.2.1-alpha. Bug found by doorss.
30410     - Correctly handle wrapping around when we run out of virtual
30411       address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha.
30413   o Minor features, also included in 0.2.1.29:
30414     - Update to the January 1 2011 Maxmind GeoLite Country database.
30415     - Introduce output size checks on all of our decryption functions.
30417   o Build changes, also included in 0.2.1.29:
30418     - Tor does not build packages correctly with Automake 1.6 and earlier;
30419       added a check to Makefile.am to make sure that we're building with
30420       Automake 1.7 or later.
30421     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
30422       because we built it with a too-old version of automake. Thus that
30423       release broke ./configure --enable-openbsd-malloc, which is popular
30424       among really fast exit relays on Linux.
30426   o Major bugfixes, new in 0.2.2.21-alpha:
30427     - Prevent crash/heap corruption when the cbtnummodes consensus
30428       parameter is set to 0 or large values. Fixes bug 2317; bugfix
30429       on 0.2.2.14-alpha.
30431   o Major features, new in 0.2.2.21-alpha:
30432     - Introduce minimum/maximum values that clients will believe
30433       from the consensus. Now we'll have a better chance to avoid crashes
30434       or worse when a consensus param has a weird value.
30436   o Minor features, new in 0.2.2.21-alpha:
30437     - Make sure to disable DirPort if running as a bridge. DirPorts aren't
30438       used on bridges, and it makes bridge scanning somewhat easier.
30439     - If writing the state file to disk fails, wait up to an hour before
30440       retrying again, rather than trying again each second. Fixes bug
30441       2346; bugfix on Tor 0.1.1.3-alpha.
30442     - Make Libevent log messages get delivered to controllers later,
30443       and not from inside the Libevent log handler. This prevents unsafe
30444       reentrant Libevent calls while still letting the log messages
30445       get through.
30446     - Detect platforms that brokenly use a signed size_t, and refuse to
30447       build there. Found and analyzed by doorss and rransom.
30448     - Fix a bunch of compile warnings revealed by mingw with gcc 4.5.
30449       Resolves bug 2314.
30451   o Minor bugfixes, new in 0.2.2.21-alpha:
30452     - Handle SOCKS messages longer than 128 bytes long correctly, rather
30453       than waiting forever for them to finish. Fixes bug 2330; bugfix
30454       on 0.2.0.16-alpha. Found by doorss.
30455     - Add assertions to check for overflow in arguments to
30456       base32_encode() and base32_decode(); fix a signed-unsigned
30457       comparison there too. These bugs are not actually reachable in Tor,
30458       but it's good to prevent future errors too. Found by doorss.
30459     - Correctly detect failures to create DNS requests when using Libevent
30460       versions before v2. (Before Libevent 2, we used our own evdns
30461       implementation. Its return values for Libevent's evdns_resolve_*()
30462       functions are not consistent with those from Libevent.) Fixes bug
30463       2363; bugfix on 0.2.2.6-alpha. Found by "lodger".
30465   o Documentation, new in 0.2.2.21-alpha:
30466     - Document the default socks host and port (127.0.0.1:9050) for
30467       tor-resolve.
30470 Changes in version 0.2.1.29 - 2011-01-15
30471   Tor 0.2.1.29 continues our recent code security audit work. The main
30472   fix resolves a remote heap overflow vulnerability that can allow remote
30473   code execution. Other fixes address a variety of assert and crash bugs,
30474   most of which we think are hard to exploit remotely.
30476   o Major bugfixes (security):
30477     - Fix a heap overflow bug where an adversary could cause heap
30478       corruption. This bug probably allows remote code execution
30479       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
30480       0.1.2.10-rc.
30481     - Prevent a denial-of-service attack by disallowing any
30482       zlib-compressed data whose compression factor is implausibly
30483       high. Fixes part of bug 2324; reported by "doorss".
30484     - Zero out a few more keys in memory before freeing them. Fixes
30485       bug 2384 and part of bug 2385. These key instances found by
30486       "cypherpunks", based on Andrew Case's report about being able
30487       to find sensitive data in Tor's memory space if you have enough
30488       permissions. Bugfix on 0.0.2pre9.
30490   o Major bugfixes (crashes):
30491     - Prevent calls to Libevent from inside Libevent log handlers.
30492       This had potential to cause a nasty set of crashes, especially
30493       if running Libevent with debug logging enabled, and running
30494       Tor with a controller watching for low-severity log messages.
30495       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
30496     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
30497       underflow errors there too. Fixes the other part of bug 2324.
30498     - Fix a bug where we would assert if we ever had a
30499       cached-descriptors.new file (or another file read directly into
30500       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
30501       on 0.2.1.25. Found by doorss.
30502     - Fix some potential asserts and parsing issues with grossly
30503       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
30504       Found by doorss.
30506   o Minor bugfixes (other):
30507     - Fix a bug with handling misformed replies to reverse DNS lookup
30508       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
30509       bug reported by doorss.
30510     - Fix compilation on mingw when a pthreads compatibility library
30511       has been installed. (We don't want to use it, so we shouldn't
30512       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
30513     - Fix a bug where we would declare that we had run out of virtual
30514       addresses when the address space was only half-exhausted. Bugfix
30515       on 0.1.2.1-alpha.
30516     - Correctly handle the case where AutomapHostsOnResolve is set but
30517       no virtual addresses are available. Fixes bug 2328; bugfix on
30518       0.1.2.1-alpha. Bug found by doorss.
30519     - Correctly handle wrapping around to when we run out of virtual
30520       address space. Found by cypherpunks, bugfix on 0.2.0.5-alpha.
30521     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
30522       because we built it with a too-old version of automake. Thus that
30523       release broke ./configure --enable-openbsd-malloc, which is popular
30524       among really fast exit relays on Linux.
30526   o Minor features:
30527     - Update to the January 1 2011 Maxmind GeoLite Country database.
30528     - Introduce output size checks on all of our decryption functions.
30530   o Build changes:
30531     - Tor does not build packages correctly with Automake 1.6 and earlier;
30532       added a check to Makefile.am to make sure that we're building with
30533       Automake 1.7 or later.
30536 Changes in version 0.2.2.20-alpha - 2010-12-17
30537   Tor 0.2.2.20-alpha does some code cleanup to reduce the risk of remotely
30538   exploitable bugs. We also fix a variety of other significant bugs,
30539   change the IP address for one of our directory authorities, and update
30540   the minimum version that Tor relays must run to join the network.
30542   o Major bugfixes:
30543     - Fix a remotely exploitable bug that could be used to crash instances
30544       of Tor remotely by overflowing on the heap. Remote-code execution
30545       hasn't been confirmed, but can't be ruled out. Everyone should
30546       upgrade. Bugfix on the 0.1.1 series and later.
30547     - Fix a bug that could break accounting on 64-bit systems with large
30548       time_t values, making them hibernate for impossibly long intervals.
30549       Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper.
30550     - Fix a logic error in directory_fetches_from_authorities() that
30551       would cause all _non_-exits refusing single-hop-like circuits
30552       to fetch from authorities, when we wanted to have _exits_ fetch
30553       from authorities. Fixes more of 2097. Bugfix on 0.2.2.16-alpha;
30554       fix by boboper.
30555     - Fix a stream fairness bug that would cause newer streams on a given
30556       circuit to get preference when reading bytes from the origin or
30557       destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was
30558       introduced before the first Tor release, in svn revision r152.
30560   o Directory authority changes:
30561     - Change IP address and ports for gabelmoo (v3 directory authority).
30563   o Minor bugfixes:
30564     - Avoid crashes when AccountingMax is set on clients. Fixes bug 2235.
30565       Bugfix on 0.2.2.18-alpha. Diagnosed by boboper.
30566     - Fix an off-by-one error in calculating some controller command
30567       argument lengths. Fortunately, this mistake is harmless since
30568       the controller code does redundant NUL termination too. Found by
30569       boboper. Bugfix on 0.1.1.1-alpha.
30570     - Do not dereference NULL if a bridge fails to build its
30571       extra-info descriptor. Found by an anonymous commenter on
30572       Trac. Bugfix on 0.2.2.19-alpha.
30574   o Minor features:
30575     - Update to the December 1 2010 Maxmind GeoLite Country database.
30576     - Directory authorities now reject relays running any versions of
30577       Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
30578       known bugs that keep RELAY_EARLY cells from working on rendezvous
30579       circuits. Followup to fix for bug 2081.
30580     - Directory authorities now reject relays running any version of Tor
30581       older than 0.2.0.26-rc. That version is the earliest that fetches
30582       current directory information correctly. Fixes bug 2156.
30583     - Report only the top 10 ports in exit-port stats in order not to
30584       exceed the maximum extra-info descriptor length of 50 KB. Implements
30585       task 2196.
30588 Changes in version 0.2.1.28 - 2010-12-17
30589   Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely
30590   exploitable bugs. We also took this opportunity to change the IP address
30591   for one of our directory authorities, and to update the geoip database
30592   we ship.
30594   o Major bugfixes:
30595     - Fix a remotely exploitable bug that could be used to crash instances
30596       of Tor remotely by overflowing on the heap. Remote-code execution
30597       hasn't been confirmed, but can't be ruled out. Everyone should
30598       upgrade. Bugfix on the 0.1.1 series and later.
30600   o Directory authority changes:
30601     - Change IP address and ports for gabelmoo (v3 directory authority).
30603   o Minor features:
30604     - Update to the December 1 2010 Maxmind GeoLite Country database.
30607 Changes in version 0.2.1.27 - 2010-11-23
30608   Yet another OpenSSL security patch broke its compatibility with Tor:
30609   Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We
30610   also took this opportunity to fix several crash bugs, integrate a new
30611   directory authority, and update the bundled GeoIP database.
30613   o Major bugfixes:
30614     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
30615       No longer set the tlsext_host_name extension on server SSL objects;
30616       but continue to set it on client SSL objects. Our goal in setting
30617       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
30618       bugfix on 0.2.1.1-alpha.
30619     - Do not log messages to the controller while shrinking buffer
30620       freelists. Doing so would sometimes make the controller connection
30621       try to allocate a buffer chunk, which would mess up the internals
30622       of the freelist and cause an assertion failure. Fixes bug 1125;
30623       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
30624     - Learn our external IP address when we're a relay or bridge, even if
30625       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
30626       where we introduced bridge relays that don't need to publish to
30627       be useful. Fixes bug 2050.
30628     - Do even more to reject (and not just ignore) annotations on
30629       router descriptors received anywhere but from the cache. Previously
30630       we would ignore such annotations at first, but cache them to disk
30631       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
30632     - When you're using bridges and your network goes away and your
30633       bridges get marked as down, recover when you attempt a new socks
30634       connection (if the network is back), rather than waiting up to an
30635       hour to try fetching new descriptors for your bridges. Bugfix on
30636       0.2.0.3-alpha; fixes bug 1981.
30638   o Major features:
30639     - Move to the November 2010 Maxmind GeoLite country db (rather
30640       than the June 2009 ip-to-country GeoIP db) for our statistics that
30641       count how many users relays are seeing from each country. Now we'll
30642       have more accurate data, especially for many African countries.
30644   o New directory authorities:
30645     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
30646       authority.
30648   o Minor bugfixes:
30649     - Fix an assertion failure that could occur in directory caches or
30650       bridge users when using a very short voting interval on a testing
30651       network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on
30652       0.2.0.8-alpha.
30653     - Enforce multiplicity rules when parsing annotations. Bugfix on
30654       0.2.0.8-alpha. Found by piebeer.
30655     - Allow handshaking OR connections to take a full KeepalivePeriod
30656       seconds to handshake. Previously, we would close them after
30657       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
30658       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
30659       for analysis help.
30660     - When building with --enable-gcc-warnings on OpenBSD, disable
30661       warnings in system headers. This makes --enable-gcc-warnings
30662       pass on OpenBSD 4.8.
30664   o Minor features:
30665     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
30666       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
30667       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
30668       Servers can start sending this code when enough clients recognize
30669       it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793.
30670     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
30671       Patch from mingw-san.
30673   o Removed files:
30674     - Remove the old debian/ directory from the main Tor distribution.
30675       The official Tor-for-debian git repository lives at the URL
30676       https://git.torproject.org/debian/tor.git
30677     - Stop shipping the old doc/website/ directory in the tarball. We
30678       changed the website format in late 2010, and what we shipped in
30679       0.2.1.26 really wasn't that useful anyway.
30682 Changes in version 0.2.2.19-alpha - 2010-11-22
30683   Yet another OpenSSL security patch broke its compatibility with Tor:
30684   Tor 0.2.2.19-alpha makes relays work with OpenSSL 0.9.8p and 1.0.0.b.
30686   o Major bugfixes:
30687     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
30688       No longer set the tlsext_host_name extension on server SSL objects;
30689       but continue to set it on client SSL objects. Our goal in setting
30690       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
30691       bugfix on 0.2.1.1-alpha.
30693   o Minor bugfixes:
30694     - Try harder not to exceed the maximum length of 50 KB when writing
30695       statistics to extra-info descriptors. This bug was triggered by very
30696       fast relays reporting exit-port, entry, and dirreq statistics.
30697       Reported by Olaf Selke. Bugfix on 0.2.2.1-alpha. Fixes bug 2183.
30698     - Publish a router descriptor even if generating an extra-info
30699       descriptor fails. Previously we would not publish a router
30700       descriptor without an extra-info descriptor; this can cause fast
30701       exit relays collecting exit-port statistics to drop from the
30702       consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195.
30705 Changes in version 0.2.2.18-alpha - 2010-11-16
30706   Tor 0.2.2.18-alpha fixes several crash bugs that have been nagging
30707   us lately, makes unpublished bridge relays able to detect their IP
30708   address, and fixes a wide variety of other bugs to get us much closer
30709   to a stable release.
30711   o Major bugfixes:
30712     - Do even more to reject (and not just ignore) annotations on
30713       router descriptors received anywhere but from the cache. Previously
30714       we would ignore such annotations at first, but cache them to disk
30715       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
30716     - Do not log messages to the controller while shrinking buffer
30717       freelists. Doing so would sometimes make the controller connection
30718       try to allocate a buffer chunk, which would mess up the internals
30719       of the freelist and cause an assertion failure. Fixes bug 1125;
30720       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
30721     - Learn our external IP address when we're a relay or bridge, even if
30722       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
30723       where we introduced bridge relays that don't need to publish to
30724       be useful. Fixes bug 2050.
30725     - Maintain separate TLS contexts and certificates for incoming and
30726       outgoing connections in bridge relays. Previously we would use the
30727       same TLS contexts and certs for incoming and outgoing connections.
30728       Bugfix on 0.2.0.3-alpha; addresses bug 988.
30729     - Maintain separate identity keys for incoming and outgoing TLS
30730       contexts in bridge relays. Previously we would use the same
30731       identity keys for incoming and outgoing TLS contexts. Bugfix on
30732       0.2.0.3-alpha; addresses the other half of bug 988.
30733     - Avoid an assertion failure when we as an authority receive a
30734       duplicate upload of a router descriptor that we already have,
30735       but which we previously considered an obsolete descriptor.
30736       Fixes another case of bug 1776. Bugfix on 0.2.2.16-alpha.
30737     - Avoid a crash bug triggered by looking at a dangling pointer while
30738       setting the network status consensus. Found by Robert Ransom.
30739       Bugfix on 0.2.2.17-alpha. Fixes bug 2097.
30740     - Fix a logic error where servers that _didn't_ act as exits would
30741       try to keep their server lists more aggressively up to date than
30742       exits, when it was supposed to be the other way around. Bugfix
30743       on 0.2.2.17-alpha.
30745   o Minor bugfixes (on Tor 0.2.1.x and earlier):
30746     - When we're trying to guess whether we know our IP address as
30747       a relay, we would log various ways that we failed to guess
30748       our address, but never log that we ended up guessing it
30749       successfully. Now add a log line to help confused and anxious
30750       relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534.
30751     - Bring the logic that gathers routerinfos and assesses the
30752       acceptability of circuits into line. This prevents a Tor OP from
30753       getting locked in a cycle of choosing its local OR as an exit for a
30754       path (due to a .exit request) and then rejecting the circuit because
30755       its OR is not listed yet. It also prevents Tor clients from using an
30756       OR running in the same instance as an exit (due to a .exit request)
30757       if the OR does not meet the same requirements expected of an OR
30758       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
30759     - Correctly describe errors that occur when generating a TLS object.
30760       Previously we would attribute them to a failure while generating a
30761       TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes
30762       bug 1994.
30763     - Enforce multiplicity rules when parsing annotations. Bugfix on
30764       0.2.0.8-alpha. Found by piebeer.
30765     - Fix warnings that newer versions of autoconf produced during
30766       ./autogen.sh. These warnings appear to be harmless in our case,
30767       but they were extremely verbose. Fixes bug 2020.
30769   o Minor bugfixes (on Tor 0.2.2.x):
30770     - Enable protection of small arrays whenever we build with gcc
30771       hardening features, not only when also building with warnings
30772       enabled. Fixes bug 2031; bugfix on 0.2.2.14-alpha. Reported by keb.
30774   o Minor features:
30775     - Make hidden services work better in private Tor networks by not
30776       requiring any uptime to join the hidden service descriptor
30777       DHT. Implements ticket 2088.
30778     - Rate-limit the "your application is giving Tor only an IP address"
30779       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
30780     - When AllowSingleHopExits is set, print a warning to explain to the
30781       relay operator why most clients are avoiding her relay.
30782     - Update to the November 1 2010 Maxmind GeoLite Country database.
30784   o Code simplifications and refactoring:
30785     - When we fixed bug 1038 we had to put in a restriction not to send
30786       RELAY_EARLY cells on rend circuits. This was necessary as long
30787       as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
30788       active. Now remove this obsolete check. Resolves bug 2081.
30789     - Some options used different conventions for uppercasing of acronyms
30790       when comparing manpage and source. Fix those in favor of the
30791       manpage, as it makes sense to capitalize acronyms.
30792     - Remove the torrc.complete file. It hasn't been kept up to date
30793       and users will have better luck checking out the manpage.
30794     - Remove the obsolete "NoPublish" option; it has been flagged
30795       as obsolete and has produced a warning since 0.1.1.18-rc.
30796     - Remove everything related to building the expert bundle for OS X.
30797       It has confused many users, doesn't work right on OS X 10.6,
30798       and is hard to get rid of once installed. Resolves bug 1274.
30801 Changes in version 0.2.2.17-alpha - 2010-09-30
30802   Tor 0.2.2.17-alpha introduces a feature to make it harder for clients
30803   to use one-hop circuits (which can put the exit relays at higher risk,
30804   plus unbalance the network); fixes a big bug in bandwidth accounting
30805   for relays that want to limit their monthly bandwidth use; fixes a
30806   big pile of bugs in how clients tolerate temporary network failure;
30807   and makes our adaptive circuit build timeout feature (which improves
30808   client performance if your network is fast while not breaking things
30809   if your network is slow) better handle bad networks.
30811   o Major features:
30812     - Exit relays now try harder to block exit attempts from unknown
30813       relays, to make it harder for people to use them as one-hop proxies
30814       a la tortunnel. Controlled by the refuseunknownexits consensus
30815       parameter (currently enabled), or you can override it on your
30816       relay with the RefuseUnknownExits torrc option. Resolves bug 1751.
30818   o Major bugfixes (0.2.1.x and earlier):
30819     - Fix a bug in bandwidth accounting that could make us use twice
30820       the intended bandwidth when our interval start changes due to
30821       daylight saving time. Now we tolerate skew in stored vs computed
30822       interval starts: if the start of the period changes by no more than
30823       50% of the period's duration, we remember bytes that we transferred
30824       in the old period. Fixes bug 1511; bugfix on 0.0.9pre5.
30825     - Always search the Windows system directory for system DLLs, and
30826       nowhere else. Bugfix on 0.1.1.23; fixes bug 1954.
30827     - When you're using bridges and your network goes away and your
30828       bridges get marked as down, recover when you attempt a new socks
30829       connection (if the network is back), rather than waiting up to an
30830       hour to try fetching new descriptors for your bridges. Bugfix on
30831       0.2.0.3-alpha; fixes bug 1981.
30833   o Major bugfixes (on 0.2.2.x):
30834     - Fix compilation on Windows. Bugfix on 0.2.2.16-alpha; related to
30835       bug 1797.
30836     - Fix a segfault that could happen when operating a bridge relay with
30837       no GeoIP database set. Fixes bug 1964; bugfix on 0.2.2.15-alpha.
30838     - The consensus bandwidth-weights (used by clients to choose fast
30839       relays) entered an unexpected edge case in September where
30840       Exits were much scarcer than Guards, resulting in bad weight
30841       recommendations. Now we compute them using new constraints that
30842       should succeed in all cases. Also alter directory authorities to
30843       not include the bandwidth-weights line if they fail to produce
30844       valid values. Fixes bug 1952; bugfix on 0.2.2.10-alpha.
30845     - When weighting bridges during path selection, we used to trust
30846       the bandwidths they provided in their descriptor, only capping them
30847       at 10MB/s. This turned out to be problematic for two reasons:
30848       Bridges could claim to handle a lot more traffic then they
30849       actually would, thus making more clients pick them and have a
30850       pretty effective DoS attack. The other issue is that new bridges
30851       that might not have a good estimate for their bw capacity yet
30852       would not get used at all unless no other bridges are available
30853       to a client. Fixes bug 1912; bugfix on 0.2.2.7-alpha.
30855   o Major bugfixes (on the circuit build timeout feature, 0.2.2.x):
30856     - Ignore cannibalized circuits when recording circuit build times.
30857       This should provide for a minor performance improvement for hidden
30858       service users using 0.2.2.14-alpha, and should remove two spurious
30859       notice log messages. Bugfix on 0.2.2.14-alpha; fixes bug 1740.
30860     - Simplify the logic that causes us to decide if the network is
30861       unavailable for purposes of recording circuit build times. If we
30862       receive no cells whatsoever for the entire duration of a circuit's
30863       full measured lifetime, the network is probably down. Also ignore
30864       one-hop directory fetching circuit timeouts when calculating our
30865       circuit build times. These changes should hopefully reduce the
30866       cases where we see ridiculous circuit build timeouts for people
30867       with spotty wireless connections. Fixes part of bug 1772; bugfix
30868       on 0.2.2.2-alpha.
30869     - Prevent the circuit build timeout from becoming larger than
30870       the maximum build time we have ever seen. Also, prevent the time
30871       period for measurement circuits from becoming larger than twice that
30872       value. Fixes the other part of bug 1772; bugfix on 0.2.2.2-alpha.
30874   o Minor features:
30875     - When we run out of directory information such that we can't build
30876       circuits, but then get enough that we can build circuits, log when
30877       we actually construct a circuit, so the user has a better chance of
30878       knowing what's going on. Fixes bug 1362.
30879     - Be more generous with how much bandwidth we'd use up (with
30880       accounting enabled) before entering "soft hibernation". Previously,
30881       we'd refuse new connections and circuits once we'd used up 95% of
30882       our allotment. Now, we use up 95% of our allotment, AND make sure
30883       that we have no more than 500MB (or 3 hours of expected traffic,
30884       whichever is lower) remaining before we enter soft hibernation.
30885     - If we've configured EntryNodes and our network goes away and/or all
30886       our entrynodes get marked down, optimistically retry them all when
30887       a new socks application request appears. Fixes bug 1882.
30888     - Add some more defensive programming for architectures that can't
30889       handle unaligned integer accesses. We don't know of any actual bugs
30890       right now, but that's the best time to fix them. Fixes bug 1943.
30891     - Support line continuations in the torrc config file. If a line
30892       ends with a single backslash character, the newline is ignored, and
30893       the configuration value is treated as continuing on the next line.
30894       Resolves bug 1929.
30896   o Minor bugfixes (on 0.2.1.x and earlier):
30897     - For bandwidth accounting, calculate our expected bandwidth rate
30898       based on the time during which we were active and not in
30899       soft-hibernation during the last interval. Previously, we were
30900       also considering the time spent in soft-hibernation. If this
30901       was a long time, we would wind up underestimating our bandwidth
30902       by a lot, and skewing our wakeup time towards the start of the
30903       accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.
30905   o Minor bugfixes (on 0.2.2.x):
30906     - Resume generating CIRC FAILED REASON=TIMEOUT control port messages,
30907       which were disabled by the circuit build timeout changes in
30908       0.2.2.14-alpha. Bugfix on 0.2.2.14-alpha; fixes bug 1739.
30909     - Make sure we don't warn about missing bandwidth weights when
30910       choosing bridges or other relays not in the consensus. Bugfix on
30911       0.2.2.10-alpha; fixes bug 1805.
30912     - In our logs, do not double-report signatures from unrecognized
30913       authorities both as "from unknown authority" and "not
30914       present". Fixes bug 1956, bugfix on 0.2.2.16-alpha.
30917 Changes in version 0.2.2.16-alpha - 2010-09-17
30918   Tor 0.2.2.16-alpha fixes a variety of old stream fairness bugs (most
30919   evident at exit relays), and also continues to resolve all the little
30920   bugs that have been filling up trac lately.
30922   o Major bugfixes (stream-level fairness):
30923     - When receiving a circuit-level SENDME for a blocked circuit, try
30924       to package cells fairly from all the streams that had previously
30925       been blocked on that circuit. Previously, we had started with the
30926       oldest stream, and allowed each stream to potentially exhaust
30927       the circuit's package window. This gave older streams on any
30928       given circuit priority over newer ones. Fixes bug 1937. Detected
30929       originally by Camilo Viecco. This bug was introduced before the
30930       first Tor release, in svn commit r152: it is the new winner of
30931       the longest-lived bug prize.
30932     - When the exit relay got a circuit-level sendme cell, it started
30933       reading on the exit streams, even if had 500 cells queued in the
30934       circuit queue already, so the circuit queue just grew and grew in
30935       some cases. We fix this by not re-enabling reading on receipt of a
30936       sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix
30937       on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by
30938       "yetonetime".
30939     - Newly created streams were allowed to read cells onto circuits,
30940       even if the circuit's cell queue was blocked and waiting to drain.
30941       This created potential unfairness, as older streams would be
30942       blocked, but newer streams would gladly fill the queue completely.
30943       We add code to detect this situation and prevent any stream from
30944       getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially
30945       fixes bug 1298.
30947   o Minor features:
30948     - Update to the September 1 2010 Maxmind GeoLite Country database.
30949     - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is
30950       not. This would lead to a cookie that is still not group readable.
30951       Closes bug 1843. Suggested by katmagic.
30952     - When logging a rate-limited warning, we now mention how many messages
30953       got suppressed since the last warning.
30954     - Add new "perconnbwrate" and "perconnbwburst" consensus params to
30955       do individual connection-level rate limiting of clients. The torrc
30956       config options with the same names trump the consensus params, if
30957       both are present. Replaces the old "bwconnrate" and "bwconnburst"
30958       consensus params which were broken from 0.2.2.7-alpha through
30959       0.2.2.14-alpha. Closes bug 1947.
30960     - When a router changes IP address or port, authorities now launch
30961       a new reachability test for it. Implements ticket 1899.
30962     - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad,
30963       2 no signature, 4 required" messages about consensus signatures
30964       easier to read, and make sure they get logged at the same severity
30965       as the messages explaining which keys are which. Fixes bug 1290.
30966     - Don't warn when we have a consensus that we can't verify because
30967       of missing certificates, unless those certificates are ones
30968       that we have been trying and failing to download. Fixes bug 1145.
30969     - If you configure your bridge with a known identity fingerprint,
30970       and the bridge authority is unreachable (as it is in at least
30971       one country now), fall back to directly requesting the descriptor
30972       from the bridge. Finishes the feature started in 0.2.0.10-alpha;
30973       closes bug 1138.
30974     - When building with --enable-gcc-warnings on OpenBSD, disable
30975       warnings in system headers. This makes --enable-gcc-warnings
30976       pass on OpenBSD 4.8.
30978   o Minor bugfixes (on 0.2.1.x and earlier):
30979     - Authorities will now attempt to download consensuses if their
30980       own efforts to make a live consensus have failed. This change
30981       means authorities that restart will fetch a valid consensus, and
30982       it means authorities that didn't agree with the current consensus
30983       will still fetch and serve it if it has enough signatures. Bugfix
30984       on 0.2.0.9-alpha; fixes bug 1300.
30985     - Ensure DNS requests launched by "RESOLVE" commands from the
30986       controller respect the __LeaveStreamsUnattached setconf options. The
30987       same goes for requests launched via DNSPort or transparent
30988       proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525.
30989     - Allow handshaking OR connections to take a full KeepalivePeriod
30990       seconds to handshake. Previously, we would close them after
30991       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
30992       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
30993       for analysis help.
30994     - Rate-limit "Failed to hand off onionskin" warnings.
30995     - Never relay a cell for a circuit we have already destroyed.
30996       Between marking a circuit as closeable and finally closing it,
30997       it may have been possible for a few queued cells to get relayed,
30998       even though they would have been immediately dropped by the next
30999       OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha.
31000     - Never queue a cell for a circuit that's already been marked
31001       for close.
31002     - Never vote for a server as "Running" if we have a descriptor for
31003       it claiming to be hibernating, and that descriptor was published
31004       more recently than our last contact with the server. Bugfix on
31005       0.2.0.3-alpha; fixes bug 911.
31006     - Squash a compile warning on OpenBSD. Reported by Tas; fixes
31007       bug 1848.
31009   o Minor bugfixes (on 0.2.2.x):
31010     - Fix a regression introduced in 0.2.2.7-alpha that marked relays
31011       down if a directory fetch fails and you've configured either
31012       bridges or EntryNodes. The intent was to mark the relay as down
31013       _unless_ you're using bridges or EntryNodes, since if you are
31014       then you could quickly run out of entry points.
31015     - Fix the Windows directory-listing code. A bug introduced in
31016       0.2.2.14-alpha could make Windows directory servers forget to load
31017       some of their cached v2 networkstatus files.
31018     - Really allow clients to use relays as bridges. Fixes bug 1776;
31019       bugfix on 0.2.2.15-alpha.
31020     - Demote a warn to info that happens when the CellStatistics option
31021       was just enabled. Bugfix on 0.2.2.15-alpha; fixes bug 1921.
31022       Reported by Moritz Bartl.
31023     - On Windows, build correctly either with or without Unicode support.
31024       This is necessary so that Tor can support fringe platforms like
31025       Windows 98 (which has no Unicode), or Windows CE (which has no
31026       non-Unicode). Bugfix on 0.2.2.14-alpha; fixes bug 1797.
31028   o Testing
31029     - Add a unit test for cross-platform directory-listing code.
31032 Changes in version 0.2.2.15-alpha - 2010-08-18
31033   Tor 0.2.2.15-alpha fixes a big bug in hidden service availability,
31034   fixes a variety of other bugs that were preventing performance
31035   experiments from moving forward, fixes several bothersome memory leaks,
31036   and generally closes a lot of smaller bugs that have been filling up
31037   trac lately.
31039   o Major bugfixes:
31040     - Stop assigning the HSDir flag to relays that disable their
31041       DirPort (and thus will refuse to answer directory requests). This
31042       fix should dramatically improve the reachability of hidden services:
31043       hidden services and hidden service clients pick six HSDir relays
31044       to store and retrieve the hidden service descriptor, and currently
31045       about half of the HSDir relays will refuse to work. Bugfix on
31046       0.2.0.10-alpha; fixes part of bug 1693.
31047     - The PerConnBWRate and Burst config options, along with the
31048       bwconnrate and bwconnburst consensus params, initialized each conn's
31049       token bucket values only when the connection is established. Now we
31050       update them if the config options change, and update them every time
31051       we get a new consensus. Otherwise we can encounter an ugly edge
31052       case where we initialize an OR conn to client-level bandwidth,
31053       but then later the relay joins the consensus and we leave it
31054       throttled. Bugfix on 0.2.2.7-alpha; fixes bug 1830.
31055     - Fix a regression that caused Tor to rebind its ports if it receives
31056       SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919.
31058   o Major features:
31059     - Lower the maximum weighted-fractional-uptime cutoff to 98%. This
31060       should give us approximately 40-50% more Guard-flagged nodes,
31061       improving the anonymity the Tor network can provide and also
31062       decreasing the dropoff in throughput that relays experience when
31063       they first get the Guard flag.
31064     - Allow enabling or disabling the *Statistics config options while
31065       Tor is running.
31067   o Minor features:
31068     - Update to the August 1 2010 Maxmind GeoLite Country database.
31069     - Have the controller interface give a more useful message than
31070       "Internal Error" in response to failed GETINFO requests.
31071     - Warn when the same option is provided more than once in a torrc
31072       file, on the command line, or in a single SETCONF statement, and
31073       the option is one that only accepts a single line. Closes bug 1384.
31074     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
31075       Patch from mingw-san.
31076     - Add support for the country code "{??}" in torrc options like
31077       ExcludeNodes, to indicate all routers of unknown country. Closes
31078       bug 1094.
31079     - Relays report the number of bytes spent on answering directory
31080       requests in extra-info descriptors similar to {read,write}-history.
31081       Implements enhancement 1790.
31083   o Minor bugfixes (on 0.2.1.x and earlier):
31084     - Complain if PublishServerDescriptor is given multiple arguments that
31085       include 0 or 1. This configuration will be rejected in the future.
31086       Bugfix on 0.2.0.1-alpha; closes bug 1107.
31087     - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration.
31088       Bugfix on 0.2.0.13-alpha; closes bug 928.
31089     - Change "Application request when we're believed to be offline."
31090       notice to "Application request when we haven't used client
31091       functionality lately.", to clarify that it's not an error. Bugfix
31092       on 0.0.9.3; fixes bug 1222.
31093     - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl"
31094       would return "551 Internal error" rather than "552 Unrecognized key
31095       ns/asdaskljkl". Bugfix on 0.1.2.3-alpha.
31096     - Users can't configure a regular relay to be their bridge. It didn't
31097       work because when Tor fetched the bridge descriptor, it found
31098       that it already had it, and didn't realize that the purpose of the
31099       descriptor had changed. Now we replace routers with a purpose other
31100       than bridge with bridge descriptors when fetching them. Bugfix on
31101       0.1.1.9-alpha. Bug 1776 not yet fixed because now we immediately
31102       refetch the descriptor with router purpose 'general', disabling
31103       it as a bridge.
31104     - Fix a rare bug in rend_fn unit tests: we would fail a test when
31105       a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix
31106       on 0.2.0.10-alpha; fixes bug 1808.
31107     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
31108       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
31109       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
31110       Servers can start sending this code when enough clients recognize
31111       it. Also update the spec to reflect this new reason. Bugfix on
31112       0.1.0.1-rc; fixes part of bug 1793.
31113     - Delay geoip stats collection by bridges for 6 hours, not 2 hours,
31114       when we switch from being a public relay to a bridge. Otherwise
31115       there will still be clients that see the relay in their consensus,
31116       and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes bug
31117       932 even more.
31118     - Instead of giving an assertion failure on an internal mismatch
31119       on estimated freelist size, just log a BUG warning and try later.
31120       Mitigates but does not fix bug 1125.
31121     - Fix an assertion failure that could occur in caches or bridge users
31122       when using a very short voting interval on a testing network.
31123       Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 0.2.0.8-alpha.
31125   o Minor bugfixes (on 0.2.2.x):
31126     - Alter directory authorities to always consider Exit-flagged nodes
31127       as potential Guard nodes in their votes. The actual decision to
31128       use Exits as Guards is done in the consensus bandwidth weights.
31129       Fixes bug 1294; bugfix on 0.2.2.10-alpha.
31130     - When the controller is reporting the purpose of circuits that
31131       didn't finish building before the circuit build timeout, it was
31132       printing UNKNOWN_13. Now print EXPIRED. Bugfix on 0.2.2.14-alpha.
31133     - Our libevent version parsing code couldn't handle versions like
31134       1.4.14b-stable and incorrectly warned the user about using an
31135       old and broken version of libevent. Treat 1.4.14b-stable like
31136       1.4.14-stable when parsing the version. Fixes bug 1731; bugfix
31137       on 0.2.2.1-alpha.
31138     - Don't use substitution references like $(VAR:MOD) when
31139       $(asciidoc_files) is empty -- make(1) on NetBSD transforms
31140       '$(:x)' to 'x' rather than the empty string. This bites us in
31141       doc/ when configured with --disable-asciidoc. Bugfix on
31142       0.2.2.9-alpha; fixes bug 1773.
31143     - Remove a spurious hidden service server-side log notice about
31144       "Ancient non-dirty circuits". Bugfix on 0.2.2.14-alpha; fixes
31145       bug 1741.
31146     - Fix compilation with --with-dmalloc set. Bugfix on 0.2.2.6-alpha;
31147       fixes bug 1832.
31148     - Correctly report written bytes on linked connections. Found while
31149       implementing 1790. Bugfix on 0.2.2.4-alpha.
31150     - Fix three memory leaks: one in circuit_build_times_parse_state(),
31151       one in dirvote_add_signatures_to_pending_consensus(), and one every
31152       time we parse a v3 network consensus. Bugfixes on 0.2.2.14-alpha,
31153       0.2.2.6-alpha, and 0.2.2.10-alpha respectively; fixes bug 1831.
31155   o Code simplifications and refactoring:
31156     - Take a first step towards making or.h smaller by splitting out
31157       function definitions for all source files in src/or/. Leave
31158       structures and defines in or.h for now.
31159     - Remove a bunch of unused function declarations as well as a block of
31160       #if 0'd code from the unit tests. Closes bug 1824.
31161     - New unit tests for exit-port history statistics; refactored exit
31162       statistics code to be more easily tested.
31163     - Remove the old debian/ directory from the main Tor distribution.
31164       The official Tor-for-debian git repository lives at the URL
31165       https://git.torproject.org/debian/tor.git
31168 Changes in version 0.2.2.14-alpha - 2010-07-12
31169   Tor 0.2.2.14-alpha greatly improves client-side handling of
31170   circuit build timeouts, which are used to estimate speed and improve
31171   performance. We also move to a much better GeoIP database, port Tor to
31172   Windows CE, introduce new compile flags that improve code security,
31173   add an eighth v3 directory authority, and address a lot of more
31174   minor issues.
31176   o Major bugfixes:
31177     - Tor directory authorities no longer crash when started with a
31178       cached-microdesc-consensus file in their data directory. Bugfix
31179       on 0.2.2.6-alpha; fixes bug 1532.
31180     - Treat an unset $HOME like an empty $HOME rather than triggering an
31181       assert. Bugfix on 0.0.8pre1; fixes bug 1522.
31182     - Ignore negative and large circuit build timeout values that can
31183       happen during a suspend or hibernate. These values caused various
31184       asserts to fire. Bugfix on 0.2.2.2-alpha; fixes bug 1245.
31185     - Alter calculation of Pareto distribution parameter 'Xm' for
31186       Circuit Build Timeout learning to use the weighted average of the
31187       top N=3 modes (because we have three entry guards). Considering
31188       multiple modes should improve the timeout calculation in some cases,
31189       and prevent extremely high timeout values. Bugfix on 0.2.2.2-alpha;
31190       fixes bug 1335.
31191     - Alter calculation of Pareto distribution parameter 'Alpha' to use a
31192       right censored distribution model. This approach improves over the
31193       synthetic timeout generation approach that was producing insanely
31194       high timeout values. Now we calculate build timeouts using truncated
31195       times. Bugfix on 0.2.2.2-alpha; fixes bugs 1245 and 1335.
31196     - Do not close circuits that are under construction when they reach
31197       the circuit build timeout. Instead, leave them building (but do not
31198       use them) for up until the time corresponding to the 95th percentile
31199       on the Pareto CDF or 60 seconds, whichever is greater. This is done
31200       to provide better data for the new Pareto model. This percentile
31201       can be controlled by the consensus.
31203   o Major features:
31204     - Move to the June 2010 Maxmind GeoLite country db (rather than the
31205       June 2009 ip-to-country GeoIP db) for our statistics that count
31206       how many users relays are seeing from each country. Now we have
31207       more accurate data for many African countries.
31208     - Port Tor to build and run correctly on Windows CE systems, using
31209       the wcecompat library. Contributed by Valerio Lupi.
31210     - New "--enable-gcc-hardening" ./configure flag (off by default)
31211       to turn on gcc compile time hardening options. It ensures
31212       that signed ints have defined behavior (-fwrapv), enables
31213       -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
31214       with canaries (-fstack-protector-all), turns on ASLR protection if
31215       supported by the kernel (-fPIE, -pie), and adds additional security
31216       related warnings. Verified to work on Mac OS X and Debian Lenny.
31217     - New "--enable-linker-hardening" ./configure flag (off by default)
31218       to turn on ELF specific hardening features (relro, now). This does
31219       not work with Mac OS X or any other non-ELF binary format.
31221   o New directory authorities:
31222     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
31223       authority.
31225   o Minor features:
31226     - New config option "WarnUnsafeSocks 0" disables the warning that
31227       occurs whenever Tor receives a socks handshake using a version of
31228       the socks protocol that can only provide an IP address (rather
31229       than a hostname). Setups that do DNS locally over Tor are fine,
31230       and we shouldn't spam the logs in that case.
31231     - Convert the HACKING file to asciidoc, and add a few new sections
31232       to it, explaining how we use Git, how we make changelogs, and
31233       what should go in a patch.
31234     - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port
31235       event, to give information on the current rate of circuit timeouts
31236       over our stored history.
31237     - Add ability to disable circuit build time learning via consensus
31238       parameter and via a LearnCircuitBuildTimeout config option. Also
31239       automatically disable circuit build time calculation if we are
31240       either a AuthoritativeDirectory, or if we fail to write our state
31241       file. Fixes bug 1296.
31242     - More gracefully handle corrupt state files, removing asserts
31243       in favor of saving a backup and resetting state.
31244     - Rename the "log.h" header to "torlog.h" so as to conflict with fewer
31245       system headers.
31247   o Minor bugfixes:
31248     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
31249       enabled.
31250     - When a2x fails, mention that the user could disable manpages instead
31251       of trying to fix their asciidoc installation.
31252     - Where available, use Libevent 2.0's periodic timers so that our
31253       once-per-second cleanup code gets called even more closely to
31254       once per second than it would otherwise. Fixes bug 943.
31255     - If you run a bridge that listens on multiple IP addresses, and
31256       some user configures a bridge address that uses a different IP
31257       address than your bridge writes in its router descriptor, and the
31258       user doesn't specify an identity key, their Tor would discard the
31259       descriptor because "it isn't one of our configured bridges", and
31260       fail to bootstrap. Now believe the descriptor and bootstrap anyway.
31261       Bugfix on 0.2.0.3-alpha.
31262     - If OpenSSL fails to make a duplicate of a private or public key, log
31263       an error message and try to exit cleanly. May help with debugging
31264       if bug 1209 ever remanifests.
31265     - Save a couple bytes in memory allocation every time we escape
31266       certain characters in a string. Patch from Florian Zumbiehl.
31267     - Make it explicit that we don't cannibalize one-hop circuits. This
31268       happens in the wild, but doesn't turn out to be a problem because
31269       we fortunately don't use those circuits. Many thanks to outofwords
31270       for the initial analysis and to swissknife who confirmed that
31271       two-hop circuits are actually created.
31272     - Make directory mirrors report non-zero dirreq-v[23]-shares again.
31273       Fixes bug 1564; bugfix on 0.2.2.9-alpha.
31274     - Eliminate a case where a circuit build time warning was displayed
31275       after network connectivity resumed. Bugfix on 0.2.2.2-alpha.
31278 Changes in version 0.2.1.26 - 2010-05-02
31279   Tor 0.2.1.26 addresses the recent connection and memory overload
31280   problems we've been seeing on relays, especially relays with their
31281   DirPort open. If your relay has been crashing, or you turned it off
31282   because it used too many resources, give this release a try.
31284   This release also fixes yet another instance of broken OpenSSL libraries
31285   that was causing some relays to drop out of the consensus.
31287   o Major bugfixes:
31288     - Teach relays to defend themselves from connection overload. Relays
31289       now close idle circuits early if it looks like they were intended
31290       for directory fetches. Relays are also more aggressive about closing
31291       TLS connections that have no circuits on them. Such circuits are
31292       unlikely to be re-used, and tens of thousands of them were piling
31293       up at the fast relays, causing the relays to run out of sockets
31294       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
31295       their directory fetches over TLS).
31296     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
31297       that claim to be earlier than 0.9.8m, but which have in reality
31298       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
31299       behavior. Possible fix for some cases of bug 1346.
31300     - Directory mirrors were fetching relay descriptors only from v2
31301       directory authorities, rather than v3 authorities like they should.
31302       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
31303       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
31305   o Minor bugfixes:
31306     - Finally get rid of the deprecated and now harmful notion of "clique
31307       mode", where directory authorities maintain TLS connections to
31308       every other relay.
31310   o Testsuite fixes:
31311     - In the util/threads test, no longer free the test_mutex before all
31312       worker threads have finished. Bugfix on 0.2.1.6-alpha.
31313     - The master thread could starve the worker threads quite badly on
31314       certain systems, causing them to run only partially in the allowed
31315       window. This resulted in test failures. Now the master thread sleeps
31316       occasionally for a few microseconds while the two worker-threads
31317       compete for the mutex. Bugfix on 0.2.0.1-alpha.
31320 Changes in version 0.2.2.13-alpha - 2010-04-24
31321   Tor 0.2.2.13-alpha addresses the recent connection and memory overload
31322   problems we've been seeing on relays, especially relays with their
31323   DirPort open. If your relay has been crashing, or you turned it off
31324   because it used too many resources, give this release a try.
31326   o Major bugfixes:
31327     - Teach relays to defend themselves from connection overload. Relays
31328       now close idle circuits early if it looks like they were intended
31329       for directory fetches. Relays are also more aggressive about closing
31330       TLS connections that have no circuits on them. Such circuits are
31331       unlikely to be re-used, and tens of thousands of them were piling
31332       up at the fast relays, causing the relays to run out of sockets
31333       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
31334       their directory fetches over TLS).
31336   o Minor features:
31337     - Finally get rid of the deprecated and now harmful notion of "clique
31338       mode", where directory authorities maintain TLS connections to
31339       every other relay.
31340     - Directory authorities now do an immediate reachability check as soon
31341       as they hear about a new relay. This change should slightly reduce
31342       the time between setting up a relay and getting listed as running
31343       in the consensus. It should also improve the time between setting
31344       up a bridge and seeing use by bridge users.
31345     - Directory authorities no longer launch a TLS connection to every
31346       relay as they startup. Now that we have 2k+ descriptors cached,
31347       the resulting network hiccup is becoming a burden. Besides,
31348       authorities already avoid voting about Running for the first half
31349       hour of their uptime.
31352 Changes in version 0.2.2.12-alpha - 2010-04-20
31353   Tor 0.2.2.12-alpha fixes a critical bug in how directory authorities
31354   handle and vote on descriptors. It was causing relays to drop out of
31355   the consensus.
31357   o Major bugfixes:
31358     - Many relays have been falling out of the consensus lately because
31359       not enough authorities know about their descriptor for them to get
31360       a majority of votes. When we deprecated the v2 directory protocol,
31361       we got rid of the only way that v3 authorities can hear from each
31362       other about other descriptors. Now authorities examine every v3
31363       vote for new descriptors, and fetch them from that authority. Bugfix
31364       on 0.2.1.23.
31365     - Fix two typos in tor_vasprintf() that broke the compile on Windows,
31366       and a warning in or.h related to bandwidth_weight_rule_t that
31367       prevented clean compile on OS X. Fixes bug 1363; bugfix on
31368       0.2.2.11-alpha.
31369     - Fix a segfault on relays when DirReqStatistics is enabled
31370       and 24 hours pass. Bug found by keb. Fixes bug 1365; bugfix on
31371       0.2.2.11-alpha.
31373   o Minor bugfixes:
31374     - Demote a confusing TLS warning that relay operators might get when
31375       someone tries to talk to their OrPort. It is neither the operator's
31376       fault nor can they do anything about it. Fixes bug 1364; bugfix
31377       on 0.2.0.14-alpha.
31380 Changes in version 0.2.2.11-alpha - 2010-04-15
31381   Tor 0.2.2.11-alpha fixes yet another instance of broken OpenSSL
31382   libraries that was causing some relays to drop out of the consensus.
31384   o Major bugfixes:
31385     - Directory mirrors were fetching relay descriptors only from v2
31386       directory authorities, rather than v3 authorities like they should.
31387       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
31388       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
31389     - Fix a parsing error that made every possible value of
31390       CircPriorityHalflifeMsec get treated as "1 msec". Bugfix
31391       on 0.2.2.7-alpha. Rename CircPriorityHalflifeMsec to
31392       CircuitPriorityHalflifeMsec, so authorities can tell newer relays
31393       about the option without breaking older ones.
31394     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
31395       that claim to be earlier than 0.9.8m, but which have in reality
31396       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
31397       behavior. Possible fix for some cases of bug 1346.
31399   o Minor features:
31400     - Experiment with a more aggressive approach to preventing clients
31401       from making one-hop exit streams. Exit relays who want to try it
31402       out can set "RefuseUnknownExits 1" in their torrc, and then look
31403       for "Attempt by %s to open a stream" log messages. Let us know
31404       how it goes!
31405     - Add support for statically linking zlib by specifying
31406       --enable-static-zlib, to go with our support for statically linking
31407       openssl and libevent. Resolves bug 1358.
31409   o Minor bugfixes:
31410     - Fix a segfault that happens whenever a Tor client that is using
31411       libevent2's bufferevents gets a hup signal. Bugfix on 0.2.2.5-alpha;
31412       fixes bug 1341.
31413     - When we cleaned up the contrib/tor-exit-notice.html file, we left
31414       out the first line. Fixes bug 1295.
31415     - When building the manpage from a tarball, we required asciidoc, but
31416       the asciidoc -> roff/html conversion was already done for the
31417       tarball. Make 'make' complain only when we need asciidoc (either
31418       because we're compiling directly from git, or because we altered
31419       the asciidoc manpage in the tarball). Bugfix on 0.2.2.9-alpha.
31420     - When none of the directory authorities vote on any params, Tor
31421       segfaulted when trying to make the consensus from the votes. We
31422       didn't trigger the bug in practice, because authorities do include
31423       params in their votes. Bugfix on 0.2.2.10-alpha; fixes bug 1322.
31425   o Testsuite fixes:
31426     - In the util/threads test, no longer free the test_mutex before all
31427       worker threads have finished. Bugfix on 0.2.1.6-alpha.
31428     - The master thread could starve the worker threads quite badly on
31429       certain systems, causing them to run only partially in the allowed
31430       window. This resulted in test failures. Now the master thread sleeps
31431       occasionally for a few microseconds while the two worker-threads
31432       compete for the mutex. Bugfix on 0.2.0.1-alpha.
31435 Changes in version 0.2.2.10-alpha - 2010-03-07
31436   Tor 0.2.2.10-alpha fixes a regression introduced in 0.2.2.9-alpha that
31437   could prevent relays from guessing their IP address correctly. It also
31438   starts the groundwork for another client-side performance boost, since
31439   currently we're not making efficient use of relays that have both the
31440   Guard flag and the Exit flag.
31442   o Major bugfixes:
31443     - Fix a regression from our patch for bug 1244 that caused relays
31444       to guess their IP address incorrectly if they didn't set Address
31445       in their torrc and/or their address fails to resolve. Bugfix on
31446       0.2.2.9-alpha; fixes bug 1269.
31448   o Major features (performance):
31449     - Directory authorities now compute consensus weightings that instruct
31450       clients how to weight relays flagged as Guard, Exit, Guard+Exit,
31451       and no flag. Clients that use these weightings will distribute
31452       network load more evenly across these different relay types. The
31453       weightings are in the consensus so we can change them globally in
31454       the future. Extra thanks to "outofwords" for finding some nasty
31455       security bugs in the first implementation of this feature.
31457   o Minor features (performance):
31458     - Always perform router selections using weighted relay bandwidth,
31459       even if we don't need a high capacity circuit at the time. Non-fast
31460       circuits now only differ from fast ones in that they can use relays
31461       not marked with the Fast flag. This "feature" could turn out to
31462       be a horrible bug; we should investigate more before it goes into
31463       a stable release.
31465   o Minor features:
31466     - Allow disabling building of the manpages. Skipping the manpage
31467       speeds up the build considerably.
31469   o Minor bugfixes (on 0.2.2.x):
31470     - Fix a memleak in the EXTENDCIRCUIT logic. Spotted by coverity.
31471       Bugfix on 0.2.2.9-alpha.
31472     - Disallow values larger than INT32_MAX for PerConnBWRate|Burst
31473       config option. Bugfix on 0.2.2.7-alpha.
31474     - Ship the asciidoc-helper file in the tarball, so that people can
31475       build from source if they want to, and touching the .1.txt files
31476       doesn't break the build. Bugfix on 0.2.2.9-alpha.
31478   o Minor bugfixes (on 0.2.1.x or earlier):
31479     - Fix a dereference-then-NULL-check sequence when publishing
31480       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
31481       bug 1255.
31482     - Fix another dereference-then-NULL-check sequence. Bugfix on
31483       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
31484     - Make sure we treat potentially not NUL-terminated strings correctly.
31485       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
31487   o Code simplifications and refactoring:
31488     - Fix some urls in the exit notice file and make it XHTML1.1 strict
31489       compliant. Based on a patch from Christian Kujau.
31490     - Don't use sed in asciidoc-helper anymore.
31491     - Make the build process fail if asciidoc cannot be found and
31492       building with asciidoc isn't disabled.
31495 Changes in version 0.2.2.9-alpha - 2010-02-22
31496   Tor 0.2.2.9-alpha makes Tor work again on the latest OS X, updates the
31497   location of a directory authority, and cleans up a bunch of small bugs.
31499   o Directory authority changes:
31500     - Change IP address for dannenberg (v3 directory authority), and
31501       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
31502       service directory authority) from the list.
31504   o Major bugfixes:
31505     - Make Tor work again on the latest OS X: when deciding whether to
31506       use strange flags to turn TLS renegotiation on, detect the OpenSSL
31507       version at run-time, not compile time. We need to do this because
31508       Apple doesn't update its dev-tools headers when it updates its
31509       libraries in a security patch.
31510     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
31511       that could happen on 32-bit platforms with 64-bit time_t. Also fix
31512       a memory leak when requesting a hidden service descriptor we've
31513       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
31514       by aakova.
31515     - Authorities could be tricked into giving out the Exit flag to relays
31516       that didn't allow exiting to any ports. This bug could screw
31517       with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug
31518       1238. Bug discovered by Martin Kowalczyk.
31519     - When freeing a session key, zero it out completely. We only zeroed
31520       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
31521       patched by ekir. Fixes bug 1254.
31523   o Minor bugfixes:
31524     - Fix static compilation by listing the openssl libraries in the right
31525       order. Bugfix on Tor 0.2.2.8-alpha; fixes bug 1237.
31526     - Resume handling .exit hostnames in a special way: originally we
31527       stripped the .exit part and used the requested exit relay. In
31528       0.2.2.1-alpha we stopped treating them in any special way, meaning
31529       if you use a .exit address then Tor will pass it on to the exit
31530       relay. Now we reject the .exit stream outright, since that behavior
31531       might be more expected by the user. Found and diagnosed by Scott
31532       Bennett and Downie on or-talk.
31533     - Don't spam the controller with events when we have no file
31534       descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting
31535       for log messages was already solved from bug 748.)
31536     - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by
31537       "memcpyfail".
31538     - Make the DNSPort option work with libevent 2.x. Don't alter the
31539       behavior for libevent 1.x. Fixes bug 1143. Found by SwissTorExit.
31540     - Emit a GUARD DROPPED controller event for a case we missed.
31541     - Make more fields in the controller protocol case-insensitive, since
31542       control-spec.txt said they were.
31543     - Refactor resolve_my_address() to not use gethostbyname() anymore.
31544       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
31545     - Fix a spec conformance issue: the network-status-version token
31546       must be the first token in a v3 consensus or vote. Discovered by
31547       parakeep. Bugfix on 0.2.0.3-alpha.
31549   o Code simplifications and refactoring:
31550     - Generate our manpage and HTML documentation using Asciidoc. This
31551       change should make it easier to maintain the documentation, and
31552       produce nicer HTML.
31553     - Remove the --enable-iphone option. According to reports from Marco
31554       Bonetti, Tor builds fine without any special tweaking on recent
31555       iPhone SDK versions.
31556     - Removed some unnecessary files from the source distribution. The
31557       AUTHORS file has now been merged into the people page on the
31558       website. The roadmaps and design doc can now be found in the
31559       projects directory in svn.
31560     - Enabled various circuit build timeout constants to be controlled
31561       by consensus parameters. Also set better defaults for these
31562       parameters based on experimentation on broadband and simulated
31563       high latency links.
31565   o Minor features:
31566     - The 'EXTENDCIRCUIT' control port command can now be used with
31567       a circ id of 0 and no path. This feature will cause Tor to build
31568       a new 'fast' general purpose circuit using its own path selection
31569       algorithms.
31570     - Added a BUILDTIMEOUT_SET controller event to describe changes
31571       to the circuit build timeout.
31572     - Future-proof the controller protocol a bit by ignoring keyword
31573       arguments we do not recognize.
31574     - Expand homedirs passed to tor-checkkey. This should silence a
31575       coverity complaint about passing a user-supplied string into
31576       open() without checking it.
31579 Changes in version 0.2.1.25 - 2010-03-16
31580   Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could
31581   prevent relays from guessing their IP address correctly. It also fixes
31582   several minor potential security bugs.
31584   o Major bugfixes:
31585     - Fix a regression from our patch for bug 1244 that caused relays
31586       to guess their IP address incorrectly if they didn't set Address
31587       in their torrc and/or their address fails to resolve. Bugfix on
31588       0.2.1.23; fixes bug 1269.
31589     - When freeing a session key, zero it out completely. We only zeroed
31590       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
31591       patched by ekir. Fixes bug 1254.
31593   o Minor bugfixes:
31594     - Fix a dereference-then-NULL-check sequence when publishing
31595       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
31596       bug 1255.
31597     - Fix another dereference-then-NULL-check sequence. Bugfix on
31598       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
31599     - Make sure we treat potentially not NUL-terminated strings correctly.
31600       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
31604 Changes in version 0.2.1.24 - 2010-02-21
31605   Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time
31606   for sure!
31608   o Minor bugfixes:
31609     - Work correctly out-of-the-box with even more vendor-patched versions
31610       of OpenSSL. In particular, make it so Debian and OS X don't need
31611       customized patches to run/build.
31614 Changes in version 0.2.1.23 - 2010-02-13
31615   Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work
31616   again on the latest OS X, and updates the location of a directory
31617   authority.
31619   o Major bugfixes (performance):
31620     - We were selecting our guards uniformly at random, and then weighting
31621       which of our guards we'd use uniformly at random. This imbalance
31622       meant that Tor clients were severely limited on throughput (and
31623       probably latency too) by the first hop in their circuit. Now we
31624       select guards weighted by currently advertised bandwidth. We also
31625       automatically discard guards picked using the old algorithm. Fixes
31626       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
31628   o Major bugfixes:
31629     - Make Tor work again on the latest OS X: when deciding whether to
31630       use strange flags to turn TLS renegotiation on, detect the OpenSSL
31631       version at run-time, not compile time. We need to do this because
31632       Apple doesn't update its dev-tools headers when it updates its
31633       libraries in a security patch.
31634     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
31635       that could happen on 32-bit platforms with 64-bit time_t. Also fix
31636       a memory leak when requesting a hidden service descriptor we've
31637       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
31638       by aakova.
31640   o Directory authority changes:
31641     - Change IP address for dannenberg (v3 directory authority), and
31642       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
31643       service directory authority) from the list.
31645   o Minor bugfixes:
31646     - Refactor resolve_my_address() to not use gethostbyname() anymore.
31647       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
31649   o Minor features:
31650     - Avoid a mad rush at the beginning of each month when each client
31651       rotates half of its guards. Instead we spread the rotation out
31652       throughout the month, but we still avoid leaving a precise timestamp
31653       in the state file about when we first picked the guard. Improves
31654       over the behavior introduced in 0.1.2.17.
31657 Changes in version 0.2.2.8-alpha - 2010-01-26
31658   Tor 0.2.2.8-alpha fixes a crash bug in 0.2.2.7-alpha that has been
31659   causing bridge relays to disappear. If you're running a bridge,
31660   please upgrade.
31662   o Major bugfixes:
31663     - Fix a memory corruption bug on bridges that occurred during the
31664       inclusion of stats data in extra-info descriptors. Also fix the
31665       interface for geoip_get_bridge_stats* to prevent similar bugs in
31666       the future. Diagnosis by Tas, patch by Karsten and Sebastian.
31667       Fixes bug 1208; bugfix on 0.2.2.7-alpha.
31669   o Minor bugfixes:
31670     - Ignore OutboundBindAddress when connecting to localhost.
31671       Connections to localhost need to come _from_ localhost, or else
31672       local servers (like DNS and outgoing HTTP/SOCKS proxies) will often
31673       refuse to listen.
31676 Changes in version 0.2.2.7-alpha - 2010-01-19
31677   Tor 0.2.2.7-alpha fixes a huge client-side performance bug, as well
31678   as laying the groundwork for further relay-side performance fixes. It
31679   also starts cleaning up client behavior with respect to the EntryNodes,
31680   ExitNodes, and StrictNodes config options.
31682   This release also rotates two directory authority keys, due to a
31683   security breach of some of the Torproject servers.
31685   o Directory authority changes:
31686     - Rotate keys (both v3 identity and relay identity) for moria1
31687       and gabelmoo.
31689   o Major features (performance):
31690     - We were selecting our guards uniformly at random, and then weighting
31691       which of our guards we'd use uniformly at random. This imbalance
31692       meant that Tor clients were severely limited on throughput (and
31693       probably latency too) by the first hop in their circuit. Now we
31694       select guards weighted by currently advertised bandwidth. We also
31695       automatically discard guards picked using the old algorithm. Fixes
31696       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
31697     - When choosing which cells to relay first, relays can now favor
31698       circuits that have been quiet recently, to provide lower latency
31699       for low-volume circuits. By default, relays enable or disable this
31700       feature based on a setting in the consensus. You can override
31701       this default by using the new "CircuitPriorityHalflife" config
31702       option. Design and code by Ian Goldberg, Can Tang, and Chris
31703       Alexander.
31704     - Add separate per-conn write limiting to go with the per-conn read
31705       limiting. We added a global write limit in Tor 0.1.2.5-alpha,
31706       but never per-conn write limits.
31707     - New consensus params "bwconnrate" and "bwconnburst" to let us
31708       rate-limit client connections as they enter the network. It's
31709       controlled in the consensus so we can turn it on and off for
31710       experiments. It's starting out off. Based on proposal 163.
31712   o Major features (relay selection options):
31713     - Switch to a StrictNodes config option, rather than the previous
31714       "StrictEntryNodes" / "StrictExitNodes" separation that was missing a
31715       "StrictExcludeNodes" option.
31716     - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes
31717       change during a config reload, mark and discard all our origin
31718       circuits. This fix should address edge cases where we change the
31719       config options and but then choose a circuit that we created before
31720       the change.
31721     - If EntryNodes or ExitNodes are set, be more willing to use an
31722       unsuitable (e.g. slow or unstable) circuit. The user asked for it,
31723       they get it.
31724     - Make EntryNodes config option much more aggressive even when
31725       StrictNodes is not set. Before it would prepend your requested
31726       entrynodes to your list of guard nodes, but feel free to use others
31727       after that. Now it chooses only from your EntryNodes if any of
31728       those are available, and only falls back to others if a) they're
31729       all down and b) StrictNodes is not set.
31730     - Now we refresh your entry guards from EntryNodes at each consensus
31731       fetch -- rather than just at startup and then they slowly rot as
31732       the network changes.
31734   o Major bugfixes:
31735     - Stop bridge directory authorities from answering dbg-stability.txt
31736       directory queries, which would let people fetch a list of all
31737       bridge identities they track. Bugfix on 0.2.1.6-alpha.
31739   o Minor features:
31740     - Log a notice when we get a new control connection. Now it's easier
31741       for security-conscious users to recognize when a local application
31742       is knocking on their controller door. Suggested by bug 1196.
31743     - New config option "CircuitStreamTimeout" to override our internal
31744       timeout schedule for how many seconds until we detach a stream from
31745       a circuit and try a new circuit. If your network is particularly
31746       slow, you might want to set this to a number like 60.
31747     - New controller command "getinfo config-text". It returns the
31748       contents that Tor would write if you send it a SAVECONF command,
31749       so the controller can write the file to disk itself.
31750     - New options for SafeLogging to allow scrubbing only log messages
31751       generated while acting as a relay.
31752     - Ship the bridges spec file in the tarball too.
31753     - Avoid a mad rush at the beginning of each month when each client
31754       rotates half of its guards. Instead we spread the rotation out
31755       throughout the month, but we still avoid leaving a precise timestamp
31756       in the state file about when we first picked the guard. Improves
31757       over the behavior introduced in 0.1.2.17.
31759   o Minor bugfixes (compiling):
31760     - Fix compilation on OS X 10.3, which has a stub mlockall() but
31761       hides it. Bugfix on 0.2.2.6-alpha.
31762     - Fix compilation on Solaris by removing support for the
31763       DisableAllSwap config option. Solaris doesn't have an rlimit for
31764       mlockall, so we cannot use it safely. Fixes bug 1198; bugfix on
31765       0.2.2.6-alpha.
31767   o Minor bugfixes (crashes):
31768     - Do not segfault when writing buffer stats when we haven't observed
31769       a single circuit to report about. Found by Fabian Lanze. Bugfix on
31770       0.2.2.1-alpha.
31771     - If we're in the pathological case where there's no exit bandwidth
31772       but there is non-exit bandwidth, or no guard bandwidth but there
31773       is non-guard bandwidth, don't crash during path selection. Bugfix
31774       on 0.2.0.3-alpha.
31775     - Fix an impossible-to-actually-trigger buffer overflow in relay
31776       descriptor generation. Bugfix on 0.1.0.15.
31778   o Minor bugfixes (privacy):
31779     - Fix an instance where a Tor directory mirror might accidentally
31780       log the IP address of a misbehaving Tor client. Bugfix on
31781       0.1.0.1-rc.
31782     - Don't list Windows capabilities in relay descriptors. We never made
31783       use of them, and maybe it's a bad idea to publish them. Bugfix
31784       on 0.1.1.8-alpha.
31786   o Minor bugfixes (other):
31787     - Resolve an edge case in path weighting that could make us misweight
31788       our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1.
31789     - Fix statistics on client numbers by country as seen by bridges that
31790       were broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour
31791       intervals instead of variable 12-to-48-hour intervals.
31792     - After we free an internal connection structure, overwrite it
31793       with a different memory value than we use for overwriting a freed
31794       internal circuit structure. Should help with debugging. Suggested
31795       by bug 1055.
31796     - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m
31797       too.
31799   o Removed features:
31800     - Remove the HSAuthorityRecordStats option that version 0 hidden
31801       service authorities could have used to track statistics of overall
31802       hidden service usage.
31805 Changes in version 0.2.1.22 - 2010-01-19
31806   Tor 0.2.1.22 fixes a critical privacy problem in bridge directory
31807   authorities -- it would tell you its whole history of bridge descriptors
31808   if you make the right directory request. This stable update also
31809   rotates two of the seven v3 directory authority keys and locations.
31811   o Directory authority changes:
31812     - Rotate keys (both v3 identity and relay identity) for moria1
31813       and gabelmoo.
31815   o Major bugfixes:
31816     - Stop bridge directory authorities from answering dbg-stability.txt
31817       directory queries, which would let people fetch a list of all
31818       bridge identities they track. Bugfix on 0.2.1.6-alpha.
31821 Changes in version 0.2.1.21 - 2009-12-21
31822   Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL
31823   library. If you use Tor on Linux / Unix and you're getting SSL
31824   renegotiation errors, upgrading should help. We also recommend an
31825   upgrade if you're an exit relay.
31827   o Major bugfixes:
31828     - Work around a security feature in OpenSSL 0.9.8l that prevents our
31829       handshake from working unless we explicitly tell OpenSSL that we
31830       are using SSL renegotiation safely. We are, of course, but OpenSSL
31831       0.9.8l won't work unless we say we are.
31832     - Avoid crashing if the client is trying to upload many bytes and the
31833       circuit gets torn down at the same time, or if the flip side
31834       happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150.
31836   o Minor bugfixes:
31837     - Do not refuse to learn about authority certs and v2 networkstatus
31838       documents that are older than the latest consensus. This bug might
31839       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
31840       Spotted and fixed by xmux.
31841     - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to-
31842       trigger platform-specific option misparsing case found by Coverity
31843       Scan.
31844     - Fix a compilation warning on Fedora 12 by removing an impossible-to-
31845       trigger assert. Fixes bug 1173.
31848 Changes in version 0.2.2.6-alpha - 2009-11-19
31849   Tor 0.2.2.6-alpha lays the groundwork for many upcoming features:
31850   support for the new lower-footprint "microdescriptor" directory design,
31851   future-proofing our consensus format against new hash functions or
31852   other changes, and an Android port. It also makes Tor compatible with
31853   the upcoming OpenSSL 0.9.8l release, and fixes a variety of bugs.
31855   o Major features:
31856     - Directory authorities can now create, vote on, and serve multiple
31857       parallel formats of directory data as part of their voting process.
31858       Partially implements Proposal 162: "Publish the consensus in
31859       multiple flavors".
31860     - Directory authorities can now agree on and publish small summaries
31861       of router information that clients can use in place of regular
31862       server descriptors. This transition will eventually allow clients
31863       to use far less bandwidth for downloading information about the
31864       network. Begins the implementation of Proposal 158: "Clients
31865       download consensus + microdescriptors".
31866     - The directory voting system is now extensible to use multiple hash
31867       algorithms for signatures and resource selection. Newer formats
31868       are signed with SHA256, with a possibility for moving to a better
31869       hash algorithm in the future.
31870     - New DisableAllSwap option. If set to 1, Tor will attempt to lock all
31871       current and future memory pages via mlockall(). On supported
31872       platforms (modern Linux and probably BSD but not Windows or OS X),
31873       this should effectively disable any and all attempts to page out
31874       memory. This option requires that you start your Tor as root --
31875       if you use DisableAllSwap, please consider using the User option
31876       to properly reduce the privileges of your Tor.
31877     - Numerous changes, bugfixes, and workarounds from Nathan Freitas
31878       to help Tor build correctly for Android phones.
31880   o Major bugfixes:
31881     - Work around a security feature in OpenSSL 0.9.8l that prevents our
31882       handshake from working unless we explicitly tell OpenSSL that we
31883       are using SSL renegotiation safely. We are, but OpenSSL 0.9.8l
31884       won't work unless we say we are.
31886   o Minor bugfixes:
31887     - Fix a crash bug when trying to initialize the evdns module in
31888       Libevent 2. Bugfix on 0.2.1.16-rc.
31889     - Stop logging at severity 'warn' when some other Tor client tries
31890       to establish a circuit with us using weak DH keys. It's a protocol
31891       violation, but that doesn't mean ordinary users need to hear about
31892       it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13.
31893     - Do not refuse to learn about authority certs and v2 networkstatus
31894       documents that are older than the latest consensus. This bug might
31895       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
31896       Spotted and fixed by xmux.
31897     - Fix numerous small code-flaws found by Coverity Scan Rung 3.
31898     - If all authorities restart at once right before a consensus vote,
31899       nobody will vote about "Running", and clients will get a consensus
31900       with no usable relays. Instead, authorities refuse to build a
31901       consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066.
31902     - If your relay can't keep up with the number of incoming create
31903       cells, it would log one warning per failure into your logs. Limit
31904       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
31905     - Bridges now use "reject *:*" as their default exit policy. Bugfix
31906       on 0.2.0.3-alpha; fixes bug 1113.
31907     - Fix a memory leak on directory authorities during voting that was
31908       introduced in 0.2.2.1-alpha. Found via valgrind.
31911 Changes in version 0.2.1.20 - 2009-10-15
31912   Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden
31913   services at once, prepares for more performance improvements, and
31914   fixes a bunch of smaller bugs.
31916   The Windows and OS X bundles also include a more recent Vidalia,
31917   and switch from Privoxy to Polipo.
31919   The OS X installers are now drag and drop. It's best to un-install
31920   Tor/Vidalia and then install this new bundle, rather than upgrade. If
31921   you want to upgrade, you'll need to update the paths for Tor and Polipo
31922   in the Vidalia Settings window.
31924   o Major bugfixes:
31925     - Send circuit or stream sendme cells when our window has decreased
31926       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
31927       by Karsten when testing the "reduce circuit window" performance
31928       patch. Bugfix on the 54th commit on Tor -- from July 2002,
31929       before the release of Tor 0.0.0. This is the new winner of the
31930       oldest-bug prize.
31931     - Fix a remotely triggerable memory leak when a consensus document
31932       contains more than one signature from the same voter. Bugfix on
31933       0.2.0.3-alpha.
31934     - Avoid segfault in rare cases when finishing an introduction circuit
31935       as a client and finding out that we don't have an introduction key
31936       for it. Fixes bug 1073. Reported by Aaron Swartz.
31938   o Major features:
31939     - Tor now reads the "circwindow" parameter out of the consensus,
31940       and uses that value for its circuit package window rather than the
31941       default of 1000 cells. Begins the implementation of proposal 168.
31943   o New directory authorities:
31944     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
31945       authority.
31946     - Move moria1 and tonga to alternate IP addresses.
31948   o Minor bugfixes:
31949     - Fix a signed/unsigned compile warning in 0.2.1.19.
31950     - Fix possible segmentation fault on directory authorities. Bugfix on
31951       0.2.1.14-rc.
31952     - Fix an extremely rare infinite recursion bug that could occur if
31953       we tried to log a message after shutting down the log subsystem.
31954       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
31955     - Fix an obscure bug where hidden services on 64-bit big-endian
31956       systems might mis-read the timestamp in v3 introduce cells, and
31957       refuse to connect back to the client. Discovered by "rotor".
31958       Bugfix on 0.2.1.6-alpha.
31959     - We were triggering a CLOCK_SKEW controller status event whenever
31960       we connect via the v2 connection protocol to any relay that has
31961       a wrong clock. Instead, we should only inform the controller when
31962       it's a trusted authority that claims our clock is wrong. Bugfix
31963       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
31964     - We were telling the controller about CHECKING_REACHABILITY and
31965       REACHABILITY_FAILED status events whenever we launch a testing
31966       circuit or notice that one has failed. Instead, only tell the
31967       controller when we want to inform the user of overall success or
31968       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
31969       by SwissTorExit.
31970     - Don't warn when we're using a circuit that ends with a node
31971       excluded in ExcludeExitNodes, but the circuit is not used to access
31972       the outside world. This should help fix bug 1090. Bugfix on
31973       0.2.1.6-alpha.
31974     - Work around a small memory leak in some versions of OpenSSL that
31975       stopped the memory used by the hostname TLS extension from being
31976       freed.
31978   o Minor features:
31979     - Add a "getinfo status/accepted-server-descriptor" controller
31980       command, which is the recommended way for controllers to learn
31981       whether our server descriptor has been successfully received by at
31982       least on directory authority. Un-recommend good-server-descriptor
31983       getinfo and status events until we have a better design for them.
31986 Changes in version 0.2.2.5-alpha - 2009-10-11
31987   Tor 0.2.2.5-alpha fixes a few compile problems in 0.2.2.4-alpha.
31989   o Major bugfixes:
31990     - Make the tarball compile again. Oops. Bugfix on 0.2.2.4-alpha.
31992   o Directory authorities:
31993     - Temporarily (just for this release) move dizum to an alternate
31994       IP address.
31997 Changes in version 0.2.2.4-alpha - 2009-10-10
31998   Tor 0.2.2.4-alpha fixes more crash bugs in 0.2.2.2-alpha. It also
31999   introduces a new unit test framework, shifts directry authority
32000   addresses around to reduce the impact from recent blocking events,
32001   and fixes a few smaller bugs.
32003   o Major bugfixes:
32004     - Fix several more asserts in the circuit_build_times code, for
32005       example one that causes Tor to fail to start once we have
32006       accumulated 5000 build times in the state file. Bugfixes on
32007       0.2.2.2-alpha; fixes bug 1108.
32009   o New directory authorities:
32010     - Move moria1 and Tonga to alternate IP addresses.
32012   o Minor features:
32013     - Log SSL state transitions at debug level during handshake, and
32014       include SSL states in error messages. This may help debug future
32015       SSL handshake issues.
32016     - Add a new "Handshake" log domain for activities that happen
32017       during the TLS handshake.
32018     - Revert to the "June 3 2009" ip-to-country file. The September one
32019       seems to have removed most US IP addresses.
32020     - Directory authorities now reject Tor relays with versions less than
32021       0.1.2.14. This step cuts out four relays from the current network,
32022       none of which are very big.
32024   o Minor bugfixes:
32025     - Fix a couple of smaller issues with gathering statistics. Bugfixes
32026       on 0.2.2.1-alpha.
32027     - Fix two memory leaks in the error case of
32028       circuit_build_times_parse_state(). Bugfix on 0.2.2.2-alpha.
32029     - Don't count one-hop circuits when we're estimating how long it
32030       takes circuits to build on average. Otherwise we'll set our circuit
32031       build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
32032     - Directory authorities no longer change their opinion of, or vote on,
32033       whether a router is Running, unless they have themselves been
32034       online long enough to have some idea. Bugfix on 0.2.0.6-alpha.
32035       Fixes bug 1023.
32037   o Code simplifications and refactoring:
32038     - Revise our unit tests to use the "tinytest" framework, so we
32039       can run tests in their own processes, have smarter setup/teardown
32040       code, and so on. The unit test code has moved to its own
32041       subdirectory, and has been split into multiple modules.
32044 Changes in version 0.2.2.3-alpha - 2009-09-23
32045   Tor 0.2.2.3-alpha fixes a few crash bugs in 0.2.2.2-alpha.
32047   o Major bugfixes:
32048     - Fix an overzealous assert in our new circuit build timeout code.
32049       Bugfix on 0.2.2.2-alpha; fixes bug 1103.
32051   o Minor bugfixes:
32052     - If the networkstatus consensus tells us that we should use a
32053       negative circuit package window, ignore it. Otherwise we'll
32054       believe it and then trigger an assert. Bugfix on 0.2.2.2-alpha.
32057 Changes in version 0.2.2.2-alpha - 2009-09-21
32058   Tor 0.2.2.2-alpha introduces our latest performance improvement for
32059   clients: Tor tracks the average time it takes to build a circuit, and
32060   avoids using circuits that take too long to build. For fast connections,
32061   this feature can cut your expected latency in half. For slow or flaky
32062   connections, it could ruin your Tor experience. Let us know if it does!
32064   o Major features:
32065     - Tor now tracks how long it takes to build client-side circuits
32066       over time, and adapts its timeout to local network performance.
32067       Since a circuit that takes a long time to build will also provide
32068       bad performance, we get significant latency improvements by
32069       discarding the slowest 20% of circuits. Specifically, Tor creates
32070       circuits more aggressively than usual until it has enough data
32071       points for a good timeout estimate. Implements proposal 151.
32072       We are especially looking for reports (good and bad) from users with
32073       both EDGE and broadband connections that can move from broadband
32074       to EDGE and find out if the build-time data in the .tor/state gets
32075       reset without loss of Tor usability. You should also see a notice
32076       log message telling you that Tor has reset its timeout.
32077     - Directory authorities can now vote on arbitrary integer values as
32078       part of the consensus process. This is designed to help set
32079       network-wide parameters. Implements proposal 167.
32080     - Tor now reads the "circwindow" parameter out of the consensus,
32081       and uses that value for its circuit package window rather than the
32082       default of 1000 cells. Begins the implementation of proposal 168.
32084   o Major bugfixes:
32085     - Fix a remotely triggerable memory leak when a consensus document
32086       contains more than one signature from the same voter. Bugfix on
32087       0.2.0.3-alpha.
32089   o Minor bugfixes:
32090     - Fix an extremely rare infinite recursion bug that could occur if
32091       we tried to log a message after shutting down the log subsystem.
32092       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
32093     - Fix parsing for memory or time units given without a space between
32094       the number and the unit. Bugfix on 0.2.2.1-alpha; fixes bug 1076.
32095     - A networkstatus vote must contain exactly one signature. Spec
32096       conformance issue. Bugfix on 0.2.0.3-alpha.
32097     - Fix an obscure bug where hidden services on 64-bit big-endian
32098       systems might mis-read the timestamp in v3 introduce cells, and
32099       refuse to connect back to the client. Discovered by "rotor".
32100       Bugfix on 0.2.1.6-alpha.
32101     - We were triggering a CLOCK_SKEW controller status event whenever
32102       we connect via the v2 connection protocol to any relay that has
32103       a wrong clock. Instead, we should only inform the controller when
32104       it's a trusted authority that claims our clock is wrong. Bugfix
32105       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
32106     - We were telling the controller about CHECKING_REACHABILITY and
32107       REACHABILITY_FAILED status events whenever we launch a testing
32108       circuit or notice that one has failed. Instead, only tell the
32109       controller when we want to inform the user of overall success or
32110       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
32111       by SwissTorExit.
32112     - Don't warn when we're using a circuit that ends with a node
32113       excluded in ExcludeExitNodes, but the circuit is not used to access
32114       the outside world. This should help fix bug 1090, but more problems
32115       remain. Bugfix on 0.2.1.6-alpha.
32116     - Work around a small memory leak in some versions of OpenSSL that
32117       stopped the memory used by the hostname TLS extension from being
32118       freed.
32119     - Make our 'torify' script more portable; if we have only one of
32120       'torsocks' or 'tsocks' installed, don't complain to the user;
32121       and explain our warning about tsocks better.
32123   o Minor features:
32124     - Add a "getinfo status/accepted-server-descriptor" controller
32125       command, which is the recommended way for controllers to learn
32126       whether our server descriptor has been successfully received by at
32127       least on directory authority. Un-recommend good-server-descriptor
32128       getinfo and status events until we have a better design for them.
32129     - Update to the "September 4 2009" ip-to-country file.
32132 Changes in version 0.2.2.1-alpha - 2009-08-26
32133   Tor 0.2.2.1-alpha disables ".exit" address notation by default, allows
32134   Tor clients to bootstrap on networks where only port 80 is reachable,
32135   makes it more straightforward to support hardware crypto accelerators,
32136   and starts the groundwork for gathering stats safely at relays.
32138   o Security fixes:
32139     - Start the process of disabling ".exit" address notation, since it
32140       can be used for a variety of esoteric application-level attacks
32141       on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix
32142       on 0.0.9rc5.
32144   o New directory authorities:
32145     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
32146       authority.
32148   o Major features:
32149     - New AccelName and AccelDir options add support for dynamic OpenSSL
32150       hardware crypto acceleration engines.
32151     - Tor now supports tunneling all of its outgoing connections over
32152       a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy
32153       configuration options. Code by Christopher Davis.
32155   o Major bugfixes:
32156     - Send circuit or stream sendme cells when our window has decreased
32157       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
32158       by Karsten when testing the "reduce circuit window" performance
32159       patch. Bugfix on the 54th commit on Tor -- from July 2002,
32160       before the release of Tor 0.0.0. This is the new winner of the
32161       oldest-bug prize.
32163   o New options for gathering stats safely:
32164     - Directory mirrors that set "DirReqStatistics 1" write statistics
32165       about directory requests to disk every 24 hours. As compared to the
32166       --enable-geoip-stats flag in 0.2.1.x, there are a few improvements:
32167       1) stats are written to disk exactly every 24 hours; 2) estimated
32168       shares of v2 and v3 requests are determined as mean values, not at
32169       the end of a measurement period; 3) unresolved requests are listed
32170       with country code '??'; 4) directories also measure download times.
32171     - Exit nodes that set "ExitPortStatistics 1" write statistics on the
32172       number of exit streams and transferred bytes per port to disk every
32173       24 hours.
32174     - Relays that set "CellStatistics 1" write statistics on how long
32175       cells spend in their circuit queues to disk every 24 hours.
32176     - Entry nodes that set "EntryStatistics 1" write statistics on the
32177       rough number and origins of connecting clients to disk every 24
32178       hours.
32179     - Relays that write any of the above statistics to disk and set
32180       "ExtraInfoStatistics 1" include the past 24 hours of statistics in
32181       their extra-info documents.
32183   o Minor features:
32184     - New --digests command-line switch to output the digests of the
32185       source files Tor was built with.
32186     - The "torify" script now uses torsocks where available.
32187     - The memarea code now uses a sentinel value at the end of each area
32188       to make sure nothing writes beyond the end of an area. This might
32189       help debug some conceivable causes of bug 930.
32190     - Time and memory units in the configuration file can now be set to
32191       fractional units. For example, "2.5 GB" is now a valid value for
32192       AccountingMax.
32193     - Certain Tor clients (such as those behind check.torproject.org) may
32194       want to fetch the consensus in an extra early manner. To enable this
32195       a user may now set FetchDirInfoExtraEarly to 1. This also depends on
32196       setting FetchDirInfoEarly to 1. Previous behavior will stay the same
32197       as only certain clients who must have this information sooner should
32198       set this option.
32199     - Instead of adding the svn revision to the Tor version string, report
32200       the git commit (when we're building from a git checkout).
32202   o Minor bugfixes:
32203     - If any of the v3 certs we download are unparseable, we should
32204       actually notice the failure so we don't retry indefinitely. Bugfix
32205       on 0.2.0.x; reported by "rotator".
32206     - If the cached cert file is unparseable, warn but don't exit.
32207     - Fix possible segmentation fault on directory authorities. Bugfix on
32208       0.2.1.14-rc.
32209     - When Tor fails to parse a descriptor of any kind, dump it to disk.
32210       Might help diagnosing bug 1051.
32212   o Deprecated and removed features:
32213     - The controller no longer accepts the old obsolete "addr-mappings/"
32214       or "unregistered-servers-" GETINFO values.
32215     - Hidden services no longer publish version 0 descriptors, and clients
32216       do not request or use version 0 descriptors. However, the old hidden
32217       service authorities still accept and serve version 0 descriptors
32218       when contacted by older hidden services/clients.
32219     - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now
32220       always on; using them is necessary for correct forward-compatible
32221       controllers.
32222     - Remove support for .noconnect style addresses. Nobody was using
32223       them, and they provided another avenue for detecting Tor users
32224       via application-level web tricks.
32226   o Packaging changes:
32227     - Upgrade Vidalia from 0.1.15 to 0.2.3 in the Windows and OS X
32228       installer bundles. See
32229       https://trac.vidalia-project.net/browser/vidalia/tags/vidalia-0.2.3/CHANGELOG
32230       for details of what's new in Vidalia 0.2.3.
32231     - Windows Vidalia Bundle: update Privoxy from 3.0.6 to 3.0.14-beta.
32232     - OS X Vidalia Bundle: move to Polipo 1.0.4 with Tor specific
32233       configuration file, rather than the old Privoxy.
32234     - OS X Vidalia Bundle: Vidalia, Tor, and Polipo are compiled as
32235       x86-only for better compatibility with OS X 10.6, aka Snow Leopard.
32236     - OS X Tor Expert Bundle: Tor is compiled as x86-only for
32237       better compatibility with OS X 10.6, aka Snow Leopard.
32238     - OS X Vidalia Bundle: The multi-package installer is now replaced
32239       by a simple drag and drop to the /Applications folder. This change
32240       occurred with the upgrade to Vidalia 0.2.3.
32243 Changes in version 0.2.1.19 - 2009-07-28
32244   Tor 0.2.1.19 fixes a major bug with accessing and providing hidden
32245   services on Tor 0.2.1.3-alpha through 0.2.1.18.
32247   o Major bugfixes:
32248     - Make accessing hidden services on 0.2.1.x work right again.
32249       Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and
32250       part of patch provided by "optimist".
32252   o Minor features:
32253     - When a relay/bridge is writing out its identity key fingerprint to
32254       the "fingerprint" file and to its logs, write it without spaces. Now
32255       it will look like the fingerprints in our bridges documentation,
32256       and confuse fewer users.
32258   o Minor bugfixes:
32259     - Relays no longer publish a new server descriptor if they change
32260       their MaxAdvertisedBandwidth config option but it doesn't end up
32261       changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc;
32262       fixes bug 1026. Patch from Sebastian.
32263     - Avoid leaking memory every time we get a create cell but we have
32264       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
32265       fixes bug 1034. Reported by BarkerJr.
32268 Changes in version 0.2.1.18 - 2009-07-24
32269   Tor 0.2.1.18 lays the foundations for performance improvements,
32270   adds status events to help users diagnose bootstrap problems, adds
32271   optional authentication/authorization for hidden services, fixes a
32272   variety of potential anonymity problems, and includes a huge pile of
32273   other features and bug fixes.
32275   o Build fixes:
32276     - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent.
32279 Changes in version 0.2.1.17-rc - 2009-07-07
32280   Tor 0.2.1.17-rc marks the fourth -- and hopefully last -- release
32281   candidate for the 0.2.1.x series. It lays the groundwork for further
32282   client performance improvements, and also fixes a big bug with directory
32283   authorities that were causing them to assign Guard and Stable flags
32284   poorly.
32286   The Windows bundles also finally include the geoip database that we
32287   thought we'd been shipping since 0.2.0.x (oops), and the OS X bundles
32288   should actually install Torbutton rather than giving you a cryptic
32289   failure message (oops).
32291   o Major features:
32292     - Clients now use the bandwidth values in the consensus, rather than
32293       the bandwidth values in each relay descriptor. This approach opens
32294       the door to more accurate bandwidth estimates once the directory
32295       authorities start doing active measurements. Implements more of
32296       proposal 141.
32298   o Major bugfixes:
32299     - When Tor clients restart after 1-5 days, they discard all their
32300       cached descriptors as too old, but they still use the cached
32301       consensus document. This approach is good for robustness, but
32302       bad for performance: since they don't know any bandwidths, they
32303       end up choosing at random rather than weighting their choice by
32304       speed. Fixed by the above feature of putting bandwidths in the
32305       consensus. Bugfix on 0.2.0.x.
32306     - Directory authorities were neglecting to mark relays down in their
32307       internal histories if the relays fall off the routerlist without
32308       ever being found unreachable. So there were relays in the histories
32309       that haven't been seen for eight months, and are listed as being
32310       up for eight months. This wreaked havoc on the "median wfu"
32311       and "median mtbf" calculations, in turn making Guard and Stable
32312       flags very wrong, hurting network performance. Fixes bugs 696 and
32313       969. Bugfix on 0.2.0.6-alpha.
32315   o Minor bugfixes:
32316     - Serve the DirPortFrontPage page even when we have been approaching
32317       our quotas recently. Fixes bug 1013; bugfix on 0.2.1.8-alpha.
32318     - The control port would close the connection before flushing long
32319       replies, such as the network consensus, if a QUIT command was issued
32320       before the reply had completed. Now, the control port flushes all
32321       pending replies before closing the connection. Also fixed a spurious
32322       warning when a QUIT command is issued after a malformed or rejected
32323       AUTHENTICATE command, but before the connection was closed. Patch
32324       by Marcus Griep. Bugfix on 0.2.0.x; fixes bugs 1015 and 1016.
32325     - When we can't find an intro key for a v2 hidden service descriptor,
32326       fall back to the v0 hidden service descriptor and log a bug message.
32327       Workaround for bug 1024.
32328     - Fix a log message that did not respect the SafeLogging option.
32329       Resolves bug 1027.
32331   o Minor features:
32332     - If we're a relay and we change our IP address, be more verbose
32333       about the reason that made us change. Should help track down
32334       further bugs for relays on dynamic IP addresses.
32337 Changes in version 0.2.0.35 - 2009-06-24
32338   o Security fix:
32339     - Avoid crashing in the presence of certain malformed descriptors.
32340       Found by lark, and by automated fuzzing.
32341     - Fix an edge case where a malicious exit relay could convince a
32342       controller that the client's DNS question resolves to an internal IP
32343       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
32345   o Major bugfixes:
32346     - Finally fix the bug where dynamic-IP relays disappear when their
32347       IP address changes: directory mirrors were mistakenly telling
32348       them their old address if they asked via begin_dir, so they
32349       never got an accurate answer about their new address, so they
32350       just vanished after a day. For belt-and-suspenders, relays that
32351       don't set Address in their config now avoid using begin_dir for
32352       all direct connections. Should fix bugs 827, 883, and 900.
32353     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
32354       that would occur on some exit nodes when DNS failures and timeouts
32355       occurred in certain patterns. Fix for bug 957.
32357   o Minor bugfixes:
32358     - When starting with a cache over a few days old, do not leak
32359       memory for the obsolete router descriptors in it. Bugfix on
32360       0.2.0.33; fixes bug 672.
32361     - Hidden service clients didn't use a cached service descriptor that
32362       was older than 15 minutes, but wouldn't fetch a new one either,
32363       because there was already one in the cache. Now, fetch a v2
32364       descriptor unless the same descriptor was added to the cache within
32365       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
32368 Changes in version 0.2.1.16-rc - 2009-06-20
32369   Tor 0.2.1.16-rc speeds up performance for fast exit relays, and fixes
32370   a bunch of minor bugs.
32372   o Security fixes:
32373     - Fix an edge case where a malicious exit relay could convince a
32374       controller that the client's DNS question resolves to an internal IP
32375       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
32377   o Major performance improvements (on 0.2.0.x):
32378     - Disable and refactor some debugging checks that forced a linear scan
32379       over the whole server-side DNS cache. These accounted for over 50%
32380       of CPU time on a relatively busy exit node's gprof profile. Found
32381       by Jacob.
32382     - Disable some debugging checks that appeared in exit node profile
32383       data.
32385   o Minor features:
32386     - Update to the "June 3 2009" ip-to-country file.
32387     - Do not have tor-resolve automatically refuse all .onion addresses;
32388       if AutomapHostsOnResolve is set in your torrc, this will work fine.
32390   o Minor bugfixes (on 0.2.0.x):
32391     - Log correct error messages for DNS-related network errors on
32392       Windows.
32393     - Fix a race condition that could cause crashes or memory corruption
32394       when running as a server with a controller listening for log
32395       messages.
32396     - Avoid crashing when we have a policy specified in a DirPolicy or
32397       SocksPolicy or ReachableAddresses option with ports set on it,
32398       and we re-load the policy. May fix bug 996.
32399     - Hidden service clients didn't use a cached service descriptor that
32400       was older than 15 minutes, but wouldn't fetch a new one either,
32401       because there was already one in the cache. Now, fetch a v2
32402       descriptor unless the same descriptor was added to the cache within
32403       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
32405   o Minor bugfixes (on 0.2.1.x):
32406     - Don't warn users about low port and hibernation mix when they
32407       provide a *ListenAddress directive to fix that. Bugfix on
32408       0.2.1.15-rc.
32409     - When switching back and forth between bridge mode, do not start
32410       gathering GeoIP data until two hours have passed.
32411     - Do not complain that the user has requested an excluded node as
32412       an exit when the node is not really an exit. This could happen
32413       because the circuit was for testing, or an introduction point.
32414       Fix for bug 984.
32417 Changes in version 0.2.1.15-rc - 2009-05-25
32418   Tor 0.2.1.15-rc marks the second release candidate for the 0.2.1.x
32419   series. It fixes a major bug on fast exit relays, as well as a variety
32420   of more minor bugs.
32422   o Major bugfixes (on 0.2.0.x):
32423     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
32424       that would occur on some exit nodes when DNS failures and timeouts
32425       occurred in certain patterns. Fix for bug 957.
32427   o Minor bugfixes (on 0.2.0.x):
32428     - Actually return -1 in the error case for read_bandwidth_usage().
32429       Harmless bug, since we currently don't care about the return value
32430       anywhere. Bugfix on 0.2.0.9-alpha.
32431     - Provide a more useful log message if bug 977 (related to buffer
32432       freelists) ever reappears, and do not crash right away.
32433     - Fix an assertion failure on 64-bit platforms when we allocated
32434       memory right up to the end of a memarea, then realigned the memory
32435       one step beyond the end. Fixes a possible cause of bug 930.
32436     - Protect the count of open sockets with a mutex, so we can't
32437       corrupt it when two threads are closing or opening sockets at once.
32438       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
32439     - Don't allow a bridge to publish its router descriptor to a
32440       non-bridge directory authority. Fixes part of bug 932.
32441     - When we change to or from being a bridge, reset our counts of
32442       client usage by country. Fixes bug 932.
32443     - Fix a bug that made stream bandwidth get misreported to the
32444       controller.
32445     - Stop using malloc_usable_size() to use more area than we had
32446       actually allocated: it was safe, but made valgrind really unhappy.
32447     - Fix a memory leak when v3 directory authorities load their keys
32448       and cert from disk. Bugfix on 0.2.0.1-alpha.
32450   o Minor bugfixes (on 0.2.1.x):
32451     - Fix use of freed memory when deciding to mark a non-addable
32452       descriptor as never-downloadable. Bugfix on 0.2.1.9-alpha.
32455 Changes in version 0.2.1.14-rc - 2009-04-12
32456   Tor 0.2.1.14-rc marks the first release candidate for the 0.2.1.x
32457   series. It begins fixing some major performance problems, and also
32458   finally addresses the bug that was causing relays on dynamic IP
32459   addresses to fall out of the directory.
32461   o Major features:
32462     - Clients replace entry guards that were chosen more than a few months
32463       ago. This change should significantly improve client performance,
32464       especially once more people upgrade, since relays that have been
32465       a guard for a long time are currently overloaded.
32467   o Major bugfixes (on 0.2.0):
32468     - Finally fix the bug where dynamic-IP relays disappear when their
32469       IP address changes: directory mirrors were mistakenly telling
32470       them their old address if they asked via begin_dir, so they
32471       never got an accurate answer about their new address, so they
32472       just vanished after a day. For belt-and-suspenders, relays that
32473       don't set Address in their config now avoid using begin_dir for
32474       all direct connections. Should fix bugs 827, 883, and 900.
32475     - Relays were falling out of the networkstatus consensus for
32476       part of a day if they changed their local config but the
32477       authorities discarded their new descriptor as "not sufficiently
32478       different". Now directory authorities accept a descriptor as changed
32479       if bandwidthrate or bandwidthburst changed. Partial fix for bug 962;
32480       patch by Sebastian.
32481     - Avoid crashing in the presence of certain malformed descriptors.
32482       Found by lark, and by automated fuzzing.
32484   o Minor features:
32485     - When generating circuit events with verbose nicknames for
32486       controllers, try harder to look up nicknames for routers on a
32487       circuit. (Previously, we would look in the router descriptors we had
32488       for nicknames, but not in the consensus.) Partial fix for bug 941.
32489     - If the bridge config line doesn't specify a port, assume 443.
32490       This makes bridge lines a bit smaller and easier for users to
32491       understand.
32492     - Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
32493       bytes (aka 20KB/s), to match our documentation. Also update
32494       directory authorities so they always assign the Fast flag to relays
32495       with 20KB/s of capacity. Now people running relays won't suddenly
32496       find themselves not seeing any use, if the network gets faster
32497       on average.
32498     - Update to the "April 3 2009" ip-to-country file.
32500   o Minor bugfixes:
32501     - Avoid trying to print raw memory to the logs when we decide to
32502       give up on downloading a given relay descriptor. Bugfix on
32503       0.2.1.9-alpha.
32504     - In tor-resolve, when the Tor client to use is specified by
32505       <hostname>:<port>, actually use the specified port rather than
32506       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
32507     - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
32508     - When starting with a cache over a few days old, do not leak
32509       memory for the obsolete router descriptors in it. Bugfix on
32510       0.2.0.33.
32511     - Avoid double-free on list of successfully uploaded hidden
32512       service discriptors. Fix for bug 948. Bugfix on 0.2.1.6-alpha.
32513     - Change memarea_strndup() implementation to work even when
32514       duplicating a string at the end of a page. This bug was
32515       harmless for now, but could have meant crashes later. Fix by
32516       lark. Bugfix on 0.2.1.1-alpha.
32517     - Limit uploaded directory documents to be 16M rather than 500K.
32518       The directory authorities were refusing v3 consensus votes from
32519       other authorities, since the votes are now 504K. Fixes bug 959;
32520       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
32521     - Directory authorities should never send a 503 "busy" response to
32522       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
32523       bug 959.
32526 Changes in version 0.2.1.13-alpha - 2009-03-09
32527   Tor 0.2.1.13-alpha includes another big pile of minor bugfixes and
32528   cleanups. We're finally getting close to a release candidate.
32530   o Major bugfixes:
32531     - Correctly update the list of which countries we exclude as
32532       exits, when the GeoIP file is loaded or reloaded. Diagnosed by
32533       lark. Bugfix on 0.2.1.6-alpha.
32535   o Minor bugfixes (on 0.2.0.x and earlier):
32536     - Automatically detect MacOSX versions earlier than 10.4.0, and
32537       disable kqueue from inside Tor when running with these versions.
32538       We previously did this from the startup script, but that was no
32539       help to people who didn't use the startup script. Resolves bug 863.
32540     - When we had picked an exit node for a connection, but marked it as
32541       "optional", and it turned out we had no onion key for the exit,
32542       stop wanting that exit and try again. This situation may not
32543       be possible now, but will probably become feasible with proposal
32544       158. Spotted by rovv. Fixes another case of bug 752.
32545     - Clients no longer cache certificates for authorities they do not
32546       recognize. Bugfix on 0.2.0.9-alpha.
32547     - When we can't transmit a DNS request due to a network error, retry
32548       it after a while, and eventually transmit a failing response to
32549       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
32550     - If the controller claimed responsibility for a stream, but that
32551       stream never finished making its connection, it would live
32552       forever in circuit_wait state. Now we close it after SocksTimeout
32553       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
32554     - Drop begin cells to a hidden service if they come from the middle
32555       of a circuit. Patch from lark.
32556     - When we erroneously receive two EXTEND cells for the same circuit
32557       ID on the same connection, drop the second. Patch from lark.
32558     - Fix a crash that occurs on exit nodes when a nameserver request
32559       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
32560       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
32561       bug 929.
32562     - Do not assume that a stack-allocated character array will be
32563       64-bit aligned on platforms that demand that uint64_t access is
32564       aligned. Possible fix for bug 604.
32565     - Parse dates and IPv4 addresses in a locale- and libc-independent
32566       manner, to avoid platform-dependent behavior on malformed input.
32567     - Build correctly when configured to build outside the main source
32568       path. Patch from Michael Gold.
32569     - We were already rejecting relay begin cells with destination port
32570       of 0. Now also reject extend cells with destination port or address
32571       of 0. Suggested by lark.
32573   o Minor bugfixes (on 0.2.1.x):
32574     - Don't re-extend introduction circuits if we ran out of RELAY_EARLY
32575       cells. Bugfix on 0.2.1.3-alpha. Fixes more of bug 878.
32576     - If we're an exit node, scrub the IP address to which we are exiting
32577       in the logs. Bugfix on 0.2.1.8-alpha.
32579   o Minor features:
32580     - On Linux, use the prctl call to re-enable core dumps when the user
32581       is option is set.
32582     - New controller event NEWCONSENSUS that lists the networkstatus
32583       lines for every recommended relay. Now controllers like Torflow
32584       can keep up-to-date on which relays they should be using.
32585     - Update to the "February 26 2009" ip-to-country file.
32588 Changes in version 0.2.0.34 - 2009-02-08
32589   Tor 0.2.0.34 features several more security-related fixes. You should
32590   upgrade, especially if you run an exit relay (remote crash) or a
32591   directory authority (remote infinite loop), or you're on an older
32592   (pre-XP) or not-recently-patched Windows (remote exploit).
32594   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
32595   have many known flaws, and nobody should be using them. You should
32596   upgrade. If you're using a Linux or BSD and its packages are obsolete,
32597   stop using those packages and upgrade anyway.
32599   o Security fixes:
32600     - Fix an infinite-loop bug on handling corrupt votes under certain
32601       circumstances. Bugfix on 0.2.0.8-alpha.
32602     - Fix a temporary DoS vulnerability that could be performed by
32603       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
32604     - Avoid a potential crash on exit nodes when processing malformed
32605       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
32606     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
32607       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
32609   o Minor bugfixes:
32610     - Fix compilation on systems where time_t is a 64-bit integer.
32611       Patch from Matthias Drochner.
32612     - Don't consider expiring already-closed client connections. Fixes
32613       bug 893. Bugfix on 0.0.2pre20.
32616 Changes in version 0.2.1.12-alpha - 2009-02-08
32617   Tor 0.2.1.12-alpha features several more security-related fixes. You
32618   should upgrade, especially if you run an exit relay (remote crash) or
32619   a directory authority (remote infinite loop), or you're on an older
32620   (pre-XP) or not-recently-patched Windows (remote exploit). It also
32621   includes a big pile of minor bugfixes and cleanups.
32623   o Security fixes:
32624     - Fix an infinite-loop bug on handling corrupt votes under certain
32625       circumstances. Bugfix on 0.2.0.8-alpha.
32626     - Fix a temporary DoS vulnerability that could be performed by
32627       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
32628     - Avoid a potential crash on exit nodes when processing malformed
32629       input. Remote DoS opportunity. Bugfix on 0.2.1.7-alpha.
32631   o Minor bugfixes:
32632     - Let controllers actually ask for the "clients_seen" event for
32633       getting usage summaries on bridge relays. Bugfix on 0.2.1.10-alpha;
32634       reported by Matt Edman.
32635     - Fix a compile warning on OSX Panther. Fixes bug 913; bugfix against
32636       0.2.1.11-alpha.
32637     - Fix a bug in address parsing that was preventing bridges or hidden
32638       service targets from being at IPv6 addresses.
32639     - Solve a bug that kept hardware crypto acceleration from getting
32640       enabled when accounting was turned on. Fixes bug 907. Bugfix on
32641       0.0.9pre6.
32642     - Remove a bash-ism from configure.in to build properly on non-Linux
32643       platforms. Bugfix on 0.2.1.1-alpha.
32644     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
32645       headers. Bugfix on 0.2.0.10-alpha.
32646     - Don't consider expiring already-closed client connections. Fixes
32647       bug 893. Bugfix on 0.0.2pre20.
32648     - Fix another interesting corner-case of bug 891 spotted by rovv:
32649       Previously, if two hosts had different amounts of clock drift, and
32650       one of them created a new connection with just the wrong timing,
32651       the other might decide to deprecate the new connection erroneously.
32652       Bugfix on 0.1.1.13-alpha.
32653     - Resolve a very rare crash bug that could occur when the user forced
32654       a nameserver reconfiguration during the middle of a nameserver
32655       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
32656     - Support changing value of ServerDNSRandomizeCase during SIGHUP.
32657       Bugfix on 0.2.1.7-alpha.
32658     - If we're using bridges and our network goes away, be more willing
32659       to forgive our bridges and try again when we get an application
32660       request. Bugfix on 0.2.0.x.
32662   o Minor features:
32663     - Support platforms where time_t is 64 bits long. (Congratulations,
32664       NetBSD!) Patch from Matthias Drochner.
32665     - Add a 'getinfo status/clients-seen' controller command, in case
32666       controllers want to hear clients_seen events but connect late.
32668   o Build changes:
32669     - Disable GCC's strict alias optimization by default, to avoid the
32670       likelihood of its introducing subtle bugs whenever our code violates
32671       the letter of C99's alias rules.
32674 Changes in version 0.2.0.33 - 2009-01-21
32675   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
32676   useful to users. It also finally fixes a bug where a relay or client
32677   that's been off for many days would take a long time to bootstrap.
32679   This update also fixes an important security-related bug reported by
32680   Ilja van Sprundel. You should upgrade. (We'll send out more details
32681   about the bug once people have had some time to upgrade.)
32683   o Security fixes:
32684     - Fix a heap-corruption bug that may be remotely triggerable on
32685       some platforms. Reported by Ilja van Sprundel.
32687   o Major bugfixes:
32688     - When a stream at an exit relay is in state "resolving" or
32689       "connecting" and it receives an "end" relay cell, the exit relay
32690       would silently ignore the end cell and not close the stream. If
32691       the client never closes the circuit, then the exit relay never
32692       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
32693       reported by "wood".
32694     - When sending CREATED cells back for a given circuit, use a 64-bit
32695       connection ID to find the right connection, rather than an addr:port
32696       combination. Now that we can have multiple OR connections between
32697       the same ORs, it is no longer possible to use addr:port to uniquely
32698       identify a connection.
32699     - Bridge relays that had DirPort set to 0 would stop fetching
32700       descriptors shortly after startup, and then briefly resume
32701       after a new bandwidth test and/or after publishing a new bridge
32702       descriptor. Bridge users that try to bootstrap from them would
32703       get a recent networkstatus but would get descriptors from up to
32704       18 hours earlier, meaning most of the descriptors were obsolete
32705       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
32706     - Prevent bridge relays from serving their 'extrainfo' document
32707       to anybody who asks, now that extrainfo docs include potentially
32708       sensitive aggregated client geoip summaries. Bugfix on
32709       0.2.0.13-alpha.
32710     - If the cached networkstatus consensus is more than five days old,
32711       discard it rather than trying to use it. In theory it could be
32712       useful because it lists alternate directory mirrors, but in practice
32713       it just means we spend many minutes trying directory mirrors that
32714       are long gone from the network. Also discard router descriptors as
32715       we load them if they are more than five days old, since the onion
32716       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
32718   o Minor bugfixes:
32719     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
32720       could make gcc generate non-functional binary search code. Bugfix
32721       on 0.2.0.10-alpha.
32722     - Build correctly on platforms without socklen_t.
32723     - Compile without warnings on solaris.
32724     - Avoid potential crash on internal error during signature collection.
32725       Fixes bug 864. Patch from rovv.
32726     - Correct handling of possible malformed authority signing key
32727       certificates with internal signature types. Fixes bug 880.
32728       Bugfix on 0.2.0.3-alpha.
32729     - Fix a hard-to-trigger resource leak when logging credential status.
32730       CID 349.
32731     - When we can't initialize DNS because the network is down, do not
32732       automatically stop Tor from starting. Instead, we retry failed
32733       dns_init() every 10 minutes, and change the exit policy to reject
32734       *:* until one succeeds. Fixes bug 691.
32735     - Use 64 bits instead of 32 bits for connection identifiers used with
32736       the controller protocol, to greatly reduce risk of identifier reuse.
32737     - When we're choosing an exit node for a circuit, and we have
32738       no pending streams, choose a good general exit rather than one that
32739       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
32740     - Fix another case of assuming, when a specific exit is requested,
32741       that we know more than the user about what hosts it allows.
32742       Fixes one case of bug 752. Patch from rovv.
32743     - Clip the MaxCircuitDirtiness config option to a minimum of 10
32744       seconds. Warn the user if lower values are given in the
32745       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
32746     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
32747       user if lower values are given in the configuration. Bugfix on
32748       0.1.1.17-rc. Patch by Sebastian.
32749     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
32750       the cache because we already had a v0 descriptor with the same ID.
32751       Bugfix on 0.2.0.18-alpha.
32752     - Fix a race condition when freeing keys shared between main thread
32753       and CPU workers that could result in a memory leak. Bugfix on
32754       0.1.0.1-rc. Fixes bug 889.
32755     - Send a valid END cell back when a client tries to connect to a
32756       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
32757       840. Patch from rovv.
32758     - Check which hops rendezvous stream cells are associated with to
32759       prevent possible guess-the-streamid injection attacks from
32760       intermediate hops. Fixes another case of bug 446. Based on patch
32761       from rovv.
32762     - If a broken client asks a non-exit router to connect somewhere,
32763       do not even do the DNS lookup before rejecting the connection.
32764       Fixes another case of bug 619. Patch from rovv.
32765     - When a relay gets a create cell it can't decrypt (e.g. because it's
32766       using the wrong onion key), we were dropping it and letting the
32767       client time out. Now actually answer with a destroy cell. Fixes
32768       bug 904. Bugfix on 0.0.2pre8.
32770   o Minor bugfixes (hidden services):
32771     - Do not throw away existing introduction points on SIGHUP. Bugfix on
32772       0.0.6pre1. Patch by Karsten. Fixes bug 874.
32774   o Minor features:
32775     - Report the case where all signatures in a detached set are rejected
32776       differently than the case where there is an error handling the
32777       detached set.
32778     - When we realize that another process has modified our cached
32779       descriptors, print out a more useful error message rather than
32780       triggering an assertion. Fixes bug 885. Patch from Karsten.
32781     - Implement the 0x20 hack to better resist DNS poisoning: set the
32782       case on outgoing DNS requests randomly, and reject responses that do
32783       not match the case correctly. This logic can be disabled with the
32784       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
32785       of servers that do not reliably preserve case in replies. See
32786       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
32787       for more info.
32788     - Check DNS replies for more matching fields to better resist DNS
32789       poisoning.
32790     - Never use OpenSSL compression: it wastes RAM and CPU trying to
32791       compress cells, which are basically all encrypted, compressed, or
32792       both.
32795 Changes in version 0.2.1.11-alpha - 2009-01-20
32796   Tor 0.2.1.11-alpha finishes fixing the "if your Tor is off for a
32797   week it will take a long time to bootstrap again" bug. It also fixes
32798   an important security-related bug reported by Ilja van Sprundel. You
32799   should upgrade. (We'll send out more details about the bug once people
32800   have had some time to upgrade.)
32802   o Security fixes:
32803     - Fix a heap-corruption bug that may be remotely triggerable on
32804       some platforms. Reported by Ilja van Sprundel.
32806   o Major bugfixes:
32807     - Discard router descriptors as we load them if they are more than
32808       five days old. Otherwise if Tor is off for a long time and then
32809       starts with cached descriptors, it will try to use the onion
32810       keys in those obsolete descriptors when building circuits. Bugfix
32811       on 0.2.0.x. Fixes bug 887.
32813   o Minor features:
32814     - Try to make sure that the version of Libevent we're running with
32815       is binary-compatible with the one we built with. May address bug
32816       897 and others.
32817     - Make setting ServerDNSRandomizeCase to 0 actually work. Bugfix
32818       for bug 905. Bugfix on 0.2.1.7-alpha.
32819     - Add a new --enable-local-appdata configuration switch to change
32820       the default location of the datadir on win32 from APPDATA to
32821       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
32822       entirely. Patch from coderman.
32824   o Minor bugfixes:
32825     - Make outbound DNS packets respect the OutboundBindAddress setting.
32826       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
32827     - When our circuit fails at the first hop (e.g. we get a destroy
32828       cell back), avoid using that OR connection anymore, and also
32829       tell all the one-hop directory requests waiting for it that they
32830       should fail. Bugfix on 0.2.1.3-alpha.
32831     - In the torify(1) manpage, mention that tsocks will leak your
32832       DNS requests.
32835 Changes in version 0.2.1.10-alpha - 2009-01-06
32836   Tor 0.2.1.10-alpha fixes two major bugs in bridge relays (one that
32837   would make the bridge relay not so useful if it had DirPort set to 0,
32838   and one that could let an attacker learn a little bit of information
32839   about the bridge's users), and a bug that would cause your Tor relay
32840   to ignore a circuit create request it can't decrypt (rather than reply
32841   with an error). It also fixes a wide variety of other bugs.
32843   o Major bugfixes:
32844     - If the cached networkstatus consensus is more than five days old,
32845       discard it rather than trying to use it. In theory it could
32846       be useful because it lists alternate directory mirrors, but in
32847       practice it just means we spend many minutes trying directory
32848       mirrors that are long gone from the network. Helps bug 887 a bit;
32849       bugfix on 0.2.0.x.
32850     - Bridge relays that had DirPort set to 0 would stop fetching
32851       descriptors shortly after startup, and then briefly resume
32852       after a new bandwidth test and/or after publishing a new bridge
32853       descriptor. Bridge users that try to bootstrap from them would
32854       get a recent networkstatus but would get descriptors from up to
32855       18 hours earlier, meaning most of the descriptors were obsolete
32856       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
32857     - Prevent bridge relays from serving their 'extrainfo' document
32858       to anybody who asks, now that extrainfo docs include potentially
32859       sensitive aggregated client geoip summaries. Bugfix on
32860       0.2.0.13-alpha.
32862   o Minor features:
32863     - New controller event "clients_seen" to report a geoip-based summary
32864       of which countries we've seen clients from recently. Now controllers
32865       like Vidalia can show bridge operators that they're actually making
32866       a difference.
32867     - Build correctly against versions of OpenSSL 0.9.8 or later built
32868       without support for deprecated functions.
32869     - Update to the "December 19 2008" ip-to-country file.
32871   o Minor bugfixes (on 0.2.0.x):
32872     - Authorities now vote for the Stable flag for any router whose
32873       weighted MTBF is at least 5 days, regardless of the mean MTBF.
32874     - Do not remove routers as too old if we do not have any consensus
32875       document. Bugfix on 0.2.0.7-alpha.
32876     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
32877       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
32878     - When an exit relay resolves a stream address to a local IP address,
32879       do not just keep retrying that same exit relay over and
32880       over. Instead, just close the stream. Addresses bug 872. Bugfix
32881       on 0.2.0.32. Patch from rovv.
32882     - If a hidden service sends us an END cell, do not consider
32883       retrying the connection; just close it. Patch from rovv.
32884     - When we made bridge authorities stop serving bridge descriptors over
32885       unencrypted links, we also broke DirPort reachability testing for
32886       bridges. So bridges with a non-zero DirPort were printing spurious
32887       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
32888     - When a relay gets a create cell it can't decrypt (e.g. because it's
32889       using the wrong onion key), we were dropping it and letting the
32890       client time out. Now actually answer with a destroy cell. Fixes
32891       bug 904. Bugfix on 0.0.2pre8.
32892     - Squeeze 2-5% out of client performance (according to oprofile) by
32893       improving the implementation of some policy-manipulation functions.
32895   o Minor bugfixes (on 0.2.1.x):
32896     - Make get_interface_address() function work properly again; stop
32897       guessing the wrong parts of our address as our address.
32898     - Do not cannibalize a circuit if we're out of RELAY_EARLY cells to
32899       send on that circuit. Otherwise we might violate the proposal-110
32900       limit. Bugfix on 0.2.1.3-alpha. Partial fix for bug 878. Diagnosis
32901       thanks to Karsten.
32902     - When we're sending non-EXTEND cells to the first hop in a circuit,
32903       for example to use an encrypted directory connection, we don't need
32904       to use RELAY_EARLY cells: the first hop knows what kind of cell
32905       it is, and nobody else can even see the cell type. Conserving
32906       RELAY_EARLY cells makes it easier to cannibalize circuits like
32907       this later.
32908     - Stop logging nameserver addresses in reverse order.
32909     - If we are retrying a directory download slowly over and over, do
32910       not automatically give up after the 254th failure. Bugfix on
32911       0.2.1.9-alpha.
32912     - Resume reporting accurate "stream end" reasons to the local control
32913       port. They were lost in the changes for Proposal 148. Bugfix on
32914       0.2.1.9-alpha.
32916   o Deprecated and removed features:
32917     - The old "tor --version --version" command, which would print out
32918       the subversion "Id" of most of the source files, is now removed. It
32919       turned out to be less useful than we'd expected, and harder to
32920       maintain.
32922   o Code simplifications and refactoring:
32923     - Change our header file guard macros to be less likely to conflict
32924       with system headers. Adam Langley noticed that we were conflicting
32925       with log.h on Android.
32926     - Tool-assisted documentation cleanup. Nearly every function or
32927       static variable in Tor should have its own documentation now.
32930 Changes in version 0.2.1.9-alpha - 2008-12-25
32931   Tor 0.2.1.9-alpha fixes many more bugs, some of them security-related.
32933   o New directory authorities:
32934     - gabelmoo (the authority run by Karsten Loesing) now has a new
32935       IP address.
32937   o Security fixes:
32938     - Never use a connection with a mismatched address to extend a
32939       circuit, unless that connection is canonical. A canonical
32940       connection is one whose address is authenticated by the router's
32941       identity key, either in a NETINFO cell or in a router descriptor.
32942     - Avoid a possible memory corruption bug when receiving hidden service
32943       descriptors. Bugfix on 0.2.1.6-alpha.
32945   o Major bugfixes:
32946     - Fix a logic error that would automatically reject all but the first
32947       configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for
32948       part of bug 813/868. Bug spotted by coderman.
32949     - When a stream at an exit relay is in state "resolving" or
32950       "connecting" and it receives an "end" relay cell, the exit relay
32951       would silently ignore the end cell and not close the stream. If
32952       the client never closes the circuit, then the exit relay never
32953       closes the TCP connection. Bug introduced in 0.1.2.1-alpha;
32954       reported by "wood".
32955     - When we can't initialize DNS because the network is down, do not
32956       automatically stop Tor from starting. Instead, retry failed
32957       dns_init() every 10 minutes, and change the exit policy to reject
32958       *:* until one succeeds. Fixes bug 691.
32960   o Minor features:
32961     - Give a better error message when an overzealous init script says
32962       "sudo -u username tor --user username". Makes Bug 882 easier for
32963       users to diagnose.
32964     - When a directory authority gives us a new guess for our IP address,
32965       log which authority we used. Hopefully this will help us debug
32966       the recent complaints about bad IP address guesses.
32967     - Detect svn revision properly when we're using git-svn.
32968     - Try not to open more than one descriptor-downloading connection
32969       to an authority at once. This should reduce load on directory
32970       authorities. Fixes bug 366.
32971     - Add cross-certification to newly generated certificates, so that
32972       a signing key is enough information to look up a certificate.
32973       Partial implementation of proposal 157.
32974     - Start serving certificates by <identity digest, signing key digest>
32975       pairs. Partial implementation of proposal 157.
32976     - Clients now never report any stream end reason except 'MISC'.
32977       Implements proposal 148.
32978     - On platforms with a maximum syslog string length, truncate syslog
32979       messages to that length ourselves, rather than relying on the
32980       system to do it for us.
32981     - Optimize out calls to time(NULL) that occur for every IO operation,
32982       or for every cell. On systems where time() is a slow syscall,
32983       this fix will be slightly helpful.
32984     - Exit servers can now answer resolve requests for ip6.arpa addresses.
32985     - When we download a descriptor that we then immediately (as
32986       a directory authority) reject, do not retry downloading it right
32987       away. Should save some bandwidth on authorities. Fix for bug
32988       888. Patch by Sebastian Hahn.
32989     - When a download gets us zero good descriptors, do not notify
32990       Tor that new directory information has arrived.
32991     - Avoid some nasty corner cases in the logic for marking connections
32992       as too old or obsolete or noncanonical for circuits. Partial
32993       bugfix on bug 891.
32995   o Minor features (controller):
32996     - New CONSENSUS_ARRIVED event to note when a new consensus has
32997       been fetched and validated.
32998     - When we realize that another process has modified our cached
32999       descriptors file, print out a more useful error message rather
33000       than triggering an assertion. Fixes bug 885. Patch from Karsten.
33001     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
33002       controllers to prevent SIGHUP from reloading the
33003       configuration. Fixes bug 856.
33005   o Minor bugfixes:
33006     - Resume using the correct "REASON=" stream when telling the
33007       controller why we closed a stream. Bugfix in 0.2.1.1-alpha.
33008     - When a canonical connection appears later in our internal list
33009       than a noncanonical one for a given OR ID, always use the
33010       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
33011       Spotted by rovv.
33012     - Clip the MaxCircuitDirtiness config option to a minimum of 10
33013       seconds. Warn the user if lower values are given in the
33014       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
33015     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
33016       user if lower values are given in the configuration. Bugfix on
33017       0.1.1.17-rc. Patch by Sebastian.
33018     - Fix a race condition when freeing keys shared between main thread
33019       and CPU workers that could result in a memory leak. Bugfix on
33020       0.1.0.1-rc. Fixes bug 889.
33022   o Minor bugfixes (hidden services):
33023     - Do not throw away existing introduction points on SIGHUP (bugfix on
33024       0.0.6pre1); also, do not stall hidden services because we're
33025       throwing away introduction points; bugfix on 0.2.1.7-alpha. Spotted
33026       by John Brooks. Patch by Karsten. Fixes bug 874.
33027     - Fix a memory leak when we decline to add a v2 rendezvous
33028       descriptor to the cache because we already had a v0 descriptor
33029       with the same ID. Bugfix on 0.2.0.18-alpha.
33031   o Deprecated and removed features:
33032     - RedirectExits has been removed. It was deprecated since
33033       0.2.0.3-alpha.
33034     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
33035       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
33036     - Cell pools are now always enabled; --disable-cell-pools is ignored.
33038   o Code simplifications and refactoring:
33039     - Rename the confusing or_is_obsolete field to the more appropriate
33040       is_bad_for_new_circs, and move it to or_connection_t where it
33041       belongs.
33042     - Move edge-only flags from connection_t to edge_connection_t: not
33043       only is this better coding, but on machines of plausible alignment,
33044       it should save 4-8 bytes per connection_t. "Every little bit helps."
33045     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
33046       for consistency; keep old option working for backward compatibility.
33047     - Simplify the code for finding connections to use for a circuit.
33050 Changes in version 0.2.1.8-alpha - 2008-12-08
33051   Tor 0.2.1.8-alpha fixes some crash bugs in earlier alpha releases,
33052   builds better on unusual platforms like Solaris and old OS X, and
33053   fixes a variety of other issues.
33055   o Major features:
33056     - New DirPortFrontPage option that takes an html file and publishes
33057       it as "/" on the DirPort. Now relay operators can provide a
33058       disclaimer without needing to set up a separate webserver. There's
33059       a sample disclaimer in contrib/tor-exit-notice.html.
33061   o Security fixes:
33062     - When the client is choosing entry guards, now it selects at most
33063       one guard from a given relay family. Otherwise we could end up with
33064       all of our entry points into the network run by the same operator.
33065       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
33067   o Major bugfixes:
33068     - Fix a DOS opportunity during the voting signature collection process
33069       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
33070     - Fix a possible segfault when establishing an exit connection. Bugfix
33071       on 0.2.1.5-alpha.
33073   o Minor bugfixes:
33074     - Get file locking working on win32. Bugfix on 0.2.1.6-alpha. Fixes
33075       bug 859.
33076     - Made Tor a little less aggressive about deleting expired
33077       certificates. Partial fix for bug 854.
33078     - Stop doing unaligned memory access that generated bus errors on
33079       sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
33080     - Fix a crash bug when changing EntryNodes from the controller. Bugfix
33081       on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
33082     - Make USR2 log-level switch take effect immediately. Bugfix on
33083       0.1.2.8-beta.
33084     - If one win32 nameserver fails to get added, continue adding the
33085       rest, and don't automatically fail.
33086     - Use fcntl() for locking when flock() is not available. Should fix
33087       compilation on Solaris. Should fix Bug 873. Bugfix on 0.2.1.6-alpha.
33088     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
33089       could make gcc generate non-functional binary search code. Bugfix
33090       on 0.2.0.10-alpha.
33091     - Build correctly on platforms without socklen_t.
33092     - Avoid potential crash on internal error during signature collection.
33093       Fixes bug 864. Patch from rovv.
33094     - Do not use C's stdio library for writing to log files. This will
33095       improve logging performance by a minute amount, and will stop
33096       leaking fds when our disk is full. Fixes bug 861.
33097     - Stop erroneous use of O_APPEND in cases where we did not in fact
33098       want to re-seek to the end of a file before every last write().
33099     - Correct handling of possible malformed authority signing key
33100       certificates with internal signature types. Fixes bug 880. Bugfix
33101       on 0.2.0.3-alpha.
33102     - Fix a hard-to-trigger resource leak when logging credential status.
33103       CID 349.
33105   o Minor features:
33106     - Directory mirrors no longer fetch the v1 directory or
33107       running-routers files. They are obsolete, and nobody asks for them
33108       anymore. This is the first step to making v1 authorities obsolete.
33110   o Minor features (controller):
33111     - Return circuit purposes in response to GETINFO circuit-status. Fixes
33112       bug 858.
33115 Changes in version 0.2.0.32 - 2008-11-20
33116   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
33117   packages (and maybe other packages) noticed by Theo de Raadt, fixes
33118   a smaller security flaw that might allow an attacker to access local
33119   services, further improves hidden service performance, and fixes a
33120   variety of other issues.
33122   o Security fixes:
33123     - The "User" and "Group" config options did not clear the
33124       supplementary group entries for the Tor process. The "User" option
33125       is now more robust, and we now set the groups to the specified
33126       user's primary group. The "Group" option is now ignored. For more
33127       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
33128       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
33129       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
33130     - The "ClientDNSRejectInternalAddresses" config option wasn't being
33131       consistently obeyed: if an exit relay refuses a stream because its
33132       exit policy doesn't allow it, we would remember what IP address
33133       the relay said the destination address resolves to, even if it's
33134       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
33136   o Major bugfixes:
33137     - Fix a DOS opportunity during the voting signature collection process
33138       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
33140   o Major bugfixes (hidden services):
33141     - When fetching v0 and v2 rendezvous service descriptors in parallel,
33142       we were failing the whole hidden service request when the v0
33143       descriptor fetch fails, even if the v2 fetch is still pending and
33144       might succeed. Similarly, if the last v2 fetch fails, we were
33145       failing the whole hidden service request even if a v0 fetch is
33146       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
33147     - When extending a circuit to a hidden service directory to upload a
33148       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
33149       requests failed, because the router descriptor has not been
33150       downloaded yet. In these cases, do not attempt to upload the
33151       rendezvous descriptor, but wait until the router descriptor is
33152       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
33153       descriptor from a hidden service directory for which the router
33154       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
33155       on 0.2.0.10-alpha.
33157   o Minor bugfixes:
33158     - Fix several infrequent memory leaks spotted by Coverity.
33159     - When testing for libevent functions, set the LDFLAGS variable
33160       correctly. Found by Riastradh.
33161     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
33162       bootstrapping with tunneled directory connections. Bugfix on
33163       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
33164     - When asked to connect to A.B.exit:80, if we don't know the IP for A
33165       and we know that server B rejects most-but-not all connections to
33166       port 80, we would previously reject the connection. Now, we assume
33167       the user knows what they were asking for. Fixes bug 752. Bugfix
33168       on 0.0.9rc5. Diagnosed by BarkerJr.
33169     - If we overrun our per-second write limits a little, count this as
33170       having used up our write allocation for the second, and choke
33171       outgoing directory writes. Previously, we had only counted this when
33172       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
33173       Bugfix on 0.2.0.x (??).
33174     - Remove the old v2 directory authority 'lefkada' from the default
33175       list. It has been gone for many months.
33176     - Stop doing unaligned memory access that generated bus errors on
33177       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
33178     - Make USR2 log-level switch take effect immediately. Bugfix on
33179       0.1.2.8-beta.
33181   o Minor bugfixes (controller):
33182     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
33183       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
33186 Changes in version 0.2.1.7-alpha - 2008-11-08
33187   Tor 0.2.1.7-alpha fixes a major security problem in Debian and Ubuntu
33188   packages (and maybe other packages) noticed by Theo de Raadt, fixes
33189   a smaller security flaw that might allow an attacker to access local
33190   services, adds better defense against DNS poisoning attacks on exit
33191   relays, further improves hidden service performance, and fixes a
33192   variety of other issues.
33194   o Security fixes:
33195     - The "ClientDNSRejectInternalAddresses" config option wasn't being
33196       consistently obeyed: if an exit relay refuses a stream because its
33197       exit policy doesn't allow it, we would remember what IP address
33198       the relay said the destination address resolves to, even if it's
33199       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
33200     - The "User" and "Group" config options did not clear the
33201       supplementary group entries for the Tor process. The "User" option
33202       is now more robust, and we now set the groups to the specified
33203       user's primary group. The "Group" option is now ignored. For more
33204       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
33205       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
33206       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848.
33207     - Do not use or believe expired v3 authority certificates. Patch
33208       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
33210   o Minor features:
33211     - Now NodeFamily and MyFamily config options allow spaces in
33212       identity fingerprints, so it's easier to paste them in.
33213       Suggested by Lucky Green.
33214     - Implement the 0x20 hack to better resist DNS poisoning: set the
33215       case on outgoing DNS requests randomly, and reject responses that do
33216       not match the case correctly. This logic can be disabled with the
33217       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
33218       of servers that do not reliably preserve case in replies. See
33219       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
33220       for more info.
33221     - Preserve case in replies to DNSPort requests in order to support
33222       the 0x20 hack for resisting DNS poisoning attacks.
33224   o Hidden service performance improvements:
33225     - When the client launches an introduction circuit, retry with a
33226       new circuit after 30 seconds rather than 60 seconds.
33227     - Launch a second client-side introduction circuit in parallel
33228       after a delay of 15 seconds (based on work by Christian Wilms).
33229     - Hidden services start out building five intro circuits rather
33230       than three, and when the first three finish they publish a service
33231       descriptor using those. Now we publish our service descriptor much
33232       faster after restart.
33234   o Minor bugfixes:
33235     - Minor fix in the warning messages when you're having problems
33236       bootstrapping; also, be more forgiving of bootstrap problems when
33237       we're still making incremental progress on a given bootstrap phase.
33238     - When we're choosing an exit node for a circuit, and we have
33239       no pending streams, choose a good general exit rather than one that
33240       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
33241     - Send a valid END cell back when a client tries to connect to a
33242       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
33243       840. Patch from rovv.
33244     - If a broken client asks a non-exit router to connect somewhere,
33245       do not even do the DNS lookup before rejecting the connection.
33246       Fixes another case of bug 619. Patch from rovv.
33247     - Fix another case of assuming, when a specific exit is requested,
33248       that we know more than the user about what hosts it allows.
33249       Fixes another case of bug 752. Patch from rovv.
33250     - Check which hops rendezvous stream cells are associated with to
33251       prevent possible guess-the-streamid injection attacks from
33252       intermediate hops. Fixes another case of bug 446. Based on patch
33253       from rovv.
33254     - Avoid using a negative right-shift when comparing 32-bit
33255       addresses. Possible fix for bug 845 and bug 811.
33256     - Make the assert_circuit_ok() function work correctly on circuits that
33257       have already been marked for close.
33258     - Fix read-off-the-end-of-string error in unit tests when decoding
33259       introduction points.
33260     - Fix uninitialized size field for memory area allocation: may improve
33261       memory performance during directory parsing.
33262     - Treat duplicate certificate fetches as failures, so that we do
33263       not try to re-fetch an expired certificate over and over and over.
33264     - Do not say we're fetching a certificate when we'll in fact skip it
33265       because of a pending download.
33268 Changes in version 0.2.1.6-alpha - 2008-09-30
33269   Tor 0.2.1.6-alpha further improves performance and robustness of
33270   hidden services, starts work on supporting per-country relay selection,
33271   and fixes a variety of smaller issues.
33273   o Major features:
33274     - Implement proposal 121: make it possible to build hidden services
33275       that only certain clients are allowed to connect to. This is
33276       enforced at several points, so that unauthorized clients are unable
33277       to send INTRODUCE cells to the service, or even (depending on the
33278       type of authentication) to learn introduction points. This feature
33279       raises the bar for certain kinds of active attacks against hidden
33280       services. Code by Karsten Loesing.
33281     - Relays now store and serve v2 hidden service descriptors by default,
33282       i.e., the new default value for HidServDirectoryV2 is 1. This is
33283       the last step in proposal 114, which aims to make hidden service
33284       lookups more reliable.
33285     - Start work to allow node restrictions to include country codes. The
33286       syntax to exclude nodes in a country with country code XX is
33287       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
33288       refinement to decide what config options should take priority if
33289       you ask to both use a particular node and exclude it.
33290     - Allow ExitNodes list to include IP ranges and country codes, just
33291       like the Exclude*Nodes lists. Patch from Robert Hogan.
33293   o Major bugfixes:
33294     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
33295       Tor to fail to start if you had it configured to use a bridge
33296       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
33297     - When extending a circuit to a hidden service directory to upload a
33298       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
33299       requests failed, because the router descriptor had not been
33300       downloaded yet. In these cases, we now wait until the router
33301       descriptor is downloaded, and then retry. Likewise, clients
33302       now skip over a hidden service directory if they don't yet have
33303       its router descriptor, rather than futilely requesting it and
33304       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
33305       on 0.2.0.10-alpha.
33306     - When fetching v0 and v2 rendezvous service descriptors in parallel,
33307       we were failing the whole hidden service request when the v0
33308       descriptor fetch fails, even if the v2 fetch is still pending and
33309       might succeed. Similarly, if the last v2 fetch fails, we were
33310       failing the whole hidden service request even if a v0 fetch is
33311       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
33312     - DNS replies need to have names matching their requests, but
33313       these names should be in the questions section, not necessarily
33314       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
33316   o Minor features:
33317     - Update to the "September 1 2008" ip-to-country file.
33318     - Allow ports 465 and 587 in the default exit policy again. We had
33319       rejected them in 0.1.0.15, because back in 2005 they were commonly
33320       misconfigured and ended up as spam targets. We hear they are better
33321       locked down these days.
33322     - Use a lockfile to make sure that two Tor processes are not
33323       simultaneously running with the same datadir.
33324     - Serve the latest v3 networkstatus consensus via the control
33325       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
33326     - Better logging about stability/reliability calculations on directory
33327       servers.
33328     - Drop the requirement to have an open dir port for storing and
33329       serving v2 hidden service descriptors.
33330     - Directory authorities now serve a /tor/dbg-stability.txt URL to
33331       help debug WFU and MTBF calculations.
33332     - Implement most of Proposal 152: allow specialized servers to permit
33333       single-hop circuits, and clients to use those servers to build
33334       single-hop circuits when using a specialized controller. Patch
33335       from Josh Albrecht. Resolves feature request 768.
33336     - Add a -p option to tor-resolve for specifying the SOCKS port: some
33337       people find host:port too confusing.
33338     - Make TrackHostExit mappings expire a while after their last use, not
33339       after their creation. Patch from Robert Hogan.
33340     - Provide circuit purposes along with circuit events to the controller.
33342   o Minor bugfixes:
33343     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
33344       Reported by Tas.
33345     - Fixed some memory leaks -- some quite frequent, some almost
33346       impossible to trigger -- based on results from Coverity.
33347     - When testing for libevent functions, set the LDFLAGS variable
33348       correctly. Found by Riastradh.
33349     - Fix an assertion bug in parsing policy-related options; possible fix
33350       for bug 811.
33351     - Catch and report a few more bootstrapping failure cases when Tor
33352       fails to establish a TCP connection. Cleanup on 0.2.1.x.
33353     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
33354       bootstrapping with tunneled directory connections. Bugfix on
33355       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
33356     - When asked to connect to A.B.exit:80, if we don't know the IP for A
33357       and we know that server B rejects most-but-not all connections to
33358       port 80, we would previously reject the connection. Now, we assume
33359       the user knows what they were asking for. Fixes bug 752. Bugfix
33360       on 0.0.9rc5. Diagnosed by BarkerJr.
33361     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
33362       service directories if they have no advertised dir port. Bugfix
33363       on 0.2.0.10-alpha.
33364     - If we overrun our per-second write limits a little, count this as
33365       having used up our write allocation for the second, and choke
33366       outgoing directory writes. Previously, we had only counted this when
33367       we had met our limits precisely. Fixes bug 824. Patch by rovv.
33368       Bugfix on 0.2.0.x (??).
33369     - Avoid a "0 divided by 0" calculation when calculating router uptime
33370       at directory authorities. Bugfix on 0.2.0.8-alpha.
33371     - Make DNS resolved controller events into "CLOSED", not
33372       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
33373       bug 807.
33374     - Fix a bug where an unreachable relay would establish enough
33375       reachability testing circuits to do a bandwidth test -- if
33376       we already have a connection to the middle hop of the testing
33377       circuit, then it could establish the last hop by using the existing
33378       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
33379       circuits no longer use entry guards in 0.2.1.3-alpha.
33380     - If we have correct permissions on $datadir, we complain to stdout
33381       and fail to start. But dangerous permissions on
33382       $datadir/cached-status/ would cause us to open a log and complain
33383       there. Now complain to stdout and fail to start in both cases. Fixes
33384       bug 820, reported by seeess.
33385     - Remove the old v2 directory authority 'lefkada' from the default
33386       list. It has been gone for many months.
33388   o Code simplifications and refactoring:
33389     - Revise the connection_new functions so that a more typesafe variant
33390       exists. This will work better with Coverity, and let us find any
33391       actual mistakes we're making here.
33392     - Refactor unit testing logic so that dmalloc can be used sensibly
33393       with unit tests to check for memory leaks.
33394     - Move all hidden-service related fields from connection and circuit
33395       structure to substructures: this way they won't eat so much memory.
33398 Changes in version 0.2.0.31 - 2008-09-03
33399   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
33400   a big bug we're seeing where in rare cases traffic from one Tor stream
33401   gets mixed into another stream, and fixes a variety of smaller issues.
33403   o Major bugfixes:
33404     - Make sure that two circuits can never exist on the same connection
33405       with the same circuit ID, even if one is marked for close. This
33406       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
33407     - Relays now reject risky extend cells: if the extend cell includes
33408       a digest of all zeroes, or asks to extend back to the relay that
33409       sent the extend cell, tear down the circuit. Ideas suggested
33410       by rovv.
33411     - If not enough of our entry guards are available so we add a new
33412       one, we might use the new one even if it overlapped with the
33413       current circuit's exit relay (or its family). Anonymity bugfix
33414       pointed out by rovv.
33416   o Minor bugfixes:
33417     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
33418       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
33419     - Correctly detect the presence of the linux/netfilter_ipv4.h header
33420       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
33421     - Pick size of default geoip filename string correctly on windows.
33422       Fixes bug 806. Bugfix on 0.2.0.30.
33423     - Make the autoconf script accept the obsolete --with-ssl-dir
33424       option as an alias for the actually-working --with-openssl-dir
33425       option. Fix the help documentation to recommend --with-openssl-dir.
33426       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
33427     - When using the TransPort option on OpenBSD, and using the User
33428       option to change UID and drop privileges, make sure to open
33429       /dev/pf before dropping privileges. Fixes bug 782. Patch from
33430       Christopher Davis. Bugfix on 0.1.2.1-alpha.
33431     - Try to attach connections immediately upon receiving a RENDEZVOUS2
33432       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
33433       on the client side when connecting to a hidden service. Bugfix
33434       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
33435     - When closing an application-side connection because its circuit is
33436       getting torn down, generate the stream event correctly. Bugfix on
33437       0.1.2.x. Anonymous patch.
33440 Changes in version 0.2.1.5-alpha - 2008-08-31
33441   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
33442   in a lot of the infrastructure for adding authorization to hidden
33443   services, lays the groundwork for having clients read their load
33444   balancing information out of the networkstatus consensus rather than
33445   the individual router descriptors, addresses two potential anonymity
33446   issues, and fixes a variety of smaller issues.
33448   o Major features:
33449     - Convert many internal address representations to optionally hold
33450       IPv6 addresses.
33451     - Generate and accept IPv6 addresses in many protocol elements.
33452     - Make resolver code handle nameservers located at ipv6 addresses.
33453     - Begin implementation of proposal 121 ("Client authorization for
33454       hidden services"): configure hidden services with client
33455       authorization, publish descriptors for them, and configure
33456       authorization data for hidden services at clients. The next
33457       step is to actually access hidden services that perform client
33458       authorization.
33459     - More progress toward proposal 141: Network status consensus
33460       documents and votes now contain bandwidth information for each
33461       router and a summary of that router's exit policy. Eventually this
33462       will be used by clients so that they do not have to download every
33463       known descriptor before building circuits.
33465   o Major bugfixes (on 0.2.0.x and before):
33466     - When sending CREATED cells back for a given circuit, use a 64-bit
33467       connection ID to find the right connection, rather than an addr:port
33468       combination. Now that we can have multiple OR connections between
33469       the same ORs, it is no longer possible to use addr:port to uniquely
33470       identify a connection.
33471     - Relays now reject risky extend cells: if the extend cell includes
33472       a digest of all zeroes, or asks to extend back to the relay that
33473       sent the extend cell, tear down the circuit. Ideas suggested
33474       by rovv.
33475     - If not enough of our entry guards are available so we add a new
33476       one, we might use the new one even if it overlapped with the
33477       current circuit's exit relay (or its family). Anonymity bugfix
33478       pointed out by rovv.
33480   o Minor bugfixes:
33481     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
33482       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
33483     - When using the TransPort option on OpenBSD, and using the User
33484       option to change UID and drop privileges, make sure to open /dev/pf
33485       before dropping privileges. Fixes bug 782. Patch from Christopher
33486       Davis. Bugfix on 0.1.2.1-alpha.
33487     - Correctly detect the presence of the linux/netfilter_ipv4.h header
33488       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
33489     - Add a missing safe_str() call for a debug log message.
33490     - Use 64 bits instead of 32 bits for connection identifiers used with
33491       the controller protocol, to greatly reduce risk of identifier reuse.
33492     - Make the autoconf script accept the obsolete --with-ssl-dir
33493       option as an alias for the actually-working --with-openssl-dir
33494       option. Fix the help documentation to recommend --with-openssl-dir.
33495       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
33497   o Minor features:
33498     - Rate-limit too-many-sockets messages: when they happen, they happen
33499       a lot. Resolves bug 748.
33500     - Resist DNS poisoning a little better by making sure that names in
33501       answer sections match.
33502     - Print the SOCKS5 error message string as well as the error code
33503       when a tor-resolve request fails. Patch from Jacob.
33506 Changes in version 0.2.1.4-alpha - 2008-08-04
33507   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
33509   o Major bugfixes:
33510     - The address part of exit policies was not correctly written
33511       to router descriptors. This generated router descriptors that failed
33512       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
33513       on 0.2.1.3-alpha.
33514     - Tor triggered a false assert when extending a circuit to a relay
33515       but we already have a connection open to that relay. Noticed by
33516       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
33518   o Minor bugfixes:
33519     - Fix a hidden service logging bug: in some edge cases, the router
33520       descriptor of a previously picked introduction point becomes
33521       obsolete and we need to give up on it rather than continually
33522       complaining that it has become obsolete. Observed by xiando. Bugfix
33523       on 0.2.1.3-alpha.
33525   o Removed features:
33526     - Take out the TestVia config option, since it was a workaround for
33527       a bug that was fixed in Tor 0.1.1.21.
33530 Changes in version 0.2.1.3-alpha - 2008-08-03
33531   Tor 0.2.1.3-alpha implements most of the pieces to prevent
33532   infinite-length circuit attacks (see proposal 110); fixes a bug that
33533   might cause exit relays to corrupt streams they send back; allows
33534   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
33535   ExcludeExitNodes config options; and fixes a big pile of bugs.
33537   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
33538     - Send a bootstrap problem "warn" event on the first problem if the
33539       reason is NO_ROUTE (that is, our network is down).
33541   o Major features:
33542     - Implement most of proposal 110: The first K cells to be sent
33543       along a circuit are marked as special "early" cells; only K "early"
33544       cells will be allowed. Once this code is universal, we can block
33545       certain kinds of DOS attack by requiring that EXTEND commands must
33546       be sent using an "early" cell.
33548   o Major bugfixes:
33549     - Try to attach connections immediately upon receiving a RENDEZVOUS2
33550       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
33551       on the client side when connecting to a hidden service. Bugfix
33552       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
33553     - Ensure that two circuits can never exist on the same connection
33554       with the same circuit ID, even if one is marked for close. This
33555       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
33557   o Minor features:
33558     - When relays do their initial bandwidth measurement, don't limit
33559       to just our entry guards for the test circuits. Otherwise we tend
33560       to have multiple test circuits going through a single entry guard,
33561       which makes our bandwidth test less accurate. Fixes part of bug 654;
33562       patch contributed by Josh Albrecht.
33563     - Add an ExcludeExitNodes option so users can list a set of nodes
33564       that should be be excluded from the exit node position, but
33565       allowed elsewhere. Implements proposal 151.
33566     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
33567       ExcludeNodes and ExcludeExitNodes lists.
33568     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
33569       be more efficient. Formerly it was quadratic in the number of
33570       servers; now it should be linear. Fixes bug 509.
33571     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
33572       and n_conn_id_digest fields into a separate structure that's
33573       only needed when the circuit has not yet attached to an n_conn.
33575   o Minor bugfixes:
33576     - Change the contrib/tor.logrotate script so it makes the new
33577       logs as "_tor:_tor" rather than the default, which is generally
33578       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
33579     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
33580       warnings (occasionally), but it can also cause the compiler to
33581       eliminate error-checking code. Suggested by Peter Gutmann.
33582     - When a hidden service is giving up on an introduction point candidate
33583       that was not included in the last published rendezvous descriptor,
33584       don't reschedule publication of the next descriptor. Fixes bug 763.
33585       Bugfix on 0.0.9.3.
33586     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
33587       HiddenServiceExcludeNodes as obsolete: they never worked properly,
33588       and nobody claims to be using them. Fixes bug 754. Bugfix on
33589       0.1.0.1-rc. Patch from Christian Wilms.
33590     - Fix a small alignment and memory-wasting bug on buffer chunks.
33591       Spotted by rovv.
33593   o Minor bugfixes (controller):
33594     - When closing an application-side connection because its circuit
33595       is getting torn down, generate the stream event correctly.
33596       Bugfix on 0.1.2.x. Anonymous patch.
33598   o Removed features:
33599     - Remove all backward-compatibility code to support relays running
33600       versions of Tor so old that they no longer work at all on the
33601       Tor network.
33604 Changes in version 0.2.0.30 - 2008-07-15
33605   o Minor bugfixes:
33606     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
33607       warnings (occasionally), but it can also cause the compiler to
33608       eliminate error-checking code. Suggested by Peter Gutmann.
33611 Changes in version 0.2.0.29-rc - 2008-07-08
33612   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
33613   hidden-service performance bugs, and fixes a bunch of smaller bugs.
33615   o Major bugfixes:
33616     - If you have more than one bridge but don't know their keys,
33617       you would only launch a request for the descriptor of the first one
33618       on your list. (Tor considered launching requests for the others, but
33619       found that it already had a connection on the way for $0000...0000
33620       so it didn't open another.) Bugfix on 0.2.0.x.
33621     - If you have more than one bridge but don't know their keys, and the
33622       connection to one of the bridges failed, you would cancel all
33623       pending bridge connections. (After all, they all have the same
33624       digest.) Bugfix on 0.2.0.x.
33625     - When a hidden service was trying to establish an introduction point,
33626       and Tor had built circuits preemptively for such purposes, we
33627       were ignoring all the preemptive circuits and launching a new one
33628       instead. Bugfix on 0.2.0.14-alpha.
33629     - When a hidden service was trying to establish an introduction point,
33630       and Tor *did* manage to reuse one of the preemptively built
33631       circuits, it didn't correctly remember which one it used,
33632       so it asked for another one soon after, until there were no
33633       more preemptive circuits, at which point it launched one from
33634       scratch. Bugfix on 0.0.9.x.
33635     - Make directory servers include the X-Your-Address-Is: http header in
33636       their responses even for begin_dir conns. Now clients who only
33637       ever use begin_dir connections still have a way to learn their IP
33638       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
33640   o Minor bugfixes:
33641     - Fix a macro/CPP interaction that was confusing some compilers:
33642       some GCCs don't like #if/#endif pairs inside macro arguments.
33643       Fixes bug 707.
33644     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
33645       Fixes bug 704; fix from Steven Murdoch.
33646     - When opening /dev/null in finish_daemonize(), do not pass the
33647       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
33648       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
33649     - Correctly detect transparent proxy support on Linux hosts that
33650       require in.h to be included before netfilter_ipv4.h. Patch
33651       from coderman.
33652     - Disallow session resumption attempts during the renegotiation
33653       stage of the v2 handshake protocol. Clients should never be trying
33654       session resumption at this point, but apparently some did, in
33655       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
33656       found by Geoff Goodell.
33659 Changes in version 0.2.1.2-alpha - 2008-06-20
33660   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
33661   make it easier to set up your own private Tor network; fixes several
33662   big bugs with using more than one bridge relay; fixes a big bug with
33663   offering hidden services quickly after Tor starts; and uses a better
33664   API for reporting potential bootstrapping problems to the controller.
33666   o Major features:
33667     - New TestingTorNetwork config option to allow adjustment of
33668       previously constant values that, while reasonable, could slow
33669       bootstrapping. Implements proposal 135. Patch from Karsten.
33671   o Major bugfixes:
33672     - If you have more than one bridge but don't know their digests,
33673       you would only learn a request for the descriptor of the first one
33674       on your list. (Tor considered launching requests for the others, but
33675       found that it already had a connection on the way for $0000...0000
33676       so it didn't open another.) Bugfix on 0.2.0.x.
33677     - If you have more than one bridge but don't know their digests,
33678       and the connection to one of the bridges failed, you would cancel
33679       all pending bridge connections. (After all, they all have the
33680       same digest.) Bugfix on 0.2.0.x.
33681     - When establishing a hidden service, introduction points that
33682       originate from cannibalized circuits are completely ignored and not
33683       included in rendezvous service descriptors. This might be another
33684       reason for delay in making a hidden service available. Bugfix
33685       from long ago (0.0.9.x?)
33687   o Minor features:
33688     - Allow OpenSSL to use dynamic locks if it wants.
33689     - When building a consensus, do not include routers that are down.
33690       This will cut down 30% to 40% on consensus size. Implements
33691       proposal 138.
33692     - In directory authorities' approved-routers files, allow
33693       fingerprints with or without space.
33694     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
33695       controller can query our current bootstrap state in case it attaches
33696       partway through and wants to catch up.
33697     - Send an initial "Starting" bootstrap status event, so we have a
33698       state to start out in.
33700   o Minor bugfixes:
33701     - Asking for a conditional consensus at .../consensus/<fingerprints>
33702       would crash a dirserver if it did not already have a
33703       consensus. Bugfix on 0.2.1.1-alpha.
33704     - Clean up some macro/CPP interactions: some GCC versions don't like
33705       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
33706       0.2.0.x.
33708   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
33709     - Directory authorities shouldn't complain about bootstrapping
33710       problems just because they do a lot of reachability testing and
33711       some of the connection attempts fail.
33712     - Start sending "count" and "recommendation" key/value pairs in
33713       bootstrap problem status events, so the controller can hear about
33714       problems even before Tor decides they're worth reporting for sure.
33715     - If you're using bridges, generate "bootstrap problem" warnings
33716       as soon as you run out of working bridges, rather than waiting
33717       for ten failures -- which will never happen if you have less than
33718       ten bridges.
33719     - If we close our OR connection because there's been a circuit
33720       pending on it for too long, we were telling our bootstrap status
33721       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
33724 Changes in version 0.2.1.1-alpha - 2008-06-13
33725   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
33726   were making the Tor process bloat especially on Linux; makes our TLS
33727   handshake blend in better; sends "bootstrap phase" status events to
33728   the controller, so it can keep the user informed of progress (and
33729   problems) fetching directory information and establishing circuits;
33730   and adds a variety of smaller features.
33732   o Major features:
33733     - More work on making our TLS handshake blend in: modify the list
33734       of ciphers advertised by OpenSSL in client mode to even more
33735       closely resemble a common web browser. We cheat a little so that
33736       we can advertise ciphers that the locally installed OpenSSL doesn't
33737       know about.
33738     - Start sending "bootstrap phase" status events to the controller,
33739       so it can keep the user informed of progress fetching directory
33740       information and establishing circuits. Also inform the controller
33741       if we think we're stuck at a particular bootstrap phase. Implements
33742       proposal 137.
33743     - Resume using OpenSSL's RAND_poll() for better (and more portable)
33744       cross-platform entropy collection again. We used to use it, then
33745       stopped using it because of a bug that could crash systems that
33746       called RAND_poll when they had a lot of fds open. It looks like the
33747       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
33748       at startup, and to call RAND_poll() when we reseed later only if
33749       we have a non-buggy OpenSSL version.
33751   o Major bugfixes:
33752     - When we choose to abandon a new entry guard because we think our
33753       older ones might be better, close any circuits pending on that
33754       new entry guard connection. This fix should make us recover much
33755       faster when our network is down and then comes back. Bugfix on
33756       0.1.2.8-beta; found by lodger.
33758   o Memory fixes and improvements:
33759     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
33760       to avoid unused RAM in buffer chunks and memory pools.
33761     - Speed up parsing and cut down on memory fragmentation by using
33762       stack-style allocations for parsing directory objects. Previously,
33763       this accounted for over 40% of allocations from within Tor's code
33764       on a typical directory cache.
33765     - Use a Bloom filter rather than a digest-based set to track which
33766       descriptors we need to keep around when we're cleaning out old
33767       router descriptors. This speeds up the computation significantly,
33768       and may reduce fragmentation.
33769     - Reduce the default smartlist size from 32 to 16; it turns out that
33770       most smartlists hold around 8-12 elements tops.
33771     - Make dumpstats() log the fullness and size of openssl-internal
33772       buffers.
33773     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
33774       patch to their OpenSSL, turn it on to save memory on servers. This
33775       patch will (with any luck) get included in a mainline distribution
33776       before too long.
33777     - Never use OpenSSL compression: it wastes RAM and CPU trying to
33778       compress cells, which are basically all encrypted, compressed,
33779       or both.
33781   o Minor bugfixes:
33782     - Stop reloading the router list from disk for no reason when we
33783       run out of reachable directory mirrors. Once upon a time reloading
33784       it would set the 'is_running' flag back to 1 for them. It hasn't
33785       done that for a long time.
33786     - In very rare situations new hidden service descriptors were
33787       published earlier than 30 seconds after the last change to the
33788       service. (We currently think that a hidden service descriptor
33789       that's been stable for 30 seconds is worth publishing.)
33791   o Minor features:
33792     - Allow separate log levels to be configured for different logging
33793       domains. For example, this allows one to log all notices, warnings,
33794       or errors, plus all memory management messages of level debug or
33795       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
33796     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
33797       and stop using a warning that had become unfixably verbose under
33798       GCC 4.3.
33799     - New --hush command-line option similar to --quiet. While --quiet
33800       disables all logging to the console on startup, --hush limits the
33801       output to messages of warning and error severity.
33802     - Servers support a new URL scheme for consensus downloads that
33803       allows the client to specify which authorities are trusted.
33804       The server then only sends the consensus if the client will trust
33805       it. Otherwise a 404 error is sent back. Clients use this
33806       new scheme when the server supports it (meaning it's running
33807       0.2.1.1-alpha or later). Implements proposal 134.
33808     - New configure/torrc options (--enable-geoip-stats,
33809       DirRecordUsageByCountry) to record how many IPs we've served
33810       directory info to in each country code, how many status documents
33811       total we've sent to each country code, and what share of the total
33812       directory requests we should expect to see.
33813     - Use the TLS1 hostname extension to more closely resemble browser
33814       behavior.
33815     - Lots of new unit tests.
33816     - Add a macro to implement the common pattern of iterating through
33817       two parallel lists in lockstep.
33820 Changes in version 0.2.0.28-rc - 2008-06-13
33821   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
33822   performance bug, and fixes a bunch of smaller bugs.
33824   o Anonymity fixes:
33825     - Fix a bug where, when we were choosing the 'end stream reason' to
33826       put in our relay end cell that we send to the exit relay, Tor
33827       clients on Windows were sometimes sending the wrong 'reason'. The
33828       anonymity problem is that exit relays may be able to guess whether
33829       the client is running Windows, thus helping partition the anonymity
33830       set. Down the road we should stop sending reasons to exit relays,
33831       or otherwise prevent future versions of this bug.
33833   o Major bugfixes:
33834     - While setting up a hidden service, some valid introduction circuits
33835       were overlooked and abandoned. This might be the reason for
33836       the long delay in making a hidden service available. Bugfix on
33837       0.2.0.14-alpha.
33839   o Minor features:
33840     - Update to the "June 9 2008" ip-to-country file.
33841     - Run 'make test' as part of 'make dist', so we stop releasing so
33842       many development snapshots that fail their unit tests.
33844   o Minor bugfixes:
33845     - When we're checking if we have enough dir info for each relay
33846       to begin establishing circuits, make sure that we actually have
33847       the descriptor listed in the consensus, not just any descriptor.
33848       Bugfix on 0.1.2.x.
33849     - Bridge relays no longer print "xx=0" in their extrainfo document
33850       for every single country code in the geoip db. Bugfix on
33851       0.2.0.27-rc.
33852     - Only warn when we fail to load the geoip file if we were planning to
33853       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
33854     - If we change our MaxAdvertisedBandwidth and then reload torrc,
33855       Tor won't realize it should publish a new relay descriptor. Fixes
33856       bug 688, reported by mfr. Bugfix on 0.1.2.x.
33857     - When we haven't had any application requests lately, don't bother
33858       logging that we have expired a bunch of descriptors. Bugfix
33859       on 0.1.2.x.
33860     - Make relay cells written on a connection count as non-padding when
33861       tracking how long a connection has been in use. Bugfix on
33862       0.2.0.1-alpha. Spotted by lodger.
33863     - Fix unit tests in 0.2.0.27-rc.
33864     - Fix compile on Windows.
33867 Changes in version 0.2.0.27-rc - 2008-06-03
33868   Tor 0.2.0.27-rc adds a few features we left out of the earlier
33869   release candidates. In particular, we now include an IP-to-country
33870   GeoIP database, so controllers can easily look up what country a
33871   given relay is in, and so bridge relays can give us some sanitized
33872   summaries about which countries are making use of bridges. (See proposal
33873   126-geoip-fetching.txt for details.)
33875   o Major features:
33876     - Include an IP-to-country GeoIP file in the tarball, so bridge
33877       relays can report sanitized summaries of the usage they're seeing.
33879   o Minor features:
33880     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
33881       Robert Hogan. Fixes the first part of bug 681.
33882     - Make bridge authorities never serve extrainfo docs.
33883     - Add support to detect Libevent versions in the 1.4.x series
33884       on mingw.
33885     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
33886     - Include a new contrib/tor-exit-notice.html file that exit relay
33887       operators can put on their website to help reduce abuse queries.
33889   o Minor bugfixes:
33890     - When tunneling an encrypted directory connection, and its first
33891       circuit fails, do not leave it unattached and ask the controller
33892       to deal. Fixes the second part of bug 681.
33893     - Make bridge authorities correctly expire old extrainfo documents
33894       from time to time.
33897 Changes in version 0.2.0.26-rc - 2008-05-13
33898   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
33899   in Debian's OpenSSL packages. All users running any 0.2.0.x version
33900   should upgrade, whether they're running Debian or not.
33902   o Major security fixes:
33903     - Use new V3 directory authority keys on the tor26, gabelmoo, and
33904       moria1 V3 directory authorities. The old keys were generated with
33905       a vulnerable version of Debian's OpenSSL package, and must be
33906       considered compromised. Other authorities' keys were not generated
33907       with an affected version of OpenSSL.
33909   o Major bugfixes:
33910     - List authority signatures as "unrecognized" based on DirServer
33911       lines, not on cert cache. Bugfix on 0.2.0.x.
33913   o Minor features:
33914     - Add a new V3AuthUseLegacyKey option to make it easier for
33915       authorities to change their identity keys if they have to.
33918 Changes in version 0.2.0.25-rc - 2008-04-23
33919   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
33921   o Major bugfixes:
33922     - Remember to initialize threading before initializing logging.
33923       Otherwise, many BSD-family implementations will crash hard on
33924       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
33926   o Minor bugfixes:
33927     - Authorities correctly free policies on bad servers on
33928       exit. Fixes bug 672. Bugfix on 0.2.0.x.
33931 Changes in version 0.2.0.24-rc - 2008-04-22
33932   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
33933   v3 directory authority, makes relays with dynamic IP addresses and no
33934   DirPort notice more quickly when their IP address changes, fixes a few
33935   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
33937   o New directory authorities:
33938     - Take lefkada out of the list of v3 directory authorities, since
33939       it has been down for months.
33940     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
33941       authority.
33943   o Major bugfixes:
33944     - Detect address changes more quickly on non-directory mirror
33945       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
33947   o Minor features (security):
33948     - Reject requests for reverse-dns lookup of names that are in
33949       a private address space. Patch from lodger.
33950     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
33951       from lodger.
33953   o Minor bugfixes (crashes):
33954     - Avoid a rare assert that can trigger when Tor doesn't have much
33955       directory information yet and it tries to fetch a v2 hidden
33956       service descriptor. Fixes bug 651, reported by nwf.
33957     - Initialize log mutex before initializing dmalloc. Otherwise,
33958       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
33959     - Use recursive pthread mutexes in order to avoid deadlock when
33960       logging debug-level messages to a controller. Bug spotted by nwf,
33961       bugfix on 0.2.0.16-alpha.
33963   o Minor bugfixes (resource management):
33964     - Keep address policies from leaking memory: start their refcount
33965       at 1, not 2. Bugfix on 0.2.0.16-alpha.
33966     - Free authority certificates on exit, so they don't look like memory
33967       leaks. Bugfix on 0.2.0.19-alpha.
33968     - Free static hashtables for policy maps and for TLS connections on
33969       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
33970     - Avoid allocating extra space when computing consensuses on 64-bit
33971       platforms. Bug spotted by aakova.
33973   o Minor bugfixes (misc):
33974     - Do not read the configuration file when we've only been told to
33975       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
33976       based on patch from Sebastian Hahn.
33977     - Exit relays that are used as a client can now reach themselves
33978       using the .exit notation, rather than just launching an infinite
33979       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
33980     - When attempting to open a logfile fails, tell us why.
33981     - Fix a dumb bug that was preventing us from knowing that we should
33982       preemptively build circuits to handle expected directory requests.
33983       Fixes bug 660. Bugfix on 0.1.2.x.
33984     - Warn less verbosely about clock skew from netinfo cells from
33985       untrusted sources. Fixes bug 663.
33986     - Make controller stream events for DNS requests more consistent,
33987       by adding "new stream" events for DNS requests, and removing
33988       spurious "stream closed" events" for cached reverse resolves.
33989       Patch from mwenge. Fixes bug 646.
33990     - Correctly notify one-hop connections when a circuit build has
33991       failed. Possible fix for bug 669. Found by lodger.
33994 Changes in version 0.2.0.23-rc - 2008-03-24
33995   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
33996   makes bootstrapping faster if the first directory mirror you contact
33997   is down. The bundles also include the new Vidalia 0.1.2 release.
33999   o Major bugfixes:
34000     - When a tunneled directory request is made to a directory server
34001       that's down, notice after 30 seconds rather than 120 seconds. Also,
34002       fail any begindir streams that are pending on it, so they can
34003       retry elsewhere. This was causing multi-minute delays on bootstrap.
34006 Changes in version 0.2.0.22-rc - 2008-03-18
34007   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
34008   enables encrypted directory connections by default for non-relays, fixes
34009   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
34010   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
34012   o Major features:
34013     - Enable encrypted directory connections by default for non-relays,
34014       so censor tools that block Tor directory connections based on their
34015       plaintext patterns will no longer work. This means Tor works in
34016       certain censored countries by default again.
34018   o Major bugfixes:
34019     - Make sure servers always request certificates from clients during
34020       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
34021     - Do not enter a CPU-eating loop when a connection is closed in
34022       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
34023       diagnosed by lodger; bugfix on 0.2.0.20-rc.
34024     - Fix assertion failure that could occur when a blocked circuit
34025       became unblocked, and it had pending client DNS requests. Bugfix
34026       on 0.2.0.1-alpha. Fixes bug 632.
34028   o Minor bugfixes (on 0.1.2.x):
34029     - Generate "STATUS_SERVER" events rather than misspelled
34030       "STATUS_SEVER" events. Caught by mwenge.
34031     - When counting the number of bytes written on a TLS connection,
34032       look at the BIO actually used for writing to the network, not
34033       at the BIO used (sometimes) to buffer data for the network.
34034       Looking at different BIOs could result in write counts on the
34035       order of ULONG_MAX. Fixes bug 614.
34036     - On Windows, correctly detect errors when listing the contents of
34037       a directory. Fix from lodger.
34039   o Minor bugfixes (on 0.2.0.x):
34040     - Downgrade "sslv3 alert handshake failure" message to INFO.
34041     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
34042       left BandwidthRate and BandwidthBurst at the default, we would be
34043       silently limited by those defaults. Now raise them to match the
34044       RelayBandwidth* values.
34045     - Fix the SVK version detection logic to work correctly on a branch.
34046     - Make --enable-openbsd-malloc work correctly on Linux with alpha
34047       CPUs. Fixes bug 625.
34048     - Logging functions now check that the passed severity is sane.
34049     - Use proper log levels in the testsuite call of
34050       get_interface_address6().
34051     - When using a nonstandard malloc, do not use the platform values for
34052       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
34053     - Make the openbsd malloc code use 8k pages on alpha CPUs and
34054       16k pages on ia64.
34055     - Detect mismatched page sizes when using --enable-openbsd-malloc.
34056     - Avoid double-marked-for-close warning when certain kinds of invalid
34057       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
34058       for bug 617. Bugfix on 0.2.0.1-alpha.
34059     - Make sure that the "NULL-means-reject *:*" convention is followed by
34060       all the policy manipulation functions, avoiding some possible crash
34061       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
34062     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
34063       actually works, and doesn't warn about every single reverse lookup.
34064       Fixes the other part of bug 617. Bugfix on 0.2.0.1-alpha.
34066   o Minor features:
34067     - Only log guard node status when guard node status has changed.
34068     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
34069       make "INFO" 75% less verbose.
34072 Changes in version 0.2.0.21-rc - 2008-03-02
34073   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
34074   makes Tor work well with Vidalia again, fixes a rare assert bug,
34075   and fixes a pair of more minor bugs. The bundles also include Vidalia
34076   0.1.0 and Torbutton 1.1.16.
34078   o Major bugfixes:
34079     - The control port should declare that it requires password auth
34080       when HashedControlSessionPassword is set too. Patch from Matt Edman;
34081       bugfix on 0.2.0.20-rc. Fixes bug 615.
34082     - Downgrade assert in connection_buckets_decrement() to a log message.
34083       This may help us solve bug 614, and in any case will make its
34084       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
34085     - We were sometimes miscounting the number of bytes read from the
34086       network, causing our rate limiting to not be followed exactly.
34087       Bugfix on 0.2.0.16-alpha. Reported by lodger.
34089   o Minor bugfixes:
34090     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a. All other supported
34091       OpenSSL versions should have been working fine. Diagnosis and patch
34092       from lodger, Karsten Loesing, and Sebastian Hahn. Fixes bug 616.
34093       Bugfix on 0.2.0.20-rc.
34096 Changes in version 0.2.0.20-rc - 2008-02-24
34097   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
34098   makes more progress towards normalizing Tor's TLS handshake, makes
34099   hidden services work better again, helps relays bootstrap if they don't
34100   know their IP address, adds optional support for linking in openbsd's
34101   allocator or tcmalloc, allows really fast relays to scale past 15000
34102   sockets, and fixes a bunch of minor bugs reported by Veracode.
34104   o Major features:
34105     - Enable the revised TLS handshake based on the one designed by
34106       Steven Murdoch in proposal 124, as revised in proposal 130. It
34107       includes version negotiation for OR connections as described in
34108       proposal 105. The new handshake is meant to be harder for censors
34109       to fingerprint, and it adds the ability to detect certain kinds of
34110       man-in-the-middle traffic analysis attacks. The version negotiation
34111       feature will allow us to improve Tor's link protocol more safely
34112       in the future.
34113     - Choose which bridge to use proportional to its advertised bandwidth,
34114       rather than uniformly at random. This should speed up Tor for
34115       bridge users. Also do this for people who set StrictEntryNodes.
34116     - When a TrackHostExits-chosen exit fails too many times in a row,
34117       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
34119   o Major bugfixes:
34120     - Resolved problems with (re-)fetching hidden service descriptors.
34121       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
34122       and 0.2.0.19-alpha.
34123     - If we only ever used Tor for hidden service lookups or posts, we
34124       would stop building circuits and start refusing connections after
34125       24 hours, since we falsely believed that Tor was dormant. Reported
34126       by nwf; bugfix on 0.1.2.x.
34127     - Servers that don't know their own IP address should go to the
34128       authorities for their first directory fetch, even if their DirPort
34129       is off or if they don't know they're reachable yet. This will help
34130       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
34131     - When counting the number of open sockets, count not only the number
34132       of sockets we have received from the socket() call, but also
34133       the number we've gotten from accept() and socketpair(). This bug
34134       made us fail to count all sockets that we were using for incoming
34135       connections. Bugfix on 0.2.0.x.
34136     - Fix code used to find strings within buffers, when those strings
34137       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
34138     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
34139     - Add a new __HashedControlSessionPassword option for controllers
34140       to use for one-off session password hashes that shouldn't get
34141       saved to disk by SAVECONF --- Vidalia users were accumulating a
34142       pile of HashedControlPassword lines in their torrc files, one for
34143       each time they had restarted Tor and then clicked Save. Make Tor
34144       automatically convert "HashedControlPassword" to this new option but
34145       only when it's given on the command line. Partial fix for bug 586.
34147   o Minor features (performance):
34148     - Tune parameters for cell pool allocation to minimize amount of
34149       RAM overhead used.
34150     - Add OpenBSD malloc code from phk as an optional malloc
34151       replacement on Linux: some glibc libraries do very poorly
34152       with Tor's memory allocation patterns. Pass
34153       --enable-openbsd-malloc to get the replacement malloc code.
34154     - Add a --with-tcmalloc option to the configure script to link
34155       against tcmalloc (if present). Does not yet search for
34156       non-system include paths.
34157     - Stop imposing an arbitrary maximum on the number of file descriptors
34158       used for busy servers. Bug reported by Olaf Selke; patch from
34159       Sebastian Hahn.
34161   o Minor features (other):
34162     - When SafeLogging is disabled, log addresses along with all TLS
34163       errors.
34164     - When building with --enable-gcc-warnings, check for whether Apple's
34165       warning "-Wshorten-64-to-32" is available.
34166     - Add a --passphrase-fd argument to the tor-gencert command for
34167       scriptability.
34169   o Minor bugfixes (memory leaks and code problems):
34170     - We were leaking a file descriptor if Tor started with a zero-length
34171       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
34172     - Detect size overflow in zlib code. Reported by Justin Ferguson and
34173       Dan Kaminsky.
34174     - We were comparing the raw BridgePassword entry with a base64'ed
34175       version of it, when handling a "/tor/networkstatus-bridges"
34176       directory request. Now compare correctly. Noticed by Veracode.
34177     - Recover from bad tracked-since value in MTBF-history file.
34178       Should fix bug 537.
34179     - Alter the code that tries to recover from unhandled write
34180       errors, to not try to flush onto a socket that's given us
34181       unhandled errors. Bugfix on 0.1.2.x.
34182     - Make Unix controlsockets work correctly on OpenBSD. Patch from
34183       tup. Bugfix on 0.2.0.3-alpha.
34185   o Minor bugfixes (other):
34186     - If we have an extra-info document for our server, always make
34187       it available on the control port, even if we haven't gotten
34188       a copy of it from an authority yet. Patch from mwenge.
34189     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
34190     - Directory mirrors no longer include a guess at the client's IP
34191       address if the connection appears to be coming from the same /24
34192       network; it was producing too many wrong guesses.
34193     - Make the new hidden service code respect the SafeLogging setting.
34194       Bugfix on 0.2.0.x. Patch from Karsten.
34195     - When starting as an authority, do not overwrite all certificates
34196       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
34197     - If we're trying to flush the last bytes on a connection (for
34198       example, when answering a directory request), reset the
34199       time-to-give-up timeout every time we manage to write something
34200       on the socket. Bugfix on 0.1.2.x.
34201     - Change the behavior of "getinfo status/good-server-descriptor"
34202       so it doesn't return failure when any authority disappears.
34203     - Even though the man page said that "TrackHostExits ." should
34204       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
34205     - Report TLS "zero return" case as a "clean close" and "IO error"
34206       as a "close". Stop calling closes "unexpected closes": existing
34207       Tors don't use SSL_close(), so having a connection close without
34208       the TLS shutdown handshake is hardly unexpected.
34209     - Send NAMESERVER_STATUS messages for a single failed nameserver
34210       correctly.
34212   o Code simplifications and refactoring:
34213     - Remove the tor_strpartition function: its logic was confused,
34214       and it was only used for one thing that could be implemented far
34215       more easily.
34218 Changes in version 0.2.0.19-alpha - 2008-02-09
34219   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
34220   handshake, makes path selection for relays more secure and IP address
34221   guessing more robust, and generally fixes a lot of bugs in preparation
34222   for calling the 0.2.0 branch stable.
34224   o Major features:
34225     - Do not include recognizeable strings in the commonname part of
34226       Tor's x509 certificates.
34228   o Major bugfixes:
34229     - If we're a relay, avoid picking ourselves as an introduction point,
34230       a rendezvous point, or as the final hop for internal circuits. Bug
34231       reported by taranis and lodger. Bugfix on 0.1.2.x.
34232     - Patch from "Andrew S. Lists" to catch when we contact a directory
34233       mirror at IP address X and he says we look like we're coming from
34234       IP address X. Bugfix on 0.1.2.x.
34236   o Minor features (security):
34237     - Be more paranoid about overwriting sensitive memory on free(),
34238       as a defensive programming tactic to ensure forward secrecy.
34240   o Minor features (directory authority):
34241     - Actually validate the options passed to AuthDirReject,
34242       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
34243     - Reject router descriptors with out-of-range bandwidthcapacity or
34244       bandwidthburst values.
34246   o Minor features (controller):
34247     - Reject controller commands over 1MB in length. This keeps rogue
34248       processes from running us out of memory.
34250   o Minor features (misc):
34251     - Give more descriptive well-formedness errors for out-of-range
34252       hidden service descriptor/protocol versions.
34253     - Make memory debugging information describe more about history
34254       of cell allocation, so we can help reduce our memory use.
34256   o Deprecated features (controller):
34257     - The status/version/num-versioning and status/version/num-concurring
34258       GETINFO options are no longer useful in the v3 directory protocol:
34259       treat them as deprecated, and warn when they're used.
34261   o Minor bugfixes:
34262     - When our consensus networkstatus has been expired for a while, stop
34263       being willing to build circuits using it. Fixes bug 401. Bugfix
34264       on 0.1.2.x.
34265     - Directory caches now fetch certificates from all authorities
34266       listed in a networkstatus consensus, even when they do not
34267       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
34268     - When connecting to a bridge without specifying its key, insert
34269       the connection into the identity-to-connection map as soon as
34270       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
34271     - Detect versions of OS X where malloc_good_size() is present in the
34272       library but never actually declared. Resolves bug 587. Bugfix
34273       on 0.2.0.x.
34274     - Stop incorrectly truncating zlib responses to directory authority
34275       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
34276     - Stop recommending that every server operator send mail to tor-ops.
34277       Resolves bug 597. Bugfix on 0.1.2.x.
34278     - Don't trigger an assert if we start a directory authority with a
34279       private IP address (like 127.0.0.1).
34280     - Avoid possible failures when generating a directory with routers
34281       with over-long versions strings, or too many flags set. Bugfix
34282       on 0.1.2.x.
34283     - If an attempt to launch a DNS resolve request over the control
34284       port fails because we have overrun the limit on the number of
34285       connections, tell the controller that the request has failed.
34286     - Avoid using too little bandwidth when our clock skips a few
34287       seconds. Bugfix on 0.1.2.x.
34288     - Fix shell error when warning about missing packages in configure
34289       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
34290     - Do not become confused when receiving a spurious VERSIONS-like
34291       cell from a confused v1 client. Bugfix on 0.2.0.x.
34292     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
34293       introduction points for a hidden service have failed. Patch from
34294       Karsten Loesing. Bugfix on 0.2.0.x.
34296   o Code simplifications and refactoring:
34297     - Remove some needless generality from cpuworker code, for improved
34298       type-safety.
34299     - Stop overloading the circuit_t.onionskin field for both "onionskin
34300       from a CREATE cell that we are waiting for a cpuworker to be
34301       assigned" and "onionskin from an EXTEND cell that we are going to
34302       send to an OR as soon as we are connected". Might help with bug 600.
34303     - Add an in-place version of aes_crypt() so that we can avoid doing a
34304       needless memcpy() call on each cell payload.
34307 Changes in version 0.2.0.18-alpha - 2008-01-25
34308   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
34309   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
34310   that can warn or reject connections to ports generally associated with
34311   vulnerable-plaintext protocols.
34313   o New directory authorities:
34314     - Set up dannenberg (run by CCC) as the sixth v3 directory
34315       authority.
34317   o Major bugfixes:
34318     - Fix a major memory leak when attempting to use the v2 TLS
34319       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
34320     - We accidentally enabled the under-development v2 TLS handshake
34321       code, which was causing log entries like "TLS error while
34322       renegotiating handshake". Disable it again. Resolves bug 590.
34323     - We were computing the wrong Content-Length: header for directory
34324       responses that need to be compressed on the fly, causing clients
34325       asking for those items to always fail. Bugfix on 0.2.0.x; partially
34326       fixes bug 593.
34328   o Major features:
34329     - Avoid going directly to the directory authorities even if you're a
34330       relay, if you haven't found yourself reachable yet or if you've
34331       decided not to advertise your dirport yet. Addresses bug 556.
34332     - If we've gone 12 hours since our last bandwidth check, and we
34333       estimate we have less than 50KB bandwidth capacity but we could
34334       handle more, do another bandwidth test.
34335     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
34336       Tor can warn and/or refuse connections to ports commonly used with
34337       vulnerable-plaintext protocols. Currently we warn on ports 23,
34338       109, 110, and 143, but we don't reject any.
34340   o Minor bugfixes:
34341     - When we setconf ClientOnly to 1, close any current OR and Dir
34342       listeners. Reported by mwenge.
34343     - When we get a consensus that's been signed by more people than
34344       we expect, don't log about it; it's not a big deal. Reported
34345       by Kyle Williams.
34347   o Minor features:
34348     - Don't answer "/tor/networkstatus-bridges" directory requests if
34349       the request isn't encrypted.
34350     - Make "ClientOnly 1" config option disable directory ports too.
34351     - Patches from Karsten Loesing to make v2 hidden services more
34352       robust: work even when there aren't enough HSDir relays available;
34353       retry when a v2 rend desc fetch fails; but don't retry if we
34354       already have a usable v0 rend desc.
34357 Changes in version 0.2.0.17-alpha - 2008-01-17
34358   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
34360   o Compile fixes:
34361     - Make the tor-gencert man page get included correctly in the tarball.
34364 Changes in version 0.2.0.16-alpha - 2008-01-17
34365   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
34366   Loesing, and generally cleans up a lot of features and minor bugs.
34368   o New directory authorities:
34369     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
34370       authority.
34372   o Major performance improvements:
34373     - Switch our old ring buffer implementation for one more like that
34374       used by free Unix kernels. The wasted space in a buffer with 1mb
34375       of data will now be more like 8k than 1mb. The new implementation
34376       also avoids realloc();realloc(); patterns that can contribute to
34377       memory fragmentation.
34379   o Minor features:
34380     - Configuration files now accept C-style strings as values. This
34381       helps encode characters not allowed in the current configuration
34382       file format, such as newline or #. Addresses bug 557.
34383     - Although we fixed bug 539 (where servers would send HTTP status 503
34384       responses _and_ send a body too), there are still servers out
34385       there that haven't upgraded. Therefore, make clients parse such
34386       bodies when they receive them.
34387     - When we're not serving v2 directory information, there is no reason
34388       to actually keep any around. Remove the obsolete files and directory
34389       on startup if they are very old and we aren't going to serve them.
34391   o Minor performance improvements:
34392     - Reference-count and share copies of address policy entries; only 5%
34393       of them were actually distinct.
34394     - Never walk through the list of logs if we know that no log is
34395       interested in a given message.
34397   o Minor bugfixes:
34398     - When an authority has not signed a consensus, do not try to
34399       download a nonexistent "certificate with key 00000000". Bugfix
34400       on 0.2.0.x. Fixes bug 569.
34401     - Fix a rare assert error when we're closing one of our threads:
34402       use a mutex to protect the list of logs, so we never write to the
34403       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
34404       bug 575, which is kind of the revenge of bug 222.
34405     - Patch from Karsten Loesing to complain less at both the client
34406       and the relay when a relay used to have the HSDir flag but doesn't
34407       anymore, and we try to upload a hidden service descriptor.
34408     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
34409       0.2.0.15-alpha.
34410     - Do not try to download missing certificates until we have tried
34411       to check our fallback consensus. Fixes bug 583.
34412     - Make bridges round reported GeoIP stats info up to the nearest
34413       estimate, not down. Now we can distinguish between "0 people from
34414       this country" and "1 person from this country".
34415     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
34416     - Avoid possible segfault if key generation fails in
34417       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
34418     - Avoid segfault in the case where a badly behaved v2 versioning
34419       directory sends a signed networkstatus with missing client-versions.
34420       Bugfix on 0.1.2.
34421     - Avoid segfaults on certain complex invocations of
34422       router_get_by_hexdigest(). Bugfix on 0.1.2.
34423     - Correct bad index on array access in parse_http_time(). Bugfix
34424       on 0.2.0.
34425     - Fix possible bug in vote generation when server versions are present
34426       but client versions are not.
34427     - Fix rare bug on REDIRECTSTREAM control command when called with no
34428       port set: it could erroneously report an error when none had
34429       happened.
34430     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
34431       compressing large objects and find ourselves with more than 4k
34432       left over. Bugfix on 0.2.0.
34433     - Fix a small memory leak when setting up a hidden service.
34434     - Fix a few memory leaks that could in theory happen under bizarre
34435       error conditions.
34436     - Fix an assert if we post a general-purpose descriptor via the
34437       control port but that descriptor isn't mentioned in our current
34438       network consensus. Bug reported by Jon McLachlan; bugfix on
34439       0.2.0.9-alpha.
34441   o Minor features (controller):
34442     - Get NS events working again. Patch from tup.
34443     - The GETCONF command now escapes and quotes configuration values
34444       that don't otherwise fit into the torrc file.
34445     - The SETCONF command now handles quoted values correctly.
34447   o Minor features (directory authorities):
34448     - New configuration options to override default maximum number of
34449       servers allowed on a single IP address. This is important for
34450       running a test network on a single host.
34451     - Actually implement the -s option to tor-gencert.
34452     - Add a manual page for tor-gencert.
34454   o Minor features (bridges):
34455     - Bridge authorities no longer serve bridge descriptors over
34456       unencrypted connections.
34458   o Minor features (other):
34459     - Add hidden services and DNSPorts to the list of things that make
34460       Tor accept that it has running ports. Change starting Tor with no
34461       ports from a fatal error to a warning; we might change it back if
34462       this turns out to confuse anybody. Fixes bug 579.
34465 Changes in version 0.1.2.19 - 2008-01-17
34466   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
34467   exit policy a little bit more conservative so it's safer to run an
34468   exit relay on a home system, and fixes a variety of smaller issues.
34470   o Security fixes:
34471     - Exit policies now reject connections that are addressed to a
34472       relay's public (external) IP address too, unless
34473       ExitPolicyRejectPrivate is turned off. We do this because too
34474       many relays are running nearby to services that trust them based
34475       on network address.
34477   o Major bugfixes:
34478     - When the clock jumps forward a lot, do not allow the bandwidth
34479       buckets to become negative. Fixes bug 544.
34480     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
34481       on every successful resolve. Reported by Mike Perry.
34482     - Purge old entries from the "rephist" database and the hidden
34483       service descriptor database even when DirPort is zero.
34484     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
34485       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
34486       crashing or mis-answering these requests.
34487     - When we decide to send a 503 response to a request for servers, do
34488       not then also send the server descriptors: this defeats the whole
34489       purpose. Fixes bug 539.
34491   o Minor bugfixes:
34492     - Changing the ExitPolicyRejectPrivate setting should cause us to
34493       rebuild our server descriptor.
34494     - Fix handling of hex nicknames when answering controller requests for
34495       networkstatus by name, or when deciding whether to warn about
34496       unknown routers in a config option. (Patch from mwenge.)
34497     - Fix a couple of hard-to-trigger autoconf problems that could result
34498       in really weird results on platforms whose sys/types.h files define
34499       nonstandard integer types.
34500     - Don't try to create the datadir when running --verify-config or
34501       --hash-password. Resolves bug 540.
34502     - If we were having problems getting a particular descriptor from the
34503       directory caches, and then we learned about a new descriptor for
34504       that router, we weren't resetting our failure count. Reported
34505       by lodger.
34506     - Although we fixed bug 539 (where servers would send HTTP status 503
34507       responses _and_ send a body too), there are still servers out there
34508       that haven't upgraded. Therefore, make clients parse such bodies
34509       when they receive them.
34510     - Run correctly on systems where rlim_t is larger than unsigned long.
34511       This includes some 64-bit systems.
34512     - Run correctly on platforms (like some versions of OS X 10.5) where
34513       the real limit for number of open files is OPEN_FILES, not rlim_max
34514       from getrlimit(RLIMIT_NOFILES).
34515     - Avoid a spurious free on base64 failure.
34516     - Avoid segfaults on certain complex invocations of
34517       router_get_by_hexdigest().
34518     - Fix rare bug on REDIRECTSTREAM control command when called with no
34519       port set: it could erroneously report an error when none had
34520       happened.
34523 Changes in version 0.2.0.15-alpha - 2007-12-25
34524   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
34525   features added in 0.2.0.13-alpha.
34527   o Major bugfixes:
34528     - Fix several remotely triggerable asserts based on DirPort requests
34529       for a v2 or v3 networkstatus object before we were prepared. This
34530       was particularly bad for 0.2.0.13 and later bridge relays, who
34531       would never have a v2 networkstatus and would thus always crash
34532       when used. Bugfixes on 0.2.0.x.
34533     - Estimate the v3 networkstatus size more accurately, rather than
34534       estimating it at zero bytes and giving it artificially high priority
34535       compared to other directory requests. Bugfix on 0.2.0.x.
34537   o Minor bugfixes:
34538     - Fix configure.in logic for cross-compilation.
34539     - When we load a bridge descriptor from the cache, and it was
34540       previously unreachable, mark it as retriable so we won't just
34541       ignore it. Also, try fetching a new copy immediately. Bugfixes
34542       on 0.2.0.13-alpha.
34543     - The bridge GeoIP stats were counting other relays, for example
34544       self-reachability and authority-reachability tests.
34546   o Minor features:
34547     - Support compilation to target iPhone; patch from cjacker huang.
34548       To build for iPhone, pass the --enable-iphone option to configure.
34551 Changes in version 0.2.0.14-alpha - 2007-12-23
34552   o Major bugfixes:
34553     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
34554       without a datadirectory from a previous Tor install. Reported
34555       by Zax.
34556     - Fix a crash when we fetch a descriptor that turns out to be
34557       unexpected (it used to be in our networkstatus when we started
34558       fetching it, but it isn't in our current networkstatus), and we
34559       aren't using bridges. Bugfix on 0.2.0.x.
34560     - Fix a crash when accessing hidden services: it would work the first
34561       time you use a given introduction point for your service, but
34562       on subsequent requests we'd be using garbage memory. Fixed by
34563       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
34564     - Fix a crash when we load a bridge descriptor from disk but we don't
34565       currently have a Bridge line for it in our torrc. Bugfix on
34566       0.2.0.13-alpha.
34568   o Major features:
34569     - If bridge authorities set BridgePassword, they will serve a
34570       snapshot of known bridge routerstatuses from their DirPort to
34571       anybody who knows that password. Unset by default.
34573   o Minor bugfixes:
34574     - Make the unit tests build again.
34575     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
34576     - Make PublishServerDescriptor default to 1, so the default doesn't
34577       have to change as we invent new directory protocol versions.
34578     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
34579       be included unless sys/time.h is already included. Fixes
34580       bug 553. Bugfix on 0.2.0.x.
34581     - If we receive a general-purpose descriptor and then receive an
34582       identical bridge-purpose descriptor soon after, don't discard
34583       the next one as a duplicate.
34585   o Minor features:
34586     - If BridgeRelay is set to 1, then the default for
34587       PublishServerDescriptor is now "bridge" rather than "v2,v3".
34588     - If the user sets RelayBandwidthRate but doesn't set
34589       RelayBandwidthBurst, then make them equal rather than erroring out.
34592 Changes in version 0.2.0.13-alpha - 2007-12-21
34593   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
34594   Goodell, fixes many more bugs, and adds a lot of infrastructure for
34595   upcoming features.
34597   o New directory authorities:
34598     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
34599       authority.
34601   o Major bugfixes:
34602     - Only update guard status (usable / not usable) once we have
34603       enough directory information. This was causing us to always pick
34604       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
34605       causing us to discard all our guards on startup if we hadn't been
34606       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
34607     - Purge old entries from the "rephist" database and the hidden
34608       service descriptor databases even when DirPort is zero. Bugfix
34609       on 0.1.2.x.
34610     - We were ignoring our RelayBandwidthRate for the first 30 seconds
34611       after opening a circuit -- even a relayed circuit. Bugfix on
34612       0.2.0.3-alpha.
34613     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
34614       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
34615       crashing or mis-answering these types of requests.
34616     - Relays were publishing their server descriptor to v1 and v2
34617       directory authorities, but they didn't try publishing to v3-only
34618       authorities. Fix this; and also stop publishing to v1 authorities.
34619       Bugfix on 0.2.0.x.
34620     - When we were reading router descriptors from cache, we were ignoring
34621       the annotations -- so for example we were reading in bridge-purpose
34622       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
34623     - When we decided to send a 503 response to a request for servers, we
34624       were then also sending the server descriptors: this defeats the
34625       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
34627   o Major features:
34628     - Bridge relays now behave like clients with respect to time
34629       intervals for downloading new consensus documents -- otherwise they
34630       stand out. Bridge users now wait until the end of the interval,
34631       so their bridge relay will be sure to have a new consensus document.
34632     - Three new config options (AlternateDirAuthority,
34633       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
34634       user selectively replace the default directory authorities by type,
34635       rather than the all-or-nothing replacement that DirServer offers.
34636     - Tor can now be configured to read a GeoIP file from disk in one
34637       of two formats. This can be used by controllers to map IP addresses
34638       to countries. Eventually, it may support exit-by-country.
34639     - When possible, bridge relays remember which countries users
34640       are coming from, and report aggregate information in their
34641       extra-info documents, so that the bridge authorities can learn
34642       where Tor is blocked.
34643     - Bridge directory authorities now do reachability testing on the
34644       bridges they know. They provide router status summaries to the
34645       controller via "getinfo ns/purpose/bridge", and also dump summaries
34646       to a file periodically.
34647     - Stop fetching directory info so aggressively if your DirPort is
34648       on but your ORPort is off; stop fetching v2 dir info entirely.
34649       You can override these choices with the new FetchDirInfoEarly
34650       config option.
34652   o Minor bugfixes:
34653     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
34654       consensus documents when there are too many relays at a single
34655       IP address. Now clear it in v2 network status documents too, and
34656       also clear it in routerinfo_t when the relay is no longer listed
34657       in the relevant networkstatus document.
34658     - Don't crash if we get an unexpected value for the
34659       PublishServerDescriptor config option. Reported by Matt Edman;
34660       bugfix on 0.2.0.9-alpha.
34661     - Our new v2 hidden service descriptor format allows descriptors
34662       that have no introduction points. But Tor crashed when we tried
34663       to build a descriptor with no intro points (and it would have
34664       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
34665       by Karsten Loesing.
34666     - Fix building with dmalloc 5.5.2 with glibc.
34667     - Reject uploaded descriptors and extrainfo documents if they're
34668       huge. Otherwise we'll cache them all over the network and it'll
34669       clog everything up. Reported by Aljosha Judmayer.
34670     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
34671       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
34672     - When the DANGEROUS_VERSION controller status event told us we're
34673       running an obsolete version, it used the string "OLD" to describe
34674       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
34675       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
34676     - If we can't expand our list of entry guards (e.g. because we're
34677       using bridges or we have StrictEntryNodes set), don't mark relays
34678       down when they fail a directory request. Otherwise we're too quick
34679       to mark all our entry points down. Bugfix on 0.1.2.x.
34680     - Fix handling of hex nicknames when answering controller requests for
34681       networkstatus by name, or when deciding whether to warn about unknown
34682       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
34683     - Fix a couple of hard-to-trigger autoconf problems that could result
34684       in really weird results on platforms whose sys/types.h files define
34685       nonstandard integer types. Bugfix on 0.1.2.x.
34686     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
34687     - Don't crash on name lookup when we have no current consensus. Fixes
34688       bug 538; bugfix on 0.2.0.x.
34689     - Only Tors that want to mirror the v2 directory info should
34690       create the "cached-status" directory in their datadir. (All Tors
34691       used to create it.) Bugfix on 0.2.0.9-alpha.
34692     - Directory authorities should only automatically download Extra Info
34693       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
34695   o Minor features:
34696     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
34697       consumers. (We already do this on HUP.)
34698     - Authorities and caches fetch the v2 networkstatus documents
34699       less often, now that v3 is encouraged.
34700     - Add a new config option BridgeRelay that specifies you want to
34701       be a bridge relay. Right now the only difference is that it makes
34702       you answer begin_dir requests, and it makes you cache dir info,
34703       even if your DirPort isn't on.
34704     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
34705       ask about source, timestamp of arrival, purpose, etc. We need
34706       something like this to help Vidalia not do GeoIP lookups on bridge
34707       addresses.
34708     - Allow multiple HashedControlPassword config lines, to support
34709       multiple controller passwords.
34710     - Authorities now decide whether they're authoritative for a given
34711       router based on the router's purpose.
34712     - New config options AuthDirBadDir and AuthDirListBadDirs for
34713       authorities to mark certain relays as "bad directories" in the
34714       networkstatus documents. Also supports the "!baddir" directive in
34715       the approved-routers file.
34718 Changes in version 0.2.0.12-alpha - 2007-11-16
34719   This twelfth development snapshot fixes some more build problems as
34720   well as a few minor bugs.
34722   o Compile fixes:
34723     - Make it build on OpenBSD again. Patch from tup.
34724     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
34725       package-building for Red Hat, OS X, etc.
34727   o Minor bugfixes (on 0.1.2.x):
34728     - Changing the ExitPolicyRejectPrivate setting should cause us to
34729       rebuild our server descriptor.
34731   o Minor bugfixes (on 0.2.0.x):
34732     - When we're lacking a consensus, don't try to perform rendezvous
34733       operations. Reported by Karsten Loesing.
34734     - Fix a small memory leak whenever we decide against using a
34735       newly picked entry guard. Reported by Mike Perry.
34736     - When authorities detected more than two relays running on the same
34737       IP address, they were clearing all the status flags but forgetting
34738       to clear the "hsdir" flag. So clients were being told that a
34739       given relay was the right choice for a v2 hsdir lookup, yet they
34740       never had its descriptor because it was marked as 'not running'
34741       in the consensus.
34742     - If we're trying to fetch a bridge descriptor and there's no way
34743       the bridge authority could help us (for example, we don't know
34744       a digest, or there is no bridge authority), don't be so eager to
34745       fall back to asking the bridge authority.
34746     - If we're using bridges or have strictentrynodes set, and our
34747       chosen exit is in the same family as all our bridges/entry guards,
34748       then be flexible about families.
34750   o Minor features:
34751     - When we negotiate a v2 link-layer connection (not yet implemented),
34752       accept RELAY_EARLY cells and turn them into RELAY cells if we've
34753       negotiated a v1 connection for their next step. Initial code for
34754       proposal 110.
34757 Changes in version 0.2.0.11-alpha - 2007-11-12
34758   This eleventh development snapshot fixes some build problems with
34759   the previous snapshot. It also includes a more secure-by-default exit
34760   policy for relays, fixes an enormous memory leak for exit relays, and
34761   fixes another bug where servers were falling out of the directory list.
34763   o Security fixes:
34764     - Exit policies now reject connections that are addressed to a
34765       relay's public (external) IP address too, unless
34766       ExitPolicyRejectPrivate is turned off. We do this because too
34767       many relays are running nearby to services that trust them based
34768       on network address. Bugfix on 0.1.2.x.
34770   o Major bugfixes:
34771     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
34772       on every successful resolve. Reported by Mike Perry; bugfix
34773       on 0.1.2.x.
34774     - On authorities, never downgrade to old router descriptors simply
34775       because they're listed in the consensus. This created a catch-22
34776       where we wouldn't list a new descriptor because there was an
34777       old one in the consensus, and we couldn't get the new one in the
34778       consensus because we wouldn't list it. Possible fix for bug 548.
34779       Also, this might cause bug 543 to appear on authorities; if so,
34780       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
34782   o Packaging fixes on 0.2.0.10-alpha:
34783     - We were including instructions about what to do with the
34784       src/config/fallback-consensus file, but we weren't actually
34785       including it in the tarball. Disable all of that for now.
34787   o Minor features:
34788     - Allow people to say PreferTunnelledDirConns rather than
34789       PreferTunneledDirConns, for those alternate-spellers out there.
34791   o Minor bugfixes:
34792     - Don't reevaluate all the information from our consensus document
34793       just because we've downloaded a v2 networkstatus that we intend
34794       to cache. Fixes bug 545; bugfix on 0.2.0.x.
34797 Changes in version 0.2.0.10-alpha - 2007-11-10
34798   This tenth development snapshot adds a third v3 directory authority
34799   run by Mike Perry, adds most of Karsten Loesing's new hidden service
34800   descriptor format, fixes a bad crash bug and new bridge bugs introduced
34801   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
34802   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
34803   addresses many more minor issues.
34805   o New directory authorities:
34806     - Set up ides (run by Mike Perry) as the third v3 directory authority.
34808   o Major features:
34809     - Allow tunnelled directory connections to ask for an encrypted
34810       "begin_dir" connection or an anonymized "uses a full Tor circuit"
34811       connection independently. Now we can make anonymized begin_dir
34812       connections for (e.g.) more secure hidden service posting and
34813       fetching.
34814     - More progress on proposal 114: code from Karsten Loesing to
34815       implement new hidden service descriptor format.
34816     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
34817       accommodate the growing number of servers that use the default
34818       and are reaching it.
34819     - Directory authorities use a new formula for selecting which nodes
34820       to advertise as Guards: they must be in the top 7/8 in terms of
34821       how long we have known about them, and above the median of those
34822       nodes in terms of weighted fractional uptime.
34823     - Make "not enough dir info yet" warnings describe *why* Tor feels
34824       it doesn't have enough directory info yet.
34826   o Major bugfixes:
34827     - Stop servers from crashing if they set a Family option (or
34828       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
34829       by Fabian Keil.
34830     - Make bridge users work again -- the move to v3 directories in
34831       0.2.0.9-alpha had introduced a number of bugs that made bridges
34832       no longer work for clients.
34833     - When the clock jumps forward a lot, do not allow the bandwidth
34834       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
34836   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
34837     - When the consensus lists a router descriptor that we previously were
34838       mirroring, but that we considered non-canonical, reload the
34839       descriptor as canonical. This fixes bug 543 where Tor servers
34840       would start complaining after a few days that they don't have
34841       enough directory information to build a circuit.
34842     - Consider replacing the current consensus when certificates arrive
34843       that make the pending consensus valid. Previously, we were only
34844       considering replacement when the new certs _didn't_ help.
34845     - Fix an assert error on startup if we didn't already have the
34846       consensus and certs cached in our datadirectory: we were caching
34847       the consensus in consensus_waiting_for_certs but then free'ing it
34848       right after.
34849     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
34850       Request) if we need more v3 certs but we've already got pending
34851       requests for all of them.
34852     - Correctly back off from failing certificate downloads. Fixes
34853       bug 546.
34854     - Authorities don't vote on the Running flag if they have been running
34855       for less than 30 minutes themselves. Fixes bug 547, where a newly
34856       started authority would vote that everyone was down.
34858   o New requirements:
34859     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
34860       it, it had no AES, and it hasn't seen any security patches since
34861       2004.
34863   o Minor features:
34864     - Clients now hold circuitless TLS connections open for 1.5 times
34865       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
34866       rebuild a new circuit over them within that timeframe. Previously,
34867       they held them open only for KeepalivePeriod (5 minutes).
34868     - Use "If-Modified-Since" to avoid retrieving consensus
34869       networkstatuses that we already have.
34870     - When we have no consensus, check FallbackNetworkstatusFile (defaults
34871       to $PREFIX/share/tor/fallback-consensus) for a consensus. This way
34872       we start knowing some directory caches.
34873     - When we receive a consensus from the future, warn about skew.
34874     - Improve skew reporting: try to give the user a better log message
34875       about how skewed they are, and how much this matters.
34876     - When we have a certificate for an authority, believe that
34877       certificate's claims about the authority's IP address.
34878     - New --quiet command-line option to suppress the default console log.
34879       Good in combination with --hash-password.
34880     - Authorities send back an X-Descriptor-Not-New header in response to
34881       an accepted-but-discarded descriptor upload. Partially implements
34882       fix for bug 535.
34883     - Make the log message for "tls error. breaking." more useful.
34884     - Better log messages about certificate downloads, to attempt to
34885       track down the second incarnation of bug 546.
34887   o Minor features (bridges):
34888     - If bridge users set UpdateBridgesFromAuthority, but the digest
34889       they ask for is a 404 from the bridge authority, they now fall
34890       back to trying the bridge directly.
34891     - Bridges now use begin_dir to publish their server descriptor to
34892       the bridge authority, even when they haven't set TunnelDirConns.
34894   o Minor features (controller):
34895     - When reporting clock skew, and we know that the clock is _at least
34896       as skewed_ as some value, but we don't know the actual value,
34897       report the value as a "minimum skew."
34899   o Utilities:
34900     - Update linux-tor-prio.sh script to allow QoS based on the uid of
34901       the Tor process. Patch from Marco Bonetti with tweaks from Mike
34902       Perry.
34904   o Minor bugfixes:
34905     - Refuse to start if both ORPort and UseBridges are set. Bugfix
34906       on 0.2.0.x, suggested by Matt Edman.
34907     - Don't stop fetching descriptors when FetchUselessDescriptors is
34908       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
34909       reported by tup and ioerror.
34910     - Better log message on vote from unknown authority.
34911     - Don't log "Launching 0 request for 0 router" message.
34913   o Minor bugfixes (memory leaks):
34914     - Stop leaking memory every time we parse a v3 certificate. Bugfix
34915       on 0.2.0.1-alpha.
34916     - Stop leaking memory every time we load a v3 certificate. Bugfix
34917       on 0.2.0.1-alpha. Fixes bug 536.
34918     - Stop leaking a cached networkstatus on exit. Bugfix on
34919       0.2.0.3-alpha.
34920     - Stop leaking voter information every time we free a consensus.
34921       Bugfix on 0.2.0.3-alpha.
34922     - Stop leaking signed data every time we check a voter signature.
34923       Bugfix on 0.2.0.3-alpha.
34924     - Stop leaking a signature every time we fail to parse a consensus or
34925       a vote. Bugfix on 0.2.0.3-alpha.
34926     - Stop leaking v2_download_status_map on shutdown. Bugfix on
34927       0.2.0.9-alpha.
34928     - Stop leaking conn->nickname every time we make a connection to a
34929       Tor relay without knowing its expected identity digest (e.g. when
34930       using bridges). Bugfix on 0.2.0.3-alpha.
34932   - Minor bugfixes (portability):
34933     - Run correctly on platforms where rlim_t is larger than unsigned
34934       long, and/or where the real limit for number of open files is
34935       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
34936       particular, these may be needed for OS X 10.5.
34939 Changes in version 0.1.2.18 - 2007-10-28
34940   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
34941   hidden service introduction that were causing huge delays, and a big
34942   bug that was causing some servers to disappear from the network status
34943   lists for a few hours each day.
34945   o Major bugfixes (crashes):
34946     - If a connection is shut down abruptly because of something that
34947       happened inside connection_flushed_some(), do not call
34948       connection_finished_flushing(). Should fix bug 451:
34949       "connection_stop_writing: Assertion conn->write_event failed"
34950       Bugfix on 0.1.2.7-alpha.
34951     - Fix possible segfaults in functions called from
34952       rend_process_relay_cell().
34954   o Major bugfixes (hidden services):
34955     - Hidden services were choosing introduction points uniquely by
34956       hexdigest, but when constructing the hidden service descriptor
34957       they merely wrote the (potentially ambiguous) nickname.
34958     - Clients now use the v2 intro format for hidden service
34959       connections: they specify their chosen rendezvous point by identity
34960       digest rather than by (potentially ambiguous) nickname. These
34961       changes could speed up hidden service connections dramatically.
34963   o Major bugfixes (other):
34964     - Stop publishing a new server descriptor just because we get a
34965       HUP signal. This led (in a roundabout way) to some servers getting
34966       dropped from the networkstatus lists for a few hours each day.
34967     - When looking for a circuit to cannibalize, consider family as well
34968       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
34969       circuit cannibalization).
34970     - When a router wasn't listed in a new networkstatus, we were leaving
34971       the flags for that router alone -- meaning it remained Named,
34972       Running, etc -- even though absence from the networkstatus means
34973       that it shouldn't be considered to exist at all anymore. Now we
34974       clear all the flags for routers that fall out of the networkstatus
34975       consensus. Fixes bug 529.
34977   o Minor bugfixes:
34978     - Don't try to access (or alter) the state file when running
34979       --list-fingerprint or --verify-config or --hash-password. Resolves
34980       bug 499.
34981     - When generating information telling us how to extend to a given
34982       router, do not try to include the nickname if it is
34983       absent. Resolves bug 467.
34984     - Fix a user-triggerable segfault in expand_filename(). (There isn't
34985       a way to trigger this remotely.)
34986     - When sending a status event to the controller telling it that an
34987       OR address is reachable, set the port correctly. (Previously we
34988       were reporting the dir port.)
34989     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
34990       command. Bugfix on 0.1.2.17.
34991     - When loading bandwidth history, do not believe any information in
34992       the future. Fixes bug 434.
34993     - When loading entry guard information, do not believe any information
34994       in the future.
34995     - When we have our clock set far in the future and generate an
34996       onion key, then re-set our clock to be correct, we should not stop
34997       the onion key from getting rotated.
34998     - On some platforms, accept() can return a broken address. Detect
34999       this more quietly, and deal accordingly. Fixes bug 483.
35000     - It's not actually an error to find a non-pending entry in the DNS
35001       cache when canceling a pending resolve. Don't log unless stuff
35002       is fishy. Resolves bug 463.
35003     - Don't reset trusted dir server list when we set a configuration
35004       option. Patch from Robert Hogan.
35005     - Don't try to create the datadir when running --verify-config or
35006       --hash-password. Resolves bug 540.
35009 Changes in version 0.2.0.9-alpha - 2007-10-24
35010   This ninth development snapshot switches clients to the new v3 directory
35011   system; allows servers to be listed in the network status even when they
35012   have the same nickname as a registered server; and fixes many other
35013   bugs including a big one that was causing some servers to disappear
35014   from the network status lists for a few hours each day.
35016   o Major features (directory system):
35017     - Clients now download v3 consensus networkstatus documents instead
35018       of v2 networkstatus documents. Clients and caches now base their
35019       opinions about routers on these consensus documents. Clients only
35020       download router descriptors listed in the consensus.
35021     - Authorities now list servers who have the same nickname as
35022       a different named server, but list them with a new flag,
35023       "Unnamed". Now we can list servers that happen to pick the same
35024       nickname as a server that registered two years ago and then
35025       disappeared. Partially implements proposal 122.
35026     - If the consensus lists a router as "Unnamed", the name is assigned
35027       to a different router: do not identify the router by that name.
35028       Partially implements proposal 122.
35029     - Authorities can now come to a consensus on which method to use to
35030       compute the consensus. This gives us forward compatibility.
35032   o Major bugfixes:
35033     - Stop publishing a new server descriptor just because we HUP or
35034       when we find our DirPort to be reachable but won't actually publish
35035       it. New descriptors without any real changes are dropped by the
35036       authorities, and can screw up our "publish every 18 hours" schedule.
35037       Bugfix on 0.1.2.x.
35038     - When a router wasn't listed in a new networkstatus, we were leaving
35039       the flags for that router alone -- meaning it remained Named,
35040       Running, etc -- even though absence from the networkstatus means
35041       that it shouldn't be considered to exist at all anymore. Now we
35042       clear all the flags for routers that fall out of the networkstatus
35043       consensus. Fixes bug 529; bugfix on 0.1.2.x.
35044     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
35045       extrainfo documents and then discard them immediately for not
35046       matching the latest router. Bugfix on 0.2.0.1-alpha.
35048   o Minor features (v3 directory protocol):
35049     - Allow tor-gencert to generate a new certificate without replacing
35050       the signing key.
35051     - Allow certificates to include an address.
35052     - When we change our directory-cache settings, reschedule all voting
35053       and download operations.
35054     - Reattempt certificate downloads immediately on failure, as long as
35055       we haven't failed a threshold number of times yet.
35056     - Delay retrying consensus downloads while we're downloading
35057       certificates to verify the one we just got. Also, count getting a
35058       consensus that we already have (or one that isn't valid) as a failure,
35059       and count failing to get the certificates after 20 minutes as a
35060       failure.
35061     - Build circuits and download descriptors even if our consensus is a
35062       little expired. (This feature will go away once authorities are
35063       more reliable.)
35065   o Minor features (router descriptor cache):
35066     - If we find a cached-routers file that's been sitting around for more
35067       than 28 days unmodified, then most likely it's a leftover from
35068       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
35069       routers anyway.
35070     - When we (as a cache) download a descriptor because it was listed
35071       in a consensus, remember when the consensus was supposed to expire,
35072       and don't expire the descriptor until then.
35074   o Minor features (performance):
35075     - Call routerlist_remove_old_routers() much less often. This should
35076       speed startup, especially on directory caches.
35077     - Don't try to launch new descriptor downloads quite so often when we
35078       already have enough directory information to build circuits.
35079     - Base64 decoding was actually showing up on our profile when parsing
35080       the initial descriptor file; switch to an in-process all-at-once
35081       implementation that's about 3.5x times faster than calling out to
35082       OpenSSL.
35084   o Minor features (compilation):
35085     - Detect non-ASCII platforms (if any still exist) and refuse to
35086       build there: some of our code assumes that 'A' is 65 and so on.
35088   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
35089     - Make the "next period" votes into "current period" votes immediately
35090       after publishing the consensus; avoid a heisenbug that made them
35091       stick around indefinitely.
35092     - When we discard a vote as a duplicate, do not report this as
35093       an error.
35094     - Treat missing v3 keys or certificates as an error when running as a
35095       v3 directory authority.
35096     - When we're configured to be a v3 authority, but we're only listed
35097       as a non-v3 authority in our DirServer line for ourself, correct
35098       the listing.
35099     - If an authority doesn't have a qualified hostname, just put
35100       its address in the vote. This fixes the problem where we referred to
35101       "moria on moria:9031."
35102     - Distinguish between detached signatures for the wrong period, and
35103       detached signatures for a divergent vote.
35104     - Fix a small memory leak when computing a consensus.
35105     - When there's no consensus, we were forming a vote every 30
35106       minutes, but writing the "valid-after" line in our vote based
35107       on our configured V3AuthVotingInterval: so unless the intervals
35108       matched up, we immediately rejected our own vote because it didn't
35109       start at the voting interval that caused us to construct a vote.
35111   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
35112     - Delete unverified-consensus when the real consensus is set.
35113     - Consider retrying a consensus networkstatus fetch immediately
35114       after one fails: don't wait 60 seconds to notice.
35115     - When fetching a consensus as a cache, wait until a newer consensus
35116       should exist before trying to replace the current one.
35117     - Use a more forgiving schedule for retrying failed consensus
35118       downloads than for other types.
35120   o Minor bugfixes (other directory issues):
35121     - Correct the implementation of "download votes by digest." Bugfix on
35122       0.2.0.8-alpha.
35123     - Authorities no longer send back "400 you're unreachable please fix
35124       it" errors to Tor servers that aren't online all the time. We're
35125       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
35127   o Minor bugfixes (controller):
35128     - Don't reset trusted dir server list when we set a configuration
35129       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
35130     - Respond to INT and TERM SIGNAL commands before we execute the
35131       signal, in case the signal shuts us down. We had a patch in
35132       0.1.2.1-alpha that tried to do this by queueing the response on
35133       the connection's buffer before shutting down, but that really
35134       isn't the same thing at all. Bug located by Matt Edman.
35136   o Minor bugfixes (misc):
35137     - Correctly check for bad options to the "PublishServerDescriptor"
35138       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
35139     - Stop leaking memory on failing case of base32_decode, and make
35140       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
35141     - Don't try to download extrainfo documents when we're trying to
35142       fetch enough directory info to build a circuit: having enough
35143       info should get priority. Bugfix on 0.2.0.x.
35144     - Don't complain that "your server has not managed to confirm that its
35145       ports are reachable" if we haven't been able to build any circuits
35146       yet. Bug found by spending four hours without a v3 consensus. Bugfix
35147       on 0.1.2.x.
35148     - Detect the reason for failing to mmap a descriptor file we just
35149       wrote, and give a more useful log message. Fixes bug 533. Bugfix
35150       on 0.1.2.x.
35152   o Code simplifications and refactoring:
35153     - Remove support for the old bw_accounting file: we've been storing
35154       bandwidth accounting information in the state file since
35155       0.1.2.5-alpha. This may result in bandwidth accounting errors
35156       if you try to upgrade from 0.1.1.x or earlier, or if you try to
35157       downgrade to 0.1.1.x or earlier.
35158     - New convenience code to locate a file within the DataDirectory.
35159     - Move non-authority functionality out of dirvote.c.
35160     - Refactor the arguments for router_pick_{directory_|trusteddir}server
35161       so that they all take the same named flags.
35163   o Utilities
35164     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
35165       Unix users an easy way to script their Tor process (e.g. by
35166       adjusting bandwidth based on the time of the day).
35169 Changes in version 0.2.0.8-alpha - 2007-10-12
35170   This eighth development snapshot fixes a crash bug that's been bothering
35171   us since February 2007, lets bridge authorities store a list of bridge
35172   descriptors they've seen, gets v3 directory voting closer to working,
35173   starts caching v3 directory consensus documents on directory mirrors,
35174   and fixes a variety of smaller issues including some minor memory leaks.
35176   o Major features (router descriptor cache):
35177     - Store routers in a file called cached-descriptors instead of in
35178       cached-routers. Initialize cached-descriptors from cached-routers
35179       if the old format is around. The new format allows us to store
35180       annotations along with descriptors.
35181     - Use annotations to record the time we received each descriptor, its
35182       source, and its purpose.
35183     - Disable the SETROUTERPURPOSE controller command: it is now
35184       obsolete.
35185     - Controllers should now specify cache=no or cache=yes when using
35186       the +POSTDESCRIPTOR command.
35187     - Bridge authorities now write bridge descriptors to disk, meaning
35188       we can export them to other programs and begin distributing them
35189       to blocked users.
35191   o Major features (directory authorities):
35192     - When a v3 authority is missing votes or signatures, it now tries
35193       to fetch them.
35194     - Directory authorities track weighted fractional uptime as well as
35195       weighted mean-time-between failures. WFU is suitable for deciding
35196       whether a node is "usually up", while MTBF is suitable for deciding
35197       whether a node is "likely to stay up." We need both, because
35198       "usually up" is a good requirement for guards, while "likely to
35199       stay up" is a good requirement for long-lived connections.
35201   o Major features (v3 directory system):
35202     - Caches now download v3 network status documents as needed,
35203       and download the descriptors listed in them.
35204     - All hosts now attempt to download and keep fresh v3 authority
35205       certificates, and re-attempt after failures.
35206     - More internal-consistency checks for vote parsing.
35208   o Major bugfixes (crashes):
35209     - If a connection is shut down abruptly because of something that
35210       happened inside connection_flushed_some(), do not call
35211       connection_finished_flushing(). Should fix bug 451. Bugfix on
35212       0.1.2.7-alpha.
35214   o Major bugfixes (performance):
35215     - Fix really bad O(n^2) performance when parsing a long list of
35216       routers: Instead of searching the entire list for an "extra-info "
35217       string which usually wasn't there, once for every routerinfo
35218       we read, just scan lines forward until we find one we like.
35219       Bugfix on 0.2.0.1.
35220     - When we add data to a write buffer in response to the data on that
35221       write buffer getting low because of a flush, do not consider the
35222       newly added data as a candidate for immediate flushing, but rather
35223       make it wait until the next round of writing. Otherwise, we flush
35224       and refill recursively, and a single greedy TLS connection can
35225       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
35227   o Minor features (v3 authority system):
35228     - Add more ways for tools to download the votes that lead to the
35229       current consensus.
35230     - Send a 503 when low on bandwidth and a vote, consensus, or
35231       certificate is requested.
35232     - If-modified-since is now implemented properly for all kinds of
35233       certificate requests.
35235   o Minor bugfixes (network statuses):
35236     - Tweak the implementation of proposal 109 slightly: allow at most
35237       two Tor servers on the same IP address, except if it's the location
35238       of a directory authority, in which case allow five. Bugfix on
35239       0.2.0.3-alpha.
35241   o Minor bugfixes (controller):
35242     - When sending a status event to the controller telling it that an
35243       OR address is reachable, set the port correctly. (Previously we
35244       were reporting the dir port.) Bugfix on 0.1.2.x.
35246   o Minor bugfixes (v3 directory system):
35247     - Fix logic to look up a cert by its signing key digest. Bugfix on
35248       0.2.0.7-alpha.
35249     - Only change the reply to a vote to "OK" if it's not already
35250       set. This gets rid of annoying "400 OK" log messages, which may
35251       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
35252     - When we get a valid consensus, recompute the voting schedule.
35253     - Base the valid-after time of a vote on the consensus voting
35254       schedule, not on our preferred schedule.
35255     - Make the return values and messages from signature uploads and
35256       downloads more sensible.
35257     - Fix a memory leak when serving votes and consensus documents, and
35258       another when serving certificates.
35260   o Minor bugfixes (performance):
35261     - Use a slightly simpler string hashing algorithm (copying Python's
35262       instead of Java's) and optimize our digest hashing algorithm to take
35263       advantage of 64-bit platforms and to remove some possibly-costly
35264       voodoo.
35265     - Fix a minor memory leak whenever we parse guards from our state
35266       file. Bugfix on 0.2.0.7-alpha.
35267     - Fix a minor memory leak whenever we write out a file. Bugfix on
35268       0.2.0.7-alpha.
35269     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
35270       command. Bugfix on 0.2.0.5-alpha.
35272   o Minor bugfixes (portability):
35273     - On some platforms, accept() can return a broken address. Detect
35274       this more quietly, and deal accordingly. Fixes bug 483.
35275     - Stop calling tor_strlower() on uninitialized memory in some cases.
35276       Bugfix in 0.2.0.7-alpha.
35278   o Minor bugfixes (usability):
35279     - Treat some 403 responses from directory servers as INFO rather than
35280       WARN-severity events.
35281     - It's not actually an error to find a non-pending entry in the DNS
35282       cache when canceling a pending resolve. Don't log unless stuff is
35283       fishy. Resolves bug 463.
35285   o Minor bugfixes (anonymity):
35286     - Never report that we've used more bandwidth than we're willing to
35287       relay: it leaks how much non-relay traffic we're using. Resolves
35288       bug 516.
35289     - When looking for a circuit to cannibalize, consider family as well
35290       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
35291       circuit cannibalization).
35293   o Code simplifications and refactoring:
35294     - Make a bunch of functions static. Remove some dead code.
35295     - Pull out about a third of the really big routerlist.c; put it in a
35296       new module, networkstatus.c.
35297     - Merge the extra fields in local_routerstatus_t back into
35298       routerstatus_t: we used to need one routerstatus_t for each
35299       authority's opinion, plus a local_routerstatus_t for the locally
35300       computed consensus opinion. To save space, we put the locally
35301       modified fields into local_routerstatus_t, and only the common
35302       stuff into routerstatus_t. But once v3 directories are in use,
35303       clients and caches will no longer need to hold authority opinions;
35304       thus, the rationale for keeping the types separate is now gone.
35305     - Make the code used to reschedule and reattempt downloads more
35306       uniform.
35307     - Turn all 'Are we a directory server/mirror?' logic into a call to
35308       dirserver_mode().
35309     - Remove the code to generate the oldest (v1) directory format.
35310       The code has been disabled since 0.2.0.5-alpha.
35313 Changes in version 0.2.0.7-alpha - 2007-09-21
35314   This seventh development snapshot makes bridges work again, makes bridge
35315   authorities work for the first time, fixes two huge performance flaws
35316   in hidden services, and fixes a variety of minor issues.
35318   o New directory authorities:
35319     - Set up moria1 and tor26 as the first v3 directory authorities. See
35320       doc/spec/dir-spec.txt for details on the new directory design.
35322   o Major bugfixes (crashes):
35323     - Fix possible segfaults in functions called from
35324       rend_process_relay_cell(). Bugfix on 0.1.2.x.
35326   o Major bugfixes (bridges):
35327     - Fix a bug that made servers send a "404 Not found" in response to
35328       attempts to fetch their server descriptor. This caused Tor servers
35329       to take many minutes to establish reachability for their DirPort,
35330       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
35331     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
35332       users configure that and specify a bridge with an identity
35333       fingerprint, now they will lookup the bridge descriptor at the
35334       default bridge authority via a one-hop tunnel, but once circuits
35335       are established they will switch to a three-hop tunnel for later
35336       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
35338   o Major bugfixes (hidden services):
35339     - Hidden services were choosing introduction points uniquely by
35340       hexdigest, but when constructing the hidden service descriptor
35341       they merely wrote the (potentially ambiguous) nickname.
35342     - Clients now use the v2 intro format for hidden service
35343       connections: they specify their chosen rendezvous point by identity
35344       digest rather than by (potentially ambiguous) nickname. Both
35345       are bugfixes on 0.1.2.x, and they could speed up hidden service
35346       connections dramatically. Thanks to Karsten Loesing.
35348   o Minor features (security):
35349     - As a client, do not believe any server that tells us that an
35350       address maps to an internal address space.
35351     - Make it possible to enable HashedControlPassword and
35352       CookieAuthentication at the same time.
35354   o Minor features (guard nodes):
35355     - Tag every guard node in our state file with the version that
35356       we believe added it, or with our own version if we add it. This way,
35357       if a user temporarily runs an old version of Tor and then switches
35358       back to a new one, she doesn't automatically lose her guards.
35360   o Minor features (speed):
35361     - When implementing AES counter mode, update only the portions of the
35362       counter buffer that need to change, and don't keep separate
35363       network-order and host-order counters when they are the same (i.e.,
35364       on big-endian hosts.)
35366   o Minor features (controller):
35367     - Accept LF instead of CRLF on controller, since some software has a
35368       hard time generating real Internet newlines.
35369     - Add GETINFO values for the server status events
35370       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
35371       Robert Hogan.
35373   o Removed features:
35374      - Routers no longer include bandwidth-history lines in their
35375        descriptors; this information is already available in extra-info
35376        documents, and including it in router descriptors took up 60%
35377        (!) of compressed router descriptor downloads. Completes
35378        implementation of proposal 104.
35379      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
35380        and TorControl.py, as they use the old v0 controller protocol,
35381        and are obsoleted by TorFlow anyway.
35382      - Drop support for v1 rendezvous descriptors, since we never used
35383        them anyway, and the code has probably rotted by now. Based on
35384        patch from Karsten Loesing.
35385      - On OSX, stop warning the user that kqueue support in libevent is
35386       "experimental", since it seems to have worked fine for ages.
35388   o Minor bugfixes:
35389     - When generating information telling us how to extend to a given
35390       router, do not try to include the nickname if it is absent. Fixes
35391       bug 467. Bugfix on 0.2.0.3-alpha.
35392     - Fix a user-triggerable (but not remotely-triggerable) segfault
35393       in expand_filename(). Bugfix on 0.1.2.x.
35394     - Fix a memory leak when freeing incomplete requests from DNSPort.
35395       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
35396     - Don't try to access (or alter) the state file when running
35397       --list-fingerprint or --verify-config or --hash-password. (Resolves
35398       bug 499.) Bugfix on 0.1.2.x.
35399     - Servers used to decline to publish their DirPort if their
35400       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
35401       were below a threshold. Now they only look at BandwidthRate and
35402       RelayBandwidthRate. Bugfix on 0.1.2.x.
35403     - Remove an optimization in the AES counter-mode code that assumed
35404       that the counter never exceeded 2^68. When the counter can be set
35405       arbitrarily as an IV (as it is by Karsten's new hidden services
35406       code), this assumption no longer holds. Bugfix on 0.1.2.x.
35407     - Resume listing "AUTHORITY" flag for authorities in network status.
35408       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
35410   o Code simplifications and refactoring:
35411     - Revamp file-writing logic so we don't need to have the entire
35412       contents of a file in memory at once before we write to disk. Tor,
35413       meet stdio.
35414     - Turn "descriptor store" into a full-fledged type.
35415     - Move all NT services code into a separate source file.
35416     - Unify all code that computes medians, percentile elements, etc.
35417     - Get rid of a needless malloc when parsing address policies.
35420 Changes in version 0.1.2.17 - 2007-08-30
35421   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
35422   X bundles. Vidalia 0.0.14 makes authentication required for the
35423   ControlPort in the default configuration, which addresses important
35424   security risks. Everybody who uses Vidalia (or another controller)
35425   should upgrade.
35427   In addition, this Tor update fixes major load balancing problems with
35428   path selection, which should speed things up a lot once many people
35429   have upgraded.
35431   o Major bugfixes (security):
35432     - We removed support for the old (v0) control protocol. It has been
35433       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
35434       become more of a headache than it's worth.
35436   o Major bugfixes (load balancing):
35437     - When choosing nodes for non-guard positions, weight guards
35438       proportionally less, since they already have enough load. Patch
35439       from Mike Perry.
35440     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
35441       will allow fast Tor servers to get more attention.
35442     - When we're upgrading from an old Tor version, forget our current
35443       guards and pick new ones according to the new weightings. These
35444       three load balancing patches could raise effective network capacity
35445       by a factor of four. Thanks to Mike Perry for measurements.
35447   o Major bugfixes (stream expiration):
35448     - Expire not-yet-successful application streams in all cases if
35449       they've been around longer than SocksTimeout. Right now there are
35450       some cases where the stream will live forever, demanding a new
35451       circuit every 15 seconds. Fixes bug 454; reported by lodger.
35453   o Minor features (controller):
35454     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
35455       is valid before any authentication has been received. It tells
35456       a controller what kind of authentication is expected, and what
35457       protocol is spoken. Implements proposal 119.
35459   o Minor bugfixes (performance):
35460     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
35461       greatly speeding up loading cached-routers from disk on startup.
35462     - Disable sentinel-based debugging for buffer code: we squashed all
35463       the bugs that this was supposed to detect a long time ago, and now
35464       its only effect is to change our buffer sizes from nice powers of
35465       two (which platform mallocs tend to like) to values slightly over
35466       powers of two (which make some platform mallocs sad).
35468   o Minor bugfixes (misc):
35469     - If exit bandwidth ever exceeds one third of total bandwidth, then
35470       use the correct formula to weight exit nodes when choosing paths.
35471       Based on patch from Mike Perry.
35472     - Choose perfectly fairly among routers when choosing by bandwidth and
35473       weighting by fraction of bandwidth provided by exits. Previously, we
35474       would choose with only approximate fairness, and correct ourselves
35475       if we ran off the end of the list.
35476     - If we require CookieAuthentication but we fail to write the
35477       cookie file, we would warn but not exit, and end up in a state
35478       where no controller could authenticate. Now we exit.
35479     - If we require CookieAuthentication, stop generating a new cookie
35480       every time we change any piece of our config.
35481     - Refuse to start with certain directory authority keys, and
35482       encourage people using them to stop.
35483     - Terminate multi-line control events properly. Original patch
35484       from tup.
35485     - Fix a minor memory leak when we fail to find enough suitable
35486       servers to choose a circuit.
35487     - Stop leaking part of the descriptor when we run into a particularly
35488       unparseable piece of it.
35491 Changes in version 0.2.0.6-alpha - 2007-08-26
35492   This sixth development snapshot features a new Vidalia version in the
35493   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
35494   the ControlPort in the default configuration, which addresses important
35495   security risks.
35497   In addition, this snapshot fixes major load balancing problems
35498   with path selection, which should speed things up a lot once many
35499   people have upgraded. The directory authorities also use a new
35500   mean-time-between-failure approach to tracking which servers are stable,
35501   rather than just looking at the most recent uptime.
35503   o New directory authorities:
35504     - Set up Tonga as the default bridge directory authority.
35506   o Major features:
35507     - Directory authorities now track servers by weighted
35508       mean-times-between-failures. When we have 4 or more days of data,
35509       use measured MTBF rather than declared uptime to decide whether
35510       to call a router Stable. Implements proposal 108.
35512   o Major bugfixes (load balancing):
35513     - When choosing nodes for non-guard positions, weight guards
35514       proportionally less, since they already have enough load. Patch
35515       from Mike Perry.
35516     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
35517       will allow fast Tor servers to get more attention.
35518     - When we're upgrading from an old Tor version, forget our current
35519       guards and pick new ones according to the new weightings. These
35520       three load balancing patches could raise effective network capacity
35521       by a factor of four. Thanks to Mike Perry for measurements.
35523   o Major bugfixes (descriptor parsing):
35524     - Handle unexpected whitespace better in malformed descriptors. Bug
35525       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
35527   o Minor features:
35528     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
35529       GETINFO for Torstat to use until it can switch to using extrainfos.
35530     - Optionally (if built with -DEXPORTMALLINFO) export the output
35531       of mallinfo via http, as tor/mallinfo.txt. Only accessible
35532       from localhost.
35534   o Minor bugfixes:
35535     - Do not intermix bridge routers with controller-added
35536       routers. (Bugfix on 0.2.0.x)
35537     - Do not fail with an assert when accept() returns an unexpected
35538       address family. Addresses but does not wholly fix bug 483. (Bugfix
35539       on 0.2.0.x)
35540     - Let directory authorities startup even when they can't generate
35541       a descriptor immediately, e.g. because they don't know their
35542       address.
35543     - Stop putting the authentication cookie in a file called "0"
35544       in your working directory if you don't specify anything for the
35545       new CookieAuthFile option. Reported by Matt Edman.
35546     - Make it possible to read the PROTOCOLINFO response in a way that
35547       conforms to our control-spec. Reported by Matt Edman.
35548     - Fix a minor memory leak when we fail to find enough suitable
35549       servers to choose a circuit. Bugfix on 0.1.2.x.
35550     - Stop leaking part of the descriptor when we run into a particularly
35551       unparseable piece of it. Bugfix on 0.1.2.x.
35552     - Unmap the extrainfo cache file on exit.
35555 Changes in version 0.2.0.5-alpha - 2007-08-19
35556   This fifth development snapshot fixes compilation on Windows again;
35557   fixes an obnoxious client-side bug that slowed things down and put
35558   extra load on the network; gets us closer to using the v3 directory
35559   voting scheme; makes it easier for Tor controllers to use cookie-based
35560   authentication; and fixes a variety of other bugs.
35562   o Removed features:
35563     - Version 1 directories are no longer generated in full. Instead,
35564       authorities generate and serve "stub" v1 directories that list
35565       no servers. This will stop Tor versions 0.1.0.x and earlier from
35566       working, but (for security reasons) nobody should be running those
35567       versions anyway.
35569   o Major bugfixes (compilation, 0.2.0.x):
35570     - Try to fix Win32 compilation again: improve checking for IPv6 types.
35571     - Try to fix MSVC compilation: build correctly on platforms that do
35572       not define s6_addr16 or s6_addr32.
35573     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
35574       Zhou.
35576   o Major bugfixes (stream expiration):
35577     - Expire not-yet-successful application streams in all cases if
35578       they've been around longer than SocksTimeout. Right now there are
35579       some cases where the stream will live forever, demanding a new
35580       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
35581       reported by lodger.
35583   o Minor features (directory servers):
35584     - When somebody requests a list of statuses or servers, and we have
35585       none of those, return a 404 rather than an empty 200.
35587   o Minor features (directory voting):
35588     - Store v3 consensus status consensuses on disk, and reload them
35589       on startup.
35591   o Minor features (security):
35592     - Warn about unsafe ControlPort configurations.
35593     - Refuse to start with certain directory authority keys, and
35594       encourage people using them to stop.
35596   o Minor features (controller):
35597     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
35598       is valid before any authentication has been received. It tells
35599       a controller what kind of authentication is expected, and what
35600       protocol is spoken. Implements proposal 119.
35601     - New config option CookieAuthFile to choose a new location for the
35602       cookie authentication file, and config option
35603       CookieAuthFileGroupReadable to make it group-readable.
35605   o Minor features (unit testing):
35606     - Add command-line arguments to unit-test executable so that we can
35607       invoke any chosen test from the command line rather than having
35608       to run the whole test suite at once; and so that we can turn on
35609       logging for the unit tests.
35611   o Minor bugfixes (on 0.1.2.x):
35612     - If we require CookieAuthentication but we fail to write the
35613       cookie file, we would warn but not exit, and end up in a state
35614       where no controller could authenticate. Now we exit.
35615     - If we require CookieAuthentication, stop generating a new cookie
35616       every time we change any piece of our config.
35617     - When loading bandwidth history, do not believe any information in
35618       the future. Fixes bug 434.
35619     - When loading entry guard information, do not believe any information
35620       in the future.
35621     - When we have our clock set far in the future and generate an
35622       onion key, then re-set our clock to be correct, we should not stop
35623       the onion key from getting rotated.
35624     - Clean up torrc sample config file.
35625     - Do not automatically run configure from autogen.sh. This
35626       non-standard behavior tended to annoy people who have built other
35627       programs.
35629   o Minor bugfixes (on 0.2.0.x):
35630     - Fix a bug with AutomapHostsOnResolve that would always cause
35631       the second request to fail. Bug reported by Kate. Bugfix on
35632       0.2.0.3-alpha.
35633     - Fix a bug in ADDRMAP controller replies that would sometimes
35634       try to print a NULL. Patch from tup.
35635     - Read v3 directory authority keys from the right location.
35636     - Numerous bugfixes to directory voting code.
35639 Changes in version 0.1.2.16 - 2007-08-01
35640   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
35641   remote attacker in certain situations to rewrite the user's torrc
35642   configuration file. This can completely compromise anonymity of users
35643   in most configurations, including those running the Vidalia bundles,
35644   TorK, etc. Or worse.
35646   o Major security fixes:
35647     - Close immediately after missing authentication on control port;
35648       do not allow multiple authentication attempts.
35651 Changes in version 0.2.0.4-alpha - 2007-08-01
35652   This fourth development snapshot fixes a critical security vulnerability
35653   for most users, specifically those running Vidalia, TorK, etc. Everybody
35654   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
35656   o Major security fixes:
35657     - Close immediately after missing authentication on control port;
35658       do not allow multiple authentication attempts.
35660   o Major bugfixes (compilation):
35661     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
35662       defined there.
35664   o Minor features (performance):
35665     - Be even more aggressive about releasing RAM from small
35666       empty buffers. Thanks to our free-list code, this shouldn't be too
35667       performance-intensive.
35668     - Disable sentinel-based debugging for buffer code: we squashed all
35669       the bugs that this was supposed to detect a long time ago, and
35670       now its only effect is to change our buffer sizes from nice
35671       powers of two (which platform mallocs tend to like) to values
35672       slightly over powers of two (which make some platform mallocs sad).
35673     - Log malloc statistics from mallinfo() on platforms where it
35674       exists.
35677 Changes in version 0.2.0.3-alpha - 2007-07-29
35678   This third development snapshot introduces new experimental
35679   blocking-resistance features and a preliminary version of the v3
35680   directory voting design, and includes many other smaller features
35681   and bugfixes.
35683   o Major features:
35684     - The first pieces of our "bridge" design for blocking-resistance
35685       are implemented. People can run bridge directory authorities;
35686       people can run bridges; and people can configure their Tor clients
35687       with a set of bridges to use as the first hop into the Tor network.
35688       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
35689       details.
35690     - Create listener connections before we setuid to the configured
35691       User and Group. Now non-Windows users can choose port values
35692       under 1024, start Tor as root, and have Tor bind those ports
35693       before it changes to another UID. (Windows users could already
35694       pick these ports.)
35695     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
35696       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
35697       on "vserver" accounts. (Patch from coderman.)
35698     - Be even more aggressive about separating local traffic from relayed
35699       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
35701   o Major features (experimental):
35702     - First cut of code for "v3 dir voting": directory authorities will
35703       vote on a common network status document rather than each publishing
35704       their own opinion. This code needs more testing and more corner-case
35705       handling before it's ready for use.
35707   o Security fixes:
35708     - Directory authorities now call routers Fast if their bandwidth is
35709       at least 100KB/s, and consider their bandwidth adequate to be a
35710       Guard if it is at least 250KB/s, no matter the medians. This fix
35711       complements proposal 107. [Bugfix on 0.1.2.x]
35712     - Directory authorities now never mark more than 3 servers per IP as
35713       Valid and Running. (Implements proposal 109, by Kevin Bauer and
35714       Damon McCoy.)
35715     - Minor change to organizationName and commonName generation
35716       procedures in TLS certificates during Tor handshakes, to invalidate
35717       some earlier censorware approaches. This is not a long-term
35718       solution, but applying it will give us a bit of time to look into
35719       the epidemiology of countermeasures as they spread.
35721   o Major bugfixes (directory):
35722     - Rewrite directory tokenization code to never run off the end of
35723       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
35725   o Minor features (controller):
35726     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
35727       match requests to applications. (Patch from Robert Hogan.)
35728     - Report address and port correctly on connections to DNSPort. (Patch
35729       from Robert Hogan.)
35730     - Add a RESOLVE command to launch hostname lookups. (Original patch
35731       from Robert Hogan.)
35732     - Add GETINFO status/enough-dir-info to let controllers tell whether
35733       Tor has downloaded sufficient directory information. (Patch
35734       from Tup.)
35735     - You can now use the ControlSocket option to tell Tor to listen for
35736       controller connections on Unix domain sockets on systems that
35737       support them. (Patch from Peter Palfrader.)
35738     - STREAM NEW events are generated for DNSPort requests and for
35739       tunneled directory connections. (Patch from Robert Hogan.)
35740     - New "GETINFO address-mappings/*" command to get address mappings
35741       with expiry information. "addr-mappings/*" is now deprecated.
35742       (Patch from Tup.)
35744   o Minor features (misc):
35745     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
35746       from croup.)
35747     - The tor-gencert tool for v3 directory authorities now creates all
35748       files as readable to the file creator only, and write-protects
35749       the authority identity key.
35750     - When dumping memory usage, list bytes used in buffer memory
35751       free-lists.
35752     - When running with dmalloc, dump more stats on hup and on exit.
35753     - Directory authorities now fail quickly and (relatively) harmlessly
35754       if they generate a network status document that is somehow
35755       malformed.
35757   o Traffic load balancing improvements:
35758     - If exit bandwidth ever exceeds one third of total bandwidth, then
35759       use the correct formula to weight exit nodes when choosing paths.
35760       (Based on patch from Mike Perry.)
35761     - Choose perfectly fairly among routers when choosing by bandwidth and
35762       weighting by fraction of bandwidth provided by exits. Previously, we
35763       would choose with only approximate fairness, and correct ourselves
35764       if we ran off the end of the list. [Bugfix on 0.1.2.x]
35766   o Performance improvements:
35767     - Be more aggressive with freeing buffer RAM or putting it on the
35768       memory free lists.
35769     - Use Critical Sections rather than Mutexes for synchronizing threads
35770       on win32; Mutexes are heavier-weight, and designed for synchronizing
35771       between processes.
35773   o Deprecated and removed features:
35774     - RedirectExits is now deprecated.
35775     - Stop allowing address masks that do not correspond to bit prefixes.
35776       We have warned about these for a really long time; now it's time
35777       to reject them. (Patch from croup.)
35779   o Minor bugfixes (directory):
35780     - Fix another crash bug related to extra-info caching. (Bug found by
35781       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
35782     - Directories no longer return a "304 not modified" when they don't
35783       have the networkstatus the client asked for. Also fix a memory
35784       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
35785     - We had accidentally labelled 0.1.2.x directory servers as not
35786       suitable for begin_dir requests, and had labelled no directory
35787       servers as suitable for uploading extra-info documents. [Bugfix
35788       on 0.2.0.1-alpha]
35790   o Minor bugfixes (dns):
35791     - Fix a crash when DNSPort is set more than once. (Patch from Robert
35792       Hogan.) [Bugfix on 0.2.0.2-alpha]
35793     - Add DNSPort connections to the global connection list, so that we
35794       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
35795       on 0.2.0.2-alpha]
35796     - Fix a dangling reference that could lead to a crash when DNSPort is
35797       changed or closed (Patch from Robert Hogan.) [Bugfix on
35798       0.2.0.2-alpha]
35800   o Minor bugfixes (controller):
35801     - Provide DNS expiry times in GMT, not in local time. For backward
35802       compatibility, ADDRMAP events only provide GMT expiry in an extended
35803       field. "GETINFO address-mappings" always does the right thing.
35804     - Use CRLF line endings properly in NS events.
35805     - Terminate multi-line control events properly. (Original patch
35806       from tup.) [Bugfix on 0.1.2.x-alpha]
35807     - Do not include spaces in SOURCE_ADDR fields in STREAM
35808       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
35811 Changes in version 0.1.2.15 - 2007-07-17
35812   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
35813   problems, fixes compilation on BSD, and fixes a variety of other
35814   bugs. Everybody should upgrade.
35816   o Major bugfixes (compilation):
35817     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
35819   o Major bugfixes (crashes):
35820     - Try even harder not to dereference the first character after
35821       an mmap(). Reported by lodger.
35822     - Fix a crash bug in directory authorities when we re-number the
35823       routerlist while inserting a new router.
35824     - When the cached-routers file is an even multiple of the page size,
35825       don't run off the end and crash. (Fixes bug 455; based on idea
35826       from croup.)
35827     - Fix eventdns.c behavior on Solaris: It is critical to include
35828       orconfig.h _before_ sys/types.h, so that we can get the expected
35829       definition of _FILE_OFFSET_BITS.
35831   o Major bugfixes (security):
35832     - Fix a possible buffer overrun when using BSD natd support. Bug
35833       found by croup.
35834     - When sending destroy cells from a circuit's origin, don't include
35835       the reason for tearing down the circuit. The spec says we didn't,
35836       and now we actually don't. Reported by lodger.
35837     - Keep streamids from different exits on a circuit separate. This
35838       bug may have allowed other routers on a given circuit to inject
35839       cells into streams. Reported by lodger; fixes bug 446.
35840     - If there's a never-before-connected-to guard node in our list,
35841       never choose any guards past it. This way we don't expand our
35842       guard list unless we need to.
35844   o Minor bugfixes (guard nodes):
35845     - Weight guard selection by bandwidth, so that low-bandwidth nodes
35846       don't get overused as guards.
35848   o Minor bugfixes (directory):
35849     - Correctly count the number of authorities that recommend each
35850       version. Previously, we were under-counting by 1.
35851     - Fix a potential crash bug when we load many server descriptors at
35852       once and some of them make others of them obsolete. Fixes bug 458.
35854   o Minor bugfixes (hidden services):
35855     - Stop tearing down the whole circuit when the user asks for a
35856       connection to a port that the hidden service didn't configure.
35857       Resolves bug 444.
35859   o Minor bugfixes (misc):
35860     - On Windows, we were preventing other processes from reading
35861       cached-routers while Tor was running. Reported by janbar.
35862     - Fix a possible (but very unlikely) bug in picking routers by
35863       bandwidth. Add a log message to confirm that it is in fact
35864       unlikely. Patch from lodger.
35865     - Backport a couple of memory leak fixes.
35866     - Backport miscellaneous cosmetic bugfixes.
35869 Changes in version 0.2.0.2-alpha - 2007-06-02
35870   o Major bugfixes on 0.2.0.1-alpha:
35871     - Fix an assertion failure related to servers without extra-info digests.
35872       Resolves bugs 441 and 442.
35874   o Minor features (directory):
35875     - Support "If-Modified-Since" when answering HTTP requests for
35876       directories, running-routers documents, and network-status documents.
35877       (There's no need to support it for router descriptors, since those
35878       are downloaded by descriptor digest.)
35880   o Minor build issues:
35881     - Clear up some MIPSPro compiler warnings.
35882     - When building from a tarball on a machine that happens to have SVK
35883       installed, report the micro-revision as whatever version existed
35884       in the tarball, not as "x".
35887 Changes in version 0.2.0.1-alpha - 2007-06-01
35888   This early development snapshot provides new features for people running
35889   Tor as both a client and a server (check out the new RelayBandwidth
35890   config options); lets Tor run as a DNS proxy; and generally moves us
35891   forward on a lot of fronts.
35893   o Major features, server usability:
35894     - New config options RelayBandwidthRate and RelayBandwidthBurst:
35895       a separate set of token buckets for relayed traffic. Right now
35896       relayed traffic is defined as answers to directory requests, and
35897       OR connections that don't have any local circuits on them.
35899   o Major features, client usability:
35900     - A client-side DNS proxy feature to replace the need for
35901       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
35902       for DNS requests on port 9999, use the Tor network to resolve them
35903       anonymously, and send the reply back like a regular DNS server.
35904       The code still only implements a subset of DNS.
35905     - Make PreferTunneledDirConns and TunnelDirConns work even when
35906       we have no cached directory info. This means Tor clients can now
35907       do all of their connections protected by TLS.
35909   o Major features, performance and efficiency:
35910     - Directory authorities accept and serve "extra info" documents for
35911       routers. These documents contain fields from router descriptors
35912       that aren't usually needed, and that use a lot of excess
35913       bandwidth. Once these fields are removed from router descriptors,
35914       the bandwidth savings should be about 60%. [Partially implements
35915       proposal 104.]
35916     - Servers upload extra-info documents to any authority that accepts
35917       them. Authorities (and caches that have been configured to download
35918       extra-info documents) download them as needed. [Partially implements
35919       proposal 104.]
35920     - Change the way that Tor buffers data that it is waiting to write.
35921       Instead of queueing data cells in an enormous ring buffer for each
35922       client->OR or OR->OR connection, we now queue cells on a separate
35923       queue for each circuit. This lets us use less slack memory, and
35924       will eventually let us be smarter about prioritizing different kinds
35925       of traffic.
35926     - Use memory pools to allocate cells with better speed and memory
35927       efficiency, especially on platforms where malloc() is inefficient.
35928     - Stop reading on edge connections when their corresponding circuit
35929       buffers are full; start again as the circuits empty out.
35931   o Major features, other:
35932     - Add an HSAuthorityRecordStats option that hidden service authorities
35933       can use to track statistics of overall hidden service usage without
35934       logging information that would be very useful to an attacker.
35935     - Start work implementing multi-level keys for directory authorities:
35936       Add a standalone tool to generate key certificates. (Proposal 103.)
35938   o Security fixes:
35939     - Directory authorities now call routers Stable if they have an
35940       uptime of at least 30 days, even if that's not the median uptime
35941       in the network. Implements proposal 107, suggested by Kevin Bauer
35942       and Damon McCoy.
35944   o Minor fixes (resource management):
35945     - Count the number of open sockets separately from the number
35946       of active connection_t objects. This will let us avoid underusing
35947       our allocated connection limit.
35948     - We no longer use socket pairs to link an edge connection to an
35949       anonymous directory connection or a DirPort test connection.
35950       Instead, we track the link internally and transfer the data
35951       in-process. This saves two sockets per "linked" connection (at the
35952       client and at the server), and avoids the nasty Windows socketpair()
35953       workaround.
35954     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
35955       for every single inactive connection_t. Free items from the
35956       4k/16k-buffer free lists when they haven't been used for a while.
35958   o Minor features (build):
35959     - Make autoconf search for libevent, openssl, and zlib consistently.
35960     - Update deprecated macros in configure.in.
35961     - When warning about missing headers, tell the user to let us
35962       know if the compile succeeds anyway, so we can downgrade the
35963       warning.
35964     - Include the current subversion revision as part of the version
35965       string: either fetch it directly if we're in an SVN checkout, do
35966       some magic to guess it if we're in an SVK checkout, or use
35967       the last-detected version if we're building from a .tar.gz.
35968       Use this version consistently in log messages.
35970   o Minor features (logging):
35971     - Always prepend "Bug: " to any log message about a bug.
35972     - Put a platform string (e.g. "Linux i686") in the startup log
35973       message, so when people paste just their logs, we know if it's
35974       OpenBSD or Windows or what.
35975     - When logging memory usage, break down memory used in buffers by
35976       buffer type.
35978   o Minor features (directory system):
35979     - New config option V2AuthoritativeDirectory that all directory
35980       authorities should set. This will let future authorities choose
35981       not to serve V2 directory information.
35982     - Directory authorities allow multiple router descriptors and/or extra
35983       info documents to be uploaded in a single go. This will make
35984       implementing proposal 104 simpler.
35986   o Minor features (controller):
35987     - Add a new config option __DisablePredictedCircuits designed for
35988       use by the controller, when we don't want Tor to build any circuits
35989       preemptively.
35990     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
35991       so we can exit from the middle of the circuit.
35992     - Implement "getinfo status/circuit-established".
35993     - Implement "getinfo status/version/..." so a controller can tell
35994       whether the current version is recommended, and whether any versions
35995       are good, and how many authorities agree. (Patch from shibz.)
35997   o Minor features (hidden services):
35998     - Allow multiple HiddenServicePort directives with the same virtual
35999       port; when they occur, the user is sent round-robin to one
36000       of the target ports chosen at random. Partially fixes bug 393 by
36001       adding limited ad-hoc round-robining.
36003   o Minor features (other):
36004     - More unit tests.
36005     - Add a new AutomapHostsOnResolve option: when it is enabled, any
36006       resolve request for hosts matching a given pattern causes Tor to
36007       generate an internal virtual address mapping for that host. This
36008       allows DNSPort to work sensibly with hidden service users. By
36009       default, .exit and .onion addresses are remapped; the list of
36010       patterns can be reconfigured with AutomapHostsSuffixes.
36011     - Add an "-F" option to tor-resolve to force a resolve for a .onion
36012       address. Thanks to the AutomapHostsOnResolve option, this is no
36013       longer a completely silly thing to do.
36014     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
36015       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
36016     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
36017       minus 1 byte: the actual maximum declared bandwidth.
36019   o Removed features:
36020     - Removed support for the old binary "version 0" controller protocol.
36021       This has been deprecated since 0.1.1, and warnings have been issued
36022       since 0.1.2. When we encounter a v0 control message, we now send
36023       back an error and close the connection.
36024     - Remove the old "dns worker" server DNS code: it hasn't been default
36025       since 0.1.2.2-alpha, and all the servers seem to be using the new
36026       eventdns code.
36028   o Minor bugfixes (portability):
36029     - Even though Windows is equally happy with / and \ as path separators,
36030       try to use \ consistently on Windows and / consistently on Unix: it
36031       makes the log messages nicer.
36032     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
36033     - Read resolv.conf files correctly on platforms where read() returns
36034       partial results on small file reads.
36036   o Minor bugfixes (directory):
36037     - Correctly enforce that elements of directory objects do not appear
36038       more often than they are allowed to appear.
36039     - When we are reporting the DirServer line we just parsed, we were
36040       logging the second stanza of the key fingerprint, not the first.
36042   o Minor bugfixes (logging):
36043     - When we hit an EOF on a log (probably because we're shutting down),
36044       don't try to remove the log from the list: just mark it as
36045       unusable. (Bulletproofs against bug 222.)
36047   o Minor bugfixes (other):
36048     - In the exitlist script, only consider the most recently published
36049       server descriptor for each server. Also, when the user requests
36050       a list of servers that _reject_ connections to a given address,
36051       explicitly exclude the IPs that also have servers that accept
36052       connections to that address. (Resolves bug 405.)
36053     - Stop allowing hibernating servers to be "stable" or "fast".
36054     - On Windows, we were preventing other processes from reading
36055       cached-routers while Tor was running. (Reported by janbar)
36056     - Make the NodeFamilies config option work. (Reported by
36057       lodger -- it has never actually worked, even though we added it
36058       in Oct 2004.)
36059     - Check return values from pthread_mutex functions.
36060     - Don't save non-general-purpose router descriptors to the disk cache,
36061       because we have no way of remembering what their purpose was when
36062       we restart.
36063     - Add even more asserts to hunt down bug 417.
36064     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
36065     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
36066       Add a log message to confirm that it is in fact unlikely.
36068   o Minor bugfixes (controller):
36069     - Make 'getinfo fingerprint' return a 551 error if we're not a
36070       server, so we match what the control spec claims we do. Reported
36071       by daejees.
36072     - Fix a typo in an error message when extendcircuit fails that
36073       caused us to not follow the \r\n-based delimiter protocol. Reported
36074       by daejees.
36076   o Code simplifications and refactoring:
36077     - Stop passing around circuit_t and crypt_path_t pointers that are
36078       implicit in other procedure arguments.
36079     - Drop the old code to choke directory connections when the
36080       corresponding OR connections got full: thanks to the cell queue
36081       feature, OR conns don't get full any more.
36082     - Make dns_resolve() handle attaching connections to circuits
36083       properly, so the caller doesn't have to.
36084     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
36085     - Keep the connection array as a dynamic smartlist_t, rather than as
36086       a fixed-sized array. This is important, as the number of connections
36087       is becoming increasingly decoupled from the number of sockets.
36090 Changes in version 0.1.2.14 - 2007-05-25
36091   Tor 0.1.2.14 changes the addresses of two directory authorities (this
36092   change especially affects those who serve or use hidden services),
36093   and fixes several other crash- and security-related bugs.
36095   o Directory authority changes:
36096     - Two directory authorities (moria1 and moria2) just moved to new
36097       IP addresses. This change will particularly affect those who serve
36098       or use hidden services.
36100   o Major bugfixes (crashes):
36101     - If a directory server runs out of space in the connection table
36102       as it's processing a begin_dir request, it will free the exit stream
36103       but leave it attached to the circuit, leading to unpredictable
36104       behavior. (Reported by seeess, fixes bug 425.)
36105     - Fix a bug in dirserv_remove_invalid() that would cause authorities
36106       to corrupt memory under some really unlikely scenarios.
36107     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
36108     - Avoid segfaults when reading from mmaped descriptor file. (Reported
36109       by lodger.)
36111   o Major bugfixes (security):
36112     - When choosing an entry guard for a circuit, avoid using guards
36113       that are in the same family as the chosen exit -- not just guards
36114       that are exactly the chosen exit. (Reported by lodger.)
36116   o Major bugfixes (resource management):
36117     - If a directory authority is down, skip it when deciding where to get
36118       networkstatus objects or descriptors. Otherwise we keep asking
36119       every 10 seconds forever. Fixes bug 384.
36120     - Count it as a failure if we fetch a valid network-status but we
36121       don't want to keep it. Otherwise we'll keep fetching it and keep
36122       not wanting to keep it. Fixes part of bug 422.
36123     - If all of our dirservers have given us bad or no networkstatuses
36124       lately, then stop hammering them once per minute even when we
36125       think they're failed. Fixes another part of bug 422.
36127   o Minor bugfixes:
36128     - Actually set the purpose correctly for descriptors inserted with
36129       purpose=controller.
36130     - When we have k non-v2 authorities in our DirServer config,
36131       we ignored the last k authorities in the list when updating our
36132       network-statuses.
36133     - Correctly back-off from requesting router descriptors that we are
36134       having a hard time downloading.
36135     - Read resolv.conf files correctly on platforms where read() returns
36136       partial results on small file reads.
36137     - Don't rebuild the entire router store every time we get 32K of
36138       routers: rebuild it when the journal gets very large, or when
36139       the gaps in the store get very large.
36141   o Minor features:
36142     - When routers publish SVN revisions in their router descriptors,
36143       authorities now include those versions correctly in networkstatus
36144       documents.
36145     - Warn when using a version of libevent before 1.3b to run a server on
36146       OSX or BSD: these versions interact badly with userspace threads.
36149 Changes in version 0.1.2.13 - 2007-04-24
36150   This release features some major anonymity fixes, such as safer path
36151   selection; better client performance; faster bootstrapping, better
36152   address detection, and better DNS support for servers; write limiting as
36153   well as read limiting to make servers easier to run; and a huge pile of
36154   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
36156   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
36157   of the Freenode IRC network, remembering his patience and vision for
36158   free speech on the Internet.
36160   o Minor fixes:
36161     - Fix a memory leak when we ask for "all" networkstatuses and we
36162       get one we don't recognize.
36163     - Add more asserts to hunt down bug 417.
36164     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
36167 Changes in version 0.1.2.12-rc - 2007-03-16
36168   o Major bugfixes:
36169     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
36170       directory information requested inside Tor connections (i.e. via
36171       begin_dir cells). It only triggered when the same connection was
36172       serving other data at the same time. Reported by seeess.
36174   o Minor bugfixes:
36175     - When creating a circuit via the controller, send a 'launched'
36176       event when we're done, so we follow the spec better.
36179 Changes in version 0.1.2.11-rc - 2007-03-15
36180   o Minor bugfixes (controller), reported by daejees:
36181     - Correct the control spec to match how the code actually responds
36182       to 'getinfo addr-mappings/*'.
36183     - The control spec described a GUARDS event, but the code
36184       implemented a GUARD event. Standardize on GUARD, but let people
36185       ask for GUARDS too.
36188 Changes in version 0.1.2.10-rc - 2007-03-07
36189   o Major bugfixes (Windows):
36190     - Do not load the NT services library functions (which may not exist)
36191       just to detect if we're a service trying to shut down. Now we run
36192       on Win98 and friends again.
36194   o Minor bugfixes (other):
36195     - Clarify a couple of log messages.
36196     - Fix a misleading socks5 error number.
36199 Changes in version 0.1.2.9-rc - 2007-03-02
36200   o Major bugfixes (Windows):
36201     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
36202       of the usual GCC "%llu". This prevents a bug when saving 64-bit
36203       int configuration values: the high-order 32 bits would get
36204       truncated. In particular, we were being bitten by the default
36205       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
36206       and maybe also bug 397.)
36208   o Minor bugfixes (performance):
36209     - Use OpenSSL's AES implementation on platforms where it's faster.
36210       This could save us as much as 10% CPU usage.
36212   o Minor bugfixes (server):
36213     - Do not rotate onion key immediately after setting it for the first
36214       time.
36216   o Minor bugfixes (directory authorities):
36217     - Stop calling servers that have been hibernating for a long time
36218       "stable". Also, stop letting hibernating or obsolete servers affect
36219       uptime and bandwidth cutoffs.
36220     - Stop listing hibernating servers in the v1 directory.
36222   o Minor bugfixes (hidden services):
36223     - Upload hidden service descriptors slightly less often, to reduce
36224       load on authorities.
36226   o Minor bugfixes (other):
36227     - Fix an assert that could trigger if a controller quickly set then
36228       cleared EntryNodes. Bug found by Udo van den Heuvel.
36229     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
36230       to INT32_MAX.
36231     - Fix a potential race condition in the rpm installer. Found by
36232       Stefan Nordhausen.
36233     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
36234       of 2 as indicating that the server is completely bad; it sometimes
36235       means that the server is just bad for the request in question. (may fix
36236       the last of bug 326.)
36237     - Disable encrypted directory connections when we don't have a server
36238       descriptor for the destination. We'll get this working again in
36239       the 0.2.0 branch.
36242 Changes in version 0.1.2.8-beta - 2007-02-26
36243   o Major bugfixes (crashes):
36244     - Stop crashing when the controller asks us to resetconf more than
36245       one config option at once. (Vidalia 0.0.11 does this.)
36246     - Fix a crash that happened on Win98 when we're given command-line
36247       arguments: don't try to load NT service functions from advapi32.dll
36248       except when we need them. (Bug introduced in 0.1.2.7-alpha;
36249       resolves bug 389.)
36250     - Fix a longstanding obscure crash bug that could occur when
36251       we run out of DNS worker processes. (Resolves bug 390.)
36253   o Major bugfixes (hidden services):
36254     - Correctly detect whether hidden service descriptor downloads are
36255       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
36257   o Major bugfixes (accounting):
36258     - When we start during an accounting interval before it's time to wake
36259       up, remember to wake up at the correct time. (May fix bug 342.)
36261   o Minor bugfixes (controller):
36262     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
36263       clear the corresponding on_circuit variable, and remember later
36264       that we don't need to send a redundant CLOSED event. Resolves part
36265       3 of bug 367.
36266     - Report events where a resolve succeeded or where we got a socks
36267       protocol error correctly, rather than calling both of them
36268       "INTERNAL".
36269     - Change reported stream target addresses to IP consistently when
36270       we finally get the IP from an exit node.
36271     - Send log messages to the controller even if they happen to be very
36272       long.
36274   o Minor bugfixes (other):
36275     - Display correct results when reporting which versions are
36276       recommended, and how recommended they are. (Resolves bug 383.)
36277     - Improve our estimates for directory bandwidth to be less random:
36278       guess that an unrecognized directory will have the average bandwidth
36279       from all known directories, not that it will have the average
36280       bandwidth from those directories earlier than it on the list.
36281     - If we start a server with ClientOnly 1, then set ClientOnly to 0
36282       and hup, stop triggering an assert based on an empty onion_key.
36283     - On platforms with no working mmap() equivalent, don't warn the
36284       user when cached-routers doesn't exist.
36285     - Warn the user when mmap() [or its equivalent] fails for some reason
36286       other than file-not-found.
36287     - Don't warn the user when cached-routers.new doesn't exist: that's
36288       perfectly fine when starting up for the first time.
36289     - When EntryNodes are configured, rebuild the guard list to contain,
36290       in order: the EntryNodes that were guards before; the rest of the
36291       EntryNodes; the nodes that were guards before.
36292     - Mask out all signals in sub-threads; only the libevent signal
36293       handler should be processing them. This should prevent some crashes
36294       on some machines using pthreads. (Patch from coderman.)
36295     - Fix switched arguments on memset in the implementation of
36296       tor_munmap() for systems with no mmap() call.
36297     - When Tor receives a router descriptor that it asked for, but
36298       no longer wants (because it has received fresh networkstatuses
36299       in the meantime), do not warn the user. Cache the descriptor if
36300       we're a cache; drop it if we aren't.
36301     - Make earlier entry guards _really_ get retried when the network
36302       comes back online.
36303     - On a malformed DNS reply, always give an error to the corresponding
36304       DNS request.
36305     - Build with recent libevents on platforms that do not define the
36306       nonstandard types "u_int8_t" and friends.
36308   o Minor features (controller):
36309     - Warn the user when an application uses the obsolete binary v0
36310       control protocol. We're planning to remove support for it during
36311       the next development series, so it's good to give people some
36312       advance warning.
36313     - Add STREAM_BW events to report per-entry-stream bandwidth
36314       use. (Patch from Robert Hogan.)
36315     - Rate-limit SIGNEWNYM signals in response to controllers that
36316       impolitely generate them for every single stream. (Patch from
36317       mwenge; closes bug 394.)
36318     - Make REMAP stream events have a SOURCE (cache or exit), and
36319       make them generated in every case where we get a successful
36320       connected or resolved cell.
36322   o Minor bugfixes (performance):
36323     - Call router_have_min_dir_info half as often. (This is showing up in
36324       some profiles, but not others.)
36325     - When using GCC, make log_debug never get called at all, and its
36326       arguments never get evaluated, when no debug logs are configured.
36327       (This is showing up in some profiles, but not others.)
36329   o Minor features:
36330     - Remove some never-implemented options. Mark PathlenCoinWeight as
36331       obsolete.
36332     - Implement proposal 106: Stop requiring clients to have well-formed
36333       certificates; stop checking nicknames in certificates. (Clients
36334       have certificates so that they can look like Tor servers, but in
36335       the future we might want to allow them to look like regular TLS
36336       clients instead. Nicknames in certificates serve no purpose other
36337       than making our protocol easier to recognize on the wire.)
36338     - Revise messages on handshake failure again to be even more clear about
36339       which are incoming connections and which are outgoing.
36340     - Discard any v1 directory info that's over 1 month old (for
36341       directories) or over 1 week old (for running-routers lists).
36342     - Do not warn when individual nodes in the configuration's EntryNodes,
36343       ExitNodes, etc are down: warn only when all possible nodes
36344       are down. (Fixes bug 348.)
36345     - Always remove expired routers and networkstatus docs before checking
36346       whether we have enough information to build circuits. (Fixes
36347       bug 373.)
36348     - Put a lower-bound on MaxAdvertisedBandwidth.
36351 Changes in version 0.1.2.7-alpha - 2007-02-06
36352   o Major bugfixes (rate limiting):
36353     - Servers decline directory requests much more aggressively when
36354       they're low on bandwidth. Otherwise they end up queueing more and
36355       more directory responses, which can't be good for latency.
36356     - But never refuse directory requests from local addresses.
36357     - Fix a memory leak when sending a 503 response for a networkstatus
36358       request.
36359     - Be willing to read or write on local connections (e.g. controller
36360       connections) even when the global rate limiting buckets are empty.
36361     - If our system clock jumps back in time, don't publish a negative
36362       uptime in the descriptor. Also, don't let the global rate limiting
36363       buckets go absurdly negative.
36364     - Flush local controller connection buffers periodically as we're
36365       writing to them, so we avoid queueing 4+ megabytes of data before
36366       trying to flush.
36368   o Major bugfixes (NT services):
36369     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
36370       command-line flag so that admins can override the default by saying
36371       "tor --service install --user "SomeUser"". This will not affect
36372       existing installed services. Also, warn the user that the service
36373       will look for its configuration file in the service user's
36374       %appdata% directory. (We can't do the 'hardwire the user's appdata
36375       directory' trick any more, since we may not have read access to that
36376       directory.)
36378   o Major bugfixes (other):
36379     - Previously, we would cache up to 16 old networkstatus documents
36380       indefinitely, if they came from nontrusted authorities. Now we
36381       discard them if they are more than 10 days old.
36382     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
36383       Del Vecchio).
36384     - Detect and reject malformed DNS responses containing circular
36385       pointer loops.
36386     - If exits are rare enough that we're not marking exits as guards,
36387       ignore exit bandwidth when we're deciding the required bandwidth
36388       to become a guard.
36389     - When we're handling a directory connection tunneled over Tor,
36390       don't fill up internal memory buffers with all the data we want
36391       to tunnel; instead, only add it if the OR connection that will
36392       eventually receive it has some room for it. (This can lead to
36393       slowdowns in tunneled dir connections; a better solution will have
36394       to wait for 0.2.0.)
36396   o Minor bugfixes (dns):
36397     - Add some defensive programming to eventdns.c in an attempt to catch
36398       possible memory-stomping bugs.
36399     - Detect and reject DNS replies containing IPv4 or IPv6 records with
36400       an incorrect number of bytes. (Previously, we would ignore the
36401       extra bytes.)
36402     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
36403       in the correct order, and doesn't crash.
36404     - Free memory held in recently-completed DNS lookup attempts on exit.
36405       This was not a memory leak, but may have been hiding memory leaks.
36406     - Handle TTL values correctly on reverse DNS lookups.
36407     - Treat failure to parse resolv.conf as an error.
36409   o Minor bugfixes (other):
36410     - Fix crash with "tor --list-fingerprint" (reported by seeess).
36411     - When computing clock skew from directory HTTP headers, consider what
36412       time it was when we finished asking for the directory, not what
36413       time it is now.
36414     - Expire socks connections if they spend too long waiting for the
36415       handshake to finish. Previously we would let them sit around for
36416       days, if the connecting application didn't close them either.
36417     - And if the socks handshake hasn't started, don't send a
36418       "DNS resolve socks failed" handshake reply; just close it.
36419     - Stop using C functions that OpenBSD's linker doesn't like.
36420     - Don't launch requests for descriptors unless we have networkstatuses
36421       from at least half of the authorities. This delays the first
36422       download slightly under pathological circumstances, but can prevent
36423       us from downloading a bunch of descriptors we don't need.
36424     - Do not log IPs with TLS failures for incoming TLS
36425       connections. (Fixes bug 382.)
36426     - If the user asks to use invalid exit nodes, be willing to use
36427       unstable ones.
36428     - Stop using the reserved ac_cv namespace in our configure script.
36429     - Call stat() slightly less often; use fstat() when possible.
36430     - Refactor the way we handle pending circuits when an OR connection
36431       completes or fails, in an attempt to fix a rare crash bug.
36432     - Only rewrite a conn's address based on X-Forwarded-For: headers
36433       if it's a parseable public IP address; and stop adding extra quotes
36434       to the resulting address.
36436   o Major features:
36437     - Weight directory requests by advertised bandwidth. Now we can
36438       let servers enable write limiting but still allow most clients to
36439       succeed at their directory requests. (We still ignore weights when
36440       choosing a directory authority; I hope this is a feature.)
36442   o Minor features:
36443     - Create a new file ReleaseNotes which was the old ChangeLog. The
36444       new ChangeLog file now includes the summaries for all development
36445       versions too.
36446     - Check for addresses with invalid characters at the exit as well
36447       as at the client, and warn less verbosely when they fail. You can
36448       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
36449     - Adapt a patch from goodell to let the contrib/exitlist script
36450       take arguments rather than require direct editing.
36451     - Inform the server operator when we decide not to advertise a
36452       DirPort due to AccountingMax enabled or a low BandwidthRate. It
36453       was confusing Zax, so now we're hopefully more helpful.
36454     - Bring us one step closer to being able to establish an encrypted
36455       directory tunnel without knowing a descriptor first. Still not
36456       ready yet. As part of the change, now assume we can use a
36457       create_fast cell if we don't know anything about a router.
36458     - Allow exit nodes to use nameservers running on ports other than 53.
36459     - Servers now cache reverse DNS replies.
36460     - Add an --ignore-missing-torrc command-line option so that we can
36461       get the "use sensible defaults if the configuration file doesn't
36462       exist" behavior even when specifying a torrc location on the command
36463       line.
36465   o Minor features (controller):
36466     - Track reasons for OR connection failure; make these reasons
36467       available via the controller interface. (Patch from Mike Perry.)
36468     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
36469       can learn when clients are sending malformed hostnames to Tor.
36470     - Clean up documentation for controller status events.
36471     - Add a REMAP status to stream events to note that a stream's
36472       address has changed because of a cached address or a MapAddress
36473       directive.
36476 Changes in version 0.1.2.6-alpha - 2007-01-09
36477   o Major bugfixes:
36478     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
36479       connection handles more than 4 gigs in either direction, we crash.
36480     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
36481       advertised exit node, somebody might try to exit from us when
36482       we're bootstrapping and before we've built our descriptor yet.
36483       Refuse the connection rather than crashing.
36485   o Minor bugfixes:
36486     - Warn if we (as a server) find that we've resolved an address that we
36487       weren't planning to resolve.
36488     - Warn that using select() on any libevent version before 1.1 will be
36489       unnecessarily slow (even for select()).
36490     - Flush ERR-level controller status events just like we currently
36491       flush ERR-level log events, so that a Tor shutdown doesn't prevent
36492       the controller from learning about current events.
36494   o Minor features (more controller status events):
36495     - Implement EXTERNAL_ADDRESS server status event so controllers can
36496       learn when our address changes.
36497     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
36498       can learn when directories reject our descriptor.
36499     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
36500       can learn when a client application is speaking a non-socks protocol
36501       to our SocksPort.
36502     - Implement DANGEROUS_SOCKS client status event so controllers
36503       can learn when a client application is leaking DNS addresses.
36504     - Implement BUG general status event so controllers can learn when
36505       Tor is unhappy about its internal invariants.
36506     - Implement CLOCK_SKEW general status event so controllers can learn
36507       when Tor thinks the system clock is set incorrectly.
36508     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
36509       server status events so controllers can learn when their descriptors
36510       are accepted by a directory.
36511     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
36512       server status events so controllers can learn about Tor's progress in
36513       deciding whether it's reachable from the outside.
36514     - Implement BAD_LIBEVENT general status event so controllers can learn
36515       when we have a version/method combination in libevent that needs to
36516       be changed.
36517     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
36518       and DNS_USELESS server status events so controllers can learn
36519       about changes to DNS server status.
36521   o Minor features (directory):
36522     - Authorities no longer recommend exits as guards if this would shift
36523       too much load to the exit nodes.
36526 Changes in version 0.1.2.5-alpha - 2007-01-06
36527   o Major features:
36528     - Enable write limiting as well as read limiting. Now we sacrifice
36529       capacity if we're pushing out lots of directory traffic, rather
36530       than overrunning the user's intended bandwidth limits.
36531     - Include TLS overhead when counting bandwidth usage; previously, we
36532       would count only the bytes sent over TLS, but not the bytes used
36533       to send them.
36534     - Support running the Tor service with a torrc not in the same
36535       directory as tor.exe and default to using the torrc located in
36536       the %appdata%\Tor\ of the user who installed the service. Patch
36537       from Matt Edman.
36538     - Servers now check for the case when common DNS requests are going to
36539       wildcarded addresses (i.e. all getting the same answer), and change
36540       their exit policy to reject *:* if it's happening.
36541     - Implement BEGIN_DIR cells, so we can connect to the directory
36542       server via TLS to do encrypted directory requests rather than
36543       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
36544       config options if you like.
36546   o Minor features (config and docs):
36547     - Start using the state file to store bandwidth accounting data:
36548       the bw_accounting file is now obsolete. We'll keep generating it
36549       for a while for people who are still using 0.1.2.4-alpha.
36550     - Try to batch changes to the state file so that we do as few
36551       disk writes as possible while still storing important things in
36552       a timely fashion.
36553     - The state file and the bw_accounting file get saved less often when
36554       the AvoidDiskWrites config option is set.
36555     - Make PIDFile work on Windows (untested).
36556     - Add internal descriptions for a bunch of configuration options:
36557       accessible via controller interface and in comments in saved
36558       options files.
36559     - Reject *:563 (NNTPS) in the default exit policy. We already reject
36560       NNTP by default, so this seems like a sensible addition.
36561     - Clients now reject hostnames with invalid characters. This should
36562       avoid some inadvertent info leaks. Add an option
36563       AllowNonRFC953Hostnames to disable this behavior, in case somebody
36564       is running a private network with hosts called @, !, and #.
36565     - Add a maintainer script to tell us which options are missing
36566       documentation: "make check-docs".
36567     - Add a new address-spec.txt document to describe our special-case
36568       addresses: .exit, .onion, and .noconnnect.
36570   o Minor features (DNS):
36571     - Ongoing work on eventdns infrastructure: now it has dns server
36572       and ipv6 support. One day Tor will make use of it.
36573     - Add client-side caching for reverse DNS lookups.
36574     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
36575     - When we change nameservers or IP addresses, reset and re-launch
36576       our tests for DNS hijacking.
36578   o Minor features (directory):
36579     - Authorities now specify server versions in networkstatus. This adds
36580       about 2% to the size of compressed networkstatus docs, and allows
36581       clients to tell which servers support BEGIN_DIR and which don't.
36582       The implementation is forward-compatible with a proposed future
36583       protocol version scheme not tied to Tor versions.
36584     - DirServer configuration lines now have an orport= option so
36585       clients can open encrypted tunnels to the authorities without
36586       having downloaded their descriptors yet. Enabled for moria1,
36587       moria2, tor26, and lefkada now in the default configuration.
36588     - Directory servers are more willing to send a 503 "busy" if they
36589       are near their write limit, especially for v1 directory requests.
36590       Now they can use their limited bandwidth for actual Tor traffic.
36591     - Clients track responses with status 503 from dirservers. After a
36592       dirserver has given us a 503, we try not to use it until an hour has
36593       gone by, or until we have no dirservers that haven't given us a 503.
36594     - When we get a 503 from a directory, and we're not a server, we don't
36595       count the failure against the total number of failures allowed
36596       for the thing we're trying to download.
36597     - Report X-Your-Address-Is correctly from tunneled directory
36598       connections; don't report X-Your-Address-Is when it's an internal
36599       address; and never believe reported remote addresses when they're
36600       internal.
36601     - Protect against an unlikely DoS attack on directory servers.
36602     - Add a BadDirectory flag to network status docs so that authorities
36603       can (eventually) tell clients about caches they believe to be
36604       broken.
36606   o Minor features (controller):
36607     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
36608     - Reimplement GETINFO so that info/names stays in sync with the
36609       actual keys.
36610     - Implement "GETINFO fingerprint".
36611     - Implement "SETEVENTS GUARD" so controllers can get updates on
36612       entry guard status as it changes.
36614   o Minor features (clean up obsolete pieces):
36615     - Remove some options that have been deprecated since at least
36616       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
36617       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
36618       to set log options.
36619     - We no longer look for identity and onion keys in "identity.key" and
36620       "onion.key" -- these were replaced by secret_id_key and
36621       secret_onion_key in 0.0.8pre1.
36622     - We no longer require unrecognized directory entries to be
36623       preceded by "opt".
36625   o Major bugfixes (security):
36626     - Stop sending the HttpProxyAuthenticator string to directory
36627       servers when directory connections are tunnelled through Tor.
36628     - Clients no longer store bandwidth history in the state file.
36629     - Do not log introduction points for hidden services if SafeLogging
36630       is set.
36631     - When generating bandwidth history, round down to the nearest
36632       1k. When storing accounting data, round up to the nearest 1k.
36633     - When we're running as a server, remember when we last rotated onion
36634       keys, so that we will rotate keys once they're a week old even if
36635       we never stay up for a week ourselves.
36637   o Major bugfixes (other):
36638     - Fix a longstanding bug in eventdns that prevented the count of
36639       timed-out resolves from ever being reset. This bug caused us to
36640       give up on a nameserver the third time it timed out, and try it
36641       10 seconds later... and to give up on it every time it timed out
36642       after that.
36643     - Take out the '5 second' timeout from the connection retry
36644       schedule. Now the first connect attempt will wait a full 10
36645       seconds before switching to a new circuit. Perhaps this will help
36646       a lot. Based on observations from Mike Perry.
36647     - Fix a bug on the Windows implementation of tor_mmap_file() that
36648       would prevent the cached-routers file from ever loading. Reported
36649       by John Kimble.
36651   o Minor bugfixes:
36652     - Fix an assert failure when a directory authority sets
36653       AuthDirRejectUnlisted and then receives a descriptor from an
36654       unlisted router. Reported by seeess.
36655     - Avoid a double-free when parsing malformed DirServer lines.
36656     - Fix a bug when a BSD-style PF socket is first used. Patch from
36657       Fabian Keil.
36658     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
36659       to resolve an address at a given exit node even when they ask for
36660       it by name.
36661     - Servers no longer ever list themselves in their "family" line,
36662       even if configured to do so. This makes it easier to configure
36663       family lists conveniently.
36664     - When running as a server, don't fall back to 127.0.0.1 when no
36665       nameservers are configured in /etc/resolv.conf; instead, make the
36666       user fix resolv.conf or specify nameservers explicitly. (Resolves
36667       bug 363.)
36668     - Stop accepting certain malformed ports in configured exit policies.
36669     - Don't re-write the fingerprint file every restart, unless it has
36670       changed.
36671     - Stop warning when a single nameserver fails: only warn when _all_ of
36672       our nameservers have failed. Also, when we only have one nameserver,
36673       raise the threshold for deciding that the nameserver is dead.
36674     - Directory authorities now only decide that routers are reachable
36675       if their identity keys are as expected.
36676     - When the user uses bad syntax in the Log config line, stop
36677       suggesting other bad syntax as a replacement.
36678     - Correctly detect ipv6 DNS capability on OpenBSD.
36680   o Minor bugfixes (controller):
36681     - Report the circuit number correctly in STREAM CLOSED events. Bug
36682       reported by Mike Perry.
36683     - Do not report bizarre values for results of accounting GETINFOs
36684       when the last second's write or read exceeds the allotted bandwidth.
36685     - Report "unrecognized key" rather than an empty string when the
36686       controller tries to fetch a networkstatus that doesn't exist.
36689 Changes in version 0.1.1.26 - 2006-12-14
36690   o Security bugfixes:
36691     - Stop sending the HttpProxyAuthenticator string to directory
36692       servers when directory connections are tunnelled through Tor.
36693     - Clients no longer store bandwidth history in the state file.
36694     - Do not log introduction points for hidden services if SafeLogging
36695       is set.
36697   o Minor bugfixes:
36698     - Fix an assert failure when a directory authority sets
36699       AuthDirRejectUnlisted and then receives a descriptor from an
36700       unlisted router (reported by seeess).
36703 Changes in version 0.1.2.4-alpha - 2006-12-03
36704   o Major features:
36705     - Add support for using natd; this allows FreeBSDs earlier than
36706       5.1.2 to have ipfw send connections through Tor without using
36707       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
36709   o Minor features:
36710     - Make all connections to addresses of the form ".noconnect"
36711       immediately get closed. This lets application/controller combos
36712       successfully test whether they're talking to the same Tor by
36713       watching for STREAM events.
36714     - Make cross.sh cross-compilation script work even when autogen.sh
36715       hasn't been run. (Patch from Michael Mohr.)
36716     - Statistics dumped by -USR2 now include a breakdown of public key
36717       operations, for profiling.
36719   o Major bugfixes:
36720     - Fix a major leak when directory authorities parse their
36721       approved-routers list, a minor memory leak when we fail to pick
36722       an exit node, and a few rare leaks on errors.
36723     - Handle TransPort connections even when the server sends data before
36724       the client sends data. Previously, the connection would just hang
36725       until the client sent data. (Patch from tup based on patch from
36726       Zajcev Evgeny.)
36727     - Avoid assert failure when our cached-routers file is empty on
36728       startup.
36730   o Minor bugfixes:
36731     - Don't log spurious warnings when we see a circuit close reason we
36732       don't recognize; it's probably just from a newer version of Tor.
36733     - Have directory authorities allow larger amounts of drift in uptime
36734       without replacing the server descriptor: previously, a server that
36735       restarted every 30 minutes could have 48 "interesting" descriptors
36736       per day.
36737     - Start linking to the Tor specification and Tor reference manual
36738       correctly in the Windows installer.
36739     - Add Vidalia to the OS X uninstaller script, so when we uninstall
36740       Tor/Privoxy we also uninstall Vidalia.
36741     - Resume building on Irix64, and fix a lot of warnings from its
36742       MIPSpro C compiler.
36743     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
36744       when we're running as a client.
36747 Changes in version 0.1.1.25 - 2006-11-04
36748   o Major bugfixes:
36749     - When a client asks us to resolve (rather than connect to)
36750       an address, and we have a cached answer, give them the cached
36751       answer. Previously, we would give them no answer at all.
36752     - We were building exactly the wrong circuits when we predict
36753       hidden service requirements, meaning Tor would have to build all
36754       its circuits on demand.
36755     - If none of our live entry guards have a high uptime, but we
36756       require a guard with a high uptime, try adding a new guard before
36757       we give up on the requirement. This patch should make long-lived
36758       connections more stable on average.
36759     - When testing reachability of our DirPort, don't launch new
36760       tests when there's already one in progress -- unreachable
36761       servers were stacking up dozens of testing streams.
36763   o Security bugfixes:
36764     - When the user sends a NEWNYM signal, clear the client-side DNS
36765       cache too. Otherwise we continue to act on previous information.
36767   o Minor bugfixes:
36768     - Avoid a memory corruption bug when creating a hash table for
36769       the first time.
36770     - Avoid possibility of controller-triggered crash when misusing
36771       certain commands from a v0 controller on platforms that do not
36772       handle printf("%s",NULL) gracefully.
36773     - Avoid infinite loop on unexpected controller input.
36774     - Don't log spurious warnings when we see a circuit close reason we
36775       don't recognize; it's probably just from a newer version of Tor.
36776     - Add Vidalia to the OS X uninstaller script, so when we uninstall
36777       Tor/Privoxy we also uninstall Vidalia.
36780 Changes in version 0.1.2.3-alpha - 2006-10-29
36781   o Minor features:
36782     - Prepare for servers to publish descriptors less often: never
36783       discard a descriptor simply for being too old until either it is
36784       recommended by no authorities, or until we get a better one for
36785       the same router. Make caches consider retaining old recommended
36786       routers for even longer.
36787     - If most authorities set a BadExit flag for a server, clients
36788       don't think of it as a general-purpose exit. Clients only consider
36789       authorities that advertise themselves as listing bad exits.
36790     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
36791       headers for content, so that we can work better in the presence of
36792       caching HTTP proxies.
36793     - Allow authorities to list nodes as bad exits by fingerprint or by
36794       address.
36796   o Minor features, controller:
36797     - Add a REASON field to CIRC events; for backward compatibility, this
36798       field is sent only to controllers that have enabled the extended
36799       event format. Also, add additional reason codes to explain why
36800       a given circuit has been destroyed or truncated. (Patches from
36801       Mike Perry)
36802     - Add a REMOTE_REASON field to extended CIRC events to tell the
36803       controller about why a remote OR told us to close a circuit.
36804     - Stream events also now have REASON and REMOTE_REASON fields,
36805       working much like those for circuit events.
36806     - There's now a GETINFO ns/... field so that controllers can ask Tor
36807       about the current status of a router.
36808     - A new event type "NS" to inform a controller when our opinion of
36809       a router's status has changed.
36810     - Add a GETINFO events/names and GETINFO features/names so controllers
36811       can tell which events and features are supported.
36812     - A new CLEARDNSCACHE signal to allow controllers to clear the
36813       client-side DNS cache without expiring circuits.
36815   o Security bugfixes:
36816     - When the user sends a NEWNYM signal, clear the client-side DNS
36817       cache too. Otherwise we continue to act on previous information.
36819   o Minor bugfixes:
36820     - Avoid sending junk to controllers or segfaulting when a controller
36821       uses EVENT_NEW_DESC with verbose nicknames.
36822     - Stop triggering asserts if the controller tries to extend hidden
36823       service circuits (reported by mwenge).
36824     - Avoid infinite loop on unexpected controller input.
36825     - When the controller does a "GETINFO network-status", tell it
36826       about even those routers whose descriptors are very old, and use
36827       long nicknames where appropriate.
36828     - Change NT service functions to be loaded on demand. This lets us
36829       build with MinGW without breaking Tor for Windows 98 users.
36830     - Do DirPort reachability tests less often, since a single test
36831       chews through many circuits before giving up.
36832     - In the hidden service example in torrc.sample, stop recommending
36833       esoteric and discouraged hidden service options.
36834     - When stopping an NT service, wait up to 10 sec for it to actually
36835       stop. Patch from Matt Edman; resolves bug 295.
36836     - Fix handling of verbose nicknames with ORCONN controller events:
36837       make them show up exactly when requested, rather than exactly when
36838       not requested.
36839     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
36840       printing a duplicate "$" in the keys we send (reported by mwenge).
36841     - Correctly set maximum connection limit on Cygwin. (This time
36842       for sure!)
36843     - Try to detect Windows correctly when cross-compiling.
36844     - Detect the size of the routers file correctly even if it is
36845       corrupted (on systems without mmap) or not page-aligned (on systems
36846       with mmap). This bug was harmless.
36847     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
36848       to open a stream fails; now we do in more cases. This should
36849       make clients able to find a good exit faster in some cases, since
36850       unhandleable requests will now get an error rather than timing out.
36851     - Resolve two memory leaks when rebuilding the on-disk router cache
36852       (reported by fookoowa).
36853     - Clean up minor code warnings suggested by the MIPSpro C compiler,
36854       and reported by some Centos users.
36855     - Controller signals now work on non-Unix platforms that don't define
36856       SIGUSR1 and SIGUSR2 the way we expect.
36857     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
36858       values before failing, and always enables eventdns.
36859     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
36860       Try to fix this in configure.in by checking for most functions
36861       before we check for libevent.
36864 Changes in version 0.1.2.2-alpha - 2006-10-07
36865   o Major features:
36866     - Make our async eventdns library on-by-default for Tor servers,
36867       and plan to deprecate the separate dnsworker threads.
36868     - Add server-side support for "reverse" DNS lookups (using PTR
36869       records so clients can determine the canonical hostname for a given
36870       IPv4 address). Only supported by servers using eventdns; servers
36871       now announce in their descriptors whether they support eventdns.
36872     - Specify and implement client-side SOCKS5 interface for reverse DNS
36873       lookups (see doc/socks-extensions.txt).
36874     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
36875       connect to directory servers through Tor. Previously, clients needed
36876       to find Tor exits to make private connections to directory servers.
36877     - Avoid choosing Exit nodes for entry or middle hops when the
36878       total bandwidth available from non-Exit nodes is much higher than
36879       the total bandwidth available from Exit nodes.
36880     - Workaround for name servers (like Earthlink's) that hijack failing
36881       DNS requests and replace the no-such-server answer with a "helpful"
36882       redirect to an advertising-driven search portal. Also work around
36883       DNS hijackers who "helpfully" decline to hijack known-invalid
36884       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
36885       lets you turn it off.
36886     - Send out a burst of long-range padding cells once we've established
36887       that we're reachable. Spread them over 4 circuits, so hopefully
36888       a few will be fast. This exercises our bandwidth and bootstraps
36889       us into the directory more quickly.
36891   o New/improved config options:
36892     - Add new config option "ResolvConf" to let the server operator
36893       choose an alternate resolve.conf file when using eventdns.
36894     - Add an "EnforceDistinctSubnets" option to control our "exclude
36895       servers on the same /16" behavior. It's still on by default; this
36896       is mostly for people who want to operate private test networks with
36897       all the machines on the same subnet.
36898     - If one of our entry guards is on the ExcludeNodes list, or the
36899       directory authorities don't think it's a good guard, treat it as
36900       if it were unlisted: stop using it as a guard, and throw it off
36901       the guards list if it stays that way for a long time.
36902     - Allow directory authorities to be marked separately as authorities
36903       for the v1 directory protocol, the v2 directory protocol, and
36904       as hidden service directories, to make it easier to retire old
36905       authorities. V1 authorities should set "HSAuthoritativeDir 1"
36906       to continue being hidden service authorities too.
36907     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
36909   o Minor features, controller:
36910     - Fix CIRC controller events so that controllers can learn the
36911       identity digests of non-Named servers used in circuit paths.
36912     - Let controllers ask for more useful identifiers for servers. Instead
36913       of learning identity digests for un-Named servers and nicknames
36914       for Named servers, the new identifiers include digest, nickname,
36915       and indication of Named status. Off by default; see control-spec.txt
36916       for more information.
36917     - Add a "getinfo address" controller command so it can display Tor's
36918       best guess to the user.
36919     - New controller event to alert the controller when our server
36920       descriptor has changed.
36921     - Give more meaningful errors on controller authentication failure.
36923   o Minor features, other:
36924     - When asked to resolve a hostname, don't use non-exit servers unless
36925       requested to do so. This allows servers with broken DNS to be
36926       useful to the network.
36927     - Divide eventdns log messages into warn and info messages.
36928     - Reserve the nickname "Unnamed" for routers that can't pick
36929       a hostname: any router can call itself Unnamed; directory
36930       authorities will never allocate Unnamed to any particular router;
36931       clients won't believe that any router is the canonical Unnamed.
36932     - Only include function names in log messages for info/debug messages.
36933       For notice/warn/err, the content of the message should be clear on
36934       its own, and printing the function name only confuses users.
36935     - Avoid some false positives during reachability testing: don't try
36936       to test via a server that's on the same /24 as us.
36937     - If we fail to build a circuit to an intended enclave, and it's
36938       not mandatory that we use that enclave, stop wanting it.
36939     - When eventdns is enabled, allow multithreaded builds on NetBSD and
36940       OpenBSD. (We had previously disabled threads on these platforms
36941       because they didn't have working thread-safe resolver functions.)
36943   o Major bugfixes, anonymity/security:
36944     - If a client asked for a server by name, and there's a named server
36945       in our network-status but we don't have its descriptor yet, we
36946       could return an unnamed server instead.
36947     - Fix NetBSD bug that could allow someone to force uninitialized RAM
36948       to be sent to a server's DNS resolver. This only affects NetBSD
36949       and other platforms that do not bounds-check tolower().
36950     - Reject (most) attempts to use Tor circuits with length one. (If
36951       many people start using Tor as a one-hop proxy, exit nodes become
36952       a more attractive target for compromise.)
36953     - Just because your DirPort is open doesn't mean people should be
36954       able to remotely teach you about hidden service descriptors. Now
36955       only accept rendezvous posts if you've got HSAuthoritativeDir set.
36957   o Major bugfixes, other:
36958     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
36959     - When a client asks the server to resolve (not connect to)
36960       an address, and it has a cached answer, give them the cached answer.
36961       Previously, the server would give them no answer at all.
36962     - Allow really slow clients to not hang up five minutes into their
36963       directory downloads (suggested by Adam J. Richter).
36964     - We were building exactly the wrong circuits when we anticipated
36965       hidden service requirements, meaning Tor would have to build all
36966       its circuits on demand.
36967     - Avoid crashing when we mmap a router cache file of size 0.
36968     - When testing reachability of our DirPort, don't launch new
36969       tests when there's already one in progress -- unreachable
36970       servers were stacking up dozens of testing streams.
36972   o Minor bugfixes, correctness:
36973     - If we're a directory mirror and we ask for "all" network status
36974       documents, we would discard status documents from authorities
36975       we don't recognize.
36976     - Avoid a memory corruption bug when creating a hash table for
36977       the first time.
36978     - Avoid controller-triggered crash when misusing certain commands
36979       from a v0 controller on platforms that do not handle
36980       printf("%s",NULL) gracefully.
36981     - Don't crash when a controller sends a third argument to an
36982       "extendcircuit" request.
36983     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
36984       response; fix error code when "getinfo dir/status/" fails.
36985     - Avoid crash when telling controller stream-status and a stream
36986       is detached.
36987     - Patch from Adam Langley to fix assert() in eventdns.c.
36988     - Fix a debug log message in eventdns to say "X resolved to Y"
36989       instead of "X resolved to X".
36990     - Make eventdns give strings for DNS errors, not just error numbers.
36991     - Track unreachable entry guards correctly: don't conflate
36992       'unreachable by us right now' with 'listed as down by the directory
36993       authorities'. With the old code, if a guard was unreachable by
36994       us but listed as running, it would clog our guard list forever.
36995     - Behave correctly in case we ever have a network with more than
36996       2GB/s total advertised capacity.
36997     - Make TrackExitHosts case-insensitive, and fix the behavior of
36998       ".suffix" TrackExitHosts items to avoid matching in the middle of
36999       an address.
37000     - Finally fix the openssl warnings from newer gccs that believe that
37001       ignoring a return value is okay, but casting a return value and
37002       then ignoring it is a sign of madness.
37003     - Prevent the contrib/exitlist script from printing the same
37004       result more than once.
37005     - Patch from Steve Hildrey: Generate network status correctly on
37006       non-versioning dirservers.
37007     - Don't listen to the X-Your-Address-Is hint if you did the lookup
37008       via Tor; otherwise you'll think you're the exit node's IP address.
37010   o Minor bugfixes, performance:
37011     - Two small performance improvements on parsing descriptors.
37012     - Major performance improvement on inserting descriptors: change
37013       algorithm from O(n^2) to O(n).
37014     - Make the common memory allocation path faster on machines where
37015       malloc(0) returns a pointer.
37016     - Start remembering X-Your-Address-Is directory hints even if you're
37017       a client, so you can become a server more smoothly.
37018     - Avoid duplicate entries on MyFamily line in server descriptor.
37020   o Packaging, features:
37021     - Remove architecture from OS X builds. The official builds are
37022       now universal binaries.
37023     - The Debian package now uses --verify-config when (re)starting,
37024       to distinguish configuration errors from other errors.
37025     - Update RPMs to require libevent 1.1b.
37027   o Packaging, bugfixes:
37028     - Patches so Tor builds with MinGW on Windows.
37029     - Patches so Tor might run on Cygwin again.
37030     - Resume building on non-gcc compilers and ancient gcc. Resume
37031       building with the -O0 compile flag. Resume building cleanly on
37032       Debian woody.
37033     - Run correctly on OS X platforms with case-sensitive filesystems.
37034     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
37035     - Add autoconf checks so Tor can build on Solaris x86 again.
37037   o Documentation
37038     - Documented (and renamed) ServerDNSSearchDomains and
37039       ServerDNSResolvConfFile options.
37040     - Be clearer that the *ListenAddress directives can be repeated
37041       multiple times.
37044 Changes in version 0.1.1.24 - 2006-09-29
37045   o Major bugfixes:
37046     - Allow really slow clients to not hang up five minutes into their
37047       directory downloads (suggested by Adam J. Richter).
37048     - Fix major performance regression from 0.1.0.x: instead of checking
37049       whether we have enough directory information every time we want to
37050       do something, only check when the directory information has changed.
37051       This should improve client CPU usage by 25-50%.
37052     - Don't crash if, after a server has been running for a while,
37053       it can't resolve its hostname.
37055   o Minor bugfixes:
37056     - Allow Tor to start when RunAsDaemon is set but no logs are set.
37057     - Don't crash when the controller receives a third argument to an
37058       "extendcircuit" request.
37059     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
37060       response; fix error code when "getinfo dir/status/" fails.
37061     - Fix configure.in to not produce broken configure files with
37062       more recent versions of autoconf. Thanks to Clint for his auto*
37063       voodoo.
37064     - Fix security bug on NetBSD that could allow someone to force
37065       uninitialized RAM to be sent to a server's DNS resolver. This
37066       only affects NetBSD and other platforms that do not bounds-check
37067       tolower().
37068     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
37069       methods: these are known to be buggy.
37070     - If we're a directory mirror and we ask for "all" network status
37071       documents, we would discard status documents from authorities
37072       we don't recognize.
37075 Changes in version 0.1.2.1-alpha - 2006-08-27
37076   o Major features:
37077     - Add "eventdns" async dns library from Adam Langley, tweaked to
37078       build on OSX and Windows. Only enabled if you pass the
37079       --enable-eventdns argument to configure.
37080     - Allow servers with no hostname or IP address to learn their
37081       IP address by asking the directory authorities. This code only
37082       kicks in when you would normally have exited with a "no address"
37083       error. Nothing's authenticated, so use with care.
37084     - Rather than waiting a fixed amount of time between retrying
37085       application connections, we wait only 5 seconds for the first,
37086       10 seconds for the second, and 15 seconds for each retry after
37087       that. Hopefully this will improve the expected user experience.
37088     - Patch from Tup to add support for transparent AP connections:
37089       this basically bundles the functionality of trans-proxy-tor
37090       into the Tor mainline. Now hosts with compliant pf/netfilter
37091       implementations can redirect TCP connections straight to Tor
37092       without diverting through SOCKS. Needs docs.
37093     - Busy directory servers save lots of memory by spooling server
37094       descriptors, v1 directories, and v2 networkstatus docs to buffers
37095       as needed rather than en masse. Also mmap the cached-routers
37096       files, so we don't need to keep the whole thing in memory too.
37097     - Automatically avoid picking more than one node from the same
37098       /16 network when constructing a circuit.
37099     - Revise and clean up the torrc.sample that we ship with; add
37100       a section for BandwidthRate and BandwidthBurst.
37102   o Minor features:
37103     - Split circuit_t into origin_circuit_t and or_circuit_t, and
37104       split connection_t into edge, or, dir, control, and base structs.
37105       These will save quite a bit of memory on busy servers, and they'll
37106       also help us track down bugs in the code and bugs in the spec.
37107     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
37108       or later. Log when we are doing this, so we can diagnose it when
37109       it fails. (Also, recommend libevent 1.1b for kqueue and
37110       win32 methods; deprecate libevent 1.0b harder; make libevent
37111       recommendation system saner.)
37112     - Start being able to build universal binaries on OS X (thanks
37113       to Phobos).
37114     - Export the default exit policy via the control port, so controllers
37115       don't need to guess what it is / will be later.
37116     - Add a man page entry for ProtocolWarnings.
37117     - Add TestVia config option to the man page.
37118     - Remove even more protocol-related warnings from Tor server logs,
37119       such as bad TLS handshakes and malformed begin cells.
37120     - Stop fetching descriptors if you're not a dir mirror and you
37121       haven't tried to establish any circuits lately. [This currently
37122       causes some dangerous behavior, because when you start up again
37123       you'll use your ancient server descriptors.]
37124     - New DirPort behavior: if you have your dirport set, you download
37125       descriptors aggressively like a directory mirror, whether or not
37126       your ORPort is set.
37127     - Get rid of the router_retry_connections notion. Now routers
37128       no longer try to rebuild long-term connections to directory
37129       authorities, and directory authorities no longer try to rebuild
37130       long-term connections to all servers. We still don't hang up
37131       connections in these two cases though -- we need to look at it
37132       more carefully to avoid flapping, and we likely need to wait til
37133       0.1.1.x is obsolete.
37134     - Drop compatibility with obsolete Tors that permit create cells
37135       to have the wrong circ_id_type.
37136     - Re-enable per-connection rate limiting. Get rid of the "OP
37137       bandwidth" concept. Lay groundwork for "bandwidth classes" --
37138       separate global buckets that apply depending on what sort of conn
37139       it is.
37140     - Start publishing one minute or so after we find our ORPort
37141       to be reachable. This will help reduce the number of descriptors
37142       we have for ourselves floating around, since it's quite likely
37143       other things (e.g. DirPort) will change during that minute too.
37144     - Fork the v1 directory protocol into its own spec document,
37145       and mark dir-spec.txt as the currently correct (v2) spec.
37147   o Major bugfixes:
37148     - When we find our DirPort to be reachable, publish a new descriptor
37149       so we'll tell the world (reported by pnx).
37150     - Publish a new descriptor after we hup/reload. This is important
37151       if our config has changed such that we'll want to start advertising
37152       our DirPort now, etc.
37153     - Allow Tor to start when RunAsDaemon is set but no logs are set.
37154     - When we have a state file we cannot parse, tell the user and
37155       move it aside. Now we avoid situations where the user starts
37156       Tor in 1904, Tor writes a state file with that timestamp in it,
37157       the user fixes her clock, and Tor refuses to start.
37158     - Fix configure.in to not produce broken configure files with
37159       more recent versions of autoconf. Thanks to Clint for his auto*
37160       voodoo.
37161     - "tor --verify-config" now exits with -1(255) or 0 depending on
37162       whether the config options are bad or good.
37163     - Resolve bug 321 when using dnsworkers: append a period to every
37164       address we resolve at the exit node, so that we do not accidentally
37165       pick up local addresses, and so that failing searches are retried
37166       in the resolver search domains. (This is already solved for
37167       eventdns.) (This breaks Blossom servers for now.)
37168     - If we are using an exit enclave and we can't connect, e.g. because
37169       its webserver is misconfigured to not listen on localhost, then
37170       back off and try connecting from somewhere else before we fail.
37172   o Minor bugfixes:
37173     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
37174     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
37175     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
37176       when the IP address is mapped through MapAddress to a hostname.
37177     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
37178       useless IPv6 DNS resolves.
37179     - Patch suggested by Karsten Loesing: respond to SIGNAL command
37180       before we execute the signal, in case the signal shuts us down.
37181     - Clean up AllowInvalidNodes man page entry.
37182     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
37183     - Add more asserts to track down an assert error on a windows Tor
37184       server with connection_add being called with socket == -1.
37185     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
37186     - Fix misleading log messages: an entry guard that is "unlisted",
37187       as well as not known to be "down" (because we've never heard
37188       of it), is not therefore "up".
37189     - Remove code to special-case "-cvs" ending, since it has not
37190       actually mattered since 0.0.9.
37191     - Make our socks5 handling more robust to broken socks clients:
37192       throw out everything waiting on the buffer in between socks
37193       handshake phases, since they can't possibly (so the theory
37194       goes) have predicted what we plan to respond to them.
37197 Changes in version 0.1.1.23 - 2006-07-30
37198   o Major bugfixes:
37199     - Fast Tor servers, especially exit nodes, were triggering asserts
37200       due to a bug in handling the list of pending DNS resolves. Some
37201       bugs still remain here; we're hunting them.
37202     - Entry guards could crash clients by sending unexpected input.
37203     - More fixes on reachability testing: if you find yourself reachable,
37204       then don't ever make any client requests (so you stop predicting
37205       circuits), then hup or have your clock jump, then later your IP
37206       changes, you won't think circuits are working, so you won't try to
37207       test reachability, so you won't publish.
37209   o Minor bugfixes:
37210     - Avoid a crash if the controller does a resetconf firewallports
37211       and then a setconf fascistfirewall=1.
37212     - Avoid an integer underflow when the dir authority decides whether
37213       a router is stable: we might wrongly label it stable, and compute
37214       a slightly wrong median stability, when a descriptor is published
37215       later than now.
37216     - Fix a place where we might trigger an assert if we can't build our
37217       own server descriptor yet.
37220 Changes in version 0.1.1.22 - 2006-07-05
37221   o Major bugfixes:
37222     - Fix a big bug that was causing servers to not find themselves
37223       reachable if they changed IP addresses. Since only 0.1.1.22+
37224       servers can do reachability testing correctly, now we automatically
37225       make sure to test via one of these.
37226     - Fix to allow clients and mirrors to learn directory info from
37227       descriptor downloads that get cut off partway through.
37228     - Directory authorities had a bug in deciding if a newly published
37229       descriptor was novel enough to make everybody want a copy -- a few
37230       servers seem to be publishing new descriptors many times a minute.
37231   o Minor bugfixes:
37232     - Fix a rare bug that was causing some servers to complain about
37233       "closing wedged cpuworkers" and skip some circuit create requests.
37234     - Make the Exit flag in directory status documents actually work.
37237 Changes in version 0.1.1.21 - 2006-06-10
37238   o Crash and assert fixes from 0.1.1.20:
37239     - Fix a rare crash on Tor servers that have enabled hibernation.
37240     - Fix a seg fault on startup for Tor networks that use only one
37241       directory authority.
37242     - Fix an assert from a race condition that occurs on Tor servers
37243       while exiting, where various threads are trying to log that they're
37244       exiting, and delete the logs, at the same time.
37245     - Make our unit tests pass again on certain obscure platforms.
37247   o Other fixes:
37248     - Add support for building SUSE RPM packages.
37249     - Speed up initial bootstrapping for clients: if we are making our
37250       first ever connection to any entry guard, then don't mark it down
37251       right after that.
37252     - When only one Tor server in the network is labelled as a guard,
37253       and we've already picked him, we would cycle endlessly picking him
37254       again, being unhappy about it, etc. Now we specifically exclude
37255       current guards when picking a new guard.
37256     - Servers send create cells more reliably after the TLS connection
37257       is established: we were sometimes forgetting to send half of them
37258       when we had more than one pending.
37259     - If we get a create cell that asks us to extend somewhere, but the
37260       Tor server there doesn't match the expected digest, we now send
37261       a destroy cell back, rather than silently doing nothing.
37262     - Make options->RedirectExit work again.
37263     - Make cookie authentication for the controller work again.
37264     - Stop being picky about unusual characters in the arguments to
37265       mapaddress. It's none of our business.
37266     - Add a new config option "TestVia" that lets you specify preferred
37267       middle hops to use for test circuits. Perhaps this will let me
37268       debug the reachability problems better.
37270   o Log / documentation fixes:
37271     - If we're a server and some peer has a broken TLS certificate, don't
37272       log about it unless ProtocolWarnings is set, i.e., we want to hear
37273       about protocol violations by others.
37274     - Fix spelling of VirtualAddrNetwork in man page.
37275     - Add a better explanation at the top of the autogenerated torrc file
37276       about what happened to our old torrc.
37279 Changes in version 0.1.1.20 - 2006-05-23
37280   o Bugfixes:
37281     - Downgrade a log severity where servers complain that they're
37282       invalid.
37283     - Avoid a compile warning on FreeBSD.
37284     - Remove string size limit on NEWDESC messages; solve bug 291.
37285     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
37286       more thoroughly when we're running on windows.
37289 Changes in version 0.1.1.19-rc - 2006-05-03
37290   o Minor bugs:
37291     - Regenerate our local descriptor if it's dirty and we try to use
37292       it locally (e.g. if it changes during reachability detection).
37293     - If we setconf our ORPort to 0, we continued to listen on the
37294       old ORPort and receive connections.
37295     - Avoid a second warning about machine/limits.h on Debian
37296       GNU/kFreeBSD.
37297     - Be willing to add our own routerinfo into the routerlist.
37298       Now authorities will include themselves in their directories
37299       and network-statuses.
37300     - Stop trying to upload rendezvous descriptors to every
37301       directory authority: only try the v1 authorities.
37302     - Servers no longer complain when they think they're not
37303       registered with the directory authorities. There were too many
37304       false positives.
37305     - Backport dist-rpm changes so rpms can be built without errors.
37307   o Features:
37308     - Implement an option, VirtualAddrMask, to set which addresses
37309       get handed out in response to mapaddress requests. This works
37310       around a bug in tsocks where 127.0.0.0/8 is never socksified.
37313 Changes in version 0.1.1.18-rc - 2006-04-10
37314   o Major fixes:
37315     - Work harder to download live network-statuses from all the
37316       directory authorities we know about. Improve the threshold
37317       decision logic so we're more robust to edge cases.
37318     - When fetching rendezvous descriptors, we were willing to ask
37319       v2 authorities too, which would always return 404.
37321   o Minor fixes:
37322     - Stop listing down or invalid nodes in the v1 directory. This will
37323       reduce its bulk by about 1/3, and reduce load on directory
37324       mirrors.
37325     - When deciding whether a router is Fast or Guard-worthy, consider
37326       his advertised BandwidthRate and not just the BandwidthCapacity.
37327     - No longer ship INSTALL and README files -- they are useless now.
37328     - Force rpmbuild to behave and honor target_cpu.
37329     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
37330     - Start to include translated versions of the tor-doc-*.html
37331       files, along with the screenshots. Still needs more work.
37332     - Start sending back 512 and 451 errors if mapaddress fails,
37333       rather than not sending anything back at all.
37334     - When we fail to bind or listen on an incoming or outgoing
37335       socket, we should close it before failing. otherwise we just
37336       leak it. (thanks to weasel for finding.)
37337     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
37338       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
37339     - Make NoPublish (even though deprecated) work again.
37340     - Fix a minor security flaw where a versioning auth dirserver
37341       could list a recommended version many times in a row to make
37342       clients more convinced that it's recommended.
37343     - Fix crash bug if there are two unregistered servers running
37344       with the same nickname, one of them is down, and you ask for
37345       them by nickname in your EntryNodes or ExitNodes. Also, try
37346       to pick the one that's running rather than an arbitrary one.
37347     - Fix an infinite loop we could hit if we go offline for too long.
37348     - Complain when we hit WSAENOBUFS on recv() or write() too.
37349       Perhaps this will help us hunt the bug.
37350     - If you're not a versioning dirserver, don't put the string
37351       "client-versions \nserver-versions \n" in your network-status.
37352     - Lower the minimum required number of file descriptors to 1000,
37353       so we can have some overhead for Valgrind on Linux, where the
37354       default ulimit -n is 1024.
37356   o New features:
37357     - Add tor.dizum.com as the fifth authoritative directory server.
37358     - Add a new config option FetchUselessDescriptors, off by default,
37359       for when you plan to run "exitlist" on your client and you want
37360       to know about even the non-running descriptors.
37363 Changes in version 0.1.1.17-rc - 2006-03-28
37364   o Major fixes:
37365     - Clients and servers since 0.1.1.10-alpha have been expiring
37366       connections whenever they are idle for 5 minutes and they *do*
37367       have circuits on them. Oops. With this new version, clients will
37368       discard their previous entry guard choices and avoid choosing
37369       entry guards running these flawed versions.
37370     - Fix memory leak when uncompressing concatenated zlib streams. This
37371       was causing substantial leaks over time on Tor servers.
37372     - The v1 directory was including servers as much as 48 hours old,
37373       because that's how the new routerlist->routers works. Now only
37374       include them if they're 20 hours old or less.
37376   o Minor fixes:
37377     - Resume building on irix64, netbsd 2.0, etc.
37378     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
37379       "-Wall -g -O2".
37380     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
37381       and it is confusing some users.
37382     - Mirrors stop caching the v1 directory so often.
37383     - Make the max number of old descriptors that a cache will hold
37384       rise with the number of directory authorities, so we can scale.
37385     - Change our win32 uname() hack to be more forgiving about what
37386       win32 versions it thinks it's found.
37388   o New features:
37389     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
37390       server.
37391     - When the controller's *setconf commands fail, collect an error
37392       message in a string and hand it back to the controller.
37393     - Make the v2 dir's "Fast" flag based on relative capacity, just
37394       like "Stable" is based on median uptime. Name everything in the
37395       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
37396     - Log server fingerprint on startup, so new server operators don't
37397       have to go hunting around their filesystem for it.
37398     - Return a robots.txt on our dirport to discourage google indexing.
37399     - Let the controller ask for GETINFO dir/status/foo so it can ask
37400       directly rather than connecting to the dir port. Only works when
37401       dirport is set for now.
37403   o New config options rather than constants in the code:
37404     - SocksTimeout: How long do we let a socks connection wait
37405       unattached before we fail it?
37406     - CircuitBuildTimeout: Cull non-open circuits that were born
37407       at least this many seconds ago.
37408     - CircuitIdleTimeout: Cull open clean circuits that were born
37409       at least this many seconds ago.
37412 Changes in version 0.1.1.16-rc - 2006-03-18
37413   o Bugfixes on 0.1.1.15-rc:
37414     - Fix assert when the controller asks to attachstream a connect-wait
37415       or resolve-wait stream.
37416     - Now do address rewriting when the controller asks us to attach
37417       to a particular circuit too. This will let Blossom specify
37418       "moria2.exit" without having to learn what moria2's IP address is.
37419     - Make the "tor --verify-config" command-line work again, so people
37420       can automatically check if their torrc will parse.
37421     - Authoritative dirservers no longer require an open connection from
37422       a server to consider him "reachable". We need this change because
37423       when we add new auth dirservers, old servers won't know not to
37424       hang up on them.
37425     - Let Tor build on Sun CC again.
37426     - Fix an off-by-one buffer size in dirserv.c that magically never
37427       hit our three authorities but broke sjmurdoch's own tor network.
37428     - If we as a directory mirror don't know of any v1 directory
37429       authorities, then don't try to cache any v1 directories.
37430     - Stop warning about unknown servers in our family when they are
37431       given as hex digests.
37432     - Stop complaining as quickly to the server operator that he
37433       hasn't registered his nickname/key binding.
37434     - Various cleanups so we can add new V2 Auth Dirservers.
37435     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
37436       reflect the updated flags in our v2 dir protocol.
37437     - Resume allowing non-printable characters for exit streams (both
37438       for connecting and for resolving). Now we tolerate applications
37439       that don't follow the RFCs. But continue to block malformed names
37440       at the socks side.
37442   o Bugfixes on 0.1.0.x:
37443     - Fix assert bug in close_logs(): when we close and delete logs,
37444       remove them all from the global "logfiles" list.
37445     - Fix minor integer overflow in calculating when we expect to use up
37446       our bandwidth allocation before hibernating.
37447     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
37448       there are multiple SSLs installed with different versions.
37449     - When we try to be a server and Address is not explicitly set and
37450       our hostname resolves to a private IP address, try to use an
37451       interface address if it has a public address. Now Windows machines
37452       that think of themselves as localhost can work by default.
37454   o New features:
37455     - Let the controller ask for GETINFO dir/server/foo so it can ask
37456       directly rather than connecting to the dir port.
37457     - Let the controller tell us about certain router descriptors
37458       that it doesn't want Tor to use in circuits. Implement
37459       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
37460     - New config option SafeSocks to reject all application connections
37461       using unsafe socks protocols. Defaults to off.
37464 Changes in version 0.1.1.15-rc - 2006-03-11
37465   o Bugfixes and cleanups:
37466     - When we're printing strings from the network, don't try to print
37467       non-printable characters. This protects us against shell escape
37468       sequence exploits, and also against attacks to fool humans into
37469       misreading their logs.
37470     - Fix a bug where Tor would fail to establish any connections if you
37471       left it off for 24 hours and then started it: we were happy with
37472       the obsolete network statuses, but they all referred to router
37473       descriptors that were too old to fetch, so we ended up with no
37474       valid router descriptors.
37475     - Fix a seg fault in the controller's "getinfo orconn-status"
37476       command while listing status on incoming handshaking connections.
37477       Introduce a status name "NEW" for these connections.
37478     - If we get a linelist or linelist_s config option from the torrc
37479       (e.g. ExitPolicy) and it has no value, warn and skip rather than
37480       silently resetting it to its default.
37481     - Don't abandon entry guards until they've been down or gone for
37482       a whole month.
37483     - Cleaner and quieter log messages.
37485   o New features:
37486     - New controller signal NEWNYM that makes new application requests
37487       use clean circuits.
37488     - Add a new circuit purpose 'controller' to let the controller ask
37489       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
37490       controller command to let you specify the purpose if you're
37491       starting a new circuit. Add a new SETCIRCUITPURPOSE controller
37492       command to let you change a circuit's purpose after it's been
37493       created.
37494     - Accept "private:*" in routerdesc exit policies; not generated yet
37495       because older Tors do not understand it.
37496     - Add BSD-style contributed startup script "rc.subr" from Peter
37497       Thoenen.
37500 Changes in version 0.1.1.14-alpha - 2006-02-20
37501   o Bugfixes on 0.1.1.x:
37502     - Don't die if we ask for a stdout or stderr log (even implicitly)
37503       and we're set to RunAsDaemon -- just warn.
37504     - We still had a few bugs in the OR connection rotation code that
37505       caused directory servers to slowly aggregate connections to other
37506       fast Tor servers. This time for sure!
37507     - Make log entries on Win32 include the name of the function again.
37508     - We were treating a pair of exit policies if they were equal even
37509       if one said accept and the other said reject -- causing us to
37510       not always publish a new descriptor since we thought nothing
37511       had changed.
37512     - Retry pending server downloads as well as pending networkstatus
37513       downloads when we unexpectedly get a socks request.
37514     - We were ignoring the IS_FAST flag in the directory status,
37515       meaning we were willing to pick trivial-bandwidth nodes for "fast"
37516       connections.
37517     - If the controller's SAVECONF command fails (e.g. due to file
37518       permissions), let the controller know that it failed.
37520   o Features:
37521     - If we're trying to be a Tor server and running Windows 95/98/ME
37522       as a server, explain that we'll likely crash.
37523     - When we're a server, a client asks for an old-style directory,
37524       and our write bucket is empty, don't give it to him. This way
37525       small servers can continue to serve the directory *sometimes*,
37526       without getting overloaded.
37527     - Compress exit policies even more -- look for duplicate lines
37528       and remove them.
37529     - Clients now honor the "guard" flag in the router status when
37530       picking entry guards, rather than looking at is_fast or is_stable.
37531     - Retain unrecognized lines in $DATADIR/state file, so that we can
37532       be forward-compatible.
37533     - Generate 18.0.0.0/8 address policy format in descs when we can;
37534       warn when the mask is not reducible to a bit-prefix.
37535     - Let the user set ControlListenAddress in the torrc. This can be
37536       dangerous, but there are some cases (like a secured LAN) where it
37537       makes sense.
37538     - Split ReachableAddresses into ReachableDirAddresses and
37539       ReachableORAddresses, so we can restrict Dir conns to port 80
37540       and OR conns to port 443.
37541     - Now we can target arch and OS in rpm builds (contributed by
37542       Phobos). Also make the resulting dist-rpm filename match the
37543       target arch.
37544     - New config options to help controllers: FetchServerDescriptors
37545       and FetchHidServDescriptors for whether to fetch server
37546       info and hidserv info or let the controller do it, and
37547       PublishServerDescriptor and PublishHidServDescriptors.
37548     - Also let the controller set the __AllDirActionsPrivate config
37549       option if you want all directory fetches/publishes to happen via
37550       Tor (it assumes your controller bootstraps your circuits).
37553 Changes in version 0.1.0.17 - 2006-02-17
37554   o Crash bugfixes on 0.1.0.x:
37555     - When servers with a non-zero DirPort came out of hibernation,
37556       sometimes they would trigger an assert.
37558   o Other important bugfixes:
37559     - On platforms that don't have getrlimit (like Windows), we were
37560       artificially constraining ourselves to a max of 1024
37561       connections. Now just assume that we can handle as many as 15000
37562       connections. Hopefully this won't cause other problems.
37564   o Backported features:
37565     - When we're a server, a client asks for an old-style directory,
37566       and our write bucket is empty, don't give it to him. This way
37567       small servers can continue to serve the directory *sometimes*,
37568       without getting overloaded.
37569     - Whenever you get a 503 in response to a directory fetch, try
37570       once more. This will become important once servers start sending
37571       503's whenever they feel busy.
37572     - Fetch a new directory every 120 minutes, not every 40 minutes.
37573       Now that we have hundreds of thousands of users running the old
37574       directory algorithm, it's starting to hurt a lot.
37575     - Bump up the period for forcing a hidden service descriptor upload
37576       from 20 minutes to 1 hour.
37579 Changes in version 0.1.1.13-alpha - 2006-02-09
37580   o Crashes in 0.1.1.x:
37581     - When you tried to setconf ORPort via the controller, Tor would
37582       crash. So people using TorCP to become a server were sad.
37583     - Solve (I hope) the stack-smashing bug that we were seeing on fast
37584       servers. The problem appears to be something do with OpenSSL's
37585       random number generation, or how we call it, or something. Let me
37586       know if the crashes continue.
37587     - Turn crypto hardware acceleration off by default, until we find
37588       somebody smart who can test it for us. (It appears to produce
37589       seg faults in at least some cases.)
37590     - Fix a rare assert error when we've tried all intro points for
37591       a hidden service and we try fetching the service descriptor again:
37592       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
37594   o Major fixes:
37595     - Fix a major load balance bug: we were round-robining in 16 KB
37596       chunks, and servers with bandwidthrate of 20 KB, while downloading
37597       a 600 KB directory, would starve their other connections. Now we
37598       try to be a bit more fair.
37599     - Dir authorities and mirrors were never expiring the newest
37600       descriptor for each server, causing memory and directory bloat.
37601     - Fix memory-bloating and connection-bloating bug on servers: We
37602       were never closing any connection that had ever had a circuit on
37603       it, because we were checking conn->n_circuits == 0, yet we had a
37604       bug that let it go negative.
37605     - Make Tor work using squid as your http proxy again -- squid
37606       returns an error if you ask for a URL that's too long, and it uses
37607       a really generic error message. Plus, many people are behind a
37608       transparent squid so they don't even realize it.
37609     - On platforms that don't have getrlimit (like Windows), we were
37610       artificially constraining ourselves to a max of 1024
37611       connections. Now just assume that we can handle as many as 15000
37612       connections. Hopefully this won't cause other problems.
37613     - Add a new config option ExitPolicyRejectPrivate which defaults to
37614       1. This means all exit policies will begin with rejecting private
37615       addresses, unless the server operator explicitly turns it off.
37617   o Major features:
37618     - Clients no longer download descriptors for non-running
37619       descriptors.
37620     - Before we add new directory authorities, we should make it
37621       clear that only v1 authorities should receive/publish hidden
37622       service descriptors.
37624   o Minor features:
37625     - As soon as we've fetched some more directory info, immediately
37626       try to download more server descriptors. This way we don't have
37627       a 10 second pause during initial bootstrapping.
37628     - Remove even more loud log messages that the server operator can't
37629       do anything about.
37630     - When we're running an obsolete or un-recommended version, make
37631       the log message more clear about what the problem is and what
37632       versions *are* still recommended.
37633     - Provide a more useful warn message when our onion queue gets full:
37634       the CPU is too slow or the exit policy is too liberal.
37635     - Don't warn when we receive a 503 from a dirserver/cache -- this
37636       will pave the way for them being able to refuse if they're busy.
37637     - When we fail to bind a listener, try to provide a more useful
37638       log message: e.g., "Is Tor already running?"
37639     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
37640       Goldberg can prove things about our handshake protocol more
37641       easily.
37642     - MaxConn has been obsolete for a while now. Document the ConnLimit
37643       config option, which is a *minimum* number of file descriptors
37644       that must be available else Tor refuses to start.
37645     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
37646       if you log to syslog and want something other than LOG_DAEMON.
37647     - Make dirservers generate a separate "guard" flag to mean,
37648       "would make a good entry guard". Make clients parse it and vote
37649       on it. Not used by clients yet.
37650     - Implement --with-libevent-dir option to ./configure. Also, improve
37651       search techniques to find libevent, and use those for openssl too.
37652     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
37653     - Only start testing reachability once we've established a
37654       circuit. This will make startup on dirservers less noisy.
37655     - Don't try to upload hidden service descriptors until we have
37656       established a circuit.
37657     - Fix the controller's "attachstream 0" command to treat conn like
37658       it just connected, doing address remapping, handling .exit and
37659       .onion idioms, and so on. Now we're more uniform in making sure
37660       that the controller hears about new and closing connections.
37663 Changes in version 0.1.1.12-alpha - 2006-01-11
37664   o Bugfixes on 0.1.1.x:
37665     - The fix to close duplicate server connections was closing all
37666       Tor client connections if they didn't establish a circuit
37667       quickly enough. Oops.
37668     - Fix minor memory issue (double-free) that happened on exit.
37670   o Bugfixes on 0.1.0.x:
37671     - Tor didn't warn when it failed to open a log file.
37674 Changes in version 0.1.1.11-alpha - 2006-01-10
37675   o Crashes in 0.1.1.x:
37676     - Include all the assert/crash fixes from 0.1.0.16.
37677     - If you start Tor and then quit very quickly, there were some
37678       races that tried to free things that weren't allocated yet.
37679     - Fix a rare memory stomp if you're running hidden services.
37680     - Fix segfault when specifying DirServer in config without nickname.
37681     - Fix a seg fault when you finish connecting to a server but at
37682       that moment you dump his server descriptor.
37683     - Extendcircuit and Attachstream controller commands would
37684       assert/crash if you don't give them enough arguments.
37685     - Fix an assert error when we're out of space in the connection_list
37686       and we try to post a hidden service descriptor (reported by weasel).
37687     - If you specify a relative torrc path and you set RunAsDaemon in
37688       your torrc, then it chdir()'s to the new directory. If you HUP,
37689       it tries to load the new torrc location, fails, and exits.
37690       The fix: no longer allow a relative path to torrc using -f.
37692   o Major features:
37693     - Implement "entry guards": automatically choose a handful of entry
37694       nodes and stick with them for all circuits. Only pick new guards
37695       when the ones you have are unsuitable, and if the old guards
37696       become suitable again, switch back. This will increase security
37697       dramatically against certain end-point attacks. The EntryNodes
37698       config option now provides some hints about which entry guards you
37699       want to use most; and StrictEntryNodes means to only use those.
37700     - New directory logic: download by descriptor digest, not by
37701       fingerprint. Caches try to download all listed digests from
37702       authorities; clients try to download "best" digests from caches.
37703       This avoids partitioning and isolating attacks better.
37704     - Make the "stable" router flag in network-status be the median of
37705       the uptimes of running valid servers, and make clients pay
37706       attention to the network-status flags. Thus the cutoff adapts
37707       to the stability of the network as a whole, making IRC, IM, etc
37708       connections more reliable.
37710   o Major fixes:
37711     - Tor servers with dynamic IP addresses were needing to wait 18
37712       hours before they could start doing reachability testing using
37713       the new IP address and ports. This is because they were using
37714       the internal descriptor to learn what to test, yet they were only
37715       rebuilding the descriptor once they decided they were reachable.
37716     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
37717       to download certain server descriptors, throw them away, and then
37718       fetch them again after 30 minutes. Now mirrors throw away these
37719       server descriptors so clients can't get them.
37720     - We were leaving duplicate connections to other ORs open for a week,
37721       rather than closing them once we detect a duplicate. This only
37722       really affected authdirservers, but it affected them a lot.
37723     - Spread the authdirservers' reachability testing over the entire
37724       testing interval, so we don't try to do 500 TLS's at once every
37725       20 minutes.
37727   o Minor fixes:
37728     - If the network is down, and we try to connect to a conn because
37729       we have a circuit in mind, and we timeout (30 seconds) because the
37730       network never answers, we were expiring the circuit, but we weren't
37731       obsoleting the connection or telling the entry_guards functions.
37732     - Some Tor servers process billions of cells per day. These statistics
37733       need to be uint64_t's.
37734     - Check for integer overflows in more places, when adding elements
37735       to smartlists. This could possibly prevent a buffer overflow
37736       on malicious huge inputs. I don't see any, but I haven't looked
37737       carefully.
37738     - ReachableAddresses kept growing new "reject *:*" lines on every
37739       setconf/reload.
37740     - When you "setconf log" via the controller, it should remove all
37741       logs. We were automatically adding back in a "log notice stdout".
37742     - Newly bootstrapped Tor networks couldn't establish hidden service
37743       circuits until they had nodes with high uptime. Be more tolerant.
37744     - We were marking servers down when they could not answer every piece
37745       of the directory request we sent them. This was far too harsh.
37746     - Fix the torify (tsocks) config file to not use Tor for localhost
37747       connections.
37748     - Directory authorities now go to the proper authority when asking for
37749       a networkstatus, even when they want a compressed one.
37750     - Fix a harmless bug that was causing Tor servers to log
37751       "Got an end because of misc error, but we're not an AP. Closing."
37752     - Authorities were treating their own descriptor changes as cosmetic,
37753       meaning the descriptor available in the network-status and the
37754       descriptor that clients downloaded were different.
37755     - The OS X installer was adding a symlink for tor_resolve but
37756       the binary was called tor-resolve (reported by Thomas Hardly).
37757     - Workaround a problem with some http proxies where they refuse GET
37758       requests that specify "Content-Length: 0" (reported by Adrian).
37759     - Fix wrong log message when you add a "HiddenServiceNodes" config
37760       line without any HiddenServiceDir line (reported by Chris Thomas).
37762   o Minor features:
37763     - Write the TorVersion into the state file so we have a prayer of
37764       keeping forward and backward compatibility.
37765     - Revive the FascistFirewall config option rather than eliminating it:
37766       now it's a synonym for ReachableAddresses *:80,*:443.
37767     - Clients choose directory servers from the network status lists,
37768       not from their internal list of router descriptors. Now they can
37769       go to caches directly rather than needing to go to authorities
37770       to bootstrap.
37771     - Directory authorities ignore router descriptors that have only
37772       cosmetic differences: do this for 0.1.0.x servers now too.
37773     - Add a new flag to network-status indicating whether the server
37774       can answer v2 directory requests too.
37775     - Authdirs now stop whining so loudly about bad descriptors that
37776       they fetch from other dirservers. So when there's a log complaint,
37777       it's for sure from a freshly uploaded descriptor.
37778     - Reduce memory requirements in our structs by changing the order
37779       of fields.
37780     - There used to be two ways to specify your listening ports in a
37781       server descriptor: on the "router" line and with a separate "ports"
37782       line. Remove support for the "ports" line.
37783     - New config option "AuthDirRejectUnlisted" for auth dirservers as
37784       a panic button: if we get flooded with unusable servers we can
37785       revert to only listing servers in the approved-routers file.
37786     - Auth dir servers can now mark a fingerprint as "!reject" or
37787       "!invalid" in the approved-routers file (as its nickname), to
37788       refuse descriptors outright or include them but marked as invalid.
37789     - Servers store bandwidth history across restarts/crashes.
37790     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
37791       get a better idea of why their circuits failed. Not used yet.
37792     - Directory mirrors now cache up to 16 unrecognized network-status
37793       docs. Now we can add new authdirservers and they'll be cached too.
37794     - When picking a random directory, prefer non-authorities if any
37795       are known.
37796     - New controller option "getinfo desc/all-recent" to fetch the
37797       latest server descriptor for every router that Tor knows about.
37800 Changes in version 0.1.0.16 - 2006-01-02
37801   o Crash bugfixes on 0.1.0.x:
37802     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
37803       corrupting the heap, losing FDs, or crashing when we need to resize
37804       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
37805     - It turns out sparc64 platforms crash on unaligned memory access
37806       too -- so detect and avoid this.
37807     - Handle truncated compressed data correctly (by detecting it and
37808       giving an error).
37809     - Fix possible-but-unlikely free(NULL) in control.c.
37810     - When we were closing connections, there was a rare case that
37811       stomped on memory, triggering seg faults and asserts.
37812     - Avoid potential infinite recursion when building a descriptor. (We
37813       don't know that it ever happened, but better to fix it anyway.)
37814     - We were neglecting to unlink marked circuits from soon-to-close OR
37815       connections, which caused some rare scribbling on freed memory.
37816     - Fix a memory stomping race bug when closing the joining point of two
37817       rendezvous circuits.
37818     - Fix an assert in time parsing found by Steven Murdoch.
37820   o Other bugfixes on 0.1.0.x:
37821     - When we're doing reachability testing, provide more useful log
37822       messages so the operator knows what to expect.
37823     - Do not check whether DirPort is reachable when we are suppressing
37824       advertising it because of hibernation.
37825     - When building with -static or on Solaris, we sometimes needed -ldl.
37826     - When we're deciding whether a stream has enough circuits around
37827       that can handle it, count the freshly dirty ones and not the ones
37828       that are so dirty they won't be able to handle it.
37829     - When we're expiring old circuits, we had a logic error that caused
37830       us to close new rendezvous circuits rather than old ones.
37831     - Give a more helpful log message when you try to change ORPort via
37832       the controller: you should upgrade Tor if you want that to work.
37833     - We were failing to parse Tor versions that start with "Tor ".
37834     - Tolerate faulty streams better: when a stream fails for reason
37835       exitpolicy, stop assuming that the router is lying about his exit
37836       policy. When a stream fails for reason misc, allow it to retry just
37837       as if it was resolvefailed. When a stream has failed three times,
37838       reset its failure count so we can try again and get all three tries.
37841 Changes in version 0.1.1.10-alpha - 2005-12-11
37842   o Correctness bugfixes on 0.1.0.x:
37843     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
37844       corrupting the heap, losing FDs, or crashing when we need to resize
37845       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
37846     - Stop doing the complex voodoo overkill checking for insecure
37847       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
37848     - When we were closing connections, there was a rare case that
37849       stomped on memory, triggering seg faults and asserts.
37850     - We were neglecting to unlink marked circuits from soon-to-close OR
37851       connections, which caused some rare scribbling on freed memory.
37852     - When we're deciding whether a stream has enough circuits around
37853       that can handle it, count the freshly dirty ones and not the ones
37854       that are so dirty they won't be able to handle it.
37855     - Recover better from TCP connections to Tor servers that are
37856       broken but don't tell you (it happens!); and rotate TLS
37857       connections once a week.
37858     - When we're expiring old circuits, we had a logic error that caused
37859       us to close new rendezvous circuits rather than old ones.
37860     - Fix a scary-looking but apparently harmless bug where circuits
37861       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
37862       servers, and never switch to state CIRCUIT_STATE_OPEN.
37863     - When building with -static or on Solaris, we sometimes needed to
37864       build with -ldl.
37865     - Give a useful message when people run Tor as the wrong user,
37866       rather than telling them to start chowning random directories.
37867     - We were failing to inform the controller about new .onion streams.
37869   o Security bugfixes on 0.1.0.x:
37870     - Refuse server descriptors if the fingerprint line doesn't match
37871       the included identity key. Tor doesn't care, but other apps (and
37872       humans) might actually be trusting the fingerprint line.
37873     - We used to kill the circuit when we receive a relay command we
37874       don't recognize. Now we just drop it.
37875     - Start obeying our firewall options more rigorously:
37876       . If we can't get to a dirserver directly, try going via Tor.
37877       . Don't ever try to connect (as a client) to a place our
37878         firewall options forbid.
37879       . If we specify a proxy and also firewall options, obey the
37880         firewall options even when we're using the proxy: some proxies
37881         can only proxy to certain destinations.
37882     - Fix a bug found by Lasse Overlier: when we were making internal
37883       circuits (intended to be cannibalized later for rendezvous and
37884       introduction circuits), we were picking them so that they had
37885       useful exit nodes. There was no need for this, and it actually
37886       aids some statistical attacks.
37887     - Start treating internal circuits and exit circuits separately.
37888       It's important to keep them separate because internal circuits
37889       have their last hops picked like middle hops, rather than like
37890       exit hops. So exiting on them will break the user's expectations.
37892   o Bugfixes on 0.1.1.x:
37893     - Take out the mis-feature where we tried to detect IP address
37894       flapping for people with DynDNS, and chose not to upload a new
37895       server descriptor sometimes.
37896     - Try to be compatible with OpenSSL 0.9.6 again.
37897     - Log fix: when the controller is logging about .onion addresses,
37898       sometimes it didn't include the ".onion" part of the address.
37899     - Don't try to modify options->DirServers internally -- if the
37900       user didn't specify any, just add the default ones directly to
37901       the trusted dirserver list. This fixes a bug where people running
37902       controllers would use SETCONF on some totally unrelated config
37903       option, and Tor would start yelling at them about changing their
37904       DirServer lines.
37905     - Let the controller's redirectstream command specify a port, in
37906       case the controller wants to change that too.
37907     - When we requested a pile of server descriptors, we sometimes
37908       accidentally launched a duplicate request for the first one.
37909     - Bugfix for trackhostexits: write down the fingerprint of the
37910       chosen exit, not its nickname, because the chosen exit might not
37911       be verified.
37912     - When parsing foo.exit, if foo is unknown, and we are leaving
37913       circuits unattached, set the chosen_exit field and leave the
37914       address empty. This matters because controllers got confused
37915       otherwise.
37916     - Directory authorities no longer try to download server
37917       descriptors that they know they will reject.
37919   o Features and updates:
37920     - Replace balanced trees with hash tables: this should make stuff
37921       significantly faster.
37922     - Resume using the AES counter-mode implementation that we ship,
37923       rather than OpenSSL's. Ours is significantly faster.
37924     - Many other CPU and memory improvements.
37925     - Add a new config option FastFirstHopPK (on by default) so clients
37926       do a trivial crypto handshake for their first hop, since TLS has
37927       already taken care of confidentiality and authentication.
37928     - Add a new config option TestSocks so people can see if their
37929       applications are using socks4, socks4a, socks5-with-ip, or
37930       socks5-with-hostname. This way they don't have to keep mucking
37931       with tcpdump and wondering if something got cached somewhere.
37932     - Warn when listening on a public address for socks. I suspect a
37933       lot of people are setting themselves up as open socks proxies,
37934       and they have no idea that jerks on the Internet are using them,
37935       since they simply proxy the traffic into the Tor network.
37936     - Add "private:*" as an alias in configuration for policies. Now
37937       you can simplify your exit policy rather than needing to list
37938       every single internal or nonroutable network space.
37939     - Add a new controller event type that allows controllers to get
37940       all server descriptors that were uploaded to a router in its role
37941       as authoritative dirserver.
37942     - Start shipping socks-extensions.txt, tor-doc-unix.html,
37943       tor-doc-server.html, and stylesheet.css in the tarball.
37944     - Stop shipping tor-doc.html in the tarball.
37947 Changes in version 0.1.1.9-alpha - 2005-11-15
37948   o Usability improvements:
37949     - Start calling it FooListenAddress rather than FooBindAddress,
37950       since few of our users know what it means to bind an address
37951       or port.
37952     - Reduce clutter in server logs. We're going to try to make
37953       them actually usable now. New config option ProtocolWarnings that
37954       lets you hear about how _other Tors_ are breaking the protocol. Off
37955       by default.
37956     - Divide log messages into logging domains. Once we put some sort
37957       of interface on this, it will let people looking at more verbose
37958       log levels specify the topics they want to hear more about.
37959     - Make directory servers return better http 404 error messages
37960       instead of a generic "Servers unavailable".
37961     - Check for even more Windows version flags when writing the platform
37962       string in server descriptors, and note any we don't recognize.
37963     - Clean up more of the OpenSSL memory when exiting, so we can detect
37964       memory leaks better.
37965     - Make directory authorities be non-versioning, non-naming by
37966       default. Now we can add new directory servers without requiring
37967       their operators to pay close attention.
37968     - When logging via syslog, include the pid whenever we provide
37969       a log entry. Suggested by Todd Fries.
37971   o Performance improvements:
37972     - Directory servers now silently throw away new descriptors that
37973       haven't changed much if the timestamps are similar. We do this to
37974       tolerate older Tor servers that upload a new descriptor every 15
37975       minutes. (It seemed like a good idea at the time.)
37976     - Inline bottleneck smartlist functions; use fast versions by default.
37977     - Add a "Map from digest to void*" abstraction digestmap_t so we
37978       can do less hex encoding/decoding. Use it in router_get_by_digest()
37979       to resolve a performance bottleneck.
37980     - Allow tor_gzip_uncompress to extract as much as possible from
37981       truncated compressed data. Try to extract as many
37982       descriptors as possible from truncated http responses (when
37983       DIR_PURPOSE_FETCH_ROUTERDESC).
37984     - Make circ->onionskin a pointer, not a static array. moria2 was using
37985       125000 circuit_t's after it had been up for a few weeks, which
37986       translates to 20+ megs of wasted space.
37987     - The private half of our EDH handshake keys are now chosen out
37988       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
37990   o Security improvements:
37991     - Start making directory caches retain old routerinfos, so soon
37992       clients can start asking by digest of descriptor rather than by
37993       fingerprint of server.
37994     - Add half our entropy from RAND_poll in OpenSSL. This knows how
37995       to use egd (if present), openbsd weirdness (if present), vms/os2
37996       weirdness (if we ever port there), and more in the future.
37998   o Bugfixes on 0.1.0.x:
37999     - Do round-robin writes of at most 16 kB per write. This might be
38000       more fair on loaded Tor servers, and it might resolve our Windows
38001       crash bug. It might also slow things down.
38002     - Our TLS handshakes were generating a single public/private
38003       keypair for the TLS context, rather than making a new one for
38004       each new connections. Oops. (But we were still rotating them
38005       periodically, so it's not so bad.)
38006     - When we were cannibalizing a circuit with a particular exit
38007       node in mind, we weren't checking to see if that exit node was
38008       already present earlier in the circuit. Oops.
38009     - When a Tor server's IP changes (e.g. from a dyndns address),
38010       upload a new descriptor so clients will learn too.
38011     - Really busy servers were keeping enough circuits open on stable
38012       connections that they were wrapping around the circuit_id
38013       space. (It's only two bytes.) This exposed a bug where we would
38014       feel free to reuse a circuit_id even if it still exists but has
38015       been marked for close. Try to fix this bug. Some bug remains.
38016     - If we would close a stream early (e.g. it asks for a .exit that
38017       we know would refuse it) but the LeaveStreamsUnattached config
38018       option is set by the controller, then don't close it.
38020   o Bugfixes on 0.1.1.8-alpha:
38021     - Fix a big pile of memory leaks, some of them serious.
38022     - Do not try to download a routerdesc if we would immediately reject
38023       it as obsolete.
38024     - Resume inserting a newline between all router descriptors when
38025       generating (old style) signed directories, since our spec says
38026       we do.
38027     - When providing content-type application/octet-stream for
38028       server descriptors using .z, we were leaving out the
38029       content-encoding header. Oops. (Everything tolerated this just
38030       fine, but that doesn't mean we need to be part of the problem.)
38031     - Fix a potential seg fault in getconf and getinfo using version 1
38032       of the controller protocol.
38033     - Avoid crash: do not check whether DirPort is reachable when we
38034       are suppressing it because of hibernation.
38035     - Make --hash-password not crash on exit.
38038 Changes in version 0.1.1.8-alpha - 2005-10-07
38039   o New features (major):
38040     - Clients don't download or use the directory anymore. Now they
38041       download and use network-statuses from the trusted dirservers,
38042       and fetch individual server descriptors as needed from mirrors.
38043       See dir-spec.txt for all the gory details.
38044     - Be more conservative about whether to advertise our DirPort.
38045       The main change is to not advertise if we're running at capacity
38046       and either a) we could hibernate or b) our capacity is low and
38047       we're using a default DirPort.
38048     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
38050   o New features (minor):
38051     - Try to be smart about when to retry network-status and
38052       server-descriptor fetches. Still needs some tuning.
38053     - Stop parsing, storing, or using running-routers output (but
38054       mirrors still cache and serve it).
38055     - Consider a threshold of versioning dirservers (dirservers who have
38056       an opinion about which Tor versions are still recommended) before
38057       deciding whether to warn the user that he's obsolete.
38058     - Dirservers can now reject/invalidate by key and IP, with the
38059       config options "AuthDirInvalid" and "AuthDirReject". This is
38060       useful since currently we automatically list servers as running
38061       and usable even if we know they're jerks.
38062     - Provide dire warnings to any users who set DirServer; move it out
38063       of torrc.sample and into torrc.complete.
38064     - Add MyFamily to torrc.sample in the server section.
38065     - Add nicknames to the DirServer line, so we can refer to them
38066       without requiring all our users to memorize their IP addresses.
38067     - When we get an EOF or a timeout on a directory connection, note
38068       how many bytes of serverdesc we are dropping. This will help
38069       us determine whether it is smart to parse incomplete serverdesc
38070       responses.
38071     - Add a new function to "change pseudonyms" -- that is, to stop
38072       using any currently-dirty circuits for new streams, so we don't
38073       link new actions to old actions. Currently it's only called on
38074       HUP (or SIGNAL RELOAD).
38075     - On sighup, if UseHelperNodes changed to 1, use new circuits.
38076     - Start using RAND_bytes rather than RAND_pseudo_bytes from
38077       OpenSSL. Also, reseed our entropy every hour, not just at
38078       startup. And entropy in 512-bit chunks, not 160-bit chunks.
38080   o Fixes on 0.1.1.7-alpha:
38081     - Nobody ever implemented EVENT_ADDRMAP for control protocol
38082       version 0, so don't let version 0 controllers ask for it.
38083     - If you requested something with too many newlines via the
38084       v1 controller protocol, you could crash tor.
38085     - Fix a number of memory leaks, including some pretty serious ones.
38086     - Re-enable DirPort testing again, so Tor servers will be willing
38087       to advertise their DirPort if it's reachable.
38088     - On TLS handshake, only check the other router's nickname against
38089       its expected nickname if is_named is set.
38091   o Fixes forward-ported from 0.1.0.15:
38092     - Don't crash when we don't have any spare file descriptors and we
38093       try to spawn a dns or cpu worker.
38094     - Make the numbers in read-history and write-history into uint64s,
38095       so they don't overflow and publish negatives in the descriptor.
38097   o Fixes on 0.1.0.x:
38098     - For the OS X package's modified privoxy config file, comment
38099       out the "logfile" line so we don't log everything passed
38100       through privoxy.
38101     - We were whining about using socks4 or socks5-with-local-lookup
38102       even when it's an IP in the "virtual" range we designed exactly
38103       for this case.
38104     - We were leaking some memory every time the client changes IPs.
38105     - Never call free() on tor_malloc()d memory. This will help us
38106       use dmalloc to detect memory leaks.
38107     - Check for named servers when looking them up by nickname;
38108       warn when we'recalling a non-named server by its nickname;
38109       don't warn twice about the same name.
38110     - Try to list MyFamily elements by key, not by nickname, and warn
38111       if we've not heard of the server.
38112     - Make windows platform detection (uname equivalent) smarter.
38113     - It turns out sparc64 doesn't like unaligned access either.
38116 Changes in version 0.1.0.15 - 2005-09-23
38117   o Bugfixes on 0.1.0.x:
38118     - Reject ports 465 and 587 (spam targets) in default exit policy.
38119     - Don't crash when we don't have any spare file descriptors and we
38120       try to spawn a dns or cpu worker.
38121     - Get rid of IgnoreVersion undocumented config option, and make us
38122       only warn, never exit, when we're running an obsolete version.
38123     - Don't try to print a null string when your server finds itself to
38124       be unreachable and the Address config option is empty.
38125     - Make the numbers in read-history and write-history into uint64s,
38126       so they don't overflow and publish negatives in the descriptor.
38127     - Fix a minor memory leak in smartlist_string_remove().
38128     - We were only allowing ourselves to upload a server descriptor at
38129       most every 20 minutes, even if it changed earlier than that.
38130     - Clean up log entries that pointed to old URLs.
38133 Changes in version 0.1.1.7-alpha - 2005-09-14
38134   o Fixes on 0.1.1.6-alpha:
38135     - Exit servers were crashing when people asked them to make a
38136       connection to an address not in their exit policy.
38137     - Looking up a non-existent stream for a v1 control connection would
38138       cause a segfault.
38139     - Fix a seg fault if we ask a dirserver for a descriptor by
38140       fingerprint but he doesn't know about him.
38141     - SETCONF was appending items to linelists, not clearing them.
38142     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
38143       out and refuse the setconf if it would fail.
38144     - Downgrade the dirserver log messages when whining about
38145       unreachability.
38147   o New features:
38148     - Add Peter Palfrader's check-tor script to tor/contrib/
38149       It lets you easily check whether a given server (referenced by
38150       nickname) is reachable by you.
38151     - Numerous changes to move towards client-side v2 directories. Not
38152       enabled yet.
38154   o Fixes on 0.1.0.x:
38155     - If the user gave tor an odd number of command-line arguments,
38156       we were silently ignoring the last one. Now we complain and fail.
38157       [This wins the oldest-bug prize -- this bug has been present since
38158        November 2002, as released in Tor 0.0.0.]
38159     - Do not use unaligned memory access on alpha, mips, or mipsel.
38160       It *works*, but is very slow, so we treat them as if it doesn't.
38161     - Retry directory requests if we fail to get an answer we like
38162       from a given dirserver (we were retrying before, but only if
38163       we fail to connect).
38164     - When writing the RecommendedVersions line, sort them first.
38165     - When the client asked for a rendezvous port that the hidden
38166       service didn't want to provide, we were sending an IP address
38167       back along with the end cell. Fortunately, it was zero. But stop
38168       that anyway.
38169     - Correct "your server is reachable" log entries to indicate that
38170       it was self-testing that told us so.
38173 Changes in version 0.1.1.6-alpha - 2005-09-09
38174   o Fixes on 0.1.1.5-alpha:
38175     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
38176     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
38177     - Fix bug with tor_memmem finding a match at the end of the string.
38178     - Make unit tests run without segfaulting.
38179     - Resolve some solaris x86 compile warnings.
38180     - Handle duplicate lines in approved-routers files without warning.
38181     - Fix bug where as soon as a server refused any requests due to his
38182       exit policy (e.g. when we ask for localhost and he tells us that's
38183       127.0.0.1 and he won't do it), we decided he wasn't obeying his
38184       exit policy using him for any exits.
38185     - Only do openssl hardware accelerator stuff if openssl version is
38186       at least 0.9.7.
38188   o New controller features/fixes:
38189     - Add a "RESETCONF" command so you can set config options like
38190       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
38191       a config option in the torrc with no value, then it clears it
38192       entirely (rather than setting it to its default).
38193     - Add a "GETINFO config-file" to tell us where torrc is.
38194     - Avoid sending blank lines when GETINFO replies should be empty.
38195     - Add a QUIT command for the controller (for using it manually).
38196     - Fix a bug in SAVECONF that was adding default dirservers and
38197       other redundant entries to the torrc file.
38199   o Start on the new directory design:
38200     - Generate, publish, cache, serve new network-status format.
38201     - Publish individual descriptors (by fingerprint, by "all", and by
38202       "tell me yours").
38203     - Publish client and server recommended versions separately.
38204     - Allow tor_gzip_uncompress() to handle multiple concatenated
38205       compressed strings. Serve compressed groups of router
38206       descriptors. The compression logic here could be more
38207       memory-efficient.
38208     - Distinguish v1 authorities (all currently trusted directories)
38209       from v2 authorities (all trusted directories).
38210     - Change DirServers config line to note which dirs are v1 authorities.
38211     - Add configuration option "V1AuthoritativeDirectory 1" which
38212       moria1, moria2, and tor26 should set.
38213     - Remove option when getting directory cache to see whether they
38214       support running-routers; they all do now. Replace it with one
38215       to see whether caches support v2 stuff.
38217   o New features:
38218     - Dirservers now do their own external reachability testing of each
38219       Tor server, and only list them as running if they've been found to
38220       be reachable. We also send back warnings to the server's logs if
38221       it uploads a descriptor that we already believe is unreachable.
38222     - Implement exit enclaves: if we know an IP address for the
38223       destination, and there's a running Tor server at that address
38224       which allows exit to the destination, then extend the circuit to
38225       that exit first. This provides end-to-end encryption and end-to-end
38226       authentication. Also, if the user wants a .exit address or enclave,
38227       use 4 hops rather than 3, and cannibalize a general circ for it
38228       if you can.
38229     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
38230       controller. Also, rotate dns and cpu workers if the controller
38231       changes options that will affect them; and initialize the dns
38232       worker cache tree whether or not we start out as a server.
38233     - Only upload a new server descriptor when options change, 18
38234       hours have passed, uptime is reset, or bandwidth changes a lot.
38235     - Check [X-]Forwarded-For headers in HTTP requests when generating
38236       log messages. This lets people run dirservers (and caches) behind
38237       Apache but still know which IP addresses are causing warnings.
38239   o Config option changes:
38240     - Replace (Fascist)Firewall* config options with a new
38241       ReachableAddresses option that understands address policies.
38242       For example, "ReachableAddresses *:80,*:443"
38243     - Get rid of IgnoreVersion undocumented config option, and make us
38244       only warn, never exit, when we're running an obsolete version.
38245     - Make MonthlyAccountingStart config option truly obsolete now.
38247   o Fixes on 0.1.0.x:
38248     - Reject ports 465 and 587 in the default exit policy, since
38249       people have started using them for spam too.
38250     - It turns out we couldn't bootstrap a network since we added
38251       reachability detection in 0.1.0.1-rc. Good thing the Tor network
38252       has never gone down. Add an AssumeReachable config option to let
38253       servers and dirservers bootstrap. When we're trying to build a
38254       high-uptime or high-bandwidth circuit but there aren't enough
38255       suitable servers, try being less picky rather than simply failing.
38256     - Our logic to decide if the OR we connected to was the right guy
38257       was brittle and maybe open to a mitm for unverified routers.
38258     - We weren't cannibalizing circuits correctly for
38259       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
38260       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
38261       build those from scratch. This should make hidden services faster.
38262     - Predict required circuits better, with an eye toward making hidden
38263       services faster on the service end.
38264     - Retry streams if the exit node sends back a 'misc' failure. This
38265       should result in fewer random failures. Also, after failing
38266       from resolve failed or misc, reset the num failures, so we give
38267       it a fair shake next time we try.
38268     - Clean up the rendezvous warn log msgs, and downgrade some to info.
38269     - Reduce severity on logs about dns worker spawning and culling.
38270     - When we're shutting down and we do something like try to post a
38271       server descriptor or rendezvous descriptor, don't complain that
38272       we seem to be unreachable. Of course we are, we're shutting down.
38273     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
38274       We don't use them yet, but maybe one day our DNS resolver will be
38275       able to discover them.
38276     - Make ContactInfo mandatory for authoritative directory servers.
38277     - Require server descriptors to list IPv4 addresses -- hostnames
38278       are no longer allowed. This also fixes some potential security
38279       problems with people providing hostnames as their address and then
38280       preferentially resolving them to partition users.
38281     - Change log line for unreachability to explicitly suggest /etc/hosts
38282       as the culprit. Also make it clearer what IP address and ports we're
38283       testing for reachability.
38284     - Put quotes around user-supplied strings when logging so users are
38285       more likely to realize if they add bad characters (like quotes)
38286       to the torrc.
38287     - Let auth dir servers start without specifying an Address config
38288       option.
38289     - Make unit tests (and other invocations that aren't the real Tor)
38290       run without launching listeners, creating subdirectories, and so on.
38293 Changes in version 0.1.1.5-alpha - 2005-08-08
38294   o Bugfixes included in 0.1.0.14.
38296   o Bugfixes on 0.1.0.x:
38297     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
38298       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
38299       it would silently using ignore the 6668.
38302 Changes in version 0.1.0.14 - 2005-08-08
38303   o Bugfixes on 0.1.0.x:
38304       - Fix the other half of the bug with crypto handshakes
38305         (CVE-2005-2643).
38306       - Fix an assert trigger if you send a 'signal term' via the
38307         controller when it's listening for 'event info' messages.
38310 Changes in version 0.1.1.4-alpha - 2005-08-04
38311   o Bugfixes included in 0.1.0.13.
38313   o Features:
38314     - Improve tor_gettimeofday() granularity on windows.
38315     - Make clients regenerate their keys when their IP address changes.
38316     - Implement some more GETINFO goodness: expose helper nodes, config
38317       options, getinfo keys.
38320 Changes in version 0.1.0.13 - 2005-08-04
38321   o Bugfixes on 0.1.0.x:
38322     - Fix a critical bug in the security of our crypto handshakes.
38323     - Fix a size_t underflow in smartlist_join_strings2() that made
38324       it do bad things when you hand it an empty smartlist.
38325     - Fix Windows installer to ship Tor license (thanks to Aphex for
38326       pointing out this oversight) and put a link to the doc directory
38327       in the start menu.
38328     - Explicitly set no-unaligned-access for sparc: it turns out the
38329       new gcc's let you compile broken code, but that doesn't make it
38330       not-broken.
38333 Changes in version 0.1.1.3-alpha - 2005-07-23
38334   o Bugfixes on 0.1.1.2-alpha:
38335     - Fix a bug in handling the controller's "post descriptor"
38336       function.
38337     - Fix several bugs in handling the controller's "extend circuit"
38338       function.
38339     - Fix a bug in handling the controller's "stream status" event.
38340     - Fix an assert failure if we have a controller listening for
38341       circuit events and we go offline.
38342     - Re-allow hidden service descriptors to publish 0 intro points.
38343     - Fix a crash when generating your hidden service descriptor if
38344       you don't have enough intro points already.
38346   o New features on 0.1.1.2-alpha:
38347     - New controller function "getinfo accounting", to ask how
38348       many bytes we've used in this time period.
38349     - Experimental support for helper nodes: a lot of the risk from
38350       a small static adversary comes because users pick new random
38351       nodes every time they rebuild a circuit. Now users will try to
38352       stick to the same small set of entry nodes if they can. Not
38353       enabled by default yet.
38355   o Bugfixes on 0.1.0.12:
38356     - If you're an auth dir server, always publish your dirport,
38357       even if you haven't yet found yourself to be reachable.
38358     - Fix a size_t underflow in smartlist_join_strings2() that made
38359       it do bad things when you hand it an empty smartlist.
38362 Changes in version 0.1.0.12 - 2005-07-18
38363   o New directory servers:
38364       - tor26 has changed IP address.
38366   o Bugfixes on 0.1.0.x:
38367     - Fix a possible double-free in tor_gzip_uncompress().
38368     - When --disable-threads is set, do not search for or link against
38369       pthreads libraries.
38370     - Don't trigger an assert if an authoritative directory server
38371       claims its dirport is 0.
38372     - Fix bug with removing Tor as an NT service: some people were
38373       getting "The service did not return an error." Thanks to Matt
38374       Edman for the fix.
38377 Changes in version 0.1.1.2-alpha - 2005-07-15
38378   o New directory servers:
38379     - tor26 has changed IP address.
38381   o Bugfixes on 0.1.0.x, crashes/leaks:
38382     - Port the servers-not-obeying-their-exit-policies fix from
38383       0.1.0.11.
38384     - Fix an fd leak in start_daemon().
38385     - On Windows, you can't always reopen a port right after you've
38386       closed it. So change retry_listeners() to only close and re-open
38387       ports that have changed.
38388     - Fix a possible double-free in tor_gzip_uncompress().
38390   o Bugfixes on 0.1.0.x, usability:
38391     - When tor_socketpair() fails in Windows, give a reasonable
38392       Windows-style errno back.
38393     - Let people type "tor --install" as well as "tor -install" when
38394       they
38395       want to make it an NT service.
38396     - NT service patch from Matt Edman to improve error messages.
38397     - When the controller asks for a config option with an abbreviated
38398       name, give the full name in our response.
38399     - Correct the man page entry on TrackHostExitsExpire.
38400     - Looks like we were never delivering deflated (i.e. compressed)
38401       running-routers lists, even when asked. Oops.
38402     - When --disable-threads is set, do not search for or link against
38403       pthreads libraries.
38405   o Bugfixes on 0.1.1.x:
38406     - Fix a seg fault with autodetecting which controller version is
38407       being used.
38409   o Features:
38410     - New hidden service descriptor format: put a version in it, and
38411       let people specify introduction/rendezvous points that aren't
38412       in "the directory" (which is subjective anyway).
38413     - Allow the DEBUG controller event to work again. Mark certain log
38414       entries as "don't tell this to controllers", so we avoid cycles.
38417 Changes in version 0.1.0.11 - 2005-06-30
38418   o Bugfixes on 0.1.0.x:
38419     - Fix major security bug: servers were disregarding their
38420       exit policies if clients behaved unexpectedly.
38421     - Make OS X init script check for missing argument, so we don't
38422       confuse users who invoke it incorrectly.
38423     - Fix a seg fault in "tor --hash-password foo".
38424     - The MAPADDRESS control command was broken.
38427 Changes in version 0.1.1.1-alpha - 2005-06-29
38428   o Bugfixes:
38429     - Make OS X init script check for missing argument, so we don't
38430       confuse users who invoke it incorrectly.
38431     - Fix a seg fault in "tor --hash-password foo".
38432     - Fix a possible way to DoS dirservers.
38433     - When we complain that your exit policy implicitly allows local or
38434       private address spaces, name them explicitly so operators can
38435       fix it.
38436     - Make the log message less scary when all the dirservers are
38437       temporarily unreachable.
38438     - We were printing the number of idle dns workers incorrectly when
38439       culling them.
38441   o Features:
38442     - Revised controller protocol (version 1) that uses ascii rather
38443       than binary. Add supporting libraries in python and java so you
38444       can use the controller from your applications without caring how
38445       our protocol works.
38446     - Spiffy new support for crypto hardware accelerators. Can somebody
38447       test this?
38450 Changes in version 0.0.9.10 - 2005-06-16
38451   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
38452     - Refuse relay cells that claim to have a length larger than the
38453       maximum allowed. This prevents a potential attack that could read
38454       arbitrary memory (e.g. keys) from an exit server's process
38455       (CVE-2005-2050).
38458 Changes in version 0.1.0.10 - 2005-06-14
38459   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
38460     libevent before 1.1a.
38463 Changes in version 0.1.0.9-rc - 2005-06-09
38464   o Bugfixes:
38465     - Reset buf->highwater every time buf_shrink() is called, not just on
38466       a successful shrink. This was causing significant memory bloat.
38467     - Fix buffer overflow when checking hashed passwords.
38468     - Security fix: if seeding the RNG on Win32 fails, quit.
38469     - Allow seeding the RNG on Win32 even when you're not running as
38470       Administrator.
38471     - Disable threading on Solaris too. Something is wonky with it,
38472       cpuworkers, and reentrant libs.
38473     - Reenable the part of the code that tries to flush as soon as an
38474       OR outbuf has a full TLS record available. Perhaps this will make
38475       OR outbufs not grow as huge except in rare cases, thus saving lots
38476       of CPU time plus memory.
38477     - Reject malformed .onion addresses rather then passing them on as
38478       normal web requests.
38479     - Adapt patch from Adam Langley: fix possible memory leak in
38480       tor_lookup_hostname().
38481     - Initialize libevent later in the startup process, so the logs are
38482       already established by the time we start logging libevent warns.
38483     - Use correct errno on win32 if libevent fails.
38484     - Check and warn about known-bad/slow libevent versions.
38485     - Pay more attention to the ClientOnly config option.
38486     - Have torctl.in/tor.sh.in check for location of su binary (needed
38487       on FreeBSD)
38488     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
38489       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
38490       HttpProxyAuthenticator
38491     - Stop warning about sigpipes in the logs. We're going to
38492       pretend that getting these occasionally is normal and fine.
38493     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
38494       certain
38495       installer screens; and don't put stuff into StartupItems unless
38496       the user asks you to.
38497     - Require servers that use the default dirservers to have public IP
38498       addresses. We have too many servers that are configured with private
38499       IPs and their admins never notice the log entries complaining that
38500       their descriptors are being rejected.
38501     - Add OSX uninstall instructions. An actual uninstall script will
38502       come later.
38505 Changes in version 0.1.0.8-rc - 2005-05-23
38506   o Bugfixes:
38507     - It turns out that kqueue on OS X 10.3.9 was causing kernel
38508       panics. Disable kqueue on all OS X Tors.
38509     - Fix RPM: remove duplicate line accidentally added to the rpm
38510       spec file.
38511     - Disable threads on openbsd too, since its gethostaddr is not
38512       reentrant either.
38513     - Tolerate libevent 0.8 since it still works, even though it's
38514       ancient.
38515     - Enable building on Red Hat 9.0 again.
38516     - Allow the middle hop of the testing circuit to be running any
38517       version, now that most of them have the bugfix to let them connect
38518       to unknown servers. This will allow reachability testing to work
38519       even when 0.0.9.7-0.0.9.9 become obsolete.
38520     - Handle relay cells with rh.length too large. This prevents
38521       a potential attack that could read arbitrary memory (maybe even
38522       keys) from the exit server's process.
38523     - We screwed up the dirport reachability testing when we don't yet
38524       have a cached version of the directory. Hopefully now fixed.
38525     - Clean up router_load_single_router() (used by the controller),
38526       so it doesn't seg fault on error.
38527     - Fix a minor memory leak when somebody establishes an introduction
38528       point at your Tor server.
38529     - If a socks connection ends because read fails, don't warn that
38530       you're not sending a socks reply back.
38532   o Features:
38533     - Add HttpProxyAuthenticator config option too, that works like
38534       the HttpsProxyAuthenticator config option.
38535     - Encode hashed controller passwords in hex instead of base64,
38536       to make it easier to write controllers.
38539 Changes in version 0.1.0.7-rc - 2005-05-17
38540   o Bugfixes:
38541     - Fix a bug in the OS X package installer that prevented it from
38542       installing on Tiger.
38543     - Fix a script bug in the OS X package installer that made it
38544       complain during installation.
38545     - Find libevent even if it's hiding in /usr/local/ and your
38546       CFLAGS and LDFLAGS don't tell you to look there.
38547     - Be able to link with libevent as a shared library (the default
38548       after 1.0d), even if it's hiding in /usr/local/lib and even
38549       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
38550       assuming you're running gcc. Otherwise fail and give a useful
38551       error message.
38552     - Fix a bug in the RPM packager: set home directory for _tor to
38553       something more reasonable when first installing.
38554     - Free a minor amount of memory that is still reachable on exit.
38557 Changes in version 0.1.0.6-rc - 2005-05-14
38558   o Bugfixes:
38559     - Implement --disable-threads configure option. Disable threads on
38560       netbsd by default, because it appears to have no reentrant resolver
38561       functions.
38562     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
38563       release (1.1) detects and disables kqueue if it's broken.
38564     - Append default exit policy before checking for implicit internal
38565       addresses. Now we don't log a bunch of complaints on startup
38566       when using the default exit policy.
38567     - Some people were putting "Address  " in their torrc, and they had
38568       a buggy resolver that resolved " " to 0.0.0.0. Oops.
38569     - If DataDir is ~/.tor, and that expands to /.tor, then default to
38570       LOCALSTATEDIR/tor instead.
38571     - Fix fragmented-message bug in TorControl.py.
38572     - Resolve a minor bug which would prevent unreachable dirports
38573       from getting suppressed in the published descriptor.
38574     - When the controller gave us a new descriptor, we weren't resolving
38575       it immediately, so Tor would think its address was 0.0.0.0 until
38576       we fetched a new directory.
38577     - Fix an uppercase/lowercase case error in suppressing a bogus
38578       libevent warning on some Linuxes.
38580   o Features:
38581     - Begin scrubbing sensitive strings from logs by default. Turn off
38582       the config option SafeLogging if you need to do debugging.
38583     - Switch to a new buffer management algorithm, which tries to avoid
38584       reallocing and copying quite as much. In first tests it looks like
38585       it uses *more* memory on average, but less cpu.
38586     - First cut at support for "create-fast" cells. Clients can use
38587       these when extending to their first hop, since the TLS already
38588       provides forward secrecy and authentication. Not enabled on
38589       clients yet.
38590     - When dirservers refuse a router descriptor, we now log its
38591       contactinfo, platform, and the poster's IP address.
38592     - Call tor_free_all instead of connections_free_all after forking, to
38593       save memory on systems that need to fork.
38594     - Whine at you if you're a server and you don't set your contactinfo.
38595     - Implement --verify-config command-line option to check if your torrc
38596       is valid without actually launching Tor.
38597     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
38598       rather than just rejecting it.
38601 Changes in version 0.1.0.5-rc - 2005-04-27
38602   o Bugfixes:
38603     - Stop trying to print a null pointer if an OR conn fails because
38604       we didn't like its cert.
38605   o Features:
38606     - Switch our internal buffers implementation to use a ring buffer,
38607       to hopefully improve performance for fast servers a lot.
38608     - Add HttpsProxyAuthenticator support (basic auth only), based
38609       on patch from Adam Langley.
38610     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
38611       the fast servers that have been joining lately.
38612     - Give hidden service accesses extra time on the first attempt,
38613       since 60 seconds is often only barely enough. This might improve
38614       robustness more.
38615     - Improve performance for dirservers: stop re-parsing the whole
38616       directory every time you regenerate it.
38617     - Add more debugging info to help us find the weird dns freebsd
38618       pthreads bug; cleaner debug messages to help track future issues.
38621 Changes in version 0.0.9.9 - 2005-04-23
38622   o Bugfixes on 0.0.9.x:
38623     - If unofficial Tor clients connect and send weird TLS certs, our
38624       Tor server triggers an assert. This release contains a minimal
38625       backport from the broader fix that we put into 0.1.0.4-rc.
38628 Changes in version 0.1.0.4-rc - 2005-04-23
38629   o Bugfixes:
38630     - If unofficial Tor clients connect and send weird TLS certs, our
38631       Tor server triggers an assert. Stop asserting, and start handling
38632       TLS errors better in other situations too.
38633     - When the controller asks us to tell it about all the debug-level
38634       logs, it turns out we were generating debug-level logs while
38635       telling it about them, which turns into a bad loop. Now keep
38636       track of whether you're sending a debug log to the controller,
38637       and don't log when you are.
38638     - Fix the "postdescriptor" feature of the controller interface: on
38639       non-complete success, only say "done" once.
38640   o Features:
38641     - Clients are now willing to load balance over up to 2mB, not 1mB,
38642       of advertised bandwidth capacity.
38643     - Add a NoPublish config option, so you can be a server (e.g. for
38644       testing running Tor servers in other Tor networks) without
38645       publishing your descriptor to the primary dirservers.
38648 Changes in version 0.1.0.3-rc - 2005-04-08
38649   o Improvements on 0.1.0.2-rc:
38650     - Client now retries when streams end early for 'hibernating' or
38651       'resource limit' reasons, rather than failing them.
38652     - More automated handling for dirserver operators:
38653       - Automatically approve nodes running 0.1.0.2-rc or later,
38654         now that the the reachability detection stuff is working.
38655       - Now we allow two unverified servers with the same nickname
38656         but different keys. But if a nickname is verified, only that
38657         nickname+key are allowed.
38658       - If you're an authdirserver connecting to an address:port,
38659         and it's not the OR you were expecting, forget about that
38660         descriptor. If he *was* the one you were expecting, then forget
38661         about all other descriptors for that address:port.
38662       - Allow servers to publish descriptors from 12 hours in the future.
38663         Corollary: only whine about clock skew from the dirserver if
38664         he's a trusted dirserver (since now even verified servers could
38665         have quite wrong clocks).
38666     - Adjust maximum skew and age for rendezvous descriptors: let skew
38667       be 48 hours rather than 90 minutes.
38668     - Efficiency improvements:
38669       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
38670         it much faster to look up a circuit for each relay cell.
38671       - Remove most calls to assert_all_pending_dns_resolves_ok(),
38672         since they're eating our cpu on exit nodes.
38673       - Stop wasting time doing a case insensitive comparison for every
38674         dns name every time we do any lookup. Canonicalize the names to
38675         lowercase and be done with it.
38676     - Start sending 'truncated' cells back rather than destroy cells,
38677       if the circuit closes in front of you. This means we won't have
38678       to abandon partially built circuits.
38679     - Only warn once per nickname from add_nickname_list_to_smartlist
38680       per failure, so an entrynode or exitnode choice that's down won't
38681       yell so much.
38682     - Put a note in the torrc about abuse potential with the default
38683       exit policy.
38684     - Revise control spec and implementation to allow all log messages to
38685       be sent to controller with their severities intact (suggested by
38686       Matt Edman). Update TorControl to handle new log event types.
38687     - Provide better explanation messages when controller's POSTDESCRIPTOR
38688       fails.
38689     - Stop putting nodename in the Platform string in server descriptors.
38690       It doesn't actually help, and it is confusing/upsetting some people.
38692   o Bugfixes on 0.1.0.2-rc:
38693     - We were printing the host mask wrong in exit policies in server
38694       descriptors. This isn't a critical bug though, since we were still
38695       obeying the exit policy internally.
38696     - Fix Tor when compiled with libevent but without pthreads: move
38697       connection_unregister() from _connection_free() to
38698       connection_free().
38699     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
38700       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
38701       when we look through the connection array, we'll find any of the
38702       cpu/dnsworkers. This is no good.
38704   o Bugfixes on 0.0.9.8:
38705     - Fix possible bug on threading platforms (e.g. win32) which was
38706       leaking a file descriptor whenever a cpuworker or dnsworker died.
38707     - When using preferred entry or exit nodes, ignore whether the
38708       circuit wants uptime or capacity. They asked for the nodes, they
38709       get the nodes.
38710     - chdir() to your datadirectory at the *end* of the daemonize process,
38711       not the beginning. This was a problem because the first time you
38712       run tor, if your datadir isn't there, and you have runasdaemon set
38713       to 1, it will try to chdir to it before it tries to create it. Oops.
38714     - Handle changed router status correctly when dirserver reloads
38715       fingerprint file. We used to be dropping all unverified descriptors
38716       right then. The bug was hidden because we would immediately
38717       fetch a directory from another dirserver, which would include the
38718       descriptors we just dropped.
38719     - When we're connecting to an OR and he's got a different nickname/key
38720       than we were expecting, only complain loudly if we're an OP or a
38721       dirserver. Complaining loudly to the OR admins just confuses them.
38722     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
38723       artificially capped at 500kB.
38726 Changes in version 0.0.9.8 - 2005-04-07
38727   o Bugfixes on 0.0.9.x:
38728     - We have a bug that I haven't found yet. Sometimes, very rarely,
38729       cpuworkers get stuck in the 'busy' state, even though the cpuworker
38730       thinks of itself as idle. This meant that no new circuits ever got
38731       established. Here's a workaround to kill any cpuworker that's been
38732       busy for more than 100 seconds.
38735 Changes in version 0.1.0.2-rc - 2005-04-01
38736   o Bugfixes on 0.1.0.1-rc:
38737     - Fixes on reachability detection:
38738       - Don't check for reachability while hibernating.
38739       - If ORPort is reachable but DirPort isn't, still publish the
38740         descriptor, but zero out DirPort until it's found reachable.
38741       - When building testing circs for ORPort testing, use only
38742         high-bandwidth nodes, so fewer circuits fail.
38743       - Complain about unreachable ORPort separately from unreachable
38744         DirPort, so the user knows what's going on.
38745       - Make sure we only conclude ORPort reachability if we didn't
38746         initiate the conn. Otherwise we could falsely conclude that
38747         we're reachable just because we connected to the guy earlier
38748         and he used that same pipe to extend to us.
38749       - Authdirservers shouldn't do ORPort reachability detection,
38750         since they're in clique mode, so it will be rare to find a
38751         server not already connected to them.
38752       - When building testing circuits, always pick middle hops running
38753         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
38754         bug. (This is a kludge; it will go away when 0.0.9.x becomes
38755         obsolete.)
38756       - When we decide we're reachable, actually publish our descriptor
38757         right then.
38758     - Fix bug in redirectstream in the controller.
38759     - Fix the state descriptor strings so logs don't claim edge streams
38760       are in a different state than they actually are.
38761     - Use recent libevent features when possible (this only really affects
38762       win32 and osx right now, because the new libevent with these
38763       features hasn't been released yet). Add code to suppress spurious
38764       libevent log msgs.
38765     - Prevent possible segfault in connection_close_unattached_ap().
38766     - Fix newlines on torrc in win32.
38767     - Improve error msgs when tor-resolve fails.
38769   o Improvements on 0.0.9.x:
38770     - New experimental script tor/contrib/ExerciseServer.py (needs more
38771       work) that uses the controller interface to build circuits and
38772       fetch pages over them. This will help us bootstrap servers that
38773       have lots of capacity but haven't noticed it yet.
38774     - New experimental script tor/contrib/PathDemo.py (needs more work)
38775       that uses the controller interface to let you choose whole paths
38776       via addresses like
38777       "<hostname>.<path,separated by dots>.<length of path>.path"
38778     - When we've connected to an OR and handshaked but didn't like
38779       the result, we were closing the conn without sending destroy
38780       cells back for pending circuits. Now send those destroys.
38783 Changes in version 0.0.9.7 - 2005-04-01
38784   o Bugfixes on 0.0.9.x:
38785     - Fix another race crash bug (thanks to Glenn Fink for reporting).
38786     - Compare identity to identity, not to nickname, when extending to
38787       a router not already in the directory. This was preventing us from
38788       extending to unknown routers. Oops.
38789     - Make sure to create OS X Tor user in <500 range, so we aren't
38790       creating actual system users.
38791     - Note where connection-that-hasn't-sent-end was marked, and fix
38792       a few really loud instances of this harmless bug (it's fixed more
38793       in 0.1.0.x).
38796 Changes in version 0.1.0.1-rc - 2005-03-28
38797   o New features:
38798     - Add reachability testing. Your Tor server will automatically try
38799       to see if its ORPort and DirPort are reachable from the outside,
38800       and it won't upload its descriptor until it decides they are.
38801     - Handle unavailable hidden services better. Handle slow or busy
38802       hidden services better.
38803     - Add support for CONNECTing through https proxies, with "HttpsProxy"
38804       config option.
38805     - New exit policy: accept most low-numbered ports, rather than
38806       rejecting most low-numbered ports.
38807     - More Tor controller support (still experimental). See
38808       http://tor.eff.org/doc/control-spec.txt for all the new features,
38809       including signals to emulate unix signals from any platform;
38810       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
38811       closestream; closecircuit; etc.
38812     - Make nt services work and start on startup on win32 (based on
38813       patch by Matt Edman).
38814     - Add a new AddressMap config directive to rewrite incoming socks
38815       addresses. This lets you, for example, declare an implicit
38816       required exit node for certain sites.
38817     - Add a new TrackHostExits config directive to trigger addressmaps
38818       for certain incoming socks addresses -- for sites that break when
38819       your exit keeps changing (based on patch by Mike Perry).
38820     - Redo the client-side dns cache so it's just an addressmap too.
38821     - Notice when our IP changes, and reset stats/uptime/reachability.
38822     - When an application is using socks5, give him the whole variety of
38823       potential socks5 responses (connect refused, host unreachable, etc),
38824       rather than just "success" or "failure".
38825     - A more sane version numbering system. See
38826       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
38827     - New contributed script "exitlist": a simple python script to
38828       parse directories and find Tor nodes that exit to listed
38829       addresses/ports.
38830     - New contributed script "privoxy-tor-toggle" to toggle whether
38831       Privoxy uses Tor. Seems to be configured for Debian by default.
38832     - Report HTTP reasons to client when getting a response from directory
38833       servers -- so you can actually know what went wrong.
38834     - New config option MaxAdvertisedBandwidth which lets you advertise
38835       a low bandwidthrate (to not attract as many circuits) while still
38836       allowing a higher bandwidthrate in reality.
38838   o Robustness/stability fixes:
38839     - Make Tor use Niels Provos's libevent instead of its current
38840       poll-but-sometimes-select mess. This will let us use faster async
38841       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
38842       on Windows too.
38843     - pthread support now too. This was forced because when we forked,
38844       we ended up wasting a lot of duplicate ram over time. Also switch
38845       to foo_r versions of some library calls to allow reentry and
38846       threadsafeness.
38847     - Better handling for heterogeneous / unreliable nodes:
38848       - Annotate circuits w/ whether they aim to contain high uptime nodes
38849         and/or high capacity nodes. When building circuits, choose
38850         appropriate nodes.
38851       - This means that every single node in an intro rend circuit,
38852         not just the last one, will have a minimum uptime.
38853       - New config option LongLivedPorts to indicate application streams
38854         that will want high uptime circuits.
38855       - Servers reset uptime when a dir fetch entirely fails. This
38856         hopefully reflects stability of the server's network connectivity.
38857       - If somebody starts his tor server in Jan 2004 and then fixes his
38858         clock, don't make his published uptime be a year.
38859       - Reset published uptime when you wake up from hibernation.
38860     - Introduce a notion of 'internal' circs, which are chosen without
38861       regard to the exit policy of the last hop. Intro and rendezvous
38862       circs must be internal circs, to avoid leaking information. Resolve
38863       and connect streams can use internal circs if they want.
38864     - New circuit pooling algorithm: make sure to have enough circs around
38865       to satisfy any predicted ports, and also make sure to have 2 internal
38866       circs around if we've required internal circs lately (and with high
38867       uptime if we've seen that lately too).
38868     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
38869       which describes how often we retry making new circuits if current
38870       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
38871       how long we're willing to make use of an already-dirty circuit.
38872     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
38873       circ as necessary, if there are any completed ones lying around
38874       when we try to launch one.
38875     - Make hidden services try to establish a rendezvous for 30 seconds,
38876       rather than for n (where n=3) attempts to build a circuit.
38877     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
38878       "ShutdownWaitLength".
38879     - Try to be more zealous about calling connection_edge_end when
38880       things go bad with edge conns in connection.c.
38881     - Revise tor-spec to add more/better stream end reasons.
38882     - Revise all calls to connection_edge_end to avoid sending "misc",
38883       and to take errno into account where possible.
38885   o Bug fixes:
38886     - Fix a race condition that can trigger an assert, when we have a
38887       pending create cell and an OR connection fails right then.
38888     - Fix several double-mark-for-close bugs, e.g. where we were finding
38889       a conn for a cell even if that conn is already marked for close.
38890     - Make sequence of log messages when starting on win32 with no config
38891       file more reasonable.
38892     - When choosing an exit node for a new non-internal circ, don't take
38893       into account whether it'll be useful for any pending x.onion
38894       addresses -- it won't.
38895     - Turn addr_policy_compare from a tristate to a quadstate; this should
38896       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
38897       for google.com" problem.
38898     - Make "platform" string in descriptor more accurate for Win32 servers,
38899       so it's not just "unknown platform".
38900     - Fix an edge case in parsing config options (thanks weasel).
38901       If they say "--" on the commandline, it's not an option.
38902     - Reject odd-looking addresses at the client (e.g. addresses that
38903       contain a colon), rather than having the server drop them because
38904       they're malformed.
38905     - tor-resolve requests were ignoring .exit if there was a working circuit
38906       they could use instead.
38907     - REUSEADDR on normal platforms means you can rebind to the port
38908       right after somebody else has let it go. But REUSEADDR on win32
38909       means to let you bind to the port _even when somebody else
38910       already has it bound_! So, don't do that on Win32.
38911     - Change version parsing logic: a version is "obsolete" if it is not
38912       recommended and (1) there is a newer recommended version in the
38913       same series, or (2) there are no recommended versions in the same
38914       series, but there are some recommended versions in a newer series.
38915       A version is "new" if it is newer than any recommended version in
38916       the same series.
38917     - Stop most cases of hanging up on a socks connection without sending
38918       the socks reject.
38920   o Helpful fixes:
38921     - Require BandwidthRate to be at least 20kB/s for servers.
38922     - When a dirserver causes you to give a warn, mention which dirserver
38923       it was.
38924     - New config option DirAllowPrivateAddresses for authdirservers.
38925       Now by default they refuse router descriptors that have non-IP or
38926       private-IP addresses.
38927     - Stop publishing socksport in the directory, since it's not
38928       actually meant to be public. For compatibility, publish a 0 there
38929       for now.
38930     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
38931       smart" value, that is low for servers and high for clients.
38932     - If our clock jumps forward by 100 seconds or more, assume something
38933       has gone wrong with our network and abandon all not-yet-used circs.
38934     - Warn when exit policy implicitly allows local addresses.
38935     - If we get an incredibly skewed timestamp from a dirserver mirror
38936       that isn't a verified OR, don't warn -- it's probably him that's
38937       wrong.
38938     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
38939       cookies to disk and doesn't log each web request to disk. (Thanks
38940       to Brett Carrington for pointing this out.)
38941     - When a client asks us for a dir mirror and we don't have one,
38942       launch an attempt to get a fresh one.
38943     - If we're hibernating and we get a SIGINT, exit immediately.
38944     - Add --with-dmalloc ./configure option, to track memory leaks.
38945     - And try to free all memory on closing, so we can detect what
38946       we're leaking.
38947     - Cache local dns resolves correctly even when they're .exit
38948       addresses.
38949     - Give a better warning when some other server advertises an
38950       ORPort that is actually an apache running ssl.
38951     - Add "opt hibernating 1" to server descriptor to make it clearer
38952       whether the server is hibernating.
38955 Changes in version 0.0.9.6 - 2005-03-24
38956   o Bugfixes on 0.0.9.x (crashes and asserts):
38957     - Add new end stream reasons to maintenance branch. Fix bug where
38958       reason (8) could trigger an assert. Prevent bug from recurring.
38959     - Apparently win32 stat wants paths to not end with a slash.
38960     - Fix assert triggers in assert_cpath_layer_ok(), where we were
38961       blowing away the circuit that conn->cpath_layer points to, then
38962       checking to see if the circ is well-formed. Backport check to make
38963       sure we dont use the cpath on a closed connection.
38964     - Prevent circuit_resume_edge_reading_helper() from trying to package
38965       inbufs for marked-for-close streams.
38966     - Don't crash on hup if your options->address has become unresolvable.
38967     - Some systems (like OS X) sometimes accept() a connection and tell
38968       you the remote host is 0.0.0.0:0. If this happens, due to some
38969       other mis-features, we get confused; so refuse the conn for now.
38971   o Bugfixes on 0.0.9.x (other):
38972     - Fix harmless but scary "Unrecognized content encoding" warn message.
38973     - Add new stream error reason: TORPROTOCOL reason means "you are not
38974       speaking a version of Tor I understand; say bye-bye to your stream."
38975     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
38976       into the future, now that we are more tolerant of skew. This
38977       resolves a bug where a Tor server would refuse to cache a directory
38978       because all the directories it gets are too far in the future;
38979       yet the Tor server never logs any complaints about clock skew.
38980     - Mac packaging magic: make man pages useable, and do not overwrite
38981       existing torrc files.
38982     - Make OS X log happily to /var/log/tor/tor.log
38985 Changes in version 0.0.9.5 - 2005-02-22
38986   o Bugfixes on 0.0.9.x:
38987     - Fix an assert race at exit nodes when resolve requests fail.
38988     - Stop picking unverified dir mirrors--it only leads to misery.
38989     - Patch from Matt Edman to make NT services work better. Service
38990       support is still not compiled into the executable by default.
38991     - Patch from Dmitri Bely so the Tor service runs better under
38992       the win32 SYSTEM account.
38993     - Make tor-resolve actually work (?) on Win32.
38994     - Fix a sign bug when getrlimit claims to have 4+ billion
38995       file descriptors available.
38996     - Stop refusing to start when bandwidthburst == bandwidthrate.
38997     - When create cells have been on the onion queue more than five
38998       seconds, just send back a destroy and take them off the list.
39001 Changes in version 0.0.9.4 - 2005-02-03
39002   o Bugfixes on 0.0.9:
39003     - Fix an assert bug that took down most of our servers: when
39004       a server claims to have 1 GB of bandwidthburst, don't
39005       freak out.
39006     - Don't crash as badly if we have spawned the max allowed number
39007       of dnsworkers, or we're out of file descriptors.
39008     - Block more file-sharing ports in the default exit policy.
39009     - MaxConn is now automatically set to the hard limit of max
39010       file descriptors we're allowed (ulimit -n), minus a few for
39011       logs, etc.
39012     - Give a clearer message when servers need to raise their
39013       ulimit -n when they start running out of file descriptors.
39014     - SGI Compatibility patches from Jan Schaumann.
39015     - Tolerate a corrupt cached directory better.
39016     - When a dirserver hasn't approved your server, list which one.
39017     - Go into soft hibernation after 95% of the bandwidth is used,
39018       not 99%. This is especially important for daily hibernators who
39019       have a small accounting max. Hopefully it will result in fewer
39020       cut connections when the hard hibernation starts.
39021     - Load-balance better when using servers that claim more than
39022       800kB/s of capacity.
39023     - Make NT services work (experimental, only used if compiled in).
39026 Changes in version 0.0.9.3 - 2005-01-21
39027   o Bugfixes on 0.0.9:
39028     - Backport the cpu use fixes from main branch, so busy servers won't
39029       need as much processor time.
39030     - Work better when we go offline and then come back, or when we
39031       run Tor at boot before the network is up. We do this by
39032       optimistically trying to fetch a new directory whenever an
39033       application request comes in and we think we're offline -- the
39034       human is hopefully a good measure of when the network is back.
39035     - Backport some minimal hidserv bugfixes: keep rend circuits open as
39036       long as you keep using them; actually publish hidserv descriptors
39037       shortly after they change, rather than waiting 20-40 minutes.
39038     - Enable Mac startup script by default.
39039     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
39040     - When you update AllowUnverifiedNodes or FirewallPorts via the
39041       controller's setconf feature, we were always appending, never
39042       resetting.
39043     - When you update HiddenServiceDir via setconf, it was screwing up
39044       the order of reading the lines, making it fail.
39045     - Do not rewrite a cached directory back to the cache; otherwise we
39046       will think it is recent and not fetch a newer one on startup.
39047     - Workaround for webservers that lie about Content-Encoding: Tor
39048       now tries to autodetect compressed directories and compression
39049       itself. This lets us Proxypass dir fetches through apache.
39052 Changes in version 0.0.9.2 - 2005-01-04
39053   o Bugfixes on 0.0.9 (crashes and asserts):
39054     - Fix an assert on startup when the disk is full and you're logging
39055       to a file.
39056     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
39057       style address, then we'd crash.
39058     - Fix an assert trigger when the running-routers string we get from
39059       a dirserver is broken.
39060     - Make worker threads start and run on win32. Now win32 servers
39061       may work better.
39062     - Bandaid (not actually fix, but now it doesn't crash) an assert
39063       where the dns worker dies mysteriously and the main Tor process
39064       doesn't remember anything about the address it was resolving.
39066   o Bugfixes on 0.0.9 (Win32):
39067     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
39068       name out of the warning/assert messages.
39069     - Fix a superficial "unhandled error on read" bug on win32.
39070     - The win32 installer no longer requires a click-through for our
39071       license, since our Free Software license grants rights but does not
39072       take any away.
39073     - Win32: When connecting to a dirserver fails, try another one
39074       immediately. (This was already working for non-win32 Tors.)
39075     - Stop trying to parse $HOME on win32 when hunting for default
39076       DataDirectory.
39077     - Make tor-resolve.c work on win32 by calling network_init().
39079   o Bugfixes on 0.0.9 (other):
39080     - Make 0.0.9.x build on Solaris again.
39081     - Due to a fencepost error, we were blowing away the \n when reporting
39082       confvalue items in the controller. So asking for multiple config
39083       values at once couldn't work.
39084     - When listing circuits that are pending on an opening OR connection,
39085       if we're an OR we were listing circuits that *end* at us as
39086       being pending on every listener, dns/cpu worker, etc. Stop that.
39087     - Dirservers were failing to create 'running-routers' or 'directory'
39088       strings if we had more than some threshold of routers. Fix them so
39089       they can handle any number of routers.
39090     - Fix a superficial "Duplicate mark for close" bug.
39091     - Stop checking for clock skew for OR connections, even for servers.
39092     - Fix a fencepost error that was chopping off the last letter of any
39093       nickname that is the maximum allowed nickname length.
39094     - Update URLs in log messages so they point to the new website.
39095     - Fix a potential problem in mangling server private keys while
39096       writing to disk (not triggered yet, as far as we know).
39097     - Include the licenses for other free software we include in Tor,
39098       now that we're shipping binary distributions more regularly.
39101 Changes in version 0.0.9.1 - 2004-12-15
39102   o Bugfixes on 0.0.9:
39103     - Make hibernation actually work.
39104     - Make HashedControlPassword config option work.
39105     - When we're reporting event circuit status to a controller,
39106       don't use the stream status code.
39109 Changes in version 0.0.9 - 2004-12-12
39110   o Cleanups:
39111     - Clean up manpage and torrc.sample file.
39112     - Clean up severities and text of log warnings.
39113   o Mistakes:
39114     - Make servers trigger an assert when they enter hibernation.
39117 Changes in version 0.0.9rc7 - 2004-12-08
39118   o Bugfixes on 0.0.9rc:
39119     - Fix a stack-trashing crash when an exit node begins hibernating.
39120     - Avoid looking at unallocated memory while considering which
39121       ports we need to build circuits to cover.
39122     - Stop a sigpipe: when an 'end' cell races with eof from the app,
39123       we shouldn't hold-open-until-flush if the eof arrived first.
39124     - Fix a bug with init_cookie_authentication() in the controller.
39125     - When recommending new-format log lines, if the upper bound is
39126       LOG_ERR, leave it implicit.
39128   o Bugfixes on 0.0.8.1:
39129     - Fix a whole slew of memory leaks.
39130     - Fix isspace() and friends so they still make Solaris happy
39131       but also so they don't trigger asserts on win32.
39132     - Fix parse_iso_time on platforms without strptime (eg win32).
39133     - win32: tolerate extra "readable" events better.
39134     - win32: when being multithreaded, leave parent fdarray open.
39135     - Make unit tests work on win32.
39138 Changes in version 0.0.9rc6 - 2004-12-06
39139   o Bugfixes on 0.0.9pre:
39140     - Clean up some more integer underflow opportunities (not exploitable
39141       we think).
39142     - While hibernating, hup should not regrow our listeners.
39143     - Send an end to the streams we close when we hibernate, rather
39144       than just chopping them off.
39145     - React to eof immediately on non-open edge connections.
39147   o Bugfixes on 0.0.8.1:
39148     - Calculate timeout for waiting for a connected cell from the time
39149       we sent the begin cell, not from the time the stream started. If
39150       it took a long time to establish the circuit, we would time out
39151       right after sending the begin cell.
39152     - Fix router_compare_addr_to_addr_policy: it was not treating a port
39153       of * as always matching, so we were picking reject *:* nodes as
39154       exit nodes too. Oops.
39156   o Features:
39157     - New circuit building strategy: keep a list of ports that we've
39158       used in the past 6 hours, and always try to have 2 circuits open
39159       or on the way that will handle each such port. Seed us with port
39160       80 so web users won't complain that Tor is "slow to start up".
39161     - Make kill -USR1 dump more useful stats about circuits.
39162     - When warning about retrying or giving up, print the address, so
39163       the user knows which one it's talking about.
39164     - If you haven't used a clean circuit in an hour, throw it away,
39165       just to be on the safe side. (This means after 6 hours a totally
39166       unused Tor client will have no circuits open.)
39169 Changes in version 0.0.9rc5 - 2004-12-01
39170   o Bugfixes on 0.0.8.1:
39171     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
39172     - Let resolve conns retry/expire also, rather than sticking around
39173       forever.
39174     - If we are using select, make sure we stay within FD_SETSIZE.
39176   o Bugfixes on 0.0.9pre:
39177     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
39178       but doesn't seem to be currently; thanks to Ilja van Sprundel for
39179       finding it.
39180     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
39181       instead. Impose minima and maxima for all *Period options; impose
39182       even tighter maxima for fetching if we are a caching dirserver.
39183       Clip rather than rejecting.
39184     - Fetch cached running-routers from servers that serve it (that is,
39185       authdirservers and servers running 0.0.9rc5-cvs or later.)
39187   o Features:
39188     - Accept *:706 (silc) in default exit policy.
39189     - Implement new versioning format for post 0.1.
39190     - Support "foo.nickname.exit" addresses, to let Alice request the
39191       address "foo" as viewed by exit node "nickname". Based on a patch
39192       by Geoff Goodell.
39193     - Make tor --version --version dump the cvs Id of every file.
39196 Changes in version 0.0.9rc4 - 2004-11-28
39197   o Bugfixes on 0.0.8.1:
39198     - Make windows sockets actually non-blocking (oops), and handle
39199       win32 socket errors better.
39201   o Bugfixes on 0.0.9rc1:
39202     - Actually catch the -USR2 signal.
39205 Changes in version 0.0.9rc3 - 2004-11-25
39206   o Bugfixes on 0.0.8.1:
39207     - Flush the log file descriptor after we print "Tor opening log file",
39208       so we don't see those messages days later.
39210   o Bugfixes on 0.0.9rc1:
39211     - Make tor-resolve work again.
39212     - Avoid infinite loop in tor-resolve if tor hangs up on it.
39213     - Fix an assert trigger for clients/servers handling resolves.
39216 Changes in version 0.0.9rc2 - 2004-11-24
39217   o Bugfixes on 0.0.9rc1:
39218     - I broke socks5 support while fixing the eof bug.
39219     - Allow unitless bandwidths and intervals; they default to bytes
39220       and seconds.
39221     - New servers don't start out hibernating; they are active until
39222       they run out of bytes, so they have a better estimate of how
39223       long it takes, and so their operators can know they're working.
39226 Changes in version 0.0.9rc1 - 2004-11-23
39227   o Bugfixes on 0.0.8.1:
39228     - Finally fix a bug that's been plaguing us for a year:
39229       With high load, circuit package window was reaching 0. Whenever
39230       we got a circuit-level sendme, we were reading a lot on each
39231       socket, but only writing out a bit. So we would eventually reach
39232       eof. This would be noticed and acted on even when there were still
39233       bytes sitting in the inbuf.
39234     - When poll() is interrupted, we shouldn't believe the revents values.
39236   o Bugfixes on 0.0.9pre6:
39237     - Fix hibernate bug that caused pre6 to be broken.
39238     - Don't keep rephist info for routers that haven't had activity for
39239       24 hours. (This matters now that clients have keys, since we track
39240       them too.)
39241     - Never call close_temp_logs while validating log options.
39242     - Fix backslash-escaping on tor.sh.in and torctl.in.
39244   o Features:
39245     - Implement weekly/monthly/daily accounting: now you specify your
39246       hibernation properties by
39247       AccountingMax N bytes|KB|MB|GB|TB
39248       AccountingStart day|week|month [day] HH:MM
39249         Defaults to "month 1 0:00".
39250     - Let bandwidth and interval config options be specified as 5 bytes,
39251       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
39252     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
39253       get back to normal.)
39254     - If your requested entry or exit node has advertised bandwidth 0,
39255       pick it anyway.
39256     - Be more greedy about filling up relay cells -- we try reading again
39257       once we've processed the stuff we read, in case enough has arrived
39258       to fill the last cell completely.
39259     - Apply NT service patch from Osamu Fujino. Still needs more work.
39262 Changes in version 0.0.9pre6 - 2004-11-15
39263   o Bugfixes on 0.0.8.1:
39264     - Fix assert failure on malformed socks4a requests.
39265     - Use identity comparison, not nickname comparison, to choose which
39266       half of circuit-ID-space each side gets to use. This is needed
39267       because sometimes we think of a router as a nickname, and sometimes
39268       as a hex ID, and we can't predict what the other side will do.
39269     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
39270       write() call will fail and we handle it there.
39271     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
39272       and smartlist_len, which are two major profiling offenders.
39274   o Bugfixes on 0.0.9pre5:
39275     - Fix a bug in read_all that was corrupting config files on windows.
39276     - When we're raising the max number of open file descriptors to
39277       'unlimited', don't log that we just raised it to '-1'.
39278     - Include event code with events, as required by control-spec.txt.
39279     - Don't give a fingerprint when clients do --list-fingerprint:
39280       it's misleading, because it will never be the same again.
39281     - Stop using strlcpy in tor_strndup, since it was slowing us
39282       down a lot.
39283     - Remove warn on startup about missing cached-directory file.
39284     - Make kill -USR1 work again.
39285     - Hibernate if we start tor during the "wait for wakeup-time" phase
39286       of an accounting interval. Log our hibernation plans better.
39287     - Authoritative dirservers now also cache their directory, so they
39288       have it on start-up.
39290   o Features:
39291     - Fetch running-routers; cache running-routers; compress
39292       running-routers; serve compressed running-routers.z
39293     - Add NSI installer script contributed by J Doe.
39294     - Commit VC6 and VC7 workspace/project files.
39295     - Commit a tor.spec for making RPM files, with help from jbash.
39296     - Add contrib/torctl.in contributed by Glenn Fink.
39297     - Implement the control-spec's SAVECONF command, to write your
39298       configuration to torrc.
39299     - Get cookie authentication for the controller closer to working.
39300     - Include control-spec.txt in the tarball.
39301     - When set_conf changes our server descriptor, upload a new copy.
39302       But don't upload it too often if there are frequent changes.
39303     - Document authentication config in man page, and document signals
39304       we catch.
39305     - Clean up confusing parts of man page and torrc.sample.
39306     - Make expand_filename handle ~ and ~username.
39307     - Use autoconf to enable largefile support where necessary. Use
39308       ftello where available, since ftell can fail at 2GB.
39309     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
39310       log more informatively.
39311     - Give a slightly more useful output for "tor -h".
39312     - Refuse application socks connections to port 0.
39313     - Check clock skew for verified servers, but allow unverified
39314       servers and clients to have any clock skew.
39315     - Break DirFetchPostPeriod into:
39316       - DirFetchPeriod for fetching full directory,
39317       - StatusFetchPeriod for fetching running-routers,
39318       - DirPostPeriod for posting server descriptor,
39319       - RendPostPeriod for posting hidden service descriptors.
39320     - Make sure the hidden service descriptors are at a random offset
39321       from each other, to hinder linkability.
39324 Changes in version 0.0.9pre5 - 2004-11-09
39325   o Bugfixes on 0.0.9pre4:
39326     - Fix a seg fault in unit tests (doesn't affect main program).
39327     - Fix an assert bug where a hidden service provider would fail if
39328       the first hop of his rendezvous circuit was down.
39329     - Hidden service operators now correctly handle version 1 style
39330       INTRODUCE1 cells (nobody generates them still, so not a critical
39331       bug).
39332     - If do_hup fails, actually notice.
39333     - Handle more errnos from accept() without closing the listener.
39334       Some OpenBSD machines were closing their listeners because
39335       they ran out of file descriptors.
39336     - Send resolve cells to exit routers that are running a new
39337       enough version of the resolve code to work right.
39338     - Better handling of winsock includes on non-MSV win32 compilers.
39339     - Some people had wrapped their tor client/server in a script
39340       that would restart it whenever it died. This did not play well
39341       with our "shut down if your version is obsolete" code. Now people
39342       don't fetch a new directory if their local cached version is
39343       recent enough.
39344     - Make our autogen.sh work on ksh as well as bash.
39346   o Major Features:
39347     - Hibernation: New config option "AccountingMaxKB" lets you
39348       set how many KBytes per month you want to allow your server to
39349       consume. Rather than spreading those bytes out evenly over the
39350       month, we instead hibernate for some of the month and pop up
39351       at a deterministic time, work until the bytes are consumed, then
39352       hibernate again. Config option "MonthlyAccountingStart" lets you
39353       specify which day of the month your billing cycle starts on.
39354     - Control interface: a separate program can now talk to your
39355       client/server over a socket, and get/set config options, receive
39356       notifications of circuits and streams starting/finishing/dying,
39357       bandwidth used, etc. The next step is to get some GUIs working.
39358       Let us know if you want to help out. See doc/control-spec.txt .
39359     - Ship a contrib/tor-control.py as an example script to interact
39360       with the control port.
39361     - "tor --hash-password zzyxz" will output a salted password for
39362       use in authenticating to the control interface.
39363     - New log format in config:
39364       "Log minsev[-maxsev] stdout|stderr|syslog" or
39365       "Log minsev[-maxsev] file /var/foo"
39367   o Minor Features:
39368     - DirPolicy config option, to let people reject incoming addresses
39369       from their dirserver.
39370     - "tor --list-fingerprint" will list your identity key fingerprint
39371       and then exit.
39372     - Add "pass" target for RedirectExit, to make it easier to break
39373       out of a sequence of RedirectExit rules.
39374     - Clients now generate a TLS cert too, in preparation for having
39375       them act more like real nodes.
39376     - Ship src/win32/ in the tarball, so people can use it to build.
39377     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
39378       is broken.
39379     - New "router-status" line in directory, to better bind each verified
39380       nickname to its identity key.
39381     - Deprecate unofficial config option abbreviations, and abbreviations
39382       not on the command line.
39383     - Add a pure-C tor-resolve implementation.
39384     - Use getrlimit and friends to ensure we can reach MaxConn (currently
39385       1024) file descriptors.
39387   o Code security improvements, inspired by Ilja:
39388     - Replace sprintf with snprintf. (I think they were all safe, but
39389       hey.)
39390     - Replace strcpy/strncpy with strlcpy in more places.
39391     - Avoid strcat; use snprintf or strlcat instead.
39392     - snprintf wrapper with consistent (though not C99) overflow behavior.
39395 Changes in version 0.0.9pre4 - 2004-10-17
39396   o Bugfixes on 0.0.9pre3:
39397     - If the server doesn't specify an exit policy, use the real default
39398       exit policy, not reject *:*.
39399     - Ignore fascistfirewall when uploading/downloading hidden service
39400       descriptors, since we go through Tor for those; and when using
39401       an HttpProxy, since we assume it can reach them all.
39402     - When looking for an authoritative dirserver, use only the ones
39403       configured at boot. Don't bother looking in the directory.
39404     - The rest of the fix for get_default_conf_file() on older win32.
39405     - Make 'Routerfile' config option obsolete.
39407   o Features:
39408     - New 'MyFamily nick1,...' config option for a server to
39409       specify other servers that shouldn't be used in the same circuit
39410       with it. Only believed if nick1 also specifies us.
39411     - New 'NodeFamily nick1,nick2,...' config option for a client to
39412       specify nodes that it doesn't want to use in the same circuit.
39413     - New 'Redirectexit pattern address:port' config option for a
39414       server to redirect exit connections, e.g. to a local squid.
39417 Changes in version 0.0.9pre3 - 2004-10-13
39418   o Bugfixes on 0.0.8.1:
39419     - Better torrc example lines for dirbindaddress and orbindaddress.
39420     - Improved bounds checking on parsed ints (e.g. config options and
39421       the ones we find in directories.)
39422     - Better handling of size_t vs int, so we're more robust on 64
39423       bit platforms.
39424     - Fix the rest of the bug where a newly started OR would appear
39425       as unverified even after we've added his fingerprint and hupped
39426       the dirserver.
39427     - Fix a bug from 0.0.7: when read() failed on a stream, we would
39428       close it without sending back an end. So 'connection refused'
39429       would simply be ignored and the user would get no response.
39431   o Bugfixes on 0.0.9pre2:
39432     - Serving the cached-on-disk directory to people is bad. We now
39433       provide no directory until we've fetched a fresh one.
39434     - Workaround for bug on windows where cached-directories get crlf
39435       corruption.
39436     - Make get_default_conf_file() work on older windows too.
39437     - If we write a *:* exit policy line in the descriptor, don't write
39438       any more exit policy lines.
39440   o Features:
39441     - Use only 0.0.9pre1 and later servers for resolve cells.
39442     - Make the dirservers file obsolete.
39443       - Include a dir-signing-key token in directories to tell the
39444         parsing entity which key is being used to sign.
39445       - Remove the built-in bulky default dirservers string.
39446       - New config option "Dirserver %s:%d [fingerprint]", which can be
39447         repeated as many times as needed. If no dirservers specified,
39448         default to moria1,moria2,tor26.
39449     - Make moria2 advertise a dirport of 80, so people behind firewalls
39450       will be able to get a directory.
39451     - Http proxy support
39452       - Dirservers translate requests for http://%s:%d/x to /x
39453       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
39454         be routed through this host.
39455       - Clients ask for /tor/x rather than /x for new enough dirservers.
39456         This way we can one day coexist peacefully with apache.
39457       - Clients specify a "Host: %s%d" http header, to be compatible
39458         with more proxies, and so running squid on an exit node can work.
39461 Changes in version 0.0.8.1 - 2004-10-13
39462   o Bugfixes:
39463     - Fix a seg fault that can be triggered remotely for Tor
39464       clients/servers with an open dirport.
39465     - Fix a rare assert trigger, where routerinfos for entries in
39466       our cpath would expire while we're building the path.
39467     - Fix a bug in OutboundBindAddress so it (hopefully) works.
39468     - Fix a rare seg fault for people running hidden services on
39469       intermittent connections.
39470     - Fix a bug in parsing opt keywords with objects.
39471     - Fix a stale pointer assert bug when a stream detaches and
39472       reattaches.
39473     - Fix a string format vulnerability (probably not exploitable)
39474       in reporting stats locally.
39475     - Fix an assert trigger: sometimes launching circuits can fail
39476       immediately, e.g. because too many circuits have failed recently.
39477     - Fix a compile warning on 64 bit platforms.
39480 Changes in version 0.0.9pre2 - 2004-10-03
39481   o Bugfixes:
39482     - Make fetching a cached directory work for 64-bit platforms too.
39483     - Make zlib.h a required header, not an optional header.
39486 Changes in version 0.0.9pre1 - 2004-10-01
39487   o Bugfixes:
39488     - Stop using separate defaults for no-config-file and
39489       empty-config-file. Now you have to explicitly turn off SocksPort,
39490       if you don't want it open.
39491     - Fix a bug in OutboundBindAddress so it (hopefully) works.
39492     - Improve man page to mention more of the 0.0.8 features.
39493     - Fix a rare seg fault for people running hidden services on
39494       intermittent connections.
39495     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
39496       happier.
39497     - Fix more dns related bugs: send back resolve_failed and end cells
39498       more reliably when the resolve fails, rather than closing the
39499       circuit and then trying to send the cell. Also attach dummy resolve
39500       connections to a circuit *before* calling dns_resolve(), to fix
39501       a bug where cached answers would never be sent in RESOLVED cells.
39502     - When we run out of disk space, or other log writing error, don't
39503       crash. Just stop logging to that log and continue.
39504     - We were starting to daemonize before we opened our logs, so if
39505       there were any problems opening logs, we would complain to stderr,
39506       which wouldn't work, and then mysteriously exit.
39507     - Fix a rare bug where sometimes a verified OR would connect to us
39508       before he'd uploaded his descriptor, which would cause us to
39509       assign conn->nickname as though he's unverified. Now we look through
39510       the fingerprint list to see if he's there.
39511     - Fix a rare assert trigger, where routerinfos for entries in
39512       our cpath would expire while we're building the path.
39514   o Features:
39515     - Clients can ask dirservers for /dir.z to get a compressed version
39516       of the directory. Only works for servers running 0.0.9, of course.
39517     - Make clients cache directories and use them to seed their router
39518       lists at startup. This means clients have a datadir again.
39519     - Configuration infrastructure support for warning on obsolete
39520       options.
39521     - Respond to content-encoding headers by trying to uncompress as
39522       appropriate.
39523     - Reply with a deflated directory when a client asks for "dir.z".
39524       We could use allow-encodings instead, but allow-encodings isn't
39525       specified in HTTP 1.0.
39526     - Raise the max dns workers from 50 to 100.
39527     - Discourage people from setting their dirfetchpostperiod more often
39528       than once per minute.
39529     - Protect dirservers from overzealous descriptor uploading -- wait
39530       10 seconds after directory gets dirty, before regenerating.
39533 Changes in version 0.0.8 - 2004-08-25
39534   o Port it to SunOS 5.9 / Athena
39537 Changes in version 0.0.8rc2 - 2004-08-20
39538   o Make it compile on cygwin again.
39539   o When picking unverified routers, skip those with low uptime and/or
39540     low bandwidth, depending on what properties you care about.
39543 Changes in version 0.0.8rc1 - 2004-08-18
39544   o Changes from 0.0.7.3:
39545     - Bugfixes:
39546       - Fix assert triggers: if the other side returns an address 0.0.0.0,
39547         don't put it into the client dns cache.
39548       - If a begin failed due to exit policy, but we believe the IP address
39549         should have been allowed, switch that router to exitpolicy reject *:*
39550         until we get our next directory.
39551     - Features:
39552       - Clients choose nodes proportional to advertised bandwidth.
39553       - Avoid using nodes with low uptime as introduction points.
39554       - Handle servers with dynamic IP addresses: don't replace
39555         options->Address with the resolved one at startup, and
39556         detect our address right before we make a routerinfo each time.
39557       - 'FascistFirewall' option to pick dirservers and ORs on specific
39558         ports; plus 'FirewallPorts' config option to tell FascistFirewall
39559         which ports are open. (Defaults to 80,443)
39560       - Be more aggressive about trying to make circuits when the network
39561         has changed (e.g. when you unsuspend your laptop).
39562       - Check for time skew on http headers; report date in response to
39563         "GET /".
39564       - If the entrynode config line has only one node, don't pick it as
39565         an exitnode.
39566       - Add strict{entry|exit}nodes config options. If set to 1, then
39567         we refuse to build circuits that don't include the specified entry
39568         or exit nodes.
39569       - OutboundBindAddress config option, to bind to a specific
39570         IP address for outgoing connect()s.
39571       - End truncated log entries (e.g. directories) with "[truncated]".
39573   o Patches to 0.0.8preX:
39574     - Bugfixes:
39575       - Patches to compile and run on win32 again (maybe)?
39576       - Fix crash when looking for ~/.torrc with no $HOME set.
39577       - Fix a race bug in the unit tests.
39578       - Handle verified/unverified name collisions better when new
39579         routerinfo's arrive in a directory.
39580       - Sometimes routers were getting entered into the stats before
39581         we'd assigned their identity_digest. Oops.
39582       - Only pick and establish intro points after we've gotten a
39583         directory.
39584     - Features:
39585       - AllowUnverifiedNodes config option to let circuits choose no-name
39586         routers in entry,middle,exit,introduction,rendezvous positions.
39587         Allow middle and rendezvous positions by default.
39588       - Add a man page for tor-resolve.
39591 Changes in version 0.0.7.3 - 2004-08-12
39592   o Stop dnsworkers from triggering an assert failure when you
39593     ask them to resolve the host "".
39596 Changes in version 0.0.8pre3 - 2004-08-09
39597   o Changes from 0.0.7.2:
39598     - Allow multiple ORs with same nickname in routerlist -- now when
39599       people give us one identity key for a nickname, then later
39600       another, we don't constantly complain until the first expires.
39601     - Remember used bandwidth (both in and out), and publish 15-minute
39602       snapshots for the past day into our descriptor.
39603     - You can now fetch $DIRURL/running-routers to get just the
39604       running-routers line, not the whole descriptor list. (But
39605       clients don't use this yet.)
39606     - When people mistakenly use Tor as an http proxy, point them
39607       at the tor-doc.html rather than the INSTALL.
39608     - Remove our mostly unused -- and broken -- hex_encode()
39609       function. Use base16_encode() instead. (Thanks to Timo Lindfors
39610       for pointing out this bug.)
39611     - Rotate onion keys every 12 hours, not every 2 hours, so we have
39612       fewer problems with people using the wrong key.
39613     - Change the default exit policy to reject the default edonkey,
39614       kazaa, gnutella ports.
39615     - Add replace_file() to util.[ch] to handle win32's rename().
39617   o Changes from 0.0.8preX:
39618     - Fix two bugs in saving onion keys to disk when rotating, so
39619       hopefully we'll get fewer people using old onion keys.
39620     - Fix an assert error that was making SocksPolicy not work.
39621     - Be willing to expire routers that have an open dirport -- it's
39622       just the authoritative dirservers we want to not forget.
39623     - Reject tor-resolve requests for .onion addresses early, so we
39624       don't build a whole rendezvous circuit and then fail.
39625     - When you're warning a server that he's unverified, don't cry
39626       wolf unpredictably.
39627     - Fix a race condition: don't try to extend onto a connection
39628       that's still handshaking.
39629     - For servers in clique mode, require the conn to be open before
39630       you'll choose it for your path.
39631     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
39632       end relay cell, etc.
39633     - Measure bandwidth capacity over the last 24 hours, not just 12
39634     - Bugfix: authoritative dirservers were making and signing a new
39635       directory for each client, rather than reusing the cached one.
39638 Changes in version 0.0.8pre2 - 2004-08-04
39639   o Changes from 0.0.7.2:
39640     - Security fixes:
39641       - Check directory signature _before_ you decide whether you're
39642         you're running an obsolete version and should exit.
39643       - Check directory signature _before_ you parse the running-routers
39644         list to decide who's running or verified.
39645     - Bugfixes and features:
39646       - Check return value of fclose while writing to disk, so we don't
39647         end up with broken files when servers run out of disk space.
39648       - Log a warning if the user uses an unsafe socks variant, so people
39649         are more likely to learn about privoxy or socat.
39650       - Dirservers now include RFC1123-style dates in the HTTP headers,
39651         which one day we will use to better detect clock skew.
39653   o Changes from 0.0.8pre1:
39654     - Make it compile without warnings again on win32.
39655     - Log a warning if you're running an unverified server, to let you
39656       know you might want to get it verified.
39657     - Only pick a default nickname if you plan to be a server.
39660 Changes in version 0.0.8pre1 - 2004-07-23
39661   o Bugfixes:
39662     - Made our unit tests compile again on OpenBSD 3.5, and tor
39663       itself compile again on OpenBSD on a sparc64.
39664     - We were neglecting milliseconds when logging on win32, so
39665       everything appeared to happen at the beginning of each second.
39667   o Protocol changes:
39668     - 'Extend' relay cell payloads now include the digest of the
39669       intended next hop's identity key. Now we can verify that we're
39670       extending to the right router, and also extend to routers we
39671       hadn't heard of before.
39673   o Features:
39674     - Tor nodes can now act as relays (with an advertised ORPort)
39675       without being manually verified by the dirserver operators.
39676       - Uploaded descriptors of unverified routers are now accepted
39677         by the dirservers, and included in the directory.
39678       - Verified routers are listed by nickname in the running-routers
39679         list; unverified routers are listed as "$<fingerprint>".
39680       - We now use hash-of-identity-key in most places rather than
39681         nickname or addr:port, for improved security/flexibility.
39682       - To avoid Sybil attacks, paths still use only verified servers.
39683         But now we have a chance to play around with hybrid approaches.
39684       - Nodes track bandwidth usage to estimate capacity (not used yet).
39685       - ClientOnly option for nodes that never want to become servers.
39686     - Directory caching.
39687       - "AuthoritativeDir 1" option for the official dirservers.
39688       - Now other nodes (clients and servers) will cache the latest
39689         directory they've pulled down.
39690       - They can enable their DirPort to serve it to others.
39691       - Clients will pull down a directory from any node with an open
39692         DirPort, and check the signature/timestamp correctly.
39693       - Authoritative dirservers now fetch directories from other
39694         authdirservers, to stay better synced.
39695       - Running-routers list tells who's down also, along with noting
39696         if they're verified (listed by nickname) or unverified (listed
39697         by hash-of-key).
39698       - Allow dirservers to serve running-router list separately.
39699         This isn't used yet.
39700     - ORs connect-on-demand to other ORs
39701       - If you get an extend cell to an OR you're not connected to,
39702         connect, handshake, and forward the create cell.
39703       - The authoritative dirservers stay connected to everybody,
39704         and everybody stays connected to 0.0.7 servers, but otherwise
39705         clients/servers expire unused connections after 5 minutes.
39706     - When servers get a sigint, they delay 30 seconds (refusing new
39707       connections) then exit. A second sigint causes immediate exit.
39708     - File and name management:
39709       - Look for .torrc if no CONFDIR "torrc" is found.
39710       - If no datadir is defined, then choose, make, and secure ~/.tor
39711         as datadir.
39712       - If torrc not found, exitpolicy reject *:*.
39713       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
39714       - If no nickname is defined, derive default from hostname.
39715       - Rename secret key files, e.g. identity.key -> secret_id_key,
39716         to discourage people from mailing their identity key to tor-ops.
39717     - Refuse to build a circuit before the directory has arrived --
39718       it won't work anyway, since you won't know the right onion keys
39719       to use.
39720     - Try other dirservers immediately if the one you try is down. This
39721       should tolerate down dirservers better now.
39722     - Parse tor version numbers so we can do an is-newer-than check
39723       rather than an is-in-the-list check.
39724     - New socks command 'resolve', to let us shim gethostbyname()
39725       locally.
39726       - A 'tor_resolve' script to access the socks resolve functionality.
39727       - A new socks-extensions.txt doc file to describe our
39728         interpretation and extensions to the socks protocols.
39729     - Add a ContactInfo option, which gets published in descriptor.
39730     - Publish OR uptime in descriptor (and thus in directory) too.
39731     - Write tor version at the top of each log file
39732     - New docs in the tarball:
39733       - tor-doc.html.
39734       - Document that you should proxy your SSL traffic too.
39737 Changes in version 0.0.7.2 - 2004-07-07
39738   o A better fix for the 0.0.0.0 problem, that will hopefully
39739     eliminate the remaining related assertion failures.
39742 Changes in version 0.0.7.1 - 2004-07-04
39743   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
39744     since internally we use 0.0.0.0 to signify "not yet resolved".
39747 Changes in version 0.0.7 - 2004-06-07
39748   o Updated the man page to reflect the new features.
39751 Changes in version 0.0.7rc2 - 2004-06-06
39752   o Changes from 0.0.7rc1:
39753     - Make it build on Win32 again.
39754   o Changes from 0.0.6.2:
39755     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
39756       settings too.
39759 Changes in version 0.0.7rc1 - 2004-06-02
39760   o Bugfixes:
39761     - On sighup, we were adding another log without removing the first
39762       one. So log messages would get duplicated n times for n sighups.
39763     - Several cases of using a connection after we'd freed it. The
39764       problem was that connections that are pending resolve are in both
39765       the pending_resolve tree, and also the circuit's resolving_streams
39766       list. When you want to remove one, you must remove it from both.
39767     - Fix a double-mark-for-close where an end cell arrived for a
39768       resolving stream, and then the resolve failed.
39769     - Check directory signatures based on name of signer, not on whom
39770       we got the directory from. This will let us cache directories more
39771       easily.
39772   o Features:
39773     - Crank up some of our constants to handle more users.
39776 Changes in version 0.0.7pre1 - 2004-06-02
39777   o Fixes for crashes and other obnoxious bugs:
39778     - Fix an epipe bug: sometimes when directory connections failed
39779       to connect, we would give them a chance to flush before closing
39780       them.
39781     - When we detached from a circuit because of resolvefailed, we
39782       would immediately try the same circuit twice more, and then
39783       give up on the resolve thinking we'd tried three different
39784       exit nodes.
39785     - Limit the number of intro circuits we'll attempt to build for a
39786       hidden service per 15-minute period.
39787     - Check recommended-software string *early*, before actually parsing
39788       the directory. Thus we can detect an obsolete version and exit,
39789       even if the new directory format doesn't parse.
39790   o Fixes for security bugs:
39791     - Remember which nodes are dirservers when you startup, and if a
39792       random OR enables his dirport, don't automatically assume he's
39793       a trusted dirserver.
39794   o Other bugfixes:
39795     - Directory connections were asking the wrong poll socket to
39796       start writing, and not asking themselves to start writing.
39797     - When we detached from a circuit because we sent a begin but
39798       didn't get a connected, we would use it again the first time;
39799       but after that we would correctly switch to a different one.
39800     - Stop warning when the first onion decrypt attempt fails; they
39801       will sometimes legitimately fail now that we rotate keys.
39802     - Override unaligned-access-ok check when $host_cpu is ia64 or
39803       arm. Apparently they allow it but the kernel whines.
39804     - Dirservers try to reconnect periodically too, in case connections
39805       have failed.
39806     - Fix some memory leaks in directory servers.
39807     - Allow backslash in Win32 filenames.
39808     - Made Tor build complain-free on FreeBSD, hopefully without
39809       breaking other BSD builds. We'll see.
39810   o Features:
39811     - Doxygen markup on all functions and global variables.
39812     - Make directory functions update routerlist, not replace it. So
39813       now directory disagreements are not so critical a problem.
39814     - Remove the upper limit on number of descriptors in a dirserver's
39815       directory (not that we were anywhere close).
39816     - Allow multiple logfiles at different severity ranges.
39817     - Allow *BindAddress to specify ":port" rather than setting *Port
39818       separately. Allow multiple instances of each BindAddress config
39819       option, so you can bind to multiple interfaces if you want.
39820     - Allow multiple exit policy lines, which are processed in order.
39821       Now we don't need that huge line with all the commas in it.
39822     - Enable accept/reject policies on SOCKS connections, so you can bind
39823       to 0.0.0.0 but still control who can use your OP.
39826 Changes in version 0.0.6.2 - 2004-05-16
39827   o Our integrity-checking digest was checking only the most recent cell,
39828     not the previous cells like we'd thought.
39829     Thanks to Stefan Mark for finding the flaw!
39832 Changes in version 0.0.6.1 - 2004-05-06
39833   o Fix two bugs in our AES counter-mode implementation (this affected
39834     onion-level stream encryption, but not TLS-level). It turns
39835     out we were doing something much more akin to a 16-character
39836     polyalphabetic cipher. Oops.
39837     Thanks to Stefan Mark for finding the flaw!
39838   o Retire moria3 as a directory server, and add tor26 as a directory
39839     server.
39842 Changes in version 0.0.6 - 2004-05-02
39843   [version bump only]
39846 Changes in version 0.0.6rc4 - 2004-05-01
39847   o Update the built-in dirservers list to use the new directory format
39848   o Fix a rare seg fault: if a node offering a hidden service attempts
39849     to build a circuit to Alice's rendezvous point and fails before it
39850     reaches the last hop, it retries with a different circuit, but
39851     then dies.
39852   o Handle windows socket errors correctly.
39855 Changes in version 0.0.6rc3 - 2004-04-28
39856   o Don't expire non-general excess circuits (if we had enough
39857     circuits open, we were expiring rendezvous circuits -- even
39858     when they had a stream attached. oops.)
39859   o Fetch randomness from /dev/urandom better (not via fopen/fread)
39860   o Better debugging for tls errors
39861   o Some versions of openssl have an SSL_pending function that erroneously
39862     returns bytes when there is a non-application record pending.
39863   o Set Content-Type on the directory and hidserv descriptor.
39864   o Remove IVs from cipher code, since AES-ctr has none.
39865   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
39866     o We were using an array of length zero in a few places.
39867     o win32's gethostbyname can't resolve an IP to an IP.
39868     o win32's close can't close a socket.
39871 Changes in version 0.0.6rc2 - 2004-04-26
39872   o Fix a bug where we were closing tls connections intermittently.
39873     It turns out openssl keeps its errors around -- so if an error
39874     happens, and you don't ask about it, and then another openssl
39875     operation happens and succeeds, and you ask if there was an error,
39876     it tells you about the first error. Fun fun.
39877   o Fix a bug that's been lurking since 27 may 03 (!)
39878     When passing back a destroy cell, we would use the wrong circ id.
39879     'Mostly harmless', but still worth fixing.
39880   o Since we don't support truncateds much, don't bother sending them;
39881     just close the circ.
39882   o check for <machine/limits.h> so we build on NetBSD again (I hope).
39883   o don't crash if a conn that sent a begin has suddenly lost its circuit
39884     (this was quite rare).
39887 Changes in version 0.0.6rc1 - 2004-04-25
39888   o We now rotate link (tls context) keys and onion keys.
39889   o CREATE cells now include oaep padding, so you can tell
39890     if you decrypted them correctly.
39891   o Add bandwidthburst to server descriptor.
39892   o Directories now say which dirserver signed them.
39893   o Use a tor_assert macro that logs failed assertions too.
39896 Changes in version 0.0.6pre5 - 2004-04-18
39897   o changes from 0.0.6pre4:
39898     - make tor build on broken freebsd 5.2 installs
39899     - fix a failed assert when you try an intro point, get a nack, and try
39900       a second one and it works.
39901     - when alice uses a port that the hidden service doesn't accept,
39902       it now sends back an end cell (denied by exit policy). otherwise
39903       alice would just have to wait to time out.
39904     - fix another rare bug: when we had tried all the intro
39905       points for a hidden service, we fetched the descriptor
39906       again, but we left our introcirc thinking it had already
39907       sent an intro, so it kept waiting for a response...
39908     - bugfix: when you sleep your hidden-service laptop, as soon
39909       as it wakes up it tries to upload a service descriptor, but
39910       socketpair fails for some reason (localhost not up yet?).
39911       now we simply give up on that upload, and we'll try again later.
39912       i'd still like to find the bug though.
39913     - if an intro circ waiting for an ack dies before getting one, then
39914       count it as a nack
39915     - we were reusing stale service descriptors and refetching usable
39916       ones. oops.
39919 Changes in version 0.0.6pre4 - 2004-04-14
39920   o changes from 0.0.6pre3:
39921     - when bob fails to connect to the rendezvous point, and his
39922       circ didn't fail because of the rendezvous point itself, then
39923       he retries a couple of times
39924     - we expire introduction and rendezvous circs more thoroughly
39925       (sometimes they were hanging around forever)
39926     - we expire unattached rendezvous streams that have been around
39927       too long (they were sticking around forever).
39928     - fix a measly fencepost error that was crashing everybody with
39929       a strict glibc.
39932 Changes in version 0.0.6pre3 - 2004-04-14
39933   o changes from 0.0.6pre2:
39934     - make hup work again
39935     - fix some memory leaks for dirservers
39936     - allow more skew in rendezvous descriptor timestamps, to help
39937       handle people like blanu who don't know what time it is
39938     - normal circs are 3 hops, but some rend/intro circs are 4, if
39939       the initiator doesn't get to choose the last hop
39940     - send acks for introductions, so alice can know whether to try
39941       again
39942     - bob publishes intro points more correctly
39943   o changes from 0.0.5:
39944     - fix an assert trigger that's been plaguing us since the days
39945       of 0.0.2prexx (thanks weasel!)
39946     - retry stream correctly when we fail to connect because of
39947       exit-policy-reject (should try another) or can't-resolve-address
39948       (also should try another, because dns on random internet servers
39949       is flaky).
39950     - when we hup a dirserver and we've *removed* a server from the
39951       approved-routers list, now we remove that server from the
39952       in-memory directories too
39955 Changes in version 0.0.6pre2 - 2004-04-08
39956   o We fixed our base32 implementation. Now it works on all architectures.
39959 Changes in version 0.0.6pre1 - 2004-04-08
39960   o Features:
39961     - Hidden services and rendezvous points are implemented. Go to
39962       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
39963       hidden services. (This only works via a socks4a proxy such as
39964       Privoxy, and currently it's quite slow.)
39967 Changes in version 0.0.5 - 2004-03-30
39968   [version bump only]
39971 Changes in version 0.0.5rc3 - 2004-03-29
39972   o Install torrc as torrc.sample -- we no longer clobber your
39973     torrc. (Woo!)
39974   o Re-enable recommendedversion checking (we broke it in rc2, oops)
39975   o Add in a 'notice' log level for things the operator should hear
39976     but that aren't warnings
39979 Changes in version 0.0.5rc2 - 2004-03-29
39980   o Hold socks connection open until reply is flushed (if possible)
39981   o Make exit nodes resolve IPs to IPs immediately, rather than asking
39982     the dns farm to do it.
39983   o Fix c99 aliasing warnings in rephist.c
39984   o Don't include server descriptors that are older than 24 hours in the
39985     directory.
39986   o Give socks 'reject' replies their whole 15s to attempt to flush,
39987     rather than seeing the 60s timeout and assuming the flush had failed.
39988   o Clean automake droppings from the cvs repository
39991 Changes in version 0.0.5rc1 - 2004-03-28
39992   o Fix mangled-state bug in directory fetching (was causing sigpipes).
39993   o Only build circuits after we've fetched the directory: clients were
39994     using only the directory servers before they'd fetched a directory.
39995     This also means longer startup time; so it goes.
39996   o Fix an assert trigger where an OP would fail to handshake, and we'd
39997     expect it to have a nickname.
39998   o Work around a tsocks bug: do a socks reject when AP connection dies
39999     early, else tsocks goes into an infinite loop.
40002 Changes in version 0.0.4 - 2004-03-26
40003   o When connecting to a dirserver or OR and the network is down,
40004     we would crash.
40007 Changes in version 0.0.3 - 2004-03-26
40008   o Warn and fail if server chose a nickname with illegal characters
40009   o Port to Solaris and Sparc:
40010     - include missing header fcntl.h
40011     - have autoconf find -lsocket -lnsl automatically
40012     - deal with hardware word alignment
40013     - make uname() work (solaris has a different return convention)
40014     - switch from using signal() to sigaction()
40015   o Preliminary work on reputation system:
40016     - Keep statistics on success/fail of connect attempts; they're published
40017       by kill -USR1 currently.
40018     - Add a RunTesting option to try to learn link state by creating test
40019       circuits, even when SocksPort is off.
40020     - Remove unused open circuits when there are too many.
40023 Changes in version 0.0.2 - 2004-03-19
40024     - Include strlcpy and strlcat for safer string ops
40025     - define INADDR_NONE so we compile (but still not run) on solaris
40028 Changes in version 0.0.2pre27 - 2004-03-14
40029   o Bugfixes:
40030     - Allow internal tor networks (we were rejecting internal IPs,
40031       now we allow them if they're set explicitly).
40032     - And fix a few endian issues.
40035 Changes in version 0.0.2pre26 - 2004-03-14
40036   o New features:
40037     - If a stream times out after 15s without a connected cell, don't
40038       try that circuit again: try a new one.
40039     - Retry streams at most 4 times. Then give up.
40040     - When a dirserver gets a descriptor from an unknown router, it
40041       logs its fingerprint (so the dirserver operator can choose to
40042       accept it even without mail from the server operator).
40043     - Inform unapproved servers when we reject their descriptors.
40044     - Make tor build on Windows again. It works as a client, who knows
40045       about as a server.
40046     - Clearer instructions in the torrc for how to set up a server.
40047     - Be more efficient about reading fd's when our global token bucket
40048       (used for rate limiting) becomes empty.
40049   o Bugfixes:
40050     - Stop asserting that computers always go forward in time. It's
40051       simply not true.
40052     - When we sent a cell (e.g. destroy) and then marked an OR connection
40053       expired, we might close it before finishing a flush if the other
40054       side isn't reading right then.
40055     - Don't allow dirservers to start if they haven't defined
40056       RecommendedVersions
40057     - We were caching transient dns failures. Oops.
40058     - Prevent servers from publishing an internal IP as their address.
40059     - Address a strcat vulnerability in circuit.c
40062 Changes in version 0.0.2pre25 - 2004-03-04
40063   o New features:
40064     - Put the OR's IP in its router descriptor, not its fqdn. That way
40065       we'll stop being stalled by gethostbyname for nodes with flaky dns,
40066       e.g. poblano.
40067   o Bugfixes:
40068     - If the user typed in an address that didn't resolve, the server
40069       crashed.
40072 Changes in version 0.0.2pre24 - 2004-03-03
40073   o Bugfixes:
40074     - Fix an assertion failure in dns.c, where we were trying to dequeue
40075       a pending dns resolve even if it wasn't pending
40076     - Fix a spurious socks5 warning about still trying to write after the
40077       connection is finished.
40078     - Hold certain marked_for_close connections open until they're finished
40079       flushing, rather than losing bytes by closing them too early.
40080     - Correctly report the reason for ending a stream
40081     - Remove some duplicate calls to connection_mark_for_close
40082     - Put switch_id and start_daemon earlier in the boot sequence, so it
40083       will actually try to chdir() to options.DataDirectory
40084     - Make 'make test' exit(1) if a test fails; fix some unit tests
40085     - Make tor fail when you use a config option it doesn't know about,
40086       rather than warn and continue.
40087     - Make --version work
40088     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
40091 Changes in version 0.0.2pre23 - 2004-02-29
40092   o New features:
40093     - Print a statement when the first circ is finished, so the user
40094       knows it's working.
40095     - If a relay cell is unrecognized at the end of the circuit,
40096       send back a destroy. (So attacks to mutate cells are more
40097       clearly thwarted.)
40098     - New config option 'excludenodes' to avoid certain nodes for circuits.
40099     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
40100       so you can collect coredumps there.
40101  o Bugfixes:
40102     - Fix a bug in tls flushing where sometimes data got wedged and
40103       didn't flush until more data got sent. Hopefully this bug was
40104       a big factor in the random delays we were seeing.
40105     - Make 'connected' cells include the resolved IP, so the client
40106       dns cache actually gets populated.
40107     - Disallow changing from ORPort=0 to ORPort>0 on hup.
40108     - When we time-out on a stream and detach from the circuit, send an
40109       end cell down it first.
40110     - Only warn about an unknown router (in exitnodes, entrynodes,
40111       excludenodes) after we've fetched a directory.
40114 Changes in version 0.0.2pre22 - 2004-02-26
40115   o New features:
40116     - Servers publish less revealing uname information in descriptors.
40117     - More memory tracking and assertions, to crash more usefully when
40118       errors happen.
40119     - If the default torrc isn't there, just use some default defaults.
40120       Plus provide an internal dirservers file if they don't have one.
40121     - When the user tries to use Tor as an http proxy, give them an http
40122       501 failure explaining that we're a socks proxy.
40123     - Dump a new router.desc on hup, to help confused people who change
40124       their exit policies and then wonder why router.desc doesn't reflect
40125       it.
40126     - Clean up the generic tor.sh init script that we ship with.
40127   o Bugfixes:
40128     - If the exit stream is pending on the resolve, and a destroy arrives,
40129       then the stream wasn't getting removed from the pending list. I
40130       think this was the one causing recent server crashes.
40131     - Use a more robust poll on OSX 10.3, since their poll is flaky.
40132     - When it couldn't resolve any dirservers, it was useless from then on.
40133       Now it reloads the RouterFile (or default dirservers) if it has no
40134       dirservers.
40135     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
40136       many users don't even *have* a /usr/local/sbin/.
40139 Changes in version 0.0.2pre21 - 2004-02-18
40140   o New features:
40141     - There's a ChangeLog file that actually reflects the changelog.
40142     - There's a 'torify' wrapper script, with an accompanying
40143       tor-tsocks.conf, that simplifies the process of using tsocks for
40144       tor. It even has a man page.
40145     - The tor binary gets installed to sbin rather than bin now.
40146     - Retry streams where the connected cell hasn't arrived in 15 seconds
40147     - Clean up exit policy handling -- get the default out of the torrc,
40148       so we can update it without forcing each server operator to fix
40149       his/her torrc.
40150     - Allow imaps and pop3s in default exit policy
40151   o Bugfixes:
40152     - Prevent picking middleman nodes as the last node in the circuit
40155 Changes in version 0.0.2pre20 - 2004-01-30
40156   o New features:
40157     - We now have a deb package, and it's in debian unstable. Go to
40158       it, apt-getters. :)
40159     - I've split the TotalBandwidth option into BandwidthRate (how many
40160       bytes per second you want to allow, long-term) and
40161       BandwidthBurst (how many bytes you will allow at once before the cap
40162       kicks in). This better token bucket approach lets you, say, set
40163       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
40164       performance while not exceeding your monthly bandwidth quota.
40165     - Push out a tls record's worth of data once you've got it, rather
40166       than waiting until you've read everything waiting to be read. This
40167       may improve performance by pipelining better. We'll see.
40168     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
40169       from failed circuits (if they haven't been connected yet) and attach
40170       to new ones.
40171     - Expire old streams that haven't managed to connect. Some day we'll
40172       have them reattach to new circuits instead.
40174   o Bugfixes:
40175     - Fix several memory leaks that were causing servers to become bloated
40176       after a while.
40177     - Fix a few very rare assert triggers. A few more remain.
40178     - Setuid to User _before_ complaining about running as root.
40181 Changes in version 0.0.2pre19 - 2004-01-07
40182   o Bugfixes:
40183     - Fix deadlock condition in dns farm. We were telling a child to die by
40184       closing the parent's file descriptor to him. But newer children were
40185       inheriting the open file descriptor from the parent, and since they
40186       weren't closing it, the socket never closed, so the child never read
40187       eof, so he never knew to exit. Similarly, dns workers were holding
40188       open other sockets, leading to all sorts of chaos.
40189     - New cleaner daemon() code for forking and backgrounding.
40190     - If you log to a file, it now prints an entry at the top of the
40191       logfile so you know it's working.
40192     - The onionskin challenge length was 30 bytes longer than necessary.
40193     - Started to patch up the spec so it's not quite so out of date.
40196 Changes in version 0.0.2pre18 - 2004-01-02
40197   o Bugfixes:
40198     - Fix endian issues with the 'integrity' field in the relay header.
40199     - Fix a potential bug where connections in state
40200       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
40203 Changes in version 0.0.2pre17 - 2003-12-30
40204   o Bugfixes:
40205     - Made --debuglogfile (or any second log file, actually) work.
40206     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
40207       adversary could force us into an infinite loop.
40209   o Features:
40210     - Each onionskin handshake now includes a hash of the computed key,
40211       to prove the server's identity and help perfect forward secrecy.
40212     - Changed cell size from 256 to 512 bytes (working toward compatibility
40213       with MorphMix).
40214     - Changed cell length to 2 bytes, and moved it to the relay header.
40215     - Implemented end-to-end integrity checking for the payloads of
40216       relay cells.
40217     - Separated streamid from 'recognized' (otherwise circuits will get
40218       messed up when we try to have streams exit from the middle). We
40219       use the integrity-checking to confirm that a cell is addressed to
40220       this hop.
40221     - Randomize the initial circid and streamid values, so an adversary who
40222       breaks into a node can't learn how many circuits or streams have
40223       been made so far.
40226 Changes in version 0.0.2pre16 - 2003-12-14
40227   o Bugfixes:
40228     - Fixed a bug that made HUP trigger an assert
40229     - Fixed a bug where a circuit that immediately failed wasn't being
40230       counted as a failed circuit in counting retries.
40232   o Features:
40233     - Now we close the circuit when we get a truncated cell: otherwise we're
40234       open to an anonymity attack where a bad node in the path truncates
40235       the circuit and then we open streams at him.
40236     - Add port ranges to exit policies
40237     - Add a conservative default exit policy
40238     - Warn if you're running tor as root
40239     - on HUP, retry OR connections and close/rebind listeners
40240     - options.EntryNodes: try these nodes first when picking the first node
40241     - options.ExitNodes: if your best choices happen to include any of
40242       your preferred exit nodes, you choose among just those preferred
40243       exit nodes.
40244     - options.ExcludedNodes: nodes that are never picked in path building
40247 Changes in version 0.0.2pre15 - 2003-12-03
40248   o Robustness and bugfixes:
40249     - Sometimes clients would cache incorrect DNS resolves, which would
40250       really screw things up.
40251     - An OP that goes offline would slowly leak all its sockets and stop
40252       working.
40253     - A wide variety of bugfixes in exit node selection, exit policy
40254       handling, and processing pending streams when a new circuit is
40255       established.
40256     - Pick nodes for a path only from those the directory says are up
40257     - Choose randomly from all running dirservers, not always the first one
40258     - Increase allowed http header size for directory fetch.
40259     - Stop writing to stderr (if we're daemonized it will be closed).
40260     - Enable -g always, so cores will be more useful to me.
40261     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
40263   o Documentation:
40264     - Wrote a man page. It lists commonly used options.
40266   o Configuration:
40267     - Change default loglevel to warn.
40268     - Make PidFile default to null rather than littering in your CWD.
40269     - OnionRouter config option is now obsolete. Instead it just checks
40270       ORPort>0.
40271     - Moved to a single unified torrc file for both clients and servers.
40274 Changes in version 0.0.2pre14 - 2003-11-29
40275   o Robustness and bugfixes:
40276     - Force the admin to make the DataDirectory himself
40277       - to get ownership/permissions right
40278       - so clients no longer make a DataDirectory and then never use it
40279     - fix bug where a client who was offline for 45 minutes would never
40280       pull down a directory again
40281     - fix (or at least hide really well) the dns assert bug that was
40282       causing server crashes
40283     - warnings and improved robustness wrt clockskew for certs
40284     - use the native daemon(3) to daemonize, when available
40285     - exit if bind() fails
40286     - exit if neither socksport nor orport is defined
40287     - include our own tor_timegm (Win32 doesn't have its own)
40288     - bugfix for win32 with lots of connections
40289     - fix minor bias in PRNG
40290     - make dirserver more robust to corrupt cached directory
40292   o Documentation:
40293     - Wrote the design document (woo)
40295   o Circuit building and exit policies:
40296     - Circuits no longer try to use nodes that the directory has told them
40297       are down.
40298     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
40299       bitcounts (18.0.0.0/8).
40300     - Make AP connections standby for a circuit if no suitable circuit
40301       exists, rather than failing
40302     - Circuits choose exit node based on addr/port, exit policies, and
40303       which AP connections are standing by
40304     - Bump min pathlen from 2 to 3
40305     - Relay end cells have a payload to describe why the stream ended.
40306     - If the stream failed because of exit policy, try again with a new
40307       circuit.
40308     - Clients have a dns cache to remember resolved addresses.
40309     - Notice more quickly when we have no working circuits
40311   o Configuration:
40312     - APPort is now called SocksPort
40313     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
40314       where to bind
40315     - RecommendedVersions is now a config variable rather than
40316       hardcoded (for dirservers)
40317     - Reloads config on HUP
40318     - Usage info on -h or --help
40319     - If you set User and Group config vars, it'll setu/gid to them.
40322 Changes in version 0.0.2pre13 - 2003-10-19
40323   o General stability:
40324     - SSL_write no longer fails when it returns WANTWRITE and the number
40325       of bytes in the buf has changed by the next SSL_write call.
40326     - Fix segfault fetching directory when network is down
40327     - Fix a variety of minor memory leaks
40328     - Dirservers reload the fingerprints file on HUP, so I don't have
40329       to take down the network when I approve a new router
40330     - Default server config file has explicit Address line to specify fqdn
40332   o Buffers:
40333     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
40334     - Make listener connections not ever alloc bufs
40336   o Autoconf improvements:
40337     - don't clobber an external CFLAGS in ./configure
40338     - Make install now works
40339     - create var/lib/tor on make install
40340     - autocreate a tor.sh initscript to help distribs
40341     - autocreate the torrc and sample-server-torrc with correct paths
40343   o Log files and Daemonizing now work:
40344     - If --DebugLogFile is specified, log to it at -l debug
40345     - If --LogFile is specified, use it instead of commandline
40346     - If --RunAsDaemon is set, tor forks and backgrounds on startup