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