]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
9 years agoFix out-of-bounds write during voting with duplicate ed25519 keys
John Brooks [Wed, 11 May 2016 16:13:22 +0000 (12:13 -0400)] 
Fix out-of-bounds write during voting with duplicate ed25519 keys

In dirserv_compute_performance_thresholds, we allocate arrays based
on the length of 'routers', a list of routerinfo_t, but loop over
the nodelist. The 'routers' list may be shorter when relays were
filtered by routers_make_ed_keys_unique, leading to an out-of-bounds
write on directory authorities.

This bug was originally introduced in 26e89742, but it doesn't look
possible to trigger until routers_make_ed_keys_unique was introduced
in 13a31e72.

Fixes bug 19032; bugfix on tor 0.2.8.2-alpha.

9 years agoMerge branch 'bug19008_027' into maint-0.2.7
Nick Mathewson [Mon, 9 May 2016 22:14:27 +0000 (18:14 -0400)] 
Merge branch 'bug19008_027' into maint-0.2.7

9 years agoAdd "-c 1" to ping6 in test-network-all
Nick Mathewson [Mon, 9 May 2016 22:12:59 +0000 (18:12 -0400)] 
Add "-c 1" to ping6 in test-network-all

Fixes bug 19008. bugfix on 0.2.7.3-rc

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Mon, 9 May 2016 18:56:56 +0000 (14:56 -0400)] 
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, 9 May 2016 18:55:45 +0000 (14:55 -0400)] 
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, 9 May 2016 18:55:22 +0000 (14:55 -0400)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

9 years agoUpdate geoip and geoip6 to the May 4 2016 database.
Karsten Loesing [Mon, 9 May 2016 15:49:14 +0000 (17:49 +0200)] 
Update geoip and geoip6 to the May 4 2016 database.

9 years agoDo not link tests against both libor.a and libor-testing.a
Nick Mathewson [Fri, 11 Mar 2016 14:53:25 +0000 (09:53 -0500)] 
Do not link tests against both libor.a and libor-testing.a

Also, put libor-testing.a at a better position in the list of
libraries, to avoid linker errors.

This is a fix, or part of a fix, for 18490.

