]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
9 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Wed, 7 Dec 2016 23:28:09 +0000 (18:28 -0500)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

(ours merge, to avoid taking 20865 fix)

9 years agoBackport the other sierra fix in 20865.
Nick Mathewson [Wed, 7 Dec 2016 23:19:18 +0000 (18:19 -0500)] 
Backport the other sierra fix in 20865.

They added clock_gettime(), but with tv_nsec as a long, whereas
tv_usec is a __darwin_suseconds_t (a.k.a. 'int').  Now, why would
they do that? Are they preparing for a world where there are more
than 2 billion nanoseconds per second?  Are they planning for having
int be less than 32 bits again?  Or are they just not paying
attention to the Darwin API?

Also, they forgot to mark clock_gettime() as Sierra-only, so even
if we fixed the issue here, we'd still be stick with portability
breakage like we were for 0.2.9.

So, just disable clock_gettime() on apple.

9 years agoIncrease verbosity on options/validate__transproxy
Nick Mathewson [Wed, 7 Dec 2016 16:24:58 +0000 (11:24 -0500)] 
Increase verbosity on options/validate__transproxy

This is an attempt to figure out what's up with #19960

9 years agoFix a BUG() warning from next_random_exponential_delay().
Nick Mathewson [Wed, 7 Dec 2016 16:13:11 +0000 (11:13 -0500)] 
Fix a BUG() warning from next_random_exponential_delay().

Fixes 20875; this code is as suggested by teor on the ticket.  Thanks!

9 years agoIncrease tolerances in util/monotonic_time tests
Nick Mathewson [Wed, 7 Dec 2016 16:08:54 +0000 (11:08 -0500)] 
Increase tolerances in util/monotonic_time tests

This is an attempt to fix #19974.

9 years agoMerge branch 'bug20710_025' into maint-0.2.9
Nick Mathewson [Wed, 7 Dec 2016 15:52:12 +0000 (10:52 -0500)] 
Merge branch 'bug20710_025' into maint-0.2.9

9 years agoForgot to add changes file for 20710.
Nick Mathewson [Wed, 7 Dec 2016 15:51:39 +0000 (10:51 -0500)] 
Forgot to add changes file for 20710.

9 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Mon, 5 Dec 2016 15:06:45 +0000 (10:06 -0500)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

9 years agoMerge branch 'getentropy_028' into maint-0.2.8
Nick Mathewson [Mon, 5 Dec 2016 15:06:16 +0000 (10:06 -0500)] 
Merge branch 'getentropy_028' into maint-0.2.8

9 years ago20865: Don't use getentropy() on OSX Sierra.
Nick Mathewson [Mon, 5 Dec 2016 14:37:03 +0000 (09:37 -0500)] 
20865: Don't use getentropy() on OSX Sierra.

Tor 0.2.9 has a broader range of fixes and workarounds here, but for
0.2.8, we're just going to maintain the existing behavior.

(The alternative would be to backport both
1eba088054eca1555b455ee4a2adfafecb888af9 and
16fcbd21c963a9a65bf55024680c8323c8b7175d , but the latter is kind of
a subtle kludge in the configure.ac script, and I'm not a fan of
backporting that kind of thing.)

9 years agoTest for .git as readable instead of a dir to support worktrees
J. Ryan Stinnett [Mon, 5 Dec 2016 03:16:59 +0000 (21:16 -0600)] 
Test for .git as readable instead of a dir to support worktrees

Fixes #20492.

9 years agoFix changes file for 20864: 20638 _did_ get into 0.2.9
Nick Mathewson [Mon, 5 Dec 2016 13:12:10 +0000 (08:12 -0500)] 
Fix changes file for 20864: 20638 _did_ get into 0.2.9

9 years agoMerge remote-tracking branch 'teor/bug20864-029' into maint-0.2.9
Nick Mathewson [Mon, 5 Dec 2016 13:10:48 +0000 (08:10 -0500)] 
Merge remote-tracking branch 'teor/bug20864-029' into maint-0.2.9

9 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Mon, 5 Dec 2016 13:05:37 +0000 (08:05 -0500)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

