summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-04-30Add missing newline in memwipe test.cypherpunks
2015-04-28Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-04-28Revert "Remove obsolete workaround in dirserv_thinks_router_is_hs_dir()"David Goulet
Fixes #15850, part of #15801. Change file is added by this commit. The original comment in the reverted commit is removed because right now we *need* a DirPort until #15849 is implemented so no doubt nor confusion there anymore. This reverts commit 80bed1ac96a3035f8c55ddced5528f0d7d16d386. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-28Fix another test failureNick Mathewson
We need the test scripts to become +x *after* they are created.
2015-04-28Merge branch 'feature6411_v4'Nick Mathewson
2015-04-28Add "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller.Yawning Angel
These commands allow for the creation and management of ephemeral Onion ("Hidden") services that are either bound to the lifetime of the originating control connection, or optionally the lifetime of the tor instance. Implements #6411.
2015-04-27Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-04-27Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6Nick Mathewson
2015-04-27Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5Nick Mathewson
2015-04-27Merge remote-tracking branch 'karsten/geoip6-apr2015' into maint-0.2.4Nick Mathewson
2015-04-27Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson
2015-04-24Mark set-test-permissions as .PHONY; use u+x onlyNick Mathewson
2015-04-24Revert "Add +x to these .in files; see if it helps"Nick Mathewson
This reverts commit ecf98313d673f010b52f8d29c352cd9b8f145734. It didn't help.
2015-04-24Update geoip6 to the April 8 2015 database.Karsten Loesing
2015-04-24Update geoip to the April 8 2015 database.Karsten Loesing
2015-04-24Kludge include.am to work with automake <1.12Nick Mathewson
The SH_LOG_COMPILER feature doesn't work with older automakes, and those are still in use in many environments we want to support development on, like Debian Stable. Instead, use autoconf substitution to fill out the shebang lines on the shell scripts, and an intermediate make target to make them executable. This is a bugfix on the patches for #15344. Bug not in any released tor.
2015-04-23Add +x to these .in files; see if it helpsNick Mathewson
2015-04-23Make a return value explicitly ignored.Nick Mathewson
This might make coverity happy
2015-04-23Merge remote-tracking branch 'dgoulet/bug14847_027_06'Nick Mathewson
2015-04-23Fix some RNG function issuesNick Mathewson
2015-04-23Merge remote-tracking branch 'teor/longest-policy-comment'Nick Mathewson
2015-04-23Merge remote-tracking branch 'public/remove_old_libevent_autoconf_stuff'Nick Mathewson
2015-04-23Fix crash-test for assertion failureNick Mathewson
When we made assertions not get compiled in for the coverage case, we missed one case where, for our tests, we really DO want to have an assertion fail: the backtrace test. Bugfix on 1228dd293b60a8eaab03472fa29428c5e2752c44; bug not in any released tor
2015-04-23Correct "longest possible policy" comment in router policyteor
The "longest possible policy" comment in router_parse_addr_policy_item_from_string() used an example policy that was actually shorter than the maximum length. This comment was amended, and expanded to count the maximum number of characters. Comment change only.
2015-04-23Integrate backtrace test into the automake test suite.cypherpunks
For this to work bt_test.py now returns an exit code indicating success or failure. Additionally, check-local and its specific dependencies are now obsolete so they are removed.
2015-04-23Integrate ntor test into the automake test suite.cypherpunks
2015-04-23Integrate zero_length_keys test into the automake test suite.cypherpunks
The zero length keys test now requires the path to the Tor binary as the first parameter to ensure the correct Tor binary is used without hard coding a path. The wrapper script calls the zero length keys test for each test separately to ensure the correct shell is used (as configured by autoconf). Another solution would have been to place the tests into separate functions so multiple tests could be run internally. This would have made a diff of considerable size and frankly it is outside the scope of this fix.
2015-04-23Merge remote-tracking branch 'public/bug15546'Nick Mathewson
2015-04-23whitespace fixesNick Mathewson
2015-04-23Merge remote-tracking branch 'andrea/ticket14840'Nick Mathewson
2015-04-23Avoid memory leak in error messages in control.c (not in any tor)Nick Mathewson
2015-04-23Merge remote-tracking branch 'dgoulet/bug14845_026_01'Nick Mathewson
2015-04-23Merge remote-tracking branch 'teor/bug-15642-v3-fallback-unit-tests'Nick Mathewson
2015-04-23Fix another signed/unsigned comparison bugNick Mathewson
2015-04-23Fix some conversion problemsNick Mathewson
2015-04-23Merge remote-tracking branch 'public/bug15745_027_03'Nick Mathewson
2015-04-23Merge branch 'feature15652_squashed'Nick Mathewson
2015-04-23Fix some implicit conversion warningsNick Mathewson
2015-04-23Use a custom Base64 encoder with more control over the output format.Yawning Angel
2015-04-23Merge remote-tracking branch 'teor/bug-15771-reachability'Nick Mathewson
2015-04-23Unit tests for consider_adding_dir_servers() as modified in #15642teor
Unit tests for the 10 valid combinations of set/NULL config options DirAuthorities, AlternateBridgeAuthority, AlternateDirAuthority, and FallbackDir. Add assertion in consider_adding_dir_servers() for checks in validate_dir_servers(): "You cannot set both DirAuthority and Alternate*Authority."
2015-04-23Disable default fallback directories when other directories are setteor
Only add the default fallback directories when the DirAuthorities, AlternateDirAuthority, and FallbackDir directory config options are set to their defaults. The default fallback directory list is currently empty, this fix will only change tor's behaviour when it has default fallback directories. Fixes bug 15642; bugfix on 90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor".
2015-04-22Reachability should check ExtendAllowPrivateAddresses not TestingTorNetworkteor
When self-testing reachability, use ExtendAllowPrivateAddresses to determine if local/private addresses imply reachability. The previous fix used TestingTorNetwork, which implies ExtendAllowPrivateAddresses, but this excluded rare configs where ExtendAllowPrivateAddresses is set but TestingTorNetwork is not. Fixes bug 15771; bugfix on 0.2.6.1-alpha, bug #13924. Patch by "teor", issue discovered by CJ Ess.
2015-04-22Add function to validate HS descriptor IDDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-21Multiple fixes for the HSFETCH commandDavid Goulet
Ref: https://trac.torproject.org/projects/tor/ticket/14847?replyto=31#comment:31 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-21Use rend_valid_service_id() in the HSFETCH commandDavid Goulet
Also, fix a small typo in a comment. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-21Test: fix HSFETCH control command with latest changeDavid Goulet
The expected message of the command now expects "650+" and "650 OK". Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-21Control: make HSFETCH command use LongNameDavid Goulet
The "SERVER=" option now supports LongName described in the control-spec.txt Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-21Control: add + and 650 OK to HS_DESC_CONTENT eventDavid Goulet
The HS_DESC_CONTENT event results in multiple line thus must be prefixed with a "650+" and ending with "650 OK". Reported-by: Damian Johnson <atagar@torproject.org> Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-21Control: unbolt rend_data from HS desc eventDavid Goulet
The HS_DESC event was using rend_data_t from the dir connection to reply the onion address and authentication type. With the new HSFETCH command, it's now possible to fetch a descriptor only using the descriptor id thus resulting in not having an onion address in any HS_DESC event. This patch removes rend_query from the hs desc control functions and replace it by an onion address string and an auth type. On a successful fetch, the service id is taken from the fetched descriptor. For that, an extra parameter is added to "store as a client" function that contains the cache entry stored. This will make the control event functions scale more easily over time if other values not present in rend_data_t are needed since the rend_data from the dir connection might not contained everything we need. Signed-off-by: David Goulet <dgoulet@ev0ke.net>