summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-30Use descriptor ID when purging last hid fetch cacheDavid Goulet
Stop using an onion address since it's not indexed with that anymore in the last hid serv request cache. Instead use a base32 encoded descriptor ID contained in the rend_data_t object. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-30Use rend_data_client/service_create() in codeDavid Goulet
Every callsite that use to allocate a rend_data_t object now use the rend_data_client/service_create() function. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-04-30Add a create function for rend_data_t objectDavid Goulet
Ground works for fixing #15816. This adds the rend_data_create() function in order to have a single place where we initialize that data structure. Furthermore, an array of descriptor IDs is added (one per replica) so we can keep a copy of the current id in the object. It will be used to purge the last hid serv request cache using those descriptor IDs. When they change, they will be replaced and the old ones will be purged from the cache. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
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-23changes for 14847Nick Mathewson
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-23Add changes file for 15344.cypherpunks
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-23changes file for 14845Nick 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-23Merge remote-tracking branch 'yawning/bug15759'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-22New email for Lukas FleischerNick Mathewson