]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
10 years agoCoalesce v0 and v1 fields of rend_intro_cell_t
Nick Mathewson [Tue, 30 Dec 2014 17:07:28 +0000 (12:07 -0500)] 
Coalesce v0 and v1 fields of rend_intro_cell_t

This saves a tiny bit of code, and makes a longstanding coverity
false positive go away.

10 years agoMerge remote-tracking branch 'yawning/bug13315_fixup'
Nick Mathewson [Tue, 30 Dec 2014 16:46:56 +0000 (11:46 -0500)] 
Merge remote-tracking branch 'yawning/bug13315_fixup'

10 years agoNote fix for bug 12831
Nick Mathewson [Tue, 30 Dec 2014 16:45:01 +0000 (11:45 -0500)] 
Note fix for bug 12831

10 years agoAllow IPv4 and IPv6 addresses in SOCKS5 FQDN requests.
Yawning Angel [Tue, 30 Dec 2014 16:36:16 +0000 (16:36 +0000)] 
Allow IPv4 and IPv6 addresses in SOCKS5 FQDN requests.

Supposedly there are a decent number of applications that "support"
IPv6 and SOCKS5 using the FQDN address type.  While said applications
should be using the IPv6 address type, allow the connection if
SafeSocks is not set.

Bug not in any released version.

10 years agoMissing semicolon; my bad
Nick Mathewson [Tue, 30 Dec 2014 15:00:11 +0000 (10:00 -0500)] 
Missing semicolon; my bad

10 years agoFold more things into the 0.2.6.2-alpha changelog
Nick Mathewson [Tue, 30 Dec 2014 14:53:13 +0000 (09:53 -0500)] 
Fold more things into the 0.2.6.2-alpha changelog

10 years agoLintchanges some more.
Nick Mathewson [Tue, 30 Dec 2014 14:39:12 +0000 (09:39 -0500)] 
Lintchanges some more.

10 years agoMerge branch 'no-exit-bootstrap-squashed'
Nick Mathewson [Tue, 30 Dec 2014 14:06:47 +0000 (09:06 -0500)] 
Merge branch 'no-exit-bootstrap-squashed'

10 years agoFix Reachability self-tests in test networks
teor [Sat, 20 Dec 2014 10:44:16 +0000 (21:44 +1100)] 
Fix Reachability self-tests in test networks

Stop assuming that private addresses are local when checking
reachability in a TestingTorNetwork. Instead, when testing, assume
all OR connections are remote. (This is necessary due to many test
scenarios running all nodes on localhost.)

This assists in bootstrapping a testing Tor network.

Fixes bugs 13718 & 13924.

10 years agoAdd "internal" to some bootstrap statuses when no exits are available.
teor [Thu, 25 Dec 2014 13:43:58 +0000 (00:43 +1100)] 
Add "internal" to some bootstrap statuses when no exits are available.

If the consensus does not contain Exits, Tor will only build internal
circuits. In this case, relevant statuses will contain the word "internal"
as indicated in the Tor control-spec.txt. When bootstrap completes,
Tor will be ready to handle an application requesting an internal
circuit to hidden services at ".onion" addresses.

If a future consensus contains Exits, exit circuits may become available.

Tor already notifies the user at "notice" level if they have no exits in
the consensus, and can therefor only build internal paths.

Consequential change from #13718.

10 years agoAvoid building exit circuits from a consensus with no exits
teor [Thu, 25 Dec 2014 13:31:16 +0000 (00:31 +1100)] 
Avoid building exit circuits from a consensus with no exits

Tor can now build circuits from a consensus with no exits.
But if it tries to build exit circuits, they fail and flood the logs.

The circuit types in the Exit Circuits list below will only be
built if the current consensus has exits. If it doesn't,
only the Internal Circuits will be built. (This can change
with each new consensus.)
Fixes bug #13814, causes fewer path failures due to #13817.

Exit Circuits:
    Predicted Exit Circuits
    User Traffic Circuits
    Most AP Streams
    Circuits Marked Exit
    Build Timeout Circuits (with exits)

Internal Circuits:
    Hidden Service Server Circuits
    Hidden Service Client Circuits
    Hidden Service AP Streams
    Hidden Service Intro Point Streams
    Circuits Marked Internal
    Build Timeout Circuits (with no exits)
    Other Circuits?

