aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Raise thresholds for declaring bootstrapping complete.Nick Mathewson2012-05-11
| | | | | | | | | | This patch changes the total serverdesc threshold from 25% to 75% and the exit threshold from 33% to 50%. The goal is to make initially constructed circuits less horrible, and to make initial less awful (since fetching directory information in parallel with whatever the user is trying to do can hurt their performance). Implements ticket 3196.
* Merge remote-tracking branch 'asn/bug4865_take2'Nick Mathewson2012-05-11
|\
| * Fix issues found by nickm.George Kadianakis2012-04-12
| | | | | | | | | | | | | | | | | | | | * Document fmt_addr_impl() and friends. * Parenthesize macro arguments. * Rename get_first_listener_addrport_for_pt() to get_first_listener_addrport_string(). * Handle port_cfg_t with no_listen. * Handle failure of router_get_active_listener_port_by_type(). * Add an XXX to router_get_active_listener_port_by_type().
| * Add changes file for #4865.George Kadianakis2012-03-31
| |
| * Pass OR address to PT proxy, even with IPv6 or ORListenAddress.George Kadianakis2012-03-31
| | | | | | | | | | | | Introduce get_first_listener_addrport_for_pt() which returns a string containing the addrport of the first listener we could find. Use it to form the TOR_PT_ORPORT managed proxy protocol line.
| * Introduce and use router_get_active_listener_port_by_type().George Kadianakis2012-03-31
| | | | | | | | | | | | router_get_active_listener_port_by_type() iterates all connections, trying to find a listener of a specific type, and returns its TCP port.
| * Generalize fmt_addr() to support IPv6 decorations.George Kadianakis2012-03-31
| |
* | Merge remote-tracking branch 'public/bug5091'Nick Mathewson2012-05-11
|\ \
| * | Fix tor_strtok_r_impl and test cases per bug #5091nils2012-03-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | == Nick here. I tweaked this patch a little to make it apply cleanly to master, to extract some common code into a function, and to replace snprintf with tor_snprintf. -- nickm
* | | Merge branch 'maint-0.2.2'Roger Dingledine2012-05-10
|\ \ \
| * | | fix over-wide line from f661747370Roger Dingledine2012-05-10
| | | |
* | | | Fix O(n^2) performance when parsing a big pile of extrainfosNick Mathewson2012-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge remote-tracking branch 'public/bug4591'Nick Mathewson2012-05-10
|\ \ \ \
| * | | | Only disable cert chaining on the first TLS handshakeNick Mathewson2012-04-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge branch 'bug5786'Nick Mathewson2012-05-10
|\ \ \ \ \
| * | | | | Detect out-of-bounds bwweightscale values early in the voting processNick Mathewson2012-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | Check more thoroughly for dups when parsing networkstatus parametersNick Mathewson2012-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See changes file for details. Partial fix for bug 5786; fix on 0.2.2.2-alpha.
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2012-05-10
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | Conflicts: src/common/util.c src/test/test_util.c
| * | | | | Merge branch 'bug5786_range_022' into maint-0.2.2Nick Mathewson2012-05-10
| |\ \ \ \ \
| | * | | | | Handle out-of-range values in tor_parse_* integer functionsNick Mathewson2012-05-07
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Merge remote-tracking branch 'asn/bug5540'Nick Mathewson2012-05-10
|\ \ \ \ \ \
| * | | | | | Explain TransportProxy within doc/state-contents.txt.George Kadianakis2012-03-31
| | |_|_|_|/ | |/| | | |
* | | | | | Merge remote-tracking branch 'linus/bug5146'Nick Mathewson2012-05-10
|\ \ \ \ \ \
| * | | | | | Ignore [::] when building descriptors.Linus Nordberg2012-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2012-05-10
|\ \ \ \ \ \ \ | | |_|/ / / / | |/| | | | |
| * | | | | | Add changes/bug5760Ravi Chandra Padmala2012-05-10
| | | | | | |
| * | | | | | Add missing CRLFs to AUTHCHALLENGE failure repliesRavi Chandra Padmala2012-05-10
| | |_|/ / / | |/| | | | | | | | | | | | | | | | Fix #5760
* | | | | | Fix a segfault in pt/protocol testNick Mathewson2012-05-08
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Apply a patch from Gisle Vanem to make tor-gencert build under MSVCNick Mathewson2012-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.)
* | | | | Merge branch 'bug5645_take2'Nick Mathewson2012-05-07
|\ \ \ \ \
| * | | | | Make a cast less const-violating; make a field size explicit.Nick Mathewson2012-05-07
| | | | | |
| * | | | | Reorder rend_mid_rendezvous() to do protocol violation checks on top.George Kadianakis2012-05-07
| | |/ / / | |/| | |
* | | | | Merge branch 'bug5070_take2'Nick Mathewson2012-05-07
|\ \ \ \ \
| * | | | | Using %d to printf an enum may not be by-the-standard okay.Nick Mathewson2012-05-07
| | | | | |
| * | | | | Fix an overwide lineNick Mathewson2012-05-07
| | | | | |
| * | | | | Fix comments: There is no such thing as a NUL pointerNick Mathewson2012-05-07
| | | | | |
| * | | | | Changes file for bug 5070Nick Mathewson2012-05-07
| | | | | |
| * | | | | Document some transports.c behaviors and assumptionsNick Mathewson2012-05-07
| | | | | |
| * | | | | Make transports.c logs a bit more helpful.George Kadianakis2012-05-03
| |/ / / /
* | | | | fix quad typo in commentsRoger Dingledine2012-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | i assume if nickm maintained "libeven" this would never have been introduced. :)
* | | | | Fix bug 5762: detect missing accept4 that gives ENOSYSNick Mathewson2012-05-04
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Add a missing ntohl to tell_controller_about_resolve_resultNick Mathewson2012-05-01
| | | | | | | | | | | | | | | | Fix for bug 5723; bugfix on 0.2.3.1-alpha (commit 22f723e4)
* | | | bump to 0.2.3.15-alpha-devRoger Dingledine2012-04-30
| | | |
* | | | bump to 0.2.3.15-alphaRoger Dingledine2012-04-30
| | | |
* | | | fold in new changes entriesRoger Dingledine2012-04-30
| | | |
* | | | Remove __ from HAVE_EXTERN_ENVIRON_DECLARED__Nick Mathewson2012-04-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Fix headers in test for whether environ is declared in stdlib/unistdNick Mathewson2012-04-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Several mingw/msvc/cross-compilation fixesNick Mathewson2012-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge remote-tracking branch 'arma/bug5623'Nick Mathewson2012-04-24
|\ \ \ \
| * | | | be willing to use nodes in excludeexitnodes as directory mirrorsRoger Dingledine2012-04-24
| | | | | | | | | | | | | | | | | | | | fixes bug 5623.