]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
10 years agoSilence two make rules
cypherpunks [Mon, 18 May 2015 15:29:07 +0000 (11:29 -0400)] 
Silence two make rules

10 years agoFix: init HSDirs list in rend_data_service_create
David Goulet [Thu, 14 May 2015 14:56:14 +0000 (10:56 -0400)] 
Fix: init HSDirs list in rend_data_service_create

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoMerge branch 'bug15880_027_03'
Nick Mathewson [Thu, 14 May 2015 14:46:45 +0000 (10:46 -0400)] 
Merge branch 'bug15880_027_03'

10 years agoTest: fix HS_DESC to expect descriptor ID
David Goulet [Tue, 12 May 2015 20:45:56 +0000 (16:45 -0400)] 
Test: fix HS_DESC to expect descriptor ID

With #15881 implemented, this adds the missing descriptor ID at the end of
the expected control message.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoAdd missing descriptor ID to HS_DESC control event
David Goulet [Thu, 30 Apr 2015 16:28:11 +0000 (12:28 -0400)] 
Add missing descriptor ID to HS_DESC control event

For FAILED and RECEIVED action of the HS_DESC event, we now sends back the
descriptor ID at the end like specified in the control-spec section 4.1.25.

Fixes #15881

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoFix rend_config_services() indentation
David Goulet [Mon, 11 May 2015 20:16:41 +0000 (16:16 -0400)] 
Fix rend_config_services() indentation

Not sure what happened but whitespace gone wild! :)

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoUse safe_str_client() for service ID in log
David Goulet [Mon, 11 May 2015 20:19:16 +0000 (16:19 -0400)] 
Use safe_str_client() for service ID in log