10 years agoAllow tor to build circuits using a consensus with no exits
teor [Thu, 25 Dec 2014 13:17:08 +0000 (00:17 +1100)] 
Allow tor to build circuits using a consensus with no exits

If the consensus has no exits (typical of a bootstrapping
test network), allow tor to build circuits once enough
descriptors have been downloaded.

When there are no exits, we always have "enough"
exit descriptors. (We treat the proportion of available
exit descriptors as 100%.)

This assists in bootstrapping a testing Tor network.

Fixes bug 13718.
Makes bug 13161's TestingDirAuthVoteExit non-essential.
(But still useful for speeding up a bootstrap.)

10 years agoCheck if there are exits in the consensus
teor [Thu, 25 Dec 2014 13:10:40 +0000 (00:10 +1100)] 
Check if there are exits in the consensus

Add router_have_consensus_path() which reports whether
the consensus has exit paths, internal paths, or whether it
just doesn't know.

Used by #13718 and #13814.

10 years agoRefactor count_usable_descriptors to use named enums for exit_only
teor [Thu, 25 Dec 2014 12:15:38 +0000 (23:15 +1100)] 
Refactor count_usable_descriptors to use named enums for exit_only

count_usable_descriptors now uses named exit_only values:
  USABLE_DESCRIPTOR_ALL
  USABLE_DESCRIPTOR_EXIT_ONLY

Add debug logging code for descriptor counts.

This (hopefully) resolves nickm's request in bug 13718 to improve
argument readability in nodelist.c.

10 years agoAvoid excluding guards from path building in minimal test networks
teor [Thu, 25 Dec 2014 12:42:38 +0000 (23:42 +1100)] 
Avoid excluding guards from path building in minimal test networks

choose_good_entry_server() now excludes current entry
guards and their families, unless we're in a test network,
and excluding guards would exclude all nodes.

This typically occurs in incredibly small tor networks,
and those using TestingAuthVoteGuard *

