]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agoCopy the nss-related changes into fuzzing_include_am.py.
Nick Mathewson [Mon, 10 Dec 2018 22:44:53 +0000 (17:44 -0500)] 
Copy the nss-related changes into fuzzing_include_am.py.

7 years agoFuzzing module for various string operations, currently focusing on
Nick Mathewson [Mon, 10 Dec 2018 15:00:26 +0000 (10:00 -0500)] 
Fuzzing module for various string operations, currently focusing on
encoding and decoding.

There are bunches of places where we don't want to invest in a full
fuzzer, but we would like to make sure that some string operation
can handle all its possible inputs.  This fuzzer uses the first byte
of its input to decide what to do with the rest of the input.  Right
now, all the possibilities are decoding a string, and seeing whether
it is decodeable.  If it is, we try to re-encode it and do the whole
thing again, to make sure we get the same result.

This turned up a lot of bugs in the key-value parser, and I think it
will help in other cases too.

Closes ticket 28808.

7 years agoAdd code to parse K=V lines into config_line_t format.
Nick Mathewson [Thu, 6 Dec 2018 19:13:29 +0000 (14:13 -0500)] 
Add code to parse K=V lines into config_line_t format.

Closes ticket 28755

7 years agoMerge branch 'maint-0.3.5'
Nick Mathewson [Thu, 6 Dec 2018 14:26:34 +0000 (09:26 -0500)] 
Merge branch 'maint-0.3.5'