9 years agoAlways Use EVP_aes_*_ctr() with openssl 1.1
Nick Mathewson [Mon, 7 Nov 2016 02:01:25 +0000 (21:01 -0500)] 
Always Use EVP_aes_*_ctr() with openssl 1.1

(OpenSSL 1.1 makes EVP_CIPHER_CTX opaque, _and_ adds acceleration
for counter mode on more architectures.  So it won't work if we try
the older approach, and it might help if we try the newer one.)

Fixes bug 20588.

9 years agoChanges file for 20864
teor [Fri, 2 Dec 2016 19:35:45 +0000 (06:35 +1100)] 
Changes file for 20864

9 years agoMove a comment in test_single_onion_poisoning
teor [Fri, 2 Dec 2016 19:30:58 +0000 (06:30 +1100)] 
Move a comment in test_single_onion_poisoning

9 years agoAdd a missing return value check in test_single_onion_poisoning
teor [Fri, 2 Dec 2016 19:30:06 +0000 (06:30 +1100)] 
Add a missing return value check in test_single_onion_poisoning

9 years agoRemove a double-free in test_single_onion_poisoning
teor [Fri, 2 Dec 2016 19:27:32 +0000 (06:27 +1100)] 
Remove a double-free in test_single_onion_poisoning

We were freeing both dir{1,2} directly, and service_{1,2}->directory via
rend_service_free, even though they are the same pointer.

9 years agoRefactor poison_dir allocation and free in test_single_onion_poisoning
teor [Fri, 2 Dec 2016 19:25:46 +0000 (06:25 +1100)] 
Refactor poison_dir allocation and free in test_single_onion_poisoning

This pattern is much less error-prone when future changes are made.

9 years agoprotover: Fix old tor hardcoded version check
David Goulet [Mon, 28 Nov 2016 15:58:03 +0000 (10:58 -0500)] 
protover: Fix old tor hardcoded version check

When computing old Tor protocol line version in protover, we were looking at
0.2.7.5 twice instead of the specific case for 0.2.9.1-alpha.

Fixes #20810

Signed-off-by: David Goulet <dgoulet@torproject.org>
9 years agoMerge branch 'bug20716_026' into maint-0.2.9
Nick Mathewson [Fri, 2 Dec 2016 17:00:46 +0000 (12:00 -0500)] 
Merge branch 'bug20716_026' into maint-0.2.9

9 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Fri, 2 Dec 2016 16:20:27 +0000 (11:20 -0500)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

9 years agoBump to 0.2.9.6-rc-dev
Nick Mathewson [Fri, 2 Dec 2016 16:20:23 +0000 (11:20 -0500)] 
Bump to 0.2.9.6-rc-dev

9 years agoBump to 0.2.8.10-dev
Nick Mathewson [Fri, 2 Dec 2016 16:19:53 +0000 (11:19 -0500)] 
Bump to 0.2.8.10-dev

9 years agotest_single_onion_poisoning: Free dir[12] on all paths
Nick Mathewson [Fri, 2 Dec 2016 12:39:14 +0000 (07:39 -0500)] 
test_single_onion_poisoning: Free dir[12] on all paths

Coverity doesn't like it when there are paths to the end of the
function where something doesn't get freed, even when those paths
are only reachable on unit test failure.

Fixes CID 1372899 and CID 1372900. Bug not in any released Tor.

9 years agoBump to 0.2.9.6-rc
Nick Mathewson [Thu, 1 Dec 2016 18:36:38 +0000 (13:36 -0500)] 
Bump to 0.2.9.6-rc

9 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Thu, 1 Dec 2016 18:35:34 +0000 (13:35 -0500)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

9 years agoBump to 0.2.8.10
Nick Mathewson [Thu, 1 Dec 2016 18:34:21 +0000 (13:34 -0500)] 
Bump to 0.2.8.10

9 years agoFix major errors in freeing getaddrinfo sandbox cache
Nick Mathewson [Thu, 1 Dec 2016 15:36:02 +0000 (10:36 -0500)] 
Fix major errors in freeing getaddrinfo sandbox cache

Patch from cypherpunks. Fixes bug 20710; bugfix on 0.2.5.5-alpha.

9 years agoFix memory leak in bug 20716
overcaffeinated [Sat, 19 Nov 2016 19:32:08 +0000 (19:32 +0000)] 
Fix memory leak in bug 20716

