aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2010-10-04Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2010-10-04Correct a bogus comment.Robert Ransom
Whether or not OpenSSL reference-counts SSL_CTX objects is irrelevant; what matters is that Tor reference-counts its wrapper objects for SSL_CTXs.
2010-10-04Correct a couple of log messages in tortls.cRobert Ransom
2010-10-04Fix several comments in tortls.cRobert Ransom
2010-10-01Initialize fd values in tor_port_check_forwarding to -1Nick Mathewson
2010-09-30Merge branch 'tor-fw-squashed2'Nick Mathewson
Conflicts: src/common/util.c
2010-09-30Fix space and formatting issuesNick Mathewson
2010-09-30Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2010-09-30#if-out the fw-helper code in util.c when building on windowsNick Mathewson
2010-09-30Start tor-fw-helper in the background, and log whatever it outputsSteven Murdoch
2010-09-30Fix check-spacesSebastian Hahn
2010-09-29make c612ddee compile with old libeventsRoger Dingledine
2010-09-28Autodetect the number of CPUs when possible if NumCPUs==0Nick Mathewson
This is needed for IOCP, since telling the IOCP backend about all your CPUs is a good idea. It'll also come in handy with asn's multithreaded crypto stuff, and for people who run servers without reading the manual.
2010-09-28Add a new option to enable/disable IOCP supportNick Mathewson
2010-09-27Merge branch 'bufferevent5'Nick Mathewson
2010-09-27Make the bufferevent code use the renegotiation-reenabling hackNick Mathewson
2010-09-27Merge remote branch 'public/bug1954' into maint-0.2.2Nick Mathewson
2010-09-27Always defer bufferevent_openssl callbacks to avoid reentrant invocationsNick Mathewson
2010-09-27Fix whitespace in bufferevents branchNick Mathewson
2010-09-27Document and/or fix stuff found by Sebastian in code reviewNick Mathewson
Thanks to Sebastian for his code-review of the bufferevents patch series.x
2010-09-27Some bufferevents related fixes and pointers for nickmSebastian Hahn
2010-09-27Convert bufferevents to use rate-limiting.Nick Mathewson
This requires the latest Git version of Libevent as of 24 March 2010. In the future, we'll just say it requires Libevent 2.0.5-alpha or later. Since Libevent doesn't yet support hierarchical rate limit groups, there isn't yet support for tracking relayed-bytes separately when using the bufferevent system. If a future version does add support for hierarchical buckets, we can add that back in.
2010-09-27Documentation for a few bufferevent functions.Nick Mathewson
2010-09-27Get SSL connections and linked connections working with bufferevents.Nick Mathewson
Clients are now verified to work and build circuits correctly. There are still a few warnings given here and there that I need to look into.
2010-09-27Teach read_event/write_event manipulators about bufferevents.Nick Mathewson
Add an --enable-bufferevents config switch.
2010-09-24Consistency issues in load_windows_system_library patch. Thanks SebastianNick Mathewson
2010-09-24Merge remote branch 'sebastian/continuation'Nick Mathewson
2010-09-24Note that the torrc format doesn't need nl at endSebastian Hahn
2010-09-23Tweak continuation-and-comment logicNick Mathewson
I think there was a read-off-the-end-of-the-buffer bug that I fixed. At least I added some good comments, I hope.
2010-09-21New function to load windows system librariesNick Mathewson
This function uses GetSystemDirectory() to make sure we load the version of the library from c:\windows\system32 (or local equivalent) rather than whatever version lives in the cwd.
2010-09-14Add a simple integer-ceiling-division macro before we get it wrongNick Mathewson
2010-09-11Allow comments for multi-line torrc optionsSebastian Hahn
2010-09-10Support mutli-line torrc options via the usual backslash syntaxNick Mathewson
2010-09-06Merge remote branch 'public/win_unicode_fixes'Nick Mathewson
2010-08-31Fix some issues in rate-limiting noticed by SebastianNick Mathewson
2010-08-20Make the windows build succeed with or without -DUNICODE enabled.Nick Mathewson
This should keep WinCE working (unicode always-on) and get Win98 working again (unicode never-on). There are two places where we explicitly use ASCII-only APIs, still: in ntmain.c and in the unit tests. This patch also fixes a bug in windoes tor_listdir that would cause the first file to be listed an arbitrary number of times that was also introduced with WinCE support. Should fix bug 1797.
2010-08-18Add a generic rate-limited log mechanism, and use it in a few placesNick Mathewson
Incidentally fixes bug 1042.
2010-08-03Merge commit 'sebastian/mlockall'Nick Mathewson
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-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-06-29Merge remote branch 'public/rand_double2'Nick Mathewson
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-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