]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
10 years agoA day has passed. tor-0.2.7.3-rc
Nick Mathewson [Fri, 25 Sep 2015 13:06:41 +0000 (09:06 -0400)] 
A day has passed.

10 years agoAdd test-network.sh to EXTRA_DIST
Nick Mathewson [Thu, 24 Sep 2015 23:38:50 +0000 (19:38 -0400)] 
Add test-network.sh to EXTRA_DIST

10 years agoMake our digest-mismatch warnings a touch better
Nick Mathewson [Thu, 24 Sep 2015 21:45:29 +0000 (17:45 -0400)] 
Make our digest-mismatch warnings a touch better

10 years agoMerge branch 'bug17149'
Nick Mathewson [Thu, 24 Sep 2015 21:19:21 +0000 (17:19 -0400)] 
Merge branch 'bug17149'

10 years agoInclude some content when exporting abs_top_srcdir and builddir
Nick Mathewson [Thu, 24 Sep 2015 21:06:49 +0000 (17:06 -0400)] 
Include some content when exporting abs_top_srcdir and builddir

FreeBSD make demands this.

10 years agoPut braces around reject-lines for IPv6 addrs
Nick Mathewson [Thu, 24 Sep 2015 20:51:25 +0000 (16:51 -0400)] 
Put braces around reject-lines for IPv6 addrs

Fixes bug 17149; bug not in any released Tor.

10 years agofold 17148 into changelog
Nick Mathewson [Thu, 24 Sep 2015 19:31:50 +0000 (15:31 -0400)] 
fold 17148 into changelog

10 years agoAdd more quotes in the test scripts
Nick Mathewson [Thu, 24 Sep 2015 19:25:53 +0000 (15:25 -0400)] 
Add more quotes in the test scripts

10 years agoStop trying to generate test scripts via autoconf substitution.
Nick Mathewson [Thu, 24 Sep 2015 19:07:39 +0000 (15:07 -0400)] 
Stop trying to generate test scripts via autoconf substitution.

Use environment variables instead. This repairs 'make distcheck',
which was running into trouble when it tried to chmod the generated
scripts.

Fixes 17148.

10 years agofix tor-fw-helper url
Nick Mathewson [Thu, 24 Sep 2015 18:12:45 +0000 (14:12 -0400)] 
fix tor-fw-helper url

10 years agoChangelog: more clarity and fixing
Nick Mathewson [Thu, 24 Sep 2015 18:08:30 +0000 (14:08 -0400)] 
Changelog: more clarity and fixing

10 years agoIncrement version.
Nick Mathewson [Thu, 24 Sep 2015 16:18:24 +0000 (12:18 -0400)] 
Increment version.

