]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
15 years agoFix a rare bug in rend_fn tests when the randomly generated port is 0
Nick Mathewson [Sat, 7 Aug 2010 18:31:58 +0000 (14:31 -0400)] 
Fix a rare bug in rend_fn tests when the randomly generated port is 0

Since the rend code doesn't like the port to be 0, we shouldn't generate
the port by declaring crypto_rand_int(65536); instead we should
say crypto_rand_int(65535)+1.

Diagnosed by Matt Edman; fixes bug 1808.

15 years agoMerge commit 'karsten/stats_v4_rebased'
Nick Mathewson [Fri, 6 Aug 2010 14:46:59 +0000 (10:46 -0400)] 
Merge commit 'karsten/stats_v4_rebased'

15 years agoMove exit-stats code to the end of rephist.c.
Karsten Loesing [Wed, 4 Aug 2010 05:32:10 +0000 (07:32 +0200)] 
Move exit-stats code to the end of rephist.c.

15 years agoOnly delay counting bridge users if we were a relay before
Sebastian Hahn [Thu, 8 Jul 2010 12:29:04 +0000 (14:29 +0200)] 
Only delay counting bridge users if we were a relay before

15 years agoAllow enabling or disabling *Statistics while Tor is running.
Karsten Loesing [Mon, 21 Jun 2010 16:52:46 +0000 (18:52 +0200)] 
Allow enabling or disabling *Statistics while Tor is running.

With this patch we stop scheduling when we should write statistics using a
single timestamp in run_scheduled_events(). Instead, we remember when a
statistics interval starts separately for each statistic type in geoip.c
and rephist.c. Every time run_scheduled_events() tries to write stats to
disk, it learns when it should schedule the next such attempt.

This patch also enables all statistics to be stopped and restarted at a
later time.

This patch comes with a few refactorings, some of which were not easily
doable without the patch.

15 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Wed, 4 Aug 2010 16:37:30 +0000 (12:37 -0400)] 
Merge commit 'origin/maint-0.2.1'

Conflicts:
debian/changelog
debian/control
debian/patches/03_tor_manpage_in_section_8.dpatch
debian/patches/06_add_compile_time_defaults.dpatch
debian/rules

15 years agoRemove the debian directory from the main git repository
Nick Mathewson [Wed, 4 Aug 2010 16:21:48 +0000 (12:21 -0400)] 
Remove the debian directory from the main git repository

Once upon a time it made sense to keep all the Debian files in the
main Tor distribution, since repeatedly merging them back in was hard.
Now that we're on git, that's no longer so.

Peter's debian repository at debian/tor.git on our git server has the
most recent version of the tor-on-debian packaging stuff, and the versions
in our own repository have gotten out of date.

Resolves bug #1735.

15 years agoClarify that implementation is for discussion of implementation
Nick Mathewson [Tue, 3 Aug 2010 18:25:07 +0000 (14:25 -0400)] 
Clarify that implementation is for discussion of implementation

15 years agoAdd proposal 174 from Ian Goldberg: Optimistic Data for Tor: Server Side
Nick Mathewson [Tue, 3 Aug 2010 18:23:43 +0000 (14:23 -0400)] 
Add proposal 174 from Ian Goldberg: Optimistic Data for Tor: Server Side

15 years agoBless two proposals from Damian Johnson as 172 and 173.
Nick Mathewson [Tue, 3 Aug 2010 17:22:34 +0000 (13:22 -0400)] 
Bless two proposals from Damian Johnson as 172 and 173.

(Leaving a gap for the proposal Jake blessed as 171.)

15 years agoMerge commit 'sebastian/mlockall'
Nick Mathewson [Tue, 3 Aug 2010 14:50:18 +0000 (10:50 -0400)] 
Merge commit 'sebastian/mlockall'

15 years agoMerge commit 'erinn/rpm-devel'
Nick Mathewson [Tue, 3 Aug 2010 14:48:30 +0000 (10:48 -0400)] 
Merge commit 'erinn/rpm-devel'

