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