Conflicts:
src/test/include.am

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Thu, 7 Apr 2016 14:45:46 +0000 (10:45 -0400)] 
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 [Thu, 7 Apr 2016 14:45:38 +0000 (10:45 -0400)] 
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 [Thu, 7 Apr 2016 14:45:32 +0000 (10:45 -0400)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

9 years agoUpdate geoip and geoip6 to the April 5 2016 database.
Karsten Loesing [Thu, 7 Apr 2016 09:10:09 +0000 (11:10 +0200)] 
Update geoip and geoip6 to the April 5 2016 database.

9 years agoMerge branch 'bug15221_027' into maint-0.2.7
Andrea Shepard [Wed, 30 Mar 2016 12:23:42 +0000 (12:23 +0000)] 
Merge branch 'bug15221_027' into maint-0.2.7

9 years agoMerge branch 'bug18570_027' into maint-0.2.7
Andrea Shepard [Tue, 29 Mar 2016 15:01:36 +0000 (15:01 +0000)] 
Merge branch 'bug18570_027' into maint-0.2.7

9 years agoMerge branch 'bug16248_027' into maint-0.2.7
Andrea Shepard [Tue, 29 Mar 2016 14:33:45 +0000 (14:33 +0000)] 
Merge branch 'bug16248_027' into maint-0.2.7

9 years agoMerge branch 'ed25519_voting_fixes_squashed' into maint-0.2.7
Nick Mathewson [Mon, 21 Mar 2016 17:25:12 +0000 (13:25 -0400)] 
Merge branch 'ed25519_voting_fixes_squashed' into maint-0.2.7

9 years agoUse nth consistently in dircollate.h.
Nick Mathewson [Tue, 15 Mar 2016 14:39:50 +0000 (10:39 -0400)] 
Use nth consistently in dircollate.h.

Documentation-only patch. Issue 17668.T6.

9 years agoIn routers_make_ed_keys_unique, break ties for published_on
Nick Mathewson [Tue, 15 Mar 2016 14:34:05 +0000 (10:34 -0400)] 
In routers_make_ed_keys_unique, break ties for published_on

This ensures that if we can't use published_on to decide an ed,rsa
mapping, we at least decide deterministically.

Resolves 17668.T3

9 years agoAssert that dircollator is collated when we're reading its output.
Nick Mathewson [Tue, 15 Mar 2016 14:24:18 +0000 (10:24 -0400)] 
Assert that dircollator is collated when we're reading its output.

Fix for 17668.S2.

9 years agoAfter we strip out duplicate entries from 'routers', don't use 'rl'.
Nick Mathewson [Tue, 15 Mar 2016 14:15:59 +0000 (10:15 -0400)] 
After we strip out duplicate entries from 'routers', don't use 'rl'.

We've got to make sure that every single subsequent calculation in
dirserv_generate_networkstatus_vote_obj() are based on the list of
routerinfo_t *after* we've removed possible duplicates, not before.
Fortunately, none of the functions that were taking a routerlist_t
as an argument were actually using any fields other than this list
of routers.

Resolves issue 18318.DG3.

9 years agoFix another case of 17668: Add NoEdConsensus
Nick Mathewson [Tue, 23 Feb 2016 14:31:23 +0000 (09:31 -0500)] 
Fix another case of 17668: Add NoEdConsensus

I had a half-built mechanism to track, during the voting process,
whether the Ed25519 value (or lack thereof) reflected a true
consensus among the authorities.  But we never actually inserted this
field in the consensus.

The key idea here is that we first attempt to match up votes by pairs
of <Ed,RSA>, where <Ed> can be NULL if we're told that there is no
Ed key.  If this succeeds, then we can treat all those votes as 'a
consensus for Ed'.  And we can include all other votes with a
matching RSA key and no statement about Ed keys as being "also about
the same relay."

After that, we look for RSA keys we haven't actually found an entry
for yet, and see if there are enough votes for them, NOT considering
Ed keys.  If there are, we match them as before, but we treat them
as "not a consensus about ed".

When we include an entry in a consensus, if it does not reflect a
consensus about ed keys, then we include a new NoEdConsensus flag on
it.

This is all only for consensus method 22 or later.

Also see corresponding dir-spec patch.

9 years agoDocument has_ed25519_listing
Nick Mathewson [Tue, 23 Feb 2016 13:13:39 +0000 (08:13 -0500)] 
Document has_ed25519_listing

9 years agoNever vote for an ed key twice.
Nick Mathewson [Mon, 22 Feb 2016 16:43:59 +0000 (11:43 -0500)] 
Never vote for an ed key twice.

When generating a vote, and we have two routerinfos with the same ed
key, omit the one published earlier.

This was supposed to have been solved by key pinning, but when I
made key pinning optional, I didn't realize that this would jump up
and bite us.  It is part of bug 18318, and the root cause of 17668.

9 years agoFix log message subjects in networkstatus_parse_vote_from_string()
Nick Mathewson [Mon, 22 Feb 2016 15:59:27 +0000 (10:59 -0500)] 
Fix log message subjects in networkstatus_parse_vote_from_string()

Some of these messages called the thing being parsed a "vote" whether
it is a vote or a consensus.

Fixes bug 18368.

9 years agoDocument dircollate.c (and remove an unused global)
Nick Mathewson [Mon, 22 Feb 2016 15:39:42 +0000 (10:39 -0500)] 
Document dircollate.c (and remove an unused global)

9 years agoa couple more changes files issues.
Nick Mathewson [Mon, 21 Mar 2016 15:00:50 +0000 (11:00 -0400)] 
a couple more changes files issues.

9 years agoFix some warnings from lintchanges.
Nick Mathewson [Mon, 21 Mar 2016 14:58:29 +0000 (10:58 -0400)] 
Fix some warnings from lintchanges.

9 years agochanges file for bug18570
Nick Mathewson [Mon, 21 Mar 2016 14:19:07 +0000 (10:19 -0400)] 
changes file for bug18570

9 years agoMake sure channel_t queues its own copy of incoming cells
Andrea Shepard [Tue, 15 Mar 2016 07:40:19 +0000 (07:40 +0000)] 
Make sure channel_t queues its own copy of incoming cells

9 years agoAdd new channel/queue_incoming unit tests; modify channel unit tests for new clarifie...
Andrea Shepard [Tue, 15 Mar 2016 03:28:04 +0000 (03:28 +0000)] 
Add new channel/queue_incoming unit tests; modify channel unit tests for new clarified handling of alloc/free responsibility for queued incoming cells

9 years agoPermit setrlimit, prlimit, prlimit64 calls.
Nick Mathewson [Mon, 14 Mar 2016 17:21:16 +0000 (13:21 -0400)] 
Permit setrlimit, prlimit, prlimit64 calls.

We call setrlimit under some circumstances, and it can call prlimit
and prlimit64 under the hood.

Fixes bug 15221.

9 years agoAdd comments to connection_check_event().
Nick Mathewson [Mon, 14 Mar 2016 16:53:21 +0000 (12:53 -0400)] 
Add comments to connection_check_event().

9 years agoChange behavior on missing/present event to warn instead of asserting.
Nick Mathewson [Fri, 11 Mar 2016 15:50:36 +0000 (10:50 -0500)] 
Change behavior on missing/present event to warn instead of asserting.

Add a changes file.

9 years agoIf we start/stop reading on a dnsserv connection, don't assert.
Nick Mathewson [Fri, 11 Mar 2016 15:33:19 +0000 (10:33 -0500)] 
If we start/stop reading on a dnsserv connection, don't assert.

Fixes bug 16248. Patch from cypherpunks.  Bugfix on 0.2.0.1-alpha.

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Wed, 9 Mar 2016 15:36:50 +0000 (10:36 -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 [Wed, 9 Mar 2016 15:36:35 +0000 (10:36 -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 [Wed, 9 Mar 2016 15:36:20 +0000 (10:36 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

9 years agoUpdate geoip and geoip6 to the March 3 2016 database.
Karsten Loesing [Fri, 4 Mar 2016 09:56:51 +0000 (10:56 +0100)] 
Update geoip and geoip6 to the March 3 2016 database.

9 years agoMake clang asan work with FORTIFIED_SOURCE again.
Nick Mathewson [Mon, 22 Feb 2016 19:07:58 +0000 (14:07 -0500)] 
Make clang asan work with FORTIFIED_SOURCE again.

Short version: clang asan hates the glibc strcmp macro in
bits/string2.h if you are passing it a constant string argument of
length two or less.  (I could be off by one here, but that's the
basic idea.)

Closes issue 14821.

9 years agoEnable ed25519 collator in voting.
Nick Mathewson [Mon, 22 Feb 2016 15:07:42 +0000 (10:07 -0500)] 
Enable ed25519 collator in voting.

Previously, I had left in some debugging code with /*XXX*/ after it,
which nobody noticed.  Live and learn!  Next time I will use /*XXX
DO NOT COMMIT*/ or something.

We need to define a new consensus method for this; consensus method
21 shouldn't actually be used.

Fixes bug 17702; bugfix on 0.2.7.2-alpha.

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Thu, 11 Feb 2016 18:01:46 +0000 (13:01 -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 [Thu, 11 Feb 2016 17:57:28 +0000 (12:57 -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 [Thu, 11 Feb 2016 17:55:40 +0000 (12:55 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

9 years agoMerge branch 'bug18162_024' into maint-0.2.4
Nick Mathewson [Thu, 11 Feb 2016 17:55:25 +0000 (12:55 -0500)] 
Merge branch 'bug18162_024' into maint-0.2.4

9 years agoMake ensure_capacity a bit more pedantically correct
Nick Mathewson [Thu, 11 Feb 2016 17:54:52 +0000 (12:54 -0500)] 
Make ensure_capacity a bit more pedantically correct

Issues noted by cypherpunks on #18162

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Fri, 5 Feb 2016 13:13:35 +0000 (08:13 -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 [Fri, 5 Feb 2016 13:13:24 +0000 (08:13 -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 [Fri, 5 Feb 2016 13:13:13 +0000 (08:13 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

9 years agoUpdate geoip and geoip6 to the February 2 2016 database.
Karsten Loesing [Thu, 4 Feb 2016 07:53:24 +0000 (08:53 +0100)] 
Update geoip and geoip6 to the February 2 2016 database.

9 years agoTry to fix address tests on FreeBSD
Nick Mathewson [Mon, 1 Feb 2016 14:38:31 +0000 (09:38 -0500)] 
Try to fix address tests on FreeBSD

In jails, there is not always a localhost.

Bugfix not on any released Tor.

9 years agoTry to fix formatting in manpage
Nick Mathewson [Thu, 28 Jan 2016 16:52:48 +0000 (11:52 -0500)] 
Try to fix formatting in manpage

9 years agoAdd descriptions for --keygen to the manpage
Nick Mathewson [Thu, 28 Jan 2016 15:19:29 +0000 (10:19 -0500)] 
Add descriptions for --keygen to the manpage

Based on text from s7r

9 years agoavoid integer overflow in and around smartlist_ensure_capacity.
Nick Mathewson [Wed, 27 Jan 2016 17:26:02 +0000 (12:26 -0500)] 
avoid integer overflow in and around smartlist_ensure_capacity.

This closes bug 18162; bugfix on a45b1315909c9, which fixed a related
issue long ago.

In addition to the #18162 issues, this fixes a signed integer overflow
in smarltist_add_all(), which is probably not so great either.

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Tue, 19 Jan 2016 13:30:39 +0000 (08:30 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

9 years agoRefine the memwipe() arguments check for 18089 a little more.
Nick Mathewson [Tue, 19 Jan 2016 13:28:58 +0000 (08:28 -0500)] 
Refine the memwipe() arguments check for 18089 a little more.

We still silently ignore
     memwipe(NULL, ch, 0);
and
     memwipe(ptr, ch, 0);  /* for ptr != NULL */

But we now assert on:
     memwipe(NULL, ch, 30);

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Tue, 19 Jan 2016 01:00:16 +0000 (20:00 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

9 years agoMake memwipe() do nothing when passed a NULL pointer or zero size
teor (Tim Wilson-Brown) [Tue, 19 Jan 2016 00:22:58 +0000 (11:22 +1100)] 
Make memwipe() do nothing when passed a NULL pointer or zero size

Check size argument to memwipe() for underflow.

Closes bug #18089. Reported by "gk", patch by "teor".
Bugfix on 0.2.3.25 and 0.2.4.6-alpha (#7352),
commit 49dd5ef3 on 7 Nov 2012.

9 years agoMerge remote-tracking branch 'teor/bug18050' into maint-0.2.7
Nick Mathewson [Tue, 19 Jan 2016 00:51:57 +0000 (19:51 -0500)] 
Merge remote-tracking branch 'teor/bug18050' into maint-0.2.7

9 years agoCheck ORPort and DirPort reachability before publishing a relay descriptor
teor (Tim Wilson-Brown) [Mon, 18 Jan 2016 03:00:29 +0000 (14:00 +1100)] 
Check ORPort and DirPort reachability before publishing a relay descriptor

Otherwise, relays publish a descriptor with DirPort 0 when the DirPort
reachability test takes longer than the ORPort reachability test.

Closes bug #18050. Reported by "starlight", patch by "teor".
Bugfix on 0.1.0.1-rc, commit a1f1fa6ab on 27 Feb 2005.

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Thu, 7 Jan 2016 17:43:12 +0000 (09:43 -0800)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

 Conflicts:
src/or/config.c

9 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Thu, 7 Jan 2016 17:41:36 +0000 (09:41 -0800)] 
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 [Thu, 7 Jan 2016 17:40:23 +0000 (09:40 -0800)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

Conflicts:
src/or/config.c

9 years agoUpdate dannenberg's V3 authority identity fingerprint
teor (Tim Wilson-Brown) [Sun, 20 Dec 2015 23:40:10 +0000 (10:40 +1100)] 
Update dannenberg's V3 authority identity fingerprint

This new identity key was changed on 18 November 2015.

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Thu, 7 Jan 2016 17:14:15 +0000 (09:14 -0800)] 
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 [Thu, 7 Jan 2016 17:14:05 +0000 (09:14 -0800)] 
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 [Thu, 7 Jan 2016 17:13:54 +0000 (09:13 -0800)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

9 years agoUpdate geoip and geoip6 to the January 5 2016 database.
Karsten Loesing [Thu, 7 Jan 2016 10:10:37 +0000 (11:10 +0100)] 
Update geoip and geoip6 to the January 5 2016 database.

9 years agoRemove extraneous #endif in configure.ac
Nick Mathewson [Wed, 23 Dec 2015 01:37:02 +0000 (20:37 -0500)] 
Remove extraneous #endif in configure.ac

This will fix the detection of struct in6_addr.s6_addr32 and others

Found and fixed by cypherpunks; bug 17923; bugfix on f948caad7b5bd

10 years agoAdd some more ed25519 key files to the seccomp sandbox list
Nick Mathewson [Thu, 17 Dec 2015 19:56:24 +0000 (14:56 -0500)] 
Add some more ed25519 key files to the seccomp sandbox list

Fixes bug 17675; bugfix on 0.2.7.3-alpha.

10 years agoDon't call pthread_condattr_setclock() unless it exists
Nick Mathewson [Wed, 16 Dec 2015 14:23:44 +0000 (09:23 -0500)] 
Don't call pthread_condattr_setclock() unless it exists

Fixes bug 17819; bugfix on 0.2.6.3-alpha (specifically, d684dbb0).

10 years ago... and fix another backtrace_symbols_fd call in sandbox.c
Nick Mathewson [Wed, 16 Dec 2015 14:05:49 +0000 (09:05 -0500)] 
... and fix another backtrace_symbols_fd call in sandbox.c

10 years ago... and fix the linux backtrace_symbols{,_fd} calls
Nick Mathewson [Wed, 16 Dec 2015 13:20:53 +0000 (08:20 -0500)] 
... and fix the linux backtrace_symbols{,_fd} calls

10 years agoFix backtrace compilation on FreeBSD
cypherpunks [Tue, 15 Dec 2015 15:30:04 +0000 (16:30 +0100)] 
Fix backtrace compilation on FreeBSD

On FreeBSD backtrace(3) uses size_t instead of int (as glibc does). This
causes integer precision loss errors when we used int to store its
results.

The issue is fixed by using size_t to store the results of backtrace(3).

The manual page of glibc does not mention that backtrace(3) returns
negative values. Therefore, no unsigned integer wrapping occurs when its
result is stored in an unsigned data type.

10 years agoUse TESTS_ENVIRONMENT for older Automake versions
cypherpunks [Mon, 14 Dec 2015 20:03:10 +0000 (21:03 +0100)] 
Use TESTS_ENVIRONMENT for older Automake versions

The AM_TESTS_ENVIRONMENT variable is available since Automake v1.12 but
some distributions have older Automake versions so we use
TESTS_ENVIRONMENT.

10 years agoAdd changes file for 17818
cypherpunks [Fri, 11 Dec 2015 23:06:41 +0000 (00:06 +0100)] 
Add changes file for 17818

10 years agoUse variables instead of substitutions
cypherpunks [Fri, 11 Dec 2015 22:51:17 +0000 (23:51 +0100)] 
Use variables instead of substitutions

Using variables removes the ambiguity about when to use variables and
when to use substitutions. Variables always work. Substitutions only
work when Autoconf knows about them which is not always the case.

The variables are also placed between quotes to ensures spaces in the
variables are handled properly.

10 years agoOnly setup environment variables for tests
cypherpunks [Fri, 25 Sep 2015 14:39:11 +0000 (16:39 +0200)] 
Only setup environment variables for tests

Using the AM_TESTS_ENVIRONMENT variable ensures the environment
variables are only set during test execution and not during the
compilation phase.

10 years agobump to 0.2.7.6-dev
Nick Mathewson [Thu, 10 Dec 2015 19:24:55 +0000 (14:24 -0500)] 
bump to 0.2.7.6-dev

10 years agobump maint version to 0.2.7.6
Nick Mathewson [Thu, 10 Dec 2015 15:04:59 +0000 (10:04 -0500)] 
bump maint version to 0.2.7.6

10 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Tue, 8 Dec 2015 15:23:41 +0000 (10:23 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

10 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Tue, 8 Dec 2015 15:20:21 +0000 (10:20 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

10 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Tue, 8 Dec 2015 15:20:14 +0000 (10:20 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

10 years agoMerge branch 'bug17772_024' into maint-0.2.4
Nick Mathewson [Tue, 8 Dec 2015 15:18:31 +0000 (10:18 -0500)] 
Merge branch 'bug17772_024' into maint-0.2.4

10 years agoEnsure node is a guard candidate when picking a directory guard
Arlo Breault [Tue, 8 Dec 2015 04:28:26 +0000 (20:28 -0800)] 
Ensure node is a guard candidate when picking a directory guard

10 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Tue, 8 Dec 2015 14:43:42 +0000 (09:43 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

10 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Tue, 8 Dec 2015 14:43:25 +0000 (09:43 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

10 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Tue, 8 Dec 2015 14:38:48 +0000 (09:38 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

10 years agoFix a compilation warning introduced by clang 3.6
Nick Mathewson [Tue, 8 Dec 2015 14:37:05 +0000 (09:37 -0500)] 
Fix a compilation warning introduced by clang 3.6

There was a dead check when we made sure that an array member of a
struct was non-NULL.  Tor has been doing this check since at least
0.2.3, maybe earlier.

Fixes bug 17781.

10 years agoFormat IPv6 policies correctly.
Nick Mathewson [Tue, 8 Dec 2015 13:42:52 +0000 (08:42 -0500)] 
Format IPv6 policies correctly.

Previously we'd suppressed the mask-bits field in the output when
formatting a policy if it was >=32.  But that should be a >=128 if
we're talking about IPv6.

Since we didn't put these in descriptors, this bug affects only log
messages and controller outputs.

Fix for bug 16056.  The code in question was new in 0.2.0, but the
bug was introduced in 0.2.4 when we started supporting IPv6 exits.

10 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Mon, 7 Dec 2015 15:11:21 +0000 (10:11 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

10 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 7 Dec 2015 15:10:44 +0000 (10:10 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

10 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Mon, 7 Dec 2015 15:10:21 +0000 (10:10 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

10 years agoUpdate geoip and geoip6 to the December 1 2015 database.
Karsten Loesing [Sat, 5 Dec 2015 16:02:59 +0000 (17:02 +0100)] 
Update geoip and geoip6 to the December 1 2015 database.

10 years agoAdd changes file for 17722
cypherpunks [Sun, 29 Nov 2015 20:07:34 +0000 (21:07 +0100)] 
Add changes file for 17722

10 years agoFix undefined behavior caused by memory overlap
cypherpunks [Fri, 17 Jul 2015 09:53:12 +0000 (11:53 +0200)] 
Fix undefined behavior caused by memory overlap

The tor_cert_get_checkable_sig function uses the signing key included in
the certificate (if available) when a separate public key is not given.

When the signature is valid, the tor_cert_checksig function copies the
public key from the checkable structure to the public key field of the
certificate signing key.

In situations where the separate public key is not given but the
certificate includes a signing key, the source and destination pointers
in the copy operation are equal and invoke undefined behavior.

Undefined behaviour is avoided by ensuring both pointers are different.

10 years agoInclude netinet/in.h (if detected) in check for net/pfvar.h
Nick Mathewson [Wed, 25 Nov 2015 14:27:52 +0000 (09:27 -0500)] 
Include netinet/in.h (if detected) in check for net/pfvar.h

Patch from rubiate; fixes bug 17551.

10 years agoFix: use the right list in find_expiring_intro_point()
David Goulet [Mon, 23 Nov 2015 14:02:54 +0000 (09:02 -0500)] 
Fix: use the right list in find_expiring_intro_point()

The wrong list was used when looking up expired intro points in a rend
service object causing what we think could be reachability issues and
triggering a BUG log.

Fixes #16702

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agobump version to 0.2.7-dev
Nick Mathewson [Fri, 20 Nov 2015 15:27:35 +0000 (10:27 -0500)] 
bump version to 0.2.7-dev

10 years agoBump to 0.2.7.5
Nick Mathewson [Fri, 13 Nov 2015 13:41:30 +0000 (08:41 -0500)] 
Bump to 0.2.7.5

10 years agoNote that you can use a unix domain socket for hsport
Nick Mathewson [Wed, 21 Oct 2015 16:22:05 +0000 (12:22 -0400)] 
Note that you can use a unix domain socket for hsport