15 years agoMerge commit 'sebastian/distcheck'
Nick Mathewson [Tue, 3 Aug 2010 14:07:57 +0000 (10:07 -0400)] 
Merge commit 'sebastian/distcheck'

15 years agoMerge commit 'sebastian/rend-spec'
Nick Mathewson [Tue, 3 Aug 2010 13:16:24 +0000 (09:16 -0400)] 
Merge commit 'sebastian/rend-spec'

15 years agoMerge commit 'karsten/dir-spec-fix'
Nick Mathewson [Tue, 3 Aug 2010 13:14:38 +0000 (09:14 -0400)] 
Merge commit 'karsten/dir-spec-fix'

15 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Tue, 3 Aug 2010 13:13:17 +0000 (09:13 -0400)] 
Merge commit 'origin/maint-0.2.1'

15 years agoClarify that rend cookies shouldn't be reused
Sebastian Hahn [Tue, 3 Aug 2010 12:48:17 +0000 (14:48 +0200)] 
Clarify that rend cookies shouldn't be reused

15 years agoFix copy-and-paste fail in dir-spec.txt.
Karsten Loesing [Thu, 17 Jun 2010 10:57:46 +0000 (12:57 +0200)] 
Fix copy-and-paste fail in dir-spec.txt.

15 years agoUpdate to the August 1 2010 Maxmind GeoLite Country database.
Karsten Loesing [Tue, 3 Aug 2010 11:04:09 +0000 (13:04 +0200)] 
Update to the August 1 2010 Maxmind GeoLite Country database.

15 years agoFix 'make distcheck'
Sebastian Hahn [Mon, 2 Aug 2010 22:48:59 +0000 (00:48 +0200)] 
Fix 'make distcheck'

We were leaving doc/config.log and src/or/micro-revision.i in
place during a make clean. Fix that.

15 years agoMerge branch 'bug1384'
Nick Mathewson [Mon, 2 Aug 2010 16:53:52 +0000 (12:53 -0400)] 
Merge branch 'bug1384'

15 years agoFix a compile warning on OS X 10.6
Sebastian Hahn [Mon, 2 Aug 2010 16:44:00 +0000 (18:44 +0200)] 
Fix a compile warning on OS X 10.6

Also update the changes file to contain a note on which bug was
fixed by this.

15 years agoBug #919: Don't rebind ports if we receive SIGHUP while hibernating.
Chris Ball [Sun, 1 Aug 2010 02:35:20 +0000 (22:35 -0400)] 
Bug #919: Don't rebind ports if we receive SIGHUP while hibernating.

15 years agoBug #928: Disallow BridgeRelay 1 and ORPort 0 configuration
Chris Ball [Sat, 31 Jul 2010 23:42:29 +0000 (19:42 -0400)] 
Bug #928: Disallow BridgeRelay 1 and ORPort 0 configuration

15 years agoBug #1107: Complain if PublishServerDescriptor receives 0 or 1 in a list
Chris Ball [Sat, 31 Jul 2010 22:06:40 +0000 (18:06 -0400)] 
Bug #1107: Complain if PublishServerDescriptor receives 0 or 1 in a list

0 or 1 should only be passed as the sole argument. Warn for now, reject
in 0.2.3.x.

15 years agoMerge commit 'sebastian/bug1776_v2'
Nick Mathewson [Mon, 2 Aug 2010 15:32:49 +0000 (11:32 -0400)] 
Merge commit 'sebastian/bug1776_v2'

15 years agoMerge branch 'bug1094_v2'
Nick Mathewson [Mon, 2 Aug 2010 15:11:02 +0000 (11:11 -0400)] 
Merge branch 'bug1094_v2'

15 years agoBug #1222: Clarify new circuit after sleep notice
Chris Ball [Sat, 31 Jul 2010 20:20:21 +0000 (16:20 -0400)] 
Bug #1222: Clarify new circuit after sleep notice

("Application request when we're believed to be offline." ->
 "Application request when we haven't used client functionality lately.")

15 years agoFix up geoip unit tests to know about ??
Nick Mathewson [Sat, 31 Jul 2010 19:20:28 +0000 (15:20 -0400)] 
Fix up geoip unit tests to know about ??

