aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2010-11-21
|\
| * Do not set the hostname TLS extension server-side; only client-sideNick Mathewson2010-11-20
| | | | | | | | | | This may fix bug 2204, and resolve the incompatibility with openssl 0.9.8p/1.0.0b.
* | Properly refcount client_identity_keySebastian Hahn2010-10-26
| | | | | | | | | | | | | | | | | | | | In a2bb0bf we started using a separate client identity key. When we are in "public server mode" (that means not a bridge) we will use the same key. Reusing the key without doing the proper refcounting leads to a segfault on cleanup during shutdown. Fix that. Also introduce an assert that triggers if our refcount falls below 0. That should never happen.
* | Maintain separate server and client TLS contexts.Robert Ransom2010-10-04
| | | | | | | | Fixes bug #988.
* | Refactor tor_tls_context_new:Robert Ransom2010-10-04
| | | | | | | | | | | | | | * Make tor_tls_context_new internal to tortls.c, and return the new tor_tls_context_t from it. * Add a public tor_tls_context_init wrapper function to replace it.
* | Correct a bogus comment.Robert Ransom2010-10-04
| | | | | | | | | | | | Whether or not OpenSSL reference-counts SSL_CTX objects is irrelevant; what matters is that Tor reference-counts its wrapper objects for SSL_CTXs.
* | Correct a couple of log messages in tortls.cRobert Ransom2010-10-04
| |
* | Fix several comments in tortls.cRobert Ransom2010-10-04
| |
* | Fix check-spacesSebastian Hahn2010-09-30
| |
* | Merge remote branch 'public/bug1954' into maint-0.2.2Nick Mathewson2010-09-27
|\ \
| * | Consistency issues in load_windows_system_library patch. Thanks SebastianNick Mathewson2010-09-24
| | |
| * | New function to load windows system librariesNick Mathewson2010-09-21
| | | | | | | | | | | | | | | | | | 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.
* | | Merge remote branch 'sebastian/continuation'Nick Mathewson2010-09-24
|\ \ \ | |/ / |/| |
| * | Note that the torrc format doesn't need nl at endSebastian Hahn2010-09-24
| | |
| * | Tweak continuation-and-comment logicNick Mathewson2010-09-23
| | | | | | | | | | | | | | | 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.
| * | Allow comments for multi-line torrc optionsSebastian Hahn2010-09-11
| | |
| * | Support mutli-line torrc options via the usual backslash syntaxNick Mathewson2010-09-10
| | |
* | | Add a simple integer-ceiling-division macro before we get it wrongNick Mathewson2010-09-14
|/ /
* | Merge remote branch 'public/win_unicode_fixes'Nick Mathewson2010-09-06
|\ \
| * | Make the windows build succeed with or without -DUNICODE enabled.Nick Mathewson2010-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Fix some issues in rate-limiting noticed by SebastianNick Mathewson2010-08-31
| | |
* | | Add a generic rate-limited log mechanism, and use it in a few placesNick Mathewson2010-08-18
|/ / | | | | | | Incidentally fixes bug 1042.
* | Merge commit 'sebastian/mlockall'Nick Mathewson2010-08-03
|\ \
| * | Remove the request for current memlock limitsSebastian Hahn2010-02-28
| | | | | | | | | | | | | | | The getrlimit call didn't have any effect. Also make some logging less verbose on default log level, and refactor a bit.
* | | whitespace fixSebastian Hahn2010-07-27
| | |
* | | Fix compilation with mingw and OpenSSL 0.9.8m+mingw-san2010-07-26
| | |
* | | Make sure we don't warn for libevent versions like 1.4.14b-stableSebastian Hahn2010-07-26
| | |
* | | Rename log.h to torlog.hNick Mathewson2010-07-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/; }'
* | | Merge remote branch 'public/rand_double2'Nick Mathewson2010-06-29
|\ \ \
| * | | Make cbt_generate_sample use crypto_rand_double()Nick Mathewson2010-06-25
| | | | | | | | | | | | | | | | Possible workaround for bug 1139, if anybody cares.
| * | | Add a function to return a double in range [0,1).Nick Mathewson2010-06-22
| | | |
* | | | Merge branch 'bug1526-v2'Nick Mathewson2010-06-25
|\ \ \ \
| * | | | Fix zlib macro brokenness on osx with zlib 1.2.4 and higher.Nick Mathewson2010-06-22
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Fix a compile error when building with Libevent before 1.4.5-stableNick Mathewson2010-06-25
| | | | | | | | | | | | | | | | | | | | Older versions of Libevent forgot to declare enough function arguments constant.
* | | | Use Libevent 2.0's periodic timers where available.Nick Mathewson2010-06-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Log an error if openssl fails to copy a key for usNick Mathewson2010-06-22
| |/ / |/| | | | | | | | | | | | | | | | | 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.
* | | Save a couple characters' allocation in esc_for_logFlorian Zumbiehl2010-06-14
| | |
* | | Reinstate warning when HOME isn't set.Nick Mathewson2010-06-07
| | | | | | | | | | | | | | | | | | | | | Having ~/.tor expand into /.tor is, after all, almost certainly not what the user wanted, and it deserves a warning message. Also, convert a guess-and-malloc-and-sprintf triple into an asprintf.
* | | Treat unset $HOME like empty $HOMESebastian Hahn2010-06-07
| | | | | | | | | | | | This means Tor no longer dies when it doesn't have a $HOME.
* | | Make pointer types correct in WinCE patchNick Mathewson2010-05-24
| | |
* | | moved wince related includes and defs to compat.h where possible, removed ↵valerino2010-05-24
| | | | | | | | | | | | unused/redundant wince includes
* | | Port Tor to work on Windows CEvalerino2010-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the changes here are switches to use APIs available on Windows CE. The most pervasive change is that Windows CE only provides the wide-character ("FooW") variants of most of the windows function, and doesn't support the older ASCII verions at all. This patch will require use of the wcecompat library to get working versions of the posix-style fd-based file IO functions. [commit message by nickm]
* | | Demote a warning about missing client ciphersSebastian Hahn2010-04-20
| | |
* | | minor cleanupsRoger Dingledine2010-04-20
| | |
* | | Fix a compilation warning on compat_libevent.c on some versions of windows ↵Nick Mathewson2010-04-19
| | | | | | | | | | | | libevent
* | | Fix two compile-blockers in tor_vasprintf().Nick Mathewson2010-04-19
| | | | | | | | | | | | | | | | | | | | | 1) mingw doesn't have _vscprintf(); mingw instead has a working snprintf. 2) windows compilers that _do_ have a working _vscprintf spell it so; they do not spell it _vcsprintf().
* | | Merge commit 'origin/maint-0.2.1'Nick Mathewson2010-04-15
|\| |
| * | Fix renegotiation on OpenSSL versions that backport RFC5746.Nick Mathewson2010-04-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our code assumed that any version of OpenSSL before 0.9.8l could not possibly require SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION. This is so... except that many vendors have backported the flag from later versions of openssl when they backported the RFC5476 renegotiation feature. The new behavior is particularly annoying to detect. Previously, leaving SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION unset meant that clients would fail to renegotiate. People noticed that one fast! Now, OpenSSL's RFC5476 support means that clients will happily talk to any servers there are, but servers won't accept renegotiation requests from unpatched clients unless SSL_OP_ALLOW_etc is set. More fun: servers send back a "no renegotiation for you!" error, which unpatched clients respond to by stalling, and generally producing no useful error message. This might not be _the_ cause of bug 1346, but it is quite likely _a_ cause for bug 1346.
* | | Merge branch 'asprintf'Nick Mathewson2010-04-02
|\ \ \
| * | | better handle the case where *strp is in asprintf argsNick Mathewson2010-02-28
| | | |