10 years agoNow I have a number here. (Had to use OSX becaue of #17146)
Nick Mathewson [Thu, 24 Sep 2015 16:15:20 +0000 (12:15 -0400)] 
Now I have a number here. (Had to use OSX becaue of #17146)

10 years agofold 17135 into changelog
Nick Mathewson [Thu, 24 Sep 2015 15:56:00 +0000 (11:56 -0400)] 
fold 17135 into changelog

10 years agoMerge branch 'underpinning_squashed'
Nick Mathewson [Thu, 24 Sep 2015 15:29:14 +0000 (11:29 -0400)] 
Merge branch 'underpinning_squashed'

10 years agochanges file and manpage entry for AuthDirPinKeys
Nick Mathewson [Wed, 23 Sep 2015 15:30:17 +0000 (11:30 -0400)] 
changes file and manpage entry for AuthDirPinKeys

10 years agoFold new entries into changelog
Nick Mathewson [Thu, 24 Sep 2015 15:00:30 +0000 (11:00 -0400)] 
Fold new entries into changelog

10 years agoReformat the changelog
Nick Mathewson [Thu, 24 Sep 2015 14:57:22 +0000 (10:57 -0400)] 
Reformat the changelog

10 years agomore edits to the changelog
Nick Mathewson [Thu, 24 Sep 2015 14:57:07 +0000 (10:57 -0400)] 
more edits to the changelog

10 years agoMerge remote-tracking branch 'origin/maint-0.2.6'
Nick Mathewson [Thu, 24 Sep 2015 14:06:36 +0000 (10: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 [Thu, 24 Sep 2015 14:06:15 +0000 (10:06 -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 [Thu, 24 Sep 2015 14:06:00 +0000 (10:06 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5

10 years agoUpdate geoip and geoip6 to the September 3 2015 database.
Karsten Loesing [Thu, 24 Sep 2015 13:08:15 +0000 (15:08 +0200)] 
Update geoip and geoip6 to the September 3 2015 database.

10 years agovarious changelog entry rewrites/revisions
Nick Mathewson [Wed, 23 Sep 2015 23:48:41 +0000 (19:48 -0400)] 
various changelog entry rewrites/revisions

10 years agoNew AuthDirPinKeys option to enable/disable keypinning enforcement
Nick Mathewson [Wed, 23 Sep 2015 15:22:26 +0000 (11:22 -0400)] 
New AuthDirPinKeys option to enable/disable keypinning enforcement

Implements ticket #17135.  We're going to need this one to avoid
chaos as everybody figures out how ed25519 keys work.

10 years agoExtract the add-or-replace-keypin logic into a new function
Nick Mathewson [Wed, 23 Sep 2015 15:07:17 +0000 (11:07 -0400)] 
Extract the add-or-replace-keypin logic into a new function

We're about to need to call it in another place too.

10 years agoAllow conflicts to occur in keypinning journal
Nick Mathewson [Wed, 23 Sep 2015 14:44:38 +0000 (10:44 -0400)] 
Allow conflicts to occur in keypinning journal

When we find a conflict in the keypinning journal, treat the new
entry as superseding all old entries that overlap either of its
keys.

Also add a (not-yet-used) configuration option to disable keypinning
enforcement.

10 years agosome changelog work
Nick Mathewson [Wed, 23 Sep 2015 14:44:22 +0000 (10:44 -0400)] 
some changelog work

10 years agoadd a README to src/config
Nick Mathewson [Tue, 22 Sep 2015 21:06:39 +0000 (17:06 -0400)] 
add a README to src/config

10 years agoadd more clang checkers; find no new bugs.
Nick Mathewson [Tue, 22 Sep 2015 15:37:50 +0000 (11:37 -0400)] 
add more clang checkers; find no new bugs.

10 years agoscan-build is more mature now; no need to hardcode the one in my /opt/clang-3.4
Nick Mathewson [Tue, 22 Sep 2015 13:58:16 +0000 (09:58 -0400)] 
scan-build is more mature now; no need to hardcode the one in my /opt/clang-3.4

10 years agoFix a memory leak in router_parse_addr_policy_item_from_string. CID 1324770
Nick Mathewson [Tue, 22 Sep 2015 13:55:05 +0000 (09:55 -0400)] 
Fix a memory leak in router_parse_addr_policy_item_from_string.  CID 1324770

10 years agoMerge branch 'feature16769_squashed'
Nick Mathewson [Tue, 22 Sep 2015 13:26:30 +0000 (09:26 -0400)] 
Merge branch 'feature16769_squashed'

10 years agoRemove --master-key form the changes file
Nick Mathewson [Tue, 22 Sep 2015 13:22:09 +0000 (09:22 -0400)] 
Remove --master-key form the changes file

10 years agoDisable --master-key as not-yet-working for 0.2.7
Nick Mathewson [Mon, 21 Sep 2015 17:07:38 +0000 (13:07 -0400)] 
Disable --master-key as not-yet-working for 0.2.7

10 years agoAdd a --master-key option
Nick Mathewson [Tue, 1 Sep 2015 14:58:53 +0000 (10:58 -0400)] 
Add a --master-key option

This lets the user override the default location for the master key
when used with --keygen

Part of 16769.

10 years agoAdd a new --newpass option to add or remove secret key passphrases.
Nick Mathewson [Tue, 1 Sep 2015 14:41:02 +0000 (10:41 -0400)] 
Add a new --newpass option to add or remove secret key passphrases.

10 years agoMerge branch 'feature16944_v2'
Nick Mathewson [Tue, 22 Sep 2015 13:19:28 +0000 (09:19 -0400)] 
Merge branch 'feature16944_v2'

10 years agoSort changelog entries a little more
Nick Mathewson [Tue, 22 Sep 2015 13:14:07 +0000 (09:14 -0400)] 
Sort changelog entries a little more

10 years agoMerge branch 'bug17109_v2_squashed'
Nick Mathewson [Tue, 22 Sep 2015 12:36:39 +0000 (08:36 -0400)] 
Merge branch 'bug17109_v2_squashed'

10 years agoCheck that openssl has ECC support during configure
Sebastian Hahn [Sat, 19 Sep 2015 14:36:55 +0000 (16:36 +0200)] 
Check that openssl has ECC support during configure

This allows builds on machines with a crippled openssl to fail early
during configure. Bugfix on 0.2.7.1-alpha, which introduced the
requirement for ECC support. Fixes bug 17109.

10 years agoUpdate private ExitPolicy in man page and torrcs for 10727, formatting
teor (Tim Wilson-Brown) [Tue, 22 Sep 2015 01:50:04 +0000 (11:50 +1000)] 
Update private ExitPolicy in man page and torrcs for 10727, formatting

Update the definition of the private exit policy in the man page
and torrcs. It didn't get merged correctly into the man page, and
it was incomplete in the torrcs. (Unfortunately, we only reject the
primary configured IPv4 and IPv6 addresses, not all configured IPv4
and IPv6 addresses.)

Also fixup msn page formatting errors from changes in tickets 16069
and 17027, mainly unescaped *s.

10 years agoAdd IPv6 syntax to ExitPolicy intro paragraph in man page
teor (Tim Wilson-Brown) [Tue, 22 Sep 2015 01:44:13 +0000 (11:44 +1000)] 
Add IPv6 syntax to ExitPolicy intro paragraph in man page

10 years agoUpdate docs with advice for separate IPv4 and IPv6 exit policies
teor (Tim Wilson-Brown) [Tue, 22 Sep 2015 01:41:16 +0000 (11:41 +1000)] 
Update docs with advice for separate IPv4 and IPv6 exit policies

Advise users how to configure separate IPv4 and IPv6 exit
policies in the manpage and sample torrcs.

Related to fixes in ticket #16069 and #17027. Patch by "teor".
Patch on 2eb7eafc9d78 and a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.

10 years agofold new entries into changelog for 0.2.7.3
Nick Mathewson [Mon, 21 Sep 2015 17:58:20 +0000 (13:58 -0400)] 
fold new entries into changelog for 0.2.7.3

10 years agoMerge remote-tracking branch 'public/bug17047'
Nick Mathewson [Wed, 16 Sep 2015 12:46:13 +0000 (08:46 -0400)] 
Merge remote-tracking branch 'public/bug17047'

10 years agoMerge remote-tracking branch 'teor/bug16069-bug17027'
Nick Mathewson [Wed, 16 Sep 2015 12:20:15 +0000 (08:20 -0400)] 
Merge remote-tracking branch 'teor/bug16069-bug17027'

10 years agoDon't enable SSE2 on X86-64.
Sebastian Hahn [Wed, 16 Sep 2015 02:27:32 +0000 (04:27 +0200)] 
Don't enable SSE2 on X86-64.

This removes a comment presumably introduced for debugging that was left
in accidentally. Bug not in any released version of Tor. Fixes bug
17092.

10 years agoMerge branch 'bug17027-reject-private-all-interfaces-v2' into bug16069-bug17027
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 23:09:54 +0000 (09:09 +1000)] 
Merge branch 'bug17027-reject-private-all-interfaces-v2' into bug16069-bug17027

src/test/test_policy.c:
Merged calls to policies_parse_exit_policy by adding additional arguments.
fixup to remaining instance of ~EXIT_POLICY_IPV6_ENABLED.
Compacting logic test now produces previous list length of 4, corrected this.

src/config/torrc.sample.in:
src/config/torrc.minimal.in-staging:
Merged torrc modification dates in favour of latest.

10 years agofixup Clarify ambiguous log message in router_add_exit_policy
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 17:59:30 +0000 (03:59 +1000)] 
fixup Clarify ambiguous log message in router_add_exit_policy

10 years agofixup Only set TAPMP_STAR_IPV6_ONLY if TAPMP_EXTENDED_STAR is set
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 17:58:06 +0000 (03:58 +1000)] 
fixup Only set TAPMP_STAR_IPV6_ONLY if TAPMP_EXTENDED_STAR is set

Also fix a comment.

10 years agoLog an info-level message for each IP blocked by ExitPolicyRejectPrivate
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 08:57:00 +0000 (18:57 +1000)] 
Log an info-level message for each IP blocked by ExitPolicyRejectPrivate

Log an info-level message containing the reject line added to the
exit policy for each local IP address blocked by ExitPolicyRejectPrivate:
 - Published IPv4 and IPv6 addresses
 - Publicly routable IPv4 and IPv6 interface addresses

10 years agoExitPolicyRejectPrivate rejects local IPv6 address and interface addresses
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 08:34:18 +0000 (18:34 +1000)] 
ExitPolicyRejectPrivate rejects local IPv6 address and interface addresses

ExitPolicyRejectPrivate now rejects more local addresses by default:
 * the relay's published IPv6 address (if any), and
 * any publicly routable IPv4 or IPv6 addresses on any local interfaces.

This resolves a security issue for IPv6 Exits and multihomed Exits that
trust connections originating from localhost.

Resolves ticket 17027. Patch by "teor".
Patch on 42b8fb5a1523 (11 Nov 2007), released in 0.2.0.11-alpha.

10 years agofixup add malformed_list to unit tests from d3358a0a05f6 IPv6 wildcards
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 14:34:12 +0000 (00:34 +1000)] 
fixup add malformed_list to unit tests from d3358a0a05f6 IPv6 wildcards

The unit tests added in e033d5e90bcb got malformed_list added to
router_parse_addr_policy_item_from_string calls, but unit tests from
subsequent commits didn't get the extra argument until now.

10 years agoExitPolicy accept6/reject6 produces IPv6 wildcard addresses only
teor (Tim Wilson-Brown) [Mon, 14 Sep 2015 01:46:58 +0000 (11:46 +1000)] 
ExitPolicy accept6/reject6 produces IPv6 wildcard addresses only

In previous versions of Tor, ExitPolicy accept6/reject6 * produced
policy entries for IPv4 and IPv6 wildcard addresses.

To reduce operator confusion, change accept6/reject6 * to only produce
an IPv6 wildcard address.

Resolves bug #16069.

Patch on 2eb7eafc9d78 and a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.

10 years agoWarn about redundant torrc ExitPolicy lines due to accept/reject *:*
teor (Tim Wilson-Brown) [Mon, 14 Sep 2015 11:56:14 +0000 (21:56 +1000)] 
Warn about redundant torrc ExitPolicy lines due to accept/reject *:*

Tor now warns when ExitPolicy lines occur after accept/reject *:*
or variants. These lines are redundant, and were always ignored.

Partial fix for ticket 16069. Patch by "teor".
Patch on 2eb7eafc9d78 and a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.

10 years agoIgnore accept6/reject6 IPv4, warn about unexpected rule outcomes
teor (Tim Wilson-Brown) [Fri, 11 Sep 2015 05:10:54 +0000 (15:10 +1000)] 
Ignore accept6/reject6 IPv4, warn about unexpected rule outcomes

When parsing torrc ExitPolicies, we now warn if:
  * an IPv4 address is used on an accept6 or reject6 line. The line is
    ignored, but the rest of the policy items in the list are used.
    (accept/reject continue to allow both IPv4 and IPv6 addresses in torrcs.)
  * a "private" address alias is used on an accept6 or reject6 line.
    The line filters both IPv4 and IPv6 private addresses, disregarding
    the 6 in accept6/reject6.

When parsing torrc ExitPolicies, we now issue an info-level message:
  * when expanding an accept/reject * line to include both IPv4 and IPv6
    wildcard addresses.

In each instance, usage advice is provided to avoid the message.

Partial fix for ticket 16069. Patch by "teor".
Patch on 2eb7eafc9d78 and a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.

10 years agoAdd get_interface_address[6]_list for a list of interface IP addresses
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 07:04:18 +0000 (17:04 +1000)] 
Add get_interface_address[6]_list for a list of interface IP addresses

Add get_interface_address[6]_list by refactoring
get_interface_address6. Add unit tests for new and existing functions.

Preparation for ticket 17027. Patch by "teor".
Patch on 42b8fb5a1523 (11 Nov 2007), released in 0.2.0.11-alpha.

10 years agoUpdate comments about ExitPolicy parsing
teor (Tim Wilson-Brown) [Wed, 9 Sep 2015 13:48:33 +0000 (23:48 +1000)] 
Update comments about ExitPolicy parsing

Fix incomplete and incorrect comments.

Comment changes only.

10 years agoConvince coverity that we do not have a particular memory leak
Nick Mathewson [Sun, 13 Sep 2015 18:44:46 +0000 (14:44 -0400)] 
Convince coverity that we do not have a particular memory leak

10 years agoUse SSL_get_client_ciphers() on openssl 1.1+, not SSL_get_ciphers...
Nick Mathewson [Sun, 13 Sep 2015 15:51:51 +0000 (11:51 -0400)] 
Use SSL_get_client_ciphers() on openssl 1.1+, not SSL_get_ciphers...

(which isn't correct.)

Fixes bug 17047; bugfix on 0.2.7.2-alpha, introduced by the merge in
0030765e04d8dfe3dfaf8124b01a4d578b7d8ceb, apparently.

10 years agoAdd a rend cache failure info dup function
David Goulet [Fri, 11 Sep 2015 13:09:07 +0000 (15:09 +0200)] 
Add a rend cache failure info dup function

When validating a new descriptor against our rend cache failure, we were
added the failure entry to the new cache entry without duplicating. It was
then freed just after the validation ending up in a very bad memory state
that was making tor abort(). To fix this, a dup function has been added and
used just before adding the failure entry.

Fixes #17041

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoMerge remote-tracking branch 'public/ed25519_hup_v2'
Nick Mathewson [Thu, 10 Sep 2015 14:37:13 +0000 (10:37 -0400)] 
Merge remote-tracking branch 'public/ed25519_hup_v2'

10 years agoMerge remote-tracking branch 'teor/make-test-network-all'
Nick Mathewson [Thu, 10 Sep 2015 14:35:06 +0000 (10:35 -0400)] 
Merge remote-tracking branch 'teor/make-test-network-all'

10 years agoMerge remote-tracking branch 'teor/configure-use-colon'
Nick Mathewson [Thu, 10 Sep 2015 14:03:44 +0000 (10:03 -0400)] 
Merge remote-tracking branch 'teor/configure-use-colon'

10 years agofixup Some slower configurations need 35 seconds to bootstrap
teor (Tim Wilson-Brown) [Thu, 10 Sep 2015 07:40:47 +0000 (17:40 +1000)] 
fixup Some slower configurations need 35 seconds to bootstrap

Some slower configurations, like OS X i386, need 35 seconds to reliably
bootstrap larger chutney networks. Increase default bootstrap time in
src/test/test-network.h to 35 seconds.

10 years agoUse : rather than /bin/true in configure.ac
teor (Tim Wilson-Brown) [Thu, 10 Sep 2015 07:33:59 +0000 (17:33 +1000)] 
Use : rather than /bin/true in configure.ac

Some platforms have true at different locations, like /usr/bin/true.

10 years agoBump default test-network bootstrap time to 35 sec (see 16953)
Nick Mathewson [Wed, 9 Sep 2015 17:23:32 +0000 (13:23 -0400)] 
Bump default test-network bootstrap time to 35 sec (see 16953)

10 years agoMerge remote-tracking branch 'yawning/feature15482_fixup'
Nick Mathewson [Wed, 9 Sep 2015 13:56:59 +0000 (09:56 -0400)] 
Merge remote-tracking branch 'yawning/feature15482_fixup'

10 years agoCheck NoKeepAliveIsolateSOCKSAuth in a better place.
Yawning Angel [Wed, 9 Sep 2015 13:52:30 +0000 (13:52 +0000)] 
Check NoKeepAliveIsolateSOCKSAuth in a better place.

No functional changes, but since NoKeepAliveIsolateSOCKSAuth isn't
part of isoflag, it should be checked where all other similar options
are, and bypass the (no-op) masking at the end.

10 years agoFold changes files into changelog
Nick Mathewson [Wed, 9 Sep 2015 13:44:02 +0000 (09:44 -0400)] 
Fold changes files into changelog

10 years agoFix warnings from lintChanges
Nick Mathewson [Wed, 9 Sep 2015 13:35:05 +0000 (09:35 -0400)] 
Fix warnings from lintChanges

10 years agochanges file for 16953
Nick Mathewson [Tue, 8 Sep 2015 18:44:34 +0000 (14:44 -0400)] 
changes file for 16953

10 years agoMerge remote-tracking branch 'teor/make-test-network-all'
Nick Mathewson [Tue, 8 Sep 2015 18:43:34 +0000 (14:43 -0400)] 
Merge remote-tracking branch 'teor/make-test-network-all'

10 years agoIncrease default boostrap time in test-network.sh
teor (Tim Wilson-Brown) [Tue, 8 Sep 2015 18:21:07 +0000 (04:21 +1000)] 
Increase default boostrap time in test-network.sh

Increase default boostrap time in test-network.sh to 30 seconds,
for larger networks like bridges+ipv6+hs.

This avoids the failure-hiding issues inherent in the retry approach
in #16952.

10 years agoMake NoKeepAliveIsolateSOCKSAuth work as expected
Nick Mathewson [Tue, 8 Sep 2015 18:03:54 +0000 (14:03 -0400)] 
Make NoKeepAliveIsolateSOCKSAuth work as expected

10 years agoMerge branch 'feature15482_squashed'
Nick Mathewson [Tue, 8 Sep 2015 18:03:04 +0000 (14:03 -0400)] 
Merge branch 'feature15482_squashed'

10 years agoAdd `KeepAliveIsolateSOCKSAuth` as a SOCKSPort option.
Yawning Angel [Tue, 1 Sep 2015 16:30:48 +0000 (16:30 +0000)] 
Add `KeepAliveIsolateSOCKSAuth` as a SOCKSPort option.

This controls the circuit dirtyness reset behavior added for Tor
Browser's user experience fix (#15482). Unlike previous iterations
of this patch, the tunable actually works, and is documented.

10 years agomake test-network-all exit 1 if any test network fails
teor (Tim Wilson-Brown) [Tue, 8 Sep 2015 17:06:01 +0000 (03:06 +1000)] 
make test-network-all exit 1 if any test network fails

10 years agoMerge branch 'bug16980'
Nick Mathewson [Tue, 8 Sep 2015 14:41:51 +0000 (10:41 -0400)] 
Merge branch 'bug16980'

10 years agoHandle negative inputs to crypto_random_time_range().
Nick Mathewson [Tue, 8 Sep 2015 14:22:01 +0000 (10:22 -0400)] 
Handle negative inputs to crypto_random_time_range().

(These inputs are possible when Shadow starts the world at time_t 0,
and breaks our assumption that Tor didn't exist in the 1970s.)

Fixes regression introduced in 241e6b09. Fixes #16980.

10 years agoAdd "make test-network-all" to verify multiple test networks
teor (Tim Wilson-Brown) [Tue, 8 Sep 2015 12:27:59 +0000 (22:27 +1000)] 
Add "make test-network-all" to verify multiple test networks

make test-network-all is Makefile target which verifies a series
of test networks generated using test-network.sh and chutney.

It runs IPv6 and mixed version test networks if the prerequisites are
available.

Each test network reports PASS, FAIL, or SKIP.
Closes ticket 16953. Patch by "teor".

Also adds "--hs-multi-client 1" option to TEST_NETWORK_FLAGS.
This resolves #17012.

Larger networks, such as bridges+hs, may fail until #16952 is merged.

10 years agoMake test-network.sh more robust against arguments containing spaces
teor (Tim Wilson-Brown) [Tue, 8 Sep 2015 12:27:12 +0000 (22:27 +1000)] 
Make test-network.sh more robust against arguments containing spaces

10 years agoNever ever try to load the secret key if offline_master is set
Nick Mathewson [Wed, 2 Sep 2015 15:49:28 +0000 (11:49 -0400)] 
Never ever try to load the secret key if offline_master is set

(Not even if we can't find the public key.)

10 years agoAdd "OfflineMasterKey" option
Nick Mathewson [Tue, 1 Sep 2015 14:22:24 +0000 (10:22 -0400)] 
Add "OfflineMasterKey" option

When this is set, and Tor is running as a relay, it will not
generate or load its secret identity key.  You can manage the secret
identity key with --keygen.  Implements ticket 16944.

10 years agoFix an alignment issue in our extensions to ed25519_donna
Nick Mathewson [Fri, 4 Sep 2015 13:30:59 +0000 (09:30 -0400)] 
Fix an alignment issue in our extensions to ed25519_donna

Apparently this only happens with clang (or with some particular
clang versions), and only on i386.

Fixes 16970; bug not in any released Tor.

Found by Teor; fix from Yawning.

10 years agoFix windows test_keygen.sh. This time I think I have it!
Nick Mathewson [Thu, 3 Sep 2015 19:23:10 +0000 (15:23 -0400)] 
Fix windows test_keygen.sh. This time I think I have it!

10 years agoNow normalize_exit has a bug number.
Nick Mathewson [Thu, 3 Sep 2015 19:10:57 +0000 (15:10 -0400)] 
Now normalize_exit has a bug number.

10 years agoUse absolute path for datadir in test_keygen.sh
Nick Mathewson [Thu, 3 Sep 2015 18:53:50 +0000 (14:53 -0400)] 
Use absolute path for datadir in test_keygen.sh

10 years agoTry to fix #16974; bug not in any released version
Nick Mathewson [Thu, 3 Sep 2015 18:42:50 +0000 (14:42 -0400)] 
Try to fix #16974; bug not in any released version

10 years agoMake test_keygen.sh dump what the problem is on cmp failure
Nick Mathewson [Thu, 3 Sep 2015 16:51:58 +0000 (12:51 -0400)] 
Make test_keygen.sh dump what the problem is on cmp failure

10 years agoOnly return 0..255 from main().
Nick Mathewson [Thu, 3 Sep 2015 15:38:00 +0000 (11:38 -0400)] 
Only return 0..255 from main().

I think this may fix some bugs with windows exit codes being screwy.

10 years agoAdd a little more output to test_keygen.sh: try to debug windows
Nick Mathewson [Thu, 3 Sep 2015 14:53:04 +0000 (10:53 -0400)] 
Add a little more output to test_keygen.sh: try to debug windows

10 years agoAdd doc/WritingTests.txt to distribution
Nick Mathewson [Thu, 3 Sep 2015 14:30:54 +0000 (10:30 -0400)] 
Add doc/WritingTests.txt to distribution

10 years agoMerge remote-tracking branch 'dgoulet/bug15963_026_01'
Nick Mathewson [Wed, 2 Sep 2015 20:00:07 +0000 (16:00 -0400)] 
Merge remote-tracking branch 'dgoulet/bug15963_026_01'

10 years agoDon't vote HSDir if we aren't voting Fast
David Goulet [Wed, 2 Sep 2015 14:52:55 +0000 (16:52 +0200)] 
Don't vote HSDir if we aren't voting Fast

Fixes #15963

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoFix crashes in tests
Nick Mathewson [Wed, 2 Sep 2015 15:02:00 +0000 (11:02 -0400)] 
Fix crashes in tests

10 years agoProhibit the use of one entry node with an HS
David Goulet [Wed, 2 Sep 2015 12:53:39 +0000 (14:53 +0200)] 
Prohibit the use of one entry node with an HS

In a nutshell, since a circuit can not exit at its entry point, it's very
easy for an attacker to find the hidden service guard if only one EntryNodes
is specified since for that guard, the HS will refuse to build a rendezvous
circuit to it.

For now, the best solution is to stop tor to allow a single EntryNodes for
an hidden service.

Fixes #14917

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoLet recent relays run with the chutney sandbox.
Nick Mathewson [Wed, 2 Sep 2015 13:59:50 +0000 (09:59 -0400)] 
Let recent relays run with the chutney sandbox.

Fixes 16965

10 years agoLet bridge authorities run under the sandbox
Nick Mathewson [Wed, 2 Sep 2015 13:59:22 +0000 (09:59 -0400)] 
Let bridge authorities run under the sandbox

(found thanks to teor's chutney haxx)