summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-05-11When no usable exit satisfies a predicted port, stop predicting it.Nick Mathewson
Fix for bug 3296.
2012-05-11Merge remote-tracking branch 'asn/bug4865_take2'Nick Mathewson
2012-05-11Merge remote-tracking branch 'public/bug5091'Nick Mathewson
2012-05-10Merge branch 'maint-0.2.2'Roger Dingledine
2012-05-10fix over-wide line from f661747370Roger Dingledine
2012-05-10Fix O(n^2) performance when parsing a big pile of extrainfosNick Mathewson
We were doing an O(n) strlen in router_get_extrainfo_hash() for every one we tried to parse. Instead, have router_get_extrainfo_hash() take the length of the extrainfo as an argument, so that when it's called from extrainfo_parse_from_string(), it doesn't do a strlen() over the whole pile of extrainfos.
2012-05-10Merge remote-tracking branch 'public/bug4591'Nick Mathewson
2012-05-10Merge branch 'bug5786'Nick Mathewson
2012-05-10Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/common/util.c src/test/test_util.c
2012-05-10Merge branch 'bug5786_range_022' into maint-0.2.2Nick Mathewson
2012-05-10Merge remote-tracking branch 'asn/bug5540'Nick Mathewson
2012-05-10Merge remote-tracking branch 'linus/bug5146'Nick Mathewson
2012-05-10Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2012-05-10Add changes/bug5760Ravi Chandra Padmala
2012-05-10Add missing CRLFs to AUTHCHALLENGE failure repliesRavi Chandra Padmala
Fix #5760
2012-05-08Fix a segfault in pt/protocol testNick Mathewson
Now that the pt code logs mp->argv[0] all over the place, we need to be sure to set up mp->argv in our tests. Bugfix on e603692adcd, not in any released version.
2012-05-07Detect out-of-bounds bwweightscale values early in the voting processNick Mathewson
If the authorities agreed on a sufficiently bad bwweightscale value (<=0 or == INT32_MAX), the bandwidth algorithm could make the voters assert while computing the consensus. Fix for bug5786; bugfix on 0.2.2.17-alpha
2012-05-07Check more thoroughly for dups when parsing networkstatus parametersNick Mathewson
See changes file for details. Partial fix for bug 5786; fix on 0.2.2.2-alpha.
2012-05-07Handle out-of-range values in tor_parse_* integer functionsNick Mathewson
The underlying strtoX functions handle overflow by saturating and setting errno to ERANGE. If the min/max arguments to the tor_parse_* functions are equal to the minimum/maximum of the underlying type, then with the old approach, we wouldn't treat a too-large value as genuinely broken. Found this while looking at bug 5786; bugfix on 19da1f36 (in Tor 0.0.9), which introduced these functions.
2012-05-07Apply a patch from Gisle Vanem to make tor-gencert build under MSVCNick Mathewson
(Note: It makes sense to use tor-gencert on Windows for testing purposes only. If you are a directory authority operator, and you are contemplating running tor-gencert on a Windows box in an actual production environment, you are probably making a mistake.)
2012-05-07Merge branch 'bug5645_take2'Nick Mathewson
2012-05-07Make a cast less const-violating; make a field size explicit.Nick Mathewson
2012-05-07Reorder rend_mid_rendezvous() to do protocol violation checks on top.George Kadianakis
2012-05-07Merge branch 'bug5070_take2'Nick Mathewson
2012-05-07Using %d to printf an enum may not be by-the-standard okay.Nick Mathewson
2012-05-07Fix an overwide lineNick Mathewson
2012-05-07Fix comments: There is no such thing as a NUL pointerNick Mathewson
2012-05-07Changes file for bug 5070Nick Mathewson
2012-05-07Document some transports.c behaviors and assumptionsNick Mathewson
2012-05-07fix quad typo in commentsRoger Dingledine
i assume if nickm maintained "libeven" this would never have been introduced. :)
2012-05-04Fix bug 5762: detect missing accept4 that gives ENOSYSNick Mathewson
We had been checking for EINVAL, but that means that SOCK_* isn't supported, not that the syscall itself is missing. Bugfix on 0.2.3.1-alpha, which started to use accept4.
2012-05-03Ignore [::] when building descriptors.Linus Nordberg
This is how IPv6 says "0.0.0.0" and something we will have to translate into a globally reachable address before putting it in a descriptor. The fix is a short term solution until a real one is implemented. Closes #5146.
2012-05-03Make transports.c logs a bit more helpful.George Kadianakis
2012-05-01Add a missing ntohl to tell_controller_about_resolve_resultNick Mathewson
Fix for bug 5723; bugfix on 0.2.3.1-alpha (commit 22f723e4)
2012-04-30bump to 0.2.3.15-alpha-devRoger Dingledine
2012-04-30bump to 0.2.3.15-alphator-0.2.3.15-alphaRoger Dingledine
2012-04-30fold in new changes entriesRoger Dingledine
2012-04-30Remove __ from HAVE_EXTERN_ENVIRON_DECLARED__Nick Mathewson
I think that the trailing __ got added in false analogy to HAVE_MACRO__func__, HAVE_MACRO__FUNC__, and HAVE_MACRO__FUNCTION__. But those macros actually indicate the presence of __func__, __FUNC__, and __FUNCTION__ respectively. The __ at the end of HAVE_EXTERN_ENVIRON_DECLARED would only be appropriate if the environ were declared__, whatever that means. (As a side-note, HAVE_MACRO__func__ and so on should probably be renamed HAVE_MACRO___func__ and so on. But that can wait.) This is an identifier renaming only.
2012-04-30Fix headers in test for whether environ is declared in stdlib/unistdNick Mathewson
We'd had our configure.in test include unistd.h unconditionally, which would fail on Windows/mingw, even though environ _was_ declared there. Fix for 5704; bugfix on 0.2.3.13-alpha. Thanks to Erinn for finding this and rransom for figuring out the problem.
2012-04-27Only disable cert chaining on the first TLS handshakeNick Mathewson
If the client uses a v2 cipherlist on the renegotiation handshake, it looks as if they could fail to get a good cert chain from the server, since they server would re-disable certificate chaining. This patch makes it so the code that make the server side of the first v2 handshake special can get called only once. Fix for 4591; bugfix on 0.2.0.20-rc.
2012-04-26Several mingw/msvc/cross-compilation fixesNick Mathewson
They boil down to: - MS_WINDOWS is dead and replaced with _WIN32, but we let a few instances creep in when we merged Esteban's tests. - Capitalizing windows header names confuses mingw. - #ifdef 0 ain't C. - One unit test wasn't compiled on windows, but was being listed anyway. - One unit test was checking for the wrong value. Gisle Vanem found and fixed the latter 3 issues.
2012-04-24Merge remote-tracking branch 'arma/bug5623'Nick Mathewson
2012-04-24peel off some unnecessary parensRoger Dingledine
2012-04-24Merge remote-tracking branch 'nickm/bug2497'Roger Dingledine
2012-04-24Merge remote-tracking branch 'public/bug5103'Nick Mathewson
2012-04-24Merge remote-tracking branch 'public/bug4572'Nick Mathewson
2012-04-24Add a check_no_tls_errors() to read_to_buf_tlsArturo Filastò
Fixes bug #4528 "read_to_buf_tls(): Inconsistency in code". This check was added back in 0.1.0.3-rc, but somehow we forgot to leave it in when we refactored read_to_buf_tls in 0.1.0.5-rc. (patch by Arturo; commit message and changes file by nickm)
2012-04-24be willing to use nodes in excludeexitnodes as directory mirrorsRoger Dingledine
fixes bug 5623.
2012-04-24Merge branch 'bug4438-v2'Nick Mathewson
2012-04-24Tweak the bug4438 fix a little: different check, better logNick Mathewson
Instead of checking for 'rejected' and calling everything else okay, let's check for 'outdated' and call everythign else a problem. This way we don't risk missing future errors so much. When logging a message that _looks_ like an error message at info, we should mention that it isn't really a problem.