Scrub the service ID in a warning log.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoMerge remote-tracking branch 'origin/maint-0.2.6'
Nick Mathewson [Wed, 13 May 2015 15:06:10 +0000 (11:06 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.6'

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Wed, 13 May 2015 15:05:33 +0000 (11:05 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Wed, 13 May 2015 15:04:17 +0000 (11:04 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

10 years agoMerge branch 'bug15823_025' into maint-0.2.5
Nick Mathewson [Wed, 13 May 2015 15:03:05 +0000 (11:03 -0400)] 
Merge branch 'bug15823_025' into maint-0.2.5

10 years agoBump version to 0.2.7.1-alpha-dev
Nick Mathewson [Tue, 12 May 2015 15:54:06 +0000 (11:54 -0400)] 
Bump version to 0.2.7.1-alpha-dev

10 years agoAdd a .dummy file in the changes directory to stop git from removing it tor-0.2.7.1-alpha
Nick Mathewson [Mon, 11 May 2015 15:41:48 +0000 (11:41 -0400)] 
Add a .dummy file in the changes directory to stop git from removing it

10 years agocomment patch from dgoulet that was in my inbox too long
Nick Mathewson [Mon, 11 May 2015 15:32:00 +0000 (11:32 -0400)] 
comment patch from dgoulet that was in my inbox too long

10 years agoreflow changelog.
Nick Mathewson [Mon, 11 May 2015 15:18:17 +0000 (11:18 -0400)] 
reflow changelog.

10 years agoTweak spelling and word choice in changelog
Nick Mathewson [Mon, 11 May 2015 15:17:49 +0000 (11:17 -0400)] 
Tweak spelling and word choice in changelog

10 years agoBump version to 0.2.7.1-alpha. (This is not the release yet.)
Nick Mathewson [Mon, 11 May 2015 14:10:29 +0000 (10:10 -0400)] 
Bump version to 0.2.7.1-alpha. (This is not the release yet.)

10 years agoIntro blurb for 0.2.7.1-alpha
Nick Mathewson [Mon, 11 May 2015 13:46:28 +0000 (09:46 -0400)] 
Intro blurb for 0.2.7.1-alpha

10 years agoTweak changelog more.
Nick Mathewson [Mon, 11 May 2015 13:42:41 +0000 (09:42 -0400)] 
Tweak changelog more.

10 years agoFix segfault in HSPOST command introduce with feature #3523
Donncha O'Cearbhaill [Fri, 8 May 2015 08:50:13 +0000 (09:50 +0100)] 
Fix segfault in HSPOST command introduce with feature #3523

Checking if node->rs->is_hs_dir when the router_status for the node does
not exist results in a segfault. This bug is not in any released Tor.

10 years agoMerge branch 'writing_tests'
Nick Mathewson [Thu, 7 May 2015 19:29:56 +0000 (15:29 -0400)] 
Merge branch 'writing_tests'

10 years agoWrite the outlines of a WritingTests.txt document
Nick Mathewson [Thu, 18 Sep 2014 18:03:49 +0000 (14:03 -0400)] 
Write the outlines of a WritingTests.txt document

Also, add some sample tests to be examples.

10 years agoTweak changelog entries a bit
Nick Mathewson [Tue, 5 May 2015 22:24:19 +0000 (18:24 -0400)] 
Tweak changelog entries a bit

10 years agoFix a bug in format_changelog, in a silly way
Nick Mathewson [Tue, 5 May 2015 22:23:56 +0000 (18:23 -0400)] 
Fix a bug in format_changelog, in a silly way

10 years agoMerge remote-tracking branch 'public/bug15821_025'
Nick Mathewson [Tue, 5 May 2015 19:06:57 +0000 (15:06 -0400)] 
Merge remote-tracking branch 'public/bug15821_025'

10 years agoFix out-of-bounds read in INTRODUCE2 client auth
John Brooks [Sun, 26 Apr 2015 04:52:35 +0000 (22:52 -0600)] 
Fix out-of-bounds read in INTRODUCE2 client auth

The length of auth_data from an INTRODUCE2 cell is checked when the
auth_type is recognized (1 or 2), but not for any other non-zero
auth_type. Later, auth_data is assumed to have at least
REND_DESC_COOKIE_LEN bytes, leading to a client-triggered out of bounds
read.

Fixed by checking auth_len before comparing the descriptor cookie
against known clients.

Fixes #15823; bugfix on 0.2.1.6-alpha.

10 years agoRe-sort and flow the changelog. Add new entry
Nick Mathewson [Tue, 5 May 2015 15:26:11 +0000 (11:26 -0400)] 
Re-sort and flow the changelog. Add new entry

10 years agoAdd collation/splitting support to sortChanges script
Nick Mathewson [Tue, 5 May 2015 15:24:01 +0000 (11:24 -0400)] 
Add collation/splitting support to sortChanges script

10 years agoFix a few more memory leaks; not in any released Tor
Nick Mathewson [Tue, 5 May 2015 15:08:05 +0000 (11:08 -0400)] 
Fix a few more memory leaks; not in any released Tor

10 years agoFix a harmless memory leak in tor-gencert
Nick Mathewson [Tue, 5 May 2015 15:05:01 +0000 (11:05 -0400)] 
Fix a harmless memory leak in tor-gencert

10 years agoMerge branch 'feature3523_027'
Nick Mathewson [Mon, 4 May 2015 15:41:50 +0000 (11:41 -0400)] 
Merge branch 'feature3523_027'

10 years agoAdd "+HSPOST" and related "HS_DESC" event flags to the controller.
Donncha O'Cearbhaill [Sun, 22 Mar 2015 13:31:53 +0000 (13:31 +0000)] 
Add "+HSPOST" and related "HS_DESC" event flags to the controller.

"+HSPOST" and the related event changes allow the uploading of HS
descriptors via the control port, and more comprehensive event
monitoring of HS descriptor upload status.

10 years agoMake `GETINFO hs/client/desc/id/<identifier>` actually work (#14845).
Yawning Angel [Sat, 2 May 2015 11:45:46 +0000 (11:45 +0000)] 
Make `GETINFO hs/client/desc/id/<identifier>` actually work (#14845).

Not in any released version of tor.

10 years agoreformat 0.2.7.1-alpha changelog
Nick Mathewson [Thu, 30 Apr 2015 19:30:20 +0000 (15:30 -0400)] 
reformat 0.2.7.1-alpha changelog

10 years agoMove changes entries into changelog for 0.2.7.1-alpha
Nick Mathewson [Thu, 30 Apr 2015 19:29:56 +0000 (15:29 -0400)] 
Move changes entries into changelog for 0.2.7.1-alpha

10 years agoMake lintChanges happy
Nick Mathewson [Thu, 30 Apr 2015 19:11:19 +0000 (15:11 -0400)] 
Make lintChanges happy

10 years agoremove changes files for already-moved things
Nick Mathewson [Thu, 30 Apr 2015 19:04:41 +0000 (15:04 -0400)] 
remove changes files for already-moved things

10 years agowhitespace fixes
Nick Mathewson [Thu, 30 Apr 2015 17:38:39 +0000 (13:38 -0400)] 
whitespace fixes

10 years agocompilation fix: signed/unsigned comparison
Nick Mathewson [Thu, 30 Apr 2015 17:36:45 +0000 (13:36 -0400)] 
compilation fix: signed/unsigned comparison

10 years agoMerge branch 'bug15814_027_04'
Nick Mathewson [Thu, 30 Apr 2015 17:32:52 +0000 (13:32 -0400)] 
Merge branch 'bug15814_027_04'

10 years agoUpdate descriptor ID when it changes in rend_data
David Goulet [Tue, 28 Apr 2015 14:22:14 +0000 (10:22 -0400)] 
Update descriptor ID when it changes in rend_data

When we have a new descriptor ID for an onion address request, change it in
the rend_data_t object and purge the old one from the last hid serv request
cache.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoUse descriptor ID when purging last hid fetch cache
David Goulet [Mon, 27 Apr 2015 20:21:47 +0000 (16:21 -0400)] 
Use descriptor ID when purging last hid fetch cache

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>
10 years agoUse rend_data_client/service_create() in code
David Goulet [Mon, 27 Apr 2015 19:08:31 +0000 (15:08 -0400)] 
Use rend_data_client/service_create() in code

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>
10 years agoAdd a create function for rend_data_t object
David Goulet [Tue, 28 Apr 2015 15:01:58 +0000 (11:01 -0400)] 
Add a create function for rend_data_t object

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>
10 years agoAdd missing newline in memwipe test.
cypherpunks [Fri, 24 Apr 2015 08:19:22 +0000 (10:19 +0200)] 
Add missing newline in memwipe test.

10 years agoMerge remote-tracking branch 'origin/maint-0.2.6'
Nick Mathewson [Tue, 28 Apr 2015 18:46:53 +0000 (14:46 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.6'

10 years agoRevert "Remove obsolete workaround in dirserv_thinks_router_is_hs_dir()"
David Goulet [Tue, 28 Apr 2015 18:22:49 +0000 (14:22 -0400)] 
Revert "Remove obsolete workaround in dirserv_thinks_router_is_hs_dir()"

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>
10 years agoFix another test failure
Nick Mathewson [Tue, 28 Apr 2015 14:47:37 +0000 (10:47 -0400)] 
Fix another test failure

We need the test scripts to become +x *after* they are created.

10 years agoMerge branch 'feature6411_v4'
Nick Mathewson [Tue, 28 Apr 2015 14:19:16 +0000 (10:19 -0400)] 
Merge branch 'feature6411_v4'

10 years agoAdd "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller.
Yawning Angel [Sat, 25 Apr 2015 08:23:15 +0000 (08:23 +0000)] 
Add "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller.

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.

10 years agoMerge remote-tracking branch 'origin/maint-0.2.6'
Nick Mathewson [Mon, 27 Apr 2015 18:18:31 +0000 (14:18 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.6'

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 27 Apr 2015 18:18:16 +0000 (14:18 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6

10 years agoMerge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Mon, 27 Apr 2015 18:16:55 +0000 (14:16 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5

10 years agoMerge remote-tracking branch 'karsten/geoip6-apr2015' into maint-0.2.4
Nick Mathewson [Mon, 27 Apr 2015 18:15:58 +0000 (14:15 -0400)] 
Merge remote-tracking branch 'karsten/geoip6-apr2015' into maint-0.2.4

10 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Mon, 27 Apr 2015 18:15:44 +0000 (14:15 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

10 years agoMark set-test-permissions as .PHONY; use u+x only
Nick Mathewson [Fri, 24 Apr 2015 20:10:34 +0000 (16:10 -0400)] 
Mark set-test-permissions as .PHONY; use u+x only

10 years agoRevert "Add +x to these .in files; see if it helps"
Nick Mathewson [Fri, 24 Apr 2015 20:05:41 +0000 (16:05 -0400)] 
Revert "Add +x to these .in files; see if it helps"

This reverts commit ecf98313d673f010b52f8d29c352cd9b8f145734.

It didn't help.

10 years agoUpdate geoip6 to the April 8 2015 database.
Karsten Loesing [Fri, 24 Apr 2015 15:51:36 +0000 (17:51 +0200)] 
Update geoip6 to the April 8 2015 database.

10 years agoUpdate geoip to the April 8 2015 database.
Karsten Loesing [Fri, 24 Apr 2015 15:49:45 +0000 (17:49 +0200)] 
Update geoip to the April 8 2015 database.

10 years agoKludge include.am to work with automake <1.12
Nick Mathewson [Fri, 24 Apr 2015 12:41:53 +0000 (08:41 -0400)] 
Kludge include.am to work with automake <1.12

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.

10 years agoAdd +x to these .in files; see if it helps
Nick Mathewson [Thu, 23 Apr 2015 20:15:21 +0000 (16:15 -0400)] 
Add +x to these .in files; see if it helps

10 years agoMake a return value explicitly ignored.
Nick Mathewson [Thu, 23 Apr 2015 17:04:37 +0000 (13:04 -0400)] 
Make a return value explicitly ignored.

This might make coverity happy

10 years agochanges for 14847
Nick Mathewson [Thu, 23 Apr 2015 16:27:27 +0000 (12:27 -0400)] 
changes for 14847

10 years agoMerge remote-tracking branch 'dgoulet/bug14847_027_06'
Nick Mathewson [Thu, 23 Apr 2015 16:24:35 +0000 (12:24 -0400)] 
Merge remote-tracking branch 'dgoulet/bug14847_027_06'

10 years agoFix some RNG function issues
Nick Mathewson [Thu, 23 Apr 2015 15:13:51 +0000 (11:13 -0400)] 
Fix some RNG function issues

10 years agoMerge remote-tracking branch 'teor/longest-policy-comment'
Nick Mathewson [Thu, 23 Apr 2015 15:05:24 +0000 (11:05 -0400)] 
Merge remote-tracking branch 'teor/longest-policy-comment'

10 years agoMerge remote-tracking branch 'public/remove_old_libevent_autoconf_stuff'
Nick Mathewson [Thu, 23 Apr 2015 14:27:01 +0000 (10:27 -0400)] 
Merge remote-tracking branch 'public/remove_old_libevent_autoconf_stuff'

10 years agoFix crash-test for assertion failure
Nick Mathewson [Thu, 23 Apr 2015 14:25:16 +0000 (10:25 -0400)] 
Fix crash-test for assertion failure

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

10 years agoAdd changes file for 15344.
cypherpunks [Wed, 18 Mar 2015 15:45:48 +0000 (16:45 +0100)] 
Add changes file for 15344.

10 years agoCorrect "longest possible policy" comment in router policy
teor [Thu, 23 Apr 2015 13:51:59 +0000 (23:51 +1000)] 
Correct "longest possible policy" comment in router policy

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.

10 years agoIntegrate backtrace test into the automake test suite.
cypherpunks [Thu, 5 Mar 2015 10:05:17 +0000 (11:05 +0100)] 
Integrate backtrace test into the automake test suite.

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.

10 years agoIntegrate ntor test into the automake test suite.
cypherpunks [Thu, 5 Mar 2015 09:43:12 +0000 (10:43 +0100)] 
Integrate ntor test into the automake test suite.

10 years agoIntegrate zero_length_keys test into the automake test suite.
cypherpunks [Thu, 5 Mar 2015 08:03:06 +0000 (09:03 +0100)] 
Integrate zero_length_keys test into the automake test suite.

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.

10 years agoMerge remote-tracking branch 'public/bug15546'
Nick Mathewson [Thu, 23 Apr 2015 13:50:29 +0000 (09:50 -0400)] 
Merge remote-tracking branch 'public/bug15546'

10 years agowhitespace fixes
Nick Mathewson [Thu, 23 Apr 2015 13:36:43 +0000 (09:36 -0400)] 
whitespace fixes

10 years agoMerge remote-tracking branch 'andrea/ticket14840'
Nick Mathewson [Thu, 23 Apr 2015 13:34:00 +0000 (09:34 -0400)] 
Merge remote-tracking branch 'andrea/ticket14840'

10 years agochanges file for 14845
Nick Mathewson [Thu, 23 Apr 2015 13:27:59 +0000 (09:27 -0400)] 
changes file for 14845

10 years agoAvoid memory leak in error messages in control.c (not in any tor)
Nick Mathewson [Thu, 23 Apr 2015 13:26:31 +0000 (09:26 -0400)] 
Avoid memory leak in error messages in control.c (not in any tor)

10 years agoMerge remote-tracking branch 'dgoulet/bug14845_026_01'
Nick Mathewson [Thu, 23 Apr 2015 13:25:00 +0000 (09:25 -0400)] 
Merge remote-tracking branch 'dgoulet/bug14845_026_01'

10 years agoMerge remote-tracking branch 'teor/bug-15642-v3-fallback-unit-tests'
Nick Mathewson [Thu, 23 Apr 2015 13:22:16 +0000 (09:22 -0400)] 
Merge remote-tracking branch 'teor/bug-15642-v3-fallback-unit-tests'

10 years agoFix another signed/unsigned comparison bug
Nick Mathewson [Thu, 23 Apr 2015 13:21:44 +0000 (09:21 -0400)] 
Fix another signed/unsigned comparison bug

10 years agoFix some conversion problems
Nick Mathewson [Thu, 23 Apr 2015 13:16:42 +0000 (09:16 -0400)] 
Fix some conversion problems

10 years agoMerge remote-tracking branch 'public/bug15745_027_03'
Nick Mathewson [Thu, 23 Apr 2015 13:10:35 +0000 (09:10 -0400)] 
Merge remote-tracking branch 'public/bug15745_027_03'

10 years agoMerge branch 'feature15652_squashed'
Nick Mathewson [Thu, 23 Apr 2015 13:09:33 +0000 (09:09 -0400)] 
Merge branch 'feature15652_squashed'

10 years agoFix some implicit conversion warnings
Nick Mathewson [Thu, 23 Apr 2015 13:09:20 +0000 (09:09 -0400)] 
Fix some implicit conversion warnings

10 years agoUse a custom Base64 encoder with more control over the output format.
Yawning Angel [Fri, 10 Apr 2015 11:25:08 +0000 (11:25 +0000)] 
Use a custom Base64 encoder with more control over the output format.

10 years agoMerge remote-tracking branch 'teor/bug-15771-reachability'
Nick Mathewson [Thu, 23 Apr 2015 13:04:53 +0000 (09:04 -0400)] 
Merge remote-tracking branch 'teor/bug-15771-reachability'

10 years agoMerge remote-tracking branch 'yawning/bug15759'
Nick Mathewson [Thu, 23 Apr 2015 13:02:55 +0000 (09:02 -0400)] 
Merge remote-tracking branch 'yawning/bug15759'

10 years agoUnit tests for consider_adding_dir_servers() as modified in #15642
teor [Wed, 15 Apr 2015 09:02:29 +0000 (19:02 +1000)] 
Unit tests for consider_adding_dir_servers() as modified in #15642

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."

10 years agoDisable default fallback directories when other directories are set
teor [Thu, 9 Apr 2015 06:37:33 +0000 (16:37 +1000)] 
Disable default fallback directories when other directories are set

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".

10 years agoReachability should check ExtendAllowPrivateAddresses not TestingTorNetwork
teor [Wed, 22 Apr 2015 13:54:21 +0000 (23:54 +1000)] 
Reachability should check ExtendAllowPrivateAddresses not TestingTorNetwork

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.

10 years agoNew email for Lukas Fleischer
Nick Mathewson [Wed, 22 Apr 2015 13:49:23 +0000 (09:49 -0400)] 
New email for Lukas Fleischer

10 years agoAdd function to validate HS descriptor ID
David Goulet [Tue, 21 Apr 2015 18:04:39 +0000 (14:04 -0400)] 
Add function to validate HS descriptor ID

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoMultiple fixes for the HSFETCH command
David Goulet [Mon, 23 Mar 2015 17:07:51 +0000 (13:07 -0400)] 
Multiple fixes for the HSFETCH command

Ref:
https://trac.torproject.org/projects/tor/ticket/14847?replyto=31#comment:31

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoUse rend_valid_service_id() in the HSFETCH command
David Goulet [Mon, 23 Mar 2015 17:13:57 +0000 (13:13 -0400)] 
Use rend_valid_service_id() in the HSFETCH command

Also, fix a small typo in a comment.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoTest: fix HSFETCH control command with latest change
David Goulet [Sun, 15 Mar 2015 14:35:31 +0000 (10:35 -0400)] 
Test: fix HSFETCH control command with latest change

The expected message of the command now expects "650+" and "650 OK".

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoControl: make HSFETCH command use LongName
David Goulet [Sun, 15 Mar 2015 14:29:02 +0000 (10:29 -0400)] 
Control: make HSFETCH command use LongName

The "SERVER=" option now supports LongName described in the control-spec.txt

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoControl: add + and 650 OK to HS_DESC_CONTENT event
David Goulet [Sun, 15 Mar 2015 14:20:11 +0000 (10:20 -0400)] 
Control: add + and 650 OK to HS_DESC_CONTENT event

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>
10 years agoControl: unbolt rend_data from HS desc event
David Goulet [Wed, 11 Mar 2015 18:52:28 +0000 (14:52 -0400)] 
Control: unbolt rend_data from HS desc event

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>
10 years agoRefactor HS descriptor fetch to support descriptor ID
David Goulet [Tue, 10 Mar 2015 20:46:56 +0000 (16:46 -0400)] 
Refactor HS descriptor fetch to support descriptor ID

Big refactor of the HS client descriptor fetch functionnality. This allows
to fetch an HS descriptor using only a descriptor ID. Furthermore, it's also
possible to provide a list of HSDir(s) now that are used instead of the
automatically choosen one.

The approach taken was to add a descriptor_id field to the rend_data_t
structure so it can be used, if available, by the HS client. The onion
address field however has priority over it that is if both are set, the
onion address is used to fetch the descriptor.

A new public function is introduced called rend_client_fetch_v2_desc(...)
that does NOT lookup the client cache before fetching and can take a list of
HSDirs as a parameter.

The HSFETCH control command now uses this new function thus making it work
and final.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>