newconn->address is strdup'ed twice when new_type == CONN_TYPE_AP
and conn->socket_family == AF_UNIX. Whilst here, juggle code to
make sure newconn->port is assigned from an initialised value in
the above case.

9 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Thu, 1 Dec 2016 15:05:44 +0000 (10:05 -0500)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

9 years agoMerge branch 'bug20638_029_v2_squashed' into maint-0.2.9
Nick Mathewson [Thu, 1 Dec 2016 14:45:14 +0000 (09:45 -0500)] 
Merge branch 'bug20638_029_v2_squashed' into maint-0.2.9

9 years agoStop ignoring hidden service key anonymity when first starting tor
teor [Fri, 18 Nov 2016 00:46:01 +0000 (11:46 +1100)] 
Stop ignoring hidden service key anonymity when first starting tor

Instead, refuse to start tor if any hidden service key has been used in
a different hidden service anonymity mode.

Fixes bug 20638; bugfix on 17178 in 0.2.9.3-alpha; reported by ahf.

The original single onion service poisoning code checked poisoning state
in options_validate, and poisoned in options_act. This was problematic,
because the global array of hidden services had not been populated in
options_validate (and there were ordrering issues with hidden service
directory creation).

This patch fixes this issue in rend_service_check_dir_and_add, which:
* creates the directory, or checks permissions on an existing directory, then
* checks the poisoning state of the directory, then
* poisons the directory.

When validating, only the permissions checks and the poisoning state checks
are perfomed (the directory is not modified).

9 years agoUpdate unit tests for 20484, 20529
teor [Fri, 18 Nov 2016 03:32:13 +0000 (14:32 +1100)] 
Update unit tests for 20484, 20529

Add extra logging and extra validity checks for hidden services.

9 years agoTry to work around breakage in the OSX 10.12 SDK.
Nick Mathewson [Wed, 23 Nov 2016 00:24:13 +0000 (19:24 -0500)] 
Try to work around breakage in the OSX 10.12 SDK.

Apple is supposed to decorate their function declarations with
macros to indicate which OSX version introduced them, so that you
can tell the compiler that you want to build against certain
versions of OSX.  But they forgot to do that for clock_gettime() and
getentropy(), both of which they introduced in 10.12.

This patch adds a kludge to the configure.ac script where, if we
detect that we are targeting OSX 10.11 or earlier, we don't even probe
to see if the two offending functions are present.

Closes ticket 20235.

9 years agoMerge remote-tracking branch 'arma/bug20423' into maint-0.2.9
Nick Mathewson [Mon, 21 Nov 2016 17:40:08 +0000 (12:40 -0500)] 
Merge remote-tracking branch 'arma/bug20423' into maint-0.2.9

9 years agoRefactor rend_service_check_dir_and_add
teor [Fri, 4 Nov 2016 05:28:33 +0000 (16:28 +1100)] 
Refactor rend_service_check_dir_and_add

Make the function flatter, and prepare for #20559.

No behaviour change.

9 years agoRefactor duplicate code out of rend_config_services
teor [Fri, 4 Nov 2016 05:04:05 +0000 (16:04 +1100)] 
Refactor duplicate code out of rend_config_services

Put that code in rend_service_check_dir_and_add.

No behaviour change.

This is a defence in depth measure against similar bugs to 20529.

9 years agoCreate HS directories in rend_config_services, then check before use
teor [Fri, 4 Nov 2016 04:46:24 +0000 (15:46 +1100)] 
Create HS directories in rend_config_services, then check before use

(We only create HS directories if we are acting on the config.)

Log a BUG warning if the directories aren't present immediately before they
are used, then fail.

9 years agoMerge remote-tracking branch 'teor/bug20634_029' into maint-0.2.9
Nick Mathewson [Fri, 18 Nov 2016 01:02:59 +0000 (20:02 -0500)] 
Merge remote-tracking branch 'teor/bug20634_029' into maint-0.2.9

9 years agodon't attempt a resolve when the cached answer will do
Roger Dingledine [Wed, 16 Nov 2016 21:22:11 +0000 (16:22 -0500)] 
don't attempt a resolve when the cached answer will do