This is an incomplete fix, but is no worse than the previous
behaviour, and only applies to minimal, testing tor networks
(so it's no less secure).

Discovered as part of #13718.

10 years agoMake lintChanges happier
Nick Mathewson [Tue, 30 Dec 2014 13:54:01 +0000 (08:54 -0500)] 
Make lintChanges happier

10 years agoMerge remote-tracking branch 'dgoulet/bug13667_025_v4'
Nick Mathewson [Tue, 30 Dec 2014 13:34:48 +0000 (08:34 -0500)] 
Merge remote-tracking branch 'dgoulet/bug13667_025_v4'

10 years agoFix: mitigate as much as we can HS port scanning
David Goulet [Tue, 25 Nov 2014 15:37:55 +0000 (10:37 -0500)] 
Fix: mitigate as much as we can HS port scanning

Make hidden service port scanning harder by sending back REASON_DONE which
does not disclose that it was in fact an exit policy issue. After that, kill
the circuit immediately to avoid more bad requests on it.

This means that everytime an hidden service exit policy does match, the user
(malicious or not) needs to build a new circuit.

Fixes #13667.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoWipe all of the target space in tor_addr_{to,from}_sockaddr()
Nick Mathewson [Mon, 29 Dec 2014 15:06:12 +0000 (10:06 -0500)] 
Wipe all of the target space in tor_addr_{to,from}_sockaddr()

Otherwise we risk a subsequent memdup or memcpy copying
uninitialized RAM into some other place that might eventually expose
it.  Let's make sure that doesn't happen.

Closes ticket 14041

10 years agoMerge branch 'resolvemyaddr_squashed'
Nick Mathewson [Mon, 29 Dec 2014 15:00:34 +0000 (10:00 -0500)] 
Merge branch 'resolvemyaddr_squashed'

10 years agochanges file for resolvemyaddr tests
Nick Mathewson [Mon, 29 Dec 2014 14:44:28 +0000 (09:44 -0500)] 
changes file for resolvemyaddr tests

10 years agoMake the resolvemyaddr unit tests pass when local dns is hijacked
Nick Mathewson [Mon, 29 Dec 2014 14:41:37 +0000 (09:41 -0500)] 
Make the resolvemyaddr unit tests pass when local dns is hijacked

If you are in a coffee shop that returns a helpful redirect page for
"onionrouter", or on an ISP that does the same, the test as written
would fail.

10 years agoFix memory leaks in resolvemyaddr tests
Nick Mathewson [Mon, 29 Dec 2014 14:33:36 +0000 (09:33 -0500)] 
Fix memory leaks in resolvemyaddr tests

10 years agoFix compilation errors in resolvemyaddr tests
Nick Mathewson [Mon, 29 Dec 2014 14:29:32 +0000 (09:29 -0500)] 
Fix compilation errors in resolvemyaddr tests

10 years agoAdding comprehensive test cases for resolve_my_address.
rl1987 [Mon, 28 Apr 2014 20:20:58 +0000 (23:20 +0300)] 
Adding comprehensive test cases for resolve_my_address.

Also, improve comments on resolve_my_address to explain what it
actually does.

10 years agoFix a few comments
rl1987 [Sat, 26 Apr 2014 13:53:28 +0000 (16:53 +0300)] 
Fix a few comments

10 years agoTweak 13913 fix: clarify that the behavior is not promised
Nick Mathewson [Mon, 29 Dec 2014 13:41:30 +0000 (08:41 -0500)] 
Tweak 13913 fix: clarify that the behavior is not promised

Also, it's->its.  The apostrophe is used if and only if it's a
contraction for "it is".

10 years agoMerge remote-tracking branch 'rl1987/ticket13913'
Nick Mathewson [Mon, 29 Dec 2014 13:39:13 +0000 (08:39 -0500)] 
Merge remote-tracking branch 'rl1987/ticket13913'

10 years agoAdd another cellintptr use; fixes 14031
Nick Mathewson [Sat, 27 Dec 2014 00:17:24 +0000 (19:17 -0500)] 
Add another cellintptr use; fixes 14031

10 years agoImprove a notice message in dirvote.c. (Roger asked for this.)
Nick Mathewson [Sat, 27 Dec 2014 00:14:56 +0000 (19:14 -0500)] 
Improve a notice message in dirvote.c. (Roger asked for this.)

10 years agoFix grammar in comment on running_long_enough_to_decide_unreachable
teor [Thu, 25 Dec 2014 10:34:54 +0000 (21:34 +1100)] 
Fix grammar in comment on running_long_enough_to_decide_unreachable

10 years agoFix a function name in a comment in config.c
teor [Thu, 25 Dec 2014 11:26:04 +0000 (22:26 +1100)] 
Fix a function name in a comment in config.c

10 years agoFix log messages in channeltls.c
teor [Thu, 25 Dec 2014 11:23:54 +0000 (22:23 +1100)] 
Fix log messages in channeltls.c

Add hop number in debug "Contemplating intermediate hop..."
Fix capitalisation on warn "Failed to choose an exit server"

10 years agoMerge remote-tracking branch 'teor/bug13718-consensus-interval'
Nick Mathewson [Tue, 23 Dec 2014 19:25:37 +0000 (14:25 -0500)] 
Merge remote-tracking branch 'teor/bug13718-consensus-interval'

10 years agoFix If-Modified-Since in rapidly updating Tor networks
teor [Sat, 20 Dec 2014 10:59:17 +0000 (21:59 +1100)] 
Fix If-Modified-Since in rapidly updating Tor networks

When V3AuthVotingInterval is low, decrease the delay on the
If-Modified-Since header passed to directory servers.
This allows us to obtain consensuses promptly when the consensus
interval is very short.

This assists in bootstrapping a testing Tor network.

Fixes bugs 13718 & 13963.

10 years agoAllow consensus interval of 10 seconds when testing
teor [Sat, 20 Dec 2014 10:53:00 +0000 (21:53 +1100)] 
Allow consensus interval of 10 seconds when testing

Decrease minimum consensus interval to 10 seconds
when TestingTorNetwork is set. (Or 5 seconds for
the first consensus.)

Fix code that assumes larger interval values.

This assists in quickly bootstrapping a testing
Tor network.

Fixes bugs 13718 & 13823.

10 years agoFix TestingMinExitFlagThreshold 0
teor [Sat, 20 Dec 2014 10:42:28 +0000 (21:42 +1100)] 
Fix TestingMinExitFlagThreshold 0

Stop requiring exits to have non-zero bandwithcapacity in a
TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
ignore exit bandwidthcapacity.

This assists in bootstrapping a testing Tor network.
Fixes bugs 13718 & 13839.
Makes bug 13161's TestingDirAuthVoteExit non-essential.

10 years agoMerge remote-tracking branch 'public/bug13811_025'
Nick Mathewson [Tue, 23 Dec 2014 18:02:37 +0000 (13:02 -0500)] 
Merge remote-tracking branch 'public/bug13811_025'

10 years agoChanges file for 13811
Nick Mathewson [Tue, 23 Dec 2014 18:00:21 +0000 (13:00 -0500)] 
Changes file for 13811

10 years agoFix Matthews code to actually use tmp
Francisco Blas Izquierdo Riera (klondike) [Tue, 23 Dec 2014 17:55:48 +0000 (12:55 -0500)] 
Fix Matthews code to actually use tmp

Matthew's autoaddr code returned an undecorated address when trying to check
that the code didn't insert an undecorated one into the map.

This patch fixes this by actually storing the undecorated address in tmp
instead of buf as it was originally intended.

This patch is released under the same license as the original file as
long as the author iscredited.

Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
10 years agoAdd pkg.m4 to use pkgconfig macros
Nick Mathewson [Tue, 23 Dec 2014 16:39:48 +0000 (11:39 -0500)] 
Add pkg.m4 to use pkgconfig macros

10 years agoFix compilation on platforms without IP6T_SO_ORIGINAL_DST
Nick Mathewson [Tue, 23 Dec 2014 16:36:27 +0000 (11:36 -0500)] 
Fix compilation on platforms without IP6T_SO_ORIGINAL_DST

10 years agoMerge branch 'ticket11016'
Nick Mathewson [Tue, 23 Dec 2014 16:32:22 +0000 (11:32 -0500)] 
Merge branch 'ticket11016'

10 years agochanges file for ticket11016
Nick Mathewson [Tue, 23 Dec 2014 16:32:10 +0000 (11:32 -0500)] 
changes file for ticket11016

10 years agoAdjust systemd watchdog support
Nick Mathewson [Tue, 23 Dec 2014 16:27:16 +0000 (11:27 -0500)] 
Adjust systemd watchdog support

Document why we divide it by two.

Check for > 0 instead of nonzero for success, since that's what the
manpage says.

Allow watchdog timers greater than 1 second.

10 years agoAdd support for systemd watchdog protocol
Michael Scherer [Tue, 23 Dec 2014 16:22:42 +0000 (11:22 -0500)] 
Add support for systemd watchdog protocol

It work by notifying systemd on a regular basis. If
there is no notification, the daemon is restarted.
This requires a version newer than the 209 version
of systemd, as it is not supported before.

10 years agoadd support for systemd notification protocol
Michael Scherer [Thu, 20 Feb 2014 23:24:25 +0000 (00:24 +0100)] 
add support for systemd notification protocol

This permit for now to signal readiness in a cleaner way
to systemd.

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Tue, 23 Dec 2014 16:00:02 +0000 (11:00 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

10 years agochangs file for 13808
Nick Mathewson [Tue, 23 Dec 2014 15:59:48 +0000 (10:59 -0500)] 
changs file for 13808

10 years agowhoops; missing changes file for 14013
Nick Mathewson [Tue, 23 Dec 2014 15:55:25 +0000 (10:55 -0500)] 
whoops; missing changes file for 14013

10 years agotweak whitespace; log bad socket family if bug occurs
Nick Mathewson [Tue, 23 Dec 2014 15:53:40 +0000 (10:53 -0500)] 
tweak whitespace; log bad socket family if bug occurs

10 years agoAdd the transparent proxy getsockopt to the sandbox
Francisco Blas Izquierdo Riera (klondike) [Tue, 23 Dec 2014 15:51:36 +0000 (10:51 -0500)] 
Add the transparent proxy getsockopt to the sandbox

When receiving a trasnsparently proxied request with tor using iptables tor
dies because the appropriate getsockopt calls aren't enabled on the sandbox.

This patch fixes this by adding the two getsockopt calls used when doing
transparent proxying with tor to the sandbox for the getsockopt policy.

This patch is released under the same license as the original file as
long as the author is credited.

Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
10 years agoUse the appropriate call to getsockopt for IPv6 sockets
Francisco Blas Izquierdo Riera (klondike) [Tue, 23 Dec 2014 15:51:33 +0000 (10:51 -0500)] 
Use the appropriate call to getsockopt for IPv6 sockets

The original call to getsockopt to know the original address on transparently
proxyed sockets using REDIRECT in iptables failed with IPv6 addresses because
it assumed all sockets used IPv4.

This patch fixes this by using the appropriate options and adding the headers
containing the needed definitions for these.

This patch is released under the same license as the original file as
long as the author iscredited.

Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
10 years agoTweak channel unit tests so we don't see coverity complaints
Nick Mathewson [Mon, 22 Dec 2014 21:06:05 +0000 (16:06 -0500)] 
Tweak channel unit tests so we don't see coverity complaints

channel_write_*_cell() can delete its argument, so coverity doesn't
like us doing pointer comparison against that argument later.
Silly.

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Mon, 22 Dec 2014 21:02:47 +0000 (16:02 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

10 years agoMerge remote-tracking branch 'public/bug14013_024' into maint-0.2.5
Nick Mathewson [Mon, 22 Dec 2014 20:58:49 +0000 (15:58 -0500)] 
Merge remote-tracking branch 'public/bug14013_024' into maint-0.2.5

10 years agoWhen decoding a base-{16,32,64} value, clear the target buffer first
Nick Mathewson [Mon, 22 Dec 2014 17:56:35 +0000 (12:56 -0500)] 
When decoding a base-{16,32,64} value, clear the target buffer first

This is a good idea in case the caller stupidly doesn't check the
return value from baseX_decode(), and as a workaround for the
current inconsistent API of base16_decode.

Prevents any fallout from bug 14013.

10 years agoFix a bunch of memory leaks in the unit tests. Found with valgrind
Nick Mathewson [Mon, 22 Dec 2014 17:27:26 +0000 (12:27 -0500)] 
Fix a bunch of memory leaks in the unit tests. Found with valgrind

10 years agoCoverity complained that we were not checking this return value
Nick Mathewson [Mon, 22 Dec 2014 16:13:11 +0000 (11:13 -0500)] 
Coverity complained that we were not checking this return value

10 years agoFix some coverity issues in the unit tests
Nick Mathewson [Mon, 22 Dec 2014 16:13:01 +0000 (11:13 -0500)] 
Fix some coverity issues in the unit tests

10 years agoReflow the changelog again
Nick Mathewson [Mon, 22 Dec 2014 15:54:09 +0000 (10:54 -0500)] 
Reflow the changelog again

10 years agoRewrite some changelog entries
Nick Mathewson [Mon, 22 Dec 2014 15:53:52 +0000 (10:53 -0500)] 
Rewrite some changelog entries

10 years agoRelabel some changelog items; re-sort them into place
Nick Mathewson [Mon, 22 Dec 2014 15:12:43 +0000 (10:12 -0500)] 
Relabel some changelog items; re-sort them into place

10 years agominor teaks fo the changelog
Nick Mathewson [Mon, 22 Dec 2014 15:06:56 +0000 (10:06 -0500)] 
minor teaks fo the changelog

10 years agoAuto-reformat the changelog for 0.2.6.2-alpha
Nick Mathewson [Mon, 22 Dec 2014 15:03:19 +0000 (10:03 -0500)] 
Auto-reformat the changelog for 0.2.6.2-alpha

10 years agoStart on a changelog for 0.2.6.2-alpha
Nick Mathewson [Mon, 22 Dec 2014 15:02:18 +0000 (10:02 -0500)] 
Start on a changelog for 0.2.6.2-alpha

10 years agohave lintchanges check header format.
Nick Mathewson [Mon, 22 Dec 2014 15:00:34 +0000 (10:00 -0500)] 
have lintchanges check header format.

10 years agoResolve issues in changes files
Nick Mathewson [Mon, 22 Dec 2014 14:49:33 +0000 (09:49 -0500)] 
Resolve issues in changes files

10 years agoShort python script to lint the changes files
Nick Mathewson [Mon, 22 Dec 2014 14:34:55 +0000 (09:34 -0500)] 
Short python script to lint the changes files

10 years agoMerge branch 'ticket7356_squashed'
Nick Mathewson [Sun, 21 Dec 2014 19:48:53 +0000 (14:48 -0500)] 
Merge branch 'ticket7356_squashed'

10 years agoFixing mistake in comment.
rl1987 [Tue, 16 Dec 2014 18:52:05 +0000 (20:52 +0200)] 
Fixing mistake in comment.

10 years agoChanges file for 7356
rl1987 [Sun, 23 Nov 2014 19:52:50 +0000 (21:52 +0200)] 
Changes file for 7356

10 years agoUsing channel state lookup macros in connection_or.c.
rl1987 [Sun, 23 Nov 2014 19:42:46 +0000 (21:42 +0200)] 
Using channel state lookup macros in connection_or.c.

10 years agoUsing CHANNEL_FINISHED macro in connection.c
rl1987 [Sun, 23 Nov 2014 19:34:41 +0000 (21:34 +0200)] 
Using CHANNEL_FINISHED macro in connection.c

10 years agoUsing channel state lookup macros in circuitlist.c.
rl1987 [Sun, 23 Nov 2014 19:27:15 +0000 (21:27 +0200)] 
Using channel state lookup macros in circuitlist.c.

10 years agoUsing CHANNEL_IS_OPEN macro in circuitbuild.c
rl1987 [Sun, 23 Nov 2014 19:17:15 +0000 (21:17 +0200)] 
Using CHANNEL_IS_OPEN macro in circuitbuild.c

10 years agoUsing channel state lookup macros in circuitbias.c.
rl1987 [Sun, 23 Nov 2014 19:12:47 +0000 (21:12 +0200)] 
Using channel state lookup macros in circuitbias.c.

10 years agoUsing channel state lookup macros in channeltls.c
rl1987 [Sun, 23 Nov 2014 19:02:00 +0000 (21:02 +0200)] 
Using channel state lookup macros in channeltls.c

10 years agoUse channel state lookup macros in channel.c
rl1987 [Sun, 23 Nov 2014 18:53:13 +0000 (20:53 +0200)] 
Use channel state lookup macros in channel.c

10 years agoUsing macros and inline function for quick lookup of channel state.
rl1987 [Sun, 23 Nov 2014 18:52:24 +0000 (20:52 +0200)] 
Using macros and inline function for quick lookup of channel state.

10 years agoMerge remote-tracking branch 'teor/bug14002-osx-transproxy-ipfw-pf'
Nick Mathewson [Sun, 21 Dec 2014 18:37:40 +0000 (13:37 -0500)] 
Merge remote-tracking branch 'teor/bug14002-osx-transproxy-ipfw-pf'

10 years agoMake log bufer 10k, not 9.78k.
teor [Sun, 21 Dec 2014 18:36:06 +0000 (13:36 -0500)] 
Make log bufer 10k, not 9.78k.

10 years agoFix a comment in tor_addr_parse
teor [Sun, 21 Dec 2014 18:35:42 +0000 (13:35 -0500)] 
Fix a comment in tor_addr_parse

10 years agoFix clang warning, IPv6 address comment, buffer size typo
teor [Sat, 20 Dec 2014 11:20:54 +0000 (22:20 +1100)] 
Fix clang warning, IPv6 address comment, buffer size typo

The address of an array in the middle of a structure will
always be non-NULL. clang recognises this and complains.
Disable the tautologous and redundant check to silence
this warning.

Fixes bug 14001.

10 years agoDocument the case of HiddenServiceDir being defined as relative path.
rl1987 [Sun, 21 Dec 2014 17:05:10 +0000 (19:05 +0200)] 
Document the case of HiddenServiceDir being defined as relative path.

10 years agoFix transparent proxy checks to allow OS X to use ipfw or pf
teor [Sat, 20 Dec 2014 11:27:21 +0000 (22:27 +1100)] 
Fix transparent proxy checks to allow OS X to use ipfw or pf

OS X uses ipfw (FreeBSD) or pf (OpenBSD). Update the transparent
proxy option checks to allow for both ipfw and pf on OS X.

Fixes bug 14002.

10 years agoLLONG_MIN => INT64_MIN.
Nick Mathewson [Fri, 19 Dec 2014 19:12:35 +0000 (14:12 -0500)] 
LLONG_MIN => INT64_MIN.

10 years agoDefine an int64_min when it is missing
Nick Mathewson [Fri, 19 Dec 2014 19:12:22 +0000 (14:12 -0500)] 
Define an int64_min when it is missing

10 years agoFix unit test.
Karsten Loesing [Fri, 19 Dec 2014 17:37:43 +0000 (18:37 +0100)] 
Fix unit test.

Looks like we forgot to update unit tests when we switched from 32-bit to
64-bit ints while tweaking 7cd53b7.

10 years agoMerge branch 'asn-karsten-task-13192-5-squashed'
Nick Mathewson [Fri, 19 Dec 2014 15:35:47 +0000 (10:35 -0500)] 
Merge branch 'asn-karsten-task-13192-5-squashed'

10 years agoHS stats: Add changes file and improve man page.
George Kadianakis [Thu, 18 Dec 2014 15:44:47 +0000 (17:44 +0200)] 
HS stats: Add changes file and improve man page.

10 years agoAdd two hidden-service related statistics.
George Kadianakis [Tue, 2 Dec 2014 12:20:35 +0000 (12:20 +0000)] 
Add two hidden-service related statistics.

The two statistics are:
 1. number of RELAY cells observed on successfully established
    rendezvous circuits; and
 2. number of .onion addresses observed as hidden-service
    directory.

Both statistics are accumulated over 24 hours, obfuscated by rounding
up to the next multiple of a given number and adding random noise,
and written to local file stats/hidserv-stats.

Notably, no statistics will be gathered on clients or services, but
only on relays.

10 years agoMerge remote-tracking branch 'dgoulet/bug13936_025_v2'
Nick Mathewson [Fri, 19 Dec 2014 14:38:46 +0000 (09:38 -0500)] 
Merge remote-tracking branch 'dgoulet/bug13936_025_v2'

10 years agoFix: call circuit_has_opened() for rendezvous circuit
David Goulet [Wed, 10 Dec 2014 18:05:41 +0000 (13:05 -0500)] 
Fix: call circuit_has_opened() for rendezvous circuit

In circuit_get_open_circ_or_launch(), for a rendezvous circuit,
rend_client_rendcirc_has_opened() but circuit_has_opened() is preferred here
since it will call the right function for a specific circuit purpose.

Furthermore, a controller event is triggered where the former did not.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agofix a long line
Nick Mathewson [Fri, 12 Dec 2014 13:54:07 +0000 (08:54 -0500)] 
fix a long line

10 years agoReference bug number in changes file
Nick Mathewson [Fri, 12 Dec 2014 13:53:42 +0000 (08:53 -0500)] 
Reference bug number in changes file

10 years agoMerge remote-tracking branch 'meejah/ticket-13941-b'
Nick Mathewson [Fri, 12 Dec 2014 13:53:14 +0000 (08:53 -0500)] 
Merge remote-tracking branch 'meejah/ticket-13941-b'

10 years agoTweak 13942 fix
Nick Mathewson [Fri, 12 Dec 2014 13:49:52 +0000 (08:49 -0500)] 
Tweak 13942 fix

10 years agoPre-check hidden-service-dir permissions/ownership
meejah [Thu, 11 Dec 2014 05:15:04 +0000 (22:15 -0700)] 
Pre-check hidden-service-dir permissions/ownership

See ticket #13942 where Tor dies if you feed it a hidden service
directory with the wrong owner via SETCONF.

10 years agoFix 13941: make calling log_new_relay_greeting() optional.
meejah [Thu, 11 Dec 2014 05:30:14 +0000 (22:30 -0700)] 
Fix 13941: make calling log_new_relay_greeting() optional.

Specifically, only if we're creating secret_id_key do we log the
greeting (and then only if the key is actually created).