Forward port changelog
[tor.git] / ChangeLog
blob56cd920af3f867a3715dac565be3479f07ef4d50
1 Changes in version 0.0.9.4 - 2005-02-03
2   o Bugfixes on 0.0.9:
3     - Fix an assert bug that took down most of our servers: when
4       a server claims to have 500 GB of bandwidthburst, don't
5       freak out.
6     - Don't crash as badly if we have spawned the max allowed number
7       of dnsworkers, or we're out of file descriptors.
8     - Block more file-sharing ports in the default exit policy.
9     - Give better a clearer message that they need to raise MaxConn
10       when they start running out of file descriptors.
11     - SGI Compatibility patches from Jan Schaumann.
12     - Tolerate a corrupt cached directory better.
13     - When a dirserver hasn't approved your server, list which one.
14     - Go into soft hibernation after 95% of the bandwidth is used,
15       not 99%. This is especially important for daily hibernators who
16       have a small accounting max. Hopefully it will result in fewer
17       cut connections when the hard hibernation starts.
18     - Load-balance better when using servers that claim more than
19       800kB/s of capacity.
20     - Make NT services work (experimental, only used if compiled in).
23 Changes in version 0.0.9.3 - 2005-01-21
24   o Bugfixes on 0.0.9:
25     - Backport the cpu use fixes from main branch, so busy servers won't
26       need as much processor time.
27     - Work better when we go offline and then come back, or when we
28       run Tor at boot before the network is up. We do this by
29       optimistically trying to fetch a new directory whenever an
30       application request comes in and we think we're offline -- the
31       human is hopefully a good measure of when the network is back.
32     - Backport some minimal hidserv bugfixes: keep rend circuits open as
33       long as you keep using them; actually publish hidserv descriptors
34       shortly after they change, rather than waiting 20-40 minutes.
35     - Enable Mac startup script by default.
36     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
37     - When you update AllowUnverifiedNodes or FirewallPorts via the
38       controller's setconf feature, we were always appending, never
39       resetting.
40     - When you update HiddenServiceDir via setconf, it was screwing up
41       the order of reading the lines, making it fail.
42     - Do not rewrite a cached directory back to the cache; otherwise we
43       will think it is recent and not fetch a newer one on startup.
44     - Workaround for webservers that lie about Content-Encoding: Tor
45       now tries to autodetect compressed directories and compression
46       itself. This lets us Proxypass dir fetches through apache.
49 Changes in version 0.0.9.2 - 2005-01-04
50   o Bugfixes on 0.0.9 (crashes and asserts):
51     - Fix an assert on startup when the disk is full and you're logging
52       to a file.
53     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
54       style address, then we'd crash.
55     - Fix an assert trigger when the running-routers string we get from
56       a dirserver is broken.
57     - Make worker threads start and run on win32. Now win32 servers
58       may work better.
59     - Bandaid (not actually fix, but now it doesn't crash) an assert
60       where the dns worker dies mysteriously and the main Tor process
61       doesn't remember anything about the address it was resolving.
63   o Bugfixes on 0.0.9 (Win32):
64     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
65       name out of the warning/assert messages.
66     - Fix a superficial "unhandled error on read" bug on win32.
67     - The win32 installer no longer requires a click-through for our
68       license, since our Free Software license grants rights but does not
69       take any away.
70     - Win32: When connecting to a dirserver fails, try another one
71       immediately. (This was already working for non-win32 Tors.)
72     - Stop trying to parse $HOME on win32 when hunting for default
73       DataDirectory.
74     - Make tor-resolve.c work on win32 by calling network_init().
76   o Bugfixes on 0.0.9 (other):
77     - Make 0.0.9.x build on Solaris again.
78     - Due to a fencepost error, we were blowing away the \n when reporting
79       confvalue items in the controller. So asking for multiple config
80       values at once couldn't work.
81     - When listing circuits that are pending on an opening OR connection,
82       if we're an OR we were listing circuits that *end* at us as
83       being pending on every listener, dns/cpu worker, etc. Stop that.
84     - Dirservers were failing to create 'running-routers' or 'directory'
85       strings if we had more than some threshold of routers. Fix them so
86       they can handle any number of routers.
87     - Fix a superficial "Duplicate mark for close" bug.
88     - Stop checking for clock skew for OR connections, even for servers.
89     - Fix a fencepost error that was chopping off the last letter of any
90       nickname that is the maximum allowed nickname length.
91     - Update URLs in log messages so they point to the new website.
92     - Fix a potential problem in mangling server private keys while
93       writing to disk (not triggered yet, as far as we know).
94     - Include the licenses for other free software we include in Tor,
95       now that we're shipping binary distributions more regularly.
98 Changes in version 0.0.9.1 - 2004-12-15
99   o Bugfixes on 0.0.9:
100     - Make hibernation actually work.
101     - Make HashedControlPassword config option work.
102     - When we're reporting event circuit status to a controller,
103       don't use the stream status code.
106 Changes in version 0.0.9 - 2004-12-12
107   o Bugfixes on 0.0.8.1 (Crashes and asserts):
108     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
109       write() call will fail and we handle it there.
110     - When we run out of disk space, or other log writing error, don't
111       crash. Just stop logging to that log and continue.
112     - Fix isspace() and friends so they still make Solaris happy
113       but also so they don't trigger asserts on win32.
114     - Fix assert failure on malformed socks4a requests.
115     - Fix an assert bug where a hidden service provider would fail if
116       the first hop of his rendezvous circuit was down.
117     - Better handling of size_t vs int, so we're more robust on 64
118       bit platforms.
120   o Bugfixes on 0.0.8.1 (Win32):
121     - Make windows sockets actually non-blocking (oops), and handle
122       win32 socket errors better.
123     - Fix parse_iso_time on platforms without strptime (eg win32).
124     - win32: when being multithreaded, leave parent fdarray open.
125     - Better handling of winsock includes on non-MSV win32 compilers.
126     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
127       happier.
128     - Make unit tests work on win32.
130   o Bugfixes on 0.0.8.1 (Path selection and streams):
131     - Calculate timeout for waiting for a connected cell from the time
132       we sent the begin cell, not from the time the stream started. If
133       it took a long time to establish the circuit, we would time out
134       right after sending the begin cell.
135     - Fix router_compare_addr_to_addr_policy: it was not treating a port
136       of * as always matching, so we were picking reject *:* nodes as
137       exit nodes too. Oops.
138     - When read() failed on a stream, we would close it without sending
139       back an end. So 'connection refused' would simply be ignored and
140       the user would get no response.
141     - Stop a sigpipe: when an 'end' cell races with eof from the app,
142       we shouldn't hold-open-until-flush if the eof arrived first.
143     - Let resolve conns retry/expire also, rather than sticking around
144       forever.
145     - Fix more dns related bugs: send back resolve_failed and end cells
146       more reliably when the resolve fails, rather than closing the
147       circuit and then trying to send the cell. Also attach dummy resolve
148       connections to a circuit *before* calling dns_resolve(), to fix
149       a bug where cached answers would never be sent in RESOLVED cells.
151   o Bugfixes on 0.0.8.1 (Circuits):
152     - Finally fix a bug that's been plaguing us for a year:
153       With high load, circuit package window was reaching 0. Whenever
154       we got a circuit-level sendme, we were reading a lot on each
155       socket, but only writing out a bit. So we would eventually reach
156       eof. This would be noticed and acted on even when there were still
157       bytes sitting in the inbuf.
158     - Use identity comparison, not nickname comparison, to choose which
159       half of circuit-ID-space each side gets to use. This is needed
160       because sometimes we think of a router as a nickname, and sometimes
161       as a hex ID, and we can't predict what the other side will do.
163   o Bugfixes on 0.0.8.1 (Other):
164     - Fix a whole slew of memory leaks.
165     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
166     - If we are using select, make sure we stay within FD_SETSIZE.
167     - When poll() is interrupted, we shouldn't believe the revents values.
168     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
169       and smartlist_len, which are two major profiling offenders.
170     - If do_hup fails, actually notice.
171     - Flush the log file descriptor after we print "Tor opening log file",
172       so we don't see those messages days later.
173     - Hidden service operators now correctly handle version 1 style
174       INTRODUCE1 cells (nobody generates them still, so not a critical
175       bug).
176     - Handle more errnos from accept() without closing the listener.
177       Some OpenBSD machines were closing their listeners because
178       they ran out of file descriptors.
179     - Some people had wrapped their tor client/server in a script
180       that would restart it whenever it died. This did not play well
181       with our "shut down if your version is obsolete" code. Now people
182       don't fetch a new directory if their local cached version is
183       recent enough.
184     - Make our autogen.sh work on ksh as well as bash.
185     - Better torrc example lines for dirbindaddress and orbindaddress.
186     - Improved bounds checking on parsed ints (e.g. config options and
187       the ones we find in directories.)
188     - Stop using separate defaults for no-config-file and
189       empty-config-file. Now you have to explicitly turn off SocksPort,
190       if you don't want it open.
191     - We were starting to daemonize before we opened our logs, so if
192       there were any problems opening logs, we would complain to stderr,
193       which wouldn't work, and then mysteriously exit.
194     - If a verified OR connects to us before he's uploaded his descriptor,
195       or we verify him and hup but he still has the original TLS
196       connection, then conn->nickname is still set like he's unverified.
198   o Code security improvements, inspired by Ilja:
199     - tor_snprintf wrapper over snprintf with consistent (though not C99)
200       overflow behavior.
201     - Replace sprintf with tor_snprintf. (I think they were all safe, but
202       hey.)
203     - Replace strcpy/strncpy with strlcpy in more places.
204     - Avoid strcat; use tor_snprintf or strlcat instead.
206   o Features (circuits and streams):
207     - New circuit building strategy: keep a list of ports that we've
208       used in the past 6 hours, and always try to have 2 circuits open
209       or on the way that will handle each such port. Seed us with port
210       80 so web users won't complain that Tor is "slow to start up".
211     - Make kill -USR1 dump more useful stats about circuits.
212     - When warning about retrying or giving up, print the address, so
213       the user knows which one it's talking about.
214     - If you haven't used a clean circuit in an hour, throw it away,
215       just to be on the safe side. (This means after 6 hours a totally
216       unused Tor client will have no circuits open.)
217     - Support "foo.nickname.exit" addresses, to let Alice request the
218       address "foo" as viewed by exit node "nickname". Based on a patch
219       from Geoff Goodell.
220     - If your requested entry or exit node has advertised bandwidth 0,
221       pick it anyway.
222     - Be more greedy about filling up relay cells -- we try reading again
223       once we've processed the stuff we read, in case enough has arrived
224       to fill the last cell completely.
225     - Refuse application socks connections to port 0.
226     - Use only 0.0.9pre1 and later servers for resolve cells.
228   o Features (bandwidth):
229     - Hibernation: New config option "AccountingMax" lets you
230       set how many bytes per month (in each direction) you want to
231       allow your server to consume. Rather than spreading those
232       bytes out evenly over the month, we instead hibernate for some
233       of the month and pop up at a deterministic time, work until
234       the bytes are consumed, then hibernate again. Config option
235       "MonthlyAccountingStart" lets you specify which day of the month
236       your billing cycle starts on.
237     - Implement weekly/monthly/daily accounting: now you specify your
238       hibernation properties by
239       AccountingMax N bytes|KB|MB|GB|TB
240       AccountingStart day|week|month [day] HH:MM
241         Defaults to "month 1 0:00".
242     - Let bandwidth and interval config options be specified as 5 bytes,
243       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
245   o Features (directories):
246     - New "router-status" line in directory, to better bind each verified
247       nickname to its identity key.
248     - Clients can ask dirservers for /dir.z to get a compressed version
249       of the directory. Only works for servers running 0.0.9, of course.
250     - Make clients cache directories and use them to seed their router
251       lists at startup. This means clients have a datadir again.
252     - Respond to content-encoding headers by trying to uncompress as
253       appropriate.
254     - Clients and servers now fetch running-routers; cache
255       running-routers; compress running-routers; serve compressed
256       running-routers.z
257     - Make moria2 advertise a dirport of 80, so people behind firewalls
258       will be able to get a directory.
259     - Http proxy support
260       - Dirservers translate requests for http://%s:%d/x to /x
261       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
262         be routed through this host.
263       - Clients ask for /tor/x rather than /x for new enough dirservers.
264         This way we can one day coexist peacefully with apache.
265       - Clients specify a "Host: %s%d" http header, to be compatible
266         with more proxies, and so running squid on an exit node can work.
267     - Protect dirservers from overzealous descriptor uploading -- wait
268       10 seconds after directory gets dirty, before regenerating.
270   o Features (packages and install):
271     - Add NSI installer contributed by J Doe.
272     - Apply NT service patch from Osamu Fujino. Still needs more work.
273     - Commit VC6 and VC7 workspace/project files.
274     - Commit a tor.spec for making RPM files, with help from jbash.
275     - Add contrib/torctl.in contributed by Glenn Fink.
276     - Make expand_filename handle ~ and ~username.
277     - Use autoconf to enable largefile support where necessary. Use
278       ftello where available, since ftell can fail at 2GB.
279     - Ship src/win32/ in the tarball, so people can use it to build.
280     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
281       is broken.
283   o Features (ui controller):
284     - Control interface: a separate program can now talk to your
285       client/server over a socket, and get/set config options, receive
286       notifications of circuits and streams starting/finishing/dying,
287       bandwidth used, etc. The next step is to get some GUIs working.
288       Let us know if you want to help out. See doc/control-spec.txt .
289     - Ship a contrib/tor-control.py as an example script to interact
290       with the control port.
291     - "tor --hash-password zzyxz" will output a salted password for
292       use in authenticating to the control interface.
293     - Implement the control-spec's SAVECONF command, to write your
294       configuration to torrc.
295     - Get cookie authentication for the controller closer to working.
296     - When set_conf changes our server descriptor, upload a new copy.
297       But don't upload it too often if there are frequent changes.
299   o Features (config and command-line):
300     - Deprecate unofficial config option abbreviations, and abbreviations
301       not on the command line.
302     - Configuration infrastructure support for warning on obsolete
303       options.
304     - Give a slightly more useful output for "tor -h".
305     - Break DirFetchPostPeriod into:
306       - DirFetchPeriod for fetching full directory,
307       - StatusFetchPeriod for fetching running-routers,
308       - DirPostPeriod for posting server descriptor,
309       - RendPostPeriod for posting hidden service descriptors.
310     - New log format in config:
311       "Log minsev[-maxsev] stdout|stderr|syslog" or
312       "Log minsev[-maxsev] file /var/foo"
313     - DirPolicy config option, to let people reject incoming addresses
314       from their dirserver.
315     - "tor --list-fingerprint" will list your identity key fingerprint
316       and then exit.
317     - Make tor --version --version dump the cvs Id of every file.
318     - New 'MyFamily nick1,...' config option for a server to
319       specify other servers that shouldn't be used in the same circuit
320       with it. Only believed if nick1 also specifies us.
321     - New 'NodeFamily nick1,nick2,...' config option for a client to
322       specify nodes that it doesn't want to use in the same circuit.
323     - New 'Redirectexit pattern address:port' config option for a
324       server to redirect exit connections, e.g. to a local squid.
325     - Add "pass" target for RedirectExit, to make it easier to break
326       out of a sequence of RedirectExit rules.
327     - Make the dirservers file obsolete.
328       - Include a dir-signing-key token in directories to tell the
329         parsing entity which key is being used to sign.
330       - Remove the built-in bulky default dirservers string.
331       - New config option "Dirserver %s:%d [fingerprint]", which can be
332         repeated as many times as needed. If no dirservers specified,
333         default to moria1,moria2,tor26.
334       - Make 'Routerfile' config option obsolete.
335     - Discourage people from setting their dirfetchpostperiod more often
336       than once per minute.
338   o Features (other):
339     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
340       get back to normal.)
341     - Accept *:706 (silc) in default exit policy.
342     - Implement new versioning format for post 0.1.
343     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
344       log more informatively.
345     - Check clock skew for verified servers, but allow unverified
346       servers and clients to have any clock skew.
347     - Make sure the hidden service descriptors are at a random offset
348       from each other, to hinder linkability.
349     - Clients now generate a TLS cert too, in preparation for having
350       them act more like real nodes.
351     - Add a pure-C tor-resolve implementation.
352     - Use getrlimit and friends to ensure we can reach MaxConn (currently
353       1024) file descriptors.
354     - Raise the max dns workers from 50 to 100.
357 Changes in version 0.0.8.1 - 2004-10-13
358   o Bugfixes:
359     - Fix a seg fault that can be triggered remotely for Tor
360       clients/servers with an open dirport.
361     - Fix a rare assert trigger, where routerinfos for entries in
362       our cpath would expire while we're building the path.
363     - Fix a bug in OutboundBindAddress so it (hopefully) works.
364     - Fix a rare seg fault for people running hidden services on
365       intermittent connections.
366     - Fix a bug in parsing opt keywords with objects.
367     - Fix a stale pointer assert bug when a stream detaches and
368       reattaches.
369     - Fix a string format vulnerability (probably not exploitable)
370       in reporting stats locally.
371     - Fix an assert trigger: sometimes launching circuits can fail
372       immediately, e.g. because too many circuits have failed recently.
373     - Fix a compile warning on 64 bit platforms.
376 Changes in version 0.0.8 - 2004-08-25
377   o Bugfixes:
378     - Made our unit tests compile again on OpenBSD 3.5, and tor
379       itself compile again on OpenBSD on a sparc64.
380     - We were neglecting milliseconds when logging on win32, so
381       everything appeared to happen at the beginning of each second.
382     - Check directory signature _before_ you decide whether you're
383       you're running an obsolete version and should exit.
384     - Check directory signature _before_ you parse the running-routers
385       list to decide who's running.
386     - Check return value of fclose while writing to disk, so we don't
387       end up with broken files when servers run out of disk space.
388     - Port it to SunOS 5.9 / Athena
389     - Fix two bugs in saving onion keys to disk when rotating, so
390       hopefully we'll get fewer people using old onion keys.
391     - Remove our mostly unused -- and broken -- hex_encode()
392       function. Use base16_encode() instead. (Thanks to Timo Lindfors
393       for pointing out this bug.)
394     - Only pick and establish intro points after we've gotten a
395       directory.
396     - Fix assert triggers: if the other side returns an address 0.0.0.0,
397       don't put it into the client dns cache.
398     - If a begin failed due to exit policy, but we believe the IP
399       address should have been allowed, switch that router to exitpolicy
400       reject *:* until we get our next directory.
402   o Protocol changes:
403     - 'Extend' relay cell payloads now include the digest of the
404       intended next hop's identity key. Now we can verify that we're
405       extending to the right router, and also extend to routers we
406       hadn't heard of before.
408   o Features:
409     - Tor nodes can now act as relays (with an advertised ORPort)
410       without being manually verified by the dirserver operators.
411       - Uploaded descriptors of unverified routers are now accepted
412         by the dirservers, and included in the directory.
413       - Verified routers are listed by nickname in the running-routers
414         list; unverified routers are listed as "$<fingerprint>".
415       - We now use hash-of-identity-key in most places rather than
416         nickname or addr:port, for improved security/flexibility.
417       - AllowUnverifiedNodes config option to let circuits choose no-name
418         routers in entry,middle,exit,introduction,rendezvous positions.
419         Allow middle and rendezvous positions by default.
420       - When picking unverified routers, skip those with low uptime and/or
421         low bandwidth, depending on what properties you care about.
422       - ClientOnly option for nodes that never want to become servers.
423     - Directory caching.
424       - "AuthoritativeDir 1" option for the official dirservers.
425       - Now other nodes (clients and servers) will cache the latest
426         directory they've pulled down.
427       - They can enable their DirPort to serve it to others.
428       - Clients will pull down a directory from any node with an open
429         DirPort, and check the signature/timestamp correctly.
430       - Authoritative dirservers now fetch directories from other
431         authdirservers, to stay better synced.
432       - Running-routers list tells who's down also, along with noting
433         if they're verified (listed by nickname) or unverified (listed
434         by hash-of-key).
435       - Allow dirservers to serve running-router list separately.
436         This isn't used yet.
437       - You can now fetch $DIRURL/running-routers to get just the
438         running-routers line, not the whole descriptor list. (But
439         clients don't use this yet.)
440     - Clients choose nodes proportional to advertised bandwidth.
441     - Clients avoid using nodes with low uptime as introduction points.
442     - Handle servers with dynamic IP addresses: don't just replace
443       options->Address with the resolved one at startup, and
444       detect our address right before we make a routerinfo each time.
445     - 'FascistFirewall' option to pick dirservers and ORs on specific
446       ports; plus 'FirewallPorts' config option to tell FascistFirewall
447       which ports are open. (Defaults to 80,443)
448     - Try other dirservers immediately if the one you try is down. This
449       should tolerate down dirservers better now.
450     - ORs connect-on-demand to other ORs
451       - If you get an extend cell to an OR you're not connected to,
452         connect, handshake, and forward the create cell.
453       - The authoritative dirservers stay connected to everybody,
454         and everybody stays connected to 0.0.7 servers, but otherwise
455         clients/servers expire unused connections after 5 minutes.
456     - When servers get a sigint, they delay 30 seconds (refusing new
457       connections) then exit. A second sigint causes immediate exit.
458     - File and name management:
459       - Look for .torrc if no CONFDIR "torrc" is found.
460       - If no datadir is defined, then choose, make, and secure ~/.tor
461         as datadir.
462       - If torrc not found, exitpolicy reject *:*.
463       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
464       - If no nickname is defined, derive default from hostname.
465       - Rename secret key files, e.g. identity.key -> secret_id_key,
466         to discourage people from mailing their identity key to tor-ops.
467     - Refuse to build a circuit before the directory has arrived --
468       it won't work anyway, since you won't know the right onion keys
469       to use.
470     - Parse tor version numbers so we can do an is-newer-than check
471       rather than an is-in-the-list check.
472     - New socks command 'resolve', to let us shim gethostbyname()
473       locally.
474       - A 'tor_resolve' script to access the socks resolve functionality.
475       - A new socks-extensions.txt doc file to describe our
476         interpretation and extensions to the socks protocols.
477     - Add a ContactInfo option, which gets published in descriptor.
478     - Write tor version at the top of each log file
479     - New docs in the tarball:
480       - tor-doc.html.
481       - Document that you should proxy your SSL traffic too.
482     - Log a warning if the user uses an unsafe socks variant, so people
483       are more likely to learn about privoxy or socat.
484     - Log a warning if you're running an unverified server, to let you
485       know you might want to get it verified.
486     - Change the default exit policy to reject the default edonkey,
487       kazaa, gnutella ports.
488     - Add replace_file() to util.[ch] to handle win32's rename().
489     - Publish OR uptime in descriptor (and thus in directory) too.
490     - Remember used bandwidth (both in and out), and publish 15-minute
491       snapshots for the past day into our descriptor.
492     - Be more aggressive about trying to make circuits when the network
493       has changed (e.g. when you unsuspend your laptop).
494     - Check for time skew on http headers; report date in response to
495       "GET /".
496     - If the entrynode config line has only one node, don't pick it as
497       an exitnode.
498     - Add strict{entry|exit}nodes config options. If set to 1, then
499       we refuse to build circuits that don't include the specified entry
500       or exit nodes.
501     - OutboundBindAddress config option, to bind to a specific
502       IP address for outgoing connect()s.
503     - End truncated log entries (e.g. directories) with "[truncated]".
506 Changes in version 0.0.7.3 - 2004-08-12
507   o Stop dnsworkers from triggering an assert failure when you
508     ask them to resolve the host "".
511 Changes in version 0.0.7.2 - 2004-07-07
512   o A better fix for the 0.0.0.0 problem, that will hopefully
513     eliminate the remaining related assertion failures.
516 Changes in version 0.0.7.1 - 2004-07-04
517   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
518     since internally we use 0.0.0.0 to signify "not yet resolved".
521 Changes in version 0.0.7 - 2004-06-07
522   o Fixes for crashes and other obnoxious bugs:
523     - Fix an epipe bug: sometimes when directory connections failed
524       to connect, we would give them a chance to flush before closing
525       them.
526     - When we detached from a circuit because of resolvefailed, we
527       would immediately try the same circuit twice more, and then
528       give up on the resolve thinking we'd tried three different
529       exit nodes.
530     - Limit the number of intro circuits we'll attempt to build for a
531       hidden service per 15-minute period.
532     - Check recommended-software string *early*, before actually parsing
533       the directory. Thus we can detect an obsolete version and exit,
534       even if the new directory format doesn't parse.
535   o Fixes for security bugs:
536     - Remember which nodes are dirservers when you startup, and if a
537       random OR enables his dirport, don't automatically assume he's
538       a trusted dirserver.
539   o Other bugfixes:
540     - Directory connections were asking the wrong poll socket to
541       start writing, and not asking themselves to start writing.
542     - When we detached from a circuit because we sent a begin but
543       didn't get a connected, we would use it again the first time;
544       but after that we would correctly switch to a different one.
545     - Stop warning when the first onion decrypt attempt fails; they
546       will sometimes legitimately fail now that we rotate keys.
547     - Override unaligned-access-ok check when $host_cpu is ia64 or
548       arm. Apparently they allow it but the kernel whines.
549     - Dirservers try to reconnect periodically too, in case connections
550       have failed.
551     - Fix some memory leaks in directory servers.
552     - Allow backslash in Win32 filenames.
553     - Made Tor build complain-free on FreeBSD, hopefully without
554       breaking other BSD builds. We'll see.
555     - Check directory signatures based on name of signer, not on whom
556       we got the directory from. This will let us cache directories more
557       easily.
558     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
559       settings too.
560   o Features:
561     - Doxygen markup on all functions and global variables.
562     - Make directory functions update routerlist, not replace it. So
563       now directory disagreements are not so critical a problem.
564     - Remove the upper limit on number of descriptors in a dirserver's
565       directory (not that we were anywhere close).
566     - Allow multiple logfiles at different severity ranges.
567     - Allow *BindAddress to specify ":port" rather than setting *Port
568       separately. Allow multiple instances of each BindAddress config
569       option, so you can bind to multiple interfaces if you want.
570     - Allow multiple exit policy lines, which are processed in order.
571       Now we don't need that huge line with all the commas in it.
572     - Enable accept/reject policies on SOCKS connections, so you can bind
573       to 0.0.0.0 but still control who can use your OP.
574     - Updated the man page to reflect these features.
577 Changes in version 0.0.6.2 - 2004-05-16
578   o Our integrity-checking digest was checking only the most recent cell,
579     not the previous cells like we'd thought.
580     Thanks to Stefan Mark for finding the flaw!
583 Changes in version 0.0.6.1 - 2004-05-06
584   o Fix two bugs in our AES counter-mode implementation (this affected
585     onion-level stream encryption, but not TLS-level). It turns
586     out we were doing something much more akin to a 16-character
587     polyalphabetic cipher. Oops.
588     Thanks to Stefan Mark for finding the flaw!
589   o Retire moria3 as a directory server, and add tor26 as a directory
590     server.
593 Changes in version 0.0.6 - 2004-05-02
594   o Features:
595     - Hidden services and rendezvous points are implemented. Go to
596       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
597       hidden services. (This only works via a socks4a proxy such as
598       Privoxy, and currently it's quite slow.)
599     - We now rotate link (tls context) keys and onion keys.
600     - CREATE cells now include oaep padding, so you can tell
601       if you decrypted them correctly.
602     - Retry stream correctly when we fail to connect because of
603       exit-policy-reject (should try another) or can't-resolve-address.
604     - When we hup a dirserver and we've *removed* a server from the
605       approved-routers list, now we remove that server from the
606       in-memory directories too.
607     - Add bandwidthburst to server descriptor.
608     - Directories now say which dirserver signed them.
609     - Use a tor_assert macro that logs failed assertions too.
610     - Since we don't support truncateds much, don't bother sending them;
611       just close the circ.
612     - Fetch randomness from /dev/urandom better (not via fopen/fread)
613     - Better debugging for tls errors
614     - Set Content-Type on the directory and hidserv descriptor.
615     - Remove IVs from cipher code, since AES-ctr has none.
616   o Bugfixes:
617     - Fix an assert trigger for exit nodes that's been plaguing us since
618       the days of 0.0.2prexx (thanks weasel!)
619     - Fix a bug where we were closing tls connections intermittently.
620       It turns out openssl keeps its errors around -- so if an error
621       happens, and you don't ask about it, and then another openssl
622       operation happens and succeeds, and you ask if there was an error,
623       it tells you about the first error.
624     - Fix a bug that's been lurking since 27 may 03 (!)
625       When passing back a destroy cell, we would use the wrong circ id.
626     - Don't crash if a conn that sent a begin has suddenly lost its circuit.
627     - Some versions of openssl have an SSL_pending function that erroneously
628       returns bytes when there is a non-application record pending.
629     - Win32 fixes. Tor now compiles on win32 with no warnings/errors.
630       o We were using an array of length zero in a few places.
631       o Win32's gethostbyname can't resolve an IP to an IP.
632       o Win32's close can't close a socket.
633       o Handle windows socket errors correctly.
634   o Portability:
635     - check for <sys/limits.h> so we build on FreeBSD again, and
636       <machine/limits.h> for NetBSD.
639 Changes in version 0.0.5 - 2004-03-30
640   o Install torrc as torrc.sample -- we no longer clobber your
641     torrc. (Woo!)
642   o Fix mangled-state bug in directory fetching (was causing sigpipes).
643   o Only build circuits after we've fetched the directory: clients were
644     using only the directory servers before they'd fetched a directory.
645     This also means longer startup time; so it goes.
646   o Fix an assert trigger where an OP would fail to handshake, and we'd
647     expect it to have a nickname.
648   o Work around a tsocks bug: do a socks reject when AP connection dies
649     early, else tsocks goes into an infinite loop.
650   o Hold socks connection open until reply is flushed (if possible)
651   o Make exit nodes resolve IPs to IPs immediately, rather than asking
652     the dns farm to do it.
653   o Fix c99 aliasing warnings in rephist.c
654   o Don't include server descriptors that are older than 24 hours in the
655     directory.
656   o Give socks 'reject' replies their whole 15s to attempt to flush,
657     rather than seeing the 60s timeout and assuming the flush had failed.
658   o Clean automake droppings from the cvs repository
659   o Add in a 'notice' log level for things the operator should hear
660     but that aren't warnings
663 Changes in version 0.0.4 - 2004-03-26
664   o When connecting to a dirserver or OR and the network is down,
665     we would crash.
668 Changes in version 0.0.3 - 2004-03-26
669   o Warn and fail if server chose a nickname with illegal characters
670   o Port to Solaris and Sparc:
671     - include missing header fcntl.h
672     - have autoconf find -lsocket -lnsl automatically
673     - deal with hardware word alignment
674     - make uname() work (solaris has a different return convention)
675     - switch from using signal() to sigaction()
676   o Preliminary work on reputation system:
677     - Keep statistics on success/fail of connect attempts; they're published
678       by kill -USR1 currently.
679     - Add a RunTesting option to try to learn link state by creating test
680       circuits, even when SocksPort is off.
681     - Remove unused open circuits when there are too many.
684 Changes in version 0.0.2 - 2004-03-19
685     - Include strlcpy and strlcat for safer string ops
686     - define INADDR_NONE so we compile (but still not run) on solaris
689 Changes in version 0.0.2pre27 - 2004-03-14
690   o Bugfixes:
691     - Allow internal tor networks (we were rejecting internal IPs,
692       now we allow them if they're set explicitly).
693     - And fix a few endian issues.
696 Changes in version 0.0.2pre26 - 2004-03-14
697   o New features:
698     - If a stream times out after 15s without a connected cell, don't
699       try that circuit again: try a new one.
700     - Retry streams at most 4 times. Then give up.
701     - When a dirserver gets a descriptor from an unknown router, it
702       logs its fingerprint (so the dirserver operator can choose to
703       accept it even without mail from the server operator).
704     - Inform unapproved servers when we reject their descriptors.
705     - Make tor build on Windows again. It works as a client, who knows
706       about as a server.
707     - Clearer instructions in the torrc for how to set up a server.
708     - Be more efficient about reading fd's when our global token bucket
709       (used for rate limiting) becomes empty.
710   o Bugfixes:
711     - Stop asserting that computers always go forward in time. It's
712       simply not true.
713     - When we sent a cell (e.g. destroy) and then marked an OR connection
714       expired, we might close it before finishing a flush if the other
715       side isn't reading right then.
716     - Don't allow dirservers to start if they haven't defined
717       RecommendedVersions
718     - We were caching transient dns failures. Oops.
719     - Prevent servers from publishing an internal IP as their address.
720     - Address a strcat vulnerability in circuit.c
723 Changes in version 0.0.2pre25 - 2004-03-04
724   o New features:
725     - Put the OR's IP in its router descriptor, not its fqdn. That way
726       we'll stop being stalled by gethostbyname for nodes with flaky dns,
727       e.g. poblano.
728   o Bugfixes:
729     - If the user typed in an address that didn't resolve, the server
730       crashed.
733 Changes in version 0.0.2pre24 - 2004-03-03
734   o Bugfixes:
735     - Fix an assertion failure in dns.c, where we were trying to dequeue
736       a pending dns resolve even if it wasn't pending
737     - Fix a spurious socks5 warning about still trying to write after the
738       connection is finished.
739     - Hold certain marked_for_close connections open until they're finished
740       flushing, rather than losing bytes by closing them too early.
741     - Correctly report the reason for ending a stream
742     - Remove some duplicate calls to connection_mark_for_close
743     - Put switch_id and start_daemon earlier in the boot sequence, so it
744       will actually try to chdir() to options.DataDirectory
745     - Make 'make test' exit(1) if a test fails; fix some unit tests
746     - Make tor fail when you use a config option it doesn't know about,
747       rather than warn and continue.
748     - Make --version work
749     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
752 Changes in version 0.0.2pre23 - 2004-02-29
753   o New features:
754     - Print a statement when the first circ is finished, so the user
755       knows it's working.
756     - If a relay cell is unrecognized at the end of the circuit,
757       send back a destroy. (So attacks to mutate cells are more
758       clearly thwarted.)
759     - New config option 'excludenodes' to avoid certain nodes for circuits.
760     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
761       so you can collect coredumps there.
762  o Bugfixes:
763     - Fix a bug in tls flushing where sometimes data got wedged and
764       didn't flush until more data got sent. Hopefully this bug was
765       a big factor in the random delays we were seeing.
766     - Make 'connected' cells include the resolved IP, so the client
767       dns cache actually gets populated.
768     - Disallow changing from ORPort=0 to ORPort>0 on hup.
769     - When we time-out on a stream and detach from the circuit, send an
770       end cell down it first.
771     - Only warn about an unknown router (in exitnodes, entrynodes,
772       excludenodes) after we've fetched a directory.
775 Changes in version 0.0.2pre22 - 2004-02-26
776   o New features:
777     - Servers publish less revealing uname information in descriptors.
778     - More memory tracking and assertions, to crash more usefully when
779       errors happen.
780     - If the default torrc isn't there, just use some default defaults.
781       Plus provide an internal dirservers file if they don't have one.
782     - When the user tries to use Tor as an http proxy, give them an http
783       501 failure explaining that we're a socks proxy.
784     - Dump a new router.desc on hup, to help confused people who change
785       their exit policies and then wonder why router.desc doesn't reflect
786       it.
787     - Clean up the generic tor.sh init script that we ship with.
788   o Bugfixes:
789     - If the exit stream is pending on the resolve, and a destroy arrives,
790       then the stream wasn't getting removed from the pending list. I
791       think this was the one causing recent server crashes.
792     - Use a more robust poll on OSX 10.3, since their poll is flaky.
793     - When it couldn't resolve any dirservers, it was useless from then on.
794       Now it reloads the RouterFile (or default dirservers) if it has no
795       dirservers.
796     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
797       many users don't even *have* a /usr/local/sbin/.
800 Changes in version 0.0.2pre21 - 2004-02-18
801   o New features:
802     - There's a ChangeLog file that actually reflects the changelog.
803     - There's a 'torify' wrapper script, with an accompanying
804       tor-tsocks.conf, that simplifies the process of using tsocks for
805       tor. It even has a man page.
806     - The tor binary gets installed to sbin rather than bin now.
807     - Retry streams where the connected cell hasn't arrived in 15 seconds
808     - Clean up exit policy handling -- get the default out of the torrc,
809       so we can update it without forcing each server operator to fix
810       his/her torrc.
811     - Allow imaps and pop3s in default exit policy
812   o Bugfixes:
813     - Prevent picking middleman nodes as the last node in the circuit
816 Changes in version 0.0.2pre20 - 2004-01-30
817   o New features:
818     - We now have a deb package, and it's in debian unstable. Go to
819       it, apt-getters. :)
820     - I've split the TotalBandwidth option into BandwidthRate (how many
821       bytes per second you want to allow, long-term) and
822       BandwidthBurst (how many bytes you will allow at once before the cap
823       kicks in).  This better token bucket approach lets you, say, set
824       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
825       performance while not exceeding your monthly bandwidth quota.
826     - Push out a tls record's worth of data once you've got it, rather
827       than waiting until you've read everything waiting to be read. This
828       may improve performance by pipelining better. We'll see.
829     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
830       from failed circuits (if they haven't been connected yet) and attach
831       to new ones.
832     - Expire old streams that haven't managed to connect. Some day we'll
833       have them reattach to new circuits instead.
835   o Bugfixes:
836     - Fix several memory leaks that were causing servers to become bloated
837       after a while.
838     - Fix a few very rare assert triggers. A few more remain.
839     - Setuid to User _before_ complaining about running as root.
842 Changes in version 0.0.2pre19 - 2004-01-07
843   o Bugfixes:
844     - Fix deadlock condition in dns farm. We were telling a child to die by
845       closing the parent's file descriptor to him. But newer children were
846       inheriting the open file descriptor from the parent, and since they
847       weren't closing it, the socket never closed, so the child never read
848       eof, so he never knew to exit. Similarly, dns workers were holding
849       open other sockets, leading to all sorts of chaos.
850     - New cleaner daemon() code for forking and backgrounding.
851     - If you log to a file, it now prints an entry at the top of the
852       logfile so you know it's working.
853     - The onionskin challenge length was 30 bytes longer than necessary.
854     - Started to patch up the spec so it's not quite so out of date.
857 Changes in version 0.0.2pre18 - 2004-01-02
858   o Bugfixes:
859     - Fix endian issues with the 'integrity' field in the relay header.
860     - Fix a potential bug where connections in state
861       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
864 Changes in version 0.0.2pre17 - 2003-12-30
865   o Bugfixes:
866     - Made --debuglogfile (or any second log file, actually) work.
867     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
868       adversary could force us into an infinite loop.
870   o Features:
871     - Each onionskin handshake now includes a hash of the computed key,
872       to prove the server's identity and help perfect forward secrecy.
873     - Changed cell size from 256 to 512 bytes (working toward compatibility
874       with MorphMix).
875     - Changed cell length to 2 bytes, and moved it to the relay header.
876     - Implemented end-to-end integrity checking for the payloads of
877       relay cells.
878     - Separated streamid from 'recognized' (otherwise circuits will get
879       messed up when we try to have streams exit from the middle). We
880       use the integrity-checking to confirm that a cell is addressed to
881       this hop.
882     - Randomize the initial circid and streamid values, so an adversary who
883       breaks into a node can't learn how many circuits or streams have
884       been made so far.
887 Changes in version 0.0.2pre16 - 2003-12-14
888   o Bugfixes:
889     - Fixed a bug that made HUP trigger an assert
890     - Fixed a bug where a circuit that immediately failed wasn't being
891       counted as a failed circuit in counting retries.
893   o Features:
894     - Now we close the circuit when we get a truncated cell: otherwise we're
895       open to an anonymity attack where a bad node in the path truncates
896       the circuit and then we open streams at him.
897     - Add port ranges to exit policies
898     - Add a conservative default exit policy
899     - Warn if you're running tor as root
900     - on HUP, retry OR connections and close/rebind listeners
901     - options.EntryNodes: try these nodes first when picking the first node
902     - options.ExitNodes: if your best choices happen to include any of
903       your preferred exit nodes, you choose among just those preferred
904       exit nodes.
905     - options.ExcludedNodes: nodes that are never picked in path building
908 Changes in version 0.0.2pre15 - 2003-12-03
909   o Robustness and bugfixes:
910     - Sometimes clients would cache incorrect DNS resolves, which would
911       really screw things up.
912     - An OP that goes offline would slowly leak all its sockets and stop
913       working.
914     - A wide variety of bugfixes in exit node selection, exit policy
915       handling, and processing pending streams when a new circuit is
916       established.
917     - Pick nodes for a path only from those the directory says are up
918     - Choose randomly from all running dirservers, not always the first one
919     - Increase allowed http header size for directory fetch.
920     - Stop writing to stderr (if we're daemonized it will be closed).
921     - Enable -g always, so cores will be more useful to me.
922     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
924   o Documentation:
925     - Wrote a man page. It lists commonly used options.
927   o Configuration:
928     - Change default loglevel to warn.
929     - Make PidFile default to null rather than littering in your CWD.
930     - OnionRouter config option is now obsolete. Instead it just checks
931       ORPort>0.
932     - Moved to a single unified torrc file for both clients and servers.
935 Changes in version 0.0.2pre14 - 2003-11-29
936   o Robustness and bugfixes:
937     - Force the admin to make the DataDirectory himself
938       - to get ownership/permissions right
939       - so clients no longer make a DataDirectory and then never use it
940     - fix bug where a client who was offline for 45 minutes would never
941       pull down a directory again
942     - fix (or at least hide really well) the dns assert bug that was
943       causing server crashes
944     - warnings and improved robustness wrt clockskew for certs
945     - use the native daemon(3) to daemonize, when available
946     - exit if bind() fails
947     - exit if neither socksport nor orport is defined
948     - include our own tor_timegm (Win32 doesn't have its own)
949     - bugfix for win32 with lots of connections
950     - fix minor bias in PRNG
951     - make dirserver more robust to corrupt cached directory
953   o Documentation:
954     - Wrote the design document (woo)
956   o Circuit building and exit policies:
957     - Circuits no longer try to use nodes that the directory has told them
958       are down.
959     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
960       bitcounts (18.0.0.0/8).
961     - Make AP connections standby for a circuit if no suitable circuit
962       exists, rather than failing
963     - Circuits choose exit node based on addr/port, exit policies, and
964       which AP connections are standing by
965     - Bump min pathlen from 2 to 3
966     - Relay end cells have a payload to describe why the stream ended.
967     - If the stream failed because of exit policy, try again with a new
968       circuit.
969     - Clients have a dns cache to remember resolved addresses.
970     - Notice more quickly when we have no working circuits
972   o Configuration:
973     - APPort is now called SocksPort
974     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
975       where to bind
976     - RecommendedVersions is now a config variable rather than
977       hardcoded (for dirservers)
978     - Reloads config on HUP
979     - Usage info on -h or --help
980     - If you set User and Group config vars, it'll setu/gid to them.
982 Changes in version 0.0.2pre13 - 2003-10-19
983   o General stability:
984     - SSL_write no longer fails when it returns WANTWRITE and the number
985       of bytes in the buf has changed by the next SSL_write call.
986     - Fix segfault fetching directory when network is down
987     - Fix a variety of minor memory leaks
988     - Dirservers reload the fingerprints file on HUP, so I don't have
989       to take down the network when I approve a new router
990     - Default server config file has explicit Address line to specify fqdn
992   o Buffers:
993     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
994     - Make listener connections not ever alloc bufs
996   o Autoconf improvements:
997     - don't clobber an external CFLAGS in ./configure
998     - Make install now works
999     - create var/lib/tor on make install
1000     - autocreate a tor.sh initscript to help distribs
1001     - autocreate the torrc and sample-server-torrc with correct paths
1003   o Log files and Daemonizing now work:
1004     - If --DebugLogFile is specified, log to it at -l debug
1005     - If --LogFile is specified, use it instead of commandline
1006     - If --RunAsDaemon is set, tor forks and backgrounds on startup