Make multiplicity of dir-address match code. Fix bug 849
[tor/rransom.git] / ChangeLog
blobed1bb0de22122351f28a53570656c22fa7b5b13a
1 Changes in version 0.2.1.7-alpha - 2008-11-xx
2   o Security fixes:
3     - The "ClientDNSRejectInternalAddresses" config option wasn't being
4       consistently obeyed: if an exit relay refuses a stream because its
5       exit policy doesn't allow it, we would remember what IP address
6       the relay said the destination address resolves to, even if it's
7       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
9   o Minor features:
10     - Now NodeFamily and MyFamily config options allow spaces in
11       identity fingerprints, so it's easier to paste them in.
12       Suggested by Lucky Green.
13     - Preserve case in replies to DNSPort requests in order to support
14       the 0x20 hack for resisting DNS poisoning attacks.
15     - Implement the 0x20 hack to better resist DNS poisoning: set the
16       case on outgoing DNS requests randomly, and reject responses
17       that do not match the case correctly.  This logic can be
18       disabled with the ServerDNSRamdomizeCase setting, if you are
19       using one of the 0.3% of servers that do not reliably preserve
20       case in replies.  See "Increased DNS Forgery Resistance through
21       0x20-Bit Encoding" for more info.
23   o Hidden service performance improvements:
24     - When the client launches an introduction circuit, retry with a
25       new circuit after 30 seconds rather than 60 seconds.
26     - Launch a second client-side introduction circuit in parallel
27       after a delay of 15 seconds (based on work by Christian Wilms).
28     - Hidden services start out building five intro circuits rather
29       than three, and when the first three finish they publish a service
30       descriptor using those. Now we publish our service descriptor much
31       faster after restart.
33   o Minor bugfixes:
34     - Minor fix in the warning messages when you're having problems
35       bootstrapping; also, be more forgiving of bootstrap problems when
36       we're still making incremental progress on a given bootstrap phase.
37     - When we're choosing an exit node for a circuit, and we have
38       no pending streams, choose a good general exit rather than one that
39       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
40     - Send a valid END cell back when a client tries to connect to a
41       nonexistent hidden service port.  Bugfix on 0.1.2.15.  Fixes bug
42       840.  Patch from rovv.
43     - If a broken client asks a non-exit router to connect somewhere,
44       do not even do the DNS lookup before rejecting the connection.
45       Fixes another case of bug 619.  Patch from rovv.
46     - Fix another case of assuming, when a specific exit is requested,
47       that we know more than the user about what hosts it allows.
48       Fixes another case of bug 752.  Patch from rovv.
49     - Check which hops rendezvous stream cells are associated with to
50       prevent possible guess-the-streamid injection attacks from
51       intermediate hops.  Fixes another case of bug 446. Based on patch
52       from rovv.
53     - Avoid using a negative right-shift when comparing 32-bit
54       addresses.  Possible fix for bug 845 and bug 811.
55     - Make the assert_circuit_ok() function work correctly on circuits that
56       have already been marked for close.
57     - Fix read-off-the-end-of-string error in unit tests when decoding
58       introduction points.
61 Changes in version 0.2.1.6-alpha - 2008-09-30
62   Tor 0.2.1.6-alpha further improves performance and robustness of
63   hidden services, starts work on supporting per-country relay selection,
64   and fixes a variety of smaller issues.
66   o Major features:
67     - Implement proposal 121: make it possible to build hidden services
68       that only certain clients are allowed to connect to. This is
69       enforced at several points, so that unauthorized clients are unable
70       to send INTRODUCE cells to the service, or even (depending on the
71       type of authentication) to learn introduction points. This feature
72       raises the bar for certain kinds of active attacks against hidden
73       services. Code by Karsten Loesing.
74     - Relays now store and serve v2 hidden service descriptors by default,
75       i.e., the new default value for HidServDirectoryV2 is 1. This is
76       the last step in proposal 114, which aims to make hidden service
77       lookups more reliable.
78     - Start work to allow node restrictions to include country codes. The
79       syntax to exclude nodes in a country with country code XX is
80       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
81       refinement to decide what config options should take priority if
82       you ask to both use a particular node and exclude it.
83     - Allow ExitNodes list to include IP ranges and country codes, just
84       like the Exclude*Nodes lists. Patch from Robert Hogan.
86   o Major bugfixes:
87     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
88       Tor to fail to start if you had it configured to use a bridge
89       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
90     - When extending a circuit to a hidden service directory to upload a
91       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
92       requests failed, because the router descriptor had not been
93       downloaded yet. In these cases, we now wait until the router
94       descriptor is downloaded, and then retry. Likewise, clients
95       now skip over a hidden service directory if they don't yet have
96       its router descriptor, rather than futilely requesting it and
97       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
98       on 0.2.0.10-alpha.
99     - When fetching v0 and v2 rendezvous service descriptors in parallel,
100       we were failing the whole hidden service request when the v0
101       descriptor fetch fails, even if the v2 fetch is still pending and
102       might succeed. Similarly, if the last v2 fetch fails, we were
103       failing the whole hidden service request even if a v0 fetch is
104       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
105     - DNS replies need to have names matching their requests, but
106       these names should be in the questions section, not necessarily
107       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
109   o Minor features:
110     - Update to the "September 1 2008" ip-to-country file.
111     - Allow ports 465 and 587 in the default exit policy again. We had
112       rejected them in 0.1.0.15, because back in 2005 they were commonly
113       misconfigured and ended up as spam targets. We hear they are better
114       locked down these days.
115     - Use a lockfile to make sure that two Tor processes are not
116       simultaneously running with the same datadir.
117     - Serve the latest v3 networkstatus consensus via the control
118       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
119     - Better logging about stability/reliability calculations on directory
120       servers.
121     - Drop the requirement to have an open dir port for storing and
122       serving v2 hidden service descriptors.
123     - Directory authorities now serve a /tor/dbg-stability.txt URL to
124       help debug WFU and MTBF calculations.
125     - Implement most of Proposal 152: allow specialized servers to permit
126       single-hop circuits, and clients to use those servers to build
127       single-hop circuits when using a specialized controller. Patch
128       from Josh Albrecht. Resolves feature request 768.
129     - Add a -p option to tor-resolve for specifying the SOCKS port: some
130       people find host:port too confusing.
131     - Make TrackHostExit mappings expire a while after their last use, not
132       after their creation.  Patch from Robert Hogan.
133     - Provide circuit purposes along with circuit events to the controller.
135   o Minor bugfixes:
136     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
137       Reported by Tas.
138     - Fixed some memory leaks -- some quite frequent, some almost
139       impossible to trigger -- based on results from Coverity.
140     - When testing for libevent functions, set the LDFLAGS variable
141       correctly. Found by Riastradh.
142     - Fix an assertion bug in parsing policy-related options; possible fix
143       for bug 811.
144     - Catch and report a few more bootstrapping failure cases when Tor
145       fails to establish a TCP connection. Cleanup on 0.2.1.x.
146     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
147       bootstrapping with tunneled directory connections. Bugfix on
148       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
149     - When asked to connect to A.B.exit:80, if we don't know the IP for A
150       and we know that server B rejects most-but-not all connections to
151       port 80, we would previously reject the connection. Now, we assume
152       the user knows what they were asking for. Fixes bug 752. Bugfix
153       on 0.0.9rc5. Diagnosed by BarkerJr.
154     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
155       service directories if they have no advertised dir port. Bugfix
156       on 0.2.0.10-alpha.
157     - If we overrun our per-second write limits a little, count this as
158       having used up our write allocation for the second, and choke
159       outgoing directory writes. Previously, we had only counted this when
160       we had met our limits precisely. Fixes bug 824. Patch by rovv.
161       Bugfix on 0.2.0.x (??).
162     - Avoid a "0 divided by 0" calculation when calculating router uptime
163       at directory authorities. Bugfix on 0.2.0.8-alpha.
164     - Make DNS resolved controller events into "CLOSED", not
165       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
166       bug 807.
167     - Fix a bug where an unreachable relay would establish enough
168       reachability testing circuits to do a bandwidth test -- if
169       we already have a connection to the middle hop of the testing
170       circuit, then it could establish the last hop by using the existing
171       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
172       circuits no longer use entry guards in 0.2.1.3-alpha.
173     - If we have correct permissions on $datadir, we complain to stdout
174       and fail to start. But dangerous permissions on
175       $datadir/cached-status/ would cause us to open a log and complain
176       there. Now complain to stdout and fail to start in both cases. Fixes
177       bug 820, reported by seeess.
178     - Remove the old v2 directory authority 'lefkada' from the default
179       list. It has been gone for many months.
181   o Code simplifications and refactoring:
182     - Revise the connection_new functions so that a more typesafe variant
183       exists. This will work better with Coverity, and let us find any
184       actual mistakes we're making here.
185     - Refactor unit testing logic so that dmalloc can be used sensibly
186       with unit tests to check for memory leaks.
187     - Move all hidden-service related fields from connection and circuit
188       structure to substructures: this way they won't eat so much memory.
191 Changes in version 0.2.0.31 - 2008-09-03
192   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
193   a big bug we're seeing where in rare cases traffic from one Tor stream
194   gets mixed into another stream, and fixes a variety of smaller issues.
196   o Major bugfixes:
197     - Make sure that two circuits can never exist on the same connection
198       with the same circuit ID, even if one is marked for close. This
199       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
200     - Relays now reject risky extend cells: if the extend cell includes
201       a digest of all zeroes, or asks to extend back to the relay that
202       sent the extend cell, tear down the circuit. Ideas suggested
203       by rovv.
204     - If not enough of our entry guards are available so we add a new
205       one, we might use the new one even if it overlapped with the
206       current circuit's exit relay (or its family). Anonymity bugfix
207       pointed out by rovv.
209   o Minor bugfixes:
210     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
211       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
212     - Correctly detect the presence of the linux/netfilter_ipv4.h header
213       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
214     - Pick size of default geoip filename string correctly on windows.
215       Fixes bug 806. Bugfix on 0.2.0.30.
216     - Make the autoconf script accept the obsolete --with-ssl-dir
217       option as an alias for the actually-working --with-openssl-dir
218       option. Fix the help documentation to recommend --with-openssl-dir.
219       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
220     - Disallow session resumption attempts during the renegotiation
221       stage of the v2 handshake protocol. Clients should never be trying
222       session resumption at this point, but apparently some did, in
223       ways that caused the handshake to fail. Bug found by Geoff Goodell.
224       Bugfix on 0.2.0.20-rc.
225     - When using the TransPort option on OpenBSD, and using the User
226       option to change UID and drop privileges, make sure to open
227       /dev/pf before dropping privileges. Fixes bug 782. Patch from
228       Christopher Davis. Bugfix on 0.1.2.1-alpha.
229     - Try to attach connections immediately upon receiving a RENDEZVOUS2
230       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
231       on the client side when connecting to a hidden service. Bugfix
232       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
233     - When closing an application-side connection because its circuit is
234       getting torn down, generate the stream event correctly. Bugfix on
235       0.1.2.x. Anonymous patch.
238 Changes in version 0.2.1.5-alpha - 2008-08-31
239   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
240   in a lot of the infrastructure for adding authorization to hidden
241   services, lays the groundwork for having clients read their load
242   balancing information out of the networkstatus consensus rather than
243   the individual router descriptors, addresses two potential anonymity
244   issues, and fixes a variety of smaller issues.
246   o Major features:
247     - Convert many internal address representations to optionally hold
248       IPv6 addresses.
249     - Generate and accept IPv6 addresses in many protocol elements.
250     - Make resolver code handle nameservers located at ipv6 addresses.
251     - Begin implementation of proposal 121 ("Client authorization for
252       hidden services"): configure hidden services with client
253       authorization, publish descriptors for them, and configure
254       authorization data for hidden services at clients. The next
255       step is to actually access hidden services that perform client
256       authorization.
257     - More progress toward proposal 141: Network status consensus
258       documents and votes now contain bandwidth information for each
259       router and a summary of that router's exit policy. Eventually this
260       will be used by clients so that they do not have to download every
261       known descriptor before building circuits.
263   o Major bugfixes (on 0.2.0.x and before):
264     - When sending CREATED cells back for a given circuit, use a 64-bit
265       connection ID to find the right connection, rather than an addr:port
266       combination. Now that we can have multiple OR connections between
267       the same ORs, it is no longer possible to use addr:port to uniquely
268       identify a connection.
269     - Relays now reject risky extend cells: if the extend cell includes
270       a digest of all zeroes, or asks to extend back to the relay that
271       sent the extend cell, tear down the circuit. Ideas suggested
272       by rovv.
273     - If not enough of our entry guards are available so we add a new
274       one, we might use the new one even if it overlapped with the
275       current circuit's exit relay (or its family). Anonymity bugfix
276       pointed out by rovv.
278   o Minor bugfixes:
279     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
280       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
281     - When using the TransPort option on OpenBSD, and using the User
282       option to change UID and drop privileges, make sure to open /dev/pf
283       before dropping privileges. Fixes bug 782. Patch from Christopher
284       Davis. Bugfix on 0.1.2.1-alpha.
285     - Correctly detect the presence of the linux/netfilter_ipv4.h header
286       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
287     - Add a missing safe_str() call for a debug log message.
288     - Use 64 bits instead of 32 bits for connection identifiers used with
289       the controller protocol, to greatly reduce risk of identifier reuse.
290     - Make the autoconf script accept the obsolete --with-ssl-dir
291       option as an alias for the actually-working --with-openssl-dir
292       option. Fix the help documentation to recommend --with-openssl-dir.
293       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
295   o Minor features:
296     - Rate-limit too-many-sockets messages: when they happen, they happen
297       a lot. Resolves bug 748.
298     - Resist DNS poisoning a little better by making sure that names in
299       answer sections match.
300     - Print the SOCKS5 error message string as well as the error code
301       when a tor-resolve request fails. Patch from Jacob.
304 Changes in version 0.2.1.4-alpha - 2008-08-04
305   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
307   o Major bugfixes:
308     - The address part of exit policies was not correctly written
309       to router descriptors. This generated router descriptors that failed
310       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
311       on 0.2.1.3-alpha.
312     - Tor triggered a false assert when extending a circuit to a relay
313       but we already have a connection open to that relay. Noticed by
314       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
316   o Minor bugfixes:
317     - Fix a hidden service logging bug: in some edge cases, the router
318       descriptor of a previously picked introduction point becomes
319       obsolete and we need to give up on it rather than continually
320       complaining that it has become obsolete. Observed by xiando. Bugfix
321       on 0.2.1.3-alpha.
323   o Removed features:
324     - Take out the TestVia config option, since it was a workaround for
325       a bug that was fixed in Tor 0.1.1.21.
328 Changes in version 0.2.1.3-alpha - 2008-08-03
329   Tor 0.2.1.3-alpha implements most of the pieces to prevent
330   infinite-length circuit attacks (see proposal 110); fixes a bug that
331   might cause exit relays to corrupt streams they send back; allows
332   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
333   ExcludeExitNodes config options; and fixes a big pile of bugs.
335   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
336     - Send a bootstrap problem "warn" event on the first problem if the
337       reason is NO_ROUTE (that is, our network is down).
339   o Major features:
340     - Implement most of proposal 110: The first K cells to be sent
341       along a circuit are marked as special "early" cells; only K "early"
342       cells will be allowed. Once this code is universal, we can block
343       certain kinds of DOS attack by requiring that EXTEND commands must
344       be sent using an "early" cell.
346   o Major bugfixes:
347     - Try to attach connections immediately upon receiving a RENDEZVOUS2
348       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
349       on the client side when connecting to a hidden service. Bugfix
350       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
351     - Ensure that two circuits can never exist on the same connection
352       with the same circuit ID, even if one is marked for close. This
353       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
355   o Minor features:
356     - When relays do their initial bandwidth measurement, don't limit
357       to just our entry guards for the test circuits. Otherwise we tend
358       to have multiple test circuits going through a single entry guard,
359       which makes our bandwidth test less accurate. Fixes part of bug 654;
360       patch contributed by Josh Albrecht.
361     - Add an ExcludeExitNodes option so users can list a set of nodes
362       that should be be excluded from the exit node position, but
363       allowed elsewhere. Implements proposal 151.
364     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
365       ExcludeNodes and ExcludeExitNodes lists.
366     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
367       be more efficient. Formerly it was quadratic in the number of
368       servers; now it should be linear. Fixes bug 509.
369     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
370       and n_conn_id_digest fields into a separate structure that's
371       only needed when the circuit has not yet attached to an n_conn.
373   o Minor bugfixes:
374     - Change the contrib/tor.logrotate script so it makes the new
375       logs as "_tor:_tor" rather than the default, which is generally
376       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
377     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
378       warnings (occasionally), but it can also cause the compiler to
379       eliminate error-checking code. Suggested by Peter Gutmann.
380     - When a hidden service is giving up on an introduction point candidate
381       that was not included in the last published rendezvous descriptor,
382       don't reschedule publication of the next descriptor. Fixes bug 763.
383       Bugfix on 0.0.9.3.
384     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
385       HiddenServiceExcludeNodes as obsolete: they never worked properly,
386       and nobody claims to be using them. Fixes bug 754. Bugfix on
387       0.1.0.1-rc. Patch from Christian Wilms.
388     - Fix a small alignment and memory-wasting bug on buffer chunks.
389       Spotted by rovv.
391   o Minor bugfixes (controller):
392     - When closing an application-side connection because its circuit
393       is getting torn down, generate the stream event correctly.
394       Bugfix on 0.1.2.x. Anonymous patch.
396   o Removed features:
397     - Remove all backward-compatibility code to support relays running
398       versions of Tor so old that they no longer work at all on the
399       Tor network.
402 Changes in version 0.2.0.29-rc - 2008-07-08
403   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
404   hidden-service performance bugs, and fixes a bunch of smaller bugs.
406   o Major bugfixes:
407     - If you have more than one bridge but don't know their keys,
408       you would only launch a request for the descriptor of the first one
409       on your list. (Tor considered launching requests for the others, but
410       found that it already had a connection on the way for $0000...0000
411       so it didn't open another.) Bugfix on 0.2.0.x.
412     - If you have more than one bridge but don't know their keys, and the
413       connection to one of the bridges failed, you would cancel all
414       pending bridge connections. (After all, they all have the same
415       digest.) Bugfix on 0.2.0.x.
416     - When a hidden service was trying to establish an introduction point,
417       and Tor had built circuits preemptively for such purposes, we
418       were ignoring all the preemptive circuits and launching a new one
419       instead. Bugfix on 0.2.0.14-alpha.
420     - When a hidden service was trying to establish an introduction point,
421       and Tor *did* manage to reuse one of the preemptively built
422       circuits, it didn't correctly remember which one it used,
423       so it asked for another one soon after, until there were no
424       more preemptive circuits, at which point it launched one from
425       scratch. Bugfix on 0.0.9.x.
426     - Make directory servers include the X-Your-Address-Is: http header in
427       their responses even for begin_dir conns. Now clients who only
428       ever use begin_dir connections still have a way to learn their IP
429       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
431   o Minor bugfixes:
432     - Fix a macro/CPP interaction that was confusing some compilers:
433       some GCCs don't like #if/#endif pairs inside macro arguments.
434       Fixes bug 707.
435     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
436       Fixes bug 704; fix from Steven Murdoch.
437     - When opening /dev/null in finish_daemonize(), do not pass the
438       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
439       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
440     - Correctly detect transparent proxy support on Linux hosts that
441       require in.h to be included before netfilter_ipv4.h. Patch
442       from coderman.
443     - Disallow session resumption attempts during the renegotiation
444       stage of the v2 handshake protocol. Clients should never be trying
445       session resumption at this point, but apparently some did, in
446       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
447       found by Geoff Goodell.
450 Changes in version 0.2.1.2-alpha - 2008-06-20
451   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
452   make it easier to set up your own private Tor network; fixes several
453   big bugs with using more than one bridge relay; fixes a big bug with
454   offering hidden services quickly after Tor starts; and uses a better
455   API for reporting potential bootstrapping problems to the controller.
457   o Major features:
458     - New TestingTorNetwork config option to allow adjustment of
459       previously constant values that, while reasonable, could slow
460       bootstrapping. Implements proposal 135. Patch from Karsten.
462   o Major bugfixes:
463     - If you have more than one bridge but don't know their digests,
464       you would only learn a request for the descriptor of the first one
465       on your list. (Tor considered launching requests for the others, but
466       found that it already had a connection on the way for $0000...0000
467       so it didn't open another.) Bugfix on 0.2.0.x.
468     - If you have more than one bridge but don't know their digests,
469       and the connection to one of the bridges failed, you would cancel
470       all pending bridge connections. (After all, they all have the
471       same digest.) Bugfix on 0.2.0.x.
472     - When establishing a hidden service, introduction points that
473       originate from cannibalized circuits are completely ignored and not
474       included in rendezvous service descriptors. This might be another
475       reason for delay in making a hidden service available. Bugfix
476       from long ago (0.0.9.x?)
478   o Minor features:
479     - Allow OpenSSL to use dynamic locks if it wants.
480     - When building a consensus, do not include routers that are down.
481       This will cut down 30% to 40% on consensus size. Implements
482       proposal 138.
483     - In directory authorities' approved-routers files, allow
484       fingerprints with or without space.
485     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
486       controller can query our current bootstrap state in case it attaches
487       partway through and wants to catch up.
488     - Send an initial "Starting" bootstrap status event, so we have a
489       state to start out in.
491   o Minor bugfixes:
492     - Asking for a conditional consensus at .../consensus/<fingerprints>
493       would crash a dirserver if it did not already have a
494       consensus. Bugfix on 0.2.1.1-alpha.
495     - Clean up some macro/CPP interactions: some GCC versions don't like
496       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
497       0.2.0.x.
499   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
500     - Directory authorities shouldn't complain about bootstrapping
501       problems just because they do a lot of reachability testing and
502       some of the connection attempts fail.
503     - Start sending "count" and "recommendation" key/value pairs in
504       bootstrap problem status events, so the controller can hear about
505       problems even before Tor decides they're worth reporting for sure.
506     - If you're using bridges, generate "bootstrap problem" warnings
507       as soon as you run out of working bridges, rather than waiting
508       for ten failures -- which will never happen if you have less than
509       ten bridges.
510     - If we close our OR connection because there's been a circuit
511       pending on it for too long, we were telling our bootstrap status
512       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
515 Changes in version 0.2.1.1-alpha - 2008-06-13
516   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
517   were making the Tor process bloat especially on Linux; makes our TLS
518   handshake blend in better; sends "bootstrap phase" status events to
519   the controller, so it can keep the user informed of progress (and
520   problems) fetching directory information and establishing circuits;
521   and adds a variety of smaller features.
523   o Major features:
524     - More work on making our TLS handshake blend in: modify the list
525       of ciphers advertised by OpenSSL in client mode to even more
526       closely resemble a common web browser. We cheat a little so that
527       we can advertise ciphers that the locally installed OpenSSL doesn't
528       know about.
529     - Start sending "bootstrap phase" status events to the controller,
530       so it can keep the user informed of progress fetching directory
531       information and establishing circuits. Also inform the controller
532       if we think we're stuck at a particular bootstrap phase. Implements
533       proposal 137.
534     - Resume using OpenSSL's RAND_poll() for better (and more portable)
535       cross-platform entropy collection again. We used to use it, then
536       stopped using it because of a bug that could crash systems that
537       called RAND_poll when they had a lot of fds open. It looks like the
538       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
539       at startup, and to call RAND_poll() when we reseed later only if
540       we have a non-buggy OpenSSL version.
542   o Major bugfixes:
543     - When we choose to abandon a new entry guard because we think our
544       older ones might be better, close any circuits pending on that
545       new entry guard connection. This fix should make us recover much
546       faster when our network is down and then comes back. Bugfix on
547       0.1.2.8-beta; found by lodger.
549   o Memory fixes and improvements:
550     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
551       to avoid unused RAM in buffer chunks and memory pools.
552     - Speed up parsing and cut down on memory fragmentation by using
553       stack-style allocations for parsing directory objects. Previously,
554       this accounted for over 40% of allocations from within Tor's code
555       on a typical directory cache.
556     - Use a Bloom filter rather than a digest-based set to track which
557       descriptors we need to keep around when we're cleaning out old
558       router descriptors. This speeds up the computation significantly,
559       and may reduce fragmentation.
560     - Reduce the default smartlist size from 32 to 16; it turns out that
561       most smartlists hold around 8-12 elements tops.
562     - Make dumpstats() log the fullness and size of openssl-internal
563       buffers.
564     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
565       patch to their OpenSSL, turn it on to save memory on servers. This
566       patch will (with any luck) get included in a mainline distribution
567       before too long.
568     - Never use OpenSSL compression: it wastes RAM and CPU trying to
569       compress cells, which are basically all encrypted, compressed,
570       or both.
572   o Minor bugfixes:
573     - Stop reloading the router list from disk for no reason when we
574       run out of reachable directory mirrors. Once upon a time reloading
575       it would set the 'is_running' flag back to 1 for them. It hasn't
576       done that for a long time.
577     - In very rare situations new hidden service descriptors were
578       published earlier than 30 seconds after the last change to the
579       service. (We currently think that a hidden service descriptor
580       that's been stable for 30 seconds is worth publishing.)
582   o Minor features:
583     - Allow separate log levels to be configured for different logging
584       domains. For example, this allows one to log all notices, warnings,
585       or errors, plus all memory management messages of level debug or
586       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
587     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
588       and stop using a warning that had become unfixably verbose under
589       GCC 4.3.
590     - New --hush command-line option similar to --quiet. While --quiet
591       disables all logging to the console on startup, --hush limits the
592       output to messages of warning and error severity.
593     - Servers support a new URL scheme for consensus downloads that
594       allows the client to specify which authorities are trusted.
595       The server then only sends the consensus if the client will trust
596       it. Otherwise a 404 error is sent back. Clients use this
597       new scheme when the server supports it (meaning it's running
598       0.2.1.1-alpha or later). Implements proposal 134.
599     - New configure/torrc options (--enable-geoip-stats,
600       DirRecordUsageByCountry) to record how many IPs we've served
601       directory info to in each country code, how many status documents
602       total we've sent to each country code, and what share of the total
603       directory requests we should expect to see.
604     - Use the TLS1 hostname extension to more closely resemble browser
605       behavior.
606     - Lots of new unit tests.
607     - Add a macro to implement the common pattern of iterating through
608       two parallel lists in lockstep.
611 Changes in version 0.2.0.28-rc - 2008-06-13
612   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
613   performance bug, and fixes a bunch of smaller bugs.
615   o Anonymity fixes:
616     - Fix a bug where, when we were choosing the 'end stream reason' to
617       put in our relay end cell that we send to the exit relay, Tor
618       clients on Windows were sometimes sending the wrong 'reason'. The
619       anonymity problem is that exit relays may be able to guess whether
620       the client is running Windows, thus helping partition the anonymity
621       set. Down the road we should stop sending reasons to exit relays,
622       or otherwise prevent future versions of this bug.
624   o Major bugfixes:
625     - While setting up a hidden service, some valid introduction circuits
626       were overlooked and abandoned. This might be the reason for
627       the long delay in making a hidden service available. Bugfix on
628       0.2.0.14-alpha.
630   o Minor features:
631     - Update to the "June 9 2008" ip-to-country file.
632     - Run 'make test' as part of 'make dist', so we stop releasing so
633       many development snapshots that fail their unit tests.
635   o Minor bugfixes:
636     - When we're checking if we have enough dir info for each relay
637       to begin establishing circuits, make sure that we actually have
638       the descriptor listed in the consensus, not just any descriptor.
639       Bugfix on 0.1.2.x.
640     - Bridge relays no longer print "xx=0" in their extrainfo document
641       for every single country code in the geoip db. Bugfix on
642       0.2.0.27-rc.
643     - Only warn when we fail to load the geoip file if we were planning to
644       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
645     - If we change our MaxAdvertisedBandwidth and then reload torrc,
646       Tor won't realize it should publish a new relay descriptor. Fixes
647       bug 688, reported by mfr. Bugfix on 0.1.2.x.
648     - When we haven't had any application requests lately, don't bother
649       logging that we have expired a bunch of descriptors. Bugfix
650       on 0.1.2.x.
651     - Make relay cells written on a connection count as non-padding when
652       tracking how long a connection has been in use. Bugfix on
653       0.2.0.1-alpha. Spotted by lodger.
654     - Fix unit tests in 0.2.0.27-rc.
655     - Fix compile on Windows.
658 Changes in version 0.2.0.27-rc - 2008-06-03
659   Tor 0.2.0.27-rc adds a few features we left out of the earlier
660   release candidates. In particular, we now include an IP-to-country
661   GeoIP database, so controllers can easily look up what country a
662   given relay is in, and so bridge relays can give us some sanitized
663   summaries about which countries are making use of bridges. (See proposal
664   126-geoip-fetching.txt for details.)
666   o Major features:
667     - Include an IP-to-country GeoIP file in the tarball, so bridge
668       relays can report sanitized summaries of the usage they're seeing.
670   o Minor features:
671     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
672       Robert Hogan. Fixes the first part of bug 681.
673     - Make bridge authorities never serve extrainfo docs.
674     - Add support to detect Libevent versions in the 1.4.x series
675       on mingw.
676     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
677     - Include a new contrib/tor-exit-notice.html file that exit relay
678       operators can put on their website to help reduce abuse queries.
680   o Minor bugfixes:
681     - When tunneling an encrypted directory connection, and its first
682       circuit fails, do not leave it unattached and ask the controller
683       to deal. Fixes the second part of bug 681.
684     - Make bridge authorities correctly expire old extrainfo documents
685       from time to time.
688 Changes in version 0.2.0.26-rc - 2008-05-13
689   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
690   in Debian's OpenSSL packages. All users running any 0.2.0.x version
691   should upgrade, whether they're running Debian or not.
693   o Major security fixes:
694     - Use new V3 directory authority keys on the tor26, gabelmoo, and
695       moria1 V3 directory authorities. The old keys were generated with
696       a vulnerable version of Debian's OpenSSL package, and must be
697       considered compromised. Other authorities' keys were not generated
698       with an affected version of OpenSSL.
700   o Major bugfixes:
701     - List authority signatures as "unrecognized" based on DirServer
702       lines, not on cert cache. Bugfix on 0.2.0.x.
704   o Minor features:
705     - Add a new V3AuthUseLegacyKey option to make it easier for
706       authorities to change their identity keys if they have to.
709 Changes in version 0.2.0.25-rc - 2008-04-23
710   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
712   o Major bugfixes:
713     - Remember to initialize threading before initializing logging.
714       Otherwise, many BSD-family implementations will crash hard on
715       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
717   o Minor bugfixes:
718     - Authorities correctly free policies on bad servers on
719       exit. Fixes bug 672. Bugfix on 0.2.0.x.
722 Changes in version 0.2.0.24-rc - 2008-04-22
723   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
724   v3 directory authority, makes relays with dynamic IP addresses and no
725   DirPort notice more quickly when their IP address changes, fixes a few
726   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
728   o New directory authorities:
729     - Take lefkada out of the list of v3 directory authorities, since
730       it has been down for months.
731     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
732       authority.
734   o Major bugfixes:
735     - Detect address changes more quickly on non-directory mirror
736       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
738   o Minor features (security):
739     - Reject requests for reverse-dns lookup of names that are in
740       a private address space. Patch from lodger.
741     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
742       from lodger.
744   o Minor bugfixes (crashes):
745     - Avoid a rare assert that can trigger when Tor doesn't have much
746       directory information yet and it tries to fetch a v2 hidden
747       service descriptor. Fixes bug 651, reported by nwf.
748     - Initialize log mutex before initializing dmalloc. Otherwise,
749       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
750     - Use recursive pthread mutexes in order to avoid deadlock when
751       logging debug-level messages to a controller. Bug spotted by nwf,
752       bugfix on 0.2.0.16-alpha.
754   o Minor bugfixes (resource management):
755     - Keep address policies from leaking memory: start their refcount
756       at 1, not 2. Bugfix on 0.2.0.16-alpha.
757     - Free authority certificates on exit, so they don't look like memory
758       leaks. Bugfix on 0.2.0.19-alpha.
759     - Free static hashtables for policy maps and for TLS connections on
760       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
761     - Avoid allocating extra space when computing consensuses on 64-bit
762       platforms. Bug spotted by aakova.
764   o Minor bugfixes (misc):
765     - Do not read the configuration file when we've only been told to
766       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
767       based on patch from Sebastian Hahn.
768     - Exit relays that are used as a client can now reach themselves
769       using the .exit notation, rather than just launching an infinite
770       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
771     - When attempting to open a logfile fails, tell us why.
772     - Fix a dumb bug that was preventing us from knowing that we should
773       preemptively build circuits to handle expected directory requests.
774       Fixes bug 660. Bugfix on 0.1.2.x.
775     - Warn less verbosely about clock skew from netinfo cells from
776       untrusted sources. Fixes bug 663.
777     - Make controller stream events for DNS requests more consistent,
778       by adding "new stream" events for DNS requests, and removing
779       spurious "stream closed" events" for cached reverse resolves.
780       Patch from mwenge. Fixes bug 646.
781     - Correctly notify one-hop connections when a circuit build has
782       failed. Possible fix for bug 669. Found by lodger.
785 Changes in version 0.2.0.23-rc - 2008-03-24
786   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
787   makes bootstrapping faster if the first directory mirror you contact
788   is down. The bundles also include the new Vidalia 0.1.2 release.
790   o Major bugfixes:
791     - When a tunneled directory request is made to a directory server
792       that's down, notice after 30 seconds rather than 120 seconds. Also,
793       fail any begindir streams that are pending on it, so they can
794       retry elsewhere. This was causing multi-minute delays on bootstrap.
797 Changes in version 0.2.0.22-rc - 2008-03-18
798   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
799   enables encrypted directory connections by default for non-relays, fixes
800   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
801   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
803   o Major features:
804     - Enable encrypted directory connections by default for non-relays,
805       so censor tools that block Tor directory connections based on their
806       plaintext patterns will no longer work. This means Tor works in
807       certain censored countries by default again.
809   o Major bugfixes:
810     - Make sure servers always request certificates from clients during
811       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
812     - Do not enter a CPU-eating loop when a connection is closed in
813       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
814       diagnosed by lodger; bugfix on 0.2.0.20-rc.
815     - Fix assertion failure that could occur when a blocked circuit
816       became unblocked, and it had pending client DNS requests. Bugfix
817       on 0.2.0.1-alpha. Fixes bug 632.
819   o Minor bugfixes (on 0.1.2.x):
820     - Generate "STATUS_SERVER" events rather than misspelled
821       "STATUS_SEVER" events. Caught by mwenge.
822     - When counting the number of bytes written on a TLS connection,
823       look at the BIO actually used for writing to the network, not
824       at the BIO used (sometimes) to buffer data for the network.
825       Looking at different BIOs could result in write counts on the
826       order of ULONG_MAX. Fixes bug 614.
827     - On Windows, correctly detect errors when listing the contents of
828       a directory. Fix from lodger.
830   o Minor bugfixes (on 0.2.0.x):
831     - Downgrade "sslv3 alert handshake failure" message to INFO.
832     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
833       left BandwidthRate and BandwidthBurst at the default, we would be
834       silently limited by those defaults. Now raise them to match the
835       RelayBandwidth* values.
836     - Fix the SVK version detection logic to work correctly on a branch.
837     - Make --enable-openbsd-malloc work correctly on Linux with alpha
838       CPUs. Fixes bug 625.
839     - Logging functions now check that the passed severity is sane.
840     - Use proper log levels in the testsuite call of
841       get_interface_address6().
842     - When using a nonstandard malloc, do not use the platform values for
843       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
844     - Make the openbsd malloc code use 8k pages on alpha CPUs and
845       16k pages on ia64.
846     - Detect mismatched page sizes when using --enable-openbsd-malloc.
847     - Avoid double-marked-for-close warning when certain kinds of invalid
848       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
849       for bug 617. Bugfix on 0.2.0.1-alpha.
850     - Make sure that the "NULL-means-reject *:*" convention is followed by
851       all the policy manipulation functions, avoiding some possible crash
852       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
853     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
854       actually works, and doesn't warn about every single reverse lookup.
855       Fixes the other part of bug 617.  Bugfix on 0.2.0.1-alpha.
857   o Minor features:
858     - Only log guard node status when guard node status has changed.
859     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
860       make "INFO" 75% less verbose.
863 Changes in version 0.2.0.21-rc - 2008-03-02
864   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
865   makes Tor work well with Vidalia again, fixes a rare assert bug,
866   and fixes a pair of more minor bugs. The bundles also include Vidalia
867   0.1.0 and Torbutton 1.1.16.
869   o Major bugfixes:
870     - The control port should declare that it requires password auth
871       when HashedControlSessionPassword is set too. Patch from Matt Edman;
872       bugfix on 0.2.0.20-rc. Fixes bug 615.
873     - Downgrade assert in connection_buckets_decrement() to a log message.
874       This may help us solve bug 614, and in any case will make its
875       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
876     - We were sometimes miscounting the number of bytes read from the
877       network, causing our rate limiting to not be followed exactly.
878       Bugfix on 0.2.0.16-alpha. Reported by lodger.
880   o Minor bugfixes:
881     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a.  All other supported
882       OpenSSL versions should have been working fine.  Diagnosis and patch
883       from lodger, Karsten Loesing, and Sebastian Hahn.  Fixes bug 616.
884       Bugfix on 0.2.0.20-rc.
887 Changes in version 0.2.0.20-rc - 2008-02-24
888   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
889   makes more progress towards normalizing Tor's TLS handshake, makes
890   hidden services work better again, helps relays bootstrap if they don't
891   know their IP address, adds optional support for linking in openbsd's
892   allocator or tcmalloc, allows really fast relays to scale past 15000
893   sockets, and fixes a bunch of minor bugs reported by Veracode.
895   o Major features:
896     - Enable the revised TLS handshake based on the one designed by
897       Steven Murdoch in proposal 124, as revised in proposal 130. It
898       includes version negotiation for OR connections as described in
899       proposal 105. The new handshake is meant to be harder for censors
900       to fingerprint, and it adds the ability to detect certain kinds of
901       man-in-the-middle traffic analysis attacks. The version negotiation
902       feature will allow us to improve Tor's link protocol more safely
903       in the future.
904     - Choose which bridge to use proportional to its advertised bandwidth,
905       rather than uniformly at random. This should speed up Tor for
906       bridge users. Also do this for people who set StrictEntryNodes.
907     - When a TrackHostExits-chosen exit fails too many times in a row,
908       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
910   o Major bugfixes:
911     - Resolved problems with (re-)fetching hidden service descriptors.
912       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
913       and 0.2.0.19-alpha.
914     - If we only ever used Tor for hidden service lookups or posts, we
915       would stop building circuits and start refusing connections after
916       24 hours, since we falsely believed that Tor was dormant. Reported
917       by nwf; bugfix on 0.1.2.x.
918     - Servers that don't know their own IP address should go to the
919       authorities for their first directory fetch, even if their DirPort
920       is off or if they don't know they're reachable yet. This will help
921       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
922     - When counting the number of open sockets, count not only the number
923       of sockets we have received from the socket() call, but also
924       the number we've gotten from accept() and socketpair(). This bug
925       made us fail to count all sockets that we were using for incoming
926       connections. Bugfix on 0.2.0.x.
927     - Fix code used to find strings within buffers, when those strings
928       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
929     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
930     - Add a new __HashedControlSessionPassword option for controllers
931       to use for one-off session password hashes that shouldn't get
932       saved to disk by SAVECONF --- Vidalia users were accumulating a
933       pile of HashedControlPassword lines in their torrc files, one for
934       each time they had restarted Tor and then clicked Save. Make Tor
935       automatically convert "HashedControlPassword" to this new option but
936       only when it's given on the command line. Partial fix for bug 586.
938   o Minor features (performance):
939     - Tune parameters for cell pool allocation to minimize amount of
940       RAM overhead used.
941     - Add OpenBSD malloc code from phk as an optional malloc
942       replacement on Linux: some glibc libraries do very poorly
943       with Tor's memory allocation patterns. Pass
944       --enable-openbsd-malloc to get the replacement malloc code.
945     - Add a --with-tcmalloc option to the configure script to link
946       against tcmalloc (if present). Does not yet search for
947       non-system include paths.
948     - Stop imposing an arbitrary maximum on the number of file descriptors
949       used for busy servers. Bug reported by Olaf Selke; patch from
950       Sebastian Hahn.
952   o Minor features (other):
953     - When SafeLogging is disabled, log addresses along with all TLS
954       errors.
955     - When building with --enable-gcc-warnings, check for whether Apple's
956       warning "-Wshorten-64-to-32" is available.
957     - Add a --passphrase-fd argument to the tor-gencert command for
958       scriptability.
960   o Minor bugfixes (memory leaks and code problems):
961     - We were leaking a file descriptor if Tor started with a zero-length
962       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
963     - Detect size overflow in zlib code. Reported by Justin Ferguson and
964       Dan Kaminsky.
965     - We were comparing the raw BridgePassword entry with a base64'ed
966       version of it, when handling a "/tor/networkstatus-bridges"
967       directory request. Now compare correctly. Noticed by Veracode.
968     - Recover from bad tracked-since value in MTBF-history file.
969       Should fix bug 537.
970     - Alter the code that tries to recover from unhandled write
971       errors, to not try to flush onto a socket that's given us
972       unhandled errors. Bugfix on 0.1.2.x.
973     - Make Unix controlsockets work correctly on OpenBSD. Patch from
974       tup. Bugfix on 0.2.0.3-alpha.
976   o Minor bugfixes (other):
977     - If we have an extra-info document for our server, always make
978       it available on the control port, even if we haven't gotten
979       a copy of it from an authority yet. Patch from mwenge.
980     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
981     - Directory mirrors no longer include a guess at the client's IP
982       address if the connection appears to be coming from the same /24
983       network; it was producing too many wrong guesses.
984     - Make the new hidden service code respect the SafeLogging setting.
985       Bugfix on 0.2.0.x. Patch from Karsten.
986     - When starting as an authority, do not overwrite all certificates
987       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
988     - If we're trying to flush the last bytes on a connection (for
989       example, when answering a directory request), reset the
990       time-to-give-up timeout every time we manage to write something
991       on the socket. Bugfix on 0.1.2.x.
992     - Change the behavior of "getinfo status/good-server-descriptor"
993       so it doesn't return failure when any authority disappears.
994     - Even though the man page said that "TrackHostExits ." should
995       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
996     - Report TLS "zero return" case as a "clean close" and "IO error"
997       as a "close". Stop calling closes "unexpected closes": existing
998       Tors don't use SSL_close(), so having a connection close without
999       the TLS shutdown handshake is hardly unexpected.
1000     - Send NAMESERVER_STATUS messages for a single failed nameserver
1001       correctly.
1003   o Code simplifications and refactoring:
1004     - Remove the tor_strpartition function: its logic was confused,
1005       and it was only used for one thing that could be implemented far
1006       more easily.
1009 Changes in version 0.2.0.19-alpha - 2008-02-09
1010   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
1011   handshake, makes path selection for relays more secure and IP address
1012   guessing more robust, and generally fixes a lot of bugs in preparation
1013   for calling the 0.2.0 branch stable.
1015   o Major features:
1016     - Do not include recognizeable strings in the commonname part of
1017       Tor's x509 certificates.
1019   o Major bugfixes:
1020     - If we're a relay, avoid picking ourselves as an introduction point,
1021       a rendezvous point, or as the final hop for internal circuits. Bug
1022       reported by taranis and lodger. Bugfix on 0.1.2.x.
1023     - Patch from "Andrew S. Lists" to catch when we contact a directory
1024       mirror at IP address X and he says we look like we're coming from
1025       IP address X. Bugfix on 0.1.2.x.
1027   o Minor features (security):
1028     - Be more paranoid about overwriting sensitive memory on free(),
1029       as a defensive programming tactic to ensure forward secrecy.
1031   o Minor features (directory authority):
1032     - Actually validate the options passed to AuthDirReject,
1033       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
1034     - Reject router descriptors with out-of-range bandwidthcapacity or
1035       bandwidthburst values.
1037   o Minor features (controller):
1038     - Reject controller commands over 1MB in length.  This keeps rogue
1039       processes from running us out of memory.
1041   o Minor features (misc):
1042     - Give more descriptive well-formedness errors for out-of-range
1043       hidden service descriptor/protocol versions.
1044     - Make memory debugging information describe more about history
1045       of cell allocation, so we can help reduce our memory use.
1047   o Deprecated features (controller):
1048     - The status/version/num-versioning and status/version/num-concurring
1049       GETINFO options are no longer useful in the v3 directory protocol:
1050       treat them as deprecated, and warn when they're used.
1052   o Minor bugfixes:
1053     - When our consensus networkstatus has been expired for a while, stop
1054       being willing to build circuits using it. Fixes bug 401. Bugfix
1055       on 0.1.2.x.
1056     - Directory caches now fetch certificates from all authorities
1057       listed in a networkstatus consensus, even when they do not
1058       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
1059     - When connecting to a bridge without specifying its key, insert
1060       the connection into the identity-to-connection map as soon as
1061       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
1062     - Detect versions of OS X where malloc_good_size() is present in the
1063       library but never actually declared. Resolves bug 587. Bugfix
1064       on 0.2.0.x.
1065     - Stop incorrectly truncating zlib responses to directory authority
1066       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
1067     - Stop recommending that every server operator send mail to tor-ops.
1068       Resolves bug 597. Bugfix on 0.1.2.x.
1069     - Don't trigger an assert if we start a directory authority with a
1070       private IP address (like 127.0.0.1).
1071     - Avoid possible failures when generating a directory with routers
1072       with over-long versions strings, or too many flags set. Bugfix
1073       on 0.1.2.x.
1074     - If an attempt to launch a DNS resolve request over the control
1075       port fails because we have overrun the limit on the number of
1076       connections, tell the controller that the request has failed.
1077     - Avoid using too little bandwidth when our clock skips a few
1078       seconds. Bugfix on 0.1.2.x.
1079     - Fix shell error when warning about missing packages in configure
1080       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
1081     - Do not become confused when receiving a spurious VERSIONS-like
1082       cell from a confused v1 client.  Bugfix on 0.2.0.x.
1083     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
1084       introduction points for a hidden service have failed. Patch from
1085       Karsten Loesing. Bugfix on 0.2.0.x.
1087   o Code simplifications and refactoring:
1088     - Remove some needless generality from cpuworker code, for improved
1089       type-safety.
1090     - Stop overloading the circuit_t.onionskin field for both "onionskin
1091       from a CREATE cell that we are waiting for a cpuworker to be
1092       assigned" and "onionskin from an EXTEND cell that we are going to
1093       send to an OR as soon as we are connected". Might help with bug 600.
1094     - Add an in-place version of aes_crypt() so that we can avoid doing a
1095       needless memcpy() call on each cell payload.
1098 Changes in version 0.2.0.18-alpha - 2008-01-25
1099   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
1100   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
1101   that can warn or reject connections to ports generally associated with
1102   vulnerable-plaintext protocols.
1104   o New directory authorities:
1105     - Set up dannenberg (run by CCC) as the sixth v3 directory
1106       authority.
1108   o Major bugfixes:
1109     - Fix a major memory leak when attempting to use the v2 TLS
1110       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
1111     - We accidentally enabled the under-development v2 TLS handshake
1112       code, which was causing log entries like "TLS error while
1113       renegotiating handshake". Disable it again. Resolves bug 590.
1114     - We were computing the wrong Content-Length: header for directory
1115       responses that need to be compressed on the fly, causing clients
1116       asking for those items to always fail. Bugfix on 0.2.0.x; partially
1117       fixes bug 593.
1119   o Major features:
1120     - Avoid going directly to the directory authorities even if you're a
1121       relay, if you haven't found yourself reachable yet or if you've
1122       decided not to advertise your dirport yet. Addresses bug 556.
1123     - If we've gone 12 hours since our last bandwidth check, and we
1124       estimate we have less than 50KB bandwidth capacity but we could
1125       handle more, do another bandwidth test.
1126     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
1127       Tor can warn and/or refuse connections to ports commonly used with
1128       vulnerable-plaintext protocols. Currently we warn on ports 23,
1129       109, 110, and 143, but we don't reject any.
1131   o Minor bugfixes:
1132     - When we setconf ClientOnly to 1, close any current OR and Dir
1133       listeners. Reported by mwenge.
1134     - When we get a consensus that's been signed by more people than
1135       we expect, don't log about it; it's not a big deal. Reported
1136       by Kyle Williams.
1138   o Minor features:
1139     - Don't answer "/tor/networkstatus-bridges" directory requests if
1140       the request isn't encrypted.
1141     - Make "ClientOnly 1" config option disable directory ports too.
1142     - Patches from Karsten Loesing to make v2 hidden services more
1143       robust: work even when there aren't enough HSDir relays available;
1144       retry when a v2 rend desc fetch fails; but don't retry if we
1145       already have a usable v0 rend desc.
1148 Changes in version 0.2.0.17-alpha - 2008-01-17
1149   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
1151   o Compile fixes:
1152     - Make the tor-gencert man page get included correctly in the tarball.
1155 Changes in version 0.2.0.16-alpha - 2008-01-17
1156   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
1157   Loesing, and generally cleans up a lot of features and minor bugs.
1159   o New directory authorities:
1160     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
1161       authority.
1163   o Major performance improvements:
1164     - Switch our old ring buffer implementation for one more like that
1165       used by free Unix kernels. The wasted space in a buffer with 1mb
1166       of data will now be more like 8k than 1mb. The new implementation
1167       also avoids realloc();realloc(); patterns that can contribute to
1168       memory fragmentation.
1170   o Minor features:
1171     - Configuration files now accept C-style strings as values. This
1172       helps encode characters not allowed in the current configuration
1173       file format, such as newline or #. Addresses bug 557.
1174     - Although we fixed bug 539 (where servers would send HTTP status 503
1175       responses _and_ send a body too), there are still servers out
1176       there that haven't upgraded. Therefore, make clients parse such
1177       bodies when they receive them.
1178     - When we're not serving v2 directory information, there is no reason
1179       to actually keep any around. Remove the obsolete files and directory
1180       on startup if they are very old and we aren't going to serve them.
1182   o Minor performance improvements:
1183     - Reference-count and share copies of address policy entries; only 5%
1184       of them were actually distinct.
1185     - Never walk through the list of logs if we know that no log is
1186       interested in a given message.
1188   o Minor bugfixes:
1189     - When an authority has not signed a consensus, do not try to
1190       download a nonexistent "certificate with key 00000000". Bugfix
1191       on 0.2.0.x. Fixes bug 569.
1192     - Fix a rare assert error when we're closing one of our threads:
1193       use a mutex to protect the list of logs, so we never write to the
1194       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
1195       bug 575, which is kind of the revenge of bug 222.
1196     - Patch from Karsten Loesing to complain less at both the client
1197       and the relay when a relay used to have the HSDir flag but doesn't
1198       anymore, and we try to upload a hidden service descriptor.
1199     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
1200       0.2.0.15-alpha.
1201     - Do not try to download missing certificates until we have tried
1202       to check our fallback consensus. Fixes bug 583.
1203     - Make bridges round reported GeoIP stats info up to the nearest
1204       estimate, not down. Now we can distinguish between "0 people from
1205       this country" and "1 person from this country".
1206     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
1207     - Avoid possible segfault if key generation fails in
1208       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
1209     - Avoid segfault in the case where a badly behaved v2 versioning
1210       directory sends a signed networkstatus with missing client-versions.
1211       Bugfix on 0.1.2.
1212     - Avoid segfaults on certain complex invocations of
1213       router_get_by_hexdigest(). Bugfix on 0.1.2.
1214     - Correct bad index on array access in parse_http_time(). Bugfix
1215       on 0.2.0.
1216     - Fix possible bug in vote generation when server versions are present
1217       but client versions are not.
1218     - Fix rare bug on REDIRECTSTREAM control command when called with no
1219       port set: it could erroneously report an error when none had
1220       happened.
1221     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
1222       compressing large objects and find ourselves with more than 4k
1223       left over. Bugfix on 0.2.0.
1224     - Fix a small memory leak when setting up a hidden service.
1225     - Fix a few memory leaks that could in theory happen under bizarre
1226       error conditions.
1227     - Fix an assert if we post a general-purpose descriptor via the
1228       control port but that descriptor isn't mentioned in our current
1229       network consensus. Bug reported by Jon McLachlan; bugfix on
1230       0.2.0.9-alpha.
1232   o Minor features (controller):
1233     - Get NS events working again. Patch from tup.
1234     - The GETCONF command now escapes and quotes configuration values
1235       that don't otherwise fit into the torrc file.
1236     - The SETCONF command now handles quoted values correctly.
1238   o Minor features (directory authorities):
1239     - New configuration options to override default maximum number of
1240       servers allowed on a single IP address. This is important for
1241       running a test network on a single host.
1242     - Actually implement the -s option to tor-gencert.
1243     - Add a manual page for tor-gencert.
1245   o Minor features (bridges):
1246     - Bridge authorities no longer serve bridge descriptors over
1247       unencrypted connections.
1249   o Minor features (other):
1250     - Add hidden services and DNSPorts to the list of things that make
1251       Tor accept that it has running ports. Change starting Tor with no
1252       ports from a fatal error to a warning; we might change it back if
1253       this turns out to confuse anybody. Fixes bug 579.
1256 Changes in version 0.1.2.19 - 2008-01-17
1257   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
1258   exit policy a little bit more conservative so it's safer to run an
1259   exit relay on a home system, and fixes a variety of smaller issues.
1261   o Security fixes:
1262     - Exit policies now reject connections that are addressed to a
1263       relay's public (external) IP address too, unless
1264       ExitPolicyRejectPrivate is turned off. We do this because too
1265       many relays are running nearby to services that trust them based
1266       on network address.
1268   o Major bugfixes:
1269     - When the clock jumps forward a lot, do not allow the bandwidth
1270       buckets to become negative. Fixes bug 544.
1271     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
1272       on every successful resolve. Reported by Mike Perry.
1273     - Purge old entries from the "rephist" database and the hidden
1274       service descriptor database even when DirPort is zero.
1275     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
1276       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
1277       crashing or mis-answering these requests.
1278     - When we decide to send a 503 response to a request for servers, do
1279       not then also send the server descriptors: this defeats the whole
1280       purpose. Fixes bug 539.
1282   o Minor bugfixes:
1283     - Changing the ExitPolicyRejectPrivate setting should cause us to
1284       rebuild our server descriptor.
1285     - Fix handling of hex nicknames when answering controller requests for
1286       networkstatus by name, or when deciding whether to warn about
1287       unknown routers in a config option. (Patch from mwenge.)
1288     - Fix a couple of hard-to-trigger autoconf problems that could result
1289       in really weird results on platforms whose sys/types.h files define
1290       nonstandard integer types.
1291     - Don't try to create the datadir when running --verify-config or
1292       --hash-password. Resolves bug 540.
1293     - If we were having problems getting a particular descriptor from the
1294       directory caches, and then we learned about a new descriptor for
1295       that router, we weren't resetting our failure count. Reported
1296       by lodger.
1297     - Although we fixed bug 539 (where servers would send HTTP status 503
1298       responses _and_ send a body too), there are still servers out there
1299       that haven't upgraded. Therefore, make clients parse such bodies
1300       when they receive them.
1301     - Run correctly on systems where rlim_t is larger than unsigned long.
1302       This includes some 64-bit systems.
1303     - Run correctly on platforms (like some versions of OS X 10.5) where
1304       the real limit for number of open files is OPEN_FILES, not rlim_max
1305       from getrlimit(RLIMIT_NOFILES).
1306     - Avoid a spurious free on base64 failure.
1307     - Avoid segfaults on certain complex invocations of
1308       router_get_by_hexdigest().
1309     - Fix rare bug on REDIRECTSTREAM control command when called with no
1310       port set: it could erroneously report an error when none had
1311       happened.
1314 Changes in version 0.2.0.15-alpha - 2007-12-25
1315   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
1316   features added in 0.2.0.13-alpha.
1318   o Major bugfixes:
1319     - Fix several remotely triggerable asserts based on DirPort requests
1320       for a v2 or v3 networkstatus object before we were prepared. This
1321       was particularly bad for 0.2.0.13 and later bridge relays, who
1322       would never have a v2 networkstatus and would thus always crash
1323       when used. Bugfixes on 0.2.0.x.
1324     - Estimate the v3 networkstatus size more accurately, rather than
1325       estimating it at zero bytes and giving it artificially high priority
1326       compared to other directory requests. Bugfix on 0.2.0.x.
1328   o Minor bugfixes:
1329     - Fix configure.in logic for cross-compilation.
1330     - When we load a bridge descriptor from the cache, and it was
1331       previously unreachable, mark it as retriable so we won't just
1332       ignore it. Also, try fetching a new copy immediately. Bugfixes
1333       on 0.2.0.13-alpha.
1334     - The bridge GeoIP stats were counting other relays, for example
1335       self-reachability and authority-reachability tests.
1337   o Minor features:
1338     - Support compilation to target iPhone; patch from cjacker huang.
1339       To build for iPhone, pass the --enable-iphone option to configure.
1342 Changes in version 0.2.0.14-alpha - 2007-12-23
1343   o Major bugfixes:
1344     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
1345       without a datadirectory from a previous Tor install. Reported
1346       by Zax.
1347     - Fix a crash when we fetch a descriptor that turns out to be
1348       unexpected (it used to be in our networkstatus when we started
1349       fetching it, but it isn't in our current networkstatus), and we
1350       aren't using bridges. Bugfix on 0.2.0.x.
1351     - Fix a crash when accessing hidden services: it would work the first
1352       time you use a given introduction point for your service, but
1353       on subsequent requests we'd be using garbage memory. Fixed by
1354       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
1355     - Fix a crash when we load a bridge descriptor from disk but we don't
1356       currently have a Bridge line for it in our torrc. Bugfix on
1357       0.2.0.13-alpha.
1359   o Major features:
1360     - If bridge authorities set BridgePassword, they will serve a
1361       snapshot of known bridge routerstatuses from their DirPort to
1362       anybody who knows that password. Unset by default.
1364   o Minor bugfixes:
1365     - Make the unit tests build again.
1366     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
1367     - Make PublishServerDescriptor default to 1, so the default doesn't
1368       have to change as we invent new directory protocol versions.
1369     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
1370       be included unless sys/time.h is already included.  Fixes
1371       bug 553.  Bugfix on 0.2.0.x.
1372     - If we receive a general-purpose descriptor and then receive an
1373       identical bridge-purpose descriptor soon after, don't discard
1374       the next one as a duplicate.
1376   o Minor features:
1377     - If BridgeRelay is set to 1, then the default for
1378       PublishServerDescriptor is now "bridge" rather than "v2,v3".
1379     - If the user sets RelayBandwidthRate but doesn't set
1380       RelayBandwidthBurst, then make them equal rather than erroring out.
1383 Changes in version 0.2.0.13-alpha - 2007-12-21
1384   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
1385   Goodell, fixes many more bugs, and adds a lot of infrastructure for
1386   upcoming features.
1388   o New directory authorities:
1389     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
1390       authority.
1392   o Major bugfixes:
1393     - Only update guard status (usable / not usable) once we have
1394       enough directory information. This was causing us to always pick
1395       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
1396       causing us to discard all our guards on startup if we hadn't been
1397       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
1398     - Purge old entries from the "rephist" database and the hidden
1399       service descriptor databases even when DirPort is zero. Bugfix
1400       on 0.1.2.x.
1401     - We were ignoring our RelayBandwidthRate for the first 30 seconds
1402       after opening a circuit -- even a relayed circuit. Bugfix on
1403       0.2.0.3-alpha.
1404     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
1405       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
1406       crashing or mis-answering these types of requests.
1407     - Relays were publishing their server descriptor to v1 and v2
1408       directory authorities, but they didn't try publishing to v3-only
1409       authorities. Fix this; and also stop publishing to v1 authorities.
1410       Bugfix on 0.2.0.x.
1411     - When we were reading router descriptors from cache, we were ignoring
1412       the annotations -- so for example we were reading in bridge-purpose
1413       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
1414     - When we decided to send a 503 response to a request for servers, we
1415       were then also sending the server descriptors: this defeats the
1416       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
1418   o Major features:
1419     - Bridge relays now behave like clients with respect to time
1420       intervals for downloading new consensus documents -- otherwise they
1421       stand out. Bridge users now wait until the end of the interval,
1422       so their bridge relay will be sure to have a new consensus document.
1423     - Three new config options (AlternateDirAuthority,
1424       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
1425       user selectively replace the default directory authorities by type,
1426       rather than the all-or-nothing replacement that DirServer offers.
1427     - Tor can now be configured to read a GeoIP file from disk in one
1428       of two formats. This can be used by controllers to map IP addresses
1429       to countries. Eventually, it may support exit-by-country.
1430     - When possible, bridge relays remember which countries users
1431       are coming from, and report aggregate information in their
1432       extra-info documents, so that the bridge authorities can learn
1433       where Tor is blocked.
1434     - Bridge directory authorities now do reachability testing on the
1435       bridges they know. They provide router status summaries to the
1436       controller via "getinfo ns/purpose/bridge", and also dump summaries
1437       to a file periodically.
1438     - Stop fetching directory info so aggressively if your DirPort is
1439       on but your ORPort is off; stop fetching v2 dir info entirely.
1440       You can override these choices with the new FetchDirInfoEarly
1441       config option.
1443   o Minor bugfixes:
1444     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
1445       consensus documents when there are too many relays at a single
1446       IP address. Now clear it in v2 network status documents too, and
1447       also clear it in routerinfo_t when the relay is no longer listed
1448       in the relevant networkstatus document.
1449     - Don't crash if we get an unexpected value for the
1450       PublishServerDescriptor config option. Reported by Matt Edman;
1451       bugfix on 0.2.0.9-alpha.
1452     - Our new v2 hidden service descriptor format allows descriptors
1453       that have no introduction points. But Tor crashed when we tried
1454       to build a descriptor with no intro points (and it would have
1455       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
1456       by Karsten Loesing.
1457     - Fix building with dmalloc 5.5.2 with glibc.
1458     - Reject uploaded descriptors and extrainfo documents if they're
1459       huge. Otherwise we'll cache them all over the network and it'll
1460       clog everything up. Reported by Aljosha Judmayer.
1461     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
1462       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
1463     - When the DANGEROUS_VERSION controller status event told us we're
1464       running an obsolete version, it used the string "OLD" to describe
1465       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
1466       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
1467     - If we can't expand our list of entry guards (e.g. because we're
1468       using bridges or we have StrictEntryNodes set), don't mark relays
1469       down when they fail a directory request. Otherwise we're too quick
1470       to mark all our entry points down. Bugfix on 0.1.2.x.
1471     - Fix handling of hex nicknames when answering controller requests for
1472       networkstatus by name, or when deciding whether to warn about unknown
1473       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
1474     - Fix a couple of hard-to-trigger autoconf problems that could result
1475       in really weird results on platforms whose sys/types.h files define
1476       nonstandard integer types. Bugfix on 0.1.2.x.
1477     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
1478     - Don't crash on name lookup when we have no current consensus.  Fixes
1479       bug 538; bugfix on 0.2.0.x.
1480     - Only Tors that want to mirror the v2 directory info should
1481       create the "cached-status" directory in their datadir. (All Tors
1482       used to create it.) Bugfix on 0.2.0.9-alpha.
1483     - Directory authorities should only automatically download Extra Info
1484       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
1486   o Minor features:
1487     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
1488       consumers. (We already do this on HUP.)
1489     - Authorities and caches fetch the v2 networkstatus documents
1490       less often, now that v3 is encouraged.
1491     - Add a new config option BridgeRelay that specifies you want to
1492       be a bridge relay. Right now the only difference is that it makes
1493       you answer begin_dir requests, and it makes you cache dir info,
1494       even if your DirPort isn't on.
1495     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
1496       ask about source, timestamp of arrival, purpose, etc. We need
1497       something like this to help Vidalia not do GeoIP lookups on bridge
1498       addresses.
1499     - Allow multiple HashedControlPassword config lines, to support
1500       multiple controller passwords.
1501     - Authorities now decide whether they're authoritative for a given
1502       router based on the router's purpose.
1503     - New config options AuthDirBadDir and AuthDirListBadDirs for
1504       authorities to mark certain relays as "bad directories" in the
1505       networkstatus documents. Also supports the "!baddir" directive in
1506       the approved-routers file.
1509 Changes in version 0.2.0.12-alpha - 2007-11-16
1510   This twelfth development snapshot fixes some more build problems as
1511   well as a few minor bugs.
1513   o Compile fixes:
1514     - Make it build on OpenBSD again. Patch from tup.
1515     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
1516       package-building for Red Hat, OS X, etc.
1518   o Minor bugfixes (on 0.1.2.x):
1519     - Changing the ExitPolicyRejectPrivate setting should cause us to
1520       rebuild our server descriptor.
1522   o Minor bugfixes (on 0.2.0.x):
1523     - When we're lacking a consensus, don't try to perform rendezvous
1524       operations. Reported by Karsten Loesing.
1525     - Fix a small memory leak whenever we decide against using a
1526       newly picked entry guard. Reported by Mike Perry.
1527     - When authorities detected more than two relays running on the same
1528       IP address, they were clearing all the status flags but forgetting
1529       to clear the "hsdir" flag. So clients were being told that a
1530       given relay was the right choice for a v2 hsdir lookup, yet they
1531       never had its descriptor because it was marked as 'not running'
1532       in the consensus.
1533     - If we're trying to fetch a bridge descriptor and there's no way
1534       the bridge authority could help us (for example, we don't know
1535       a digest, or there is no bridge authority), don't be so eager to
1536       fall back to asking the bridge authority.
1537     - If we're using bridges or have strictentrynodes set, and our
1538       chosen exit is in the same family as all our bridges/entry guards,
1539       then be flexible about families.
1541   o Minor features:
1542     - When we negotiate a v2 link-layer connection (not yet implemented),
1543       accept RELAY_EARLY cells and turn them into RELAY cells if we've
1544       negotiated a v1 connection for their next step. Initial code for
1545       proposal 110.
1548 Changes in version 0.2.0.11-alpha - 2007-11-12
1549   This eleventh development snapshot fixes some build problems with
1550   the previous snapshot. It also includes a more secure-by-default exit
1551   policy for relays, fixes an enormous memory leak for exit relays, and
1552   fixes another bug where servers were falling out of the directory list.
1554   o Security fixes:
1555     - Exit policies now reject connections that are addressed to a
1556       relay's public (external) IP address too, unless
1557       ExitPolicyRejectPrivate is turned off. We do this because too
1558       many relays are running nearby to services that trust them based
1559       on network address. Bugfix on 0.1.2.x.
1561   o Major bugfixes:
1562     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
1563       on every successful resolve. Reported by Mike Perry; bugfix
1564       on 0.1.2.x.
1565     - On authorities, never downgrade to old router descriptors simply
1566       because they're listed in the consensus. This created a catch-22
1567       where we wouldn't list a new descriptor because there was an
1568       old one in the consensus, and we couldn't get the new one in the
1569       consensus because we wouldn't list it. Possible fix for bug 548.
1570       Also, this might cause bug 543 to appear on authorities; if so,
1571       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
1573   o Packaging fixes on 0.2.0.10-alpha:
1574     - We were including instructions about what to do with the
1575       src/config/fallback-consensus file, but we weren't actually
1576       including it in the tarball. Disable all of that for now.
1578   o Minor features:
1579     - Allow people to say PreferTunnelledDirConns rather than
1580       PreferTunneledDirConns, for those alternate-spellers out there.
1582   o Minor bugfixes:
1583     - Don't reevaluate all the information from our consensus document
1584       just because we've downloaded a v2 networkstatus that we intend
1585       to cache. Fixes bug 545; bugfix on 0.2.0.x.
1588 Changes in version 0.2.0.10-alpha - 2007-11-10
1589   This tenth development snapshot adds a third v3 directory authority
1590   run by Mike Perry, adds most of Karsten Loesing's new hidden service
1591   descriptor format, fixes a bad crash bug and new bridge bugs introduced
1592   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
1593   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
1594   addresses many more minor issues.
1596   o New directory authorities:
1597     - Set up ides (run by Mike Perry) as the third v3 directory authority.
1599   o Major features:
1600     - Allow tunnelled directory connections to ask for an encrypted
1601       "begin_dir" connection or an anonymized "uses a full Tor circuit"
1602       connection independently. Now we can make anonymized begin_dir
1603       connections for (e.g.) more secure hidden service posting and
1604       fetching.
1605     - More progress on proposal 114: code from Karsten Loesing to
1606       implement new hidden service descriptor format.
1607     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
1608       accommodate the growing number of servers that use the default
1609       and are reaching it.
1610     - Directory authorities use a new formula for selecting which nodes
1611       to advertise as Guards: they must be in the top 7/8 in terms of
1612       how long we have known about them, and above the median of those
1613       nodes in terms of weighted fractional uptime.
1614     - Make "not enough dir info yet" warnings describe *why* Tor feels
1615       it doesn't have enough directory info yet.
1617   o Major bugfixes:
1618     - Stop servers from crashing if they set a Family option (or
1619       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
1620       by Fabian Keil.
1621     - Make bridge users work again -- the move to v3 directories in
1622       0.2.0.9-alpha had introduced a number of bugs that made bridges
1623       no longer work for clients.
1624     - When the clock jumps forward a lot, do not allow the bandwidth
1625       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
1627   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
1628     - When the consensus lists a router descriptor that we previously were
1629       mirroring, but that we considered non-canonical, reload the
1630       descriptor as canonical. This fixes bug 543 where Tor servers
1631       would start complaining after a few days that they don't have
1632       enough directory information to build a circuit.
1633     - Consider replacing the current consensus when certificates arrive
1634       that make the pending consensus valid. Previously, we were only
1635       considering replacement when the new certs _didn't_ help.
1636     - Fix an assert error on startup if we didn't already have the
1637       consensus and certs cached in our datadirectory: we were caching
1638       the consensus in consensus_waiting_for_certs but then free'ing it
1639       right after.
1640     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
1641       Request) if we need more v3 certs but we've already got pending
1642       requests for all of them.
1643     - Correctly back off from failing certificate downloads. Fixes
1644       bug 546.
1645     - Authorities don't vote on the Running flag if they have been running
1646       for less than 30 minutes themselves. Fixes bug 547, where a newly
1647       started authority would vote that everyone was down.
1649   o New requirements:
1650     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
1651       it, it had no AES, and it hasn't seen any security patches since
1652       2004.
1654   o Minor features:
1655     - Clients now hold circuitless TLS connections open for 1.5 times
1656       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
1657       rebuild a new circuit over them within that timeframe. Previously,
1658       they held them open only for KeepalivePeriod (5 minutes).
1659     - Use "If-Modified-Since" to avoid retrieving consensus
1660       networkstatuses that we already have.
1661     - When we have no consensus, check FallbackNetworkstatusFile (defaults
1662       to $PREFIX/share/tor/fallback-consensus) for a consensus.  This way
1663       we start knowing some directory caches.
1664     - When we receive a consensus from the future, warn about skew.
1665     - Improve skew reporting: try to give the user a better log message
1666       about how skewed they are, and how much this matters.
1667     - When we have a certificate for an authority, believe that
1668       certificate's claims about the authority's IP address.
1669     - New --quiet command-line option to suppress the default console log.
1670       Good in combination with --hash-password.
1671     - Authorities send back an X-Descriptor-Not-New header in response to
1672       an accepted-but-discarded descriptor upload.  Partially implements
1673       fix for bug 535.
1674     - Make the log message for "tls error. breaking." more useful.
1675     - Better log messages about certificate downloads, to attempt to
1676       track down the second incarnation of bug 546.
1678   o Minor features (bridges):
1679     - If bridge users set UpdateBridgesFromAuthority, but the digest
1680       they ask for is a 404 from the bridge authority, they now fall
1681       back to trying the bridge directly.
1682     - Bridges now use begin_dir to publish their server descriptor to
1683       the bridge authority, even when they haven't set TunnelDirConns.
1685   o Minor features (controller):
1686     - When reporting clock skew, and we know that the clock is _at least
1687       as skewed_ as some value, but we don't know the actual value,
1688       report the value as a "minimum skew."
1690   o Utilities:
1691     - Update linux-tor-prio.sh script to allow QoS based on the uid of
1692       the Tor process. Patch from Marco Bonetti with tweaks from Mike
1693       Perry.
1695   o Minor bugfixes:
1696     - Refuse to start if both ORPort and UseBridges are set. Bugfix
1697       on 0.2.0.x, suggested by Matt Edman.
1698     - Don't stop fetching descriptors when FetchUselessDescriptors is
1699       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
1700       reported by tup and ioerror.
1701     - Better log message on vote from unknown authority.
1702     - Don't log "Launching 0 request for 0 router" message.
1704   o Minor bugfixes (memory leaks):
1705     - Stop leaking memory every time we parse a v3 certificate. Bugfix
1706       on 0.2.0.1-alpha.
1707     - Stop leaking memory every time we load a v3 certificate. Bugfix
1708       on 0.2.0.1-alpha. Fixes bug 536.
1709     - Stop leaking a cached networkstatus on exit.  Bugfix on
1710       0.2.0.3-alpha.
1711     - Stop leaking voter information every time we free a consensus.
1712       Bugfix on 0.2.0.3-alpha.
1713     - Stop leaking signed data every time we check a voter signature.
1714       Bugfix on 0.2.0.3-alpha.
1715     - Stop leaking a signature every time we fail to parse a consensus or
1716       a vote.  Bugfix on 0.2.0.3-alpha.
1717     - Stop leaking v2_download_status_map on shutdown.  Bugfix on
1718       0.2.0.9-alpha.
1719     - Stop leaking conn->nickname every time we make a connection to a
1720       Tor relay without knowing its expected identity digest (e.g. when
1721       using bridges). Bugfix on 0.2.0.3-alpha.
1723   - Minor bugfixes (portability):
1724     - Run correctly on platforms where rlim_t is larger than unsigned
1725       long, and/or where the real limit for number of open files is
1726       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
1727       particular, these may be needed for OS X 10.5.
1730 Changes in version 0.1.2.18 - 2007-10-28
1731   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
1732   hidden service introduction that were causing huge delays, and a big
1733   bug that was causing some servers to disappear from the network status
1734   lists for a few hours each day.
1736   o Major bugfixes (crashes):
1737     - If a connection is shut down abruptly because of something that
1738       happened inside connection_flushed_some(), do not call
1739       connection_finished_flushing(). Should fix bug 451:
1740       "connection_stop_writing: Assertion conn->write_event failed"
1741       Bugfix on 0.1.2.7-alpha.
1742     - Fix possible segfaults in functions called from
1743       rend_process_relay_cell().
1745   o Major bugfixes (hidden services):
1746     - Hidden services were choosing introduction points uniquely by
1747       hexdigest, but when constructing the hidden service descriptor
1748       they merely wrote the (potentially ambiguous) nickname.
1749     - Clients now use the v2 intro format for hidden service
1750       connections: they specify their chosen rendezvous point by identity
1751       digest rather than by (potentially ambiguous) nickname. These
1752       changes could speed up hidden service connections dramatically.
1754   o Major bugfixes (other):
1755     - Stop publishing a new server descriptor just because we get a
1756       HUP signal. This led (in a roundabout way) to some servers getting
1757       dropped from the networkstatus lists for a few hours each day.
1758     - When looking for a circuit to cannibalize, consider family as well
1759       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
1760       circuit cannibalization).
1761     - When a router wasn't listed in a new networkstatus, we were leaving
1762       the flags for that router alone -- meaning it remained Named,
1763       Running, etc -- even though absence from the networkstatus means
1764       that it shouldn't be considered to exist at all anymore. Now we
1765       clear all the flags for routers that fall out of the networkstatus
1766       consensus. Fixes bug 529.
1768   o Minor bugfixes:
1769     - Don't try to access (or alter) the state file when running
1770       --list-fingerprint or --verify-config or --hash-password. Resolves
1771       bug 499.
1772     - When generating information telling us how to extend to a given
1773       router, do not try to include the nickname if it is
1774       absent. Resolves bug 467.
1775     - Fix a user-triggerable segfault in expand_filename(). (There isn't
1776       a way to trigger this remotely.)
1777     - When sending a status event to the controller telling it that an
1778       OR address is reachable, set the port correctly. (Previously we
1779       were reporting the dir port.)
1780     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
1781       command. Bugfix on 0.1.2.17.
1782     - When loading bandwidth history, do not believe any information in
1783       the future. Fixes bug 434.
1784     - When loading entry guard information, do not believe any information
1785       in the future.
1786     - When we have our clock set far in the future and generate an
1787       onion key, then re-set our clock to be correct, we should not stop
1788       the onion key from getting rotated.
1789     - On some platforms, accept() can return a broken address. Detect
1790       this more quietly, and deal accordingly. Fixes bug 483.
1791     - It's not actually an error to find a non-pending entry in the DNS
1792       cache when canceling a pending resolve. Don't log unless stuff
1793       is fishy. Resolves bug 463.
1794     - Don't reset trusted dir server list when we set a configuration
1795       option. Patch from Robert Hogan.
1796     - Don't try to create the datadir when running --verify-config or
1797       --hash-password. Resolves bug 540.
1800 Changes in version 0.2.0.9-alpha - 2007-10-24
1801   This ninth development snapshot switches clients to the new v3 directory
1802   system; allows servers to be listed in the network status even when they
1803   have the same nickname as a registered server; and fixes many other
1804   bugs including a big one that was causing some servers to disappear
1805   from the network status lists for a few hours each day.
1807   o Major features (directory system):
1808     - Clients now download v3 consensus networkstatus documents instead
1809       of v2 networkstatus documents. Clients and caches now base their
1810       opinions about routers on these consensus documents. Clients only
1811       download router descriptors listed in the consensus.
1812     - Authorities now list servers who have the same nickname as
1813       a different named server, but list them with a new flag,
1814       "Unnamed". Now we can list servers that happen to pick the same
1815       nickname as a server that registered two years ago and then
1816       disappeared. Partially implements proposal 122.
1817     - If the consensus lists a router as "Unnamed", the name is assigned
1818       to a different router: do not identify the router by that name.
1819       Partially implements proposal 122.
1820     - Authorities can now come to a consensus on which method to use to
1821       compute the consensus. This gives us forward compatibility.
1823   o Major bugfixes:
1824     - Stop publishing a new server descriptor just because we HUP or
1825       when we find our DirPort to be reachable but won't actually publish
1826       it. New descriptors without any real changes are dropped by the
1827       authorities, and can screw up our "publish every 18 hours" schedule.
1828       Bugfix on 0.1.2.x.
1829     - When a router wasn't listed in a new networkstatus, we were leaving
1830       the flags for that router alone -- meaning it remained Named,
1831       Running, etc -- even though absence from the networkstatus means
1832       that it shouldn't be considered to exist at all anymore. Now we
1833       clear all the flags for routers that fall out of the networkstatus
1834       consensus. Fixes bug 529; bugfix on 0.1.2.x.
1835     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
1836       extrainfo documents and then discard them immediately for not
1837       matching the latest router. Bugfix on 0.2.0.1-alpha.
1839   o Minor features (v3 directory protocol):
1840     - Allow tor-gencert to generate a new certificate without replacing
1841       the signing key.
1842     - Allow certificates to include an address.
1843     - When we change our directory-cache settings, reschedule all voting
1844       and download operations.
1845     - Reattempt certificate downloads immediately on failure, as long as
1846       we haven't failed a threshold number of times yet.
1847     - Delay retrying consensus downloads while we're downloading
1848       certificates to verify the one we just got.  Also, count getting a
1849       consensus that we already have (or one that isn't valid) as a failure,
1850       and count failing to get the certificates after 20 minutes as a
1851       failure.
1852     - Build circuits and download descriptors even if our consensus is a
1853       little expired. (This feature will go away once authorities are
1854       more reliable.)
1856   o Minor features (router descriptor cache):
1857     - If we find a cached-routers file that's been sitting around for more
1858       than 28 days unmodified, then most likely it's a leftover from
1859       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
1860       routers anyway.
1861     - When we (as a cache) download a descriptor because it was listed
1862       in a consensus, remember when the consensus was supposed to expire,
1863       and don't expire the descriptor until then.
1865   o Minor features (performance):
1866     - Call routerlist_remove_old_routers() much less often. This should
1867       speed startup, especially on directory caches.
1868     - Don't try to launch new descriptor downloads quite so often when we
1869       already have enough directory information to build circuits.
1870     - Base64 decoding was actually showing up on our profile when parsing
1871       the initial descriptor file; switch to an in-process all-at-once
1872       implementation that's about 3.5x times faster than calling out to
1873       OpenSSL.
1875   o Minor features (compilation):
1876     - Detect non-ASCII platforms (if any still exist) and refuse to
1877       build there: some of our code assumes that 'A' is 65 and so on.
1879   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
1880     - Make the "next period" votes into "current period" votes immediately
1881       after publishing the consensus; avoid a heisenbug that made them
1882       stick around indefinitely.
1883     - When we discard a vote as a duplicate, do not report this as
1884       an error.
1885     - Treat missing v3 keys or certificates as an error when running as a
1886       v3 directory authority.
1887     - When we're configured to be a v3 authority, but we're only listed
1888       as a non-v3 authority in our DirServer line for ourself, correct
1889       the listing.
1890     - If an authority doesn't have a qualified hostname, just put
1891       its address in the vote. This fixes the problem where we referred to
1892       "moria on moria:9031."
1893     - Distinguish between detached signatures for the wrong period, and
1894       detached signatures for a divergent vote.
1895     - Fix a small memory leak when computing a consensus.
1896     - When there's no concensus, we were forming a vote every 30
1897       minutes, but writing the "valid-after" line in our vote based
1898       on our configured V3AuthVotingInterval: so unless the intervals
1899       matched up, we immediately rejected our own vote because it didn't
1900       start at the voting interval that caused us to construct a vote.
1902   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
1903     - Delete unverified-consensus when the real consensus is set.
1904     - Consider retrying a consensus networkstatus fetch immediately
1905       after one fails: don't wait 60 seconds to notice.
1906     - When fetching a consensus as a cache, wait until a newer consensus
1907       should exist before trying to replace the current one.
1908     - Use a more forgiving schedule for retrying failed consensus
1909       downloads than for other types.
1911   o Minor bugfixes (other directory issues):
1912     - Correct the implementation of "download votes by digest." Bugfix on
1913       0.2.0.8-alpha.
1914     - Authorities no longer send back "400 you're unreachable please fix
1915       it" errors to Tor servers that aren't online all the time. We're
1916       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
1918   o Minor bugfixes (controller):
1919     - Don't reset trusted dir server list when we set a configuration
1920       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
1921     - Respond to INT and TERM SIGNAL commands before we execute the
1922       signal, in case the signal shuts us down. We had a patch in
1923       0.1.2.1-alpha that tried to do this by queueing the response on
1924       the connection's buffer before shutting down, but that really
1925       isn't the same thing at all. Bug located by Matt Edman.
1927   o Minor bugfixes (misc):
1928     - Correctly check for bad options to the "PublishServerDescriptor"
1929       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
1930     - Stop leaking memory on failing case of base32_decode, and make
1931       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
1932     - Don't try to download extrainfo documents when we're trying to
1933       fetch enough directory info to build a circuit: having enough
1934       info should get priority. Bugfix on 0.2.0.x.
1935     - Don't complain that "your server has not managed to confirm that its
1936       ports are reachable" if we haven't been able to build any circuits
1937       yet. Bug found by spending four hours without a v3 consensus. Bugfix
1938       on 0.1.2.x.
1939     - Detect the reason for failing to mmap a descriptor file we just
1940       wrote, and give a more useful log message.  Fixes bug 533. Bugfix
1941       on 0.1.2.x.
1943   o Code simplifications and refactoring:
1944     - Remove support for the old bw_accounting file: we've been storing
1945       bandwidth accounting information in the state file since
1946       0.1.2.5-alpha.  This may result in bandwidth accounting errors
1947       if you try to upgrade from 0.1.1.x or earlier, or if you try to
1948       downgrade to 0.1.1.x or earlier.
1949     - New convenience code to locate a file within the DataDirectory.
1950     - Move non-authority functionality out of dirvote.c.
1951     - Refactor the arguments for router_pick_{directory_|trusteddir}server
1952       so that they all take the same named flags.
1954   o Utilities
1955     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
1956       Unix users an easy way to script their Tor process (e.g. by
1957       adjusting bandwidth based on the time of the day).
1960 Changes in version 0.2.0.8-alpha - 2007-10-12
1961   This eighth development snapshot fixes a crash bug that's been bothering
1962   us since February 2007, lets bridge authorities store a list of bridge
1963   descriptors they've seen, gets v3 directory voting closer to working,
1964   starts caching v3 directory consensus documents on directory mirrors,
1965   and fixes a variety of smaller issues including some minor memory leaks.
1967   o Major features (router descriptor cache):
1968     - Store routers in a file called cached-descriptors instead of in
1969       cached-routers. Initialize cached-descriptors from cached-routers
1970       if the old format is around. The new format allows us to store
1971       annotations along with descriptors.
1972     - Use annotations to record the time we received each descriptor, its
1973       source, and its purpose.
1974     - Disable the SETROUTERPURPOSE controller command: it is now
1975       obsolete.
1976     - Controllers should now specify cache=no or cache=yes when using
1977       the +POSTDESCRIPTOR command.
1978     - Bridge authorities now write bridge descriptors to disk, meaning
1979       we can export them to other programs and begin distributing them
1980       to blocked users.
1982   o Major features (directory authorities):
1983     - When a v3 authority is missing votes or signatures, it now tries
1984       to fetch them.
1985     - Directory authorities track weighted fractional uptime as well as
1986       weighted mean-time-between failures.  WFU is suitable for deciding
1987       whether a node is "usually up", while MTBF is suitable for deciding
1988       whether a node is "likely to stay up."  We need both, because
1989       "usually up" is a good requirement for guards, while "likely to
1990       stay up" is a good requirement for long-lived connections.
1992   o Major features (v3 directory system):
1993     - Caches now download v3 network status documents as needed,
1994       and download the descriptors listed in them.
1995     - All hosts now attempt to download and keep fresh v3 authority
1996       certificates, and re-attempt after failures.
1997     - More internal-consistency checks for vote parsing.
1999   o Major bugfixes (crashes):
2000     - If a connection is shut down abruptly because of something that
2001       happened inside connection_flushed_some(), do not call
2002       connection_finished_flushing(). Should fix bug 451. Bugfix on
2003       0.1.2.7-alpha.
2005   o Major bugfixes (performance):
2006     - Fix really bad O(n^2) performance when parsing a long list of
2007       routers: Instead of searching the entire list for an "extra-info "
2008       string which usually wasn't there, once for every routerinfo
2009       we read, just scan lines forward until we find one we like.
2010       Bugfix on 0.2.0.1.
2011     - When we add data to a write buffer in response to the data on that
2012       write buffer getting low because of a flush, do not consider the
2013       newly added data as a candidate for immediate flushing, but rather
2014       make it wait until the next round of writing. Otherwise, we flush
2015       and refill recursively, and a single greedy TLS connection can
2016       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
2018   o Minor features (v3 authority system):
2019     - Add more ways for tools to download the votes that lead to the
2020       current consensus.
2021     - Send a 503 when low on bandwidth and a vote, consensus, or
2022       certificate is requested.
2023     - If-modified-since is now implemented properly for all kinds of
2024       certificate requests.
2026   o Minor bugfixes (network statuses):
2027     - Tweak the implementation of proposal 109 slightly: allow at most
2028       two Tor servers on the same IP address, except if it's the location
2029       of a directory authority, in which case allow five. Bugfix on
2030       0.2.0.3-alpha.
2032   o Minor bugfixes (controller):
2033     - When sending a status event to the controller telling it that an
2034       OR address is reachable, set the port correctly. (Previously we
2035       were reporting the dir port.) Bugfix on 0.1.2.x.
2037   o Minor bugfixes (v3 directory system):
2038     - Fix logic to look up a cert by its signing key digest. Bugfix on
2039       0.2.0.7-alpha.
2040     - Only change the reply to a vote to "OK" if it's not already
2041       set. This gets rid of annoying "400 OK" log messages, which may
2042       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
2043     - When we get a valid consensus, recompute the voting schedule.
2044     - Base the valid-after time of a vote on the consensus voting
2045       schedule, not on our preferred schedule.
2046     - Make the return values and messages from signature uploads and
2047       downloads more sensible.
2048     - Fix a memory leak when serving votes and consensus documents, and
2049       another when serving certificates.
2051   o Minor bugfixes (performance):
2052     - Use a slightly simpler string hashing algorithm (copying Python's
2053       instead of Java's) and optimize our digest hashing algorithm to take
2054       advantage of 64-bit platforms and to remove some possibly-costly
2055       voodoo.
2056     - Fix a minor memory leak whenever we parse guards from our state
2057       file. Bugfix on 0.2.0.7-alpha.
2058     - Fix a minor memory leak whenever we write out a file. Bugfix on
2059       0.2.0.7-alpha.
2060     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
2061       command. Bugfix on 0.2.0.5-alpha.
2063   o Minor bugfixes (portability):
2064     - On some platforms, accept() can return a broken address. Detect
2065       this more quietly, and deal accordingly. Fixes bug 483.
2066     - Stop calling tor_strlower() on uninitialized memory in some cases.
2067       Bugfix in 0.2.0.7-alpha.
2069   o Minor bugfixes (usability):
2070     - Treat some 403 responses from directory servers as INFO rather than
2071       WARN-severity events.
2072     - It's not actually an error to find a non-pending entry in the DNS
2073       cache when canceling a pending resolve. Don't log unless stuff is
2074       fishy. Resolves bug 463.
2076   o Minor bugfixes (anonymity):
2077     - Never report that we've used more bandwidth than we're willing to
2078       relay: it leaks how much non-relay traffic we're using. Resolves
2079       bug 516.
2080     - When looking for a circuit to cannibalize, consider family as well
2081       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
2082       circuit cannibalization).
2084   o Code simplifications and refactoring:
2085     - Make a bunch of functions static. Remove some dead code.
2086     - Pull out about a third of the really big routerlist.c; put it in a
2087       new module, networkstatus.c.
2088     - Merge the extra fields in local_routerstatus_t back into
2089       routerstatus_t: we used to need one routerstatus_t for each
2090       authority's opinion, plus a local_routerstatus_t for the locally
2091       computed consensus opinion. To save space, we put the locally
2092       modified fields into local_routerstatus_t, and only the common
2093       stuff into routerstatus_t. But once v3 directories are in use,
2094       clients and caches will no longer need to hold authority opinions;
2095       thus, the rationale for keeping the types separate is now gone.
2096     - Make the code used to reschedule and reattempt downloads more
2097       uniform.
2098     - Turn all 'Are we a directory server/mirror?' logic into a call to
2099       dirserver_mode().
2100     - Remove the code to generate the oldest (v1) directory format.
2101       The code has been disabled since 0.2.0.5-alpha.
2104 Changes in version 0.2.0.7-alpha - 2007-09-21
2105   This seventh development snapshot makes bridges work again, makes bridge
2106   authorities work for the first time, fixes two huge performance flaws
2107   in hidden services, and fixes a variety of minor issues.
2109   o New directory authorities:
2110     - Set up moria1 and tor26 as the first v3 directory authorities. See
2111       doc/spec/dir-spec.txt for details on the new directory design.
2113   o Major bugfixes (crashes):
2114     - Fix possible segfaults in functions called from
2115       rend_process_relay_cell(). Bugfix on 0.1.2.x.
2117   o Major bugfixes (bridges):
2118     - Fix a bug that made servers send a "404 Not found" in response to
2119       attempts to fetch their server descriptor. This caused Tor servers
2120       to take many minutes to establish reachability for their DirPort,
2121       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
2122     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
2123       users configure that and specify a bridge with an identity
2124       fingerprint, now they will lookup the bridge descriptor at the
2125       default bridge authority via a one-hop tunnel, but once circuits
2126       are established they will switch to a three-hop tunnel for later
2127       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
2129   o Major bugfixes (hidden services):
2130     - Hidden services were choosing introduction points uniquely by
2131       hexdigest, but when constructing the hidden service descriptor
2132       they merely wrote the (potentially ambiguous) nickname.
2133     - Clients now use the v2 intro format for hidden service
2134       connections: they specify their chosen rendezvous point by identity
2135       digest rather than by (potentially ambiguous) nickname. Both
2136       are bugfixes on 0.1.2.x, and they could speed up hidden service
2137       connections dramatically. Thanks to Karsten Loesing.
2139   o Minor features (security):
2140     - As a client, do not believe any server that tells us that an
2141       address maps to an internal address space.
2142     - Make it possible to enable HashedControlPassword and
2143       CookieAuthentication at the same time.
2145   o Minor features (guard nodes):
2146     - Tag every guard node in our state file with the version that
2147       we believe added it, or with our own version if we add it. This way,
2148       if a user temporarily runs an old version of Tor and then switches
2149       back to a new one, she doesn't automatically lose her guards.
2151   o Minor features (speed):
2152     - When implementing AES counter mode, update only the portions of the
2153       counter buffer that need to change, and don't keep separate
2154       network-order and host-order counters when they are the same (i.e.,
2155       on big-endian hosts.)
2157   o Minor features (controller):
2158     - Accept LF instead of CRLF on controller, since some software has a
2159       hard time generating real Internet newlines.
2160     - Add GETINFO values for the server status events
2161       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
2162       Robert Hogan.
2164   o Removed features:
2165      - Routers no longer include bandwidth-history lines in their
2166        descriptors; this information is already available in extra-info
2167        documents, and including it in router descriptors took up 60%
2168        (!) of compressed router descriptor downloads. Completes
2169        implementation of proposal 104.
2170      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
2171        and TorControl.py, as they use the old v0 controller protocol,
2172        and are obsoleted by TorFlow anyway.
2173      - Drop support for v1 rendezvous descriptors, since we never used
2174        them anyway, and the code has probably rotted by now. Based on
2175        patch from Karsten Loesing.
2176      - On OSX, stop warning the user that kqueue support in libevent is
2177       "experimental", since it seems to have worked fine for ages.
2179   o Minor bugfixes:
2180     - When generating information telling us how to extend to a given
2181       router, do not try to include the nickname if it is absent. Fixes
2182       bug 467. Bugfix on 0.2.0.3-alpha.
2183     - Fix a user-triggerable (but not remotely-triggerable) segfault
2184       in expand_filename(). Bugfix on 0.1.2.x.
2185     - Fix a memory leak when freeing incomplete requests from DNSPort.
2186       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
2187     - Don't try to access (or alter) the state file when running
2188       --list-fingerprint or --verify-config or --hash-password. (Resolves
2189       bug 499.) Bugfix on 0.1.2.x.
2190     - Servers used to decline to publish their DirPort if their
2191       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
2192       were below a threshold. Now they only look at BandwidthRate and
2193       RelayBandwidthRate. Bugfix on 0.1.2.x.
2194     - Remove an optimization in the AES counter-mode code that assumed
2195       that the counter never exceeded 2^68. When the counter can be set
2196       arbitrarily as an IV (as it is by Karsten's new hidden services
2197       code), this assumption no longer holds. Bugfix on 0.1.2.x.
2198     - Resume listing "AUTHORITY" flag for authorities in network status.
2199       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
2201   o Code simplifications and refactoring:
2202     - Revamp file-writing logic so we don't need to have the entire
2203       contents of a file in memory at once before we write to disk. Tor,
2204       meet stdio.
2205     - Turn "descriptor store" into a full-fledged type.
2206     - Move all NT services code into a separate source file.
2207     - Unify all code that computes medians, percentile elements, etc.
2208     - Get rid of a needless malloc when parsing address policies.
2211 Changes in version 0.1.2.17 - 2007-08-30
2212   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
2213   X bundles. Vidalia 0.0.14 makes authentication required for the
2214   ControlPort in the default configuration, which addresses important
2215   security risks. Everybody who uses Vidalia (or another controller)
2216   should upgrade.
2218   In addition, this Tor update fixes major load balancing problems with
2219   path selection, which should speed things up a lot once many people
2220   have upgraded.
2222   o Major bugfixes (security):
2223     - We removed support for the old (v0) control protocol. It has been
2224       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
2225       become more of a headache than it's worth.
2227   o Major bugfixes (load balancing):
2228     - When choosing nodes for non-guard positions, weight guards
2229       proportionally less, since they already have enough load. Patch
2230       from Mike Perry.
2231     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
2232       will allow fast Tor servers to get more attention.
2233     - When we're upgrading from an old Tor version, forget our current
2234       guards and pick new ones according to the new weightings. These
2235       three load balancing patches could raise effective network capacity
2236       by a factor of four. Thanks to Mike Perry for measurements.
2238   o Major bugfixes (stream expiration):
2239     - Expire not-yet-successful application streams in all cases if
2240       they've been around longer than SocksTimeout. Right now there are
2241       some cases where the stream will live forever, demanding a new
2242       circuit every 15 seconds. Fixes bug 454; reported by lodger.
2244   o Minor features (controller):
2245     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
2246       is valid before any authentication has been received. It tells
2247       a controller what kind of authentication is expected, and what
2248       protocol is spoken. Implements proposal 119.
2250   o Minor bugfixes (performance):
2251     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
2252       greatly speeding up loading cached-routers from disk on startup.
2253     - Disable sentinel-based debugging for buffer code: we squashed all
2254       the bugs that this was supposed to detect a long time ago, and now
2255       its only effect is to change our buffer sizes from nice powers of
2256       two (which platform mallocs tend to like) to values slightly over
2257       powers of two (which make some platform mallocs sad).
2259   o Minor bugfixes (misc):
2260     - If exit bandwidth ever exceeds one third of total bandwidth, then
2261       use the correct formula to weight exit nodes when choosing paths.
2262       Based on patch from Mike Perry.
2263     - Choose perfectly fairly among routers when choosing by bandwidth and
2264       weighting by fraction of bandwidth provided by exits. Previously, we
2265       would choose with only approximate fairness, and correct ourselves
2266       if we ran off the end of the list.
2267     - If we require CookieAuthentication but we fail to write the
2268       cookie file, we would warn but not exit, and end up in a state
2269       where no controller could authenticate. Now we exit.
2270     - If we require CookieAuthentication, stop generating a new cookie
2271       every time we change any piece of our config.
2272     - Refuse to start with certain directory authority keys, and
2273       encourage people using them to stop.
2274     - Terminate multi-line control events properly. Original patch
2275       from tup.
2276     - Fix a minor memory leak when we fail to find enough suitable
2277       servers to choose a circuit.
2278     - Stop leaking part of the descriptor when we run into a particularly
2279       unparseable piece of it.
2282 Changes in version 0.2.0.6-alpha - 2007-08-26
2283   This sixth development snapshot features a new Vidalia version in the
2284   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
2285   the ControlPort in the default configuration, which addresses important
2286   security risks.
2288   In addition, this snapshot fixes major load balancing problems
2289   with path selection, which should speed things up a lot once many
2290   people have upgraded. The directory authorities also use a new
2291   mean-time-between-failure approach to tracking which servers are stable,
2292   rather than just looking at the most recent uptime.
2294   o New directory authorities:
2295     - Set up Tonga as the default bridge directory authority.
2297   o Major features:
2298     - Directory authorities now track servers by weighted
2299       mean-times-between-failures. When we have 4 or more days of data,
2300       use measured MTBF rather than declared uptime to decide whether
2301       to call a router Stable. Implements proposal 108.
2303   o Major bugfixes (load balancing):
2304     - When choosing nodes for non-guard positions, weight guards
2305       proportionally less, since they already have enough load. Patch
2306       from Mike Perry.
2307     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
2308       will allow fast Tor servers to get more attention.
2309     - When we're upgrading from an old Tor version, forget our current
2310       guards and pick new ones according to the new weightings. These
2311       three load balancing patches could raise effective network capacity
2312       by a factor of four. Thanks to Mike Perry for measurements.
2314   o Major bugfixes (descriptor parsing):
2315     - Handle unexpected whitespace better in malformed descriptors. Bug
2316       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
2318   o Minor features:
2319     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
2320       GETINFO for Torstat to use until it can switch to using extrainfos.
2321     - Optionally (if built with -DEXPORTMALLINFO) export the output
2322       of mallinfo via http, as tor/mallinfo.txt. Only accessible
2323       from localhost.
2325   o Minor bugfixes:
2326     - Do not intermix bridge routers with controller-added
2327       routers. (Bugfix on 0.2.0.x)
2328     - Do not fail with an assert when accept() returns an unexpected
2329       address family. Addresses but does not wholly fix bug 483. (Bugfix
2330       on 0.2.0.x)
2331     - Let directory authorities startup even when they can't generate
2332       a descriptor immediately, e.g. because they don't know their
2333       address.
2334     - Stop putting the authentication cookie in a file called "0"
2335       in your working directory if you don't specify anything for the
2336       new CookieAuthFile option. Reported by Matt Edman.
2337     - Make it possible to read the PROTOCOLINFO response in a way that
2338       conforms to our control-spec. Reported by Matt Edman.
2339     - Fix a minor memory leak when we fail to find enough suitable
2340       servers to choose a circuit. Bugfix on 0.1.2.x.
2341     - Stop leaking part of the descriptor when we run into a particularly
2342       unparseable piece of it. Bugfix on 0.1.2.x.
2343     - Unmap the extrainfo cache file on exit.
2346 Changes in version 0.2.0.5-alpha - 2007-08-19
2347   This fifth development snapshot fixes compilation on Windows again;
2348   fixes an obnoxious client-side bug that slowed things down and put
2349   extra load on the network; gets us closer to using the v3 directory
2350   voting scheme; makes it easier for Tor controllers to use cookie-based
2351   authentication; and fixes a variety of other bugs.
2353   o Removed features:
2354     - Version 1 directories are no longer generated in full. Instead,
2355       authorities generate and serve "stub" v1 directories that list
2356       no servers. This will stop Tor versions 0.1.0.x and earlier from
2357       working, but (for security reasons) nobody should be running those
2358       versions anyway.
2360   o Major bugfixes (compilation, 0.2.0.x):
2361     - Try to fix Win32 compilation again: improve checking for IPv6 types.
2362     - Try to fix MSVC compilation: build correctly on platforms that do
2363       not define s6_addr16 or s6_addr32.
2364     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
2365       Zhou.
2367   o Major bugfixes (stream expiration):
2368     - Expire not-yet-successful application streams in all cases if
2369       they've been around longer than SocksTimeout. Right now there are
2370       some cases where the stream will live forever, demanding a new
2371       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
2372       reported by lodger.
2374   o Minor features (directory servers):
2375     - When somebody requests a list of statuses or servers, and we have
2376       none of those, return a 404 rather than an empty 200.
2378   o Minor features (directory voting):
2379     - Store v3 consensus status consensuses on disk, and reload them
2380       on startup.
2382   o Minor features (security):
2383     - Warn about unsafe ControlPort configurations.
2384     - Refuse to start with certain directory authority keys, and
2385       encourage people using them to stop.
2387   o Minor features (controller):
2388     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
2389       is valid before any authentication has been received. It tells
2390       a controller what kind of authentication is expected, and what
2391       protocol is spoken. Implements proposal 119.
2392     - New config option CookieAuthFile to choose a new location for the
2393       cookie authentication file, and config option
2394       CookieAuthFileGroupReadable to make it group-readable.
2396   o Minor features (unit testing):
2397     - Add command-line arguments to unit-test executable so that we can
2398       invoke any chosen test from the command line rather than having
2399       to run the whole test suite at once; and so that we can turn on
2400       logging for the unit tests.
2402   o Minor bugfixes (on 0.1.2.x):
2403     - If we require CookieAuthentication but we fail to write the
2404       cookie file, we would warn but not exit, and end up in a state
2405       where no controller could authenticate. Now we exit.
2406     - If we require CookieAuthentication, stop generating a new cookie
2407       every time we change any piece of our config.
2408     - When loading bandwidth history, do not believe any information in
2409       the future.  Fixes bug 434.
2410     - When loading entry guard information, do not believe any information
2411       in the future.
2412     - When we have our clock set far in the future and generate an
2413       onion key, then re-set our clock to be correct, we should not stop
2414       the onion key from getting rotated.
2415     - Clean up torrc sample config file.
2416     - Do not automatically run configure from autogen.sh. This
2417       non-standard behavior tended to annoy people who have built other
2418       programs.
2420   o Minor bugfixes (on 0.2.0.x):
2421     - Fix a bug with AutomapHostsOnResolve that would always cause
2422       the second request to fail. Bug reported by Kate. Bugfix on
2423       0.2.0.3-alpha.
2424     - Fix a bug in ADDRMAP controller replies that would sometimes
2425       try to print a NULL. Patch from tup.
2426     - Read v3 directory authority keys from the right location.
2427     - Numerous bugfixes to directory voting code.
2430 Changes in version 0.1.2.16 - 2007-08-01
2431   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
2432   remote attacker in certain situations to rewrite the user's torrc
2433   configuration file. This can completely compromise anonymity of users
2434   in most configurations, including those running the Vidalia bundles,
2435   TorK, etc. Or worse.
2437   o Major security fixes:
2438     - Close immediately after missing authentication on control port;
2439       do not allow multiple authentication attempts.
2442 Changes in version 0.2.0.4-alpha - 2007-08-01
2443   This fourth development snapshot fixes a critical security vulnerability
2444   for most users, specifically those running Vidalia, TorK, etc. Everybody
2445   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
2447   o Major security fixes:
2448     - Close immediately after missing authentication on control port;
2449       do not allow multiple authentication attempts.
2451   o Major bugfixes (compilation):
2452     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
2453       defined there.
2455   o Minor features (performance):
2456     - Be even more aggressive about releasing RAM from small
2457       empty buffers. Thanks to our free-list code, this shouldn't be too
2458       performance-intensive.
2459     - Disable sentinel-based debugging for buffer code: we squashed all
2460       the bugs that this was supposed to detect a long time ago, and
2461       now its only effect is to change our buffer sizes from nice
2462       powers of two (which platform mallocs tend to like) to values
2463       slightly over powers of two (which make some platform mallocs sad).
2464     - Log malloc statistics from mallinfo() on platforms where it
2465       exists.
2468 Changes in version 0.2.0.3-alpha - 2007-07-29
2469   This third development snapshot introduces new experimental
2470   blocking-resistance features and a preliminary version of the v3
2471   directory voting design, and includes many other smaller features
2472   and bugfixes.
2474   o Major features:
2475     - The first pieces of our "bridge" design for blocking-resistance
2476       are implemented. People can run bridge directory authorities;
2477       people can run bridges; and people can configure their Tor clients
2478       with a set of bridges to use as the first hop into the Tor network.
2479       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
2480       details.
2481     - Create listener connections before we setuid to the configured
2482       User and Group. Now non-Windows users can choose port values
2483       under 1024, start Tor as root, and have Tor bind those ports
2484       before it changes to another UID. (Windows users could already
2485       pick these ports.)
2486     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
2487       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
2488       on "vserver" accounts. (Patch from coderman.)
2489     - Be even more aggressive about separating local traffic from relayed
2490       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
2492   o Major features (experimental):
2493     - First cut of code for "v3 dir voting": directory authorities will
2494       vote on a common network status document rather than each publishing
2495       their own opinion. This code needs more testing and more corner-case
2496       handling before it's ready for use.
2498   o Security fixes:
2499     - Directory authorities now call routers Fast if their bandwidth is
2500       at least 100KB/s, and consider their bandwidth adequate to be a
2501       Guard if it is at least 250KB/s, no matter the medians. This fix
2502       complements proposal 107. [Bugfix on 0.1.2.x]
2503     - Directory authorities now never mark more than 3 servers per IP as
2504       Valid and Running. (Implements proposal 109, by Kevin Bauer and
2505       Damon McCoy.)
2506     - Minor change to organizationName and commonName generation
2507       procedures in TLS certificates during Tor handshakes, to invalidate
2508       some earlier censorware approaches. This is not a long-term
2509       solution, but applying it will give us a bit of time to look into
2510       the epidemiology of countermeasures as they spread.
2512   o Major bugfixes (directory):
2513     - Rewrite directory tokenization code to never run off the end of
2514       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
2516   o Minor features (controller):
2517     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
2518       match requests to applications. (Patch from Robert Hogan.)
2519     - Report address and port correctly on connections to DNSPort. (Patch
2520       from Robert Hogan.)
2521     - Add a RESOLVE command to launch hostname lookups. (Original patch
2522       from Robert Hogan.)
2523     - Add GETINFO status/enough-dir-info to let controllers tell whether
2524       Tor has downloaded sufficient directory information. (Patch
2525       from Tup.)
2526     - You can now use the ControlSocket option to tell Tor to listen for
2527       controller connections on Unix domain sockets on systems that
2528       support them. (Patch from Peter Palfrader.)
2529     - STREAM NEW events are generated for DNSPort requests and for
2530       tunneled directory connections. (Patch from Robert Hogan.)
2531     - New "GETINFO address-mappings/*" command to get address mappings
2532       with expiry information. "addr-mappings/*" is now deprecated.
2533       (Patch from Tup.)
2535   o Minor features (misc):
2536     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
2537       from croup.)
2538     - The tor-gencert tool for v3 directory authorities now creates all
2539       files as readable to the file creator only, and write-protects
2540       the authority identity key.
2541     - When dumping memory usage, list bytes used in buffer memory
2542       free-lists.
2543     - When running with dmalloc, dump more stats on hup and on exit.
2544     - Directory authorities now fail quickly and (relatively) harmlessly
2545       if they generate a network status document that is somehow
2546       malformed.
2548   o Traffic load balancing improvements:
2549     - If exit bandwidth ever exceeds one third of total bandwidth, then
2550       use the correct formula to weight exit nodes when choosing paths.
2551       (Based on patch from Mike Perry.)
2552     - Choose perfectly fairly among routers when choosing by bandwidth and
2553       weighting by fraction of bandwidth provided by exits. Previously, we
2554       would choose with only approximate fairness, and correct ourselves
2555       if we ran off the end of the list. [Bugfix on 0.1.2.x]
2557   o Performance improvements:
2558     - Be more aggressive with freeing buffer RAM or putting it on the
2559       memory free lists.
2560     - Use Critical Sections rather than Mutexes for synchronizing threads
2561       on win32; Mutexes are heavier-weight, and designed for synchronizing
2562       between processes.
2564   o Deprecated and removed features:
2565     - RedirectExits is now deprecated.
2566     - Stop allowing address masks that do not correspond to bit prefixes.
2567       We have warned about these for a really long time; now it's time
2568       to reject them. (Patch from croup.)
2570   o Minor bugfixes (directory):
2571     - Fix another crash bug related to extra-info caching. (Bug found by
2572       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
2573     - Directories no longer return a "304 not modified" when they don't
2574       have the networkstatus the client asked for. Also fix a memory
2575       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
2576     - We had accidentally labelled 0.1.2.x directory servers as not
2577       suitable for begin_dir requests, and had labelled no directory
2578       servers as suitable for uploading extra-info documents. [Bugfix
2579       on 0.2.0.1-alpha]
2581   o Minor bugfixes (dns):
2582     - Fix a crash when DNSPort is set more than once. (Patch from Robert
2583       Hogan.) [Bugfix on 0.2.0.2-alpha]
2584     - Add DNSPort connections to the global connection list, so that we
2585       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
2586       on 0.2.0.2-alpha]
2587     - Fix a dangling reference that could lead to a crash when DNSPort is
2588       changed or closed (Patch from Robert Hogan.) [Bugfix on
2589       0.2.0.2-alpha]
2591   o Minor bugfixes (controller):
2592     - Provide DNS expiry times in GMT, not in local time. For backward
2593       compatibility, ADDRMAP events only provide GMT expiry in an extended
2594       field. "GETINFO address-mappings" always does the right thing.
2595     - Use CRLF line endings properly in NS events.
2596     - Terminate multi-line control events properly. (Original patch
2597       from tup.) [Bugfix on 0.1.2.x-alpha]
2598     - Do not include spaces in SOURCE_ADDR fields in STREAM
2599       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
2602 Changes in version 0.1.2.15 - 2007-07-17
2603   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
2604   problems, fixes compilation on BSD, and fixes a variety of other
2605   bugs. Everybody should upgrade.
2607   o Major bugfixes (compilation):
2608     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
2610   o Major bugfixes (crashes):
2611     - Try even harder not to dereference the first character after
2612       an mmap(). Reported by lodger.
2613     - Fix a crash bug in directory authorities when we re-number the
2614       routerlist while inserting a new router.
2615     - When the cached-routers file is an even multiple of the page size,
2616       don't run off the end and crash. (Fixes bug 455; based on idea
2617       from croup.)
2618     - Fix eventdns.c behavior on Solaris: It is critical to include
2619       orconfig.h _before_ sys/types.h, so that we can get the expected
2620       definition of _FILE_OFFSET_BITS.
2622   o Major bugfixes (security):
2623     - Fix a possible buffer overrun when using BSD natd support. Bug
2624       found by croup.
2625     - When sending destroy cells from a circuit's origin, don't include
2626       the reason for tearing down the circuit. The spec says we didn't,
2627       and now we actually don't. Reported by lodger.
2628     - Keep streamids from different exits on a circuit separate. This
2629       bug may have allowed other routers on a given circuit to inject
2630       cells into streams. Reported by lodger; fixes bug 446.
2631     - If there's a never-before-connected-to guard node in our list,
2632       never choose any guards past it. This way we don't expand our
2633       guard list unless we need to.
2635   o Minor bugfixes (guard nodes):
2636     - Weight guard selection by bandwidth, so that low-bandwidth nodes
2637       don't get overused as guards.
2639   o Minor bugfixes (directory):
2640     - Correctly count the number of authorities that recommend each
2641       version. Previously, we were under-counting by 1.
2642     - Fix a potential crash bug when we load many server descriptors at
2643       once and some of them make others of them obsolete. Fixes bug 458.
2645   o Minor bugfixes (hidden services):
2646     - Stop tearing down the whole circuit when the user asks for a
2647       connection to a port that the hidden service didn't configure.
2648       Resolves bug 444.
2650   o Minor bugfixes (misc):
2651     - On Windows, we were preventing other processes from reading
2652       cached-routers while Tor was running. Reported by janbar.
2653     - Fix a possible (but very unlikely) bug in picking routers by
2654       bandwidth. Add a log message to confirm that it is in fact
2655       unlikely. Patch from lodger.
2656     - Backport a couple of memory leak fixes.
2657     - Backport miscellaneous cosmetic bugfixes.
2660 Changes in version 0.2.0.2-alpha - 2007-06-02
2661   o Major bugfixes on 0.2.0.1-alpha:
2662     - Fix an assertion failure related to servers without extra-info digests.
2663       Resolves bugs 441 and 442.
2665   o Minor features (directory):
2666     - Support "If-Modified-Since" when answering HTTP requests for
2667       directories, running-routers documents, and network-status documents.
2668       (There's no need to support it for router descriptors, since those
2669       are downloaded by descriptor digest.)
2671   o Minor build issues:
2672     - Clear up some MIPSPro compiler warnings.
2673     - When building from a tarball on a machine that happens to have SVK
2674       installed, report the micro-revision as whatever version existed
2675       in the tarball, not as "x".
2678 Changes in version 0.2.0.1-alpha - 2007-06-01
2679   This early development snapshot provides new features for people running
2680   Tor as both a client and a server (check out the new RelayBandwidth
2681   config options); lets Tor run as a DNS proxy; and generally moves us
2682   forward on a lot of fronts.
2684   o Major features, server usability:
2685     - New config options RelayBandwidthRate and RelayBandwidthBurst:
2686       a separate set of token buckets for relayed traffic. Right now
2687       relayed traffic is defined as answers to directory requests, and
2688       OR connections that don't have any local circuits on them.
2690   o Major features, client usability:
2691     - A client-side DNS proxy feature to replace the need for
2692       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
2693       for DNS requests on port 9999, use the Tor network to resolve them
2694       anonymously, and send the reply back like a regular DNS server.
2695       The code still only implements a subset of DNS.
2696     - Make PreferTunneledDirConns and TunnelDirConns work even when
2697       we have no cached directory info. This means Tor clients can now
2698       do all of their connections protected by TLS.
2700   o Major features, performance and efficiency:
2701     - Directory authorities accept and serve "extra info" documents for
2702       routers. These documents contain fields from router descriptors
2703       that aren't usually needed, and that use a lot of excess
2704       bandwidth. Once these fields are removed from router descriptors,
2705       the bandwidth savings should be about 60%. [Partially implements
2706       proposal 104.]
2707     - Servers upload extra-info documents to any authority that accepts
2708       them. Authorities (and caches that have been configured to download
2709       extra-info documents) download them as needed. [Partially implements
2710       proposal 104.]
2711     - Change the way that Tor buffers data that it is waiting to write.
2712       Instead of queueing data cells in an enormous ring buffer for each
2713       client->OR or OR->OR connection, we now queue cells on a separate
2714       queue for each circuit.  This lets us use less slack memory, and
2715       will eventually let us be smarter about prioritizing different kinds
2716       of traffic.
2717     - Use memory pools to allocate cells with better speed and memory
2718       efficiency, especially on platforms where malloc() is inefficient.
2719     - Stop reading on edge connections when their corresponding circuit
2720       buffers are full; start again as the circuits empty out.
2722   o Major features, other:
2723     - Add an HSAuthorityRecordStats option that hidden service authorities
2724       can use to track statistics of overall hidden service usage without
2725       logging information that would be very useful to an attacker.
2726     - Start work implementing multi-level keys for directory authorities:
2727       Add a standalone tool to generate key certificates. (Proposal 103.)
2729   o Security fixes:
2730     - Directory authorities now call routers Stable if they have an
2731       uptime of at least 30 days, even if that's not the median uptime
2732       in the network. Implements proposal 107, suggested by Kevin Bauer
2733       and Damon McCoy.
2735   o Minor fixes (resource management):
2736     - Count the number of open sockets separately from the number
2737       of active connection_t objects. This will let us avoid underusing
2738       our allocated connection limit.
2739     - We no longer use socket pairs to link an edge connection to an
2740       anonymous directory connection or a DirPort test connection.
2741       Instead, we track the link internally and transfer the data
2742       in-process. This saves two sockets per "linked" connection (at the
2743       client and at the server), and avoids the nasty Windows socketpair()
2744       workaround.
2745     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
2746       for every single inactive connection_t. Free items from the
2747       4k/16k-buffer free lists when they haven't been used for a while.
2749   o Minor features (build):
2750     - Make autoconf search for libevent, openssl, and zlib consistently.
2751     - Update deprecated macros in configure.in.
2752     - When warning about missing headers, tell the user to let us
2753       know if the compile succeeds anyway, so we can downgrade the
2754       warning.
2755     - Include the current subversion revision as part of the version
2756       string: either fetch it directly if we're in an SVN checkout, do
2757       some magic to guess it if we're in an SVK checkout, or use
2758       the last-detected version if we're building from a .tar.gz.
2759       Use this version consistently in log messages.
2761   o Minor features (logging):
2762     - Always prepend "Bug: " to any log message about a bug.
2763     - Put a platform string (e.g. "Linux i686") in the startup log
2764       message, so when people paste just their logs, we know if it's
2765       OpenBSD or Windows or what.
2766     - When logging memory usage, break down memory used in buffers by
2767       buffer type.
2769   o Minor features (directory system):
2770     - New config option V2AuthoritativeDirectory that all directory
2771       authorities should set. This will let future authorities choose
2772       not to serve V2 directory information.
2773     - Directory authorities allow multiple router descriptors and/or extra
2774       info documents to be uploaded in a single go.  This will make
2775       implementing proposal 104 simpler.
2777   o Minor features (controller):
2778     - Add a new config option __DisablePredictedCircuits designed for
2779       use by the controller, when we don't want Tor to build any circuits
2780       preemptively.
2781     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
2782       so we can exit from the middle of the circuit.
2783     - Implement "getinfo status/circuit-established".
2784     - Implement "getinfo status/version/..." so a controller can tell
2785       whether the current version is recommended, and whether any versions
2786       are good, and how many authorities agree. (Patch from shibz.)
2788   o Minor features (hidden services):
2789     - Allow multiple HiddenServicePort directives with the same virtual
2790       port; when they occur, the user is sent round-robin to one
2791       of the target ports chosen at random.  Partially fixes bug 393 by
2792       adding limited ad-hoc round-robining.
2794   o Minor features (other):
2795     - More unit tests.
2796     - Add a new AutomapHostsOnResolve option: when it is enabled, any
2797       resolve request for hosts matching a given pattern causes Tor to
2798       generate an internal virtual address mapping for that host.  This
2799       allows DNSPort to work sensibly with hidden service users.  By
2800       default, .exit and .onion addresses are remapped; the list of
2801       patterns can be reconfigured with AutomapHostsSuffixes.
2802     - Add an "-F" option to tor-resolve to force a resolve for a .onion
2803       address. Thanks to the AutomapHostsOnResolve option, this is no
2804       longer a completely silly thing to do.
2805     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
2806       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
2807     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
2808       minus 1 byte: the actual maximum declared bandwidth.
2810   o Removed features:
2811     - Removed support for the old binary "version 0" controller protocol.
2812       This has been deprecated since 0.1.1, and warnings have been issued
2813       since 0.1.2.  When we encounter a v0 control message, we now send
2814       back an error and close the connection.
2815     - Remove the old "dns worker" server DNS code: it hasn't been default
2816       since 0.1.2.2-alpha, and all the servers seem to be using the new
2817       eventdns code.
2819   o Minor bugfixes (portability):
2820     - Even though Windows is equally happy with / and \ as path separators,
2821       try to use \ consistently on Windows and / consistently on Unix: it
2822       makes the log messages nicer.
2823     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
2824     - Read resolv.conf files correctly on platforms where read() returns
2825       partial results on small file reads.
2827   o Minor bugfixes (directory):
2828     - Correctly enforce that elements of directory objects do not appear
2829       more often than they are allowed to appear.
2830     - When we are reporting the DirServer line we just parsed, we were
2831       logging the second stanza of the key fingerprint, not the first.
2833   o Minor bugfixes (logging):
2834     - When we hit an EOF on a log (probably because we're shutting down),
2835       don't try to remove the log from the list: just mark it as
2836       unusable.  (Bulletproofs against bug 222.)
2838   o Minor bugfixes (other):
2839     - In the exitlist script, only consider the most recently published
2840       server descriptor for each server. Also, when the user requests
2841       a list of servers that _reject_ connections to a given address,
2842       explicitly exclude the IPs that also have servers that accept
2843       connections to that address. (Resolves bug 405.)
2844     - Stop allowing hibernating servers to be "stable" or "fast".
2845     - On Windows, we were preventing other processes from reading
2846       cached-routers while Tor was running.  (Reported by janbar)
2847     - Make the NodeFamilies config option work. (Reported by
2848       lodger -- it has never actually worked, even though we added it
2849       in Oct 2004.)
2850     - Check return values from pthread_mutex functions.
2851     - Don't save non-general-purpose router descriptors to the disk cache,
2852       because we have no way of remembering what their purpose was when
2853       we restart.
2854     - Add even more asserts to hunt down bug 417.
2855     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
2856     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
2857       Add a log message to confirm that it is in fact unlikely.
2859   o Minor bugfixes (controller):
2860     - Make 'getinfo fingerprint' return a 551 error if we're not a
2861       server, so we match what the control spec claims we do. Reported
2862       by daejees.
2863     - Fix a typo in an error message when extendcircuit fails that
2864       caused us to not follow the \r\n-based delimiter protocol. Reported
2865       by daejees.
2867   o Code simplifications and refactoring:
2868     - Stop passing around circuit_t and crypt_path_t pointers that are
2869       implicit in other procedure arguments.
2870     - Drop the old code to choke directory connections when the
2871       corresponding OR connections got full: thanks to the cell queue
2872       feature, OR conns don't get full any more.
2873     - Make dns_resolve() handle attaching connections to circuits
2874       properly, so the caller doesn't have to.
2875     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
2876     - Keep the connection array as a dynamic smartlist_t, rather than as
2877       a fixed-sized array. This is important, as the number of connections
2878       is becoming increasingly decoupled from the number of sockets.
2881 Changes in version 0.1.2.14 - 2007-05-25
2882   Tor 0.1.2.14 changes the addresses of two directory authorities (this
2883   change especially affects those who serve or use hidden services),
2884   and fixes several other crash- and security-related bugs.
2886   o Directory authority changes:
2887     - Two directory authorities (moria1 and moria2) just moved to new
2888       IP addresses. This change will particularly affect those who serve
2889       or use hidden services.
2891   o Major bugfixes (crashes):
2892     - If a directory server runs out of space in the connection table
2893       as it's processing a begin_dir request, it will free the exit stream
2894       but leave it attached to the circuit, leading to unpredictable
2895       behavior. (Reported by seeess, fixes bug 425.)
2896     - Fix a bug in dirserv_remove_invalid() that would cause authorities
2897       to corrupt memory under some really unlikely scenarios.
2898     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
2899     - Avoid segfaults when reading from mmaped descriptor file. (Reported
2900       by lodger.)
2902   o Major bugfixes (security):
2903     - When choosing an entry guard for a circuit, avoid using guards
2904       that are in the same family as the chosen exit -- not just guards
2905       that are exactly the chosen exit. (Reported by lodger.)
2907   o Major bugfixes (resource management):
2908     - If a directory authority is down, skip it when deciding where to get
2909       networkstatus objects or descriptors. Otherwise we keep asking
2910       every 10 seconds forever. Fixes bug 384.
2911     - Count it as a failure if we fetch a valid network-status but we
2912       don't want to keep it. Otherwise we'll keep fetching it and keep
2913       not wanting to keep it. Fixes part of bug 422.
2914     - If all of our dirservers have given us bad or no networkstatuses
2915       lately, then stop hammering them once per minute even when we
2916       think they're failed. Fixes another part of bug 422.
2918   o Minor bugfixes:
2919     - Actually set the purpose correctly for descriptors inserted with
2920       purpose=controller.
2921     - When we have k non-v2 authorities in our DirServer config,
2922       we ignored the last k authorities in the list when updating our
2923       network-statuses.
2924     - Correctly back-off from requesting router descriptors that we are
2925       having a hard time downloading.
2926     - Read resolv.conf files correctly on platforms where read() returns
2927       partial results on small file reads.
2928     - Don't rebuild the entire router store every time we get 32K of
2929       routers: rebuild it when the journal gets very large, or when
2930       the gaps in the store get very large.
2932   o Minor features:
2933     - When routers publish SVN revisions in their router descriptors,
2934       authorities now include those versions correctly in networkstatus
2935       documents.
2936     - Warn when using a version of libevent before 1.3b to run a server on
2937       OSX or BSD: these versions interact badly with userspace threads.
2940 Changes in version 0.1.2.13 - 2007-04-24
2941   This release features some major anonymity fixes, such as safer path
2942   selection; better client performance; faster bootstrapping, better
2943   address detection, and better DNS support for servers; write limiting as
2944   well as read limiting to make servers easier to run; and a huge pile of
2945   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
2947   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
2948   of the Freenode IRC network, remembering his patience and vision for
2949   free speech on the Internet.
2951   o Minor fixes:
2952     - Fix a memory leak when we ask for "all" networkstatuses and we
2953       get one we don't recognize.
2954     - Add more asserts to hunt down bug 417.
2955     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
2958 Changes in version 0.1.2.12-rc - 2007-03-16
2959   o Major bugfixes:
2960     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
2961       directory information requested inside Tor connections (i.e. via
2962       begin_dir cells). It only triggered when the same connection was
2963       serving other data at the same time. Reported by seeess.
2965   o Minor bugfixes:
2966     - When creating a circuit via the controller, send a 'launched'
2967       event when we're done, so we follow the spec better.
2970 Changes in version 0.1.2.11-rc - 2007-03-15
2971   o Minor bugfixes (controller), reported by daejees:
2972     - Correct the control spec to match how the code actually responds
2973       to 'getinfo addr-mappings/*'.
2974     - The control spec described a GUARDS event, but the code
2975       implemented a GUARD event. Standardize on GUARD, but let people
2976       ask for GUARDS too.
2979 Changes in version 0.1.2.10-rc - 2007-03-07
2980   o Major bugfixes (Windows):
2981     - Do not load the NT services library functions (which may not exist)
2982       just to detect if we're a service trying to shut down. Now we run
2983       on Win98 and friends again.
2985   o Minor bugfixes (other):
2986     - Clarify a couple of log messages.
2987     - Fix a misleading socks5 error number.
2990 Changes in version 0.1.2.9-rc - 2007-03-02
2991   o Major bugfixes (Windows):
2992     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
2993       of the usual GCC "%llu". This prevents a bug when saving 64-bit
2994       int configuration values: the high-order 32 bits would get
2995       truncated. In particular, we were being bitten by the default
2996       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
2997       and maybe also bug 397.)
2999   o Minor bugfixes (performance):
3000     - Use OpenSSL's AES implementation on platforms where it's faster.
3001       This could save us as much as 10% CPU usage.
3003   o Minor bugfixes (server):
3004     - Do not rotate onion key immediately after setting it for the first
3005       time.
3007   o Minor bugfixes (directory authorities):
3008     - Stop calling servers that have been hibernating for a long time
3009       "stable". Also, stop letting hibernating or obsolete servers affect
3010       uptime and bandwidth cutoffs.
3011     - Stop listing hibernating servers in the v1 directory.
3013   o Minor bugfixes (hidden services):
3014     - Upload hidden service descriptors slightly less often, to reduce
3015       load on authorities.
3017   o Minor bugfixes (other):
3018     - Fix an assert that could trigger if a controller quickly set then
3019       cleared EntryNodes.  (Bug found by Udo van den Heuvel.)
3020     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
3021       to INT32_MAX.
3022     - Fix a potential race condition in the rpm installer.  Found by
3023       Stefan Nordhausen.
3024     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
3025       of 2 as indicating that the server is completely bad; it sometimes
3026       means that the server is just bad for the request in question. (may fix
3027       the last of bug 326.)
3028     - Disable encrypted directory connections when we don't have a server
3029       descriptor for the destination. We'll get this working again in
3030       the 0.2.0 branch.
3033 Changes in version 0.1.2.8-beta - 2007-02-26
3034   o Major bugfixes (crashes):
3035     - Stop crashing when the controller asks us to resetconf more than
3036       one config option at once. (Vidalia 0.0.11 does this.)
3037     - Fix a crash that happened on Win98 when we're given command-line
3038       arguments: don't try to load NT service functions from advapi32.dll
3039       except when we need them. (Bug introduced in 0.1.2.7-alpha;
3040       resolves bug 389.)
3041     - Fix a longstanding obscure crash bug that could occur when
3042       we run out of DNS worker processes. (Resolves bug 390.)
3044   o Major bugfixes (hidden services):
3045     - Correctly detect whether hidden service descriptor downloads are
3046       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
3048   o Major bugfixes (accounting):
3049     - When we start during an accounting interval before it's time to wake
3050       up, remember to wake up at the correct time. (May fix bug 342.)
3052   o Minor bugfixes (controller):
3053     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
3054       clear the corresponding on_circuit variable, and remember later
3055       that we don't need to send a redundant CLOSED event.  (Resolves part
3056       3 of bug 367.)
3057     - Report events where a resolve succeeded or where we got a socks
3058       protocol error correctly, rather than calling both of them
3059       "INTERNAL".
3060     - Change reported stream target addresses to IP consistently when
3061       we finally get the IP from an exit node.
3062     - Send log messages to the controller even if they happen to be very
3063       long.
3065   o Minor bugfixes (other):
3066     - Display correct results when reporting which versions are
3067       recommended, and how recommended they are. (Resolves bug 383.)
3068     - Improve our estimates for directory bandwidth to be less random:
3069       guess that an unrecognized directory will have the average bandwidth
3070       from all known directories, not that it will have the average
3071       bandwidth from those directories earlier than it on the list.
3072     - If we start a server with ClientOnly 1, then set ClientOnly to 0
3073       and hup, stop triggering an assert based on an empty onion_key.
3074     - On platforms with no working mmap() equivalent, don't warn the
3075       user when cached-routers doesn't exist.
3076     - Warn the user when mmap() [or its equivalent] fails for some reason
3077       other than file-not-found.
3078     - Don't warn the user when cached-routers.new doesn't exist: that's
3079       perfectly fine when starting up for the first time.
3080     - When EntryNodes are configured, rebuild the guard list to contain,
3081       in order: the EntryNodes that were guards before; the rest of the
3082       EntryNodes; the nodes that were guards before.
3083     - Mask out all signals in sub-threads; only the libevent signal
3084       handler should be processing them. This should prevent some crashes
3085       on some machines using pthreads. (Patch from coderman.)
3086     - Fix switched arguments on memset in the implementation of
3087       tor_munmap() for systems with no mmap() call.
3088     - When Tor receives a router descriptor that it asked for, but
3089       no longer wants (because it has received fresh networkstatuses
3090       in the meantime), do not warn the user.  Cache the descriptor if
3091       we're a cache; drop it if we aren't.
3092     - Make earlier entry guards _really_ get retried when the network
3093       comes back online.
3094     - On a malformed DNS reply, always give an error to the corresponding
3095       DNS request.
3096     - Build with recent libevents on platforms that do not define the
3097       nonstandard types "u_int8_t" and friends.
3099   o Minor features (controller):
3100     - Warn the user when an application uses the obsolete binary v0
3101       control protocol.  We're planning to remove support for it during
3102       the next development series, so it's good to give people some
3103       advance warning.
3104     - Add STREAM_BW events to report per-entry-stream bandwidth
3105       use. (Patch from Robert Hogan.)
3106     - Rate-limit SIGNEWNYM signals in response to controllers that
3107       impolitely generate them for every single stream. (Patch from
3108       mwenge; closes bug 394.)
3109     - Make REMAP stream events have a SOURCE (cache or exit), and
3110       make them generated in every case where we get a successful
3111       connected or resolved cell.
3113   o Minor bugfixes (performance):
3114     - Call router_have_min_dir_info half as often. (This is showing up in
3115       some profiles, but not others.)
3116     - When using GCC, make log_debug never get called at all, and its
3117       arguments never get evaluated, when no debug logs are configured.
3118       (This is showing up in some profiles, but not others.)
3120   o Minor features:
3121     - Remove some never-implemented options.  Mark PathlenCoinWeight as
3122       obsolete.
3123     - Implement proposal 106: Stop requiring clients to have well-formed
3124       certificates; stop checking nicknames in certificates. (Clients
3125       have certificates so that they can look like Tor servers, but in
3126       the future we might want to allow them to look like regular TLS
3127       clients instead. Nicknames in certificates serve no purpose other
3128       than making our protocol easier to recognize on the wire.)
3129     - Revise messages on handshake failure again to be even more clear about
3130       which are incoming connections and which are outgoing.
3131     - Discard any v1 directory info that's over 1 month old (for
3132       directories) or over 1 week old (for running-routers lists).
3133     - Do not warn when individual nodes in the configuration's EntryNodes,
3134       ExitNodes, etc are down: warn only when all possible nodes
3135       are down. (Fixes bug 348.)
3136     - Always remove expired routers and networkstatus docs before checking
3137       whether we have enough information to build circuits. (Fixes
3138       bug 373.)
3139     - Put a lower-bound on MaxAdvertisedBandwidth.
3142 Changes in version 0.1.2.7-alpha - 2007-02-06
3143   o Major bugfixes (rate limiting):
3144     - Servers decline directory requests much more aggressively when
3145       they're low on bandwidth. Otherwise they end up queueing more and
3146       more directory responses, which can't be good for latency.
3147     - But never refuse directory requests from local addresses.
3148     - Fix a memory leak when sending a 503 response for a networkstatus
3149       request.
3150     - Be willing to read or write on local connections (e.g. controller
3151       connections) even when the global rate limiting buckets are empty.
3152     - If our system clock jumps back in time, don't publish a negative
3153       uptime in the descriptor. Also, don't let the global rate limiting
3154       buckets go absurdly negative.
3155     - Flush local controller connection buffers periodically as we're
3156       writing to them, so we avoid queueing 4+ megabytes of data before
3157       trying to flush.
3159   o Major bugfixes (NT services):
3160     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
3161       command-line flag so that admins can override the default by saying
3162       "tor --service install --user "SomeUser"".  This will not affect
3163       existing installed services.  Also, warn the user that the service
3164       will look for its configuration file in the service user's
3165       %appdata% directory.  (We can't do the 'hardwire the user's appdata
3166       directory' trick any more, since we may not have read access to that
3167       directory.)
3169   o Major bugfixes (other):
3170     - Previously, we would cache up to 16 old networkstatus documents
3171       indefinitely, if they came from nontrusted authorities. Now we
3172       discard them if they are more than 10 days old.
3173     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
3174       Del Vecchio).
3175     - Detect and reject malformed DNS responses containing circular
3176       pointer loops.
3177     - If exits are rare enough that we're not marking exits as guards,
3178       ignore exit bandwidth when we're deciding the required bandwidth
3179       to become a guard.
3180     - When we're handling a directory connection tunneled over Tor,
3181       don't fill up internal memory buffers with all the data we want
3182       to tunnel; instead, only add it if the OR connection that will
3183       eventually receive it has some room for it. (This can lead to
3184       slowdowns in tunneled dir connections; a better solution will have
3185       to wait for 0.2.0.)
3187   o Minor bugfixes (dns):
3188     - Add some defensive programming to eventdns.c in an attempt to catch
3189       possible memory-stomping bugs.
3190     - Detect and reject DNS replies containing IPv4 or IPv6 records with
3191       an incorrect number of bytes. (Previously, we would ignore the
3192       extra bytes.)
3193     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
3194       in the correct order, and doesn't crash.
3195     - Free memory held in recently-completed DNS lookup attempts on exit.
3196       This was not a memory leak, but may have been hiding memory leaks.
3197     - Handle TTL values correctly on reverse DNS lookups.
3198     - Treat failure to parse resolv.conf as an error.
3200   o Minor bugfixes (other):
3201     - Fix crash with "tor --list-fingerprint" (reported by seeess).
3202     - When computing clock skew from directory HTTP headers, consider what
3203       time it was when we finished asking for the directory, not what
3204       time it is now.
3205     - Expire socks connections if they spend too long waiting for the
3206       handshake to finish. Previously we would let them sit around for
3207       days, if the connecting application didn't close them either.
3208     - And if the socks handshake hasn't started, don't send a
3209       "DNS resolve socks failed" handshake reply; just close it.
3210     - Stop using C functions that OpenBSD's linker doesn't like.
3211     - Don't launch requests for descriptors unless we have networkstatuses
3212       from at least half of the authorities.  This delays the first
3213       download slightly under pathological circumstances, but can prevent
3214       us from downloading a bunch of descriptors we don't need.
3215     - Do not log IPs with TLS failures for incoming TLS
3216       connections. (Fixes bug 382.)
3217     - If the user asks to use invalid exit nodes, be willing to use
3218       unstable ones.
3219     - Stop using the reserved ac_cv namespace in our configure script.
3220     - Call stat() slightly less often; use fstat() when possible.
3221     - Refactor the way we handle pending circuits when an OR connection
3222       completes or fails, in an attempt to fix a rare crash bug.
3223     - Only rewrite a conn's address based on X-Forwarded-For: headers
3224       if it's a parseable public IP address; and stop adding extra quotes
3225       to the resulting address.
3227   o Major features:
3228     - Weight directory requests by advertised bandwidth. Now we can
3229       let servers enable write limiting but still allow most clients to
3230       succeed at their directory requests. (We still ignore weights when
3231       choosing a directory authority; I hope this is a feature.)
3233   o Minor features:
3234     - Create a new file ReleaseNotes which was the old ChangeLog. The
3235       new ChangeLog file now includes the summaries for all development
3236       versions too.
3237     - Check for addresses with invalid characters at the exit as well
3238       as at the client, and warn less verbosely when they fail. You can
3239       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
3240     - Adapt a patch from goodell to let the contrib/exitlist script
3241       take arguments rather than require direct editing.
3242     - Inform the server operator when we decide not to advertise a
3243       DirPort due to AccountingMax enabled or a low BandwidthRate. It
3244       was confusing Zax, so now we're hopefully more helpful.
3245     - Bring us one step closer to being able to establish an encrypted
3246       directory tunnel without knowing a descriptor first. Still not
3247       ready yet. As part of the change, now assume we can use a
3248       create_fast cell if we don't know anything about a router.
3249     - Allow exit nodes to use nameservers running on ports other than 53.
3250     - Servers now cache reverse DNS replies.
3251     - Add an --ignore-missing-torrc command-line option so that we can
3252       get the "use sensible defaults if the configuration file doesn't
3253       exist" behavior even when specifying a torrc location on the command
3254       line.
3256   o Minor features (controller):
3257     - Track reasons for OR connection failure; make these reasons
3258       available via the controller interface. (Patch from Mike Perry.)
3259     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
3260       can learn when clients are sending malformed hostnames to Tor.
3261     - Clean up documentation for controller status events.
3262     - Add a REMAP status to stream events to note that a stream's
3263       address has changed because of a cached address or a MapAddress
3264       directive.
3267 Changes in version 0.1.2.6-alpha - 2007-01-09
3268   o Major bugfixes:
3269     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
3270       connection handles more than 4 gigs in either direction, we crash.
3271     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
3272       advertised exit node, somebody might try to exit from us when
3273       we're bootstrapping and before we've built our descriptor yet.
3274       Refuse the connection rather than crashing.
3276   o Minor bugfixes:
3277     - Warn if we (as a server) find that we've resolved an address that we
3278       weren't planning to resolve.
3279     - Warn that using select() on any libevent version before 1.1 will be
3280       unnecessarily slow (even for select()).
3281     - Flush ERR-level controller status events just like we currently
3282       flush ERR-level log events, so that a Tor shutdown doesn't prevent
3283       the controller from learning about current events.
3285   o Minor features (more controller status events):
3286     - Implement EXTERNAL_ADDRESS server status event so controllers can
3287       learn when our address changes.
3288     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
3289       can learn when directories reject our descriptor.
3290     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
3291       can learn when a client application is speaking a non-socks protocol
3292       to our SocksPort.
3293     - Implement DANGEROUS_SOCKS client status event so controllers
3294       can learn when a client application is leaking DNS addresses.
3295     - Implement BUG general status event so controllers can learn when
3296       Tor is unhappy about its internal invariants.
3297     - Implement CLOCK_SKEW general status event so controllers can learn
3298       when Tor thinks the system clock is set incorrectly.
3299     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
3300       server status events so controllers can learn when their descriptors
3301       are accepted by a directory.
3302     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
3303       server status events so controllers can learn about Tor's progress in
3304       deciding whether it's reachable from the outside.
3305     - Implement BAD_LIBEVENT general status event so controllers can learn
3306       when we have a version/method combination in libevent that needs to
3307       be changed.
3308     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
3309       and DNS_USELESS server status events so controllers can learn
3310       about changes to DNS server status.
3312   o Minor features (directory):
3313     - Authorities no longer recommend exits as guards if this would shift
3314       too much load to the exit nodes.
3317 Changes in version 0.1.2.5-alpha - 2007-01-06
3318   o Major features:
3319     - Enable write limiting as well as read limiting. Now we sacrifice
3320       capacity if we're pushing out lots of directory traffic, rather
3321       than overrunning the user's intended bandwidth limits.
3322     - Include TLS overhead when counting bandwidth usage; previously, we
3323       would count only the bytes sent over TLS, but not the bytes used
3324       to send them.
3325     - Support running the Tor service with a torrc not in the same
3326       directory as tor.exe and default to using the torrc located in
3327       the %appdata%\Tor\ of the user who installed the service. Patch
3328       from Matt Edman.
3329     - Servers now check for the case when common DNS requests are going to
3330       wildcarded addresses (i.e. all getting the same answer), and change
3331       their exit policy to reject *:* if it's happening.
3332     - Implement BEGIN_DIR cells, so we can connect to the directory
3333       server via TLS to do encrypted directory requests rather than
3334       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
3335       config options if you like.
3337   o Minor features (config and docs):
3338     - Start using the state file to store bandwidth accounting data:
3339       the bw_accounting file is now obsolete. We'll keep generating it
3340       for a while for people who are still using 0.1.2.4-alpha.
3341     - Try to batch changes to the state file so that we do as few
3342       disk writes as possible while still storing important things in
3343       a timely fashion.
3344     - The state file and the bw_accounting file get saved less often when
3345       the AvoidDiskWrites config option is set.
3346     - Make PIDFile work on Windows (untested).
3347     - Add internal descriptions for a bunch of configuration options:
3348       accessible via controller interface and in comments in saved
3349       options files.
3350     - Reject *:563 (NNTPS) in the default exit policy. We already reject
3351       NNTP by default, so this seems like a sensible addition.
3352     - Clients now reject hostnames with invalid characters. This should
3353       avoid some inadvertent info leaks. Add an option
3354       AllowNonRFC953Hostnames to disable this behavior, in case somebody
3355       is running a private network with hosts called @, !, and #.
3356     - Add a maintainer script to tell us which options are missing
3357       documentation: "make check-docs".
3358     - Add a new address-spec.txt document to describe our special-case
3359       addresses: .exit, .onion, and .noconnnect.
3361   o Minor features (DNS):
3362     - Ongoing work on eventdns infrastructure: now it has dns server
3363       and ipv6 support. One day Tor will make use of it.
3364     - Add client-side caching for reverse DNS lookups.
3365     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
3366     - When we change nameservers or IP addresses, reset and re-launch
3367       our tests for DNS hijacking.
3369   o Minor features (directory):
3370     - Authorities now specify server versions in networkstatus. This adds
3371       about 2% to the size of compressed networkstatus docs, and allows
3372       clients to tell which servers support BEGIN_DIR and which don't.
3373       The implementation is forward-compatible with a proposed future
3374       protocol version scheme not tied to Tor versions.
3375     - DirServer configuration lines now have an orport= option so
3376       clients can open encrypted tunnels to the authorities without
3377       having downloaded their descriptors yet. Enabled for moria1,
3378       moria2, tor26, and lefkada now in the default configuration.
3379     - Directory servers are more willing to send a 503 "busy" if they
3380       are near their write limit, especially for v1 directory requests.
3381       Now they can use their limited bandwidth for actual Tor traffic.
3382     - Clients track responses with status 503 from dirservers. After a
3383       dirserver has given us a 503, we try not to use it until an hour has
3384       gone by, or until we have no dirservers that haven't given us a 503.
3385     - When we get a 503 from a directory, and we're not a server, we don't
3386       count the failure against the total number of failures allowed
3387       for the thing we're trying to download.
3388     - Report X-Your-Address-Is correctly from tunneled directory
3389       connections; don't report X-Your-Address-Is when it's an internal
3390       address; and never believe reported remote addresses when they're
3391       internal.
3392     - Protect against an unlikely DoS attack on directory servers.
3393     - Add a BadDirectory flag to network status docs so that authorities
3394       can (eventually) tell clients about caches they believe to be
3395       broken.
3397   o Minor features (controller):
3398     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
3399     - Reimplement GETINFO so that info/names stays in sync with the
3400       actual keys.
3401     - Implement "GETINFO fingerprint".
3402     - Implement "SETEVENTS GUARD" so controllers can get updates on
3403       entry guard status as it changes.
3405   o Minor features (clean up obsolete pieces):
3406     - Remove some options that have been deprecated since at least
3407       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
3408       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
3409       to set log options.
3410     - We no longer look for identity and onion keys in "identity.key" and
3411       "onion.key" -- these were replaced by secret_id_key and
3412       secret_onion_key in 0.0.8pre1.
3413     - We no longer require unrecognized directory entries to be
3414       preceded by "opt".
3416   o Major bugfixes (security):
3417     - Stop sending the HttpProxyAuthenticator string to directory
3418       servers when directory connections are tunnelled through Tor.
3419     - Clients no longer store bandwidth history in the state file.
3420     - Do not log introduction points for hidden services if SafeLogging
3421       is set.
3422     - When generating bandwidth history, round down to the nearest
3423       1k. When storing accounting data, round up to the nearest 1k.
3424     - When we're running as a server, remember when we last rotated onion
3425       keys, so that we will rotate keys once they're a week old even if
3426       we never stay up for a week ourselves.
3428   o Major bugfixes (other):
3429     - Fix a longstanding bug in eventdns that prevented the count of
3430       timed-out resolves from ever being reset. This bug caused us to
3431       give up on a nameserver the third time it timed out, and try it
3432       10 seconds later... and to give up on it every time it timed out
3433       after that.
3434     - Take out the '5 second' timeout from the connection retry
3435       schedule. Now the first connect attempt will wait a full 10
3436       seconds before switching to a new circuit. Perhaps this will help
3437       a lot. Based on observations from Mike Perry.
3438     - Fix a bug on the Windows implementation of tor_mmap_file() that
3439       would prevent the cached-routers file from ever loading. Reported
3440       by John Kimble.
3442   o Minor bugfixes:
3443     - Fix an assert failure when a directory authority sets
3444       AuthDirRejectUnlisted and then receives a descriptor from an
3445       unlisted router. Reported by seeess.
3446     - Avoid a double-free when parsing malformed DirServer lines.
3447     - Fix a bug when a BSD-style PF socket is first used. Patch from
3448       Fabian Keil.
3449     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
3450       to resolve an address at a given exit node even when they ask for
3451       it by name.
3452     - Servers no longer ever list themselves in their "family" line,
3453       even if configured to do so. This makes it easier to configure
3454       family lists conveniently.
3455     - When running as a server, don't fall back to 127.0.0.1 when no
3456       nameservers are configured in /etc/resolv.conf; instead, make the
3457       user fix resolv.conf or specify nameservers explicitly. (Resolves
3458       bug 363.)
3459     - Stop accepting certain malformed ports in configured exit policies.
3460     - Don't re-write the fingerprint file every restart, unless it has
3461       changed.
3462     - Stop warning when a single nameserver fails: only warn when _all_ of
3463       our nameservers have failed. Also, when we only have one nameserver,
3464       raise the threshold for deciding that the nameserver is dead.
3465     - Directory authorities now only decide that routers are reachable
3466       if their identity keys are as expected.
3467     - When the user uses bad syntax in the Log config line, stop
3468       suggesting other bad syntax as a replacement.
3469     - Correctly detect ipv6 DNS capability on OpenBSD.
3471   o Minor bugfixes (controller):
3472     - Report the circuit number correctly in STREAM CLOSED events. Bug
3473       reported by Mike Perry.
3474     - Do not report bizarre values for results of accounting GETINFOs
3475       when the last second's write or read exceeds the allotted bandwidth.
3476     - Report "unrecognized key" rather than an empty string when the
3477       controller tries to fetch a networkstatus that doesn't exist.
3480 Changes in version 0.1.1.26 - 2006-12-14
3481   o Security bugfixes:
3482     - Stop sending the HttpProxyAuthenticator string to directory
3483       servers when directory connections are tunnelled through Tor.
3484     - Clients no longer store bandwidth history in the state file.
3485     - Do not log introduction points for hidden services if SafeLogging
3486       is set.
3488   o Minor bugfixes:
3489     - Fix an assert failure when a directory authority sets
3490       AuthDirRejectUnlisted and then receives a descriptor from an
3491       unlisted router (reported by seeess).
3494 Changes in version 0.1.2.4-alpha - 2006-12-03
3495   o Major features:
3496     - Add support for using natd; this allows FreeBSDs earlier than
3497       5.1.2 to have ipfw send connections through Tor without using
3498       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
3500   o Minor features:
3501     - Make all connections to addresses of the form ".noconnect"
3502       immediately get closed. This lets application/controller combos
3503       successfully test whether they're talking to the same Tor by
3504       watching for STREAM events.
3505     - Make cross.sh cross-compilation script work even when autogen.sh
3506       hasn't been run. (Patch from Michael Mohr.)
3507     - Statistics dumped by -USR2 now include a breakdown of public key
3508       operations, for profiling.
3510   o Major bugfixes:
3511     - Fix a major leak when directory authorities parse their
3512       approved-routers list, a minor memory leak when we fail to pick
3513       an exit node, and a few rare leaks on errors.
3514     - Handle TransPort connections even when the server sends data before
3515       the client sends data. Previously, the connection would just hang
3516       until the client sent data. (Patch from tup based on patch from
3517       Zajcev Evgeny.)
3518     - Avoid assert failure when our cached-routers file is empty on
3519       startup.
3521   o Minor bugfixes:
3522     - Don't log spurious warnings when we see a circuit close reason we
3523       don't recognize; it's probably just from a newer version of Tor.
3524     - Have directory authorities allow larger amounts of drift in uptime
3525       without replacing the server descriptor: previously, a server that
3526       restarted every 30 minutes could have 48 "interesting" descriptors
3527       per day.
3528     - Start linking to the Tor specification and Tor reference manual
3529       correctly in the Windows installer.
3530     - Add Vidalia to the OS X uninstaller script, so when we uninstall
3531       Tor/Privoxy we also uninstall Vidalia.
3532     - Resume building on Irix64, and fix a lot of warnings from its
3533       MIPSpro C compiler.
3534     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
3535       when we're running as a client.
3538 Changes in version 0.1.1.25 - 2006-11-04
3539   o Major bugfixes:
3540     - When a client asks us to resolve (rather than connect to)
3541       an address, and we have a cached answer, give them the cached
3542       answer. Previously, we would give them no answer at all.
3543     - We were building exactly the wrong circuits when we predict
3544       hidden service requirements, meaning Tor would have to build all
3545       its circuits on demand.
3546     - If none of our live entry guards have a high uptime, but we
3547       require a guard with a high uptime, try adding a new guard before
3548       we give up on the requirement. This patch should make long-lived
3549       connections more stable on average.
3550     - When testing reachability of our DirPort, don't launch new
3551       tests when there's already one in progress -- unreachable
3552       servers were stacking up dozens of testing streams.
3554   o Security bugfixes:
3555     - When the user sends a NEWNYM signal, clear the client-side DNS
3556       cache too. Otherwise we continue to act on previous information.
3558   o Minor bugfixes:
3559     - Avoid a memory corruption bug when creating a hash table for
3560       the first time.
3561     - Avoid possibility of controller-triggered crash when misusing
3562       certain commands from a v0 controller on platforms that do not
3563       handle printf("%s",NULL) gracefully.
3564     - Avoid infinite loop on unexpected controller input.
3565     - Don't log spurious warnings when we see a circuit close reason we
3566       don't recognize; it's probably just from a newer version of Tor.
3567     - Add Vidalia to the OS X uninstaller script, so when we uninstall
3568       Tor/Privoxy we also uninstall Vidalia.
3571 Changes in version 0.1.2.3-alpha - 2006-10-29
3572   o Minor features:
3573     - Prepare for servers to publish descriptors less often: never
3574       discard a descriptor simply for being too old until either it is
3575       recommended by no authorities, or until we get a better one for
3576       the same router. Make caches consider retaining old recommended
3577       routers for even longer.
3578     - If most authorities set a BadExit flag for a server, clients
3579       don't think of it as a general-purpose exit. Clients only consider
3580       authorities that advertise themselves as listing bad exits.
3581     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
3582       headers for content, so that we can work better in the presence of
3583       caching HTTP proxies.
3584     - Allow authorities to list nodes as bad exits by fingerprint or by
3585       address.
3587   o Minor features, controller:
3588     - Add a REASON field to CIRC events; for backward compatibility, this
3589       field is sent only to controllers that have enabled the extended
3590       event format.  Also, add additional reason codes to explain why
3591       a given circuit has been destroyed or truncated. (Patches from
3592       Mike Perry)
3593     - Add a REMOTE_REASON field to extended CIRC events to tell the
3594       controller about why a remote OR told us to close a circuit.
3595     - Stream events also now have REASON and REMOTE_REASON fields,
3596       working much like those for circuit events.
3597     - There's now a GETINFO ns/... field so that controllers can ask Tor
3598       about the current status of a router.
3599     - A new event type "NS" to inform a controller when our opinion of
3600       a router's status has changed.
3601     - Add a GETINFO events/names and GETINFO features/names so controllers
3602       can tell which events and features are supported.
3603     - A new CLEARDNSCACHE signal to allow controllers to clear the
3604       client-side DNS cache without expiring circuits.
3606   o Security bugfixes:
3607     - When the user sends a NEWNYM signal, clear the client-side DNS
3608       cache too. Otherwise we continue to act on previous information.
3610   o Minor bugfixes:
3611     - Avoid sending junk to controllers or segfaulting when a controller
3612       uses EVENT_NEW_DESC with verbose nicknames.
3613     - Stop triggering asserts if the controller tries to extend hidden
3614       service circuits (reported by mwenge).
3615     - Avoid infinite loop on unexpected controller input.
3616     - When the controller does a "GETINFO network-status", tell it
3617       about even those routers whose descriptors are very old, and use
3618       long nicknames where appropriate.
3619     - Change NT service functions to be loaded on demand.  This lets us
3620       build with MinGW without breaking Tor for Windows 98 users.
3621     - Do DirPort reachability tests less often, since a single test
3622       chews through many circuits before giving up.
3623     - In the hidden service example in torrc.sample, stop recommending
3624       esoteric and discouraged hidden service options.
3625     - When stopping an NT service, wait up to 10 sec for it to actually
3626       stop.  (Patch from Matt Edman; resolves bug 295.)
3627     - Fix handling of verbose nicknames with ORCONN controller events:
3628       make them show up exactly when requested, rather than exactly when
3629       not requested.
3630     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
3631       printing a duplicate "$" in the keys we send (reported by mwenge).
3632     - Correctly set maximum connection limit on Cygwin. (This time
3633       for sure!)
3634     - Try to detect Windows correctly when cross-compiling.
3635     - Detect the size of the routers file correctly even if it is
3636       corrupted (on systems without mmap) or not page-aligned (on systems
3637       with mmap). This bug was harmless.
3638     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
3639       to open a stream fails; now we do in more cases. This should
3640       make clients able to find a good exit faster in some cases, since
3641       unhandleable requests will now get an error rather than timing out.
3642     - Resolve two memory leaks when rebuilding the on-disk router cache
3643       (reported by fookoowa).
3644     - Clean up minor code warnings suggested by the MIPSpro C compiler,
3645       and reported by some Centos users.
3646     - Controller signals now work on non-Unix platforms that don't define
3647       SIGUSR1 and SIGUSR2 the way we expect.
3648     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
3649       values before failing, and always enables eventdns.
3650     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
3651       Try to fix this in configure.in by checking for most functions
3652       before we check for libevent.
3655 Changes in version 0.1.2.2-alpha - 2006-10-07
3656   o Major features:
3657     - Make our async eventdns library on-by-default for Tor servers,
3658       and plan to deprecate the separate dnsworker threads.
3659     - Add server-side support for "reverse" DNS lookups (using PTR
3660       records so clients can determine the canonical hostname for a given
3661       IPv4 address). Only supported by servers using eventdns; servers
3662       now announce in their descriptors whether they support eventdns.
3663     - Specify and implement client-side SOCKS5 interface for reverse DNS
3664       lookups (see doc/socks-extensions.txt).
3665     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
3666       connect to directory servers through Tor. Previously, clients needed
3667       to find Tor exits to make private connections to directory servers.
3668     - Avoid choosing Exit nodes for entry or middle hops when the
3669       total bandwidth available from non-Exit nodes is much higher than
3670       the total bandwidth available from Exit nodes.
3671     - Workaround for name servers (like Earthlink's) that hijack failing
3672       DNS requests and replace the no-such-server answer with a "helpful"
3673       redirect to an advertising-driven search portal. Also work around
3674       DNS hijackers who "helpfully" decline to hijack known-invalid
3675       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
3676       lets you turn it off.
3677     - Send out a burst of long-range padding cells once we've established
3678       that we're reachable. Spread them over 4 circuits, so hopefully
3679       a few will be fast. This exercises our bandwidth and bootstraps
3680       us into the directory more quickly.
3682   o New/improved config options:
3683     - Add new config option "ResolvConf" to let the server operator
3684       choose an alternate resolve.conf file when using eventdns.
3685     - Add an "EnforceDistinctSubnets" option to control our "exclude
3686       servers on the same /16" behavior. It's still on by default; this
3687       is mostly for people who want to operate private test networks with
3688       all the machines on the same subnet.
3689     - If one of our entry guards is on the ExcludeNodes list, or the
3690       directory authorities don't think it's a good guard, treat it as
3691       if it were unlisted: stop using it as a guard, and throw it off
3692       the guards list if it stays that way for a long time.
3693     - Allow directory authorities to be marked separately as authorities
3694       for the v1 directory protocol, the v2 directory protocol, and
3695       as hidden service directories, to make it easier to retire old
3696       authorities. V1 authorities should set "HSAuthoritativeDir 1"
3697       to continue being hidden service authorities too.
3698     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
3700   o Minor features, controller:
3701     - Fix CIRC controller events so that controllers can learn the
3702       identity digests of non-Named servers used in circuit paths.
3703     - Let controllers ask for more useful identifiers for servers. Instead
3704       of learning identity digests for un-Named servers and nicknames
3705       for Named servers, the new identifiers include digest, nickname,
3706       and indication of Named status. Off by default; see control-spec.txt
3707       for more information.
3708     - Add a "getinfo address" controller command so it can display Tor's
3709       best guess to the user.
3710     - New controller event to alert the controller when our server
3711       descriptor has changed.
3712     - Give more meaningful errors on controller authentication failure.
3714   o Minor features, other:
3715     - When asked to resolve a hostname, don't use non-exit servers unless
3716       requested to do so. This allows servers with broken DNS to be
3717       useful to the network.
3718     - Divide eventdns log messages into warn and info messages.
3719     - Reserve the nickname "Unnamed" for routers that can't pick
3720       a hostname: any router can call itself Unnamed; directory
3721       authorities will never allocate Unnamed to any particular router;
3722       clients won't believe that any router is the canonical Unnamed.
3723     - Only include function names in log messages for info/debug messages.
3724       For notice/warn/err, the content of the message should be clear on
3725       its own, and printing the function name only confuses users.
3726     - Avoid some false positives during reachability testing: don't try
3727       to test via a server that's on the same /24 as us.
3728     - If we fail to build a circuit to an intended enclave, and it's
3729       not mandatory that we use that enclave, stop wanting it.
3730     - When eventdns is enabled, allow multithreaded builds on NetBSD and
3731       OpenBSD. (We had previously disabled threads on these platforms
3732       because they didn't have working thread-safe resolver functions.)
3734   o Major bugfixes, anonymity/security:
3735     - If a client asked for a server by name, and there's a named server
3736       in our network-status but we don't have its descriptor yet, we
3737       could return an unnamed server instead.
3738     - Fix NetBSD bug that could allow someone to force uninitialized RAM
3739       to be sent to a server's DNS resolver. This only affects NetBSD
3740       and other platforms that do not bounds-check tolower().
3741     - Reject (most) attempts to use Tor circuits with length one. (If
3742       many people start using Tor as a one-hop proxy, exit nodes become
3743       a more attractive target for compromise.)
3744     - Just because your DirPort is open doesn't mean people should be
3745       able to remotely teach you about hidden service descriptors. Now
3746       only accept rendezvous posts if you've got HSAuthoritativeDir set.
3748   o Major bugfixes, other:
3749     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
3750     - When a client asks the server to resolve (not connect to)
3751       an address, and it has a cached answer, give them the cached answer.
3752       Previously, the server would give them no answer at all.
3753     - Allow really slow clients to not hang up five minutes into their
3754       directory downloads (suggested by Adam J. Richter).
3755     - We were building exactly the wrong circuits when we anticipated
3756       hidden service requirements, meaning Tor would have to build all
3757       its circuits on demand.
3758     - Avoid crashing when we mmap a router cache file of size 0.
3759     - When testing reachability of our DirPort, don't launch new
3760       tests when there's already one in progress -- unreachable
3761       servers were stacking up dozens of testing streams.
3763   o Minor bugfixes, correctness:
3764     - If we're a directory mirror and we ask for "all" network status
3765       documents, we would discard status documents from authorities
3766       we don't recognize.
3767     - Avoid a memory corruption bug when creating a hash table for
3768       the first time.
3769     - Avoid controller-triggered crash when misusing certain commands
3770       from a v0 controller on platforms that do not handle
3771       printf("%s",NULL) gracefully.
3772     - Don't crash when a controller sends a third argument to an
3773       "extendcircuit" request.
3774     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
3775       response; fix error code when "getinfo dir/status/" fails.
3776     - Avoid crash when telling controller stream-status and a stream
3777       is detached.
3778     - Patch from Adam Langley to fix assert() in eventdns.c.
3779     - Fix a debug log message in eventdns to say "X resolved to Y"
3780       instead of "X resolved to X".
3781     - Make eventdns give strings for DNS errors, not just error numbers.
3782     - Track unreachable entry guards correctly: don't conflate
3783       'unreachable by us right now' with 'listed as down by the directory
3784       authorities'. With the old code, if a guard was unreachable by
3785       us but listed as running, it would clog our guard list forever.
3786     - Behave correctly in case we ever have a network with more than
3787       2GB/s total advertised capacity.
3788     - Make TrackExitHosts case-insensitive, and fix the behavior of
3789       ".suffix" TrackExitHosts items to avoid matching in the middle of
3790       an address.
3791     - Finally fix the openssl warnings from newer gccs that believe that
3792       ignoring a return value is okay, but casting a return value and
3793       then ignoring it is a sign of madness.
3794     - Prevent the contrib/exitlist script from printing the same
3795       result more than once.
3796     - Patch from Steve Hildrey: Generate network status correctly on
3797       non-versioning dirservers.
3798     - Don't listen to the X-Your-Address-Is hint if you did the lookup
3799       via Tor; otherwise you'll think you're the exit node's IP address.
3801   o Minor bugfixes, performance:
3802     - Two small performance improvements on parsing descriptors.
3803     - Major performance improvement on inserting descriptors: change
3804       algorithm from O(n^2) to O(n).
3805     - Make the common memory allocation path faster on machines where
3806       malloc(0) returns a pointer.
3807     - Start remembering X-Your-Address-Is directory hints even if you're
3808       a client, so you can become a server more smoothly.
3809     - Avoid duplicate entries on MyFamily line in server descriptor.
3811   o Packaging, features:
3812     - Remove architecture from OS X builds. The official builds are
3813       now universal binaries.
3814     - The Debian package now uses --verify-config when (re)starting,
3815       to distinguish configuration errors from other errors.
3816     - Update RPMs to require libevent 1.1b.
3818   o Packaging, bugfixes:
3819     - Patches so Tor builds with MinGW on Windows.
3820     - Patches so Tor might run on Cygwin again.
3821     - Resume building on non-gcc compilers and ancient gcc. Resume
3822       building with the -O0 compile flag. Resume building cleanly on
3823       Debian woody.
3824     - Run correctly on OS X platforms with case-sensitive filesystems.
3825     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
3826     - Add autoconf checks so Tor can build on Solaris x86 again.
3828   o Documentation
3829     - Documented (and renamed) ServerDNSSearchDomains and
3830       ServerDNSResolvConfFile options.
3831     - Be clearer that the *ListenAddress directives can be repeated
3832       multiple times.
3835 Changes in version 0.1.1.24 - 2006-09-29
3836   o Major bugfixes:
3837     - Allow really slow clients to not hang up five minutes into their
3838       directory downloads (suggested by Adam J. Richter).
3839     - Fix major performance regression from 0.1.0.x: instead of checking
3840       whether we have enough directory information every time we want to
3841       do something, only check when the directory information has changed.
3842       This should improve client CPU usage by 25-50%.
3843     - Don't crash if, after a server has been running for a while,
3844       it can't resolve its hostname.
3846   o Minor bugfixes:
3847     - Allow Tor to start when RunAsDaemon is set but no logs are set.
3848     - Don't crash when the controller receives a third argument to an
3849       "extendcircuit" request.
3850     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
3851       response; fix error code when "getinfo dir/status/" fails.
3852     - Fix configure.in to not produce broken configure files with
3853       more recent versions of autoconf. Thanks to Clint for his auto*
3854       voodoo.
3855     - Fix security bug on NetBSD that could allow someone to force
3856       uninitialized RAM to be sent to a server's DNS resolver. This
3857       only affects NetBSD and other platforms that do not bounds-check
3858       tolower().
3859     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
3860       methods: these are known to be buggy.
3861     - If we're a directory mirror and we ask for "all" network status
3862       documents, we would discard status documents from authorities
3863       we don't recognize.
3866 Changes in version 0.1.2.1-alpha - 2006-08-27
3867   o Major features:
3868     - Add "eventdns" async dns library from Adam Langley, tweaked to
3869       build on OSX and Windows. Only enabled if you pass the
3870       --enable-eventdns argument to configure.
3871     - Allow servers with no hostname or IP address to learn their
3872       IP address by asking the directory authorities. This code only
3873       kicks in when you would normally have exited with a "no address"
3874       error. Nothing's authenticated, so use with care.
3875     - Rather than waiting a fixed amount of time between retrying
3876       application connections, we wait only 5 seconds for the first,
3877       10 seconds for the second, and 15 seconds for each retry after
3878       that. Hopefully this will improve the expected user experience.
3879     - Patch from Tup to add support for transparent AP connections:
3880       this basically bundles the functionality of trans-proxy-tor
3881       into the Tor mainline. Now hosts with compliant pf/netfilter
3882       implementations can redirect TCP connections straight to Tor
3883       without diverting through SOCKS. Needs docs.
3884     - Busy directory servers save lots of memory by spooling server
3885       descriptors, v1 directories, and v2 networkstatus docs to buffers
3886       as needed rather than en masse. Also mmap the cached-routers
3887       files, so we don't need to keep the whole thing in memory too.
3888     - Automatically avoid picking more than one node from the same
3889       /16 network when constructing a circuit.
3890     - Revise and clean up the torrc.sample that we ship with; add
3891       a section for BandwidthRate and BandwidthBurst.
3893   o Minor features:
3894     - Split circuit_t into origin_circuit_t and or_circuit_t, and
3895       split connection_t into edge, or, dir, control, and base structs.
3896       These will save quite a bit of memory on busy servers, and they'll
3897       also help us track down bugs in the code and bugs in the spec.
3898     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
3899       or later. Log when we are doing this, so we can diagnose it when
3900       it fails. (Also, recommend libevent 1.1b for kqueue and
3901       win32 methods; deprecate libevent 1.0b harder; make libevent
3902       recommendation system saner.)
3903     - Start being able to build universal binaries on OS X (thanks
3904       to Phobos).
3905     - Export the default exit policy via the control port, so controllers
3906       don't need to guess what it is / will be later.
3907     - Add a man page entry for ProtocolWarnings.
3908     - Add TestVia config option to the man page.
3909     - Remove even more protocol-related warnings from Tor server logs,
3910       such as bad TLS handshakes and malformed begin cells.
3911     - Stop fetching descriptors if you're not a dir mirror and you
3912       haven't tried to establish any circuits lately. [This currently
3913       causes some dangerous behavior, because when you start up again
3914       you'll use your ancient server descriptors.]
3915     - New DirPort behavior: if you have your dirport set, you download
3916       descriptors aggressively like a directory mirror, whether or not
3917       your ORPort is set.
3918     - Get rid of the router_retry_connections notion. Now routers
3919       no longer try to rebuild long-term connections to directory
3920       authorities, and directory authorities no longer try to rebuild
3921       long-term connections to all servers. We still don't hang up
3922       connections in these two cases though -- we need to look at it
3923       more carefully to avoid flapping, and we likely need to wait til
3924       0.1.1.x is obsolete.
3925     - Drop compatibility with obsolete Tors that permit create cells
3926       to have the wrong circ_id_type.
3927     - Re-enable per-connection rate limiting. Get rid of the "OP
3928       bandwidth" concept. Lay groundwork for "bandwidth classes" --
3929       separate global buckets that apply depending on what sort of conn
3930       it is.
3931     - Start publishing one minute or so after we find our ORPort
3932       to be reachable. This will help reduce the number of descriptors
3933       we have for ourselves floating around, since it's quite likely
3934       other things (e.g. DirPort) will change during that minute too.
3935     - Fork the v1 directory protocol into its own spec document,
3936       and mark dir-spec.txt as the currently correct (v2) spec.
3938   o Major bugfixes:
3939     - When we find our DirPort to be reachable, publish a new descriptor
3940       so we'll tell the world (reported by pnx).
3941     - Publish a new descriptor after we hup/reload. This is important
3942       if our config has changed such that we'll want to start advertising
3943       our DirPort now, etc.
3944     - Allow Tor to start when RunAsDaemon is set but no logs are set.
3945     - When we have a state file we cannot parse, tell the user and
3946       move it aside. Now we avoid situations where the user starts
3947       Tor in 1904, Tor writes a state file with that timestamp in it,
3948       the user fixes her clock, and Tor refuses to start.
3949     - Fix configure.in to not produce broken configure files with
3950       more recent versions of autoconf. Thanks to Clint for his auto*
3951       voodoo.
3952     - "tor --verify-config" now exits with -1(255) or 0 depending on
3953       whether the config options are bad or good.
3954     - Resolve bug 321 when using dnsworkers: append a period to every
3955       address we resolve at the exit node, so that we do not accidentally
3956       pick up local addresses, and so that failing searches are retried
3957       in the resolver search domains. (This is already solved for
3958       eventdns.) (This breaks Blossom servers for now.)
3959     - If we are using an exit enclave and we can't connect, e.g. because
3960       its webserver is misconfigured to not listen on localhost, then
3961       back off and try connecting from somewhere else before we fail.
3963   o Minor bugfixes:
3964     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
3965     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
3966     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
3967       when the IP address is mapped through MapAddress to a hostname.
3968     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
3969       useless IPv6 DNS resolves.
3970     - Patch suggested by Karsten Loesing: respond to SIGNAL command
3971       before we execute the signal, in case the signal shuts us down.
3972     - Clean up AllowInvalidNodes man page entry.
3973     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
3974     - Add more asserts to track down an assert error on a windows Tor
3975       server with connection_add being called with socket == -1.
3976     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
3977     - Fix misleading log messages: an entry guard that is "unlisted",
3978       as well as not known to be "down" (because we've never heard
3979       of it), is not therefore "up".
3980     - Remove code to special-case "-cvs" ending, since it has not
3981       actually mattered since 0.0.9.
3982     - Make our socks5 handling more robust to broken socks clients:
3983       throw out everything waiting on the buffer in between socks
3984       handshake phases, since they can't possibly (so the theory
3985       goes) have predicted what we plan to respond to them.
3988 Changes in version 0.1.1.23 - 2006-07-30
3989   o Major bugfixes:
3990     - Fast Tor servers, especially exit nodes, were triggering asserts
3991       due to a bug in handling the list of pending DNS resolves. Some
3992       bugs still remain here; we're hunting them.
3993     - Entry guards could crash clients by sending unexpected input.
3994     - More fixes on reachability testing: if you find yourself reachable,
3995       then don't ever make any client requests (so you stop predicting
3996       circuits), then hup or have your clock jump, then later your IP
3997       changes, you won't think circuits are working, so you won't try to
3998       test reachability, so you won't publish.
4000   o Minor bugfixes:
4001     - Avoid a crash if the controller does a resetconf firewallports
4002       and then a setconf fascistfirewall=1.
4003     - Avoid an integer underflow when the dir authority decides whether
4004       a router is stable: we might wrongly label it stable, and compute
4005       a slightly wrong median stability, when a descriptor is published
4006       later than now.
4007     - Fix a place where we might trigger an assert if we can't build our
4008       own server descriptor yet.
4011 Changes in version 0.1.1.22 - 2006-07-05
4012   o Major bugfixes:
4013     - Fix a big bug that was causing servers to not find themselves
4014       reachable if they changed IP addresses. Since only 0.1.1.22+
4015       servers can do reachability testing correctly, now we automatically
4016       make sure to test via one of these.
4017     - Fix to allow clients and mirrors to learn directory info from
4018       descriptor downloads that get cut off partway through.
4019     - Directory authorities had a bug in deciding if a newly published
4020       descriptor was novel enough to make everybody want a copy -- a few
4021       servers seem to be publishing new descriptors many times a minute.
4022   o Minor bugfixes:
4023     - Fix a rare bug that was causing some servers to complain about
4024       "closing wedged cpuworkers" and skip some circuit create requests.
4025     - Make the Exit flag in directory status documents actually work.
4028 Changes in version 0.1.1.21 - 2006-06-10
4029   o Crash and assert fixes from 0.1.1.20:
4030     - Fix a rare crash on Tor servers that have enabled hibernation.
4031     - Fix a seg fault on startup for Tor networks that use only one
4032       directory authority.
4033     - Fix an assert from a race condition that occurs on Tor servers
4034       while exiting, where various threads are trying to log that they're
4035       exiting, and delete the logs, at the same time.
4036     - Make our unit tests pass again on certain obscure platforms.
4038   o Other fixes:
4039     - Add support for building SUSE RPM packages.
4040     - Speed up initial bootstrapping for clients: if we are making our
4041       first ever connection to any entry guard, then don't mark it down
4042       right after that.
4043     - When only one Tor server in the network is labelled as a guard,
4044       and we've already picked him, we would cycle endlessly picking him
4045       again, being unhappy about it, etc. Now we specifically exclude
4046       current guards when picking a new guard.
4047     - Servers send create cells more reliably after the TLS connection
4048       is established: we were sometimes forgetting to send half of them
4049       when we had more than one pending.
4050     - If we get a create cell that asks us to extend somewhere, but the
4051       Tor server there doesn't match the expected digest, we now send
4052       a destroy cell back, rather than silently doing nothing.
4053     - Make options->RedirectExit work again.
4054     - Make cookie authentication for the controller work again.
4055     - Stop being picky about unusual characters in the arguments to
4056       mapaddress. It's none of our business.
4057     - Add a new config option "TestVia" that lets you specify preferred
4058       middle hops to use for test circuits. Perhaps this will let me
4059       debug the reachability problems better.
4061   o Log / documentation fixes:
4062     - If we're a server and some peer has a broken TLS certificate, don't
4063       log about it unless ProtocolWarnings is set, i.e., we want to hear
4064       about protocol violations by others.
4065     - Fix spelling of VirtualAddrNetwork in man page.
4066     - Add a better explanation at the top of the autogenerated torrc file
4067       about what happened to our old torrc.
4070 Changes in version 0.1.1.20 - 2006-05-23
4071   o Bugfixes:
4072     - Downgrade a log severity where servers complain that they're
4073       invalid.
4074     - Avoid a compile warning on FreeBSD.
4075     - Remove string size limit on NEWDESC messages; solve bug 291.
4076     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
4077       more thoroughly when we're running on windows.
4080 Changes in version 0.1.1.19-rc - 2006-05-03
4081   o Minor bugs:
4082     - Regenerate our local descriptor if it's dirty and we try to use
4083       it locally (e.g. if it changes during reachability detection).
4084     - If we setconf our ORPort to 0, we continued to listen on the
4085       old ORPort and receive connections.
4086     - Avoid a second warning about machine/limits.h on Debian
4087       GNU/kFreeBSD.
4088     - Be willing to add our own routerinfo into the routerlist.
4089       Now authorities will include themselves in their directories
4090       and network-statuses.
4091     - Stop trying to upload rendezvous descriptors to every
4092       directory authority: only try the v1 authorities.
4093     - Servers no longer complain when they think they're not
4094       registered with the directory authorities. There were too many
4095       false positives.
4096     - Backport dist-rpm changes so rpms can be built without errors.
4098   o Features:
4099     - Implement an option, VirtualAddrMask, to set which addresses
4100       get handed out in response to mapaddress requests. This works
4101       around a bug in tsocks where 127.0.0.0/8 is never socksified.
4104 Changes in version 0.1.1.18-rc - 2006-04-10
4105   o Major fixes:
4106     - Work harder to download live network-statuses from all the
4107       directory authorities we know about. Improve the threshold
4108       decision logic so we're more robust to edge cases.
4109     - When fetching rendezvous descriptors, we were willing to ask
4110       v2 authorities too, which would always return 404.
4112   o Minor fixes:
4113     - Stop listing down or invalid nodes in the v1 directory. This will
4114       reduce its bulk by about 1/3, and reduce load on directory
4115       mirrors.
4116     - When deciding whether a router is Fast or Guard-worthy, consider
4117       his advertised BandwidthRate and not just the BandwidthCapacity.
4118     - No longer ship INSTALL and README files -- they are useless now.
4119     - Force rpmbuild to behave and honor target_cpu.
4120     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
4121     - Start to include translated versions of the tor-doc-*.html
4122       files, along with the screenshots. Still needs more work.
4123     - Start sending back 512 and 451 errors if mapaddress fails,
4124       rather than not sending anything back at all.
4125     - When we fail to bind or listen on an incoming or outgoing
4126       socket, we should close it before failing. otherwise we just
4127       leak it. (thanks to weasel for finding.)
4128     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
4129       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
4130     - Make NoPublish (even though deprecated) work again.
4131     - Fix a minor security flaw where a versioning auth dirserver
4132       could list a recommended version many times in a row to make
4133       clients more convinced that it's recommended.
4134     - Fix crash bug if there are two unregistered servers running
4135       with the same nickname, one of them is down, and you ask for
4136       them by nickname in your EntryNodes or ExitNodes. Also, try
4137       to pick the one that's running rather than an arbitrary one.
4138     - Fix an infinite loop we could hit if we go offline for too long.
4139     - Complain when we hit WSAENOBUFS on recv() or write() too.
4140       Perhaps this will help us hunt the bug.
4141     - If you're not a versioning dirserver, don't put the string
4142       "client-versions \nserver-versions \n" in your network-status.
4143     - Lower the minimum required number of file descriptors to 1000,
4144       so we can have some overhead for Valgrind on Linux, where the
4145       default ulimit -n is 1024.
4147   o New features:
4148     - Add tor.dizum.com as the fifth authoritative directory server.
4149     - Add a new config option FetchUselessDescriptors, off by default,
4150       for when you plan to run "exitlist" on your client and you want
4151       to know about even the non-running descriptors.
4154 Changes in version 0.1.1.17-rc - 2006-03-28
4155   o Major fixes:
4156     - Clients and servers since 0.1.1.10-alpha have been expiring
4157       connections whenever they are idle for 5 minutes and they *do*
4158       have circuits on them. Oops. With this new version, clients will
4159       discard their previous entry guard choices and avoid choosing
4160       entry guards running these flawed versions.
4161     - Fix memory leak when uncompressing concatenated zlib streams. This
4162       was causing substantial leaks over time on Tor servers.
4163     - The v1 directory was including servers as much as 48 hours old,
4164       because that's how the new routerlist->routers works. Now only
4165       include them if they're 20 hours old or less.
4167   o Minor fixes:
4168     - Resume building on irix64, netbsd 2.0, etc.
4169     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
4170       "-Wall -g -O2".
4171     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
4172       and it is confusing some users.
4173     - Mirrors stop caching the v1 directory so often.
4174     - Make the max number of old descriptors that a cache will hold
4175       rise with the number of directory authorities, so we can scale.
4176     - Change our win32 uname() hack to be more forgiving about what
4177       win32 versions it thinks it's found.
4179   o New features:
4180     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
4181       server.
4182     - When the controller's *setconf commands fail, collect an error
4183       message in a string and hand it back to the controller.
4184     - Make the v2 dir's "Fast" flag based on relative capacity, just
4185       like "Stable" is based on median uptime. Name everything in the
4186       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
4187     - Log server fingerprint on startup, so new server operators don't
4188       have to go hunting around their filesystem for it.
4189     - Return a robots.txt on our dirport to discourage google indexing.
4190     - Let the controller ask for GETINFO dir/status/foo so it can ask
4191       directly rather than connecting to the dir port. Only works when
4192       dirport is set for now.
4194   o New config options rather than constants in the code:
4195     - SocksTimeout: How long do we let a socks connection wait
4196       unattached before we fail it?
4197     - CircuitBuildTimeout: Cull non-open circuits that were born
4198       at least this many seconds ago.
4199     - CircuitIdleTimeout: Cull open clean circuits that were born
4200       at least this many seconds ago.
4203 Changes in version 0.1.1.16-rc - 2006-03-18
4204   o Bugfixes on 0.1.1.15-rc:
4205     - Fix assert when the controller asks to attachstream a connect-wait
4206       or resolve-wait stream.
4207     - Now do address rewriting when the controller asks us to attach
4208       to a particular circuit too. This will let Blossom specify
4209       "moria2.exit" without having to learn what moria2's IP address is.
4210     - Make the "tor --verify-config" command-line work again, so people
4211       can automatically check if their torrc will parse.
4212     - Authoritative dirservers no longer require an open connection from
4213       a server to consider him "reachable". We need this change because
4214       when we add new auth dirservers, old servers won't know not to
4215       hang up on them.
4216     - Let Tor build on Sun CC again.
4217     - Fix an off-by-one buffer size in dirserv.c that magically never
4218       hit our three authorities but broke sjmurdoch's own tor network.
4219     - If we as a directory mirror don't know of any v1 directory
4220       authorities, then don't try to cache any v1 directories.
4221     - Stop warning about unknown servers in our family when they are
4222       given as hex digests.
4223     - Stop complaining as quickly to the server operator that he
4224       hasn't registered his nickname/key binding.
4225     - Various cleanups so we can add new V2 Auth Dirservers.
4226     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
4227       reflect the updated flags in our v2 dir protocol.
4228     - Resume allowing non-printable characters for exit streams (both
4229       for connecting and for resolving). Now we tolerate applications
4230       that don't follow the RFCs. But continue to block malformed names
4231       at the socks side.
4233   o Bugfixes on 0.1.0.x:
4234     - Fix assert bug in close_logs(): when we close and delete logs,
4235       remove them all from the global "logfiles" list.
4236     - Fix minor integer overflow in calculating when we expect to use up
4237       our bandwidth allocation before hibernating.
4238     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
4239       there are multiple SSLs installed with different versions.
4240     - When we try to be a server and Address is not explicitly set and
4241       our hostname resolves to a private IP address, try to use an
4242       interface address if it has a public address. Now Windows machines
4243       that think of themselves as localhost can work by default.
4245   o New features:
4246     - Let the controller ask for GETINFO dir/server/foo so it can ask
4247       directly rather than connecting to the dir port.
4248     - Let the controller tell us about certain router descriptors
4249       that it doesn't want Tor to use in circuits. Implement
4250       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
4251     - New config option SafeSocks to reject all application connections
4252       using unsafe socks protocols. Defaults to off.
4255 Changes in version 0.1.1.15-rc - 2006-03-11
4256   o Bugfixes and cleanups:
4257     - When we're printing strings from the network, don't try to print
4258       non-printable characters. This protects us against shell escape
4259       sequence exploits, and also against attacks to fool humans into
4260       misreading their logs.
4261     - Fix a bug where Tor would fail to establish any connections if you
4262       left it off for 24 hours and then started it: we were happy with
4263       the obsolete network statuses, but they all referred to router
4264       descriptors that were too old to fetch, so we ended up with no
4265       valid router descriptors.
4266     - Fix a seg fault in the controller's "getinfo orconn-status"
4267       command while listing status on incoming handshaking connections.
4268       Introduce a status name "NEW" for these connections.
4269     - If we get a linelist or linelist_s config option from the torrc
4270       (e.g. ExitPolicy) and it has no value, warn and skip rather than
4271       silently resetting it to its default.
4272     - Don't abandon entry guards until they've been down or gone for
4273       a whole month.
4274     - Cleaner and quieter log messages.
4276   o New features:
4277     - New controller signal NEWNYM that makes new application requests
4278       use clean circuits.
4279     - Add a new circuit purpose 'controller' to let the controller ask
4280       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
4281       controller command to let you specify the purpose if you're
4282       starting a new circuit.  Add a new SETCIRCUITPURPOSE controller
4283       command to let you change a circuit's purpose after it's been
4284       created.
4285     - Accept "private:*" in routerdesc exit policies; not generated yet
4286       because older Tors do not understand it.
4287     - Add BSD-style contributed startup script "rc.subr" from Peter
4288       Thoenen.
4291 Changes in version 0.1.1.14-alpha - 2006-02-20
4292   o Bugfixes on 0.1.1.x:
4293     - Don't die if we ask for a stdout or stderr log (even implicitly)
4294       and we're set to RunAsDaemon -- just warn.
4295     - We still had a few bugs in the OR connection rotation code that
4296       caused directory servers to slowly aggregate connections to other
4297       fast Tor servers. This time for sure!
4298     - Make log entries on Win32 include the name of the function again.
4299     - We were treating a pair of exit policies if they were equal even
4300       if one said accept and the other said reject -- causing us to
4301       not always publish a new descriptor since we thought nothing
4302       had changed.
4303     - Retry pending server downloads as well as pending networkstatus
4304       downloads when we unexpectedly get a socks request.
4305     - We were ignoring the IS_FAST flag in the directory status,
4306       meaning we were willing to pick trivial-bandwidth nodes for "fast"
4307       connections.
4308     - If the controller's SAVECONF command fails (e.g. due to file
4309       permissions), let the controller know that it failed.
4311   o Features:
4312     - If we're trying to be a Tor server and running Windows 95/98/ME
4313       as a server, explain that we'll likely crash.
4314     - When we're a server, a client asks for an old-style directory,
4315       and our write bucket is empty, don't give it to him. This way
4316       small servers can continue to serve the directory *sometimes*,
4317       without getting overloaded.
4318     - Compress exit policies even more -- look for duplicate lines
4319       and remove them.
4320     - Clients now honor the "guard" flag in the router status when
4321       picking entry guards, rather than looking at is_fast or is_stable.
4322     - Retain unrecognized lines in $DATADIR/state file, so that we can
4323       be forward-compatible.
4324     - Generate 18.0.0.0/8 address policy format in descs when we can;
4325       warn when the mask is not reducible to a bit-prefix.
4326     - Let the user set ControlListenAddress in the torrc.  This can be
4327       dangerous, but there are some cases (like a secured LAN) where it
4328       makes sense.
4329     - Split ReachableAddresses into ReachableDirAddresses and
4330       ReachableORAddresses, so we can restrict Dir conns to port 80
4331       and OR conns to port 443.
4332     - Now we can target arch and OS in rpm builds (contributed by
4333       Phobos). Also make the resulting dist-rpm filename match the
4334       target arch.
4335     - New config options to help controllers: FetchServerDescriptors
4336       and FetchHidServDescriptors for whether to fetch server
4337       info and hidserv info or let the controller do it, and
4338       PublishServerDescriptor and PublishHidServDescriptors.
4339     - Also let the controller set the __AllDirActionsPrivate config
4340       option if you want all directory fetches/publishes to happen via
4341       Tor (it assumes your controller bootstraps your circuits).
4344 Changes in version 0.1.0.17 - 2006-02-17
4345   o Crash bugfixes on 0.1.0.x:
4346     - When servers with a non-zero DirPort came out of hibernation,
4347       sometimes they would trigger an assert.
4349   o Other important bugfixes:
4350     - On platforms that don't have getrlimit (like Windows), we were
4351       artificially constraining ourselves to a max of 1024
4352       connections. Now just assume that we can handle as many as 15000
4353       connections. Hopefully this won't cause other problems.
4355   o Backported features:
4356     - When we're a server, a client asks for an old-style directory,
4357       and our write bucket is empty, don't give it to him. This way
4358       small servers can continue to serve the directory *sometimes*,
4359       without getting overloaded.
4360     - Whenever you get a 503 in response to a directory fetch, try
4361       once more. This will become important once servers start sending
4362       503's whenever they feel busy.
4363     - Fetch a new directory every 120 minutes, not every 40 minutes.
4364       Now that we have hundreds of thousands of users running the old
4365       directory algorithm, it's starting to hurt a lot.
4366     - Bump up the period for forcing a hidden service descriptor upload
4367       from 20 minutes to 1 hour.
4370 Changes in version 0.1.1.13-alpha - 2006-02-09
4371   o Crashes in 0.1.1.x:
4372     - When you tried to setconf ORPort via the controller, Tor would
4373       crash. So people using TorCP to become a server were sad.
4374     - Solve (I hope) the stack-smashing bug that we were seeing on fast
4375       servers. The problem appears to be something do with OpenSSL's
4376       random number generation, or how we call it, or something. Let me
4377       know if the crashes continue.
4378     - Turn crypto hardware acceleration off by default, until we find
4379       somebody smart who can test it for us. (It appears to produce
4380       seg faults in at least some cases.)
4381     - Fix a rare assert error when we've tried all intro points for
4382       a hidden service and we try fetching the service descriptor again:
4383       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
4385   o Major fixes:
4386     - Fix a major load balance bug: we were round-robining in 16 KB
4387       chunks, and servers with bandwidthrate of 20 KB, while downloading
4388       a 600 KB directory, would starve their other connections. Now we
4389       try to be a bit more fair.
4390     - Dir authorities and mirrors were never expiring the newest
4391       descriptor for each server, causing memory and directory bloat.
4392     - Fix memory-bloating and connection-bloating bug on servers: We
4393       were never closing any connection that had ever had a circuit on
4394       it, because we were checking conn->n_circuits == 0, yet we had a
4395       bug that let it go negative.
4396     - Make Tor work using squid as your http proxy again -- squid
4397       returns an error if you ask for a URL that's too long, and it uses
4398       a really generic error message. Plus, many people are behind a
4399       transparent squid so they don't even realize it.
4400     - On platforms that don't have getrlimit (like Windows), we were
4401       artificially constraining ourselves to a max of 1024
4402       connections. Now just assume that we can handle as many as 15000
4403       connections. Hopefully this won't cause other problems.
4404     - Add a new config option ExitPolicyRejectPrivate which defaults to
4405       1. This means all exit policies will begin with rejecting private
4406       addresses, unless the server operator explicitly turns it off.
4408   o Major features:
4409     - Clients no longer download descriptors for non-running
4410       descriptors.
4411     - Before we add new directory authorities, we should make it
4412       clear that only v1 authorities should receive/publish hidden
4413       service descriptors.
4415   o Minor features:
4416     - As soon as we've fetched some more directory info, immediately
4417       try to download more server descriptors. This way we don't have
4418       a 10 second pause during initial bootstrapping.
4419     - Remove even more loud log messages that the server operator can't
4420       do anything about.
4421     - When we're running an obsolete or un-recommended version, make
4422       the log message more clear about what the problem is and what
4423       versions *are* still recommended.
4424     - Provide a more useful warn message when our onion queue gets full:
4425       the CPU is too slow or the exit policy is too liberal.
4426     - Don't warn when we receive a 503 from a dirserver/cache -- this
4427       will pave the way for them being able to refuse if they're busy.
4428     - When we fail to bind a listener, try to provide a more useful
4429       log message: e.g., "Is Tor already running?"
4430     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
4431       Goldberg can prove things about our handshake protocol more
4432       easily.
4433     - MaxConn has been obsolete for a while now. Document the ConnLimit
4434       config option, which is a *minimum* number of file descriptors
4435       that must be available else Tor refuses to start.
4436     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
4437       if you log to syslog and want something other than LOG_DAEMON.
4438     - Make dirservers generate a separate "guard" flag to mean,
4439       "would make a good entry guard". Make clients parse it and vote
4440       on it. Not used by clients yet.
4441     - Implement --with-libevent-dir option to ./configure. Also, improve
4442       search techniques to find libevent, and use those for openssl too.
4443     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
4444     - Only start testing reachability once we've established a
4445       circuit. This will make startup on dirservers less noisy.
4446     - Don't try to upload hidden service descriptors until we have
4447       established a circuit.
4448     - Fix the controller's "attachstream 0" command to treat conn like
4449       it just connected, doing address remapping, handling .exit and
4450       .onion idioms, and so on. Now we're more uniform in making sure
4451       that the controller hears about new and closing connections.
4454 Changes in version 0.1.1.12-alpha - 2006-01-11
4455   o Bugfixes on 0.1.1.x:
4456     - The fix to close duplicate server connections was closing all
4457       Tor client connections if they didn't establish a circuit
4458       quickly enough. Oops.
4459     - Fix minor memory issue (double-free) that happened on exit.
4461   o Bugfixes on 0.1.0.x:
4462     - Tor didn't warn when it failed to open a log file.
4465 Changes in version 0.1.1.11-alpha - 2006-01-10
4466   o Crashes in 0.1.1.x:
4467     - Include all the assert/crash fixes from 0.1.0.16.
4468     - If you start Tor and then quit very quickly, there were some
4469       races that tried to free things that weren't allocated yet.
4470     - Fix a rare memory stomp if you're running hidden services.
4471     - Fix segfault when specifying DirServer in config without nickname.
4472     - Fix a seg fault when you finish connecting to a server but at
4473       that moment you dump his server descriptor.
4474     - Extendcircuit and Attachstream controller commands would
4475       assert/crash if you don't give them enough arguments.
4476     - Fix an assert error when we're out of space in the connection_list
4477       and we try to post a hidden service descriptor (reported by weasel).
4478     - If you specify a relative torrc path and you set RunAsDaemon in
4479       your torrc, then it chdir()'s to the new directory. If you HUP,
4480       it tries to load the new torrc location, fails, and exits.
4481       The fix: no longer allow a relative path to torrc using -f.
4483   o Major features:
4484     - Implement "entry guards": automatically choose a handful of entry
4485       nodes and stick with them for all circuits. Only pick new guards
4486       when the ones you have are unsuitable, and if the old guards
4487       become suitable again, switch back. This will increase security
4488       dramatically against certain end-point attacks. The EntryNodes
4489       config option now provides some hints about which entry guards you
4490       want to use most; and StrictEntryNodes means to only use those.
4491     - New directory logic: download by descriptor digest, not by
4492       fingerprint. Caches try to download all listed digests from
4493       authorities; clients try to download "best" digests from caches.
4494       This avoids partitioning and isolating attacks better.
4495     - Make the "stable" router flag in network-status be the median of
4496       the uptimes of running valid servers, and make clients pay
4497       attention to the network-status flags. Thus the cutoff adapts
4498       to the stability of the network as a whole, making IRC, IM, etc
4499       connections more reliable.
4501   o Major fixes:
4502     - Tor servers with dynamic IP addresses were needing to wait 18
4503       hours before they could start doing reachability testing using
4504       the new IP address and ports. This is because they were using
4505       the internal descriptor to learn what to test, yet they were only
4506       rebuilding the descriptor once they decided they were reachable.
4507     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
4508       to download certain server descriptors, throw them away, and then
4509       fetch them again after 30 minutes. Now mirrors throw away these
4510       server descriptors so clients can't get them.
4511     - We were leaving duplicate connections to other ORs open for a week,
4512       rather than closing them once we detect a duplicate. This only
4513       really affected authdirservers, but it affected them a lot.
4514     - Spread the authdirservers' reachability testing over the entire
4515       testing interval, so we don't try to do 500 TLS's at once every
4516       20 minutes.
4518   o Minor fixes:
4519     - If the network is down, and we try to connect to a conn because
4520       we have a circuit in mind, and we timeout (30 seconds) because the
4521       network never answers, we were expiring the circuit, but we weren't
4522       obsoleting the connection or telling the entry_guards functions.
4523     - Some Tor servers process billions of cells per day. These statistics
4524       need to be uint64_t's.
4525     - Check for integer overflows in more places, when adding elements
4526       to smartlists. This could possibly prevent a buffer overflow
4527       on malicious huge inputs. I don't see any, but I haven't looked
4528       carefully.
4529     - ReachableAddresses kept growing new "reject *:*" lines on every
4530       setconf/reload.
4531     - When you "setconf log" via the controller, it should remove all
4532       logs. We were automatically adding back in a "log notice stdout".
4533     - Newly bootstrapped Tor networks couldn't establish hidden service
4534       circuits until they had nodes with high uptime. Be more tolerant.
4535     - We were marking servers down when they could not answer every piece
4536       of the directory request we sent them. This was far too harsh.
4537     - Fix the torify (tsocks) config file to not use Tor for localhost
4538       connections.
4539     - Directory authorities now go to the proper authority when asking for
4540       a networkstatus, even when they want a compressed one.
4541     - Fix a harmless bug that was causing Tor servers to log
4542       "Got an end because of misc error, but we're not an AP. Closing."
4543     - Authorities were treating their own descriptor changes as cosmetic,
4544       meaning the descriptor available in the network-status and the
4545       descriptor that clients downloaded were different.
4546     - The OS X installer was adding a symlink for tor_resolve but
4547       the binary was called tor-resolve (reported by Thomas Hardly).
4548     - Workaround a problem with some http proxies where they refuse GET
4549       requests that specify "Content-Length: 0" (reported by Adrian).
4550     - Fix wrong log message when you add a "HiddenServiceNodes" config
4551       line without any HiddenServiceDir line (reported by Chris Thomas).
4553   o Minor features:
4554     - Write the TorVersion into the state file so we have a prayer of
4555       keeping forward and backward compatibility.
4556     - Revive the FascistFirewall config option rather than eliminating it:
4557       now it's a synonym for ReachableAddresses *:80,*:443.
4558     - Clients choose directory servers from the network status lists,
4559       not from their internal list of router descriptors. Now they can
4560       go to caches directly rather than needing to go to authorities
4561       to bootstrap.
4562     - Directory authorities ignore router descriptors that have only
4563       cosmetic differences: do this for 0.1.0.x servers now too.
4564     - Add a new flag to network-status indicating whether the server
4565       can answer v2 directory requests too.
4566     - Authdirs now stop whining so loudly about bad descriptors that
4567       they fetch from other dirservers. So when there's a log complaint,
4568       it's for sure from a freshly uploaded descriptor.
4569     - Reduce memory requirements in our structs by changing the order
4570       of fields.
4571     - There used to be two ways to specify your listening ports in a
4572       server descriptor: on the "router" line and with a separate "ports"
4573       line. Remove support for the "ports" line.
4574     - New config option "AuthDirRejectUnlisted" for auth dirservers as
4575       a panic button: if we get flooded with unusable servers we can
4576       revert to only listing servers in the approved-routers file.
4577     - Auth dir servers can now mark a fingerprint as "!reject" or
4578       "!invalid" in the approved-routers file (as its nickname), to
4579       refuse descriptors outright or include them but marked as invalid.
4580     - Servers store bandwidth history across restarts/crashes.
4581     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
4582       get a better idea of why their circuits failed. Not used yet.
4583     - Directory mirrors now cache up to 16 unrecognized network-status
4584       docs. Now we can add new authdirservers and they'll be cached too.
4585     - When picking a random directory, prefer non-authorities if any
4586       are known.
4587     - New controller option "getinfo desc/all-recent" to fetch the
4588       latest server descriptor for every router that Tor knows about.
4591 Changes in version 0.1.0.16 - 2006-01-02
4592   o Crash bugfixes on 0.1.0.x:
4593     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
4594       corrupting the heap, losing FDs, or crashing when we need to resize
4595       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
4596     - It turns out sparc64 platforms crash on unaligned memory access
4597       too -- so detect and avoid this.
4598     - Handle truncated compressed data correctly (by detecting it and
4599       giving an error).
4600     - Fix possible-but-unlikely free(NULL) in control.c.
4601     - When we were closing connections, there was a rare case that
4602       stomped on memory, triggering seg faults and asserts.
4603     - Avoid potential infinite recursion when building a descriptor. (We
4604       don't know that it ever happened, but better to fix it anyway.)
4605     - We were neglecting to unlink marked circuits from soon-to-close OR
4606       connections, which caused some rare scribbling on freed memory.
4607     - Fix a memory stomping race bug when closing the joining point of two
4608       rendezvous circuits.
4609     - Fix an assert in time parsing found by Steven Murdoch.
4611   o Other bugfixes on 0.1.0.x:
4612     - When we're doing reachability testing, provide more useful log
4613       messages so the operator knows what to expect.
4614     - Do not check whether DirPort is reachable when we are suppressing
4615       advertising it because of hibernation.
4616     - When building with -static or on Solaris, we sometimes needed -ldl.
4617     - When we're deciding whether a stream has enough circuits around
4618       that can handle it, count the freshly dirty ones and not the ones
4619       that are so dirty they won't be able to handle it.
4620     - When we're expiring old circuits, we had a logic error that caused
4621       us to close new rendezvous circuits rather than old ones.
4622     - Give a more helpful log message when you try to change ORPort via
4623       the controller: you should upgrade Tor if you want that to work.
4624     - We were failing to parse Tor versions that start with "Tor ".
4625     - Tolerate faulty streams better: when a stream fails for reason
4626       exitpolicy, stop assuming that the router is lying about his exit
4627       policy. When a stream fails for reason misc, allow it to retry just
4628       as if it was resolvefailed. When a stream has failed three times,
4629       reset its failure count so we can try again and get all three tries.
4632 Changes in version 0.1.1.10-alpha - 2005-12-11
4633   o Correctness bugfixes on 0.1.0.x:
4634     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
4635       corrupting the heap, losing FDs, or crashing when we need to resize
4636       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
4637     - Stop doing the complex voodoo overkill checking for insecure
4638       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
4639     - When we were closing connections, there was a rare case that
4640       stomped on memory, triggering seg faults and asserts.
4641     - We were neglecting to unlink marked circuits from soon-to-close OR
4642       connections, which caused some rare scribbling on freed memory.
4643     - When we're deciding whether a stream has enough circuits around
4644       that can handle it, count the freshly dirty ones and not the ones
4645       that are so dirty they won't be able to handle it.
4646     - Recover better from TCP connections to Tor servers that are
4647       broken but don't tell you (it happens!); and rotate TLS
4648       connections once a week.
4649     - When we're expiring old circuits, we had a logic error that caused
4650       us to close new rendezvous circuits rather than old ones.
4651     - Fix a scary-looking but apparently harmless bug where circuits
4652       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
4653       servers, and never switch to state CIRCUIT_STATE_OPEN.
4654     - When building with -static or on Solaris, we sometimes needed to
4655       build with -ldl.
4656     - Give a useful message when people run Tor as the wrong user,
4657       rather than telling them to start chowning random directories.
4658     - We were failing to inform the controller about new .onion streams.
4660   o Security bugfixes on 0.1.0.x:
4661     - Refuse server descriptors if the fingerprint line doesn't match
4662       the included identity key. Tor doesn't care, but other apps (and
4663       humans) might actually be trusting the fingerprint line.
4664     - We used to kill the circuit when we receive a relay command we
4665       don't recognize. Now we just drop it.
4666     - Start obeying our firewall options more rigorously:
4667       . If we can't get to a dirserver directly, try going via Tor.
4668       . Don't ever try to connect (as a client) to a place our
4669         firewall options forbid.
4670       . If we specify a proxy and also firewall options, obey the
4671         firewall options even when we're using the proxy: some proxies
4672         can only proxy to certain destinations.
4673     - Fix a bug found by Lasse Overlier: when we were making internal
4674       circuits (intended to be cannibalized later for rendezvous and
4675       introduction circuits), we were picking them so that they had
4676       useful exit nodes. There was no need for this, and it actually
4677       aids some statistical attacks.
4678     - Start treating internal circuits and exit circuits separately.
4679       It's important to keep them separate because internal circuits
4680       have their last hops picked like middle hops, rather than like
4681       exit hops. So exiting on them will break the user's expectations.
4683   o Bugfixes on 0.1.1.x:
4684     - Take out the mis-feature where we tried to detect IP address
4685       flapping for people with DynDNS, and chose not to upload a new
4686       server descriptor sometimes.
4687     - Try to be compatible with OpenSSL 0.9.6 again.
4688     - Log fix: when the controller is logging about .onion addresses,
4689       sometimes it didn't include the ".onion" part of the address.
4690     - Don't try to modify options->DirServers internally -- if the
4691       user didn't specify any, just add the default ones directly to
4692       the trusted dirserver list. This fixes a bug where people running
4693       controllers would use SETCONF on some totally unrelated config
4694       option, and Tor would start yelling at them about changing their
4695       DirServer lines.
4696     - Let the controller's redirectstream command specify a port, in
4697       case the controller wants to change that too.
4698     - When we requested a pile of server descriptors, we sometimes
4699       accidentally launched a duplicate request for the first one.
4700     - Bugfix for trackhostexits: write down the fingerprint of the
4701       chosen exit, not its nickname, because the chosen exit might not
4702       be verified.
4703     - When parsing foo.exit, if foo is unknown, and we are leaving
4704       circuits unattached, set the chosen_exit field and leave the
4705       address empty. This matters because controllers got confused
4706       otherwise.
4707     - Directory authorities no longer try to download server
4708       descriptors that they know they will reject.
4710   o Features and updates:
4711     - Replace balanced trees with hash tables: this should make stuff
4712       significantly faster.
4713     - Resume using the AES counter-mode implementation that we ship,
4714       rather than OpenSSL's. Ours is significantly faster.
4715     - Many other CPU and memory improvements.
4716     - Add a new config option FastFirstHopPK (on by default) so clients
4717       do a trivial crypto handshake for their first hop, since TLS has
4718       already taken care of confidentiality and authentication.
4719     - Add a new config option TestSocks so people can see if their
4720       applications are using socks4, socks4a, socks5-with-ip, or
4721       socks5-with-hostname. This way they don't have to keep mucking
4722       with tcpdump and wondering if something got cached somewhere.
4723     - Warn when listening on a public address for socks. I suspect a
4724       lot of people are setting themselves up as open socks proxies,
4725       and they have no idea that jerks on the Internet are using them,
4726       since they simply proxy the traffic into the Tor network.
4727     - Add "private:*" as an alias in configuration for policies. Now
4728       you can simplify your exit policy rather than needing to list
4729       every single internal or nonroutable network space.
4730     - Add a new controller event type that allows controllers to get
4731       all server descriptors that were uploaded to a router in its role
4732       as authoritative dirserver.
4733     - Start shipping socks-extensions.txt, tor-doc-unix.html,
4734       tor-doc-server.html, and stylesheet.css in the tarball.
4735     - Stop shipping tor-doc.html in the tarball.
4738 Changes in version 0.1.1.9-alpha - 2005-11-15
4739   o Usability improvements:
4740     - Start calling it FooListenAddress rather than FooBindAddress,
4741       since few of our users know what it means to bind an address
4742       or port.
4743     - Reduce clutter in server logs. We're going to try to make
4744       them actually usable now. New config option ProtocolWarnings that
4745       lets you hear about how _other Tors_ are breaking the protocol. Off
4746       by default.
4747     - Divide log messages into logging domains. Once we put some sort
4748       of interface on this, it will let people looking at more verbose
4749       log levels specify the topics they want to hear more about.
4750     - Make directory servers return better http 404 error messages
4751       instead of a generic "Servers unavailable".
4752     - Check for even more Windows version flags when writing the platform
4753       string in server descriptors, and note any we don't recognize.
4754     - Clean up more of the OpenSSL memory when exiting, so we can detect
4755       memory leaks better.
4756     - Make directory authorities be non-versioning, non-naming by
4757       default. Now we can add new directory servers without requiring
4758       their operators to pay close attention.
4759     - When logging via syslog, include the pid whenever we provide
4760       a log entry. Suggested by Todd Fries.
4762   o Performance improvements:
4763     - Directory servers now silently throw away new descriptors that
4764       haven't changed much if the timestamps are similar. We do this to
4765       tolerate older Tor servers that upload a new descriptor every 15
4766       minutes. (It seemed like a good idea at the time.)
4767     - Inline bottleneck smartlist functions; use fast versions by default.
4768     - Add a "Map from digest to void*" abstraction digestmap_t so we
4769       can do less hex encoding/decoding. Use it in router_get_by_digest()
4770       to resolve a performance bottleneck.
4771     - Allow tor_gzip_uncompress to extract as much as possible from
4772       truncated compressed data. Try to extract as many
4773       descriptors as possible from truncated http responses (when
4774       DIR_PURPOSE_FETCH_ROUTERDESC).
4775     - Make circ->onionskin a pointer, not a static array. moria2 was using
4776       125000 circuit_t's after it had been up for a few weeks, which
4777       translates to 20+ megs of wasted space.
4778     - The private half of our EDH handshake keys are now chosen out
4779       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
4781   o Security improvements:
4782     - Start making directory caches retain old routerinfos, so soon
4783       clients can start asking by digest of descriptor rather than by
4784       fingerprint of server.
4785     - Add half our entropy from RAND_poll in OpenSSL.  This knows how
4786       to use egd (if present), openbsd weirdness (if present), vms/os2
4787       weirdness (if we ever port there), and more in the future.
4789   o Bugfixes on 0.1.0.x:
4790     - Do round-robin writes of at most 16 kB per write. This might be
4791       more fair on loaded Tor servers, and it might resolve our Windows
4792       crash bug. It might also slow things down.
4793     - Our TLS handshakes were generating a single public/private
4794       keypair for the TLS context, rather than making a new one for
4795       each new connections. Oops. (But we were still rotating them
4796       periodically, so it's not so bad.)
4797     - When we were cannibalizing a circuit with a particular exit
4798       node in mind, we weren't checking to see if that exit node was
4799       already present earlier in the circuit. Oops.
4800     - When a Tor server's IP changes (e.g. from a dyndns address),
4801       upload a new descriptor so clients will learn too.
4802     - Really busy servers were keeping enough circuits open on stable
4803       connections that they were wrapping around the circuit_id
4804       space. (It's only two bytes.) This exposed a bug where we would
4805       feel free to reuse a circuit_id even if it still exists but has
4806       been marked for close. Try to fix this bug. Some bug remains.
4807     - If we would close a stream early (e.g. it asks for a .exit that
4808       we know would refuse it) but the LeaveStreamsUnattached config
4809       option is set by the controller, then don't close it.
4811   o Bugfixes on 0.1.1.8-alpha:
4812     - Fix a big pile of memory leaks, some of them serious.
4813     - Do not try to download a routerdesc if we would immediately reject
4814       it as obsolete.
4815     - Resume inserting a newline between all router descriptors when
4816       generating (old style) signed directories, since our spec says
4817       we do.
4818     - When providing content-type application/octet-stream for
4819       server descriptors using .z, we were leaving out the
4820       content-encoding header. Oops. (Everything tolerated this just
4821       fine, but that doesn't mean we need to be part of the problem.)
4822     - Fix a potential seg fault in getconf and getinfo using version 1
4823       of the controller protocol.
4824     - Avoid crash: do not check whether DirPort is reachable when we
4825       are suppressing it because of hibernation.
4826     - Make --hash-password not crash on exit.
4829 Changes in version 0.1.1.8-alpha - 2005-10-07
4830   o New features (major):
4831     - Clients don't download or use the directory anymore. Now they
4832       download and use network-statuses from the trusted dirservers,
4833       and fetch individual server descriptors as needed from mirrors.
4834       See dir-spec.txt for all the gory details.
4835     - Be more conservative about whether to advertise our DirPort.
4836       The main change is to not advertise if we're running at capacity
4837       and either a) we could hibernate or b) our capacity is low and
4838       we're using a default DirPort.
4839     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
4841   o New features (minor):
4842     - Try to be smart about when to retry network-status and
4843       server-descriptor fetches. Still needs some tuning.
4844     - Stop parsing, storing, or using running-routers output (but
4845       mirrors still cache and serve it).
4846     - Consider a threshold of versioning dirservers (dirservers who have
4847       an opinion about which Tor versions are still recommended) before
4848       deciding whether to warn the user that he's obsolete.
4849     - Dirservers can now reject/invalidate by key and IP, with the
4850       config options "AuthDirInvalid" and "AuthDirReject". This is
4851       useful since currently we automatically list servers as running
4852       and usable even if we know they're jerks.
4853     - Provide dire warnings to any users who set DirServer; move it out
4854       of torrc.sample and into torrc.complete.
4855     - Add MyFamily to torrc.sample in the server section.
4856     - Add nicknames to the DirServer line, so we can refer to them
4857       without requiring all our users to memorize their IP addresses.
4858     - When we get an EOF or a timeout on a directory connection, note
4859       how many bytes of serverdesc we are dropping. This will help
4860       us determine whether it is smart to parse incomplete serverdesc
4861       responses.
4862     - Add a new function to "change pseudonyms" -- that is, to stop
4863       using any currently-dirty circuits for new streams, so we don't
4864       link new actions to old actions. Currently it's only called on
4865       HUP (or SIGNAL RELOAD).
4866     - On sighup, if UseHelperNodes changed to 1, use new circuits.
4867     - Start using RAND_bytes rather than RAND_pseudo_bytes from
4868       OpenSSL. Also, reseed our entropy every hour, not just at
4869       startup. And entropy in 512-bit chunks, not 160-bit chunks.
4871   o Fixes on 0.1.1.7-alpha:
4872     - Nobody ever implemented EVENT_ADDRMAP for control protocol
4873       version 0, so don't let version 0 controllers ask for it.
4874     - If you requested something with too many newlines via the
4875       v1 controller protocol, you could crash tor.
4876     - Fix a number of memory leaks, including some pretty serious ones.
4877     - Re-enable DirPort testing again, so Tor servers will be willing
4878       to advertise their DirPort if it's reachable.
4879     - On TLS handshake, only check the other router's nickname against
4880       its expected nickname if is_named is set.
4882   o Fixes forward-ported from 0.1.0.15:
4883     - Don't crash when we don't have any spare file descriptors and we
4884       try to spawn a dns or cpu worker.
4885     - Make the numbers in read-history and write-history into uint64s,
4886       so they don't overflow and publish negatives in the descriptor.
4888   o Fixes on 0.1.0.x:
4889     - For the OS X package's modified privoxy config file, comment
4890       out the "logfile" line so we don't log everything passed
4891       through privoxy.
4892     - We were whining about using socks4 or socks5-with-local-lookup
4893       even when it's an IP in the "virtual" range we designed exactly
4894       for this case.
4895     - We were leaking some memory every time the client changes IPs.
4896     - Never call free() on tor_malloc()d memory. This will help us
4897       use dmalloc to detect memory leaks.
4898     - Check for named servers when looking them up by nickname;
4899       warn when we'recalling a non-named server by its nickname;
4900       don't warn twice about the same name.
4901     - Try to list MyFamily elements by key, not by nickname, and warn
4902       if we've not heard of the server.
4903     - Make windows platform detection (uname equivalent) smarter.
4904     - It turns out sparc64 doesn't like unaligned access either.
4907 Changes in version 0.1.0.15 - 2005-09-23
4908   o Bugfixes on 0.1.0.x:
4909     - Reject ports 465 and 587 (spam targets) in default exit policy.
4910     - Don't crash when we don't have any spare file descriptors and we
4911       try to spawn a dns or cpu worker.
4912     - Get rid of IgnoreVersion undocumented config option, and make us
4913       only warn, never exit, when we're running an obsolete version.
4914     - Don't try to print a null string when your server finds itself to
4915       be unreachable and the Address config option is empty.
4916     - Make the numbers in read-history and write-history into uint64s,
4917       so they don't overflow and publish negatives in the descriptor.
4918     - Fix a minor memory leak in smartlist_string_remove().
4919     - We were only allowing ourselves to upload a server descriptor at
4920       most every 20 minutes, even if it changed earlier than that.
4921     - Clean up log entries that pointed to old URLs.
4924 Changes in version 0.1.1.7-alpha - 2005-09-14
4925   o Fixes on 0.1.1.6-alpha:
4926     - Exit servers were crashing when people asked them to make a
4927       connection to an address not in their exit policy.
4928     - Looking up a non-existent stream for a v1 control connection would
4929       cause a segfault.
4930     - Fix a seg fault if we ask a dirserver for a descriptor by
4931       fingerprint but he doesn't know about him.
4932     - SETCONF was appending items to linelists, not clearing them.
4933     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
4934       out and refuse the setconf if it would fail.
4935     - Downgrade the dirserver log messages when whining about
4936       unreachability.
4938   o New features:
4939     - Add Peter Palfrader's check-tor script to tor/contrib/
4940       It lets you easily check whether a given server (referenced by
4941       nickname) is reachable by you.
4942     - Numerous changes to move towards client-side v2 directories. Not
4943       enabled yet.
4945   o Fixes on 0.1.0.x:
4946     - If the user gave tor an odd number of command-line arguments,
4947       we were silently ignoring the last one. Now we complain and fail.
4948       [This wins the oldest-bug prize -- this bug has been present since
4949        November 2002, as released in Tor 0.0.0.]
4950     - Do not use unaligned memory access on alpha, mips, or mipsel.
4951       It *works*, but is very slow, so we treat them as if it doesn't.
4952     - Retry directory requests if we fail to get an answer we like
4953       from a given dirserver (we were retrying before, but only if
4954       we fail to connect).
4955     - When writing the RecommendedVersions line, sort them first.
4956     - When the client asked for a rendezvous port that the hidden
4957       service didn't want to provide, we were sending an IP address
4958       back along with the end cell. Fortunately, it was zero. But stop
4959       that anyway.
4960     - Correct "your server is reachable" log entries to indicate that
4961       it was self-testing that told us so.
4964 Changes in version 0.1.1.6-alpha - 2005-09-09
4965   o Fixes on 0.1.1.5-alpha:
4966     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
4967     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
4968     - Fix bug with tor_memmem finding a match at the end of the string.
4969     - Make unit tests run without segfaulting.
4970     - Resolve some solaris x86 compile warnings.
4971     - Handle duplicate lines in approved-routers files without warning.
4972     - Fix bug where as soon as a server refused any requests due to his
4973       exit policy (e.g. when we ask for localhost and he tells us that's
4974       127.0.0.1 and he won't do it), we decided he wasn't obeying his
4975       exit policy using him for any exits.
4976     - Only do openssl hardware accelerator stuff if openssl version is
4977       at least 0.9.7.
4979   o New controller features/fixes:
4980     - Add a "RESETCONF" command so you can set config options like
4981       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
4982       a config option in the torrc with no value, then it clears it
4983       entirely (rather than setting it to its default).
4984     - Add a "GETINFO config-file" to tell us where torrc is.
4985     - Avoid sending blank lines when GETINFO replies should be empty.
4986     - Add a QUIT command for the controller (for using it manually).
4987     - Fix a bug in SAVECONF that was adding default dirservers and
4988       other redundant entries to the torrc file.
4990   o Start on the new directory design:
4991     - Generate, publish, cache, serve new network-status format.
4992     - Publish individual descriptors (by fingerprint, by "all", and by
4993       "tell me yours").
4994     - Publish client and server recommended versions separately.
4995     - Allow tor_gzip_uncompress() to handle multiple concatenated
4996       compressed strings. Serve compressed groups of router
4997       descriptors. The compression logic here could be more
4998       memory-efficient.
4999     - Distinguish v1 authorities (all currently trusted directories)
5000       from v2 authorities (all trusted directories).
5001     - Change DirServers config line to note which dirs are v1 authorities.
5002     - Add configuration option "V1AuthoritativeDirectory 1" which
5003       moria1, moria2, and tor26 should set.
5004     - Remove option when getting directory cache to see whether they
5005       support running-routers; they all do now. Replace it with one
5006       to see whether caches support v2 stuff.
5008   o New features:
5009     - Dirservers now do their own external reachability testing of each
5010       Tor server, and only list them as running if they've been found to
5011       be reachable. We also send back warnings to the server's logs if
5012       it uploads a descriptor that we already believe is unreachable.
5013     - Implement exit enclaves: if we know an IP address for the
5014       destination, and there's a running Tor server at that address
5015       which allows exit to the destination, then extend the circuit to
5016       that exit first. This provides end-to-end encryption and end-to-end
5017       authentication. Also, if the user wants a .exit address or enclave,
5018       use 4 hops rather than 3, and cannibalize a general circ for it
5019       if you can.
5020     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
5021       controller. Also, rotate dns and cpu workers if the controller
5022       changes options that will affect them; and initialize the dns
5023       worker cache tree whether or not we start out as a server.
5024     - Only upload a new server descriptor when options change, 18
5025       hours have passed, uptime is reset, or bandwidth changes a lot.
5026     - Check [X-]Forwarded-For headers in HTTP requests when generating
5027       log messages. This lets people run dirservers (and caches) behind
5028       Apache but still know which IP addresses are causing warnings.
5030   o Config option changes:
5031     - Replace (Fascist)Firewall* config options with a new
5032       ReachableAddresses option that understands address policies.
5033       For example, "ReachableAddresses *:80,*:443"
5034     - Get rid of IgnoreVersion undocumented config option, and make us
5035       only warn, never exit, when we're running an obsolete version.
5036     - Make MonthlyAccountingStart config option truly obsolete now.
5038   o Fixes on 0.1.0.x:
5039     - Reject ports 465 and 587 in the default exit policy, since
5040       people have started using them for spam too.
5041     - It turns out we couldn't bootstrap a network since we added
5042       reachability detection in 0.1.0.1-rc. Good thing the Tor network
5043       has never gone down. Add an AssumeReachable config option to let
5044       servers and dirservers bootstrap. When we're trying to build a
5045       high-uptime or high-bandwidth circuit but there aren't enough
5046       suitable servers, try being less picky rather than simply failing.
5047     - Our logic to decide if the OR we connected to was the right guy
5048       was brittle and maybe open to a mitm for unverified routers.
5049     - We weren't cannibalizing circuits correctly for
5050       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
5051       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
5052       build those from scratch. This should make hidden services faster.
5053     - Predict required circuits better, with an eye toward making hidden
5054       services faster on the service end.
5055     - Retry streams if the exit node sends back a 'misc' failure. This
5056       should result in fewer random failures. Also, after failing
5057       from resolve failed or misc, reset the num failures, so we give
5058       it a fair shake next time we try.
5059     - Clean up the rendezvous warn log msgs, and downgrade some to info.
5060     - Reduce severity on logs about dns worker spawning and culling.
5061     - When we're shutting down and we do something like try to post a
5062       server descriptor or rendezvous descriptor, don't complain that
5063       we seem to be unreachable. Of course we are, we're shutting down.
5064     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
5065       We don't use them yet, but maybe one day our DNS resolver will be
5066       able to discover them.
5067     - Make ContactInfo mandatory for authoritative directory servers.
5068     - Require server descriptors to list IPv4 addresses -- hostnames
5069       are no longer allowed. This also fixes some potential security
5070       problems with people providing hostnames as their address and then
5071       preferentially resolving them to partition users.
5072     - Change log line for unreachability to explicitly suggest /etc/hosts
5073       as the culprit. Also make it clearer what IP address and ports we're
5074       testing for reachability.
5075     - Put quotes around user-supplied strings when logging so users are
5076       more likely to realize if they add bad characters (like quotes)
5077       to the torrc.
5078     - Let auth dir servers start without specifying an Address config
5079       option.
5080     - Make unit tests (and other invocations that aren't the real Tor)
5081       run without launching listeners, creating subdirectories, and so on.
5084 Changes in version 0.1.1.5-alpha - 2005-08-08
5085   o Bugfixes included in 0.1.0.14.
5087   o Bugfixes on 0.1.0.x:
5088     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
5089       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
5090       it would silently using ignore the 6668.
5093 Changes in version 0.1.0.14 - 2005-08-08
5094   o Bugfixes on 0.1.0.x:
5095       - Fix the other half of the bug with crypto handshakes
5096         (CVE-2005-2643).
5097       - Fix an assert trigger if you send a 'signal term' via the
5098         controller when it's listening for 'event info' messages.
5101 Changes in version 0.1.1.4-alpha - 2005-08-04
5102   o Bugfixes included in 0.1.0.13.
5104   o Features:
5105     - Improve tor_gettimeofday() granularity on windows.
5106     - Make clients regenerate their keys when their IP address changes.
5107     - Implement some more GETINFO goodness: expose helper nodes, config
5108       options, getinfo keys.
5111 Changes in version 0.1.0.13 - 2005-08-04
5112   o Bugfixes on 0.1.0.x:
5113     - Fix a critical bug in the security of our crypto handshakes.
5114     - Fix a size_t underflow in smartlist_join_strings2() that made
5115       it do bad things when you hand it an empty smartlist.
5116     - Fix Windows installer to ship Tor license (thanks to Aphex for
5117       pointing out this oversight) and put a link to the doc directory
5118       in the start menu.
5119     - Explicitly set no-unaligned-access for sparc: it turns out the
5120       new gcc's let you compile broken code, but that doesn't make it
5121       not-broken.
5124 Changes in version 0.1.1.3-alpha - 2005-07-23
5125   o Bugfixes on 0.1.1.2-alpha:
5126     - Fix a bug in handling the controller's "post descriptor"
5127       function.
5128     - Fix several bugs in handling the controller's "extend circuit"
5129       function.
5130     - Fix a bug in handling the controller's "stream status" event.
5131     - Fix an assert failure if we have a controller listening for
5132       circuit events and we go offline.
5133     - Re-allow hidden service descriptors to publish 0 intro points.
5134     - Fix a crash when generating your hidden service descriptor if
5135       you don't have enough intro points already.
5137   o New features on 0.1.1.2-alpha:
5138     - New controller function "getinfo accounting", to ask how
5139       many bytes we've used in this time period.
5140     - Experimental support for helper nodes: a lot of the risk from
5141       a small static adversary comes because users pick new random
5142       nodes every time they rebuild a circuit. Now users will try to
5143       stick to the same small set of entry nodes if they can. Not
5144       enabled by default yet.
5146   o Bugfixes on 0.1.0.12:
5147     - If you're an auth dir server, always publish your dirport,
5148       even if you haven't yet found yourself to be reachable.
5149     - Fix a size_t underflow in smartlist_join_strings2() that made
5150       it do bad things when you hand it an empty smartlist.
5153 Changes in version 0.1.0.12 - 2005-07-18
5154   o New directory servers:
5155       - tor26 has changed IP address.
5157   o Bugfixes on 0.1.0.x:
5158     - Fix a possible double-free in tor_gzip_uncompress().
5159     - When --disable-threads is set, do not search for or link against
5160       pthreads libraries.
5161     - Don't trigger an assert if an authoritative directory server
5162       claims its dirport is 0.
5163     - Fix bug with removing Tor as an NT service: some people were
5164       getting "The service did not return an error." Thanks to Matt
5165       Edman for the fix.
5168 Changes in version 0.1.1.2-alpha - 2005-07-15
5169   o New directory servers:
5170     - tor26 has changed IP address.
5172   o Bugfixes on 0.1.0.x, crashes/leaks:
5173     - Port the servers-not-obeying-their-exit-policies fix from
5174       0.1.0.11.
5175     - Fix an fd leak in start_daemon().
5176     - On Windows, you can't always reopen a port right after you've
5177       closed it. So change retry_listeners() to only close and re-open
5178       ports that have changed.
5179     - Fix a possible double-free in tor_gzip_uncompress().
5181   o Bugfixes on 0.1.0.x, usability:
5182     - When tor_socketpair() fails in Windows, give a reasonable
5183       Windows-style errno back.
5184     - Let people type "tor --install" as well as "tor -install" when
5185       they
5186       want to make it an NT service.
5187     - NT service patch from Matt Edman to improve error messages.
5188     - When the controller asks for a config option with an abbreviated
5189       name, give the full name in our response.
5190     - Correct the man page entry on TrackHostExitsExpire.
5191     - Looks like we were never delivering deflated (i.e. compressed)
5192       running-routers lists, even when asked. Oops.
5193     - When --disable-threads is set, do not search for or link against
5194       pthreads libraries.
5196   o Bugfixes on 0.1.1.x:
5197     - Fix a seg fault with autodetecting which controller version is
5198       being used.
5200   o Features:
5201     - New hidden service descriptor format: put a version in it, and
5202       let people specify introduction/rendezvous points that aren't
5203       in "the directory" (which is subjective anyway).
5204     - Allow the DEBUG controller event to work again. Mark certain log
5205       entries as "don't tell this to controllers", so we avoid cycles.
5208 Changes in version 0.1.0.11 - 2005-06-30
5209   o Bugfixes on 0.1.0.x:
5210     - Fix major security bug: servers were disregarding their
5211       exit policies if clients behaved unexpectedly.
5212     - Make OS X init script check for missing argument, so we don't
5213       confuse users who invoke it incorrectly.
5214     - Fix a seg fault in "tor --hash-password foo".
5215     - The MAPADDRESS control command was broken.
5218 Changes in version 0.1.1.1-alpha - 2005-06-29
5219   o Bugfixes:
5220     - Make OS X init script check for missing argument, so we don't
5221       confuse users who invoke it incorrectly.
5222     - Fix a seg fault in "tor --hash-password foo".
5223     - Fix a possible way to DoS dirservers.
5224     - When we complain that your exit policy implicitly allows local or
5225       private address spaces, name them explicitly so operators can
5226       fix it.
5227     - Make the log message less scary when all the dirservers are
5228       temporarily unreachable.
5229     - We were printing the number of idle dns workers incorrectly when
5230       culling them.
5232   o Features:
5233     - Revised controller protocol (version 1) that uses ascii rather
5234       than binary. Add supporting libraries in python and java so you
5235       can use the controller from your applications without caring how
5236       our protocol works.
5237     - Spiffy new support for crypto hardware accelerators. Can somebody
5238       test this?
5241 Changes in version 0.0.9.10 - 2005-06-16
5242   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
5243     - Refuse relay cells that claim to have a length larger than the
5244       maximum allowed. This prevents a potential attack that could read
5245       arbitrary memory (e.g. keys) from an exit server's process
5246       (CVE-2005-2050).
5249 Changes in version 0.1.0.10 - 2005-06-14
5250   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
5251     libevent before 1.1a.
5254 Changes in version 0.1.0.9-rc - 2005-06-09
5255   o Bugfixes:
5256     - Reset buf->highwater every time buf_shrink() is called, not just on
5257       a successful shrink. This was causing significant memory bloat.
5258     - Fix buffer overflow when checking hashed passwords.
5259     - Security fix: if seeding the RNG on Win32 fails, quit.
5260     - Allow seeding the RNG on Win32 even when you're not running as
5261       Administrator.
5262     - Disable threading on Solaris too. Something is wonky with it,
5263       cpuworkers, and reentrant libs.
5264     - Reenable the part of the code that tries to flush as soon as an
5265       OR outbuf has a full TLS record available. Perhaps this will make
5266       OR outbufs not grow as huge except in rare cases, thus saving lots
5267       of CPU time plus memory.
5268     - Reject malformed .onion addresses rather then passing them on as
5269       normal web requests.
5270     - Adapt patch from Adam Langley: fix possible memory leak in
5271       tor_lookup_hostname().
5272     - Initialize libevent later in the startup process, so the logs are
5273       already established by the time we start logging libevent warns.
5274     - Use correct errno on win32 if libevent fails.
5275     - Check and warn about known-bad/slow libevent versions.
5276     - Pay more attention to the ClientOnly config option.
5277     - Have torctl.in/tor.sh.in check for location of su binary (needed
5278       on FreeBSD)
5279     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
5280       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
5281       HttpProxyAuthenticator
5282     - Stop warning about sigpipes in the logs. We're going to
5283       pretend that getting these occassionally is normal and fine.
5284     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
5285       certain
5286       installer screens; and don't put stuff into StartupItems unless
5287       the user asks you to.
5288     - Require servers that use the default dirservers to have public IP
5289       addresses. We have too many servers that are configured with private
5290       IPs and their admins never notice the log entries complaining that
5291       their descriptors are being rejected.
5292     - Add OSX uninstall instructions. An actual uninstall script will
5293       come later.
5296 Changes in version 0.1.0.8-rc - 2005-05-23
5297   o Bugfixes:
5298     - It turns out that kqueue on OS X 10.3.9 was causing kernel
5299       panics. Disable kqueue on all OS X Tors.
5300     - Fix RPM: remove duplicate line accidentally added to the rpm
5301       spec file.
5302     - Disable threads on openbsd too, since its gethostaddr is not
5303       reentrant either.
5304     - Tolerate libevent 0.8 since it still works, even though it's
5305       ancient.
5306     - Enable building on Red Hat 9.0 again.
5307     - Allow the middle hop of the testing circuit to be running any
5308       version, now that most of them have the bugfix to let them connect
5309       to unknown servers. This will allow reachability testing to work
5310       even when 0.0.9.7-0.0.9.9 become obsolete.
5311     - Handle relay cells with rh.length too large. This prevents
5312       a potential attack that could read arbitrary memory (maybe even
5313       keys) from the exit server's process.
5314     - We screwed up the dirport reachability testing when we don't yet
5315       have a cached version of the directory. Hopefully now fixed.
5316     - Clean up router_load_single_router() (used by the controller),
5317       so it doesn't seg fault on error.
5318     - Fix a minor memory leak when somebody establishes an introduction
5319       point at your Tor server.
5320     - If a socks connection ends because read fails, don't warn that
5321       you're not sending a socks reply back.
5323   o Features:
5324     - Add HttpProxyAuthenticator config option too, that works like
5325       the HttpsProxyAuthenticator config option.
5326     - Encode hashed controller passwords in hex instead of base64,
5327       to make it easier to write controllers.
5330 Changes in version 0.1.0.7-rc - 2005-05-17
5331   o Bugfixes:
5332     - Fix a bug in the OS X package installer that prevented it from
5333       installing on Tiger.
5334     - Fix a script bug in the OS X package installer that made it
5335       complain during installation.
5336     - Find libevent even if it's hiding in /usr/local/ and your
5337       CFLAGS and LDFLAGS don't tell you to look there.
5338     - Be able to link with libevent as a shared library (the default
5339       after 1.0d), even if it's hiding in /usr/local/lib and even
5340       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
5341       assuming you're running gcc. Otherwise fail and give a useful
5342       error message.
5343     - Fix a bug in the RPM packager: set home directory for _tor to
5344       something more reasonable when first installing.
5345     - Free a minor amount of memory that is still reachable on exit.
5348 Changes in version 0.1.0.6-rc - 2005-05-14
5349   o Bugfixes:
5350     - Implement --disable-threads configure option. Disable threads on
5351       netbsd by default, because it appears to have no reentrant resolver
5352       functions.
5353     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
5354       release (1.1) detects and disables kqueue if it's broken.
5355     - Append default exit policy before checking for implicit internal
5356       addresses. Now we don't log a bunch of complaints on startup
5357       when using the default exit policy.
5358     - Some people were putting "Address  " in their torrc, and they had
5359       a buggy resolver that resolved " " to 0.0.0.0. Oops.
5360     - If DataDir is ~/.tor, and that expands to /.tor, then default to
5361       LOCALSTATEDIR/tor instead.
5362     - Fix fragmented-message bug in TorControl.py.
5363     - Resolve a minor bug which would prevent unreachable dirports
5364       from getting suppressed in the published descriptor.
5365     - When the controller gave us a new descriptor, we weren't resolving
5366       it immediately, so Tor would think its address was 0.0.0.0 until
5367       we fetched a new directory.
5368     - Fix an uppercase/lowercase case error in suppressing a bogus
5369       libevent warning on some Linuxes.
5371   o Features:
5372     - Begin scrubbing sensitive strings from logs by default. Turn off
5373       the config option SafeLogging if you need to do debugging.
5374     - Switch to a new buffer management algorithm, which tries to avoid
5375       reallocing and copying quite as much. In first tests it looks like
5376       it uses *more* memory on average, but less cpu.
5377     - First cut at support for "create-fast" cells. Clients can use
5378       these when extending to their first hop, since the TLS already
5379       provides forward secrecy and authentication. Not enabled on
5380       clients yet.
5381     - When dirservers refuse a router descriptor, we now log its
5382       contactinfo, platform, and the poster's IP address.
5383     - Call tor_free_all instead of connections_free_all after forking, to
5384       save memory on systems that need to fork.
5385     - Whine at you if you're a server and you don't set your contactinfo.
5386     - Implement --verify-config command-line option to check if your torrc
5387       is valid without actually launching Tor.
5388     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
5389       rather than just rejecting it.
5392 Changes in version 0.1.0.5-rc - 2005-04-27
5393   o Bugfixes:
5394     - Stop trying to print a null pointer if an OR conn fails because
5395       we didn't like its cert.
5396   o Features:
5397     - Switch our internal buffers implementation to use a ring buffer,
5398       to hopefully improve performance for fast servers a lot.
5399     - Add HttpsProxyAuthenticator support (basic auth only), based
5400       on patch from Adam Langley.
5401     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
5402       the fast servers that have been joining lately.
5403     - Give hidden service accesses extra time on the first attempt,
5404       since 60 seconds is often only barely enough. This might improve
5405       robustness more.
5406     - Improve performance for dirservers: stop re-parsing the whole
5407       directory every time you regenerate it.
5408     - Add more debugging info to help us find the weird dns freebsd
5409       pthreads bug; cleaner debug messages to help track future issues.
5412 Changes in version 0.0.9.9 - 2005-04-23
5413   o Bugfixes on 0.0.9.x:
5414     - If unofficial Tor clients connect and send weird TLS certs, our
5415       Tor server triggers an assert. This release contains a minimal
5416       backport from the broader fix that we put into 0.1.0.4-rc.
5419 Changes in version 0.1.0.4-rc - 2005-04-23
5420   o Bugfixes:
5421     - If unofficial Tor clients connect and send weird TLS certs, our
5422       Tor server triggers an assert. Stop asserting, and start handling
5423       TLS errors better in other situations too.
5424     - When the controller asks us to tell it about all the debug-level
5425       logs, it turns out we were generating debug-level logs while
5426       telling it about them, which turns into a bad loop. Now keep
5427       track of whether you're sending a debug log to the controller,
5428       and don't log when you are.
5429     - Fix the "postdescriptor" feature of the controller interface: on
5430       non-complete success, only say "done" once.
5431   o Features:
5432     - Clients are now willing to load balance over up to 2mB, not 1mB,
5433       of advertised bandwidth capacity.
5434     - Add a NoPublish config option, so you can be a server (e.g. for
5435       testing running Tor servers in other Tor networks) without
5436       publishing your descriptor to the primary dirservers.
5439 Changes in version 0.1.0.3-rc - 2005-04-08
5440   o Improvements on 0.1.0.2-rc:
5441     - Client now retries when streams end early for 'hibernating' or
5442       'resource limit' reasons, rather than failing them.
5443     - More automated handling for dirserver operators:
5444       - Automatically approve nodes running 0.1.0.2-rc or later,
5445         now that the the reachability detection stuff is working.
5446       - Now we allow two unverified servers with the same nickname
5447         but different keys. But if a nickname is verified, only that
5448         nickname+key are allowed.
5449       - If you're an authdirserver connecting to an address:port,
5450         and it's not the OR you were expecting, forget about that
5451         descriptor. If he *was* the one you were expecting, then forget
5452         about all other descriptors for that address:port.
5453       - Allow servers to publish descriptors from 12 hours in the future.
5454         Corollary: only whine about clock skew from the dirserver if
5455         he's a trusted dirserver (since now even verified servers could
5456         have quite wrong clocks).
5457     - Adjust maximum skew and age for rendezvous descriptors: let skew
5458       be 48 hours rather than 90 minutes.
5459     - Efficiency improvements:
5460       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
5461         it much faster to look up a circuit for each relay cell.
5462       - Remove most calls to assert_all_pending_dns_resolves_ok(),
5463         since they're eating our cpu on exit nodes.
5464       - Stop wasting time doing a case insensitive comparison for every
5465         dns name every time we do any lookup. Canonicalize the names to
5466         lowercase and be done with it.
5467     - Start sending 'truncated' cells back rather than destroy cells,
5468       if the circuit closes in front of you. This means we won't have
5469       to abandon partially built circuits.
5470     - Only warn once per nickname from add_nickname_list_to_smartlist
5471       per failure, so an entrynode or exitnode choice that's down won't
5472       yell so much.
5473     - Put a note in the torrc about abuse potential with the default
5474       exit policy.
5475     - Revise control spec and implementation to allow all log messages to
5476       be sent to controller with their severities intact (suggested by
5477       Matt Edman). Update TorControl to handle new log event types.
5478     - Provide better explanation messages when controller's POSTDESCRIPTOR
5479       fails.
5480     - Stop putting nodename in the Platform string in server descriptors.
5481       It doesn't actually help, and it is confusing/upsetting some people.
5483   o Bugfixes on 0.1.0.2-rc:
5484     - We were printing the host mask wrong in exit policies in server
5485       descriptors. This isn't a critical bug though, since we were still
5486       obeying the exit policy internally.
5487     - Fix Tor when compiled with libevent but without pthreads: move
5488       connection_unregister() from _connection_free() to
5489       connection_free().
5490     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
5491       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
5492       when we look through the connection array, we'll find any of the
5493       cpu/dnsworkers. This is no good.
5495   o Bugfixes on 0.0.9.8:
5496     - Fix possible bug on threading platforms (e.g. win32) which was
5497       leaking a file descriptor whenever a cpuworker or dnsworker died.
5498     - When using preferred entry or exit nodes, ignore whether the
5499       circuit wants uptime or capacity. They asked for the nodes, they
5500       get the nodes.
5501     - chdir() to your datadirectory at the *end* of the daemonize process,
5502       not the beginning. This was a problem because the first time you
5503       run tor, if your datadir isn't there, and you have runasdaemon set
5504       to 1, it will try to chdir to it before it tries to create it. Oops.
5505     - Handle changed router status correctly when dirserver reloads
5506       fingerprint file. We used to be dropping all unverified descriptors
5507       right then. The bug was hidden because we would immediately
5508       fetch a directory from another dirserver, which would include the
5509       descriptors we just dropped.
5510     - When we're connecting to an OR and he's got a different nickname/key
5511       than we were expecting, only complain loudly if we're an OP or a
5512       dirserver. Complaining loudly to the OR admins just confuses them.
5513     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
5514       artificially capped at 500kB.
5517 Changes in version 0.0.9.8 - 2005-04-07
5518   o Bugfixes on 0.0.9.x:
5519     - We have a bug that I haven't found yet. Sometimes, very rarely,
5520       cpuworkers get stuck in the 'busy' state, even though the cpuworker
5521       thinks of itself as idle. This meant that no new circuits ever got
5522       established. Here's a workaround to kill any cpuworker that's been
5523       busy for more than 100 seconds.
5526 Changes in version 0.1.0.2-rc - 2005-04-01
5527   o Bugfixes on 0.1.0.1-rc:
5528     - Fixes on reachability detection:
5529       - Don't check for reachability while hibernating.
5530       - If ORPort is reachable but DirPort isn't, still publish the
5531         descriptor, but zero out DirPort until it's found reachable.
5532       - When building testing circs for ORPort testing, use only
5533         high-bandwidth nodes, so fewer circuits fail.
5534       - Complain about unreachable ORPort separately from unreachable
5535         DirPort, so the user knows what's going on.
5536       - Make sure we only conclude ORPort reachability if we didn't
5537         initiate the conn. Otherwise we could falsely conclude that
5538         we're reachable just because we connected to the guy earlier
5539         and he used that same pipe to extend to us.
5540       - Authdirservers shouldn't do ORPort reachability detection,
5541         since they're in clique mode, so it will be rare to find a
5542         server not already connected to them.
5543       - When building testing circuits, always pick middle hops running
5544         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
5545         bug. (This is a kludge; it will go away when 0.0.9.x becomes
5546         obsolete.)
5547       - When we decide we're reachable, actually publish our descriptor
5548         right then.
5549     - Fix bug in redirectstream in the controller.
5550     - Fix the state descriptor strings so logs don't claim edge streams
5551       are in a different state than they actually are.
5552     - Use recent libevent features when possible (this only really affects
5553       win32 and osx right now, because the new libevent with these
5554       features hasn't been released yet). Add code to suppress spurious
5555       libevent log msgs.
5556     - Prevent possible segfault in connection_close_unattached_ap().
5557     - Fix newlines on torrc in win32.
5558     - Improve error msgs when tor-resolve fails.
5560   o Improvements on 0.0.9.x:
5561     - New experimental script tor/contrib/ExerciseServer.py (needs more
5562       work) that uses the controller interface to build circuits and
5563       fetch pages over them. This will help us bootstrap servers that
5564       have lots of capacity but haven't noticed it yet.
5565     - New experimental script tor/contrib/PathDemo.py (needs more work)
5566       that uses the controller interface to let you choose whole paths
5567       via addresses like
5568       "<hostname>.<path,separated by dots>.<length of path>.path"
5569     - When we've connected to an OR and handshaked but didn't like
5570       the result, we were closing the conn without sending destroy
5571       cells back for pending circuits. Now send those destroys.
5574 Changes in version 0.0.9.7 - 2005-04-01
5575   o Bugfixes on 0.0.9.x:
5576     - Fix another race crash bug (thanks to Glenn Fink for reporting).
5577     - Compare identity to identity, not to nickname, when extending to
5578       a router not already in the directory. This was preventing us from
5579       extending to unknown routers. Oops.
5580     - Make sure to create OS X Tor user in <500 range, so we aren't
5581       creating actual system users.
5582     - Note where connection-that-hasn't-sent-end was marked, and fix
5583       a few really loud instances of this harmless bug (it's fixed more
5584       in 0.1.0.x).
5587 Changes in version 0.1.0.1-rc - 2005-03-28
5588   o New features:
5589     - Add reachability testing. Your Tor server will automatically try
5590       to see if its ORPort and DirPort are reachable from the outside,
5591       and it won't upload its descriptor until it decides they are.
5592     - Handle unavailable hidden services better. Handle slow or busy
5593       hidden services better.
5594     - Add support for CONNECTing through https proxies, with "HttpsProxy"
5595       config option.
5596     - New exit policy: accept most low-numbered ports, rather than
5597       rejecting most low-numbered ports.
5598     - More Tor controller support (still experimental). See
5599       http://tor.eff.org/doc/control-spec.txt for all the new features,
5600       including signals to emulate unix signals from any platform;
5601       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
5602       closestream; closecircuit; etc.
5603     - Make nt services work and start on startup on win32 (based on
5604       patch by Matt Edman).
5605     - Add a new AddressMap config directive to rewrite incoming socks
5606       addresses. This lets you, for example, declare an implicit
5607       required exit node for certain sites.
5608     - Add a new TrackHostExits config directive to trigger addressmaps
5609       for certain incoming socks addresses -- for sites that break when
5610       your exit keeps changing (based on patch by Mike Perry).
5611     - Redo the client-side dns cache so it's just an addressmap too.
5612     - Notice when our IP changes, and reset stats/uptime/reachability.
5613     - When an application is using socks5, give him the whole variety of
5614       potential socks5 responses (connect refused, host unreachable, etc),
5615       rather than just "success" or "failure".
5616     - A more sane version numbering system. See
5617       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
5618     - New contributed script "exitlist": a simple python script to
5619       parse directories and find Tor nodes that exit to listed
5620       addresses/ports.
5621     - New contributed script "privoxy-tor-toggle" to toggle whether
5622       Privoxy uses Tor. Seems to be configured for Debian by default.
5623     - Report HTTP reasons to client when getting a response from directory
5624       servers -- so you can actually know what went wrong.
5625     - New config option MaxAdvertisedBandwidth which lets you advertise
5626       a low bandwidthrate (to not attract as many circuits) while still
5627       allowing a higher bandwidthrate in reality.
5629   o Robustness/stability fixes:
5630     - Make Tor use Niels Provos's libevent instead of its current
5631       poll-but-sometimes-select mess.  This will let us use faster async
5632       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
5633       on Windows too.
5634     - pthread support now too. This was forced because when we forked,
5635       we ended up wasting a lot of duplicate ram over time. Also switch
5636       to foo_r versions of some library calls to allow reentry and
5637       threadsafeness.
5638     - Better handling for heterogeneous / unreliable nodes:
5639       - Annotate circuits w/ whether they aim to contain high uptime nodes
5640         and/or high capacity nodes. When building circuits, choose
5641         appropriate nodes.
5642       - This means that every single node in an intro rend circuit,
5643         not just the last one, will have a minimum uptime.
5644       - New config option LongLivedPorts to indicate application streams
5645         that will want high uptime circuits.
5646       - Servers reset uptime when a dir fetch entirely fails. This
5647         hopefully reflects stability of the server's network connectivity.
5648       - If somebody starts his tor server in Jan 2004 and then fixes his
5649         clock, don't make his published uptime be a year.
5650       - Reset published uptime when you wake up from hibernation.
5651     - Introduce a notion of 'internal' circs, which are chosen without
5652       regard to the exit policy of the last hop. Intro and rendezvous
5653       circs must be internal circs, to avoid leaking information. Resolve
5654       and connect streams can use internal circs if they want.
5655     - New circuit pooling algorithm: make sure to have enough circs around
5656       to satisfy any predicted ports, and also make sure to have 2 internal
5657       circs around if we've required internal circs lately (and with high
5658       uptime if we've seen that lately too).
5659     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
5660       which describes how often we retry making new circuits if current
5661       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
5662       how long we're willing to make use of an already-dirty circuit.
5663     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
5664       circ as necessary, if there are any completed ones lying around
5665       when we try to launch one.
5666     - Make hidden services try to establish a rendezvous for 30 seconds,
5667       rather than for n (where n=3) attempts to build a circuit.
5668     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
5669       "ShutdownWaitLength".
5670     - Try to be more zealous about calling connection_edge_end when
5671       things go bad with edge conns in connection.c.
5672     - Revise tor-spec to add more/better stream end reasons.
5673     - Revise all calls to connection_edge_end to avoid sending "misc",
5674       and to take errno into account where possible.
5676   o Bug fixes:
5677     - Fix a race condition that can trigger an assert, when we have a
5678       pending create cell and an OR connection fails right then.
5679     - Fix several double-mark-for-close bugs, e.g. where we were finding
5680       a conn for a cell even if that conn is already marked for close.
5681     - Make sequence of log messages when starting on win32 with no config
5682       file more reasonable.
5683     - When choosing an exit node for a new non-internal circ, don't take
5684       into account whether it'll be useful for any pending x.onion
5685       addresses -- it won't.
5686     - Turn addr_policy_compare from a tristate to a quadstate; this should
5687       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
5688       for google.com" problem.
5689     - Make "platform" string in descriptor more accurate for Win32 servers,
5690       so it's not just "unknown platform".
5691     - Fix an edge case in parsing config options (thanks weasel).
5692       If they say "--" on the commandline, it's not an option.
5693     - Reject odd-looking addresses at the client (e.g. addresses that
5694       contain a colon), rather than having the server drop them because
5695       they're malformed.
5696     - tor-resolve requests were ignoring .exit if there was a working circuit
5697       they could use instead.
5698     - REUSEADDR on normal platforms means you can rebind to the port
5699       right after somebody else has let it go. But REUSEADDR on win32
5700       means to let you bind to the port _even when somebody else
5701       already has it bound_! So, don't do that on Win32.
5702     - Change version parsing logic: a version is "obsolete" if it is not
5703       recommended and (1) there is a newer recommended version in the
5704       same series, or (2) there are no recommended versions in the same
5705       series, but there are some recommended versions in a newer series.
5706       A version is "new" if it is newer than any recommended version in
5707       the same series.
5708     - Stop most cases of hanging up on a socks connection without sending
5709       the socks reject.
5711   o Helpful fixes:
5712     - Require BandwidthRate to be at least 20kB/s for servers.
5713     - When a dirserver causes you to give a warn, mention which dirserver
5714       it was.
5715     - New config option DirAllowPrivateAddresses for authdirservers.
5716       Now by default they refuse router descriptors that have non-IP or
5717       private-IP addresses.
5718     - Stop publishing socksport in the directory, since it's not
5719       actually meant to be public. For compatibility, publish a 0 there
5720       for now.
5721     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
5722       smart" value, that is low for servers and high for clients.
5723     - If our clock jumps forward by 100 seconds or more, assume something
5724       has gone wrong with our network and abandon all not-yet-used circs.
5725     - Warn when exit policy implicitly allows local addresses.
5726     - If we get an incredibly skewed timestamp from a dirserver mirror
5727       that isn't a verified OR, don't warn -- it's probably him that's
5728       wrong.
5729     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
5730       cookies to disk and doesn't log each web request to disk. (Thanks
5731       to Brett Carrington for pointing this out.)
5732     - When a client asks us for a dir mirror and we don't have one,
5733       launch an attempt to get a fresh one.
5734     - If we're hibernating and we get a SIGINT, exit immediately.
5735     - Add --with-dmalloc ./configure option, to track memory leaks.
5736     - And try to free all memory on closing, so we can detect what
5737       we're leaking.
5738     - Cache local dns resolves correctly even when they're .exit
5739       addresses.
5740     - Give a better warning when some other server advertises an
5741       ORPort that is actually an apache running ssl.
5742     - Add "opt hibernating 1" to server descriptor to make it clearer
5743       whether the server is hibernating.
5746 Changes in version 0.0.9.6 - 2005-03-24
5747   o Bugfixes on 0.0.9.x (crashes and asserts):
5748     - Add new end stream reasons to maintainance branch. Fix bug where
5749       reason (8) could trigger an assert.  Prevent bug from recurring.
5750     - Apparently win32 stat wants paths to not end with a slash.
5751     - Fix assert triggers in assert_cpath_layer_ok(), where we were
5752       blowing away the circuit that conn->cpath_layer points to, then
5753       checking to see if the circ is well-formed. Backport check to make
5754       sure we dont use the cpath on a closed connection.
5755     - Prevent circuit_resume_edge_reading_helper() from trying to package
5756       inbufs for marked-for-close streams.
5757     - Don't crash on hup if your options->address has become unresolvable.
5758     - Some systems (like OS X) sometimes accept() a connection and tell
5759       you the remote host is 0.0.0.0:0. If this happens, due to some
5760       other mis-features, we get confused; so refuse the conn for now.
5762   o Bugfixes on 0.0.9.x (other):
5763     - Fix harmless but scary "Unrecognized content encoding" warn message.
5764     - Add new stream error reason: TORPROTOCOL reason means "you are not
5765       speaking a version of Tor I understand; say bye-bye to your stream."
5766     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
5767       into the future, now that we are more tolerant of skew. This
5768       resolves a bug where a Tor server would refuse to cache a directory
5769       because all the directories it gets are too far in the future;
5770       yet the Tor server never logs any complaints about clock skew.
5771     - Mac packaging magic: make man pages useable, and do not overwrite
5772       existing torrc files.
5773     - Make OS X log happily to /var/log/tor/tor.log
5776 Changes in version 0.0.9.5 - 2005-02-22
5777   o Bugfixes on 0.0.9.x:
5778     - Fix an assert race at exit nodes when resolve requests fail.
5779     - Stop picking unverified dir mirrors--it only leads to misery.
5780     - Patch from Matt Edman to make NT services work better. Service
5781       support is still not compiled into the executable by default.
5782     - Patch from Dmitri Bely so the Tor service runs better under
5783       the win32 SYSTEM account.
5784     - Make tor-resolve actually work (?) on Win32.
5785     - Fix a sign bug when getrlimit claims to have 4+ billion
5786       file descriptors available.
5787     - Stop refusing to start when bandwidthburst == bandwidthrate.
5788     - When create cells have been on the onion queue more than five
5789       seconds, just send back a destroy and take them off the list.
5792 Changes in version 0.0.9.4 - 2005-02-03
5793   o Bugfixes on 0.0.9:
5794     - Fix an assert bug that took down most of our servers: when
5795       a server claims to have 1 GB of bandwidthburst, don't
5796       freak out.
5797     - Don't crash as badly if we have spawned the max allowed number
5798       of dnsworkers, or we're out of file descriptors.
5799     - Block more file-sharing ports in the default exit policy.
5800     - MaxConn is now automatically set to the hard limit of max
5801       file descriptors we're allowed (ulimit -n), minus a few for
5802       logs, etc.
5803     - Give a clearer message when servers need to raise their
5804       ulimit -n when they start running out of file descriptors.
5805     - SGI Compatibility patches from Jan Schaumann.
5806     - Tolerate a corrupt cached directory better.
5807     - When a dirserver hasn't approved your server, list which one.
5808     - Go into soft hibernation after 95% of the bandwidth is used,
5809       not 99%. This is especially important for daily hibernators who
5810       have a small accounting max. Hopefully it will result in fewer
5811       cut connections when the hard hibernation starts.
5812     - Load-balance better when using servers that claim more than
5813       800kB/s of capacity.
5814     - Make NT services work (experimental, only used if compiled in).
5817 Changes in version 0.0.9.3 - 2005-01-21
5818   o Bugfixes on 0.0.9:
5819     - Backport the cpu use fixes from main branch, so busy servers won't
5820       need as much processor time.
5821     - Work better when we go offline and then come back, or when we
5822       run Tor at boot before the network is up. We do this by
5823       optimistically trying to fetch a new directory whenever an
5824       application request comes in and we think we're offline -- the
5825       human is hopefully a good measure of when the network is back.
5826     - Backport some minimal hidserv bugfixes: keep rend circuits open as
5827       long as you keep using them; actually publish hidserv descriptors
5828       shortly after they change, rather than waiting 20-40 minutes.
5829     - Enable Mac startup script by default.
5830     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
5831     - When you update AllowUnverifiedNodes or FirewallPorts via the
5832       controller's setconf feature, we were always appending, never
5833       resetting.
5834     - When you update HiddenServiceDir via setconf, it was screwing up
5835       the order of reading the lines, making it fail.
5836     - Do not rewrite a cached directory back to the cache; otherwise we
5837       will think it is recent and not fetch a newer one on startup.
5838     - Workaround for webservers that lie about Content-Encoding: Tor
5839       now tries to autodetect compressed directories and compression
5840       itself. This lets us Proxypass dir fetches through apache.
5843 Changes in version 0.0.9.2 - 2005-01-04
5844   o Bugfixes on 0.0.9 (crashes and asserts):
5845     - Fix an assert on startup when the disk is full and you're logging
5846       to a file.
5847     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
5848       style address, then we'd crash.
5849     - Fix an assert trigger when the running-routers string we get from
5850       a dirserver is broken.
5851     - Make worker threads start and run on win32. Now win32 servers
5852       may work better.
5853     - Bandaid (not actually fix, but now it doesn't crash) an assert
5854       where the dns worker dies mysteriously and the main Tor process
5855       doesn't remember anything about the address it was resolving.
5857   o Bugfixes on 0.0.9 (Win32):
5858     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
5859       name out of the warning/assert messages.
5860     - Fix a superficial "unhandled error on read" bug on win32.
5861     - The win32 installer no longer requires a click-through for our
5862       license, since our Free Software license grants rights but does not
5863       take any away.
5864     - Win32: When connecting to a dirserver fails, try another one
5865       immediately. (This was already working for non-win32 Tors.)
5866     - Stop trying to parse $HOME on win32 when hunting for default
5867       DataDirectory.
5868     - Make tor-resolve.c work on win32 by calling network_init().
5870   o Bugfixes on 0.0.9 (other):
5871     - Make 0.0.9.x build on Solaris again.
5872     - Due to a fencepost error, we were blowing away the \n when reporting
5873       confvalue items in the controller. So asking for multiple config
5874       values at once couldn't work.
5875     - When listing circuits that are pending on an opening OR connection,
5876       if we're an OR we were listing circuits that *end* at us as
5877       being pending on every listener, dns/cpu worker, etc. Stop that.
5878     - Dirservers were failing to create 'running-routers' or 'directory'
5879       strings if we had more than some threshold of routers. Fix them so
5880       they can handle any number of routers.
5881     - Fix a superficial "Duplicate mark for close" bug.
5882     - Stop checking for clock skew for OR connections, even for servers.
5883     - Fix a fencepost error that was chopping off the last letter of any
5884       nickname that is the maximum allowed nickname length.
5885     - Update URLs in log messages so they point to the new website.
5886     - Fix a potential problem in mangling server private keys while
5887       writing to disk (not triggered yet, as far as we know).
5888     - Include the licenses for other free software we include in Tor,
5889       now that we're shipping binary distributions more regularly.
5892 Changes in version 0.0.9.1 - 2004-12-15
5893   o Bugfixes on 0.0.9:
5894     - Make hibernation actually work.
5895     - Make HashedControlPassword config option work.
5896     - When we're reporting event circuit status to a controller,
5897       don't use the stream status code.
5900 Changes in version 0.0.9 - 2004-12-12
5901   o Cleanups:
5902     - Clean up manpage and torrc.sample file.
5903     - Clean up severities and text of log warnings.
5904   o Mistakes:
5905     - Make servers trigger an assert when they enter hibernation.
5908 Changes in version 0.0.9rc7 - 2004-12-08
5909   o Bugfixes on 0.0.9rc:
5910     - Fix a stack-trashing crash when an exit node begins hibernating.
5911     - Avoid looking at unallocated memory while considering which
5912       ports we need to build circuits to cover.
5913     - Stop a sigpipe: when an 'end' cell races with eof from the app,
5914       we shouldn't hold-open-until-flush if the eof arrived first.
5915     - Fix a bug with init_cookie_authentication() in the controller.
5916     - When recommending new-format log lines, if the upper bound is
5917       LOG_ERR, leave it implicit.
5919   o Bugfixes on 0.0.8.1:
5920     - Fix a whole slew of memory leaks.
5921     - Fix isspace() and friends so they still make Solaris happy
5922       but also so they don't trigger asserts on win32.
5923     - Fix parse_iso_time on platforms without strptime (eg win32).
5924     - win32: tolerate extra "readable" events better.
5925     - win32: when being multithreaded, leave parent fdarray open.
5926     - Make unit tests work on win32.
5929 Changes in version 0.0.9rc6 - 2004-12-06
5930   o Bugfixes on 0.0.9pre:
5931     - Clean up some more integer underflow opportunities (not exploitable
5932       we think).
5933     - While hibernating, hup should not regrow our listeners.
5934     - Send an end to the streams we close when we hibernate, rather
5935       than just chopping them off.
5936     - React to eof immediately on non-open edge connections.
5938   o Bugfixes on 0.0.8.1:
5939     - Calculate timeout for waiting for a connected cell from the time
5940       we sent the begin cell, not from the time the stream started. If
5941       it took a long time to establish the circuit, we would time out
5942       right after sending the begin cell.
5943     - Fix router_compare_addr_to_addr_policy: it was not treating a port
5944       of * as always matching, so we were picking reject *:* nodes as
5945       exit nodes too. Oops.
5947   o Features:
5948     - New circuit building strategy: keep a list of ports that we've
5949       used in the past 6 hours, and always try to have 2 circuits open
5950       or on the way that will handle each such port. Seed us with port
5951       80 so web users won't complain that Tor is "slow to start up".
5952     - Make kill -USR1 dump more useful stats about circuits.
5953     - When warning about retrying or giving up, print the address, so
5954       the user knows which one it's talking about.
5955     - If you haven't used a clean circuit in an hour, throw it away,
5956       just to be on the safe side. (This means after 6 hours a totally
5957       unused Tor client will have no circuits open.)
5960 Changes in version 0.0.9rc5 - 2004-12-01
5961   o Bugfixes on 0.0.8.1:
5962     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
5963     - Let resolve conns retry/expire also, rather than sticking around
5964       forever.
5965     - If we are using select, make sure we stay within FD_SETSIZE.
5967   o Bugfixes on 0.0.9pre:
5968     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
5969       but doesn't seem to be currently; thanks to Ilja van Sprundel for
5970       finding it.
5971     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
5972       instead.  Impose minima and maxima for all *Period options; impose
5973       even tighter maxima for fetching if we are a caching dirserver.
5974       Clip rather than rejecting.
5975     - Fetch cached running-routers from servers that serve it (that is,
5976       authdirservers and servers running 0.0.9rc5-cvs or later.)
5978   o Features:
5979     - Accept *:706 (silc) in default exit policy.
5980     - Implement new versioning format for post 0.1.
5981     - Support "foo.nickname.exit" addresses, to let Alice request the
5982       address "foo" as viewed by exit node "nickname". Based on a patch
5983       by Geoff Goodell.
5984     - Make tor --version --version dump the cvs Id of every file.
5987 Changes in version 0.0.9rc4 - 2004-11-28
5988   o Bugfixes on 0.0.8.1:
5989     - Make windows sockets actually non-blocking (oops), and handle
5990       win32 socket errors better.
5992   o Bugfixes on 0.0.9rc1:
5993     - Actually catch the -USR2 signal.
5996 Changes in version 0.0.9rc3 - 2004-11-25
5997   o Bugfixes on 0.0.8.1:
5998     - Flush the log file descriptor after we print "Tor opening log file",
5999       so we don't see those messages days later.
6001   o Bugfixes on 0.0.9rc1:
6002     - Make tor-resolve work again.
6003     - Avoid infinite loop in tor-resolve if tor hangs up on it.
6004     - Fix an assert trigger for clients/servers handling resolves.
6007 Changes in version 0.0.9rc2 - 2004-11-24
6008   o Bugfixes on 0.0.9rc1:
6009     - I broke socks5 support while fixing the eof bug.
6010     - Allow unitless bandwidths and intervals; they default to bytes
6011       and seconds.
6012     - New servers don't start out hibernating; they are active until
6013       they run out of bytes, so they have a better estimate of how
6014       long it takes, and so their operators can know they're working.
6017 Changes in version 0.0.9rc1 - 2004-11-23
6018   o Bugfixes on 0.0.8.1:
6019     - Finally fix a bug that's been plaguing us for a year:
6020       With high load, circuit package window was reaching 0. Whenever
6021       we got a circuit-level sendme, we were reading a lot on each
6022       socket, but only writing out a bit. So we would eventually reach
6023       eof. This would be noticed and acted on even when there were still
6024       bytes sitting in the inbuf.
6025     - When poll() is interrupted, we shouldn't believe the revents values.
6027   o Bugfixes on 0.0.9pre6:
6028     - Fix hibernate bug that caused pre6 to be broken.
6029     - Don't keep rephist info for routers that haven't had activity for
6030       24 hours. (This matters now that clients have keys, since we track
6031       them too.)
6032     - Never call close_temp_logs while validating log options.
6033     - Fix backslash-escaping on tor.sh.in and torctl.in.
6035   o Features:
6036     - Implement weekly/monthly/daily accounting: now you specify your
6037       hibernation properties by
6038       AccountingMax N bytes|KB|MB|GB|TB
6039       AccountingStart day|week|month [day] HH:MM
6040         Defaults to "month 1 0:00".
6041     - Let bandwidth and interval config options be specified as 5 bytes,
6042       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
6043     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
6044       get back to normal.)
6045     - If your requested entry or exit node has advertised bandwidth 0,
6046       pick it anyway.
6047     - Be more greedy about filling up relay cells -- we try reading again
6048       once we've processed the stuff we read, in case enough has arrived
6049       to fill the last cell completely.
6050     - Apply NT service patch from Osamu Fujino. Still needs more work.
6053 Changes in version 0.0.9pre6 - 2004-11-15
6054   o Bugfixes on 0.0.8.1:
6055     - Fix assert failure on malformed socks4a requests.
6056     - Use identity comparison, not nickname comparison, to choose which
6057       half of circuit-ID-space each side gets to use. This is needed
6058       because sometimes we think of a router as a nickname, and sometimes
6059       as a hex ID, and we can't predict what the other side will do.
6060     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
6061       write() call will fail and we handle it there.
6062     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
6063       and smartlist_len, which are two major profiling offenders.
6065   o Bugfixes on 0.0.9pre5:
6066     - Fix a bug in read_all that was corrupting config files on windows.
6067     - When we're raising the max number of open file descriptors to
6068       'unlimited', don't log that we just raised it to '-1'.
6069     - Include event code with events, as required by control-spec.txt.
6070     - Don't give a fingerprint when clients do --list-fingerprint:
6071       it's misleading, because it will never be the same again.
6072     - Stop using strlcpy in tor_strndup, since it was slowing us
6073       down a lot.
6074     - Remove warn on startup about missing cached-directory file.
6075     - Make kill -USR1 work again.
6076     - Hibernate if we start tor during the "wait for wakeup-time" phase
6077       of an accounting interval. Log our hibernation plans better.
6078     - Authoritative dirservers now also cache their directory, so they
6079       have it on start-up.
6081   o Features:
6082     - Fetch running-routers; cache running-routers; compress
6083       running-routers; serve compressed running-routers.z
6084     - Add NSI installer script contributed by J Doe.
6085     - Commit VC6 and VC7 workspace/project files.
6086     - Commit a tor.spec for making RPM files, with help from jbash.
6087     - Add contrib/torctl.in contributed by Glenn Fink.
6088     - Implement the control-spec's SAVECONF command, to write your
6089       configuration to torrc.
6090     - Get cookie authentication for the controller closer to working.
6091     - Include control-spec.txt in the tarball.
6092     - When set_conf changes our server descriptor, upload a new copy.
6093       But don't upload it too often if there are frequent changes.
6094     - Document authentication config in man page, and document signals
6095       we catch.
6096     - Clean up confusing parts of man page and torrc.sample.
6097     - Make expand_filename handle ~ and ~username.
6098     - Use autoconf to enable largefile support where necessary. Use
6099       ftello where available, since ftell can fail at 2GB.
6100     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
6101       log more informatively.
6102     - Give a slightly more useful output for "tor -h".
6103     - Refuse application socks connections to port 0.
6104     - Check clock skew for verified servers, but allow unverified
6105       servers and clients to have any clock skew.
6106     - Break DirFetchPostPeriod into:
6107       - DirFetchPeriod for fetching full directory,
6108       - StatusFetchPeriod for fetching running-routers,
6109       - DirPostPeriod for posting server descriptor,
6110       - RendPostPeriod for posting hidden service descriptors.
6111     - Make sure the hidden service descriptors are at a random offset
6112       from each other, to hinder linkability.
6115 Changes in version 0.0.9pre5 - 2004-11-09
6116   o Bugfixes on 0.0.9pre4:
6117     - Fix a seg fault in unit tests (doesn't affect main program).
6118     - Fix an assert bug where a hidden service provider would fail if
6119       the first hop of his rendezvous circuit was down.
6120     - Hidden service operators now correctly handle version 1 style
6121       INTRODUCE1 cells (nobody generates them still, so not a critical
6122       bug).
6123     - If do_hup fails, actually notice.
6124     - Handle more errnos from accept() without closing the listener.
6125       Some OpenBSD machines were closing their listeners because
6126       they ran out of file descriptors.
6127     - Send resolve cells to exit routers that are running a new
6128       enough version of the resolve code to work right.
6129     - Better handling of winsock includes on non-MSV win32 compilers.
6130     - Some people had wrapped their tor client/server in a script
6131       that would restart it whenever it died. This did not play well
6132       with our "shut down if your version is obsolete" code. Now people
6133       don't fetch a new directory if their local cached version is
6134       recent enough.
6135     - Make our autogen.sh work on ksh as well as bash.
6137   o Major Features:
6138     - Hibernation: New config option "AccountingMaxKB" lets you
6139       set how many KBytes per month you want to allow your server to
6140       consume. Rather than spreading those bytes out evenly over the
6141       month, we instead hibernate for some of the month and pop up
6142       at a deterministic time, work until the bytes are consumed, then
6143       hibernate again. Config option "MonthlyAccountingStart" lets you
6144       specify which day of the month your billing cycle starts on.
6145     - Control interface: a separate program can now talk to your
6146       client/server over a socket, and get/set config options, receive
6147       notifications of circuits and streams starting/finishing/dying,
6148       bandwidth used, etc. The next step is to get some GUIs working.
6149       Let us know if you want to help out. See doc/control-spec.txt .
6150     - Ship a contrib/tor-control.py as an example script to interact
6151       with the control port.
6152     - "tor --hash-password zzyxz" will output a salted password for
6153       use in authenticating to the control interface.
6154     - New log format in config:
6155       "Log minsev[-maxsev] stdout|stderr|syslog" or
6156       "Log minsev[-maxsev] file /var/foo"
6158   o Minor Features:
6159     - DirPolicy config option, to let people reject incoming addresses
6160       from their dirserver.
6161     - "tor --list-fingerprint" will list your identity key fingerprint
6162       and then exit.
6163     - Add "pass" target for RedirectExit, to make it easier to break
6164       out of a sequence of RedirectExit rules.
6165     - Clients now generate a TLS cert too, in preparation for having
6166       them act more like real nodes.
6167     - Ship src/win32/ in the tarball, so people can use it to build.
6168     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
6169       is broken.
6170     - New "router-status" line in directory, to better bind each verified
6171       nickname to its identity key.
6172     - Deprecate unofficial config option abbreviations, and abbreviations
6173       not on the command line.
6174     - Add a pure-C tor-resolve implementation.
6175     - Use getrlimit and friends to ensure we can reach MaxConn (currently
6176       1024) file descriptors.
6178   o Code security improvements, inspired by Ilja:
6179     - Replace sprintf with snprintf. (I think they were all safe, but
6180       hey.)
6181     - Replace strcpy/strncpy with strlcpy in more places.
6182     - Avoid strcat; use snprintf or strlcat instead.
6183     - snprintf wrapper with consistent (though not C99) overflow behavior.
6186 Changes in version 0.0.9pre4 - 2004-10-17
6187   o Bugfixes on 0.0.9pre3:
6188     - If the server doesn't specify an exit policy, use the real default
6189       exit policy, not reject *:*.
6190     - Ignore fascistfirewall when uploading/downloading hidden service
6191       descriptors, since we go through Tor for those; and when using
6192       an HttpProxy, since we assume it can reach them all.
6193     - When looking for an authoritative dirserver, use only the ones
6194       configured at boot. Don't bother looking in the directory.
6195     - The rest of the fix for get_default_conf_file() on older win32.
6196     - Make 'Routerfile' config option obsolete.
6198   o Features:
6199     - New 'MyFamily nick1,...' config option for a server to
6200       specify other servers that shouldn't be used in the same circuit
6201       with it. Only believed if nick1 also specifies us.
6202     - New 'NodeFamily nick1,nick2,...' config option for a client to
6203       specify nodes that it doesn't want to use in the same circuit.
6204     - New 'Redirectexit pattern address:port' config option for a
6205       server to redirect exit connections, e.g. to a local squid.
6208 Changes in version 0.0.9pre3 - 2004-10-13
6209   o Bugfixes on 0.0.8.1:
6210     - Better torrc example lines for dirbindaddress and orbindaddress.
6211     - Improved bounds checking on parsed ints (e.g. config options and
6212       the ones we find in directories.)
6213     - Better handling of size_t vs int, so we're more robust on 64
6214       bit platforms.
6215     - Fix the rest of the bug where a newly started OR would appear
6216       as unverified even after we've added his fingerprint and hupped
6217       the dirserver.
6218     - Fix a bug from 0.0.7: when read() failed on a stream, we would
6219       close it without sending back an end. So 'connection refused'
6220       would simply be ignored and the user would get no response.
6222   o Bugfixes on 0.0.9pre2:
6223     - Serving the cached-on-disk directory to people is bad. We now
6224       provide no directory until we've fetched a fresh one.
6225     - Workaround for bug on windows where cached-directories get crlf
6226       corruption.
6227     - Make get_default_conf_file() work on older windows too.
6228     - If we write a *:* exit policy line in the descriptor, don't write
6229       any more exit policy lines.
6231   o Features:
6232     - Use only 0.0.9pre1 and later servers for resolve cells.
6233     - Make the dirservers file obsolete.
6234       - Include a dir-signing-key token in directories to tell the
6235         parsing entity which key is being used to sign.
6236       - Remove the built-in bulky default dirservers string.
6237       - New config option "Dirserver %s:%d [fingerprint]", which can be
6238         repeated as many times as needed. If no dirservers specified,
6239         default to moria1,moria2,tor26.
6240     - Make moria2 advertise a dirport of 80, so people behind firewalls
6241       will be able to get a directory.
6242     - Http proxy support
6243       - Dirservers translate requests for http://%s:%d/x to /x
6244       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
6245         be routed through this host.
6246       - Clients ask for /tor/x rather than /x for new enough dirservers.
6247         This way we can one day coexist peacefully with apache.
6248       - Clients specify a "Host: %s%d" http header, to be compatible
6249         with more proxies, and so running squid on an exit node can work.
6252 Changes in version 0.0.8.1 - 2004-10-13
6253   o Bugfixes:
6254     - Fix a seg fault that can be triggered remotely for Tor
6255       clients/servers with an open dirport.
6256     - Fix a rare assert trigger, where routerinfos for entries in
6257       our cpath would expire while we're building the path.
6258     - Fix a bug in OutboundBindAddress so it (hopefully) works.
6259     - Fix a rare seg fault for people running hidden services on
6260       intermittent connections.
6261     - Fix a bug in parsing opt keywords with objects.
6262     - Fix a stale pointer assert bug when a stream detaches and
6263       reattaches.
6264     - Fix a string format vulnerability (probably not exploitable)
6265       in reporting stats locally.
6266     - Fix an assert trigger: sometimes launching circuits can fail
6267       immediately, e.g. because too many circuits have failed recently.
6268     - Fix a compile warning on 64 bit platforms.
6271 Changes in version 0.0.9pre2 - 2004-10-03
6272   o Bugfixes:
6273     - Make fetching a cached directory work for 64-bit platforms too.
6274     - Make zlib.h a required header, not an optional header.
6277 Changes in version 0.0.9pre1 - 2004-10-01
6278   o Bugfixes:
6279     - Stop using separate defaults for no-config-file and
6280       empty-config-file. Now you have to explicitly turn off SocksPort,
6281       if you don't want it open.
6282     - Fix a bug in OutboundBindAddress so it (hopefully) works.
6283     - Improve man page to mention more of the 0.0.8 features.
6284     - Fix a rare seg fault for people running hidden services on
6285       intermittent connections.
6286     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
6287       happier.
6288     - Fix more dns related bugs: send back resolve_failed and end cells
6289       more reliably when the resolve fails, rather than closing the
6290       circuit and then trying to send the cell. Also attach dummy resolve
6291       connections to a circuit *before* calling dns_resolve(), to fix
6292       a bug where cached answers would never be sent in RESOLVED cells.
6293     - When we run out of disk space, or other log writing error, don't
6294       crash. Just stop logging to that log and continue.
6295     - We were starting to daemonize before we opened our logs, so if
6296       there were any problems opening logs, we would complain to stderr,
6297       which wouldn't work, and then mysteriously exit.
6298     - Fix a rare bug where sometimes a verified OR would connect to us
6299       before he'd uploaded his descriptor, which would cause us to
6300       assign conn->nickname as though he's unverified. Now we look through
6301       the fingerprint list to see if he's there.
6302     - Fix a rare assert trigger, where routerinfos for entries in
6303       our cpath would expire while we're building the path.
6305   o Features:
6306     - Clients can ask dirservers for /dir.z to get a compressed version
6307       of the directory. Only works for servers running 0.0.9, of course.
6308     - Make clients cache directories and use them to seed their router
6309       lists at startup. This means clients have a datadir again.
6310     - Configuration infrastructure support for warning on obsolete
6311       options.
6312     - Respond to content-encoding headers by trying to uncompress as
6313       appropriate.
6314     - Reply with a deflated directory when a client asks for "dir.z".
6315       We could use allow-encodings instead, but allow-encodings isn't
6316       specified in HTTP 1.0.
6317     - Raise the max dns workers from 50 to 100.
6318     - Discourage people from setting their dirfetchpostperiod more often
6319       than once per minute.
6320     - Protect dirservers from overzealous descriptor uploading -- wait
6321       10 seconds after directory gets dirty, before regenerating.
6324 Changes in version 0.0.8 - 2004-08-25
6325   o Port it to SunOS 5.9 / Athena
6328 Changes in version 0.0.8rc2 - 2004-08-20
6329   o Make it compile on cygwin again.
6330   o When picking unverified routers, skip those with low uptime and/or
6331     low bandwidth, depending on what properties you care about.
6334 Changes in version 0.0.8rc1 - 2004-08-18
6335   o Changes from 0.0.7.3:
6336     - Bugfixes:
6337       - Fix assert triggers: if the other side returns an address 0.0.0.0,
6338         don't put it into the client dns cache.
6339       - If a begin failed due to exit policy, but we believe the IP address
6340         should have been allowed, switch that router to exitpolicy reject *:*
6341         until we get our next directory.
6342     - Features:
6343       - Clients choose nodes proportional to advertised bandwidth.
6344       - Avoid using nodes with low uptime as introduction points.
6345       - Handle servers with dynamic IP addresses: don't replace
6346         options->Address with the resolved one at startup, and
6347         detect our address right before we make a routerinfo each time.
6348       - 'FascistFirewall' option to pick dirservers and ORs on specific
6349         ports; plus 'FirewallPorts' config option to tell FascistFirewall
6350         which ports are open. (Defaults to 80,443)
6351       - Be more aggressive about trying to make circuits when the network
6352         has changed (e.g. when you unsuspend your laptop).
6353       - Check for time skew on http headers; report date in response to
6354         "GET /".
6355       - If the entrynode config line has only one node, don't pick it as
6356         an exitnode.
6357       - Add strict{entry|exit}nodes config options. If set to 1, then
6358         we refuse to build circuits that don't include the specified entry
6359         or exit nodes.
6360       - OutboundBindAddress config option, to bind to a specific
6361         IP address for outgoing connect()s.
6362       - End truncated log entries (e.g. directories) with "[truncated]".
6364   o Patches to 0.0.8preX:
6365     - Bugfixes:
6366       - Patches to compile and run on win32 again (maybe)?
6367       - Fix crash when looking for ~/.torrc with no $HOME set.
6368       - Fix a race bug in the unit tests.
6369       - Handle verified/unverified name collisions better when new
6370         routerinfo's arrive in a directory.
6371       - Sometimes routers were getting entered into the stats before
6372         we'd assigned their identity_digest. Oops.
6373       - Only pick and establish intro points after we've gotten a
6374         directory.
6375     - Features:
6376       - AllowUnverifiedNodes config option to let circuits choose no-name
6377         routers in entry,middle,exit,introduction,rendezvous positions.
6378         Allow middle and rendezvous positions by default.
6379       - Add a man page for tor-resolve.
6382 Changes in version 0.0.7.3 - 2004-08-12
6383   o Stop dnsworkers from triggering an assert failure when you
6384     ask them to resolve the host "".
6387 Changes in version 0.0.8pre3 - 2004-08-09
6388   o Changes from 0.0.7.2:
6389     - Allow multiple ORs with same nickname in routerlist -- now when
6390       people give us one identity key for a nickname, then later
6391       another, we don't constantly complain until the first expires.
6392     - Remember used bandwidth (both in and out), and publish 15-minute
6393       snapshots for the past day into our descriptor.
6394     - You can now fetch $DIRURL/running-routers to get just the
6395       running-routers line, not the whole descriptor list. (But
6396       clients don't use this yet.)
6397     - When people mistakenly use Tor as an http proxy, point them
6398       at the tor-doc.html rather than the INSTALL.
6399     - Remove our mostly unused -- and broken -- hex_encode()
6400       function. Use base16_encode() instead. (Thanks to Timo Lindfors
6401       for pointing out this bug.)
6402     - Rotate onion keys every 12 hours, not every 2 hours, so we have
6403       fewer problems with people using the wrong key.
6404     - Change the default exit policy to reject the default edonkey,
6405       kazaa, gnutella ports.
6406     - Add replace_file() to util.[ch] to handle win32's rename().
6408   o Changes from 0.0.8preX:
6409     - Fix two bugs in saving onion keys to disk when rotating, so
6410       hopefully we'll get fewer people using old onion keys.
6411     - Fix an assert error that was making SocksPolicy not work.
6412     - Be willing to expire routers that have an open dirport -- it's
6413       just the authoritative dirservers we want to not forget.
6414     - Reject tor-resolve requests for .onion addresses early, so we
6415       don't build a whole rendezvous circuit and then fail.
6416     - When you're warning a server that he's unverified, don't cry
6417       wolf unpredictably.
6418     - Fix a race condition: don't try to extend onto a connection
6419       that's still handshaking.
6420     - For servers in clique mode, require the conn to be open before
6421       you'll choose it for your path.
6422     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
6423       end relay cell, etc.
6424     - Measure bandwidth capacity over the last 24 hours, not just 12
6425     - Bugfix: authoritative dirservers were making and signing a new
6426       directory for each client, rather than reusing the cached one.
6429 Changes in version 0.0.8pre2 - 2004-08-04
6430   o Changes from 0.0.7.2:
6431     - Security fixes:
6432       - Check directory signature _before_ you decide whether you're
6433         you're running an obsolete version and should exit.
6434       - Check directory signature _before_ you parse the running-routers
6435         list to decide who's running or verified.
6436     - Bugfixes and features:
6437       - Check return value of fclose while writing to disk, so we don't
6438         end up with broken files when servers run out of disk space.
6439       - Log a warning if the user uses an unsafe socks variant, so people
6440         are more likely to learn about privoxy or socat.
6441       - Dirservers now include RFC1123-style dates in the HTTP headers,
6442         which one day we will use to better detect clock skew.
6444   o Changes from 0.0.8pre1:
6445     - Make it compile without warnings again on win32.
6446     - Log a warning if you're running an unverified server, to let you
6447       know you might want to get it verified.
6448     - Only pick a default nickname if you plan to be a server.
6451 Changes in version 0.0.8pre1 - 2004-07-23
6452   o Bugfixes:
6453     - Made our unit tests compile again on OpenBSD 3.5, and tor
6454       itself compile again on OpenBSD on a sparc64.
6455     - We were neglecting milliseconds when logging on win32, so
6456       everything appeared to happen at the beginning of each second.
6458   o Protocol changes:
6459     - 'Extend' relay cell payloads now include the digest of the
6460       intended next hop's identity key. Now we can verify that we're
6461       extending to the right router, and also extend to routers we
6462       hadn't heard of before.
6464   o Features:
6465     - Tor nodes can now act as relays (with an advertised ORPort)
6466       without being manually verified by the dirserver operators.
6467       - Uploaded descriptors of unverified routers are now accepted
6468         by the dirservers, and included in the directory.
6469       - Verified routers are listed by nickname in the running-routers
6470         list; unverified routers are listed as "$<fingerprint>".
6471       - We now use hash-of-identity-key in most places rather than
6472         nickname or addr:port, for improved security/flexibility.
6473       - To avoid Sybil attacks, paths still use only verified servers.
6474         But now we have a chance to play around with hybrid approaches.
6475       - Nodes track bandwidth usage to estimate capacity (not used yet).
6476       - ClientOnly option for nodes that never want to become servers.
6477     - Directory caching.
6478       - "AuthoritativeDir 1" option for the official dirservers.
6479       - Now other nodes (clients and servers) will cache the latest
6480         directory they've pulled down.
6481       - They can enable their DirPort to serve it to others.
6482       - Clients will pull down a directory from any node with an open
6483         DirPort, and check the signature/timestamp correctly.
6484       - Authoritative dirservers now fetch directories from other
6485         authdirservers, to stay better synced.
6486       - Running-routers list tells who's down also, along with noting
6487         if they're verified (listed by nickname) or unverified (listed
6488         by hash-of-key).
6489       - Allow dirservers to serve running-router list separately.
6490         This isn't used yet.
6491     - ORs connect-on-demand to other ORs
6492       - If you get an extend cell to an OR you're not connected to,
6493         connect, handshake, and forward the create cell.
6494       - The authoritative dirservers stay connected to everybody,
6495         and everybody stays connected to 0.0.7 servers, but otherwise
6496         clients/servers expire unused connections after 5 minutes.
6497     - When servers get a sigint, they delay 30 seconds (refusing new
6498       connections) then exit. A second sigint causes immediate exit.
6499     - File and name management:
6500       - Look for .torrc if no CONFDIR "torrc" is found.
6501       - If no datadir is defined, then choose, make, and secure ~/.tor
6502         as datadir.
6503       - If torrc not found, exitpolicy reject *:*.
6504       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
6505       - If no nickname is defined, derive default from hostname.
6506       - Rename secret key files, e.g. identity.key -> secret_id_key,
6507         to discourage people from mailing their identity key to tor-ops.
6508     - Refuse to build a circuit before the directory has arrived --
6509       it won't work anyway, since you won't know the right onion keys
6510       to use.
6511     - Try other dirservers immediately if the one you try is down. This
6512       should tolerate down dirservers better now.
6513     - Parse tor version numbers so we can do an is-newer-than check
6514       rather than an is-in-the-list check.
6515     - New socks command 'resolve', to let us shim gethostbyname()
6516       locally.
6517       - A 'tor_resolve' script to access the socks resolve functionality.
6518       - A new socks-extensions.txt doc file to describe our
6519         interpretation and extensions to the socks protocols.
6520     - Add a ContactInfo option, which gets published in descriptor.
6521     - Publish OR uptime in descriptor (and thus in directory) too.
6522     - Write tor version at the top of each log file
6523     - New docs in the tarball:
6524       - tor-doc.html.
6525       - Document that you should proxy your SSL traffic too.
6528 Changes in version 0.0.7.2 - 2004-07-07
6529   o A better fix for the 0.0.0.0 problem, that will hopefully
6530     eliminate the remaining related assertion failures.
6533 Changes in version 0.0.7.1 - 2004-07-04
6534   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
6535     since internally we use 0.0.0.0 to signify "not yet resolved".
6538 Changes in version 0.0.7 - 2004-06-07
6539   o Updated the man page to reflect the new features.
6542 Changes in version 0.0.7rc2 - 2004-06-06
6543   o Changes from 0.0.7rc1:
6544     - Make it build on Win32 again.
6545   o Changes from 0.0.6.2:
6546     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
6547       settings too.
6550 Changes in version 0.0.7rc1 - 2004-06-02
6551   o Bugfixes:
6552     - On sighup, we were adding another log without removing the first
6553       one. So log messages would get duplicated n times for n sighups.
6554     - Several cases of using a connection after we'd freed it. The
6555       problem was that connections that are pending resolve are in both
6556       the pending_resolve tree, and also the circuit's resolving_streams
6557       list. When you want to remove one, you must remove it from both.
6558     - Fix a double-mark-for-close where an end cell arrived for a
6559       resolving stream, and then the resolve failed.
6560     - Check directory signatures based on name of signer, not on whom
6561       we got the directory from. This will let us cache directories more
6562       easily.
6563   o Features:
6564     - Crank up some of our constants to handle more users.
6567 Changes in version 0.0.7pre1 - 2004-06-02
6568   o Fixes for crashes and other obnoxious bugs:
6569     - Fix an epipe bug: sometimes when directory connections failed
6570       to connect, we would give them a chance to flush before closing
6571       them.
6572     - When we detached from a circuit because of resolvefailed, we
6573       would immediately try the same circuit twice more, and then
6574       give up on the resolve thinking we'd tried three different
6575       exit nodes.
6576     - Limit the number of intro circuits we'll attempt to build for a
6577       hidden service per 15-minute period.
6578     - Check recommended-software string *early*, before actually parsing
6579       the directory. Thus we can detect an obsolete version and exit,
6580       even if the new directory format doesn't parse.
6581   o Fixes for security bugs:
6582     - Remember which nodes are dirservers when you startup, and if a
6583       random OR enables his dirport, don't automatically assume he's
6584       a trusted dirserver.
6585   o Other bugfixes:
6586     - Directory connections were asking the wrong poll socket to
6587       start writing, and not asking themselves to start writing.
6588     - When we detached from a circuit because we sent a begin but
6589       didn't get a connected, we would use it again the first time;
6590       but after that we would correctly switch to a different one.
6591     - Stop warning when the first onion decrypt attempt fails; they
6592       will sometimes legitimately fail now that we rotate keys.
6593     - Override unaligned-access-ok check when $host_cpu is ia64 or
6594       arm. Apparently they allow it but the kernel whines.
6595     - Dirservers try to reconnect periodically too, in case connections
6596       have failed.
6597     - Fix some memory leaks in directory servers.
6598     - Allow backslash in Win32 filenames.
6599     - Made Tor build complain-free on FreeBSD, hopefully without
6600       breaking other BSD builds. We'll see.
6601   o Features:
6602     - Doxygen markup on all functions and global variables.
6603     - Make directory functions update routerlist, not replace it. So
6604       now directory disagreements are not so critical a problem.
6605     - Remove the upper limit on number of descriptors in a dirserver's
6606       directory (not that we were anywhere close).
6607     - Allow multiple logfiles at different severity ranges.
6608     - Allow *BindAddress to specify ":port" rather than setting *Port
6609       separately. Allow multiple instances of each BindAddress config
6610       option, so you can bind to multiple interfaces if you want.
6611     - Allow multiple exit policy lines, which are processed in order.
6612       Now we don't need that huge line with all the commas in it.
6613     - Enable accept/reject policies on SOCKS connections, so you can bind
6614       to 0.0.0.0 but still control who can use your OP.
6617 Changes in version 0.0.6.2 - 2004-05-16
6618   o Our integrity-checking digest was checking only the most recent cell,
6619     not the previous cells like we'd thought.
6620     Thanks to Stefan Mark for finding the flaw!
6623 Changes in version 0.0.6.1 - 2004-05-06
6624   o Fix two bugs in our AES counter-mode implementation (this affected
6625     onion-level stream encryption, but not TLS-level). It turns
6626     out we were doing something much more akin to a 16-character
6627     polyalphabetic cipher. Oops.
6628     Thanks to Stefan Mark for finding the flaw!
6629   o Retire moria3 as a directory server, and add tor26 as a directory
6630     server.
6633 Changes in version 0.0.6 - 2004-05-02
6634   [version bump only]
6637 Changes in version 0.0.6rc4 - 2004-05-01
6638   o Update the built-in dirservers list to use the new directory format
6639   o Fix a rare seg fault: if a node offering a hidden service attempts
6640     to build a circuit to Alice's rendezvous point and fails before it
6641     reaches the last hop, it retries with a different circuit, but
6642     then dies.
6643   o Handle windows socket errors correctly.
6646 Changes in version 0.0.6rc3 - 2004-04-28
6647   o Don't expire non-general excess circuits (if we had enough
6648     circuits open, we were expiring rendezvous circuits -- even
6649     when they had a stream attached. oops.)
6650   o Fetch randomness from /dev/urandom better (not via fopen/fread)
6651   o Better debugging for tls errors
6652   o Some versions of openssl have an SSL_pending function that erroneously
6653     returns bytes when there is a non-application record pending.
6654   o Set Content-Type on the directory and hidserv descriptor.
6655   o Remove IVs from cipher code, since AES-ctr has none.
6656   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
6657     o We were using an array of length zero in a few places.
6658     o win32's gethostbyname can't resolve an IP to an IP.
6659     o win32's close can't close a socket.
6662 Changes in version 0.0.6rc2 - 2004-04-26
6663   o Fix a bug where we were closing tls connections intermittently.
6664     It turns out openssl keeps its errors around -- so if an error
6665     happens, and you don't ask about it, and then another openssl
6666     operation happens and succeeds, and you ask if there was an error,
6667     it tells you about the first error. Fun fun.
6668   o Fix a bug that's been lurking since 27 may 03 (!)
6669     When passing back a destroy cell, we would use the wrong circ id.
6670     'Mostly harmless', but still worth fixing.
6671   o Since we don't support truncateds much, don't bother sending them;
6672     just close the circ.
6673   o check for <machine/limits.h> so we build on NetBSD again (I hope).
6674   o don't crash if a conn that sent a begin has suddenly lost its circuit
6675     (this was quite rare).
6678 Changes in version 0.0.6rc1 - 2004-04-25
6679   o We now rotate link (tls context) keys and onion keys.
6680   o CREATE cells now include oaep padding, so you can tell
6681     if you decrypted them correctly.
6682   o Add bandwidthburst to server descriptor.
6683   o Directories now say which dirserver signed them.
6684   o Use a tor_assert macro that logs failed assertions too.
6687 Changes in version 0.0.6pre5 - 2004-04-18
6688   o changes from 0.0.6pre4:
6689     - make tor build on broken freebsd 5.2 installs
6690     - fix a failed assert when you try an intro point, get a nack, and try
6691       a second one and it works.
6692     - when alice uses a port that the hidden service doesn't accept,
6693       it now sends back an end cell (denied by exit policy). otherwise
6694       alice would just have to wait to time out.
6695     - fix another rare bug: when we had tried all the intro
6696       points for a hidden service, we fetched the descriptor
6697       again, but we left our introcirc thinking it had already
6698       sent an intro, so it kept waiting for a response...
6699     - bugfix: when you sleep your hidden-service laptop, as soon
6700       as it wakes up it tries to upload a service descriptor, but
6701       socketpair fails for some reason (localhost not up yet?).
6702       now we simply give up on that upload, and we'll try again later.
6703       i'd still like to find the bug though.
6704     - if an intro circ waiting for an ack dies before getting one, then
6705       count it as a nack
6706     - we were reusing stale service descriptors and refetching usable
6707       ones. oops.
6710 Changes in version 0.0.6pre4 - 2004-04-14
6711   o changes from 0.0.6pre3:
6712     - when bob fails to connect to the rendezvous point, and his
6713       circ didn't fail because of the rendezvous point itself, then
6714       he retries a couple of times
6715     - we expire introduction and rendezvous circs more thoroughly
6716       (sometimes they were hanging around forever)
6717     - we expire unattached rendezvous streams that have been around
6718       too long (they were sticking around forever).
6719     - fix a measly fencepost error that was crashing everybody with
6720       a strict glibc.
6723 Changes in version 0.0.6pre3 - 2004-04-14
6724   o changes from 0.0.6pre2:
6725     - make hup work again
6726     - fix some memory leaks for dirservers
6727     - allow more skew in rendezvous descriptor timestamps, to help
6728       handle people like blanu who don't know what time it is
6729     - normal circs are 3 hops, but some rend/intro circs are 4, if
6730       the initiator doesn't get to choose the last hop
6731     - send acks for introductions, so alice can know whether to try
6732       again
6733     - bob publishes intro points more correctly
6734   o changes from 0.0.5:
6735     - fix an assert trigger that's been plaguing us since the days
6736       of 0.0.2prexx (thanks weasel!)
6737     - retry stream correctly when we fail to connect because of
6738       exit-policy-reject (should try another) or can't-resolve-address
6739       (also should try another, because dns on random internet servers
6740       is flaky).
6741     - when we hup a dirserver and we've *removed* a server from the
6742       approved-routers list, now we remove that server from the
6743       in-memory directories too
6746 Changes in version 0.0.6pre2 - 2004-04-08
6747   o We fixed our base32 implementation. Now it works on all architectures.
6750 Changes in version 0.0.6pre1 - 2004-04-08
6751   o Features:
6752     - Hidden services and rendezvous points are implemented. Go to
6753       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
6754       hidden services. (This only works via a socks4a proxy such as
6755       Privoxy, and currently it's quite slow.)
6758 Changes in version 0.0.5 - 2004-03-30
6759   [version bump only]
6762 Changes in version 0.0.5rc3 - 2004-03-29
6763   o Install torrc as torrc.sample -- we no longer clobber your
6764     torrc. (Woo!)
6765   o Re-enable recommendedversion checking (we broke it in rc2, oops)
6766   o Add in a 'notice' log level for things the operator should hear
6767     but that aren't warnings
6770 Changes in version 0.0.5rc2 - 2004-03-29
6771   o Hold socks connection open until reply is flushed (if possible)
6772   o Make exit nodes resolve IPs to IPs immediately, rather than asking
6773     the dns farm to do it.
6774   o Fix c99 aliasing warnings in rephist.c
6775   o Don't include server descriptors that are older than 24 hours in the
6776     directory.
6777   o Give socks 'reject' replies their whole 15s to attempt to flush,
6778     rather than seeing the 60s timeout and assuming the flush had failed.
6779   o Clean automake droppings from the cvs repository
6782 Changes in version 0.0.5rc1 - 2004-03-28
6783   o Fix mangled-state bug in directory fetching (was causing sigpipes).
6784   o Only build circuits after we've fetched the directory: clients were
6785     using only the directory servers before they'd fetched a directory.
6786     This also means longer startup time; so it goes.
6787   o Fix an assert trigger where an OP would fail to handshake, and we'd
6788     expect it to have a nickname.
6789   o Work around a tsocks bug: do a socks reject when AP connection dies
6790     early, else tsocks goes into an infinite loop.
6793 Changes in version 0.0.4 - 2004-03-26
6794   o When connecting to a dirserver or OR and the network is down,
6795     we would crash.
6798 Changes in version 0.0.3 - 2004-03-26
6799   o Warn and fail if server chose a nickname with illegal characters
6800   o Port to Solaris and Sparc:
6801     - include missing header fcntl.h
6802     - have autoconf find -lsocket -lnsl automatically
6803     - deal with hardware word alignment
6804     - make uname() work (solaris has a different return convention)
6805     - switch from using signal() to sigaction()
6806   o Preliminary work on reputation system:
6807     - Keep statistics on success/fail of connect attempts; they're published
6808       by kill -USR1 currently.
6809     - Add a RunTesting option to try to learn link state by creating test
6810       circuits, even when SocksPort is off.
6811     - Remove unused open circuits when there are too many.
6814 Changes in version 0.0.2 - 2004-03-19
6815     - Include strlcpy and strlcat for safer string ops
6816     - define INADDR_NONE so we compile (but still not run) on solaris
6819 Changes in version 0.0.2pre27 - 2004-03-14
6820   o Bugfixes:
6821     - Allow internal tor networks (we were rejecting internal IPs,
6822       now we allow them if they're set explicitly).
6823     - And fix a few endian issues.
6826 Changes in version 0.0.2pre26 - 2004-03-14
6827   o New features:
6828     - If a stream times out after 15s without a connected cell, don't
6829       try that circuit again: try a new one.
6830     - Retry streams at most 4 times. Then give up.
6831     - When a dirserver gets a descriptor from an unknown router, it
6832       logs its fingerprint (so the dirserver operator can choose to
6833       accept it even without mail from the server operator).
6834     - Inform unapproved servers when we reject their descriptors.
6835     - Make tor build on Windows again. It works as a client, who knows
6836       about as a server.
6837     - Clearer instructions in the torrc for how to set up a server.
6838     - Be more efficient about reading fd's when our global token bucket
6839       (used for rate limiting) becomes empty.
6840   o Bugfixes:
6841     - Stop asserting that computers always go forward in time. It's
6842       simply not true.
6843     - When we sent a cell (e.g. destroy) and then marked an OR connection
6844       expired, we might close it before finishing a flush if the other
6845       side isn't reading right then.
6846     - Don't allow dirservers to start if they haven't defined
6847       RecommendedVersions
6848     - We were caching transient dns failures. Oops.
6849     - Prevent servers from publishing an internal IP as their address.
6850     - Address a strcat vulnerability in circuit.c
6853 Changes in version 0.0.2pre25 - 2004-03-04
6854   o New features:
6855     - Put the OR's IP in its router descriptor, not its fqdn. That way
6856       we'll stop being stalled by gethostbyname for nodes with flaky dns,
6857       e.g. poblano.
6858   o Bugfixes:
6859     - If the user typed in an address that didn't resolve, the server
6860       crashed.
6863 Changes in version 0.0.2pre24 - 2004-03-03
6864   o Bugfixes:
6865     - Fix an assertion failure in dns.c, where we were trying to dequeue
6866       a pending dns resolve even if it wasn't pending
6867     - Fix a spurious socks5 warning about still trying to write after the
6868       connection is finished.
6869     - Hold certain marked_for_close connections open until they're finished
6870       flushing, rather than losing bytes by closing them too early.
6871     - Correctly report the reason for ending a stream
6872     - Remove some duplicate calls to connection_mark_for_close
6873     - Put switch_id and start_daemon earlier in the boot sequence, so it
6874       will actually try to chdir() to options.DataDirectory
6875     - Make 'make test' exit(1) if a test fails; fix some unit tests
6876     - Make tor fail when you use a config option it doesn't know about,
6877       rather than warn and continue.
6878     - Make --version work
6879     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
6882 Changes in version 0.0.2pre23 - 2004-02-29
6883   o New features:
6884     - Print a statement when the first circ is finished, so the user
6885       knows it's working.
6886     - If a relay cell is unrecognized at the end of the circuit,
6887       send back a destroy. (So attacks to mutate cells are more
6888       clearly thwarted.)
6889     - New config option 'excludenodes' to avoid certain nodes for circuits.
6890     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
6891       so you can collect coredumps there.
6892  o Bugfixes:
6893     - Fix a bug in tls flushing where sometimes data got wedged and
6894       didn't flush until more data got sent. Hopefully this bug was
6895       a big factor in the random delays we were seeing.
6896     - Make 'connected' cells include the resolved IP, so the client
6897       dns cache actually gets populated.
6898     - Disallow changing from ORPort=0 to ORPort>0 on hup.
6899     - When we time-out on a stream and detach from the circuit, send an
6900       end cell down it first.
6901     - Only warn about an unknown router (in exitnodes, entrynodes,
6902       excludenodes) after we've fetched a directory.
6905 Changes in version 0.0.2pre22 - 2004-02-26
6906   o New features:
6907     - Servers publish less revealing uname information in descriptors.
6908     - More memory tracking and assertions, to crash more usefully when
6909       errors happen.
6910     - If the default torrc isn't there, just use some default defaults.
6911       Plus provide an internal dirservers file if they don't have one.
6912     - When the user tries to use Tor as an http proxy, give them an http
6913       501 failure explaining that we're a socks proxy.
6914     - Dump a new router.desc on hup, to help confused people who change
6915       their exit policies and then wonder why router.desc doesn't reflect
6916       it.
6917     - Clean up the generic tor.sh init script that we ship with.
6918   o Bugfixes:
6919     - If the exit stream is pending on the resolve, and a destroy arrives,
6920       then the stream wasn't getting removed from the pending list. I
6921       think this was the one causing recent server crashes.
6922     - Use a more robust poll on OSX 10.3, since their poll is flaky.
6923     - When it couldn't resolve any dirservers, it was useless from then on.
6924       Now it reloads the RouterFile (or default dirservers) if it has no
6925       dirservers.
6926     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
6927       many users don't even *have* a /usr/local/sbin/.
6930 Changes in version 0.0.2pre21 - 2004-02-18
6931   o New features:
6932     - There's a ChangeLog file that actually reflects the changelog.
6933     - There's a 'torify' wrapper script, with an accompanying
6934       tor-tsocks.conf, that simplifies the process of using tsocks for
6935       tor. It even has a man page.
6936     - The tor binary gets installed to sbin rather than bin now.
6937     - Retry streams where the connected cell hasn't arrived in 15 seconds
6938     - Clean up exit policy handling -- get the default out of the torrc,
6939       so we can update it without forcing each server operator to fix
6940       his/her torrc.
6941     - Allow imaps and pop3s in default exit policy
6942   o Bugfixes:
6943     - Prevent picking middleman nodes as the last node in the circuit
6946 Changes in version 0.0.2pre20 - 2004-01-30
6947   o New features:
6948     - We now have a deb package, and it's in debian unstable. Go to
6949       it, apt-getters. :)
6950     - I've split the TotalBandwidth option into BandwidthRate (how many
6951       bytes per second you want to allow, long-term) and
6952       BandwidthBurst (how many bytes you will allow at once before the cap
6953       kicks in).  This better token bucket approach lets you, say, set
6954       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
6955       performance while not exceeding your monthly bandwidth quota.
6956     - Push out a tls record's worth of data once you've got it, rather
6957       than waiting until you've read everything waiting to be read. This
6958       may improve performance by pipelining better. We'll see.
6959     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
6960       from failed circuits (if they haven't been connected yet) and attach
6961       to new ones.
6962     - Expire old streams that haven't managed to connect. Some day we'll
6963       have them reattach to new circuits instead.
6965   o Bugfixes:
6966     - Fix several memory leaks that were causing servers to become bloated
6967       after a while.
6968     - Fix a few very rare assert triggers. A few more remain.
6969     - Setuid to User _before_ complaining about running as root.
6972 Changes in version 0.0.2pre19 - 2004-01-07
6973   o Bugfixes:
6974     - Fix deadlock condition in dns farm. We were telling a child to die by
6975       closing the parent's file descriptor to him. But newer children were
6976       inheriting the open file descriptor from the parent, and since they
6977       weren't closing it, the socket never closed, so the child never read
6978       eof, so he never knew to exit. Similarly, dns workers were holding
6979       open other sockets, leading to all sorts of chaos.
6980     - New cleaner daemon() code for forking and backgrounding.
6981     - If you log to a file, it now prints an entry at the top of the
6982       logfile so you know it's working.
6983     - The onionskin challenge length was 30 bytes longer than necessary.
6984     - Started to patch up the spec so it's not quite so out of date.
6987 Changes in version 0.0.2pre18 - 2004-01-02
6988   o Bugfixes:
6989     - Fix endian issues with the 'integrity' field in the relay header.
6990     - Fix a potential bug where connections in state
6991       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
6994 Changes in version 0.0.2pre17 - 2003-12-30
6995   o Bugfixes:
6996     - Made --debuglogfile (or any second log file, actually) work.
6997     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
6998       adversary could force us into an infinite loop.
7000   o Features:
7001     - Each onionskin handshake now includes a hash of the computed key,
7002       to prove the server's identity and help perfect forward secrecy.
7003     - Changed cell size from 256 to 512 bytes (working toward compatibility
7004       with MorphMix).
7005     - Changed cell length to 2 bytes, and moved it to the relay header.
7006     - Implemented end-to-end integrity checking for the payloads of
7007       relay cells.
7008     - Separated streamid from 'recognized' (otherwise circuits will get
7009       messed up when we try to have streams exit from the middle). We
7010       use the integrity-checking to confirm that a cell is addressed to
7011       this hop.
7012     - Randomize the initial circid and streamid values, so an adversary who
7013       breaks into a node can't learn how many circuits or streams have
7014       been made so far.
7017 Changes in version 0.0.2pre16 - 2003-12-14
7018   o Bugfixes:
7019     - Fixed a bug that made HUP trigger an assert
7020     - Fixed a bug where a circuit that immediately failed wasn't being
7021       counted as a failed circuit in counting retries.
7023   o Features:
7024     - Now we close the circuit when we get a truncated cell: otherwise we're
7025       open to an anonymity attack where a bad node in the path truncates
7026       the circuit and then we open streams at him.
7027     - Add port ranges to exit policies
7028     - Add a conservative default exit policy
7029     - Warn if you're running tor as root
7030     - on HUP, retry OR connections and close/rebind listeners
7031     - options.EntryNodes: try these nodes first when picking the first node
7032     - options.ExitNodes: if your best choices happen to include any of
7033       your preferred exit nodes, you choose among just those preferred
7034       exit nodes.
7035     - options.ExcludedNodes: nodes that are never picked in path building
7038 Changes in version 0.0.2pre15 - 2003-12-03
7039   o Robustness and bugfixes:
7040     - Sometimes clients would cache incorrect DNS resolves, which would
7041       really screw things up.
7042     - An OP that goes offline would slowly leak all its sockets and stop
7043       working.
7044     - A wide variety of bugfixes in exit node selection, exit policy
7045       handling, and processing pending streams when a new circuit is
7046       established.
7047     - Pick nodes for a path only from those the directory says are up
7048     - Choose randomly from all running dirservers, not always the first one
7049     - Increase allowed http header size for directory fetch.
7050     - Stop writing to stderr (if we're daemonized it will be closed).
7051     - Enable -g always, so cores will be more useful to me.
7052     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
7054   o Documentation:
7055     - Wrote a man page. It lists commonly used options.
7057   o Configuration:
7058     - Change default loglevel to warn.
7059     - Make PidFile default to null rather than littering in your CWD.
7060     - OnionRouter config option is now obsolete. Instead it just checks
7061       ORPort>0.
7062     - Moved to a single unified torrc file for both clients and servers.
7065 Changes in version 0.0.2pre14 - 2003-11-29
7066   o Robustness and bugfixes:
7067     - Force the admin to make the DataDirectory himself
7068       - to get ownership/permissions right
7069       - so clients no longer make a DataDirectory and then never use it
7070     - fix bug where a client who was offline for 45 minutes would never
7071       pull down a directory again
7072     - fix (or at least hide really well) the dns assert bug that was
7073       causing server crashes
7074     - warnings and improved robustness wrt clockskew for certs
7075     - use the native daemon(3) to daemonize, when available
7076     - exit if bind() fails
7077     - exit if neither socksport nor orport is defined
7078     - include our own tor_timegm (Win32 doesn't have its own)
7079     - bugfix for win32 with lots of connections
7080     - fix minor bias in PRNG
7081     - make dirserver more robust to corrupt cached directory
7083   o Documentation:
7084     - Wrote the design document (woo)
7086   o Circuit building and exit policies:
7087     - Circuits no longer try to use nodes that the directory has told them
7088       are down.
7089     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
7090       bitcounts (18.0.0.0/8).
7091     - Make AP connections standby for a circuit if no suitable circuit
7092       exists, rather than failing
7093     - Circuits choose exit node based on addr/port, exit policies, and
7094       which AP connections are standing by
7095     - Bump min pathlen from 2 to 3
7096     - Relay end cells have a payload to describe why the stream ended.
7097     - If the stream failed because of exit policy, try again with a new
7098       circuit.
7099     - Clients have a dns cache to remember resolved addresses.
7100     - Notice more quickly when we have no working circuits
7102   o Configuration:
7103     - APPort is now called SocksPort
7104     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
7105       where to bind
7106     - RecommendedVersions is now a config variable rather than
7107       hardcoded (for dirservers)
7108     - Reloads config on HUP
7109     - Usage info on -h or --help
7110     - If you set User and Group config vars, it'll setu/gid to them.
7113 Changes in version 0.0.2pre13 - 2003-10-19
7114   o General stability:
7115     - SSL_write no longer fails when it returns WANTWRITE and the number
7116       of bytes in the buf has changed by the next SSL_write call.
7117     - Fix segfault fetching directory when network is down
7118     - Fix a variety of minor memory leaks
7119     - Dirservers reload the fingerprints file on HUP, so I don't have
7120       to take down the network when I approve a new router
7121     - Default server config file has explicit Address line to specify fqdn
7123   o Buffers:
7124     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
7125     - Make listener connections not ever alloc bufs
7127   o Autoconf improvements:
7128     - don't clobber an external CFLAGS in ./configure
7129     - Make install now works
7130     - create var/lib/tor on make install
7131     - autocreate a tor.sh initscript to help distribs
7132     - autocreate the torrc and sample-server-torrc with correct paths
7134   o Log files and Daemonizing now work:
7135     - If --DebugLogFile is specified, log to it at -l debug
7136     - If --LogFile is specified, use it instead of commandline
7137     - If --RunAsDaemon is set, tor forks and backgrounds on startup