For relays that don't know their own address, avoid attempting
a local hostname resolve for each descriptor we download. Also cut
down on the number of "Success: chose address 'x.x.x.x'" log lines.

Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.

9 years agorefactor router_pick_published_address to have another arg
Roger Dingledine [Wed, 16 Nov 2016 21:13:03 +0000 (16:13 -0500)] 
refactor router_pick_published_address to have another arg

no change in behavior except fewer log entries in the case where we use
a cached result.

9 years agoChanges file for bug 20634
teor [Wed, 16 Nov 2016 02:08:39 +0000 (13:08 +1100)] 
Changes file for bug 20634

9 years agofixup! Add expect_log_msg_containing_either3() and expect_log_msg_containing_either4()
teor [Wed, 16 Nov 2016 02:03:20 +0000 (13:03 +1100)] 
fixup! Add expect_log_msg_containing_either3() and expect_log_msg_containing_either4()

Fix typos:
    * extra '('
    * use assert_log_predicate (without 3 or 4 at the end)

Tidy whitespace.
Wrap long lines.

9 years agoAdd all four error messages to test_address_get_if_addrs6_list_no_internal()
Neel Chauhan [Wed, 16 Nov 2016 01:36:53 +0000 (20:36 -0500)] 
Add all four error messages to test_address_get_if_addrs6_list_no_internal()

9 years agoAdd all four error messages to test_address_get_if_addrs6_list_internal()
Neel Chauhan [Wed, 16 Nov 2016 01:35:48 +0000 (20:35 -0500)] 
Add all four error messages to test_address_get_if_addrs6_list_internal()

9 years agoAdd expect_log_msg_containing_either3() and expect_log_msg_containing_either4()
Neel Chauhan [Wed, 16 Nov 2016 01:33:31 +0000 (20:33 -0500)] 
Add expect_log_msg_containing_either3() and expect_log_msg_containing_either4()

9 years agoFix grammar in HiddenServiceSingleHopMode description
Fabian Keil [Fri, 11 Nov 2016 14:46:07 +0000 (15:46 +0100)] 
Fix grammar in HiddenServiceSingleHopMode description

9 years agoMerge remote-tracking branch 'teor/bug20613' into maint-0.2.9
Nick Mathewson [Thu, 10 Nov 2016 14:10:55 +0000 (09:10 -0500)] 
Merge remote-tracking branch 'teor/bug20613' into maint-0.2.9

9 years agoStop logging single onion and Tor2web long-term one-hop circuits
teor [Wed, 9 Nov 2016 00:22:08 +0000 (11:22 +1100)] 
Stop logging single onion and Tor2web long-term one-hop circuits

Single onion services and Tor2web deliberately create long-term one-hop
circuits to their intro and rend points, respectively.

These log messages are intended to diagnose issue 8387, which relates to
circuits hanging around forever for no reason.

Fixes bug 20613; bugfix on 0.2.9.1-alpha. Reported by "pastly".

9 years agoIn torrc.sample.in, note that bandwidth must be >=75 KB.
Nick Mathewson [Wed, 9 Nov 2016 00:23:49 +0000 (19:23 -0500)] 
In torrc.sample.in, note that bandwidth must be >=75 KB.

Queue a corresponding change for torrc.minimal.in.

Closes ticket 20085.

9 years agoCall get_options() once at the top of circuit_log_ancient_one_hop_circuits()
teor [Wed, 9 Nov 2016 00:15:48 +0000 (11:15 +1100)] 
Call get_options() once at the top of circuit_log_ancient_one_hop_circuits()

Refactoring, no behaviour change.

9 years agoMerge remote-tracking branch 'public/bug20306_029' into maint-0.2.9
Nick Mathewson [Tue, 8 Nov 2016 23:51:07 +0000 (18:51 -0500)] 
Merge remote-tracking branch 'public/bug20306_029' into maint-0.2.9

9 years agoUse va_copy() in pure-windows version of tor_asprintf().
Nick Mathewson [Tue, 8 Nov 2016 23:44:06 +0000 (18:44 -0500)] 
Use va_copy() in pure-windows version of tor_asprintf().

