]>
git.ipfire.org Git - thirdparty/tor.git/log
meejah [Sat, 28 Jan 2017 20:49:18 +0000 (13:49 -0700)]
Ticket #21329: GETINFO onions/current returns empty list
If there are no ephemeral or detached onion services, then
"GETINFO onions/current" or "GETINFO onions/detached" should
return an empty list instead of an error
Nick Mathewson [Fri, 27 Jan 2017 21:45:18 +0000 (16:45 -0500)]
Merge branches 'server_ciphers' and 'ciphers.inc'
Nick Mathewson [Fri, 27 Jan 2017 21:15:26 +0000 (16:15 -0500)]
MOre gen_server_ciphers improvements:
- Remove DES from mandatory list.
- always put the closing ; on its own line.
Nick Mathewson [Fri, 27 Jan 2017 16:26:23 +0000 (11:26 -0500)]
Merge remote-tracking branch 'dgoulet/ticket21269_030_01'
Daniel Kahn Gillmor [Mon, 23 Jan 2017 18:22:11 +0000 (13:22 -0500)]
client: set IPv6Traffic to on by default
See:
https://trac.torproject.org/projects/tor/ticket/21269
https://bugs.debian.org/851798
Closes #21269
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Fri, 27 Jan 2017 13:13:37 +0000 (08:13 -0500)]
Merge branch 'feature17975'
Nick Mathewson [Fri, 27 Jan 2017 13:12:14 +0000 (08:12 -0500)]
Bulletproof conn_get_outbound_address() a little.
Nick Mathewson [Fri, 27 Jan 2017 13:08:08 +0000 (08:08 -0500)]
Remove an impossible comparison.
Nick Mathewson [Fri, 27 Jan 2017 13:05:29 +0000 (08:05 -0500)]
Outbindbindaddress variants for Exit and OR.
Allow separation of exit and relay traffic to different source IP
addresses (Ticket #17975). Written by Michael Sonntag.
Nick Mathewson [Wed, 25 Jan 2017 18:23:08 +0000 (13:23 -0500)]
Fix a signed/unsigned comparison warning
junglefowl [Mon, 23 Jan 2017 19:08:54 +0000 (19:08 +0000)]
Fail if file is too large to mmap.
If tor_mmap_file is called with a file which is larger than SIZE_MAX,
only a small part of the file will be memory-mapped due to integer
truncation.
This can only realistically happen on 32 bit architectures with large
file support.
Nick Mathewson [Wed, 25 Jan 2017 18:15:37 +0000 (13:15 -0500)]
changes file for 21280
junglefowl [Tue, 24 Jan 2017 18:40:01 +0000 (18:40 +0000)]
Do not truncate too long hostnames
If a hostname is supplied to tor-resolve which is too long, it will be
silently truncated, resulting in a different hostname lookup:
$ tor-resolve $(python -c 'print("google.com" + "m" * 256)')
If tor-resolve uses SOCKS5, the length is stored in an unsigned char,
which overflows in this case and leads to the hostname "google.com".
As this one is a valid hostname, it returns an address instead of giving
an error due to the invalid supplied hostname.
Suphanat Chunhapanya [Wed, 25 Jan 2017 06:58:23 +0000 (13:58 +0700)]
Add ChangeLog for check_existing
Suphanat Chunhapanya [Tue, 24 Jan 2017 08:56:26 +0000 (15:56 +0700)]
Add the output file to the usage
Suphanat Chunhapanya [Fri, 20 Jan 2017 08:43:24 +0000 (15:43 +0700)]
Add usage for check_existing
Suphanat Chunhapanya [Fri, 20 Jan 2017 08:38:30 +0000 (15:38 +0700)]
Logging existing fallbacks at warning level
Suphanat Chunhapanya [Fri, 20 Jan 2017 08:37:32 +0000 (15:37 +0700)]
Automate checking existing fallbacks
Nick Mathewson [Tue, 24 Jan 2017 20:30:35 +0000 (15:30 -0500)]
Re-run gen_server_ciphers
Nick Mathewson [Tue, 24 Jan 2017 20:29:26 +0000 (15:29 -0500)]
Teach gen_server_ciphers about CCM and Chacha.
Also, teach it to not use 3DES any more.
Nick Mathewson [Tue, 24 Jan 2017 20:05:35 +0000 (15:05 -0500)]
Regenerate ciphers.inc
Nick Mathewson [Tue, 24 Jan 2017 20:02:36 +0000 (15:02 -0500)]
Update ciphers.inc script to understand openssl-1.1
Nick Mathewson [Tue, 24 Jan 2017 14:20:49 +0000 (09:20 -0500)]
Merge branch 'bug20824_v4'
Nick Mathewson [Tue, 24 Jan 2017 14:19:44 +0000 (09:19 -0500)]
changes file for DROPGUARDS
Nick Mathewson [Mon, 2 Jan 2017 15:45:32 +0000 (10:45 -0500)]
Add a unit test for dropguards
Nick Mathewson [Thu, 8 Dec 2016 17:10:06 +0000 (12:10 -0500)]
Repair the (deprecated, ugly) DROPGUARDS controller function.
This actually is much easier to write now that guard_selection_t is
first-class.
Nick Mathewson [Tue, 24 Jan 2017 14:01:25 +0000 (09:01 -0500)]
Merge remote-tracking branch 'asn/remove_legacy_guards'
George Kadianakis [Tue, 24 Jan 2017 11:31:33 +0000 (13:31 +0200)]
Remove some more remnants of legacy guard selection.
Nick Mathewson [Mon, 23 Jan 2017 21:07:15 +0000 (16:07 -0500)]
Merge branch 'feature_20956_029'
Nick Mathewson [Wed, 18 Jan 2017 15:21:33 +0000 (10:21 -0500)]
Add __SocksPort etc variants for non-persistent use
Implements feature 20956.
Nick Mathewson [Mon, 23 Jan 2017 19:38:10 +0000 (14:38 -0500)]
Bump to 0.3.0.2-alpha-dev
Nick Mathewson [Mon, 23 Jan 2017 19:34:33 +0000 (14:34 -0500)]
Merge branch 'maint-0.2.9'
Nick Mathewson [Mon, 23 Jan 2017 19:34:08 +0000 (14:34 -0500)]
Bump version to 0.2.9.9-dev
Roger Dingledine [Mon, 23 Jan 2017 14:42:02 +0000 (09:42 -0500)]
forward-port the 0.2.9.9 changelog stanza
Nick Mathewson [Mon, 23 Jan 2017 14:16:36 +0000 (09:16 -0500)]
forward-port trove-2017-001 entry and blurb.
Nick Mathewson [Mon, 23 Jan 2017 14:09:23 +0000 (09:09 -0500)]
Remove an x
Nick Mathewson [Mon, 23 Jan 2017 13:55:40 +0000 (08:55 -0500)]
Merge branch 'maint-0.2.9'
Nick Mathewson [Sun, 22 Jan 2017 16:32:54 +0000 (11:32 -0500)]
TROVE-2017-001 : move -ftrapv back into --expensive-hardening.
Nick Mathewson [Mon, 23 Jan 2017 13:20:46 +0000 (08:20 -0500)]
version bump (0.3.0.2-alpha)
Nick Mathewson [Mon, 23 Jan 2017 13:20:13 +0000 (08:20 -0500)]
Merge branch 'maint-0.2.9'
Nick Mathewson [Mon, 23 Jan 2017 13:19:48 +0000 (08:19 -0500)]
version bump
Nick Mathewson [Mon, 23 Jan 2017 12:59:02 +0000 (07:59 -0500)]
Note "also in 0.2.9.9" for backported entries.
Nick Mathewson [Mon, 23 Jan 2017 12:56:11 +0000 (07:56 -0500)]
Reflow changelog
Roger Dingledine [Mon, 23 Jan 2017 03:08:15 +0000 (22:08 -0500)]
clean up changelog for 0.3.0.2-alpha release
Roger Dingledine [Mon, 23 Jan 2017 01:51:57 +0000 (20:51 -0500)]
try to explain bug 20307 better
Nick Mathewson [Mon, 23 Jan 2017 00:40:30 +0000 (19:40 -0500)]
oh, here it is
Nick Mathewson [Mon, 23 Jan 2017 00:05:50 +0000 (19:05 -0500)]
Begin 0.3.0.2-alpha changelog
(Automated sort and format)
Nick Mathewson [Mon, 23 Jan 2017 00:04:02 +0000 (19:04 -0500)]
Merge branch 'maint-0.2.9'
"ours" merge to avoid taking cherry-picked 20307 fix
Roger Dingledine [Fri, 13 Jan 2017 23:09:50 +0000 (18:09 -0500)]
clean up grammar on bug20307 changes file
pointed out by toralf on irc
David Goulet [Thu, 22 Dec 2016 17:37:42 +0000 (12:37 -0500)]
circuit: Change close reasons from uint16_t to int
When marking for close a circuit, the reason value, a integer, was assigned to
a uint16_t converting any negative reasons (internal) to the wrong value. On
the HS side, this was causing the client to flag introduction points to be
unreachable as the internal reason was wrongfully converted to a positive
16bit value leading to flag 2 out of 3 intro points to be unreachable.
Fixes #20307 and partially fixes #21056
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Sun, 22 Jan 2017 23:54:13 +0000 (18:54 -0500)]
Fix warnings from lintchanges script
Nick Mathewson [Sun, 22 Jan 2017 23:48:27 +0000 (18:48 -0500)]
Merge branch 'maint-0.2.9'
Nick Mathewson [Sun, 22 Jan 2017 23:48:22 +0000 (18:48 -0500)]
fix a lintchanges warning
Nick Mathewson [Sat, 21 Jan 2017 19:44:00 +0000 (14:44 -0500)]
Merge remote-tracking branch 'public/ticket18319'
Nick Mathewson [Thu, 19 Jan 2017 13:26:55 +0000 (08:26 -0500)]
Fix return type in test_hs_intropoint.c
In trunnel, {struct}_encoded_len() can return negative values.
Coverity caught this as
1398957 .
teor [Thu, 19 Jan 2017 03:52:56 +0000 (14:52 +1100)]
Remove extra newline from proxy_prepare_for_restart definition
Nick Mathewson [Wed, 18 Jan 2017 22:14:42 +0000 (17:14 -0500)]
whitespace fixes
Nick Mathewson [Wed, 18 Jan 2017 22:13:36 +0000 (17:13 -0500)]
Merge remote-tracking branch 'dgoulet/ticket20029_030_06-resquash'
George Kadianakis [Sun, 8 Jan 2017 13:06:39 +0000 (15:06 +0200)]
Improve a few comments.
- Also remove LCOV marks from blocks of code that can be reachable by tests
if we mock relay_send_command_from_edge().
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 15 Nov 2016 20:09:27 +0000 (15:09 -0500)]
prop224: Add unit tests for INTRODUCE1 support
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 15 Nov 2016 19:29:02 +0000 (14:29 -0500)]
hs: Rename rend_mid_introduce() with legacy semantic
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 15 Nov 2016 19:23:25 +0000 (14:23 -0500)]
hs: Remove useless code in rend_mid_introduce()
With the previous commit, we validate the circuit _before_ calling
rend_mid_introduce() which handles the INTRODUCE1 payload.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 15 Nov 2016 19:18:48 +0000 (14:18 -0500)]
prop224: Rename hs_intro_circuit_is_suitable()
Adds a better semantic and it also follows the same interface for the
INTRODUCE1 API which is circuit_is_suitable_for_introduce1().
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 10 Nov 2016 21:04:23 +0000 (16:04 -0500)]
prop224: Add INTRODUCE1 cell relay support
Closes #20029
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Wed, 18 Jan 2017 20:58:19 +0000 (15:58 -0500)]
Remove argument from guards_choose_dirguard
Nick Mathewson [Wed, 18 Jan 2017 20:45:02 +0000 (15:45 -0500)]
Remove some now-spurious blocks and indentation.
Nick Mathewson [Wed, 18 Jan 2017 20:42:28 +0000 (15:42 -0500)]
Remove PDS_FOR_GUARD
Nick Mathewson [Wed, 18 Jan 2017 20:37:01 +0000 (15:37 -0500)]
Remove GS_TYPE_LEGACY
Nick Mathewson [Wed, 18 Jan 2017 20:33:26 +0000 (15:33 -0500)]
Remove UseDeprecatedGuardAlgorithm.
Nick Mathewson [Wed, 18 Jan 2017 20:27:10 +0000 (15:27 -0500)]
Remove the (no longer compiled) code for legacy guard selection.
Part of 20830.
Nick Mathewson [Wed, 18 Jan 2017 20:11:36 +0000 (15:11 -0500)]
Merge remote-tracking branch 'dgoulet/bug21062_030_01'
Nick Mathewson [Wed, 18 Jan 2017 20:08:42 +0000 (15:08 -0500)]
Merge branch 'bug20684_030_01'
Nick Mathewson [Wed, 18 Jan 2017 20:08:10 +0000 (15:08 -0500)]
put units in constant names for DIRCACHE_MEN_MEM*
Nick Mathewson [Wed, 18 Jan 2017 19:29:52 +0000 (14:29 -0500)]
Fix a memory leak in bench.c
Neel Chauhan [Sat, 24 Dec 2016 12:26:37 +0000 (07:26 -0500)]
Rename DIRCACHE_MIN_BANDWIDTH and DIRCACHE_MIN_MB_BANDWIDTH
Renamed to DIRCACHE_MIN_MEM and DIRCACHE_MIN_MB_MEM.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 18 Jan 2017 17:53:01 +0000 (12:53 -0500)]
circuit: Make circuit_build_times_disabled take an or_options_t
That way, when we are parsing the options and LearnCircuitBuildTimeout is set
to 0, we don't assert trying to get the options list with get_options().
Fixes #21062
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Wed, 18 Jan 2017 16:04:58 +0000 (11:04 -0500)]
Merge branch 'ahf_bugs_17847_2_squashed'
Alexander Færøy [Thu, 12 Jan 2017 00:12:29 +0000 (01:12 +0100)]
Refactor duplicated extrainfo checks into a common macro.
This patch refactors duplicated code, to check if a given router
supports fetching the extra-info document, into a common macro called
SKIP_MISSING_TRUSTED_EXTRAINFO.
Alexander Færøy [Wed, 11 Jan 2017 23:35:44 +0000 (00:35 +0100)]
Generalize router_is_already_dir_fetching_{rs,ds}.
This patch generalizes the two functions
router_is_already_dir_fetching_rs and router_is_already_dir_fetching_ds
into a single function, router_is_already_dir_fetching_, by lifting the
passing of the IPv4 & IPv6 addresses and the directory port number to
the caller.
Nick Mathewson [Wed, 18 Jan 2017 15:44:35 +0000 (10:44 -0500)]
Merge remote-tracking branch 'asn/bug21142'
Nick Mathewson [Wed, 18 Jan 2017 15:24:37 +0000 (10:24 -0500)]
Handle __NonSavedOptions correctly inside LINELIST_V blocks.
Nick Mathewson [Wed, 18 Jan 2017 15:07:55 +0000 (10:07 -0500)]
Simplify the VPORT() macro in config.c
It's always called with the same arguments, and there wouldn't be
much point to calling it differently.
Nick Mathewson [Wed, 18 Jan 2017 14:18:01 +0000 (09:18 -0500)]
Merge remote-tracking branch 'dgoulet/bug21058_030_01'
Nick Mathewson [Wed, 18 Jan 2017 14:10:46 +0000 (09:10 -0500)]
Merge remote-tracking branch 'dgoulet/bug19953_030_01'
Nick Mathewson [Wed, 18 Jan 2017 14:08:16 +0000 (09:08 -0500)]
Merge remote-tracking branch 'dgoulet/bug21033_030_01'
Nick Mathewson [Wed, 18 Jan 2017 14:02:48 +0000 (09:02 -0500)]
Merge branch 'bug19769_19025_029'
Nick Mathewson [Wed, 18 Jan 2017 14:01:26 +0000 (09:01 -0500)]
Changes file for 19025.
Philipp Winter [Wed, 27 Jul 2016 16:01:03 +0000 (12:01 -0400)]
Initialise DNS TTL for A and AAAA records.
So far, the TTLs for both A and AAAA records were not initialised,
resulting in exit relays sending back the value 60 to Tor clients. This
also impacts exit relays' DNS cache -- the expiry time for all domains
is set to 60.
This fixes <https://bugs.torproject.org/19025>.
Nick Mathewson [Mon, 2 Jan 2017 19:57:50 +0000 (14:57 -0500)]
test_cfmt_connected_cells: use TTL value that's above the new min.
Related to 19769.
Nick Mathewson [Mon, 2 Jan 2017 19:55:39 +0000 (14:55 -0500)]
DefecTor countermeasure: change server- and client-side DNS TTL clipping
The server-side clipping now clamps to one of two values, both
for what to report, and how long to cache.
Additionally, we move some defines to dns.h, and give them better
names.
David Goulet [Tue, 17 Jan 2017 20:19:42 +0000 (15:19 -0500)]
man: Clarify options in the tor.1 man page
In addition to the comments in the ticket, couple hidden service options have
been improved to clarify the maximum and minimum values they can be set to.
Closes #21058
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 17 Jan 2017 19:53:06 +0000 (14:53 -0500)]
hs: Allow from 0 to MAX introduction points
An operator couldn't set the number of introduction point below the default
value which is 3. With this commit, from 0 to the hardcoded maximum is now
allowed.
Closes #21033
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 17 Jan 2017 19:40:01 +0000 (14:40 -0500)]
relay: Honor DataDirectoryGroupReadable at key init
Our config code is checking correctly at DataDirectoryGroupReadable but then
when we initialize the keys, we ignored that option ending up at setting back
the DataDirectory to 0700 instead of 0750. Patch by "redfish".
Fixes #19953
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Tue, 17 Jan 2017 16:35:26 +0000 (11:35 -0500)]
Fix a double-free in rend_config_services()
Found by coverity scan; CID
1398917
George Kadianakis [Tue, 17 Jan 2017 11:26:59 +0000 (13:26 +0200)]
Correctly maintain circuits in circuits_pending_other_guards().
Nick Mathewson [Mon, 16 Jan 2017 17:59:39 +0000 (12:59 -0500)]
Merge remote-tracking branch 'public/ticket20921'
Neel Chauhan [Thu, 12 Jan 2017 14:35:27 +0000 (09:35 -0500)]
Disallow setting UseBridges to 1 and UseEntryGuards to 0
Roger Dingledine [Fri, 13 Jan 2017 23:09:50 +0000 (18:09 -0500)]
clean up grammar on bug20307 changes file
pointed out by toralf on irc
Nick Mathewson [Fri, 13 Jan 2017 22:13:24 +0000 (17:13 -0500)]
Reference correct ticket in 028 changelog, part 2. Closes 21124.
Nick Mathewson [Fri, 13 Jan 2017 22:13:06 +0000 (17:13 -0500)]
Reference correct ticket in 028 changelog. Closes 21124.