summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-07-27Create dirserv.hSebastian Hahn
2010-07-27Create directory.hSebastian Hahn
2010-07-27Create cpuworker.hSebastian Hahn
2010-07-27Create control.hSebastian Hahn
2010-07-27Create connection_or.hSebastian Hahn
2010-07-27Create connection_edge.hSebastian Hahn
2010-07-27Create connection.hSebastian Hahn
2010-07-27Create config.hSebastian Hahn
2010-07-27Create command.hSebastian Hahn
2010-07-27Create circuituse.hSebastian Hahn
2010-07-27Create circuitlist.hSebastian Hahn
2010-07-27Create circuitbuild.hSebastian Hahn
2010-07-27Create buffers.hSebastian Hahn
2010-07-27Create rendservice.hSebastian Hahn
2010-07-27Create rendclient.hSebastian Hahn
2010-07-27Create rendcommon.hSebastian Hahn
2010-07-27Create routerlist.hSebastian Hahn
2010-07-27Create router.hSebastian Hahn
2010-07-27Create geoip.hSebastian Hahn
2010-07-27Split headers for dnsserv.c functions out of or.hSebastian Hahn
The next series of commits begins addressing the issue that we're currently including the complete or.h file in all of our source files. To change that, we're splitting function definitions into new header files (one header file per source file).
2010-07-27whitespace fixSebastian Hahn
2010-07-26Fix compilation with mingw and OpenSSL 0.9.8m+mingw-san
2010-07-26Make sure we don't warn for libevent versions like 1.4.14b-stableSebastian Hahn
2010-07-21mike needs DEFAULT_ROUTE_LEN in other filesRoger Dingledine
2010-07-21whitespace fixRoger Dingledine
2010-07-20naked constants are badRoger Dingledine
2010-07-18Fix getinfo_helper_networkstatus to return 0 on question-not-knownNick Mathewson
It erroneously returned -1 instead, which made it say "Internal error" rather than "Unrecognized key."
2010-07-18Make the controller act more usefully when GETINFO failsNick Mathewson
Right now it says "552 internal error" because there's no way for getinfo_helper_*() countries to specify an error message. This patch changes the getinfo_helper_*() interface, and makes most of the getinfo helpers give useful error messages in response to failures. This should prevent recurrences of bug 1699, where a missing GeoIPFile line in the torrc made GETINFO ip-to-county/* fail in a "not obvious how to fix" way.
2010-07-14Alter how guard flags are chosen.Mike Perry
V3 authorities no longer decide not to vote on Guard+Exit. The bandwidth weights should take care of this now. Also, lower the max threshold for WFU to 0.98, to allow more nodes to become guards.
2010-07-14print right controller purpose string for measure-timeout circsRoger Dingledine
2010-07-14No dirport should mean no hsdir flag (bug 1693)Roger Dingledine
2010-07-13bump to 0.2.2.14-alpha-devRoger Dingledine
2010-07-12bump to 0.2.2.14-alphator-0.2.2.14-alphaRoger Dingledine
2010-07-09Rename log.h to torlog.hNick Mathewson
This should make us conflict less with system files named "log.h". Yes, we shouldn't have been conflicting with those anyway, but some people's compilers act very oddly. The actual change was done with one "git mv", by editing Makefile.am, and running find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }'
2010-07-06More gracefully handle corrupt state files.Mike Perry
Save a backup if we get odd circuitbuildtimes and other state info. In the case of circuit build times, we no longer assert, and reset our state.
2010-07-06Fix unittest failure in bug 1660.Mike Perry
We now record large times as abandoned, to prevent a filter step from happening and skewing our results. Also, issue a warn for a rare case that can happen for funky values of Xm or too many abandoned circuits. Can happen (very rarely) during unit tests, but should not be possble during live operation, due to network liveness filters and discard logic.
2010-07-05Make directory mirrors report non-zero dirreq-v[23]-shares again.Karsten Loesing
2010-06-29Fix bugs with assuming time_t can be implicitly cast to longNick Mathewson
Many friendly operating systems have 64-bit times, and it's not nice to pass them to an %ld format. It's also extremely not-nice to write a time to the log as an integer. Most people think it's 2010 June 29 23:57 UTC+epsilon, not 1277855805+epsilon.
2010-06-29Merge remote branch 'public/rand_double2'Nick Mathewson
2010-06-29Merge remote branch 'mikeperry/cbt-bugfixes3'Nick Mathewson
2010-06-27Group in torrc is obsolete, so stop checking itRoger Dingledine
2010-06-25Make cbt_generate_sample use crypto_rand_double()Nick Mathewson
Possible workaround for bug 1139, if anybody cares.
2010-06-25Merge branch 'bug1526-v2'Nick Mathewson
2010-06-25Fix a compile error when building with Libevent before 1.4.5-stableNick Mathewson
Older versions of Libevent forgot to declare enough function arguments constant.
2010-06-25Use Libevent 2.0's periodic timers where available.Nick Mathewson
These timers behave better with non-monotonic clocks than our old ones, and also try harder to make once-per-second events get called one second apart, rather than one-plus-epsilon seconds apart. This fixes bug 943 for everybody using Libevent 2.0 or later.
2010-06-25Fix typo in tinytest_demoSteven Murdoch
2010-06-22Fix zlib macro brokenness on osx with zlib 1.2.4 and higher.Nick Mathewson
From the code: zlib 1.2.4 and 1.2.5 do some "clever" things with macros. Instead of saying "(defined(FOO) ? FOO : 0)" they like to say "FOO-0", on the theory that nobody will care if the compile outputs a no-such-identifier warning. Sorry, but we like -Werror over here, so I guess we need to define these. I hope that zlib 1.2.6 doesn't break these too. Possible fix for bug 1526.
2010-06-22Log an error if openssl fails to copy a key for usNick Mathewson
This should never happen unless openssl is buggy or some of our assumptions are deeply wrong, but one of those might have been the cause of the not-yet-reproducible bug 1209. If it ever happens again, let's get some info we can use.
2010-06-22Add a function to return a double in range [0,1).Nick Mathewson
2010-06-22Remove the extra space that is sent in certain STREAM messages from the ↵Kat Magic
controller. (closes #1583)