It's not okay to use the same varargs list twice, and apparently
some windows build environments produce code here that would leave
tor_asprintf() broken. Fix for bug 20560; bugfix on 0.2.2.11-alpha
when tor_asprintf() was introduced.

9 years agoBump version to 0.2.9.5-alpha-dev
Nick Mathewson [Tue, 8 Nov 2016 12:55:15 +0000 (07:55 -0500)] 
Bump version to 0.2.9.5-alpha-dev

9 years agoWhen using exponential backoff in test networks, use a lower exponent
teor [Tue, 8 Nov 2016 05:39:36 +0000 (16:39 +1100)] 
When using exponential backoff in test networks, use a lower exponent

Lower exponents mean that delays do not vary as much. This helps test
networks bootstrap consistently.

Bugfix on 20499.

9 years agobump version to 0.2.9.5-alpha
Nick Mathewson [Mon, 7 Nov 2016 21:38:53 +0000 (16:38 -0500)] 
bump version to 0.2.9.5-alpha

9 years agoMake new changes files pass lintchanges
Nick Mathewson [Mon, 7 Nov 2016 21:19:05 +0000 (16:19 -0500)] 
Make new changes files pass lintchanges

9 years agoMerge remote-tracking branch 'teor/bug20484_029_v2' into maint-0.2.9
Nick Mathewson [Mon, 7 Nov 2016 21:12:13 +0000 (16:12 -0500)] 
Merge remote-tracking branch 'teor/bug20484_029_v2' into maint-0.2.9

9 years agoFix another 20499-broken test
Nick Mathewson [Mon, 7 Nov 2016 21:10:42 +0000 (16:10 -0500)] 
Fix another 20499-broken test

9 years agoFix a unit test (broken by recent 20499 hacking)
Nick Mathewson [Mon, 7 Nov 2016 21:02:55 +0000 (16:02 -0500)] 
Fix a unit test (broken by recent 20499 hacking)

9 years agoAdd onion_service_non_anonymous file to man page
teor [Fri, 4 Nov 2016 07:25:57 +0000 (18:25 +1100)] 
Add onion_service_non_anonymous file to man page

9 years agoMerge branch 'bug20534_029_squashed' into maint-0.2.9
Nick Mathewson [Mon, 7 Nov 2016 16:01:31 +0000 (11:01 -0500)] 
Merge branch 'bug20534_029_squashed' into maint-0.2.9

9 years agoReduce multiplier to 3, per teor's recommendation on #20534
Nick Mathewson [Mon, 7 Nov 2016 15:55:33 +0000 (10:55 -0500)] 
Reduce multiplier to 3, per teor's recommendation on #20534

(Three _is_ a good number for anonymity!)

9 years agoAlways increment delays by at least 1.
Nick Mathewson [Mon, 7 Nov 2016 15:17:13 +0000 (10:17 -0500)] 
Always increment delays by at least 1.

9 years agoAvoid integer overflow in delay calculation.
Nick Mathewson [Mon, 7 Nov 2016 14:58:29 +0000 (09:58 -0500)] 
Avoid integer overflow in delay calculation.

9 years agoCount HTTP 503 as a download failure.
Nick Mathewson [Mon, 7 Nov 2016 14:43:12 +0000 (09:43 -0500)] 
Count HTTP 503 as a download failure.

Because as Teor puts it: "[Resetting on 503] is exactly what we
don't want when relays are busy - imagine clients doing an automatic
reset every time they DoS a relay..."

Fixes bug 20593.

9 years agoAdjust download schedules per teor's #20534 recommendataions
Nick Mathewson [Mon, 7 Nov 2016 14:38:49 +0000 (09:38 -0500)] 
Adjust download schedules per teor's #20534 recommendataions

9 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Mon, 7 Nov 2016 14:32:00 +0000 (09:32 -0500)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