7 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Thu, 6 Dec 2018 14:26:33 +0000 (09:26 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 6 Dec 2018 14:26:32 +0000 (09:26 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.3
Nick Mathewson [Thu, 6 Dec 2018 14:26:32 +0000 (09:26 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.3

7 years agoUpdate geoip and geoip6 to the December 5 2018 database.
Karsten Loesing [Wed, 5 Dec 2018 20:02:39 +0000 (21:02 +0100)] 
Update geoip and geoip6 to the December 5 2018 database.

7 years agoMerge branch 'maint-0.3.5'
Nick Mathewson [Wed, 5 Dec 2018 15:25:12 +0000 (10:25 -0500)] 
Merge branch 'maint-0.3.5'

7 years agoMerge remote-tracking branch 'tor-github/pr/546' into maint-0.3.5
Nick Mathewson [Wed, 5 Dec 2018 15:23:28 +0000 (10:23 -0500)] 
Merge remote-tracking branch 'tor-github/pr/546' into maint-0.3.5

7 years agoMerge remote-tracking branch 'public/prop298'
Nick Mathewson [Wed, 5 Dec 2018 14:43:03 +0000 (09:43 -0500)] 
Merge remote-tracking branch 'public/prop298'

7 years agoMerge branch 'prop293_squashed'
Nick Mathewson [Wed, 5 Dec 2018 14:24:51 +0000 (09:24 -0500)] 
Merge branch 'prop293_squashed'

7 years agoWrite tests for mark_my_descriptor_dirty_if_too_old()
Nick Mathewson [Mon, 3 Dec 2018 19:06:53 +0000 (14:06 -0500)] 
Write tests for mark_my_descriptor_dirty_if_too_old()

7 years agoMerge remote-tracking branch 'tor-github/pr/531'
Nick Mathewson [Wed, 5 Dec 2018 14:02:49 +0000 (09:02 -0500)] 
Merge remote-tracking branch 'tor-github/pr/531'

7 years agoMerge remote-tracking branch 'tor-github/pr/561'
Nick Mathewson [Wed, 5 Dec 2018 13:29:41 +0000 (08:29 -0500)] 
Merge remote-tracking branch 'tor-github/pr/561'

7 years agoMerge remote-tracking branch 'tor-github/pr/553'
Nick Mathewson [Wed, 5 Dec 2018 13:28:54 +0000 (08:28 -0500)] 
Merge remote-tracking branch 'tor-github/pr/553'

7 years agoMerge remote-tracking branch 'tor-github/pr/508'
Nick Mathewson [Wed, 5 Dec 2018 13:19:02 +0000 (08:19 -0500)] 
Merge remote-tracking branch 'tor-github/pr/508'

7 years agoremember why we are doing getsockopt()
Nick Mathewson [Wed, 5 Dec 2018 13:14:21 +0000 (08:14 -0500)] 
remember why we are doing getsockopt()

7 years agoMerge remote-tracking branch 'tor-github/pr/560'
Nick Mathewson [Wed, 5 Dec 2018 13:13:02 +0000 (08:13 -0500)] 
Merge remote-tracking branch 'tor-github/pr/560'

7 years agoMerge branch 'ticket28479_squashed'
Nick Mathewson [Wed, 5 Dec 2018 12:59:44 +0000 (07:59 -0500)] 
Merge branch 'ticket28479_squashed'

7 years agoUpdate ReleasingTor.md to reflect current practice
Nick Mathewson [Fri, 16 Nov 2018 16:51:58 +0000 (11:51 -0500)] 
Update ReleasingTor.md to reflect current practice

See #28479.

7 years agoMerge branch 'maint-0.3.5'
David Goulet [Tue, 4 Dec 2018 17:55:02 +0000 (12:55 -0500)] 
Merge branch 'maint-0.3.5'

7 years agoman: Document HSv3 client authorization revocation
David Goulet [Mon, 3 Dec 2018 16:22:14 +0000 (11:22 -0500)] 
man: Document HSv3 client authorization revocation

Removing a ".auth" file revokes a client access to the service but the
rendezvous circuit is not closed service side because the service simply
doesn't know which circuit is for which client.

This commit notes in the man page that to fully revoke a client access to the
service, the tor process should be restarted.

Closes #28275

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoAdd tests for parsing each routerstatus flag.
Nick Mathewson [Mon, 3 Dec 2018 18:40:08 +0000 (13:40 -0500)] 
Add tests for parsing each routerstatus flag.

7 years agoAdd a framework for testing set_routerstatus_from_routerinfo().
Nick Mathewson [Mon, 3 Dec 2018 18:22:23 +0000 (13:22 -0500)] 
Add a framework for testing set_routerstatus_from_routerinfo().

Additionally, use it to test that is_staledesc is set correctly.

Eventually we'll want to test all the other flags, but I'm aiming
for only adding coverage on the changed code here.

7 years agoMake input argument const in set_routerstatus_from_routerinfo.
Nick Mathewson [Mon, 3 Dec 2018 17:34:29 +0000 (12:34 -0500)] 
Make input argument const in set_routerstatus_from_routerinfo.

7 years agoKeep list of dirauth flags in sync between dirvote.c and fuzz_vrs.c
Nick Mathewson [Mon, 3 Dec 2018 17:18:45 +0000 (12:18 -0500)] 
Keep list of dirauth flags in sync between dirvote.c and fuzz_vrs.c

Suggested by Teor on PR

7 years agomanpage: Mention that adding new HS is unsupported if Sandbox is enabled
rl1987 [Mon, 3 Dec 2018 13:19:33 +0000 (15:19 +0200)] 
manpage: Mention that adding new HS is unsupported if Sandbox is enabled

7 years agoPrint error message we get from socket.connect_ex when it fails
rl1987 [Mon, 3 Dec 2018 12:49:33 +0000 (14:49 +0200)] 
Print error message we get from socket.connect_ex when it fails

7 years agoMore logging for #28229
rl1987 [Mon, 3 Dec 2018 12:40:37 +0000 (14:40 +0200)] 
More logging for #28229

7 years agoCheck that new listener connection is actually listening
rl1987 [Mon, 3 Dec 2018 12:28:32 +0000 (14:28 +0200)] 
Check that new listener connection is actually listening

7 years agoMerge remote-tracking branch 'tor-github/pr/544'
Nick Mathewson [Mon, 3 Dec 2018 00:50:04 +0000 (19:50 -0500)] 
Merge remote-tracking branch 'tor-github/pr/544'

7 years agoMerge remote-tracking branch 'tor-github/pr/559'
Nick Mathewson [Mon, 3 Dec 2018 00:38:40 +0000 (19:38 -0500)] 
Merge remote-tracking branch 'tor-github/pr/559'

7 years agodoc: remove cached-routers from the man page
teor [Mon, 3 Dec 2018 00:22:49 +0000 (10:22 +1000)] 
doc: remove cached-routers from the man page

cached-routers was removed from the code a long time ago

7 years agocomment: replace cached-routers with cached-descriptors
teor [Mon, 3 Dec 2018 00:19:34 +0000 (10:19 +1000)] 
comment: replace cached-routers with cached-descriptors

cached-routers has been gone for a long time

7 years agoUse tor_strdup() in place of malloc+strncpy+terminate.
Nick Mathewson [Sun, 2 Dec 2018 01:46:06 +0000 (20:46 -0500)] 
Use tor_strdup() in place of malloc+strncpy+terminate.

7 years agoMerge remote-tracking branch 'tor-github/pr/556'
Nick Mathewson [Sun, 2 Dec 2018 01:35:38 +0000 (20:35 -0500)] 
Merge remote-tracking branch 'tor-github/pr/556'

7 years agoMerge branch 'ticket27490a_squashed'
Nick Mathewson [Sun, 2 Dec 2018 01:32:18 +0000 (20:32 -0500)] 
Merge branch 'ticket27490a_squashed'

7 years agoAdd regression test for ClientAutoIPv6ORPort
Neel Chauhan [Wed, 17 Oct 2018 00:14:27 +0000 (20:14 -0400)] 
Add regression test for ClientAutoIPv6ORPort

7 years agoIn fascist_firewall_use_ipv6(), say we can use IPv6 if ClientAutoIPv6ORPort is 1
Neel Chauhan [Wed, 26 Sep 2018 23:19:11 +0000 (19:19 -0400)] 
In fascist_firewall_use_ipv6(), say we can use IPv6 if ClientAutoIPv6ORPort is 1

7 years agoAdd new option ClientAutoIPv6ORPort to switch between IPv4 and IPv6 OR ports
Neel Chauhan [Wed, 26 Sep 2018 23:14:33 +0000 (19:14 -0400)] 
Add new option ClientAutoIPv6ORPort to switch between IPv4 and IPv6 OR ports

7 years agoAdd changes file
rl1987 [Thu, 13 Sep 2018 07:18:06 +0000 (10:18 +0300)] 
Add changes file

7 years agoFix coverage build
rl1987 [Thu, 13 Sep 2018 06:57:43 +0000 (09:57 +0300)] 
Fix coverage build

7 years agotor-resolve: Rework SOCKS5 response parsing with trunnel
rl1987 [Wed, 12 Sep 2018 12:03:08 +0000 (15:03 +0300)] 
tor-resolve: Rework SOCKS5 response parsing with trunnel

7 years agotor-resolve: Rework SOCKS5 method negotiation client part with trunnel
rl1987 [Wed, 12 Sep 2018 10:12:51 +0000 (13:12 +0300)] 
tor-resolve: Rework SOCKS5 method negotiation client part with trunnel

7 years agotor-resolve: parse SOCKS4a reply
rl1987 [Wed, 12 Sep 2018 08:30:01 +0000 (11:30 +0300)] 
tor-resolve: parse SOCKS4a reply

7 years agoAllow socks4_server_reply version to be 0 (for tor-resolve)
rl1987 [Wed, 12 Sep 2018 08:18:43 +0000 (11:18 +0300)] 
Allow socks4_server_reply version to be 0 (for tor-resolve)

7 years agotor-resolve: Use trunnel code for SOCKS5 request generation
rl1987 [Tue, 11 Sep 2018 18:42:38 +0000 (21:42 +0300)] 
tor-resolve: Use trunnel code for SOCKS5 request generation

7 years agotor-resolve: link tor-resolve binary with trunnel lib
rl1987 [Tue, 11 Sep 2018 16:39:00 +0000 (19:39 +0300)] 
tor-resolve: link tor-resolve binary with trunnel lib

7 years agotor-resolve: generate SOCKS4a request with trunnel
rl1987 [Tue, 11 Sep 2018 16:38:30 +0000 (19:38 +0300)] 
tor-resolve: generate SOCKS4a request with trunnel

7 years agoMove net.inet.ip.random_id code to lib/net/
Nick Mathewson [Sat, 1 Dec 2018 16:36:03 +0000 (11:36 -0500)] 
Move net.inet.ip.random_id code to lib/net/

7 years agoMerge remote-tracking branch 'tor-github/pr/527'
Nick Mathewson [Sat, 1 Dec 2018 16:30:53 +0000 (11:30 -0500)] 
Merge remote-tracking branch 'tor-github/pr/527'

7 years agoMerge remote-tracking branch 'tor-github/pr/530'
Nick Mathewson [Sat, 1 Dec 2018 16:28:22 +0000 (11:28 -0500)] 
Merge remote-tracking branch 'tor-github/pr/530'

7 years agoMerge branch 'maint-0.3.5'
Nick Mathewson [Sat, 1 Dec 2018 16:26:55 +0000 (11:26 -0500)] 
Merge branch 'maint-0.3.5'

7 years agoMerge remote-tracking branch 'tor-github/pr/554' into maint-0.3.5
Nick Mathewson [Sat, 1 Dec 2018 16:26:52 +0000 (11:26 -0500)] 
Merge remote-tracking branch 'tor-github/pr/554' into maint-0.3.5

7 years agoMerge remote-tracking branch 'tor-github/pr/536'
Nick Mathewson [Sat, 1 Dec 2018 16:24:02 +0000 (11:24 -0500)] 
Merge remote-tracking branch 'tor-github/pr/536'

7 years agoMerge branch 'maint-0.3.5'
Nick Mathewson [Sat, 1 Dec 2018 16:20:10 +0000 (11:20 -0500)] 
Merge branch 'maint-0.3.5'

7 years agoMerge branch 'bug28229_diag_035' into maint-0.3.5
Nick Mathewson [Sat, 1 Dec 2018 16:20:04 +0000 (11:20 -0500)] 
Merge branch 'bug28229_diag_035' into maint-0.3.5

7 years agoAlso log a Tor log entry when it has a substring we are waiting for
rl1987 [Tue, 13 Nov 2018 09:38:51 +0000 (11:38 +0200)] 
Also log a Tor log entry when it has a substring we are waiting for

7 years ago1 ms. resolution for Tor logs
rl1987 [Tue, 13 Nov 2018 09:15:40 +0000 (11:15 +0200)] 
1 ms. resolution for Tor logs

7 years agoAdd changes file
rl1987 [Sun, 4 Nov 2018 17:10:40 +0000 (19:10 +0200)] 
Add changes file

7 years agoLog everything from tor down to debug loglevel
rl1987 [Sun, 4 Nov 2018 17:01:00 +0000 (19:01 +0200)] 
Log everything from tor down to debug loglevel

7 years agoIn test_rebind.py, log stuff with timestamps
rl1987 [Sun, 4 Nov 2018 16:09:31 +0000 (18:09 +0200)] 
In test_rebind.py, log stuff with timestamps

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Sat, 1 Dec 2018 16:15:09 +0000 (11:15 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoMerge branch 'maint-0.3.5'
Nick Mathewson [Sat, 1 Dec 2018 16:15:09 +0000 (11:15 -0500)] 
Merge branch 'maint-0.3.5'

7 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Sat, 1 Dec 2018 16:15:09 +0000 (11:15 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

7 years agosr: Switch from tor_assert() to BUG()
Neel Chauhan [Tue, 19 Sep 2017 20:08:24 +0000 (16:08 -0400)] 
sr: Switch from tor_assert() to BUG()

Closes #19566

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agotest: Fix a warning underflow in rend_cache/clean
David Goulet [Thu, 29 Nov 2018 15:02:50 +0000 (10:02 -0500)] 
test: Fix a warning underflow in rend_cache/clean

Because the test is adding entries to the "rend_cache" directly, the
rend_cache_increment_allocation() was never called which made the
rend_cache_clean() call trigger that underflow warning:

rend_cache/clean: [forking] Nov 29 09:55:04.024 [warn] rend_cache_decrement_allocation(): Bug: Underflow in rend_cache_decrement_allocation (on Tor 0.4.0.0-alpha-dev 2240fe63feb9a8cf)

The test is still good and valid.

Fixes #28660

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMention --no-verify in error message
rl1987 [Thu, 29 Nov 2018 09:10:48 +0000 (11:10 +0200)] 
Mention --no-verify in error message

7 years agoImprove comment at the top
rl1987 [Thu, 29 Nov 2018 09:10:30 +0000 (11:10 +0200)] 
Improve comment at the top

7 years agoRename to pre-push.git-hook
rl1987 [Thu, 29 Nov 2018 08:56:56 +0000 (10:56 +0200)] 
Rename to pre-push.git-hook

7 years agoMerge branch 'maint-0.3.5'
Nick Mathewson [Tue, 27 Nov 2018 17:03:50 +0000 (12:03 -0500)] 
Merge branch 'maint-0.3.5'

7 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Tue, 27 Nov 2018 17:03:50 +0000 (12:03 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

7 years agoExplicitly specify path to OpenSSL for Appveyor.
Alexander Færøy [Tue, 27 Nov 2018 01:35:44 +0000 (02:35 +0100)] 
Explicitly specify path to OpenSSL for Appveyor.

This patch explicitly specifies the path to our OpenSSL dependency and
disables the installation of an external OpenSSL version and instead
uses the OpenSSL version available from the MinGW environments.

See: https://bugs.torproject.org/28574

7 years agoMerge branch 'maint-0.3.5'
Nick Mathewson [Mon, 26 Nov 2018 22:25:28 +0000 (17:25 -0500)] 
Merge branch 'maint-0.3.5'

7 years agoMerge remote-tracking branch 'teor/bug28096-035-squashed' into maint-0.3.5
Nick Mathewson [Mon, 26 Nov 2018 22:24:41 +0000 (17:24 -0500)] 
Merge remote-tracking branch 'teor/bug28096-035-squashed' into maint-0.3.5

7 years agoMerge remote-tracking branch 'tor-github/pr/539'
Nick Mathewson [Mon, 26 Nov 2018 22:22:37 +0000 (17:22 -0500)] 
Merge remote-tracking branch 'tor-github/pr/539'

7 years agoMerge remote-tracking branch 'tor-github/pr/495'
Nick Mathewson [Mon, 26 Nov 2018 22:17:40 +0000 (17:17 -0500)] 
Merge remote-tracking branch 'tor-github/pr/495'

7 years agoChanges file for "Dormant Mode" (28335, 2149).
Nick Mathewson [Mon, 26 Nov 2018 21:39:44 +0000 (16:39 -0500)] 
Changes file for "Dormant Mode" (28335, 2149).

7 years agoMerge branch 'dormant_v2_squashed'
Nick Mathewson [Mon, 26 Nov 2018 21:33:31 +0000 (16:33 -0500)] 
Merge branch 'dormant_v2_squashed'

7 years agoTest for check_network_participation_callback()
Nick Mathewson [Mon, 19 Nov 2018 21:31:50 +0000 (16:31 -0500)] 
Test for check_network_participation_callback()

7 years agoTest netstatus.c tracking of user participation status
Nick Mathewson [Mon, 19 Nov 2018 20:35:55 +0000 (15:35 -0500)] 
Test netstatus.c tracking of user participation status

7 years agoAdd options to control dormant-client feature.
Nick Mathewson [Thu, 15 Nov 2018 18:16:58 +0000 (13:16 -0500)] 
Add options to control dormant-client feature.

The DormantClientTimeout option controls how long Tor will wait before
going dormant.  It also provides a way to disable the feature by setting
DormantClientTimeout to e.g. "50 years".

The DormantTimeoutDisabledByIdleStreams option controls whether open but
inactive streams count as "client activity".  To implement it, I had to
make it so that reading or writing on a client stream *always* counts as
activity.

Closes ticket 28429.

7 years agoMerge branch 'maint-0.3.5'
David Goulet [Mon, 26 Nov 2018 19:59:24 +0000 (14:59 -0500)] 
Merge branch 'maint-0.3.5'

7 years agoMerge remote-tracking branch 'dgoulet/ticket28128_035_01' into maint-0.3.5
David Goulet [Mon, 26 Nov 2018 19:59:10 +0000 (14:59 -0500)] 
Merge remote-tracking branch 'dgoulet/ticket28128_035_01' into maint-0.3.5

7 years agohs-v3: Do not close RP circuits when deleting an ephemeral service
David Goulet [Mon, 26 Nov 2018 19:40:22 +0000 (14:40 -0500)] 
hs-v3: Do not close RP circuits when deleting an ephemeral service

Bug reported on tor-dev@ and here is the detail explanation of the issue:
https://lists.torproject.org/pipermail/tor-dev/2018-November/013558.html

Fixes bug #28619

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoTry silencing Coverity false positive CID 1441482
rl1987 [Mon, 26 Nov 2018 15:32:29 +0000 (17:32 +0200)] 
Try silencing Coverity false positive CID 1441482

Bugfix on 469f47ef8dc8b18104108f0437c860ec88fca6ad; bug not in any released
Tor version.

7 years agochanges file for prop293 / ticket 26770
Nick Mathewson [Sun, 25 Nov 2018 15:19:08 +0000 (10:19 -0500)] 
changes file for prop293 / ticket 26770

7 years agoTreat the StaleDesc flag as making our descriptor dirty.
Nick Mathewson [Sun, 25 Nov 2018 15:12:20 +0000 (10:12 -0500)] 
Treat the StaleDesc flag as making our descriptor dirty.

Relay side of prop293.

7 years agoVote on the StaleDesc flag from prop293
Nick Mathewson [Sun, 25 Nov 2018 15:05:13 +0000 (10:05 -0500)] 
Vote on the StaleDesc flag from prop293

The StaleDesc flag tells relays that they need to upload a new
descriptor soon, or they will drop out of the consensus.

7 years agoEmit router families in canonical form
Nick Mathewson [Sat, 24 Nov 2018 21:35:58 +0000 (16:35 -0500)] 
Emit router families in canonical form

This patch has routers use the same canonicalization logic as
authorities when encoding their family lists.  Additionally, they
now warn if any router in their list is given by nickname, since
that's error-prone.

This patch also adds some long-overdue tests for family formatting.

7 years agoExtract get_declared_family() into its own function.
Nick Mathewson [Sat, 24 Nov 2018 17:07:54 +0000 (12:07 -0500)] 
Extract get_declared_family() into its own function.

This will help as we refactor it.

7 years agoAdd a consensus method in which md families get canonicalized.
Nick Mathewson [Sat, 24 Nov 2018 16:51:41 +0000 (11:51 -0500)] 
Add a consensus method in which md families get canonicalized.

Implements prop298. Closes ticket 28266.

7 years agoAdd a function to canonicalize nodefamilies per prop298
Nick Mathewson [Sat, 24 Nov 2018 15:53:38 +0000 (10:53 -0500)] 
Add a function to canonicalize nodefamilies per prop298

This is the same as the regular canonical nodefamily format, except
that unrecognized elements are preserved.

7 years agoRevise nodefamily.c to match proposal 298
Nick Mathewson [Sat, 24 Nov 2018 15:30:15 +0000 (10:30 -0500)] 
Revise nodefamily.c to match proposal 298

Prop298 says that family entries should be formatted with
$hexids in uppercase, nicknames in lower case, $hexid~names
truncated, and everything sorted lexically.  These changes implement
that ordering for nodefamily.c.

We don't _strictly speaking_ need to nodefamily.c formatting use
this for prop298 microdesc generation, but it seems silly to have
two separate canonicalization algorithms.

7 years agoCreate a temporary directory for tor's DataDirectory in test_rebind.
Taylor R Campbell [Thu, 22 Nov 2018 00:53:57 +0000 (00:53 +0000)] 
Create a temporary directory for tor's DataDirectory in test_rebind.

Fixes #28562.

While here, put the argument count test and usage message _before_ we
attempt to read from sys.argv.

7 years agoEntry Nodes: Test on reasonably live consensuses
teor [Thu, 22 Nov 2018 07:47:12 +0000 (17:47 +1000)] 
Entry Nodes: Test on reasonably live consensuses

As well as live consensuses.

Tests for 24661.

7 years agoEntry Nodes: refactor tests to use macros
teor [Thu, 22 Nov 2018 07:10:28 +0000 (17:10 +1000)] 
Entry Nodes: refactor tests to use macros

Part of 24661.

7 years agoFix a comment typo in test_hs_common.c
teor [Wed, 21 Nov 2018 10:15:21 +0000 (20:15 +1000)] 
Fix a comment typo in test_hs_common.c

7 years agoTest: make unit tests use a reasonably live consensus
teor [Wed, 21 Nov 2018 05:55:43 +0000 (15:55 +1000)] 
Test: make unit tests use a reasonably live consensus

Cleanup after 24661.