aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* 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
| | | |
| * | | Add a tor_asprintf() function, and use it in a couple of places.Nick Mathewson2010-02-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asprintf() is a GNU extension that some BSDs have picked up: it does a printf into a newly allocated chunk of RAM. Our tor_asprintf() differs from standard asprintf() in that: - Like our other malloc functions, it asserts on OOM. - It works on windows. - It always sets its return-field.
* | | | commit my annotations while i was hunting down the host order bugRoger Dingledine2010-03-05
| |_|/ |/| |
* | | Update copyright dates for files not in maint-0.2.1Nick Mathewson2010-02-27
| | |
* | | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-02-27
|\ \ \ | | |/ | |/| | | | | | | | | | Conflicts: src/common/test.h src/or/test.c
| * | Update Tor Project copyright yearsNick Mathewson2010-02-27
| | |
| * | Zero a cipher completely before freeing itSebastian Hahn2010-02-26
| | | | | | | | | | | | | | | | | | We used to only zero the first ptrsize bytes of the cipher. Since cipher is large enough, we didn't zero too many bytes. Discovered and fixed by ekir. Fixes bug 1254.
* | | Add the MIN and MAX macros for platforms that lack themNick Mathewson2010-02-25
| | |
* | | Fix 64-bit printf issues in consensus-bw-weights5-merge.Nick Mathewson2010-02-25
| | | | | | | | | | | | | | | | | | | | | | | | For my 64-bit Linux system running with GCC 4.4.3-fc12-whatever, you can't do 'printf("%lld", (int64_t)x);' Instead you need to tell the compiler 'printf("%lld", (long long int)x);' or else it doesn't believe the types match. This is why we added U64_PRINTF_ARG; it looks like we needed an I64_PRINTF_ARG too.