Clean up some comments; remove some dead code
[tor.git] / ChangeLog
blobb87f0a86c2cd546bcc6bea7bcc35926f3e7d4373
1 Changes in version 0.1.1.9-alpha - 2005-11-15
2   o Usability improvements:
3     - Start calling it FooListenAddress rather than FooBindAddress,
4       since few of our users know what it means to bind an address
5       or port.
6     - Reduce clutter in server logs. We're going to try to make
7       them actually usable now. New config option ProtocolWarnings that
8       lets you hear about how _other Tors_ are breaking the protocol. Off
9       by default.
10     - Divide log messages into logging domains. Once we put some sort
11       of interface on this, it will let people looking at more verbose
12       log levels specify the topics they want to hear more about.
13     - Make directory servers return better http 404 error messages
14       instead of a generic "Servers unavailable".
15     - Check for even more Windows version flags when writing the platform
16       string in server descriptors, and note any we don't recognize.
17     - Clean up more of the OpenSSL memory when exiting, so we can detect
18       memory leaks better.
19     - Make directory authorities be non-versioning, non-naming by
20       default. Now we can add new directory servers without requiring
21       their operators to pay close attention.
22     - When logging via syslog, include the pid whenever we provide
23       a log entry. Suggested by Todd Fries.
25   o Performance improvements:
26     - Directory servers now silently throw away new descriptors that
27       haven't changed much if the timestamps are similar. We do this to
28       tolerate older Tor servers that upload a new descriptor every 15
29       minutes. (It seemed like a good idea at the time.)
30     - Inline bottleneck smartlist functions; use fast versions by default.
31     - Add a "Map from digest to void*" abstraction digestmap_t so we
32       can do less hex encoding/decoding. Use it in router_get_by_digest()
33       to resolve a performance bottleneck.
34     - Allow tor_gzip_uncompress to extract as much as possible from
35       truncated compressed data. Try to extract as many
36       descriptors as possible from truncated http responses (when
37       DIR_PURPOSE_FETCH_ROUTERDESC).
38     - Make circ->onionskin a pointer, not a static array. moria2 was using
39       125000 circuit_t's after it had been up for a few weeks, which
40       translates to 20+ megs of wasted space.
41     - The private half of our EDH handshake keys are now chosen out
42       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
44   o Security improvements:
45     - Start making directory caches retain old routerinfos, so soon
46       clients can start asking by digest of descriptor rather than by
47       fingerprint of server.
48     - Add half our entropy from RAND_poll in OpenSSL.  This knows how
49       to use egd (if present), openbsd weirdness (if present), vms/os2
50       weirdness (if we ever port there), and more in the future.
52   o Bugfixes on 0.1.0.x:
53     - Do round-robin writes of at most 16 kB per write. This might be
54       more fair on loaded Tor servers, and it might resolve our Windows
55       crash bug. It might also slow things down.
56     - Our TLS handshakes were generating a single public/private
57       keypair for the TLS context, rather than making a new one for
58       each new connections. Oops. (But we were still rotating them
59       periodically, so it's not so bad.)
60     - When we were cannibalizing a circuit with a particular exit
61       node in mind, we weren't checking to see if that exit node was
62       already present earlier in the circuit. Oops.
63     - When a Tor server's IP changes (e.g. from a dyndns address),
64       upload a new descriptor so clients will learn too.
65     - Really busy servers were keeping enough circuits open on stable
66       connections that they were wrapping around the circuit_id
67       space. (It's only two bytes.) This exposed a bug where we would
68       feel free to reuse a circuit_id even if it still exists but has
69       been marked for close. Try to fix this bug. Some bug remains.
70     - If we would close a stream early (e.g. it asks for a .exit that
71       we know would refuse it) but the LeaveStreamsUnattached config
72       option is set by the controller, then don't close it.
74   o Bugfixes on 0.1.1.8-alpha:
75     - Fix a big pile of memory leaks, some of them serious.
76     - Do not try to download a routerdesc if we would immediately reject
77       it as obsolete.
78     - Resume inserting a newline between all router descriptors when
79       generating (old style) signed directories, since our spec says
80       we do.
81     - When providing content-type application/octet-stream for
82       server descriptors using .z, we were leaving out the
83       content-encoding header. Oops. (Everything tolerated this just
84       fine, but that doesn't mean we need to be part of the problem.)
85     - Fix a potential seg fault in getconf and getinfo using version 1
86       of the controller protocol.
87     - Avoid crash: do not check whether DirPort is reachable when we
88       are suppressing it because of hibernation.
89     - Make --hash-password not crash on exit.
92 Changes in version 0.1.1.8-alpha - 2005-10-07
93   o New features (major):
94     - Clients don't download or use the directory anymore. Now they
95       download and use network-statuses from the trusted dirservers,
96       and fetch individual server descriptors as needed from mirrors.
97       See dir-spec.txt for all the gory details.
98     - Be more conservative about whether to advertise our DirPort.
99       The main change is to not advertise if we're running at capacity
100       and either a) we could hibernate or b) our capacity is low and
101       we're using a default DirPort.
102     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
104   o New features (minor):
105     - Try to be smart about when to retry network-status and
106       server-descriptor fetches. Still needs some tuning.
107     - Stop parsing, storing, or using running-routers output (but
108       mirrors still cache and serve it).
109     - Consider a threshold of versioning dirservers (dirservers who have
110       an opinion about which Tor versions are still recommended) before
111       deciding whether to warn the user that he's obsolete.
112     - Dirservers can now reject/invalidate by key and IP, with the
113       config options "AuthDirInvalid" and "AuthDirReject". This is
114       useful since currently we automatically list servers as running
115       and usable even if we know they're jerks.
116     - Provide dire warnings to any users who set DirServer; move it out
117       of torrc.sample and into torrc.complete.
118     - Add MyFamily to torrc.sample in the server section.
119     - Add nicknames to the DirServer line, so we can refer to them
120       without requiring all our users to memorize their IP addresses.
121     - When we get an EOF or a timeout on a directory connection, note
122       how many bytes of serverdesc we are dropping. This will help
123       us determine whether it is smart to parse incomplete serverdesc
124       responses.
125     - Add a new function to "change pseudonyms" -- that is, to stop
126       using any currently-dirty circuits for new streams, so we don't
127       link new actions to old actions. Currently it's only called on
128       HUP (or SIGNAL RELOAD).
129     - On sighup, if UseHelperNodes changed to 1, use new circuits.
130     - Start using RAND_bytes rather than RAND_pseudo_bytes from
131       OpenSSL. Also, reseed our entropy every hour, not just at
132       startup. And entropy in 512-bit chunks, not 160-bit chunks.
134   o Fixes on 0.1.1.7-alpha:
135     - Nobody ever implemented EVENT_ADDRMAP for control protocol
136       version 0, so don't let version 0 controllers ask for it.
137     - If you requested something with too many newlines via the
138       v1 controller protocol, you could crash tor.
139     - Fix a number of memory leaks, including some pretty serious ones.
140     - Re-enable DirPort testing again, so Tor servers will be willing
141       to advertise their DirPort if it's reachable.
142     - On TLS handshake, only check the other router's nickname against
143       its expected nickname if is_named is set.
145   o Fixes forward-ported from 0.1.0.15:
146     - Don't crash when we don't have any spare file descriptors and we
147       try to spawn a dns or cpu worker.
148     - Make the numbers in read-history and write-history into uint64s,
149       so they don't overflow and publish negatives in the descriptor.
151   o Fixes on 0.1.0.x:
152     - For the OS X package's modified privoxy config file, comment
153       out the "logfile" line so we don't log everything passed
154       through privoxy.
155     - We were whining about using socks4 or socks5-with-local-lookup
156       even when it's an IP in the "virtual" range we designed exactly
157       for this case.
158     - We were leaking some memory every time the client changes IPs.
159     - Never call free() on tor_malloc()d memory. This will help us
160       use dmalloc to detect memory leaks.
161     - Check for named servers when looking them up by nickname;
162       warn when we'recalling a non-named server by its nickname;
163       don't warn twice about the same name.
164     - Try to list MyFamily elements by key, not by nickname, and warn
165       if we've not heard of the server.
166     - Make windows platform detection (uname equivalent) smarter.
167     - It turns out sparc64 doesn't like unaligned access either.
170 Changes in version 0.1.1.7-alpha - 2005-09-14
171   o Fixes on 0.1.1.6-alpha:
172     - Exit servers were crashing when people asked them to make a
173       connection to an address not in their exit policy.
174     - Looking up a non-existent stream for a v1 control connection would
175       cause a segfault.
176     - Fix a seg fault if we ask a dirserver for a descriptor by
177       fingerprint but he doesn't know about him.
178     - SETCONF was appending items to linelists, not clearing them.
179     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
180       out and refuse the setconf if it would fail.
181     - Downgrade the dirserver log messages when whining about
182       unreachability.
184   o New features:
185     - Add Peter Palfrader's check-tor script to tor/contrib/
186       It lets you easily check whether a given server (referenced by
187       nickname) is reachable by you.
188     - Numerous changes to move towards client-side v2 directories. Not
189       enabled yet.
191   o Fixes on 0.1.0.x:
192     - If the user gave tor an odd number of command-line arguments,
193       we were silently ignoring the last one. Now we complain and fail.
194       [This wins the oldest-bug prize -- this bug has been present since
195        November 2002, as released in Tor 0.0.0.]
196     - Do not use unaligned memory access on alpha, mips, or mipsel.
197       It *works*, but is very slow, so we treat them as if it doesn't.
198     - Retry directory requests if we fail to get an answer we like
199       from a given dirserver (we were retrying before, but only if
200       we fail to connect).
201     - When writing the RecommendedVersions line, sort them first.
202     - When the client asked for a rendezvous port that the hidden
203       service didn't want to provide, we were sending an IP address
204       back along with the end cell. Fortunately, it was zero. But stop
205       that anyway.
206     - Correct "your server is reachable" log entries to indicate that
207       it was self-testing that told us so.
210 Changes in version 0.1.1.6-alpha - 2005-09-09
211   o Fixes on 0.1.1.5-alpha:
212     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
213     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
214     - Fix bug with tor_memmem finding a match at the end of the string.
215     - Make unit tests run without segfaulting.
216     - Resolve some solaris x86 compile warnings.
217     - Handle duplicate lines in approved-routers files without warning.
218     - Fix bug where as soon as a server refused any requests due to his
219       exit policy (e.g. when we ask for localhost and he tells us that's
220       127.0.0.1 and he won't do it), we decided he wasn't obeying his
221       exit policy and stopped using him for any exits.
222     - Only do openssl hardware accelerator stuff if openssl version is
223       at least 0.9.7.
225   o New controller features/fixes:
226     - Add a "RESETCONF" command so you can set config options like
227       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
228       a config option in the torrc with no value, then it clears it
229       entirely (rather than setting it to its default).
230     - Add a "GETINFO config-file" to tell us where torrc is.
231     - Avoid sending blank lines when GETINFO replies should be empty.
232     - Add a QUIT command for the controller (for using it manually).
233     - Fix a bug in SAVECONF that was adding default dirservers and
234       other redundant entries to the torrc file.
236   o Start on the new directory design:
237     - Generate, publish, cache, serve new network-status format.
238     - Publish individual descriptors (by fingerprint, by "all", and by
239       "tell me yours").
240     - Publish client and server recommended versions separately.
241     - Allow tor_gzip_uncompress() to handle multiple concatenated
242       compressed strings. Serve compressed groups of router
243       descriptors. The compression logic here could be more
244       memory-efficient.
245     - Distinguish v1 authorities (all currently trusted directories)
246       from v2 authorities (all trusted directories).
247     - Change DirServers config line to note which dirs are v1 authorities.
248     - Add configuration option "V1AuthoritativeDirectory 1" which
249       moria1, moria2, and tor26 should set.
250     - Remove option when getting directory cache to see whether they
251       support running-routers; they all do now. Replace it with one
252       to see whether caches support v2 stuff.
254   o New features:
255     - Dirservers now do their own external reachability testing of each
256       Tor server, and only list them as running if they've been found to
257       be reachable. We also send back warnings to the server's logs if
258       it uploads a descriptor that we already believe is unreachable.
259     - Implement exit enclaves: if we know an IP address for the
260       destination, and there's a running Tor server at that address
261       which allows exit to the destination, then extend the circuit to
262       that exit first. This provides end-to-end encryption and end-to-end
263       authentication. Also, if the user wants a .exit address or enclave,
264       use 4 hops rather than 3, and cannibalize a general circ for it
265       if you can.
266     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
267       controller. Also, rotate dns and cpu workers if the controller
268       changes options that will affect them; and initialize the dns
269       worker cache tree whether or not we start out as a server.
270     - Only upload a new server descriptor when options change, 18
271       hours have passed, uptime is reset, or bandwidth changes a lot.
272     - Check [X-]Forwarded-For headers in HTTP requests when generating
273       log messages. This lets people run dirservers (and caches) behind
274       Apache but still know which IP addresses are causing warnings.
276   o Config option changes:
277     - Replace (Fascist)Firewall* config options with a new
278       ReachableAddresses option that understands address policies.
279       For example, "ReachableAddresses *:80,*:443"
280     - Get rid of IgnoreVersion undocumented config option, and make us
281       only warn, never exit, when we're running an obsolete version.
282     - Make MonthlyAccountingStart config option truly obsolete now.
284   o Fixes on 0.1.0.x:
285     - Reject ports 465 and 587 in the default exit policy, since
286       people have started using them for spam too.
287     - It turns out we couldn't bootstrap a network since we added
288       reachability detection in 0.1.0.1-rc. Good thing the Tor network
289       has never gone down. Add an AssumeReachable config option to let
290       servers and dirservers bootstrap. When we're trying to build a
291       high-uptime or high-bandwidth circuit but there aren't enough
292       suitable servers, try being less picky rather than simply failing.
293     - Our logic to decide if the OR we connected to was the right guy
294       was brittle and maybe open to a mitm for unverified routers.
295     - We weren't cannibalizing circuits correctly for
296       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
297       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
298       build those from scratch. This should make hidden services faster.
299     - Predict required circuits better, with an eye toward making hidden
300       services faster on the service end.
301     - Retry streams if the exit node sends back a 'misc' failure. This
302       should result in fewer random failures. Also, after failing
303       from resolve failed or misc, reset the num failures, so we give
304       it a fair shake next time we try.
305     - Clean up the rendezvous warn log msgs, and downgrade some to info.
306     - Reduce severity on logs about dns worker spawning and culling.
307     - When we're shutting down and we do something like try to post a
308       server descriptor or rendezvous descriptor, don't complain that
309       we seem to be unreachable. Of course we are, we're shutting down.
310     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
311       We don't use them yet, but maybe one day our DNS resolver will be
312       able to discover them.
313     - Make ContactInfo mandatory for authoritative directory servers.
314     - Require server descriptors to list IPv4 addresses -- hostnames
315       are no longer allowed. This also fixes some potential security
316       problems with people providing hostnames as their address and then
317       preferentially resolving them to partition users.
318     - Change log line for unreachability to explicitly suggest /etc/hosts
319       as the culprit. Also make it clearer what IP address and ports we're
320       testing for reachability.
321     - Put quotes around user-supplied strings when logging so users are
322       more likely to realize if they add bad characters (like quotes)
323       to the torrc.
324     - Let auth dir servers start without specifying an Address config
325       option.
326     - Make unit tests (and other invocations that aren't the real Tor)
327       run without launching listeners, creating subdirectories, and so on.
330 Changes in version 0.1.1.5-alpha - 2005-08-08
331   o Bugfixes included in 0.1.0.14.
333   o Bugfixes on 0.1.0.x:
334     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
335       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
336       it would silently using ignore the 6668.
339 Changes in version 0.1.1.4-alpha - 2005-08-04
340   o Bugfixes included in 0.1.0.13.
342   o Features:
343     - Improve tor_gettimeofday() granularity on windows.
344     - Make clients regenerate their keys when their IP address changes.
345     - Implement some more GETINFO goodness: expose helper nodes, config
346       options, getinfo keys.
349 Changes in version 0.1.1.3-alpha - 2005-07-25
350   o Bugfixes on 0.1.1.2-alpha:
351     - Fix a bug in handling the controller's "post descriptor"
352       function.
353     - Fix several bugs in handling the controller's "extend circuit"
354       function.
355     - Fix a bug in handling the controller's "stream status" event.
356     - Fix an assert failure if we have a controller listening for
357       circuit events and we go offline.
358     - Re-allow hidden service descriptors to publish 0 intro points.
359     - Fix a crash when generating your hidden service descriptor if
360       you don't have enough intro points already.
362   o New features on 0.1.1.2-alpha:
363     - New controller function "getinfo accounting", to ask how
364       many bytes we've used in this time period.
365     - Experimental support for helper nodes: a lot of the risk from
366       a small static adversary comes because users pick new random
367       nodes every time they rebuild a circuit. Now users will try to
368       stick to the same small set of entry nodes if they can. Not
369       enabled by default yet.
371   o Bugfixes on 0.1.0.12:
372     - If you're an auth dir server, always publish your dirport,
373       even if you haven't yet found yourself to be reachable.
374     - Fix a size_t underflow in smartlist_join_strings2() that made
375       it do bad things when you hand it an empty smartlist.
378 Changes in version 0.1.1.2-alpha - 2005-07-14
379   o New directory servers:
380     - tor26 has changed IP address.
382   o Bugfixes on 0.1.0.x, crashes/leaks:
383     - Port the servers-not-obeying-their-exit-policies fix from 0.1.0.11.
384     - Fix an fd leak in start_daemon().
385     - On Windows, you can't always reopen a port right after you've
386       closed it. So change retry_listeners() to only close and re-open
387       ports that have changed.
388     - Fix a possible double-free in tor_gzip_uncompress().
390   o Bugfixes on 0.1.0.x, usability:
391     - When tor_socketpair() fails in Windows, give a reasonable
392       Windows-style errno back.
393     - Let people type "tor --install" as well as "tor -install" when they
394       want to make it an NT service.
395     - NT service patch from Matt Edman to improve error messages.
396     - When the controller asks for a config option with an abbreviated
397       name, give the full name in our response.
398     - Correct the man page entry on TrackHostExitsExpire.
399     - Looks like we were never delivering deflated (i.e. compressed)
400       running-routers lists, even when asked. Oops.
401     - When --disable-threads is set, do not search for or link against
402       pthreads libraries.
404   o Bugfixes on 0.1.1.x:
405     - Fix a seg fault with autodetecting which controller version is
406       being used.
408   o Features:
409     - New hidden service descriptor format: put a version in it, and
410       let people specify introduction/rendezvous points that aren't
411       in "the directory" (which is subjective anyway).
412     - Allow the DEBUG controller event to work again. Mark certain log
413       entries as "don't tell this to controllers", so we avoid cycles.
416 Changes in version 0.1.1.1-alpha - 2005-06-29
417   o Bugfixes:
418     - Make OS X init script check for missing argument, so we don't
419       confuse users who invoke it incorrectly.
420     - Fix a seg fault in "tor --hash-password foo".
421     - Fix a possible way to DoS dirservers.
422     - When we complain that your exit policy implicitly allows local or
423       private address spaces, name them explicitly so operators can
424       fix it.
425     - Make the log message less scary when all the dirservers are
426       temporarily unreachable.
427     - We were printing the number of idle dns workers incorrectly when
428       culling them.
430   o Features:
431     - Revised controller protocol (version 1) that uses ascii rather
432       than binary. Add supporting libraries in python and java so you
433       can use the controller from your applications without caring how
434       our protocol works.
435     - Spiffy new support for crypto hardware accelerators. Can somebody
436       test this?
439 Changes in version 0.1.0.15 - 2005-09-23
440   o Bugfixes on 0.1.0.x:
441     - Reject ports 465 and 587 (spam targets) in default exit policy.
442     - Don't crash when we don't have any spare file descriptors and we
443       try to spawn a dns or cpu worker.
444     - Get rid of IgnoreVersion undocumented config option, and make us
445       only warn, never exit, when we're running an obsolete version.
446     - Don't try to print a null string when your server finds itself to
447       be unreachable and the Address config option is empty.
448     - Make the numbers in read-history and write-history into uint64s,
449       so they don't overflow and publish negatives in the descriptor.
450     - Fix a minor memory leak in smartlist_string_remove().
451     - We were only allowing ourselves to upload a server descriptor at
452       most every 20 minutes, even if it changed earlier than that.
453     - Clean up log entries that pointed to old URLs.
456 Changes in version 0.1.0.14 - 2005-08-08
457   o Bugfixes on 0.1.0.x:
458       - Fix the other half of the bug with crypto handshakes.
459       - Fix an assert trigger if you send a 'signal term' via the
460         controller when it's listening for 'event info' messages.
463 Changes in version 0.1.0.13 - 2005-08-04
464   o Bugfixes on 0.1.0.x:
465     - Fix a critical bug in the security of our crypto handshakes.
466     - Fix a size_t underflow in smartlist_join_strings2() that made
467       it do bad things when you hand it an empty smartlist.
468     - Fix Windows installer to ship Tor license (thanks to Aphex for
469       pointing out this oversight) and put a link to the doc directory
470       in the start menu.
471     - Explicitly set no-unaligned-access for sparc: it turns out the
472       new gcc's let you compile broken code, but that doesn't make it
473       not-broken.
476 Changes in version 0.1.0.12 - 2005-07-18
477   o New directory servers:
478       - tor26 has changed IP address.
480   o Bugfixes on 0.1.0.x:
481     - Fix a possible double-free in tor_gzip_uncompress().
482     - When --disable-threads is set, do not search for or link against
483       pthreads libraries.
484     - Don't trigger an assert if an authoritative directory server
485       claims its dirport is 0.
486     - Fix bug with removing Tor as an NT service: some people were
487       getting "The service did not return an error." Thanks to Matt
488       Edman for the fix.
491 Changes in version 0.1.0.11 - 2005-06-30
492   o Bugfixes on 0.1.0.x:
493     - Fix major security bug: servers were disregarding their
494       exit policies if clients behaved unexpectedly.
495     - Make OS X init script check for missing argument, so we don't
496       confuse users who invoke it incorrectly.
497     - Fix a seg fault in "tor --hash-password foo".
498     - The MAPADDRESS control command was broken.
501 Changes in version 0.1.0.10 - 2005-06-14
502   o Fixes on Win32:
503     - Make NT services work and start on startup on Win32 (based on
504       patch by Matt Edman). See the FAQ entry for details.
505     - Make 'platform' string in descriptor more accurate for Win32
506       servers, so it's not just "unknown platform".
507     - REUSEADDR on normal platforms means you can rebind to the port
508       right after somebody else has let it go. But REUSEADDR on Win32
509       means you can bind to the port _even when somebody else already
510       has it bound_! So, don't do that on Win32.
511     - Clean up the log messages when starting on Win32 with no config
512       file.
513     - Allow seeding the RNG on Win32 even when you're not running as
514       Administrator. If seeding the RNG on Win32 fails, quit.
516   o Assert / crash bugs:
517     - Refuse relay cells that claim to have a length larger than the
518       maximum allowed. This prevents a potential attack that could read
519       arbitrary memory (e.g. keys) from an exit server's process.
520     - If unofficial Tor clients connect and send weird TLS certs, our
521       Tor server triggers an assert. Stop asserting, and start handling
522       TLS errors better in other situations too.
523     - Fix a race condition that can trigger an assert when we have a
524       pending create cell and an OR connection attempt fails.
526   o Resource leaks:
527     - Use pthreads for worker processes rather than forking. This was
528       forced because when we forked, we ended up wasting a lot of
529       duplicate ram over time.
530       - Also switch to foo_r versions of some library calls to allow
531         reentry and threadsafeness.
532       - Implement --disable-threads configure option. Disable threads on
533         netbsd and openbsd by default, because they have no reentrant
534         resolver functions (!), and on solaris since it has other
535         threading issues.
536     - Fix possible bug on threading platforms (e.g. win32) which was
537       leaking a file descriptor whenever a cpuworker or dnsworker died.
538     - Fix a minor memory leak when somebody establishes an introduction
539       point at your Tor server.
540     - Fix possible memory leak in tor_lookup_hostname(). (Thanks to
541       Adam Langley.)
542     - Add ./configure --with-dmalloc option, to track memory leaks.
543     - And try to free all memory on closing, so we can detect what
544       we're leaking.
546   o Protocol correctness:
547     - When we've connected to an OR and handshaked but didn't like
548       the result, we were closing the conn without sending destroy
549       cells back for pending circuits. Now send those destroys.
550     - Start sending 'truncated' cells back rather than destroy cells
551       if the circuit closes in front of you. This means we won't have
552       to abandon partially built circuits.
553     - Handle changed router status correctly when dirserver reloads
554       fingerprint file. We used to be dropping all unverified descriptors
555       right then. The bug was hidden because we would immediately
556       fetch a directory from another dirserver, which would include the
557       descriptors we just dropped.
558     - Revise tor-spec to add more/better stream end reasons.
559     - Revise all calls to connection_edge_end to avoid sending 'misc',
560       and to take errno into account where possible.
561     - Client now retries when streams end early for 'hibernating' or
562       'resource limit' reasons, rather than failing them.
563     - Try to be more zealous about calling connection_edge_end when
564       things go bad with edge conns in connection.c.
566   o Robustness improvements:
567     - Better handling for heterogeneous / unreliable nodes:
568       - Annotate circuits with whether they aim to contain high uptime
569         nodes and/or high capacity nodes. When building circuits, choose
570         appropriate nodes.
571       - This means that every single node in an intro rend circuit,
572         not just the last one, will have a minimum uptime.
573       - New config option LongLivedPorts to indicate application streams
574         that will want high uptime circuits.
575       - Servers reset uptime when a dir fetch entirely fails. This
576         hopefully reflects stability of the server's network connectivity.
577       - If somebody starts his tor server in Jan 2004 and then fixes his
578         clock, don't make his published uptime be a year.
579       - Reset published uptime when we wake up from hibernation.
580     - Introduce a notion of 'internal' circs, which are chosen without
581       regard to the exit policy of the last hop. Intro and rendezvous
582       circs must be internal circs, to avoid leaking information. Resolve
583       and connect streams can use internal circs if they want.
584     - New circuit pooling algorithm: keep track of what destination ports
585       we've used recently (start out assuming we'll want to use 80), and
586       make sure to have enough circs around to satisfy these ports. Also
587       make sure to have 2 internal circs around if we've required internal
588       circs lately (and with high uptime if we've seen that lately too).
589     - Turn addr_policy_compare from a tristate to a quadstate; this should
590       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
591       for google.com" problem.
592     - When a client asks us for a dir mirror and we don't have one,
593       launch an attempt to get a fresh one.
594     - First cut at support for "create-fast" cells. Clients can use
595       these when extending to their first hop, since the TLS already
596       provides forward secrecy and authentication. Not enabled on
597       clients yet.
599   o Reachability testing.
600     - Your Tor server will automatically try to see if its ORPort and
601       DirPort are reachable from the outside, and it won't upload its
602       descriptor until it decides at least ORPort is reachable (when
603       DirPort is not yet found reachable, publish it as zero).
604     - When building testing circs for ORPort testing, use only
605       high-bandwidth nodes, so fewer circuits fail.
606     - Notice when our IP changes, and reset stats/uptime/reachability.
607     - Authdirservers don't do ORPort reachability detection, since
608       they're in clique mode, so it will be rare to find a server not
609       already connected to them.
610     - Authdirservers now automatically approve nodes running 0.1.0.2-rc
611       or later.
613   o Dirserver fixes:
614     - Now we allow two unverified servers with the same nickname
615       but different keys. But if a nickname is verified, only that
616       nickname+key are allowed.
617     - If you're an authdirserver connecting to an address:port,
618       and it's not the OR you were expecting, forget about that
619       descriptor. If he *was* the one you were expecting, then forget
620       about all other descriptors for that address:port.
621     - Allow servers to publish descriptors from 12 hours in the future.
622       Corollary: only whine about clock skew from the dirserver if
623       he's a trusted dirserver (since now even verified servers could
624       have quite wrong clocks).
625     - Require servers that use the default dirservers to have public IP
626       addresses. We have too many servers that are configured with private
627       IPs and their admins never notice the log entries complaining that
628       their descriptors are being rejected.
630   o Efficiency improvements:
631     - Use libevent. Now we can use faster async cores (like epoll, kpoll,
632       and /dev/poll), and hopefully work better on Windows too.
633       - Apple's OS X 10.4.0 ships with a broken kqueue API, and using
634         kqueue on 10.3.9 causes kernel panics. Don't use kqueue on OS X.
635       - Find libevent even if it's hiding in /usr/local/ and your
636         CFLAGS and LDFLAGS don't tell you to look there.
637       - Be able to link with libevent as a shared library (the default
638         after 1.0d), even if it's hiding in /usr/local/lib and even
639         if you haven't added /usr/local/lib to your /etc/ld.so.conf,
640         assuming you're running gcc. Otherwise fail and give a useful
641         error message.
642     - Switch to a new buffer management algorithm, which tries to avoid
643       reallocing and copying quite as much. In first tests it looks like
644       it uses *more* memory on average, but less cpu.
645     - Switch our internal buffers implementation to use a ring buffer,
646       to hopefully improve performance for fast servers a lot.
647     - Reenable the part of the code that tries to flush as soon as an
648       OR outbuf has a full TLS record available. Perhaps this will make
649       OR outbufs not grow as huge except in rare cases, thus saving lots
650       of CPU time plus memory.
651     - Improve performance for dirservers: stop re-parsing the whole
652       directory every time you regenerate it.
653     - Keep a big splay tree of (circid,orconn)->circuit mappings to make
654       it much faster to look up a circuit for each relay cell.
655     - Remove most calls to assert_all_pending_dns_resolves_ok(),
656       since they're eating our cpu on exit nodes.
657     - Stop wasting time doing a case insensitive comparison for every
658       dns name every time we do any lookup. Canonicalize the names to
659       lowercase when you first see them.
661   o Hidden services:
662     - Handle unavailable hidden services better. Handle slow or busy
663       hidden services better.
664     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
665       circ as necessary, if there are any completed ones lying around
666       when we try to launch one.
667     - Make hidden services try to establish a rendezvous for 30 seconds
668       after fetching the descriptor, rather than for n (where n=3)
669       attempts to build a circuit.
670     - Adjust maximum skew and age for rendezvous descriptors: let skew
671       be 48 hours rather than 90 minutes.
672     - Reject malformed .onion addresses rather then passing them on as
673       normal web requests.
675   o Controller:
676     - More Tor controller support. See
677       http://tor.eff.org/doc/control-spec.txt for all the new features,
678       including signals to emulate unix signals from any platform;
679       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
680       closestream; closecircuit; etc.
681     - Encode hashed controller passwords in hex instead of base64,
682       to make it easier to write controllers.
683     - Revise control spec and implementation to allow all log messages to
684       be sent to controller with their severities intact (suggested by
685       Matt Edman). Disable debug-level logs while delivering a debug-level
686       log to the controller, to prevent loop. Update TorControl to handle
687       new log event types.
689   o New config options/defaults:
690     - Begin scrubbing sensitive strings from logs by default. Turn off
691       the config option SafeLogging if you need to do debugging.
692     - New exit policy: accept most low-numbered ports, rather than
693       rejecting most low-numbered ports.
694     - Put a note in the torrc about abuse potential with the default
695       exit policy.
696     - Add support for CONNECTing through https proxies, with "HttpsProxy"
697       config option.
698     - Add HttpProxyAuthenticator and HttpsProxyAuthenticator support
699       based on patch from Adam Langley (basic auth only).
700     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
701       the fast servers that have been joining lately. (Clients are now
702       willing to load balance over up to 2 MB of advertised bandwidth
703       capacity too.)
704     - New config option MaxAdvertisedBandwidth which lets you advertise
705       a low bandwidthrate (to not attract as many circuits) while still
706       allowing a higher bandwidthrate in reality.
707     - Require BandwidthRate to be at least 20kB/s for servers.
708     - Add a NoPublish config option, so you can be a server (e.g. for
709       testing running Tor servers in other Tor networks) without
710       publishing your descriptor to the primary dirservers.
711     - Add a new AddressMap config directive to rewrite incoming socks
712       addresses. This lets you, for example, declare an implicit
713       required exit node for certain sites.
714     - Add a new TrackHostExits config directive to trigger addressmaps
715       for certain incoming socks addresses -- for sites that break when
716       your exit keeps changing (based on patch from Mike Perry).
717     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
718       which describes how often we retry making new circuits if current
719       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
720       how long we're willing to make use of an already-dirty circuit.
721     - Change compiled-in SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to
722       a config option "ShutdownWaitLength" (when using kill -INT on
723       servers).
724     - Fix an edge case in parsing config options: if they say "--"
725       on the commandline, it's not a config option (thanks weasel).
726     - New config option DirAllowPrivateAddresses for authdirservers.
727       Now by default they refuse router descriptors that have non-IP or
728       private-IP addresses.
729     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
730       smart" default value: low for servers and high for clients.
731     - Some people were putting "Address  " in their torrc, and they had
732       a buggy resolver that resolved " " to 0.0.0.0. Oops.
733     - If DataDir is ~/.tor, and that expands to /.tor, then default to
734       LOCALSTATEDIR/tor instead.
735     - Implement --verify-config command-line option to check if your torrc
736       is valid without actually launching Tor.
738   o Logging improvements:
739     - When dirservers refuse a server descriptor, we now log its
740       contactinfo, platform, and the poster's IP address.
741     - Only warn once per nickname from add_nickname_list_to_smartlist()
742       per failure, so an entrynode or exitnode choice that's down won't
743       yell so much.
744     - When we're connecting to an OR and he's got a different nickname/key
745       than we were expecting, only complain loudly if we're an OP or a
746       dirserver. Complaining loudly to the OR admins just confuses them.
747     - Whine at you if you're a server and you don't set your contactinfo.
748     - Warn when exit policy implicitly allows local addresses.
749     - Give a better warning when some other server advertises an
750       ORPort that is actually an apache running ssl.
751     - If we get an incredibly skewed timestamp from a dirserver mirror
752       that isn't a verified OR, don't warn -- it's probably him that's
753       wrong.
754     - When a dirserver causes you to give a warn, mention which dirserver
755       it was.
756     - Initialize libevent later in the startup process, so the logs are
757       already established by the time we start logging libevent warns.
758     - Use correct errno on win32 if libevent fails.
759     - Check and warn about known-bad/slow libevent versions.
760     - Stop warning about sigpipes in the logs. We're going to
761       pretend that getting these occassionally is normal and fine.
763   o New contrib scripts:
764     - New experimental script tor/contrib/exitlist: a simple python
765       script to parse directories and find Tor nodes that exit to listed
766       addresses/ports.
767     - New experimental script tor/contrib/ExerciseServer.py (needs more
768       work) that uses the controller interface to build circuits and
769       fetch pages over them. This will help us bootstrap servers that
770       have lots of capacity but haven't noticed it yet.
771     - New experimental script tor/contrib/PathDemo.py (needs more work)
772       that uses the controller interface to let you choose whole paths
773       via addresses like
774       "<hostname>.<path,separated by dots>.<length of path>.path"
775     - New contributed script "privoxy-tor-toggle" to toggle whether
776       Privoxy uses Tor. Seems to be configured for Debian by default.
777     - Have torctl.in/tor.sh.in check for location of su binary (needed
778       on FreeBSD)
780   o Misc bugfixes:
781     - chdir() to your datadirectory at the *end* of the daemonize process,
782       not the beginning. This was a problem because the first time you
783       run tor, if your datadir isn't there, and you have runasdaemon set
784       to 1, it will try to chdir to it before it tries to create it. Oops.
785     - Fix several double-mark-for-close bugs, e.g. where we were finding
786       a conn for a cell even if that conn is already marked for close.
787     - Stop most cases of hanging up on a socks connection without sending
788       the socks reject.
789     - Fix a bug in the RPM package: set home directory for _tor to
790       something more reasonable when first installing.
791     - Stop putting nodename in the Platform string in server descriptors.
792       It doesn't actually help, and it is confusing/upsetting some people.
793     - When using preferred entry or exit nodes, ignore whether the
794       circuit wants uptime or capacity. They asked for the nodes, they
795       get the nodes.
796     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
797       artificially capped at 500kB.
798     - Cache local dns resolves correctly even when they're .exit
799       addresses.
800     - If we're hibernating and we get a SIGINT, exit immediately.
801     - tor-resolve requests were ignoring .exit if there was a working circuit
802       they could use instead.
803     - Pay more attention to the ClientOnly config option.
804     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in certain
805       installer screens; and don't put stuff into StartupItems unless
806       the user asks you to.
808   o Misc features:
809     - Rewrite address "serifos.exit" to "externalIP.serifos.exit"
810       rather than just rejecting it.
811     - If our clock jumps forward by 100 seconds or more, assume something
812       has gone wrong with our network and abandon all not-yet-used circs.
813     - When an application is using socks5, give him the whole variety of
814       potential socks5 responses (connect refused, host unreachable, etc),
815       rather than just "success" or "failure".
816     - A more sane version numbering system. See
817       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
818     - Change version parsing logic: a version is "obsolete" if it is not
819       recommended and (1) there is a newer recommended version in the
820       same series, or (2) there are no recommended versions in the same
821       series, but there are some recommended versions in a newer series.
822       A version is "new" if it is newer than any recommended version in
823       the same series.
824     - Report HTTP reasons to client when getting a response from directory
825       servers -- so you can actually know what went wrong.
826     - Reject odd-looking addresses at the client (e.g. addresses that
827       contain a colon), rather than having the server drop them because
828       they're malformed.
829     - Stop publishing socksport in the directory, since it's not
830       actually meant to be public. For compatibility, publish a 0 there
831       for now.
832     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
833       cookies to disk and doesn't log each web request to disk. (Thanks
834       to Brett Carrington for pointing this out.)
835     - Add OSX uninstall instructions. An actual uninstall script will
836       come later.
837     - Add "opt hibernating 1" to server descriptor to make it clearer
838       whether the server is hibernating.
841 Changes in version 0.0.9.10 - 2005-06-16
842   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
843     - Refuse relay cells that claim to have a length larger than the
844       maximum allowed. This prevents a potential attack that could read
845       arbitrary memory (e.g. keys) from an exit server's process.
848 Changes in version 0.0.9.9 - 2005-04-23
849   o Bugfixes on 0.0.9.x:
850     - If unofficial Tor clients connect and send weird TLS certs, our
851       Tor server triggers an assert. This release contains a minimal
852       backport from the broader fix that we put into 0.1.0.4-rc.
855 Changes in version 0.0.9.8 - 2005-04-07
856   o Bugfixes on 0.0.9.x:
857     - We have a bug that I haven't found yet. Sometimes, very rarely,
858       cpuworkers get stuck in the 'busy' state, even though the cpuworker
859       thinks of itself as idle. This meant that no new circuits ever got
860       established. Here's a workaround to kill any cpuworker that's been
861       busy for more than 100 seconds.
864 Changes in version 0.0.9.7 - 2005-04-01
865   o Bugfixes on 0.0.9.x:
866     - Fix another race crash bug (thanks to Glenn Fink for reporting).
867     - Compare identity to identity, not to nickname, when extending to
868       a router not already in the directory. This was preventing us from
869       extending to unknown routers. Oops.
870     - Make sure to create OS X Tor user in <500 range, so we aren't
871       creating actual system users.
872     - Note where connection-that-hasn't-sent-end was marked, and fix
873       a few really loud instances of this harmless bug (it's fixed more
874       in 0.1.0.x).
877 Changes in version 0.0.9.6 - 2005-03-24
878   o Bugfixes on 0.0.9.x (crashes and asserts):
879     - Add new end stream reasons to maintainance branch. Fix bug where
880       reason (8) could trigger an assert.  Prevent bug from recurring.
881     - Apparently win32 stat wants paths to not end with a slash.
882     - Fix assert triggers in assert_cpath_layer_ok(), where we were
883       blowing away the circuit that conn->cpath_layer points to, then
884       checking to see if the circ is well-formed. Backport check to make
885       sure we dont use the cpath on a closed connection.
886     - Prevent circuit_resume_edge_reading_helper() from trying to package
887       inbufs for marked-for-close streams.
888     - Don't crash on hup if your options->address has become unresolvable.
889     - Some systems (like OS X) sometimes accept() a connection and tell
890       you the remote host is 0.0.0.0:0. If this happens, due to some
891       other mis-features, we get confused; so refuse the conn for now.
893   o Bugfixes on 0.0.9.x (other):
894     - Fix harmless but scary "Unrecognized content encoding" warn message.
895     - Add new stream error reason: TORPROTOCOL reason means "you are not
896       speaking a version of Tor I understand; say bye-bye to your stream."
897     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
898       into the future, now that we are more tolerant of skew. This
899       resolves a bug where a Tor server would refuse to cache a directory
900       because all the directories it gets are too far in the future;
901       yet the Tor server never logs any complaints about clock skew.
902     - Mac packaging magic: make man pages useable, and do not overwrite
903       existing torrc files.
904     - Make OS X log happily to /var/log/tor/tor.log
907 Changes in version 0.0.9.5 - 2005-02-22
908   o Bugfixes on 0.0.9.x:
909     - Fix an assert race at exit nodes when resolve requests fail.
910     - Stop picking unverified dir mirrors--it only leads to misery.
911     - Patch from Matt Edman to make NT services work better. Service
912       support is still not compiled into the executable by default.
913     - Patch from Dmitri Bely so the Tor service runs better under
914       the win32 SYSTEM account.
915     - Make tor-resolve actually work (?) on Win32.
916     - Fix a sign bug when getrlimit claims to have 4+ billion
917       file descriptors available.
918     - Stop refusing to start when bandwidthburst == bandwidthrate.
919     - When create cells have been on the onion queue more than five
920       seconds, just send back a destroy and take them off the list.
923 Changes in version 0.0.9.4 - 2005-02-03
924   o Bugfixes on 0.0.9:
925     - Fix an assert bug that took down most of our servers: when
926       a server claims to have 1 GB of bandwidthburst, don't
927       freak out.
928     - Don't crash as badly if we have spawned the max allowed number
929       of dnsworkers, or we're out of file descriptors.
930     - Block more file-sharing ports in the default exit policy.
931     - MaxConn is now automatically set to the hard limit of max
932       file descriptors we're allowed (ulimit -n), minus a few for
933       logs, etc.
934     - Give a clearer message when servers need to raise their
935       ulimit -n when they start running out of file descriptors.
936     - SGI Compatibility patches from Jan Schaumann.
937     - Tolerate a corrupt cached directory better.
938     - When a dirserver hasn't approved your server, list which one.
939     - Go into soft hibernation after 95% of the bandwidth is used,
940       not 99%. This is especially important for daily hibernators who
941       have a small accounting max. Hopefully it will result in fewer
942       cut connections when the hard hibernation starts.
943     - Load-balance better when using servers that claim more than
944       800kB/s of capacity.
945     - Make NT services work (experimental, only used if compiled in).
948 Changes in version 0.0.9.3 - 2005-01-21
949   o Bugfixes on 0.0.9:
950     - Backport the cpu use fixes from main branch, so busy servers won't
951       need as much processor time.
952     - Work better when we go offline and then come back, or when we
953       run Tor at boot before the network is up. We do this by
954       optimistically trying to fetch a new directory whenever an
955       application request comes in and we think we're offline -- the
956       human is hopefully a good measure of when the network is back.
957     - Backport some minimal hidserv bugfixes: keep rend circuits open as
958       long as you keep using them; actually publish hidserv descriptors
959       shortly after they change, rather than waiting 20-40 minutes.
960     - Enable Mac startup script by default.
961     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
962     - When you update AllowUnverifiedNodes or FirewallPorts via the
963       controller's setconf feature, we were always appending, never
964       resetting.
965     - When you update HiddenServiceDir via setconf, it was screwing up
966       the order of reading the lines, making it fail.
967     - Do not rewrite a cached directory back to the cache; otherwise we
968       will think it is recent and not fetch a newer one on startup.
969     - Workaround for webservers that lie about Content-Encoding: Tor
970       now tries to autodetect compressed directories and compression
971       itself. This lets us Proxypass dir fetches through apache.
974 Changes in version 0.0.9.2 - 2005-01-04
975   o Bugfixes on 0.0.9 (crashes and asserts):
976     - Fix an assert on startup when the disk is full and you're logging
977       to a file.
978     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
979       style address, then we'd crash.
980     - Fix an assert trigger when the running-routers string we get from
981       a dirserver is broken.
982     - Make worker threads start and run on win32. Now win32 servers
983       may work better.
984     - Bandaid (not actually fix, but now it doesn't crash) an assert
985       where the dns worker dies mysteriously and the main Tor process
986       doesn't remember anything about the address it was resolving.
988   o Bugfixes on 0.0.9 (Win32):
989     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
990       name out of the warning/assert messages.
991     - Fix a superficial "unhandled error on read" bug on win32.
992     - The win32 installer no longer requires a click-through for our
993       license, since our Free Software license grants rights but does not
994       take any away.
995     - Win32: When connecting to a dirserver fails, try another one
996       immediately. (This was already working for non-win32 Tors.)
997     - Stop trying to parse $HOME on win32 when hunting for default
998       DataDirectory.
999     - Make tor-resolve.c work on win32 by calling network_init().
1001   o Bugfixes on 0.0.9 (other):
1002     - Make 0.0.9.x build on Solaris again.
1003     - Due to a fencepost error, we were blowing away the \n when reporting
1004       confvalue items in the controller. So asking for multiple config
1005       values at once couldn't work.
1006     - When listing circuits that are pending on an opening OR connection,
1007       if we're an OR we were listing circuits that *end* at us as
1008       being pending on every listener, dns/cpu worker, etc. Stop that.
1009     - Dirservers were failing to create 'running-routers' or 'directory'
1010       strings if we had more than some threshold of routers. Fix them so
1011       they can handle any number of routers.
1012     - Fix a superficial "Duplicate mark for close" bug.
1013     - Stop checking for clock skew for OR connections, even for servers.
1014     - Fix a fencepost error that was chopping off the last letter of any
1015       nickname that is the maximum allowed nickname length.
1016     - Update URLs in log messages so they point to the new website.
1017     - Fix a potential problem in mangling server private keys while
1018       writing to disk (not triggered yet, as far as we know).
1019     - Include the licenses for other free software we include in Tor,
1020       now that we're shipping binary distributions more regularly.
1023 Changes in version 0.0.9.1 - 2004-12-15
1024   o Bugfixes on 0.0.9:
1025     - Make hibernation actually work.
1026     - Make HashedControlPassword config option work.
1027     - When we're reporting event circuit status to a controller,
1028       don't use the stream status code.
1031 Changes in version 0.0.9 - 2004-12-12
1032   o Bugfixes on 0.0.8.1 (Crashes and asserts):
1033     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
1034       write() call will fail and we handle it there.
1035     - When we run out of disk space, or other log writing error, don't
1036       crash. Just stop logging to that log and continue.
1037     - Fix isspace() and friends so they still make Solaris happy
1038       but also so they don't trigger asserts on win32.
1039     - Fix assert failure on malformed socks4a requests.
1040     - Fix an assert bug where a hidden service provider would fail if
1041       the first hop of his rendezvous circuit was down.
1042     - Better handling of size_t vs int, so we're more robust on 64
1043       bit platforms.
1045   o Bugfixes on 0.0.8.1 (Win32):
1046     - Make windows sockets actually non-blocking (oops), and handle
1047       win32 socket errors better.
1048     - Fix parse_iso_time on platforms without strptime (eg win32).
1049     - win32: when being multithreaded, leave parent fdarray open.
1050     - Better handling of winsock includes on non-MSV win32 compilers.
1051     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
1052       happier.
1053     - Make unit tests work on win32.
1055   o Bugfixes on 0.0.8.1 (Path selection and streams):
1056     - Calculate timeout for waiting for a connected cell from the time
1057       we sent the begin cell, not from the time the stream started. If
1058       it took a long time to establish the circuit, we would time out
1059       right after sending the begin cell.
1060     - Fix router_compare_addr_to_addr_policy: it was not treating a port
1061       of * as always matching, so we were picking reject *:* nodes as
1062       exit nodes too. Oops.
1063     - When read() failed on a stream, we would close it without sending
1064       back an end. So 'connection refused' would simply be ignored and
1065       the user would get no response.
1066     - Stop a sigpipe: when an 'end' cell races with eof from the app,
1067       we shouldn't hold-open-until-flush if the eof arrived first.
1068     - Let resolve conns retry/expire also, rather than sticking around
1069       forever.
1070     - Fix more dns related bugs: send back resolve_failed and end cells
1071       more reliably when the resolve fails, rather than closing the
1072       circuit and then trying to send the cell. Also attach dummy resolve
1073       connections to a circuit *before* calling dns_resolve(), to fix
1074       a bug where cached answers would never be sent in RESOLVED cells.
1076   o Bugfixes on 0.0.8.1 (Circuits):
1077     - Finally fix a bug that's been plaguing us for a year:
1078       With high load, circuit package window was reaching 0. Whenever
1079       we got a circuit-level sendme, we were reading a lot on each
1080       socket, but only writing out a bit. So we would eventually reach
1081       eof. This would be noticed and acted on even when there were still
1082       bytes sitting in the inbuf.
1083     - Use identity comparison, not nickname comparison, to choose which
1084       half of circuit-ID-space each side gets to use. This is needed
1085       because sometimes we think of a router as a nickname, and sometimes
1086       as a hex ID, and we can't predict what the other side will do.
1088   o Bugfixes on 0.0.8.1 (Other):
1089     - Fix a whole slew of memory leaks.
1090     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
1091     - If we are using select, make sure we stay within FD_SETSIZE.
1092     - When poll() is interrupted, we shouldn't believe the revents values.
1093     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
1094       and smartlist_len, which are two major profiling offenders.
1095     - If do_hup fails, actually notice.
1096     - Flush the log file descriptor after we print "Tor opening log file",
1097       so we don't see those messages days later.
1098     - Hidden service operators now correctly handle version 1 style
1099       INTRODUCE1 cells (nobody generates them still, so not a critical
1100       bug).
1101     - Handle more errnos from accept() without closing the listener.
1102       Some OpenBSD machines were closing their listeners because
1103       they ran out of file descriptors.
1104     - Some people had wrapped their tor client/server in a script
1105       that would restart it whenever it died. This did not play well
1106       with our "shut down if your version is obsolete" code. Now people
1107       don't fetch a new directory if their local cached version is
1108       recent enough.
1109     - Make our autogen.sh work on ksh as well as bash.
1110     - Better torrc example lines for dirbindaddress and orbindaddress.
1111     - Improved bounds checking on parsed ints (e.g. config options and
1112       the ones we find in directories.)
1113     - Stop using separate defaults for no-config-file and
1114       empty-config-file. Now you have to explicitly turn off SocksPort,
1115       if you don't want it open.
1116     - We were starting to daemonize before we opened our logs, so if
1117       there were any problems opening logs, we would complain to stderr,
1118       which wouldn't work, and then mysteriously exit.
1119     - If a verified OR connects to us before he's uploaded his descriptor,
1120       or we verify him and hup but he still has the original TLS
1121       connection, then conn->nickname is still set like he's unverified.
1123   o Code security improvements, inspired by Ilja:
1124     - tor_snprintf wrapper over snprintf with consistent (though not C99)
1125       overflow behavior.
1126     - Replace sprintf with tor_snprintf. (I think they were all safe, but
1127       hey.)
1128     - Replace strcpy/strncpy with strlcpy in more places.
1129     - Avoid strcat; use tor_snprintf or strlcat instead.
1131   o Features (circuits and streams):
1132     - New circuit building strategy: keep a list of ports that we've
1133       used in the past 6 hours, and always try to have 2 circuits open
1134       or on the way that will handle each such port. Seed us with port
1135       80 so web users won't complain that Tor is "slow to start up".
1136     - Make kill -USR1 dump more useful stats about circuits.
1137     - When warning about retrying or giving up, print the address, so
1138       the user knows which one it's talking about.
1139     - If you haven't used a clean circuit in an hour, throw it away,
1140       just to be on the safe side. (This means after 6 hours a totally
1141       unused Tor client will have no circuits open.)
1142     - Support "foo.nickname.exit" addresses, to let Alice request the
1143       address "foo" as viewed by exit node "nickname". Based on a patch
1144       from Geoff Goodell.
1145     - If your requested entry or exit node has advertised bandwidth 0,
1146       pick it anyway.
1147     - Be more greedy about filling up relay cells -- we try reading again
1148       once we've processed the stuff we read, in case enough has arrived
1149       to fill the last cell completely.
1150     - Refuse application socks connections to port 0.
1151     - Use only 0.0.9pre1 and later servers for resolve cells.
1153   o Features (bandwidth):
1154     - Hibernation: New config option "AccountingMax" lets you
1155       set how many bytes per month (in each direction) you want to
1156       allow your server to consume. Rather than spreading those
1157       bytes out evenly over the month, we instead hibernate for some
1158       of the month and pop up at a deterministic time, work until
1159       the bytes are consumed, then hibernate again. Config option
1160       "MonthlyAccountingStart" lets you specify which day of the month
1161       your billing cycle starts on.
1162     - Implement weekly/monthly/daily accounting: now you specify your
1163       hibernation properties by
1164       AccountingMax N bytes|KB|MB|GB|TB
1165       AccountingStart day|week|month [day] HH:MM
1166         Defaults to "month 1 0:00".
1167     - Let bandwidth and interval config options be specified as 5 bytes,
1168       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
1170   o Features (directories):
1171     - New "router-status" line in directory, to better bind each verified
1172       nickname to its identity key.
1173     - Clients can ask dirservers for /dir.z to get a compressed version
1174       of the directory. Only works for servers running 0.0.9, of course.
1175     - Make clients cache directories and use them to seed their router
1176       lists at startup. This means clients have a datadir again.
1177     - Respond to content-encoding headers by trying to uncompress as
1178       appropriate.
1179     - Clients and servers now fetch running-routers; cache
1180       running-routers; compress running-routers; serve compressed
1181       running-routers.z
1182     - Make moria2 advertise a dirport of 80, so people behind firewalls
1183       will be able to get a directory.
1184     - Http proxy support
1185       - Dirservers translate requests for http://%s:%d/x to /x
1186       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
1187         be routed through this host.
1188       - Clients ask for /tor/x rather than /x for new enough dirservers.
1189         This way we can one day coexist peacefully with apache.
1190       - Clients specify a "Host: %s%d" http header, to be compatible
1191         with more proxies, and so running squid on an exit node can work.
1192     - Protect dirservers from overzealous descriptor uploading -- wait
1193       10 seconds after directory gets dirty, before regenerating.
1195   o Features (packages and install):
1196     - Add NSI installer contributed by J Doe.
1197     - Apply NT service patch from Osamu Fujino. Still needs more work.
1198     - Commit VC6 and VC7 workspace/project files.
1199     - Commit a tor.spec for making RPM files, with help from jbash.
1200     - Add contrib/torctl.in contributed by Glenn Fink.
1201     - Make expand_filename handle ~ and ~username.
1202     - Use autoconf to enable largefile support where necessary. Use
1203       ftello where available, since ftell can fail at 2GB.
1204     - Ship src/win32/ in the tarball, so people can use it to build.
1205     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
1206       is broken.
1208   o Features (ui controller):
1209     - Control interface: a separate program can now talk to your
1210       client/server over a socket, and get/set config options, receive
1211       notifications of circuits and streams starting/finishing/dying,
1212       bandwidth used, etc. The next step is to get some GUIs working.
1213       Let us know if you want to help out. See doc/control-spec.txt .
1214     - Ship a contrib/tor-control.py as an example script to interact
1215       with the control port.
1216     - "tor --hash-password zzyxz" will output a salted password for
1217       use in authenticating to the control interface.
1218     - Implement the control-spec's SAVECONF command, to write your
1219       configuration to torrc.
1220     - Get cookie authentication for the controller closer to working.
1221     - When set_conf changes our server descriptor, upload a new copy.
1222       But don't upload it too often if there are frequent changes.
1224   o Features (config and command-line):
1225     - Deprecate unofficial config option abbreviations, and abbreviations
1226       not on the command line.
1227     - Configuration infrastructure support for warning on obsolete
1228       options.
1229     - Give a slightly more useful output for "tor -h".
1230     - Break DirFetchPostPeriod into:
1231       - DirFetchPeriod for fetching full directory,
1232       - StatusFetchPeriod for fetching running-routers,
1233       - DirPostPeriod for posting server descriptor,
1234       - RendPostPeriod for posting hidden service descriptors.
1235     - New log format in config:
1236       "Log minsev[-maxsev] stdout|stderr|syslog" or
1237       "Log minsev[-maxsev] file /var/foo"
1238     - DirPolicy config option, to let people reject incoming addresses
1239       from their dirserver.
1240     - "tor --list-fingerprint" will list your identity key fingerprint
1241       and then exit.
1242     - Make tor --version --version dump the cvs Id of every file.
1243     - New 'MyFamily nick1,...' config option for a server to
1244       specify other servers that shouldn't be used in the same circuit
1245       with it. Only believed if nick1 also specifies us.
1246     - New 'NodeFamily nick1,nick2,...' config option for a client to
1247       specify nodes that it doesn't want to use in the same circuit.
1248     - New 'Redirectexit pattern address:port' config option for a
1249       server to redirect exit connections, e.g. to a local squid.
1250     - Add "pass" target for RedirectExit, to make it easier to break
1251       out of a sequence of RedirectExit rules.
1252     - Make the dirservers file obsolete.
1253       - Include a dir-signing-key token in directories to tell the
1254         parsing entity which key is being used to sign.
1255       - Remove the built-in bulky default dirservers string.
1256       - New config option "Dirserver %s:%d [fingerprint]", which can be
1257         repeated as many times as needed. If no dirservers specified,
1258         default to moria1,moria2,tor26.
1259       - Make 'Routerfile' config option obsolete.
1260     - Discourage people from setting their dirfetchpostperiod more often
1261       than once per minute.
1263   o Features (other):
1264     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
1265       get back to normal.)
1266     - Accept *:706 (silc) in default exit policy.
1267     - Implement new versioning format for post 0.1.
1268     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
1269       log more informatively.
1270     - Check clock skew for verified servers, but allow unverified
1271       servers and clients to have any clock skew.
1272     - Make sure the hidden service descriptors are at a random offset
1273       from each other, to hinder linkability.
1274     - Clients now generate a TLS cert too, in preparation for having
1275       them act more like real nodes.
1276     - Add a pure-C tor-resolve implementation.
1277     - Use getrlimit and friends to ensure we can reach MaxConn (currently
1278       1024) file descriptors.
1279     - Raise the max dns workers from 50 to 100.
1282 Changes in version 0.0.8.1 - 2004-10-13
1283   o Bugfixes:
1284     - Fix a seg fault that can be triggered remotely for Tor
1285       clients/servers with an open dirport.
1286     - Fix a rare assert trigger, where routerinfos for entries in
1287       our cpath would expire while we're building the path.
1288     - Fix a bug in OutboundBindAddress so it (hopefully) works.
1289     - Fix a rare seg fault for people running hidden services on
1290       intermittent connections.
1291     - Fix a bug in parsing opt keywords with objects.
1292     - Fix a stale pointer assert bug when a stream detaches and
1293       reattaches.
1294     - Fix a string format vulnerability (probably not exploitable)
1295       in reporting stats locally.
1296     - Fix an assert trigger: sometimes launching circuits can fail
1297       immediately, e.g. because too many circuits have failed recently.
1298     - Fix a compile warning on 64 bit platforms.
1301 Changes in version 0.0.8 - 2004-08-25
1302   o Bugfixes:
1303     - Made our unit tests compile again on OpenBSD 3.5, and tor
1304       itself compile again on OpenBSD on a sparc64.
1305     - We were neglecting milliseconds when logging on win32, so
1306       everything appeared to happen at the beginning of each second.
1307     - Check directory signature _before_ you decide whether you're
1308       you're running an obsolete version and should exit.
1309     - Check directory signature _before_ you parse the running-routers
1310       list to decide who's running.
1311     - Check return value of fclose while writing to disk, so we don't
1312       end up with broken files when servers run out of disk space.
1313     - Port it to SunOS 5.9 / Athena
1314     - Fix two bugs in saving onion keys to disk when rotating, so
1315       hopefully we'll get fewer people using old onion keys.
1316     - Remove our mostly unused -- and broken -- hex_encode()
1317       function. Use base16_encode() instead. (Thanks to Timo Lindfors
1318       for pointing out this bug.)
1319     - Only pick and establish intro points after we've gotten a
1320       directory.
1321     - Fix assert triggers: if the other side returns an address 0.0.0.0,
1322       don't put it into the client dns cache.
1323     - If a begin failed due to exit policy, but we believe the IP
1324       address should have been allowed, switch that router to exitpolicy
1325       reject *:* until we get our next directory.
1327   o Protocol changes:
1328     - 'Extend' relay cell payloads now include the digest of the
1329       intended next hop's identity key. Now we can verify that we're
1330       extending to the right router, and also extend to routers we
1331       hadn't heard of before.
1333   o Features:
1334     - Tor nodes can now act as relays (with an advertised ORPort)
1335       without being manually verified by the dirserver operators.
1336       - Uploaded descriptors of unverified routers are now accepted
1337         by the dirservers, and included in the directory.
1338       - Verified routers are listed by nickname in the running-routers
1339         list; unverified routers are listed as "$<fingerprint>".
1340       - We now use hash-of-identity-key in most places rather than
1341         nickname or addr:port, for improved security/flexibility.
1342       - AllowUnverifiedNodes config option to let circuits choose no-name
1343         routers in entry,middle,exit,introduction,rendezvous positions.
1344         Allow middle and rendezvous positions by default.
1345       - When picking unverified routers, skip those with low uptime and/or
1346         low bandwidth, depending on what properties you care about.
1347       - ClientOnly option for nodes that never want to become servers.
1348     - Directory caching.
1349       - "AuthoritativeDir 1" option for the official dirservers.
1350       - Now other nodes (clients and servers) will cache the latest
1351         directory they've pulled down.
1352       - They can enable their DirPort to serve it to others.
1353       - Clients will pull down a directory from any node with an open
1354         DirPort, and check the signature/timestamp correctly.
1355       - Authoritative dirservers now fetch directories from other
1356         authdirservers, to stay better synced.
1357       - Running-routers list tells who's down also, along with noting
1358         if they're verified (listed by nickname) or unverified (listed
1359         by hash-of-key).
1360       - Allow dirservers to serve running-router list separately.
1361         This isn't used yet.
1362       - You can now fetch $DIRURL/running-routers to get just the
1363         running-routers line, not the whole descriptor list. (But
1364         clients don't use this yet.)
1365     - Clients choose nodes proportional to advertised bandwidth.
1366     - Clients avoid using nodes with low uptime as introduction points.
1367     - Handle servers with dynamic IP addresses: don't just replace
1368       options->Address with the resolved one at startup, and
1369       detect our address right before we make a routerinfo each time.
1370     - 'FascistFirewall' option to pick dirservers and ORs on specific
1371       ports; plus 'FirewallPorts' config option to tell FascistFirewall
1372       which ports are open. (Defaults to 80,443)
1373     - Try other dirservers immediately if the one you try is down. This
1374       should tolerate down dirservers better now.
1375     - ORs connect-on-demand to other ORs
1376       - If you get an extend cell to an OR you're not connected to,
1377         connect, handshake, and forward the create cell.
1378       - The authoritative dirservers stay connected to everybody,
1379         and everybody stays connected to 0.0.7 servers, but otherwise
1380         clients/servers expire unused connections after 5 minutes.
1381     - When servers get a sigint, they delay 30 seconds (refusing new
1382       connections) then exit. A second sigint causes immediate exit.
1383     - File and name management:
1384       - Look for .torrc if no CONFDIR "torrc" is found.
1385       - If no datadir is defined, then choose, make, and secure ~/.tor
1386         as datadir.
1387       - If torrc not found, exitpolicy reject *:*.
1388       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
1389       - If no nickname is defined, derive default from hostname.
1390       - Rename secret key files, e.g. identity.key -> secret_id_key,
1391         to discourage people from mailing their identity key to tor-ops.
1392     - Refuse to build a circuit before the directory has arrived --
1393       it won't work anyway, since you won't know the right onion keys
1394       to use.
1395     - Parse tor version numbers so we can do an is-newer-than check
1396       rather than an is-in-the-list check.
1397     - New socks command 'resolve', to let us shim gethostbyname()
1398       locally.
1399       - A 'tor_resolve' script to access the socks resolve functionality.
1400       - A new socks-extensions.txt doc file to describe our
1401         interpretation and extensions to the socks protocols.
1402     - Add a ContactInfo option, which gets published in descriptor.
1403     - Write tor version at the top of each log file
1404     - New docs in the tarball:
1405       - tor-doc.html.
1406       - Document that you should proxy your SSL traffic too.
1407     - Log a warning if the user uses an unsafe socks variant, so people
1408       are more likely to learn about privoxy or socat.
1409     - Log a warning if you're running an unverified server, to let you
1410       know you might want to get it verified.
1411     - Change the default exit policy to reject the default edonkey,
1412       kazaa, gnutella ports.
1413     - Add replace_file() to util.[ch] to handle win32's rename().
1414     - Publish OR uptime in descriptor (and thus in directory) too.
1415     - Remember used bandwidth (both in and out), and publish 15-minute
1416       snapshots for the past day into our descriptor.
1417     - Be more aggressive about trying to make circuits when the network
1418       has changed (e.g. when you unsuspend your laptop).
1419     - Check for time skew on http headers; report date in response to
1420       "GET /".
1421     - If the entrynode config line has only one node, don't pick it as
1422       an exitnode.
1423     - Add strict{entry|exit}nodes config options. If set to 1, then
1424       we refuse to build circuits that don't include the specified entry
1425       or exit nodes.
1426     - OutboundBindAddress config option, to bind to a specific
1427       IP address for outgoing connect()s.
1428     - End truncated log entries (e.g. directories) with "[truncated]".
1431 Changes in version 0.0.7.3 - 2004-08-12
1432   o Stop dnsworkers from triggering an assert failure when you
1433     ask them to resolve the host "".
1436 Changes in version 0.0.7.2 - 2004-07-07
1437   o A better fix for the 0.0.0.0 problem, that will hopefully
1438     eliminate the remaining related assertion failures.
1441 Changes in version 0.0.7.1 - 2004-07-04
1442   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
1443     since internally we use 0.0.0.0 to signify "not yet resolved".
1446 Changes in version 0.0.7 - 2004-06-07
1447   o Fixes for crashes and other obnoxious bugs:
1448     - Fix an epipe bug: sometimes when directory connections failed
1449       to connect, we would give them a chance to flush before closing
1450       them.
1451     - When we detached from a circuit because of resolvefailed, we
1452       would immediately try the same circuit twice more, and then
1453       give up on the resolve thinking we'd tried three different
1454       exit nodes.
1455     - Limit the number of intro circuits we'll attempt to build for a
1456       hidden service per 15-minute period.
1457     - Check recommended-software string *early*, before actually parsing
1458       the directory. Thus we can detect an obsolete version and exit,
1459       even if the new directory format doesn't parse.
1460   o Fixes for security bugs:
1461     - Remember which nodes are dirservers when you startup, and if a
1462       random OR enables his dirport, don't automatically assume he's
1463       a trusted dirserver.
1464   o Other bugfixes:
1465     - Directory connections were asking the wrong poll socket to
1466       start writing, and not asking themselves to start writing.
1467     - When we detached from a circuit because we sent a begin but
1468       didn't get a connected, we would use it again the first time;
1469       but after that we would correctly switch to a different one.
1470     - Stop warning when the first onion decrypt attempt fails; they
1471       will sometimes legitimately fail now that we rotate keys.
1472     - Override unaligned-access-ok check when $host_cpu is ia64 or
1473       arm. Apparently they allow it but the kernel whines.
1474     - Dirservers try to reconnect periodically too, in case connections
1475       have failed.
1476     - Fix some memory leaks in directory servers.
1477     - Allow backslash in Win32 filenames.
1478     - Made Tor build complain-free on FreeBSD, hopefully without
1479       breaking other BSD builds. We'll see.
1480     - Check directory signatures based on name of signer, not on whom
1481       we got the directory from. This will let us cache directories more
1482       easily.
1483     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
1484       settings too.
1485   o Features:
1486     - Doxygen markup on all functions and global variables.
1487     - Make directory functions update routerlist, not replace it. So
1488       now directory disagreements are not so critical a problem.
1489     - Remove the upper limit on number of descriptors in a dirserver's
1490       directory (not that we were anywhere close).
1491     - Allow multiple logfiles at different severity ranges.
1492     - Allow *BindAddress to specify ":port" rather than setting *Port
1493       separately. Allow multiple instances of each BindAddress config
1494       option, so you can bind to multiple interfaces if you want.
1495     - Allow multiple exit policy lines, which are processed in order.
1496       Now we don't need that huge line with all the commas in it.
1497     - Enable accept/reject policies on SOCKS connections, so you can bind
1498       to 0.0.0.0 but still control who can use your OP.
1499     - Updated the man page to reflect these features.
1502 Changes in version 0.0.6.2 - 2004-05-16
1503   o Our integrity-checking digest was checking only the most recent cell,
1504     not the previous cells like we'd thought.
1505     Thanks to Stefan Mark for finding the flaw!
1508 Changes in version 0.0.6.1 - 2004-05-06
1509   o Fix two bugs in our AES counter-mode implementation (this affected
1510     onion-level stream encryption, but not TLS-level). It turns
1511     out we were doing something much more akin to a 16-character
1512     polyalphabetic cipher. Oops.
1513     Thanks to Stefan Mark for finding the flaw!
1514   o Retire moria3 as a directory server, and add tor26 as a directory
1515     server.
1518 Changes in version 0.0.6 - 2004-05-02
1519   o Features:
1520     - Hidden services and rendezvous points are implemented. Go to
1521       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
1522       hidden services. (This only works via a socks4a proxy such as
1523       Privoxy, and currently it's quite slow.)
1524     - We now rotate link (tls context) keys and onion keys.
1525     - CREATE cells now include oaep padding, so you can tell
1526       if you decrypted them correctly.
1527     - Retry stream correctly when we fail to connect because of
1528       exit-policy-reject (should try another) or can't-resolve-address.
1529     - When we hup a dirserver and we've *removed* a server from the
1530       approved-routers list, now we remove that server from the
1531       in-memory directories too.
1532     - Add bandwidthburst to server descriptor.
1533     - Directories now say which dirserver signed them.
1534     - Use a tor_assert macro that logs failed assertions too.
1535     - Since we don't support truncateds much, don't bother sending them;
1536       just close the circ.
1537     - Fetch randomness from /dev/urandom better (not via fopen/fread)
1538     - Better debugging for tls errors
1539     - Set Content-Type on the directory and hidserv descriptor.
1540     - Remove IVs from cipher code, since AES-ctr has none.
1541   o Bugfixes:
1542     - Fix an assert trigger for exit nodes that's been plaguing us since
1543       the days of 0.0.2prexx (thanks weasel!)
1544     - Fix a bug where we were closing tls connections intermittently.
1545       It turns out openssl keeps its errors around -- so if an error
1546       happens, and you don't ask about it, and then another openssl
1547       operation happens and succeeds, and you ask if there was an error,
1548       it tells you about the first error.
1549     - Fix a bug that's been lurking since 27 may 03 (!)
1550       When passing back a destroy cell, we would use the wrong circ id.
1551     - Don't crash if a conn that sent a begin has suddenly lost its circuit.
1552     - Some versions of openssl have an SSL_pending function that erroneously
1553       returns bytes when there is a non-application record pending.
1554     - Win32 fixes. Tor now compiles on win32 with no warnings/errors.
1555       o We were using an array of length zero in a few places.
1556       o Win32's gethostbyname can't resolve an IP to an IP.
1557       o Win32's close can't close a socket.
1558       o Handle windows socket errors correctly.
1559   o Portability:
1560     - check for <sys/limits.h> so we build on FreeBSD again, and
1561       <machine/limits.h> for NetBSD.
1564 Changes in version 0.0.5 - 2004-03-30
1565   o Install torrc as torrc.sample -- we no longer clobber your
1566     torrc. (Woo!)
1567   o Fix mangled-state bug in directory fetching (was causing sigpipes).
1568   o Only build circuits after we've fetched the directory: clients were
1569     using only the directory servers before they'd fetched a directory.
1570     This also means longer startup time; so it goes.
1571   o Fix an assert trigger where an OP would fail to handshake, and we'd
1572     expect it to have a nickname.
1573   o Work around a tsocks bug: do a socks reject when AP connection dies
1574     early, else tsocks goes into an infinite loop.
1575   o Hold socks connection open until reply is flushed (if possible)
1576   o Make exit nodes resolve IPs to IPs immediately, rather than asking
1577     the dns farm to do it.
1578   o Fix c99 aliasing warnings in rephist.c
1579   o Don't include server descriptors that are older than 24 hours in the
1580     directory.
1581   o Give socks 'reject' replies their whole 15s to attempt to flush,
1582     rather than seeing the 60s timeout and assuming the flush had failed.
1583   o Clean automake droppings from the cvs repository
1584   o Add in a 'notice' log level for things the operator should hear
1585     but that aren't warnings
1588 Changes in version 0.0.4 - 2004-03-26
1589   o When connecting to a dirserver or OR and the network is down,
1590     we would crash.
1593 Changes in version 0.0.3 - 2004-03-26
1594   o Warn and fail if server chose a nickname with illegal characters
1595   o Port to Solaris and Sparc:
1596     - include missing header fcntl.h
1597     - have autoconf find -lsocket -lnsl automatically
1598     - deal with hardware word alignment
1599     - make uname() work (solaris has a different return convention)
1600     - switch from using signal() to sigaction()
1601   o Preliminary work on reputation system:
1602     - Keep statistics on success/fail of connect attempts; they're published
1603       by kill -USR1 currently.
1604     - Add a RunTesting option to try to learn link state by creating test
1605       circuits, even when SocksPort is off.
1606     - Remove unused open circuits when there are too many.
1609 Changes in version 0.0.2 - 2004-03-19
1610     - Include strlcpy and strlcat for safer string ops
1611     - define INADDR_NONE so we compile (but still not run) on solaris
1614 Changes in version 0.0.2pre27 - 2004-03-14
1615   o Bugfixes:
1616     - Allow internal tor networks (we were rejecting internal IPs,
1617       now we allow them if they're set explicitly).
1618     - And fix a few endian issues.
1621 Changes in version 0.0.2pre26 - 2004-03-14
1622   o New features:
1623     - If a stream times out after 15s without a connected cell, don't
1624       try that circuit again: try a new one.
1625     - Retry streams at most 4 times. Then give up.
1626     - When a dirserver gets a descriptor from an unknown router, it
1627       logs its fingerprint (so the dirserver operator can choose to
1628       accept it even without mail from the server operator).
1629     - Inform unapproved servers when we reject their descriptors.
1630     - Make tor build on Windows again. It works as a client, who knows
1631       about as a server.
1632     - Clearer instructions in the torrc for how to set up a server.
1633     - Be more efficient about reading fd's when our global token bucket
1634       (used for rate limiting) becomes empty.
1635   o Bugfixes:
1636     - Stop asserting that computers always go forward in time. It's
1637       simply not true.
1638     - When we sent a cell (e.g. destroy) and then marked an OR connection
1639       expired, we might close it before finishing a flush if the other
1640       side isn't reading right then.
1641     - Don't allow dirservers to start if they haven't defined
1642       RecommendedVersions
1643     - We were caching transient dns failures. Oops.
1644     - Prevent servers from publishing an internal IP as their address.
1645     - Address a strcat vulnerability in circuit.c
1648 Changes in version 0.0.2pre25 - 2004-03-04
1649   o New features:
1650     - Put the OR's IP in its router descriptor, not its fqdn. That way
1651       we'll stop being stalled by gethostbyname for nodes with flaky dns,
1652       e.g. poblano.
1653   o Bugfixes:
1654     - If the user typed in an address that didn't resolve, the server
1655       crashed.
1658 Changes in version 0.0.2pre24 - 2004-03-03
1659   o Bugfixes:
1660     - Fix an assertion failure in dns.c, where we were trying to dequeue
1661       a pending dns resolve even if it wasn't pending
1662     - Fix a spurious socks5 warning about still trying to write after the
1663       connection is finished.
1664     - Hold certain marked_for_close connections open until they're finished
1665       flushing, rather than losing bytes by closing them too early.
1666     - Correctly report the reason for ending a stream
1667     - Remove some duplicate calls to connection_mark_for_close
1668     - Put switch_id and start_daemon earlier in the boot sequence, so it
1669       will actually try to chdir() to options.DataDirectory
1670     - Make 'make test' exit(1) if a test fails; fix some unit tests
1671     - Make tor fail when you use a config option it doesn't know about,
1672       rather than warn and continue.
1673     - Make --version work
1674     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
1677 Changes in version 0.0.2pre23 - 2004-02-29
1678   o New features:
1679     - Print a statement when the first circ is finished, so the user
1680       knows it's working.
1681     - If a relay cell is unrecognized at the end of the circuit,
1682       send back a destroy. (So attacks to mutate cells are more
1683       clearly thwarted.)
1684     - New config option 'excludenodes' to avoid certain nodes for circuits.
1685     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
1686       so you can collect coredumps there.
1687  o Bugfixes:
1688     - Fix a bug in tls flushing where sometimes data got wedged and
1689       didn't flush until more data got sent. Hopefully this bug was
1690       a big factor in the random delays we were seeing.
1691     - Make 'connected' cells include the resolved IP, so the client
1692       dns cache actually gets populated.
1693     - Disallow changing from ORPort=0 to ORPort>0 on hup.
1694     - When we time-out on a stream and detach from the circuit, send an
1695       end cell down it first.
1696     - Only warn about an unknown router (in exitnodes, entrynodes,
1697       excludenodes) after we've fetched a directory.
1700 Changes in version 0.0.2pre22 - 2004-02-26
1701   o New features:
1702     - Servers publish less revealing uname information in descriptors.
1703     - More memory tracking and assertions, to crash more usefully when
1704       errors happen.
1705     - If the default torrc isn't there, just use some default defaults.
1706       Plus provide an internal dirservers file if they don't have one.
1707     - When the user tries to use Tor as an http proxy, give them an http
1708       501 failure explaining that we're a socks proxy.
1709     - Dump a new router.desc on hup, to help confused people who change
1710       their exit policies and then wonder why router.desc doesn't reflect
1711       it.
1712     - Clean up the generic tor.sh init script that we ship with.
1713   o Bugfixes:
1714     - If the exit stream is pending on the resolve, and a destroy arrives,
1715       then the stream wasn't getting removed from the pending list. I
1716       think this was the one causing recent server crashes.
1717     - Use a more robust poll on OSX 10.3, since their poll is flaky.
1718     - When it couldn't resolve any dirservers, it was useless from then on.
1719       Now it reloads the RouterFile (or default dirservers) if it has no
1720       dirservers.
1721     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
1722       many users don't even *have* a /usr/local/sbin/.
1725 Changes in version 0.0.2pre21 - 2004-02-18
1726   o New features:
1727     - There's a ChangeLog file that actually reflects the changelog.
1728     - There's a 'torify' wrapper script, with an accompanying
1729       tor-tsocks.conf, that simplifies the process of using tsocks for
1730       tor. It even has a man page.
1731     - The tor binary gets installed to sbin rather than bin now.
1732     - Retry streams where the connected cell hasn't arrived in 15 seconds
1733     - Clean up exit policy handling -- get the default out of the torrc,
1734       so we can update it without forcing each server operator to fix
1735       his/her torrc.
1736     - Allow imaps and pop3s in default exit policy
1737   o Bugfixes:
1738     - Prevent picking middleman nodes as the last node in the circuit
1741 Changes in version 0.0.2pre20 - 2004-01-30
1742   o New features:
1743     - We now have a deb package, and it's in debian unstable. Go to
1744       it, apt-getters. :)
1745     - I've split the TotalBandwidth option into BandwidthRate (how many
1746       bytes per second you want to allow, long-term) and
1747       BandwidthBurst (how many bytes you will allow at once before the cap
1748       kicks in).  This better token bucket approach lets you, say, set
1749       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
1750       performance while not exceeding your monthly bandwidth quota.
1751     - Push out a tls record's worth of data once you've got it, rather
1752       than waiting until you've read everything waiting to be read. This
1753       may improve performance by pipelining better. We'll see.
1754     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
1755       from failed circuits (if they haven't been connected yet) and attach
1756       to new ones.
1757     - Expire old streams that haven't managed to connect. Some day we'll
1758       have them reattach to new circuits instead.
1760   o Bugfixes:
1761     - Fix several memory leaks that were causing servers to become bloated
1762       after a while.
1763     - Fix a few very rare assert triggers. A few more remain.
1764     - Setuid to User _before_ complaining about running as root.
1767 Changes in version 0.0.2pre19 - 2004-01-07
1768   o Bugfixes:
1769     - Fix deadlock condition in dns farm. We were telling a child to die by
1770       closing the parent's file descriptor to him. But newer children were
1771       inheriting the open file descriptor from the parent, and since they
1772       weren't closing it, the socket never closed, so the child never read
1773       eof, so he never knew to exit. Similarly, dns workers were holding
1774       open other sockets, leading to all sorts of chaos.
1775     - New cleaner daemon() code for forking and backgrounding.
1776     - If you log to a file, it now prints an entry at the top of the
1777       logfile so you know it's working.
1778     - The onionskin challenge length was 30 bytes longer than necessary.
1779     - Started to patch up the spec so it's not quite so out of date.
1782 Changes in version 0.0.2pre18 - 2004-01-02
1783   o Bugfixes:
1784     - Fix endian issues with the 'integrity' field in the relay header.
1785     - Fix a potential bug where connections in state
1786       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
1789 Changes in version 0.0.2pre17 - 2003-12-30
1790   o Bugfixes:
1791     - Made --debuglogfile (or any second log file, actually) work.
1792     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
1793       adversary could force us into an infinite loop.
1795   o Features:
1796     - Each onionskin handshake now includes a hash of the computed key,
1797       to prove the server's identity and help perfect forward secrecy.
1798     - Changed cell size from 256 to 512 bytes (working toward compatibility
1799       with MorphMix).
1800     - Changed cell length to 2 bytes, and moved it to the relay header.
1801     - Implemented end-to-end integrity checking for the payloads of
1802       relay cells.
1803     - Separated streamid from 'recognized' (otherwise circuits will get
1804       messed up when we try to have streams exit from the middle). We
1805       use the integrity-checking to confirm that a cell is addressed to
1806       this hop.
1807     - Randomize the initial circid and streamid values, so an adversary who
1808       breaks into a node can't learn how many circuits or streams have
1809       been made so far.
1812 Changes in version 0.0.2pre16 - 2003-12-14
1813   o Bugfixes:
1814     - Fixed a bug that made HUP trigger an assert
1815     - Fixed a bug where a circuit that immediately failed wasn't being
1816       counted as a failed circuit in counting retries.
1818   o Features:
1819     - Now we close the circuit when we get a truncated cell: otherwise we're
1820       open to an anonymity attack where a bad node in the path truncates
1821       the circuit and then we open streams at him.
1822     - Add port ranges to exit policies
1823     - Add a conservative default exit policy
1824     - Warn if you're running tor as root
1825     - on HUP, retry OR connections and close/rebind listeners
1826     - options.EntryNodes: try these nodes first when picking the first node
1827     - options.ExitNodes: if your best choices happen to include any of
1828       your preferred exit nodes, you choose among just those preferred
1829       exit nodes.
1830     - options.ExcludedNodes: nodes that are never picked in path building
1833 Changes in version 0.0.2pre15 - 2003-12-03
1834   o Robustness and bugfixes:
1835     - Sometimes clients would cache incorrect DNS resolves, which would
1836       really screw things up.
1837     - An OP that goes offline would slowly leak all its sockets and stop
1838       working.
1839     - A wide variety of bugfixes in exit node selection, exit policy
1840       handling, and processing pending streams when a new circuit is
1841       established.
1842     - Pick nodes for a path only from those the directory says are up
1843     - Choose randomly from all running dirservers, not always the first one
1844     - Increase allowed http header size for directory fetch.
1845     - Stop writing to stderr (if we're daemonized it will be closed).
1846     - Enable -g always, so cores will be more useful to me.
1847     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
1849   o Documentation:
1850     - Wrote a man page. It lists commonly used options.
1852   o Configuration:
1853     - Change default loglevel to warn.
1854     - Make PidFile default to null rather than littering in your CWD.
1855     - OnionRouter config option is now obsolete. Instead it just checks
1856       ORPort>0.
1857     - Moved to a single unified torrc file for both clients and servers.
1860 Changes in version 0.0.2pre14 - 2003-11-29
1861   o Robustness and bugfixes:
1862     - Force the admin to make the DataDirectory himself
1863       - to get ownership/permissions right
1864       - so clients no longer make a DataDirectory and then never use it
1865     - fix bug where a client who was offline for 45 minutes would never
1866       pull down a directory again
1867     - fix (or at least hide really well) the dns assert bug that was
1868       causing server crashes
1869     - warnings and improved robustness wrt clockskew for certs
1870     - use the native daemon(3) to daemonize, when available
1871     - exit if bind() fails
1872     - exit if neither socksport nor orport is defined
1873     - include our own tor_timegm (Win32 doesn't have its own)
1874     - bugfix for win32 with lots of connections
1875     - fix minor bias in PRNG
1876     - make dirserver more robust to corrupt cached directory
1878   o Documentation:
1879     - Wrote the design document (woo)
1881   o Circuit building and exit policies:
1882     - Circuits no longer try to use nodes that the directory has told them
1883       are down.
1884     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
1885       bitcounts (18.0.0.0/8).
1886     - Make AP connections standby for a circuit if no suitable circuit
1887       exists, rather than failing
1888     - Circuits choose exit node based on addr/port, exit policies, and
1889       which AP connections are standing by
1890     - Bump min pathlen from 2 to 3
1891     - Relay end cells have a payload to describe why the stream ended.
1892     - If the stream failed because of exit policy, try again with a new
1893       circuit.
1894     - Clients have a dns cache to remember resolved addresses.
1895     - Notice more quickly when we have no working circuits
1897   o Configuration:
1898     - APPort is now called SocksPort
1899     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
1900       where to bind
1901     - RecommendedVersions is now a config variable rather than
1902       hardcoded (for dirservers)
1903     - Reloads config on HUP
1904     - Usage info on -h or --help
1905     - If you set User and Group config vars, it'll setu/gid to them.
1907 Changes in version 0.0.2pre13 - 2003-10-19
1908   o General stability:
1909     - SSL_write no longer fails when it returns WANTWRITE and the number
1910       of bytes in the buf has changed by the next SSL_write call.
1911     - Fix segfault fetching directory when network is down
1912     - Fix a variety of minor memory leaks
1913     - Dirservers reload the fingerprints file on HUP, so I don't have
1914       to take down the network when I approve a new router
1915     - Default server config file has explicit Address line to specify fqdn
1917   o Buffers:
1918     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
1919     - Make listener connections not ever alloc bufs
1921   o Autoconf improvements:
1922     - don't clobber an external CFLAGS in ./configure
1923     - Make install now works
1924     - create var/lib/tor on make install
1925     - autocreate a tor.sh initscript to help distribs
1926     - autocreate the torrc and sample-server-torrc with correct paths
1928   o Log files and Daemonizing now work:
1929     - If --DebugLogFile is specified, log to it at -l debug
1930     - If --LogFile is specified, use it instead of commandline
1931     - If --RunAsDaemon is set, tor forks and backgrounds on startup