aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* Merge branch 'bug8240_v2_squashed' into maint-0.2.4Nick Mathewson2013-03-19
|\ | | | | | | | | | | | | | | Conflicts: doc/tor.1.txt src/or/circuitbuild.c src/or/config.c src/or/or.h
| * Make the guard lifetime configurable and adjustable via the consensusNick Mathewson2013-03-19
| | | | | | | | | | | | | | Fixes 8240. (Don't actually increase the default guard lifetime. It seems likely to break too many things if done precipitiously.)
* | Merge remote-tracking branch 'public/bug7950' into maint-0.2.4Nick Mathewson2013-03-19
|\ \
| * | Make a parse_config_line_from_str variant that gives error messagesNick Mathewson2013-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this patch, there's no way to know what went wrong when we fail to parse a torrc line entirely (that is, we can't turn it into a K,V pair.) This patch introduces a new function that yields an error message on failure, so we can at least tell the user what to look for in their nonfunctional torrc. (Actually, it's the same function as before with a new name: parse_config_line_from_str is now a wrapper macro that the unit tests use.) Fixes bug 7950; fix on 0.2.0.16-alpha (58de695f9062576f) which first introduced the possibility of a torrc value not parsing correctly.
* | | Merge remote-tracking branch 'public/bug8002' into maint-0.2.4Nick Mathewson2013-03-19
|\ \ \
| * | | Check for CPUs more accurartely when ONLN != CONF.Nick Mathewson2013-02-19
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | There are two ways to use sysconf to ask about the number of CPUs. When we're on a VM, we would sometimes get it wrong by asking for the number of total CPUs (say, 64) when we should have been asking for the number of CPUs online (say, 1 or 2). Fix for bug 8002.
* | | Fix another case of bug 8206; patch from flupzorNick Mathewson2013-03-18
| | |
* | | Merge remote-tracking branch 'public/bug6673' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \
| * | | Give an #error when we want threads and OpenSSL has disabled threadsNick Mathewson2013-03-11
| | | | | | | | | | | | | | | | Fixes ticket 6673.
* | | | Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/test/test_addr.c
| * | | | Make sure that [::1] is recognized as a private addressNick Mathewson2013-03-01
| | |_|/ | |/| | | | | | | | | | Fixes bug 8377; bugfix on 0.2.1.3-alpha.
* | | | Check return values from fcntl and setsockoptNick Mathewson2013-03-18
| | | | | | | | | | | | | | | | (Based on a patch from flupzor; bug #8206)
* | | | Merge remote-tracking branch 'public/unused_stuff' into maint-0.2.4Nick Mathewson2013-03-15
|\ \ \ \ | |_|/ / |/| | |
| * | | Remove some functions which were unused except for their testsNick Mathewson2013-02-23
| | | |
| * | | Remove some totally unused functionsNick Mathewson2013-02-23
| | | |
| * | | Remove a bunch of unused macro definitionsNick Mathewson2013-02-23
| | |/ | |/|
* / | start part-way through the ssl cert lifetimeRoger Dingledine2013-03-10
|/ / | | | | | | | | also, snap the start time and end time to a day boundary, since most certs in the wild seem to do this.
* | Make _SC_OPEN_MAX actually get used when closing fds before exec.Nick Mathewson2013-02-11
| | | | | | | | Fixes bug 8209; bugfix on 0.2.3.1-alpha.
* | Merge remote-tracking branch 'public/bug7801_v2'Nick Mathewson2013-02-11
|\ \
| * | Improve comment at Andrea's requestNick Mathewson2013-02-08
| | |
| * | Fix numerous problems with Tor's weak RNG.Nick Mathewson2013-02-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need a weak RNG in a couple of places where the strong RNG is both needless and too slow. We had been using the weak RNG from our platform's libc implementation, but that was problematic (because many platforms have exceptionally horrible weak RNGs -- like, ones that only return values between 0 and SHORT_MAX) and because we were using it in a way that was wrong for LCG-based weak RNGs. (We were counting on the low bits of the LCG output to be as random as the high ones, which isn't true.) This patch adds a separate type for a weak RNG, adds an LCG implementation for it, and uses that exclusively where we had been using the platform weak RNG.
* | | Merge remote-tracking branch 'public/signof_enum'Nick Mathewson2013-02-08
|\ \ \ | |/ / |/| |
| * | Have autoconf check whether enums are signed.Nick Mathewson2013-02-07
| | | | | | | | | | | | Fixes bug 7727; fix on 0.2.4.10-alpha.
* | | Merge remote-tracking branch 'public/easy_ratelim'Nick Mathewson2013-02-07
|\ \ \ | |/ / |/| | | | | | | | Conflicts: src/or/connection.c
| * | Wrapper function for the common rate-limited-log pattern.Nick Mathewson2012-12-26
| | |
* | | Merge remote-tracking branch 'public/bug7816_023'Nick Mathewson2013-02-07
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: src/common/util.c
| * | | Fix various small leaks on error casesNick Mathewson2012-12-28
| | |/ | |/| | | | | | | Spotted by coverity, bug 7816, bugfix on various versions.
* | | Tolerate curve25519 backends where the high bit of the pk isn't ignoredNick Mathewson2013-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now, all our curve25519 backends ignore the high bit of the public key. But possibly, others could treat the high bit of the public key as encoding out-of-bounds values, or as something to be preserved. This could be used to distinguish clients with different backends, at the cost of killing a circuit. As a workaround, let's just clear the high bit of each public key indiscriminately before we use it. Fix for bug 8121, reported by rransom. Bugfix on 0.2.4.8-alpha.
* | | Fix compilation with --disable-curve25519 optionNick Mathewson2013-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | The fix is to move the two functions to format/parse base64 curve25519 public keys into a new "crypto_format.c" file. I could have put them in crypto.c, but that's a big file worth splitting anyway. Fixes bug 8153; bugfix on 0.2.4.8-alpha where I did the fix for 7869.
* | | fix wide lines from tor_log renameNick Mathewson2013-02-01
| | |
* | | Fix a silly mistake in the tor_mathlog() documentation. Give it a unit test.Nick Mathewson2013-02-01
| | |
* | | Remove old wrapper code and defines for keeping log() and log(3) apartNick Mathewson2013-02-01
| | | | | | | | | | | | This is the non-automated portion of bug 7599.
* | | Rename log() to tor_log() for loggingNick Mathewson2013-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is meant to avoid conflict with the built-in log() function in math.h. It resolves ticket 7599. First reported by dhill. This was generated with the following perl script: #!/usr/bin/perl -w -i -p s/\blog\(LOG_(ERR|WARN|NOTICE|INFO|DEBUG)\s*,\s*/log_\L$1\(/g; s/\blog\(/tor_log\(/g;
* | | typo in crypto_curve25519.c comment, spotted by rransomNick Mathewson2013-01-31
| | |
* | | whitespace fixNick Mathewson2013-01-31
| | |
* | | Detect platforms where memset(0) doesn't set doubles to 0.0.Nick Mathewson2013-01-29
| | | | | | | | | | | | | | | | | | | | | This is allowed by the C statndard, which permits you to represent doubles any way you like, but in practice we have some code that assumes that memset() clears doubles in structs. Noticed as part of 7802 review; see 8081 for more info.
* | | More of b30d06255c24165 for #6826: fix compat_libevent compilationNick Mathewson2013-01-21
| | | | | | | | | | | | | | | | | | | | | | | | It looks like there was a compilation error for 6826 on some platforms. Removing even more now-uncallable code to handle detecting libevent versions before 1.3e. Fixes bug 8012; bug not in any released Tor.
* | | Replace base-{16,32,64} with base{16,32,64} in the codeNick Mathewson2013-01-17
| | | | | | | | | | | | | | | | | | | | | | | | Patch from onizuka generated with find ./ -type f -perm -u+rw -exec sed -ri 's/(Base)-(16|32|64)/\1\2/gi' {} \; Fixes issue 6875 on Tor.
* | | Add ntor-related modules to the Makefiles.nmakeNick Mathewson2013-01-17
| | |
* | | Even more code-removal for 6826Nick Mathewson2013-01-17
| | | | | | | | | | | | (Pull on a thread and the whole sweater unravels.)
* | | Merge branch 'bug6826_squashed'Nick Mathewson2013-01-17
|\ \ \
| * | | Drop detection logic for pre-1.3 busted libeventsNick Mathewson2013-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This won't actually break them any worse than they were broken before: it just removes a set of warnings that nobody was actually seeing, I hope. Closes 6826
* | | | Merge remote-tracking branch 'public/bug6302'Nick Mathewson2013-01-17
|\ \ \ \
| * | | | Refactor: Use SOCK_ERRNO to avoid some #ifdef _WIN32sNick Mathewson2013-01-16
| |/ / / | | | | | | | | | | | | Fixes ticket 6302
* | | | Merge branch '024_msvc_squashed'Nick Mathewson2013-01-16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/or.h srcwin32/orconfig.h
| * | | | Fix an instance of snprintf; don't use _snprintf directlyNick Mathewson2013-01-16
| | | | |
| * | | | When building with MSVC, call every enum bitfield unsignedNick Mathewson2013-01-16
| | | | | | | | | | | | | | | | | | | | Fixes bug 7305.
| * | | | Fix a const warning under msvcNick Mathewson2013-01-16
| | | | |
| * | | | Add clean target and test subdir to makefile.nmakeNick Mathewson2013-01-16
| | | | |
| * | | | Add missing includes and libs to makefile.nmakeNick Mathewson2013-01-16
| | | | | | | | | | | | | | | | | | | | Fixes bugs 7312 and 7310.