15 years agoSet up the geoip country table right even if not called normally
Nick Mathewson [Sat, 31 Jul 2010 19:14:48 +0000 (15:14 -0400)] 
Set up the geoip country table right even if not called normally

15 years agoMove the "nowhereland" logic into geoip.c
Nick Mathewson [Sat, 31 Jul 2010 19:06:55 +0000 (15:06 -0400)] 
Move the "nowhereland" logic into geoip.c

15 years agoMake "Nowhere" explicitly listable in torrc.
Nick Mathewson [Tue, 15 Sep 2009 17:41:36 +0000 (13:41 -0400)] 
Make "Nowhere" explicitly listable in torrc.

We already had the country code ?? indicating an unknown country, so all we
needed to do to make unknown countries excludable was to make the ?? code
discoverable.

15 years agoClarify that cmd-line options override torrc options
Nick Mathewson [Sat, 31 Jul 2010 17:23:41 +0000 (13:23 -0400)] 
Clarify that cmd-line options override torrc options

15 years agoWarn when encounter the same (non-list) option twice in the same place
Nick Mathewson [Sat, 31 Jul 2010 17:16:48 +0000 (13:16 -0400)] 
Warn when encounter the same (non-list) option twice in the same place

It's okay to get (say) a SocksPort line in the torrc, and then a
SocksPort on the command line to override it, and then a SocksPort via
a controller to override *that*.  But if there are two occurrences of
SocksPort in the torrc, or on the command line, or in a single SETCONF
command, then the user is likely confused.  Our old code would not
help unconfuse the user, but would instead silently ignore all but
the last occurrence.

This patch changes the behavior so that if the some option is passed
more than once to any torrc, command line, or SETCONF (each of which
coincidentally corresponds to a call to config_assign()), and the
option is not a type that allows multiple occurrences (LINELIST or
LINELIST_X), then we can warn the user.

This closes trac entry 1384.

15 years agoAllow using regular relays as bridges
Sebastian Hahn [Fri, 30 Jul 2010 19:39:08 +0000 (21:39 +0200)] 
Allow using regular relays as bridges

15 years agoDocument 20KB requirement in BandwidthRate documentation
Nick Mathewson [Fri, 30 Jul 2010 22:00:43 +0000 (18:00 -0400)] 
Document 20KB requirement in BandwidthRate documentation

This fixes the last suggestion of bug #1195.

15 years agoMerge commit 'karsten/rendspec-master'
Nick Mathewson [Fri, 30 Jul 2010 15:45:22 +0000 (11:45 -0400)] 
Merge commit 'karsten/rendspec-master'

15 years agoAdd a changes file for Linus's makefile-var-exp branch.
Nick Mathewson [Fri, 30 Jul 2010 15:37:42 +0000 (11:37 -0400)] 
Add a changes file for Linus's makefile-var-exp branch.

15 years agoFix compilation issue in doc/Makefile.am on NetBSD
Linus Nordberg [Fri, 30 Jul 2010 11:54:38 +0000 (13:54 +0200)] 
Fix compilation issue in doc/Makefile.am on NetBSD