9 years agoMerge branch 'maint-0.2.7' into maint-0.2.8
Nick Mathewson [Mon, 7 Nov 2016 14:31:36 +0000 (09:31 -0500)] 
Merge branch 'maint-0.2.7' into maint-0.2.8

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Mon, 7 Nov 2016 14:30:42 +0000 (09:30 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

9 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 7 Nov 2016 14:30:16 +0000 (09:30 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

9 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Mon, 7 Nov 2016 14:29:54 +0000 (09:29 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

9 years agoMerge branch '20499_part1_029_squashed', remote-tracking branches 'teor/bug20591_029...
Nick Mathewson [Mon, 7 Nov 2016 14:20:13 +0000 (09:20 -0500)] 
Merge branch '20499_part1_029_squashed', remote-tracking branches 'teor/bug20591_029' and 'teor/bug20533_029' into maint-0.2.9

9 years agoAllow infinitely long delays in exponential-backoff downloads
Nick Mathewson [Mon, 7 Nov 2016 01:14:34 +0000 (20:14 -0500)] 
Allow infinitely long delays in exponential-backoff downloads

It's only safe to remove the failure limit (per 20536) if we are in
fact waiting a bit longer each time we try to download.

Fixes bug 20534; bugfix on 0.2.9.1-alpha.

9 years agoMerge branch 'bug20588' into maint-0.2.9
Nick Mathewson [Mon, 7 Nov 2016 14:08:58 +0000 (09:08 -0500)] 
Merge branch 'bug20588' into maint-0.2.9

9 years agoUpdate geoip and geoip6 to the November 3 2016 database.
Karsten Loesing [Mon, 7 Nov 2016 14:05:19 +0000 (15:05 +0100)] 
Update geoip and geoip6 to the November 3 2016 database.

9 years agoWhen downloading certificates, check for related failures
teor [Mon, 7 Nov 2016 13:01:20 +0000 (00:01 +1100)] 
When downloading certificates, check for related failures

If a consensus expires while we are waiting for certificates to download,
stop waiting for certificates.

If we stop waiting for certificates less than a minute after we started
downloading them, do not consider the certificate download failure a
separate failure.

Fixes bug 20533; bugfix on commit e0204f21 in 0.2.0.9-alpha.

9 years agoEnsure relays don't make multiple connections during bootstrap
teor [Mon, 7 Nov 2016 11:58:36 +0000 (22:58 +1100)] 
Ensure relays don't make multiple connections during bootstrap

Relays do not deliberately launch multiple attempts, so the impact of this
bug should be minimal. This fix also defends against bugs like #20499.

Bugfix on 0.2.8.1-alpha.

9 years agoAlways Use EVP_aes_*_ctr() with openssl 1.1
Nick Mathewson [Mon, 7 Nov 2016 02:01:25 +0000 (21:01 -0500)] 
Always Use EVP_aes_*_ctr() with openssl 1.1

(OpenSSL 1.1 makes EVP_CIPHER_CTX opaque, _and_ adds acceleration
for counter mode on more architectures.  So it won't work if we try
the older approach, and it might help if we try the newer one.)

Fixes bug 20588.

9 years agoFinish a sentence in a comment. Close 20576.
Nick Mathewson [Mon, 7 Nov 2016 01:31:50 +0000 (20:31 -0500)] 
Finish a sentence in a comment. Close 20576.

9 years agoIn test_tortls_classify_client_ciphers(), s/ECDH/ECDHE/
Nick Mathewson [Mon, 7 Nov 2016 01:23:40 +0000 (20:23 -0500)] 
In test_tortls_classify_client_ciphers(), s/ECDH/ECDHE/

(We weren't actually using these ciphers; we were just requing that
ciphers of that name existed.)

Patch from rubiate.  Fixes 20460

9 years agoDo not apply 'max_failures' to random-exponential schedules.
Nick Mathewson [Mon, 7 Nov 2016 01:08:11 +0000 (20:08 -0500)] 
Do not apply 'max_failures' to random-exponential schedules.

Fixes bug 20536; bugfix on 0.2.9.1-alpha.

9 years agoChange a BUG warning to be a warning, not an info.
Nick Mathewson [Mon, 7 Nov 2016 01:01:24 +0000 (20:01 -0500)] 
Change a BUG warning to be a warning, not an info.

9 years agoFix get_delay() code to avoid TIME_MAX overflow, not INT_MAX.
Nick Mathewson [Mon, 7 Nov 2016 00:50:08 +0000 (19:50 -0500)] 
Fix get_delay() code to avoid TIME_MAX overflow, not INT_MAX.

Fixes bug 20587; bugfix on 35bbf2e4a4e8ccb in 0.2.8.1-alpha.

9 years agoFix warnings from lintChanges.py
Nick Mathewson [Sun, 6 Nov 2016 21:39:46 +0000 (16:39 -0500)] 
Fix warnings from lintChanges.py

9 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Thu, 3 Nov 2016 22:36:43 +0000 (18:36 -0400)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

9 years agoMerge branch 'bug20551_028' into maint-0.2.8
Nick Mathewson [Thu, 3 Nov 2016 22:36:25 +0000 (18:36 -0400)] 
Merge branch 'bug20551_028' into maint-0.2.8

9 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Thu, 3 Nov 2016 19:44:46 +0000 (15:44 -0400)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

9 years agoMerge remote-tracking branch 'arma/bug19969_028_squashed' into maint-0.2.8
Nick Mathewson [Thu, 3 Nov 2016 19:44:30 +0000 (15:44 -0400)] 
Merge remote-tracking branch 'arma/bug19969_028_squashed' into maint-0.2.8

9 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Thu, 3 Nov 2016 19:41:04 +0000 (15:41 -0400)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

9 years agoWork around a behavior change in openssl's BUF_MEM code
Nick Mathewson [Thu, 3 Nov 2016 14:46:27 +0000 (10:46 -0400)] 
Work around a behavior change in openssl's BUF_MEM code

In our code to write public keys to a string, for some unfathomable
reason since 253f0f160e1185c, we would allocate a memory BIO, then
set the NOCLOSE flag on it, extract its memory buffer, and free it.
Then a little while later we'd free the memory buffer with
BUF_MEM_free().

As of openssl 1.1 this doesn't work any more, since there is now a
BIO_BUF_MEM structure that wraps the BUF_MEM structure.  This
BIO_BUF_MEM doesn't get freed in our code.

So, we had a memory leak!

Is this an openssl bug?  Maybe.  But our code was already pretty
silly.  Why mess around with the NOCLOSE flag here when we can just
keep the BIO object around until we don't need the buffer any more?

Fixes bug 20553; bugfix on 0.0.2pre8

9 years agoUse explicit casts to avoid warnings when building with openssl 1.1
Nick Mathewson [Thu, 3 Nov 2016 13:35:41 +0000 (09:35 -0400)] 
Use explicit casts to avoid warnings when building with openssl 1.1

fixes bug 20551; bugfix on 0.2.1.1-alpha

9 years agoUse the latest options in rend_service_check_private_dir
teor [Wed, 2 Nov 2016 03:55:14 +0000 (14:55 +1100)] 
Use the latest options in rend_service_check_private_dir

Fixup on both:
* Refactor, adding a create argument... and
* Check every hidden service directory's permissions...

9 years agoCheck every hidden service directory's permissions when configuring
teor [Wed, 2 Nov 2016 03:32:04 +0000 (14:32 +1100)] 
Check every hidden service directory's permissions when configuring

Previously, we would only check the last hidden service directory.

Fixes #20529, bugfix on ticket 13942 commit 85bfad1 in 0.2.6.2-alpha.

9 years agoTest single onion service configs where the directory does not exist
teor [Wed, 2 Nov 2016 03:17:52 +0000 (14:17 +1100)] 
Test single onion service configs where the directory does not exist

Runs a test for each combination of create/don't create directories.

Tests #20484.

9 years agoMake sure passthrough_test_setup doesn't inadvertently fail or skip tests
teor [Wed, 2 Nov 2016 03:16:14 +0000 (14:16 +1100)] 
Make sure passthrough_test_setup doesn't inadvertently fail or skip tests

passthrough_test_setup doesn't pass through arguments if the argument
is equal to 0 or TT_SKIP. Instead, it fails or skips the test.

Assert on this, so we don't accidentally fail or skip tests.

9 years agoAdd get_fname_rnd for unit tests that want a unique path every time
teor [Wed, 2 Nov 2016 03:14:19 +0000 (14:14 +1100)] 
Add get_fname_rnd for unit tests that want a unique path every time

9 years agoCreate get_fname_suffix, and refactor get_fname to use it
teor [Wed, 2 Nov 2016 03:13:34 +0000 (14:13 +1100)] 
Create get_fname_suffix, and refactor get_fname to use it