aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-06-28add new GETINFO config/defaultsmeejah
returns the default values for every configuration item, similar to GETINFO config/names; include a changes entry for it. Fix for bug 4971
2012-06-28Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-28Merge remote-tracking branch 'public/bug6244_part2' into maint-0.2.3Nick Mathewson
2012-06-28Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-28Downgrade 'Got a certificate, but we already have it' log message from ↵Andrea Shepard
warning to info, except when we're a dirauth (fixes bug 5238)
2012-06-28Extend tor_sscanf so it can replace sscanf in rephist.cNick Mathewson
Fixes bug 4195 and Coverity CID 448
2012-06-27Fix GETINFO address-mappings/... with wildcarded addresses.Nick Mathewson
2012-06-27Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-27Allow wildcarded mapaddress targets in controller MAPADDRESS commandNick Mathewson
2012-06-26Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-26Merge remote-tracking branch 'public/bug6227' into maint-0.2.3Nick Mathewson
2012-06-26Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-26Fix a warning when using glibc's strcspn with clang.Nick Mathewson
With glibc 2.15 and clang 3.0, I get warnings from where we use the strcpsn implementation in the header as strcspn(string, "="). This is apparently because clang sees that part of the strcspn macro expands to "="[2], and doesn't realize that that part of the macro is only evaluated when "="[1] != 0.
2012-06-26Add a unit test for environment_variable_names_equalNick Mathewson
I need this because I'm about to frob that function to stop using strcspn() in order to get rid of a clang warning.
2012-06-26Fix a compilation warning with clang 3.0Nick Mathewson
In b1ad1a1d0266a20bb we introduced an implicit (but safe) long-to-int shortening that clang didn't like. Warning not in any released version of Tor.
2012-06-26Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-26Downgrade message about md cache cleaning from notice to infoNick Mathewson
Fix for #6238
2012-06-25Bump the test util/threads timeout up to 150 secNick Mathewson
This should make some debian build systems happier. Also, increase the select() timeout to a more reasonable 100 msec.
2012-06-25Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-25Don't do DNS lookups when parsing corrupted managed proxy messages.George Kadianakis
The functions parse_{s,c}method_line() were using tor_addr_port_lookup() which is capable of doing DNS lookups. DNS lookups should not be necessary when parsing {C,S}METHOD lines.
2012-06-25Merge remote-tracking branch 'public/bug2385'Nick Mathewson
2012-06-25Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-25Merge remote-tracking branch 'public/bug6225' into maint-0.2.3Nick Mathewson
2012-06-23Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-23Catch a few more K&R violations with make check-spacesNick Mathewson
We now catch bare {s that should be on the previous line with a do, while, if, or for, and elses that should share a line with their preceding }. That is, if (foo) { and if (foo) { ... } else are now detected. We should think about maybe making Tor uncrustify-clean some day, but configuring uncrustify is an exercise in bizarreness, and reformatting huge gobs of Tor is always painful.
2012-06-23Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-23Don't assert in get_string_from_pipe() on len==0Nick Mathewson
We can treat this case as an EAGAIN (probably because of an unexpected internal NUL) rather than a crash-worthy problem. Fixes bug 6225, again. Bug not in any released version of Tor.
2012-06-23Resolve crash caused by format_helper_exit_status changes in #5557Nick Mathewson
Because the string output was no longer equal in length to HEX_ERRNO_SIZE, the write() call would add some extra spaces and maybe a NUL, and the NUL would trigger an assert in get_string_from_pipe. Fixes bug 6225; bug not in any released version of Tor.
2012-06-23Improve log message issued when a managed proxy fails to launch.George Kadianakis
2012-06-22Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-22Merge remote-tracking branch 'public/bug6211' into maint-0.2.3Nick Mathewson
2012-06-22Merge remote-tracking branch 'public/bug6203_v2' into maint-0.2.3Nick Mathewson
2012-06-22Merge remote-tracking branch 'origin/maint-0.2.3'Nick Mathewson
2012-06-22Style tweaks and add a warning about NUL-terminationNick Mathewson
2012-06-22Add unit test for format_hex_number_for_helper_exit_status()Andrea Shepard
2012-06-22Refactor unsigned int hex formatting out of format_helper_exit_status() in ↵Andrea Shepard
util.c
2012-06-22Make format_helper_exit_status() avoid unnecessary spacesAndrea Shepard
2012-06-20Increment master branch version to 0.2.4.0-alpha-devNick Mathewson
2012-06-19Fix a regression bug in AllowDotExitNick Mathewson
The code that detected the source of a remapped address checked that an address mapping's source was a given rewrite rule if addr_orig had no .exit, and addr did have a .exit after processing that rule. But addr_orig was formatted for logging: it was not the original address at all, but rather was the address escaped for logging and possibly replaced with "[scrubbed]". This new logic will correctly set ADDRMAPSRC_NONE in the case when the address starts life as a .exit address, so that AllowDotExit can work again. Fixes bug 6211; bugfix on 0.2.3.17-beta
2012-06-19Disable warning for marked-but-reading in main.cNick Mathewson
It turns out this can happen. Even though there is no reason for connections to be marked but reading, we leave them reading anyway, so warning here is unwarranted. Let's turn that back on once we do something sensible and disable reading when we mark. Bugfix for 6203 on Tor 0.2.3.17-beta. Thanks to cypherpunks for pointing out the general stupidity of the original code here.
2012-06-18Clear a couple more fields in rend_service_load_auth_keysNick Mathewson
2012-06-18Refactor exit path in rend_service_load_auth_keysNick Mathewson
Now it's an orthodox "goto err/done" exit path, and it isn't some screwy thing where we stick err/done at the end of a loop and duplicate our cleanup code.
2012-06-18Fix indentation in rend_service_load_auth_keysNick Mathewson
2012-06-18Refactor rend_service_load_keys() into main portion and auth portion.Nick Mathewson
2012-06-18Fix indentation and whitespace in rend_service_load_keysNick Mathewson
2012-06-18Refactor rend_service_load_keys() into outer loop and loop contentsNick Mathewson
2012-06-18Merge remote-tracking branch 'public/bug3311'Nick Mathewson
2012-06-18Merge remote-tracking branch 'andrea/bug6028'Nick Mathewson
2012-06-16conn_type_to_string() on a listener already says it's a listenerRoger Dingledine
2012-06-15Appease make check-spacesAndrea Shepard