summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-08-11Add # to "hop N" messages to disambiguate from old messages.Nick Mathewson
2016-05-07Fix two log messages that mistakenly log 0-based hop countsteor (Tim Wilson-Brown)
(torspec says hop counts are 1-based.) Closes ticket 18982, bugfix on 0275b6876 in tor 0.2.6.2-alpha and 907db008a in tor 0.2.4.5-alpha. Credit to Xiaofan Li for reporting this issue.
2016-05-04Merge branch 'maint-0.2.8'Nick Mathewson
2016-05-04Merge branch 'bug18921_squashed' into maint-0.2.8Nick Mathewson
2016-05-04Choose the correct address for one-hop connectionsteor (Tim Wilson-Brown)
After #17840 in 0.2.8.1-alpha, we incorrectly chose an IPv4 address for all DIRIND_ONEHOP directory connections, even if the routerstatus didn't have an IPv4 address. This likely affected bridge clients with IPv6 bridges. Resolves #18921.
2016-05-04Merge branch 'maint-0.2.8'Nick Mathewson
2016-05-04Merge branch 'bug18686_025' into maint-0.2.8Nick Mathewson
2016-05-04Report success when not terminating an already terminated process.Nick Mathewson
Also, document the actual behavior and return values of tor_terminate_process. Fixes bug18686; bugfix on 0.2.3.9-alpha.
2016-05-04Merge branch 'maint-0.2.8'Nick Mathewson
2016-05-04Merge branch 'bug18710_025' into maint-0.2.8Nick Mathewson
2016-05-04Fix dnsserv.c assertion when no supported questions are requested.Scott Dial
The problem is that "q" is always set on the first iteration even if the question is not a supported question. This set of "q" is not necessary, and will be handled after exiting the loop if there if a supported q->type was found. [Changes file by nickm] lease enter the commit message for your changes. Lines starting
2016-05-03Merge branch 'maint-0.2.8'Nick Mathewson
2016-05-03Fix keccak-tiny portability on `exotic` platforms.Yawning Angel
* SHA-3/SHAKE use little endian for certain things, so byteswap as needed. * The code was written under the assumption that unaligned access to quadwords is allowed, which isn't true particularly on non-Intel.
2016-05-02Merge branch 'maint-0.2.8'Nick Mathewson
2016-05-02(cherry-picked by nickm, with changes file from isis.)s0rlxmh0
2016-05-02Merge remote-tracking branch 'dgoulet/bug13239_029_01'Nick Mathewson
2016-05-02test_bt.sh: Check stderr for backtrace as well as stdout.Nick Mathewson
addresssanitizer likes to put backtraces on stderr.
2016-04-26Merge branch 'maint-0.2.8'Nick Mathewson
2016-04-26April 2016 fallbacks for 0.2.8-rcteor (Tim Wilson-Brown)
2016-04-26Merge remote-tracking branch 'yawning-schwanenleid/feature18685'Nick Mathewson
2016-04-25Remove redundant declarations of MINNick Mathewson
Apparently somewhere along the line we decided that MIN might be missing. But we already defined it (if it was missing) in compat.h, which everybody includes. Closes ticket 18889.
2016-04-20Remove trunnel files from libor/libcrypto, since they are in libtrunnel. ↵Nick Mathewson
Found with modularity tool.
2016-04-19Increase number of preemptive internal circuitsDavid Goulet
When we connect to a hidden service as a client we may need three internal circuits, one for the descriptor retrieval, introduction, and rendezvous. Let's try to make sure we have them. Closes #13239. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2016-04-19Merge branch 'handles_squashed'Nick Mathewson
2016-04-19Basic 'handle' implementation and tests.Nick Mathewson
This abstraction covers the case where one part of the program needs to refer to another object that is allowed to disappear.
2016-04-19Merge remote-tracking branch 'public/lcov_excl'Nick Mathewson
2016-04-15Disambiguate: Avoid defining two static functions called chunk_free_uncheckedNick Mathewson
2016-04-15Disambiguate: Avoid defining two static functions both called gettweak()Nick Mathewson
2016-04-15Add branch prediction to util_bug.h, and fix a bug.Nick Mathewson
2016-04-14Merge branch 'assert_nonfatal_squashed'Nick Mathewson
2016-04-14Add an IF_BUG_ONCE macro, since that's a pretty common pattern too.Nick Mathewson
2016-04-14Add a BUG macro for usage in if checks.Nick Mathewson
2016-04-14Add new tor_assert_nonfatal*() macros.Nick Mathewson
Unlike tor_assert(), these macros don't abort the process. They're good for checking conditions we want to warn about, but which don't warrant a full crash. This commit also changes the default implementation for tor_fragile_assert() to tor_assert_nonfatal_unreached_once(). Closes ticket 18613.
2016-04-13fix typos/etc before i go nuts on #18809Roger Dingledine
2016-04-12Add LCOV_EXCL* markers to crypto.c and crypto_s2k.cNick Mathewson
This marks some lines as unreachable by the unit tests, and as therefore excluded from test coverage. (Note: This convention is only for lines that are absolutely unreachable. Don't use it anywhere you wouldn't add a tor_fragile_assert().)
2016-04-12Merge branch 'maint-0.2.8'Nick Mathewson
2016-04-12Merge remote-tracking branch 'public/bug18716_027' into maint-0.2.8Nick Mathewson
2016-04-07memarea: Don't assume that sizeof(ulong) >= sizeof(void*).Nick Mathewson
Fixes bug 18716; bugfix on 0.2.1.1-alpha where memarea.c was introduced. Found by wbenny.
2016-04-07Merge branch 'bug14334_squashed'Nick Mathewson
2016-04-07Don't mark guards as unreachable if connection_connect() fails.George Kadianakis
2016-04-07Turn TestingClientBootstrap* into non-testing optionsDavid Goulet
This changes simply renames them by removing "Testing" in front of them and they do not require TestingTorNetwork to be enabled anymore. Fixes #18481 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2016-04-07When we get a bad nickname, explain what a good one is.Nick Mathewson
Closes #18300; patch from "icanhasaccount".
2016-04-07Merge branch 'maint-0.2.8'Nick Mathewson
2016-04-07Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-04-07Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2016-04-07Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2016-04-07Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2016-04-07Update geoip and geoip6 to the April 5 2016 database.Karsten Loesing
2016-04-05Merge branch 'maint-0.2.8'Nick Mathewson
2016-04-05Don't call the system toupper or tolower.Nick Mathewson
Yes, we could cast to unsigned char first, but it's probably safest to just use our own (in test_util), or remove bad-idea features that we don't use (in readpassphrase.c). Fixes 18728.