* doc/Makefile.am: Change $(VAR:MOD) to ${VAR:MOD} -- make(1) on
NetBSD substitutes '$(:x)' to 'x' rather than the empty string.  This
bites us in doc/ when configured with `--disable-asciidoc'.  Curly
braces should work in all implementations of make(1) but this patch
changes only the places where we use the VAR:MOD expansion.

15 years agoAdd two authoritzation protocols to rend-spec.txt.
Karsten Loesing [Thu, 29 Jul 2010 14:07:00 +0000 (16:07 +0200)] 
Add two authoritzation protocols to rend-spec.txt.

15 years agoClean up Section 1 of rend-spec.txt.
Karsten Loesing [Thu, 29 Jul 2010 13:30:57 +0000 (15:30 +0200)] 
Clean up Section 1 of rend-spec.txt.

15 years agoInterchange sections 1.2 and 1.3.
Karsten Loesing [Thu, 29 Jul 2010 11:33:16 +0000 (13:33 +0200)] 
Interchange sections 1.2 and 1.3.

15 years agoRename all RELAY_* cell types to RELAY_COMMAND_*.
Karsten Loesing [Thu, 29 Jul 2010 08:57:51 +0000 (10:57 +0200)] 
Rename all RELAY_* cell types to RELAY_COMMAND_*.

15 years agoMerge commit 'linus/headers'
Nick Mathewson [Fri, 30 Jul 2010 01:54:46 +0000 (21:54 -0400)] 
Merge commit 'linus/headers'

15 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Thu, 29 Jul 2010 14:45:59 +0000 (10:45 -0400)] 
Merge commit 'origin/maint-0.2.1'

15 years agoFix typos, make all \brief's conformant, end sentences with a period.
Linus Nordberg [Wed, 28 Jul 2010 15:42:33 +0000 (17:42 +0200)] 
Fix typos, make all \brief's conformant, end sentences with a period.

15 years agoMove the header for bandwidth_weight_rule_to_string into reasons.h
Sebastian Hahn [Mon, 26 Jul 2010 09:37:13 +0000 (11:37 +0200)] 
Move the header for bandwidth_weight_rule_to_string into reasons.h

15 years agoDon't include crypto, compat and util.h in or.h
Sebastian Hahn [Mon, 26 Jul 2010 09:01:45 +0000 (11:01 +0200)] 
Don't include crypto, compat and util.h in or.h

15 years agoSimplify expression to list files for check-spaces
Sebastian Hahn [Mon, 26 Jul 2010 03:51:15 +0000 (05:51 +0200)] 
Simplify expression to list files for check-spaces

The tinytest* files went into src/test/.

15 years agoAdd the new header files to noinst_HEADERS
Sebastian Hahn [Mon, 26 Jul 2010 03:28:27 +0000 (05:28 +0200)] 
Add the new header files to noinst_HEADERS

Also add a changes/ file.

15 years agoCreate routerparse.h
Sebastian Hahn [Fri, 23 Jul 2010 21:23:43 +0000 (23:23 +0200)] 
Create routerparse.h

15 years agoCreate rephist.h
Sebastian Hahn [Fri, 23 Jul 2010 20:57:20 +0000 (22:57 +0200)] 
Create rephist.h

15 years agoCreate rendmid.h
Sebastian Hahn [Fri, 23 Jul 2010 20:03:33 +0000 (22:03 +0200)] 
Create rendmid.h

15 years agoCreate relay.h
Sebastian Hahn [Fri, 23 Jul 2010 19:53:11 +0000 (21:53 +0200)] 
Create relay.h

15 years agoCreate reasons.h
Sebastian Hahn [Fri, 23 Jul 2010 19:08:30 +0000 (21:08 +0200)] 
Create reasons.h

15 years agoCreate policies.h
Sebastian Hahn [Fri, 23 Jul 2010 18:51:25 +0000 (20:51 +0200)] 
Create policies.h

15 years agoCreate onion.h
Sebastian Hahn [Fri, 23 Jul 2010 18:38:25 +0000 (20:38 +0200)] 
Create onion.h

15 years agoCreate ntmain.h
Sebastian Hahn [Fri, 23 Jul 2010 18:21:24 +0000 (20:21 +0200)] 
Create ntmain.h

15 years agoCreate networkstatus.h
Sebastian Hahn [Fri, 23 Jul 2010 18:18:55 +0000 (20:18 +0200)] 
Create networkstatus.h

15 years agoCreate microdesc.h
Sebastian Hahn [Fri, 23 Jul 2010 18:04:12 +0000 (20:04 +0200)] 
Create microdesc.h

15 years agoCreate main.h
Sebastian Hahn [Fri, 23 Jul 2010 17:58:06 +0000 (19:58 +0200)] 
Create main.h

15 years agoCreate hibernate.h
Sebastian Hahn [Thu, 22 Jul 2010 10:30:46 +0000 (12:30 +0200)] 
Create hibernate.h

15 years agoCreate dns.h
Sebastian Hahn [Thu, 22 Jul 2010 10:24:25 +0000 (12:24 +0200)] 
Create dns.h

15 years agoCreate dirvote.h
Sebastian Hahn [Thu, 22 Jul 2010 10:19:28 +0000 (12:19 +0200)] 
Create dirvote.h

15 years agoCreate dirserv.h
Sebastian Hahn [Thu, 22 Jul 2010 10:09:49 +0000 (12:09 +0200)] 
Create dirserv.h

15 years agoCreate directory.h
Sebastian Hahn [Thu, 22 Jul 2010 09:54:50 +0000 (11:54 +0200)] 
Create directory.h

15 years agoCreate cpuworker.h
Sebastian Hahn [Thu, 22 Jul 2010 09:40:39 +0000 (11:40 +0200)] 
Create cpuworker.h

15 years agoCreate control.h
Sebastian Hahn [Thu, 22 Jul 2010 09:35:09 +0000 (11:35 +0200)] 
Create control.h

15 years agoCreate connection_or.h
Sebastian Hahn [Thu, 22 Jul 2010 08:50:34 +0000 (10:50 +0200)] 
Create connection_or.h

15 years agoCreate connection_edge.h
Sebastian Hahn [Thu, 22 Jul 2010 08:43:02 +0000 (10:43 +0200)] 
Create connection_edge.h

15 years agoCreate connection.h
Sebastian Hahn [Thu, 22 Jul 2010 08:32:52 +0000 (10:32 +0200)] 
Create connection.h

15 years agoCreate config.h
Sebastian Hahn [Thu, 22 Jul 2010 08:22:51 +0000 (10:22 +0200)] 
Create config.h

15 years agoCreate command.h
Sebastian Hahn [Thu, 22 Jul 2010 08:08:32 +0000 (10:08 +0200)] 
Create command.h

15 years agoCreate circuituse.h
Sebastian Hahn [Thu, 22 Jul 2010 08:03:40 +0000 (10:03 +0200)] 
Create circuituse.h

15 years agoCreate circuitlist.h
Sebastian Hahn [Thu, 22 Jul 2010 07:46:23 +0000 (09:46 +0200)] 
Create circuitlist.h

15 years agoCreate circuitbuild.h
Sebastian Hahn [Wed, 21 Jul 2010 23:21:00 +0000 (01:21 +0200)] 
Create circuitbuild.h

15 years agoCreate buffers.h
Sebastian Hahn [Wed, 21 Jul 2010 22:46:18 +0000 (00:46 +0200)] 
Create buffers.h

15 years agoCreate rendservice.h
Sebastian Hahn [Wed, 21 Jul 2010 22:30:17 +0000 (00:30 +0200)] 
Create rendservice.h

15 years agoCreate rendclient.h
Sebastian Hahn [Wed, 21 Jul 2010 22:13:51 +0000 (00:13 +0200)] 
Create rendclient.h

15 years agoCreate rendcommon.h
Sebastian Hahn [Wed, 21 Jul 2010 15:52:54 +0000 (17:52 +0200)] 
Create rendcommon.h

15 years agoCreate routerlist.h
Sebastian Hahn [Wed, 21 Jul 2010 15:08:11 +0000 (17:08 +0200)] 
Create routerlist.h

15 years agoCreate router.h
Sebastian Hahn [Wed, 21 Jul 2010 14:17:10 +0000 (16:17 +0200)] 
Create router.h

15 years agoCreate geoip.h
Sebastian Hahn [Wed, 21 Jul 2010 12:38:52 +0000 (14:38 +0200)] 
Create geoip.h

15 years agoSplit headers for dnsserv.c functions out of or.h
Sebastian Hahn [Wed, 21 Jul 2010 10:26:18 +0000 (12:26 +0200)] 
Split headers for dnsserv.c functions out of or.h

The next series of commits begins addressing the issue that we're
currently including the complete or.h file in all of our source files.
To change that, we're splitting function definitions into new header
files (one header file per source file).

15 years agowhitespace fix
Sebastian Hahn [Sun, 25 Jul 2010 11:24:31 +0000 (13:24 +0200)] 
whitespace fix

15 years agoFix compilation with mingw and OpenSSL 0.9.8m+
mingw-san [Mon, 26 Jul 2010 19:05:11 +0000 (15:05 -0400)] 
Fix compilation with mingw and OpenSSL 0.9.8m+

15 years agoMake sure we don't warn for libevent versions like 1.4.14b-stable
Sebastian Hahn [Mon, 26 Jul 2010 04:40:44 +0000 (06:40 +0200)] 
Make sure we don't warn for libevent versions like 1.4.14b-stable

15 years agomike needs DEFAULT_ROUTE_LEN in other files
Roger Dingledine [Wed, 21 Jul 2010 13:30:26 +0000 (09:30 -0400)] 
mike needs DEFAULT_ROUTE_LEN in other files

15 years agopartial changelog for 0.2.2.15-alpha
Roger Dingledine [Wed, 21 Jul 2010 13:28:34 +0000 (09:28 -0400)] 
partial changelog for 0.2.2.15-alpha

15 years agowhitespace fix
Roger Dingledine [Wed, 21 Jul 2010 13:24:14 +0000 (09:24 -0400)] 
whitespace fix

15 years agoAdd missing changes file for d461799f0
Nick Mathewson [Mon, 19 Jul 2010 22:34:05 +0000 (00:34 +0200)] 
Add missing changes file for d461799f0

15 years agonaked constants are bad
Roger Dingledine [Tue, 20 Jul 2010 12:07:44 +0000 (08:07 -0400)] 
naked constants are bad

15 years agoMerge branch 'bug1699'
Nick Mathewson [Mon, 19 Jul 2010 09:13:53 +0000 (11:13 +0200)] 
Merge branch 'bug1699'

15 years agoFix getinfo_helper_networkstatus to return 0 on question-not-known
Nick Mathewson [Sun, 18 Jul 2010 15:13:25 +0000 (17:13 +0200)] 
Fix getinfo_helper_networkstatus to return 0 on question-not-known

It erroneously returned -1 instead, which made it say "Internal error"
rather than "Unrecognized key."

15 years agoMake the controller act more usefully when GETINFO fails
Nick Mathewson [Sun, 18 Jul 2010 15:05:58 +0000 (17:05 +0200)] 
Make the controller act more usefully when GETINFO fails

Right now it says "552 internal error" because there's no way for
getinfo_helper_*() countries to specify an error message.  This
patch changes the getinfo_helper_*() interface, and makes most of the
getinfo helpers give useful error messages in response to failures.

This should prevent recurrences of bug 1699, where a missing GeoIPFile
line in the torrc made GETINFO ip-to-county/* fail in a "not obvious
how to fix" way.

15 years agoAlter how guard flags are chosen.
Mike Perry [Mon, 12 Jul 2010 00:51:44 +0000 (17:51 -0700)] 
Alter how guard flags are chosen.

V3 authorities no longer decide not to vote on Guard+Exit. The bandwidth
weights should take care of this now.

Also, lower the max threshold for WFU to 0.98, to allow more nodes to become
guards.

15 years agoprint right controller purpose string for measure-timeout circs
Roger Dingledine [Thu, 15 Jul 2010 01:06:49 +0000 (21:06 -0400)] 
print right controller purpose string for measure-timeout circs

15 years agofetching a directory on sighup is years out of date
Roger Dingledine [Wed, 14 Jul 2010 17:48:09 +0000 (13:48 -0400)] 
fetching a directory on sighup is years out of date

15 years agoNo dirport should mean no hsdir flag (bug 1693)
Roger Dingledine [Wed, 14 Jul 2010 17:20:57 +0000 (13:20 -0400)] 
No dirport should mean no hsdir flag (bug 1693)

15 years ago0.2.2.14-alpha blurb
Roger Dingledine [Tue, 13 Jul 2010 19:50:24 +0000 (15:50 -0400)] 
0.2.2.14-alpha blurb