]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
11 years agoUpdate ciphers.inc to match ff28
Nick Mathewson [Tue, 8 Apr 2014 15:31:48 +0000 (11:31 -0400)] 
Update ciphers.inc to match ff28

The major changes are to re-order some ciphers, to drop the ECDH suites
(note: *not* ECDHE: ECDHE is still there), to kill off some made-up
stuff (like the SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA suite), to drop
some of the DSS suites... *and* to enable the ECDHE+GCM ciphersuites.

This change is autogenerated by get_mozilla_ciphers.py from
Firefox 28 and OpenSSL 1.0.1g.

Resolves ticket 11438.

11 years agoTeach the get_mozilla_ciphers.py script to parse recent firefoxen
Nick Mathewson [Tue, 8 Apr 2014 07:19:38 +0000 (03:19 -0400)] 
Teach the get_mozilla_ciphers.py script to parse recent firefoxen

11 years agoMerge branch 'bug9213_doc_024' into maint-0.2.4
Nick Mathewson [Wed, 2 Apr 2014 00:59:13 +0000 (20:59 -0400)] 
Merge branch 'bug9213_doc_024' into maint-0.2.4

11 years agoFix documentation of torrc search order
Nick Mathewson [Thu, 27 Mar 2014 18:58:46 +0000 (14:58 -0400)] 
Fix documentation of torrc search order

We are searching @CONFDIR@ before $HOME, but the documentation
implied otherwise.

I screwed this up in f5e86bcd6c06d43ff3af5acd8135bd8b577bc3, when I
first documented the $HOME/.torrc possibility.

Fix for bug 9213; bugfix on 0.2.3.18-rc.

11 years agowhitespace fix
Nick Mathewson [Thu, 27 Mar 2014 19:34:57 +0000 (15:34 -0400)] 
whitespace fix

11 years agoFix unittest compilation with --disable-curve25519
Nick Mathewson [Thu, 20 Mar 2014 17:52:50 +0000 (13:52 -0400)] 
Fix unittest compilation with --disable-curve25519

This is a fix for 9700, which we already fixed in 0.2.5.x, but which
got left in 0.2.4.x.

This is a partial backport of a0a855d586d99540277014ccd3

11 years agoRemove the unused router_hex_digest_matches
Nick Mathewson [Tue, 11 Mar 2014 15:17:46 +0000 (11:17 -0400)] 
Remove the unused router_hex_digest_matches

When I removed some unused functions in 5bfa373eeeb, this became
unused as well.

11 years agoCorrect the URL in the "a relay on win95???" message
Nick Mathewson [Thu, 6 Mar 2014 14:57:42 +0000 (09:57 -0500)] 
Correct the URL in the "a relay on win95???" message

This is a fix for 9393; it's not a bugfix on any Tor version per se,
but rather on whatever Tor version was current when we reorganized the
wiki.

11 years agoMerge remote-tracking branch 'public/no_itime_queue' into maint-0.2.4
Nick Mathewson [Tue, 25 Feb 2014 20:58:53 +0000 (15:58 -0500)] 
Merge remote-tracking branch 'public/no_itime_queue' into maint-0.2.4

11 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Tue, 25 Feb 2014 15:02:14 +0000 (10:02 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

11 years agoFix geoip by falling back to registered countries.
Karsten Loesing [Tue, 25 Feb 2014 12:28:34 +0000 (13:28 +0100)] 
Fix geoip by falling back to registered countries.

See 1d2179bc900f1646a5491b65294e78b175e70056 in master for details.

"""
Fall back to registered country if necessary.

When extracting geoip and geoip6 files from MaxMind's GeoLite2 Country
database, we only look at country->iso_code which is the two-character ISO
3166-1 country code of the country where MaxMind believes the end user is
located.

But if MaxMind thinks a range belongs to anonymous proxies, they don't put
anything there.  Hence, we omit those ranges and resolve them all to '??'.
That's not what we want.

What we should do is first try country->iso_code, and if there's no such
key, try registered_country->iso_code which is the country in which the
ISP has registered the IP address.

In short: let's fill all A1 entries with what ARIN et. al think.
"""

11 years agoMerge remote-tracking branch 'public/feature9777_024_squashed' into maint-0.2.4
Nick Mathewson [Mon, 24 Feb 2014 18:05:25 +0000 (13:05 -0500)] 
Merge remote-tracking branch 'public/feature9777_024_squashed' into maint-0.2.4

11 years agowhoops; mistaek in a496010642c2. so many comma
Nick Mathewson [Tue, 18 Feb 2014 01:15:59 +0000 (01:15 +0000)] 
whoops; mistaek in a496010642c2. so many comma

11 years agoadd changes file for bug 10929
Nick Mathewson [Mon, 17 Feb 2014 23:06:18 +0000 (23:06 +0000)] 
add changes file for bug 10929

11 years agoEnveigle configure to look for a2x.py as well as a2x.
dana koch [Sat, 15 Feb 2014 10:46:55 +0000 (21:46 +1100)] 
Enveigle configure to look for a2x.py as well as a2x.

It's not guaranteed that every package symlinks a2x to a2x.py; OpenBSD
does not do this, so let's just look for a2x.py as well.

11 years agoMerge remote-tracking branch 'karsten/geoip6-feb2014' into maint-0.2.4
Nick Mathewson [Sat, 15 Feb 2014 05:06:40 +0000 (00:06 -0500)] 
Merge remote-tracking branch 'karsten/geoip6-feb2014' into maint-0.2.4

11 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Sat, 15 Feb 2014 05:06:25 +0000 (00:06 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

11 years agoMerge remote-tracking branch 'karsten/geoip-feb2014' into maint-0.2.3
Nick Mathewson [Sat, 15 Feb 2014 05:06:01 +0000 (00:06 -0500)] 
Merge remote-tracking branch 'karsten/geoip-feb2014' into maint-0.2.3

11 years agochanges file for bug 10904
Nick Mathewson [Sat, 15 Feb 2014 04:51:14 +0000 (23:51 -0500)] 
changes file for bug 10904

11 years agogcc/clang: Mark macro-generated functions as possible unused
Sebastian Hahn [Thu, 13 Feb 2014 07:25:08 +0000 (08:25 +0100)] 
gcc/clang: Mark macro-generated functions as possible unused

clang 3.4 introduced a new by-default warning about unused static
functions, which we triggered heavily for the hashtable and map function
generating macros. We can use __attribute__ ((unused)) (thanks nickm for
the suggestion :-) ) to silence these warnings.

11 years agoUpdate geoip6 to the February 2014 GeoIP database.
Karsten Loesing [Thu, 13 Feb 2014 18:04:51 +0000 (19:04 +0100)] 
Update geoip6 to the February 2014 GeoIP database.

11 years agoFix windows compilation of e0c8031516852
Nick Mathewson [Wed, 12 Feb 2014 14:16:22 +0000 (09:16 -0500)] 
Fix windows compilation of e0c8031516852

There is no WSAEPERM; we were implying that there was.This fixes a
bug in e0c8031516852143fb82d8fee91a0f4c576c7418, which hadn't yet
appeared in any released Tor.

11 years agoMerge branch 'bug10777_netunreach_024' into maint-0.2.4
Nick Mathewson [Tue, 11 Feb 2014 23:57:55 +0000 (18:57 -0500)] 
Merge branch 'bug10777_netunreach_024' into maint-0.2.4

11 years agoupdate changes file
Nick Mathewson [Tue, 11 Feb 2014 23:57:38 +0000 (18:57 -0500)] 
update changes file

11 years agoMerge remote-tracking branch 'public/bug10777_nointernal_024' into maint-0.2.4
Nick Mathewson [Tue, 11 Feb 2014 23:55:26 +0000 (18:55 -0500)] 
Merge remote-tracking branch 'public/bug10777_nointernal_024' into maint-0.2.4

11 years agomake EACCES survivable too.
Nick Mathewson [Mon, 10 Feb 2014 20:06:10 +0000 (15:06 -0500)] 
make EACCES survivable too.

11 years agoExcise the insertion_time_elem_t logic
Nick Mathewson [Mon, 10 Feb 2014 18:55:27 +0000 (13:55 -0500)] 
Excise the insertion_time_elem_t logic

It's now redundant with the inserted_time field in packed_cell_t

Fixes bug 10870.

11 years agoMerge remote-tracking branch 'andrea/bug9602' into maint-0.2.4
Nick Mathewson [Mon, 10 Feb 2014 02:41:24 +0000 (21:41 -0500)] 
Merge remote-tracking branch 'andrea/bug9602' into maint-0.2.4

11 years agoDon't treat END_STREAM_REASON_INTERNAL as total circuit failure
Nick Mathewson [Mon, 10 Feb 2014 02:35:14 +0000 (21:35 -0500)] 
Don't treat END_STREAM_REASON_INTERNAL as total circuit failure

It can happen because we sent something that got an ENETUNREACH
response.

Bugfix on 0.2.4.8-alpha; fixes a part of bug 10777.

11 years agoCall ENETUNREACH a case of NOROUTE, not a case of INTERNAL.
Nick Mathewson [Mon, 10 Feb 2014 02:30:23 +0000 (21:30 -0500)] 
Call ENETUNREACH a case of NOROUTE, not a case of INTERNAL.

Found by cypherpunks; fix for a part of bug 10777; bugfix on 0.1.0.1-rc.

11 years agoMake sure orconn->chan gets nulled out when channels exit from channel_free_all(...
Andrea Shepard [Sat, 8 Feb 2014 22:05:51 +0000 (14:05 -0800)] 
Make sure orconn->chan gets nulled out when channels exit from channel_free_all() too

11 years agoUpdate to the February 2014 GeoIP database.
Karsten Loesing [Sat, 8 Feb 2014 11:09:37 +0000 (12:09 +0100)] 
Update to the February 2014 GeoIP database.

11 years agoSurvive fedora's openssl in our benchmarks
Nick Mathewson [Fri, 7 Feb 2014 22:36:11 +0000 (17:36 -0500)] 
Survive fedora's openssl in our benchmarks

Apparently fedora currently has ECDH but not P224. This isn't a huge
deal, since we no longer use OpenSSL's P224 ever (see #9780 and
72c1e5acfe1c6). But we shouldn't have segfaulting benchmarks really.

Fixes bug 10835; bugfix on 0.2.4.8-alpha.

11 years agoDiscard circuit paths on which nobody supports ntor
Nick Mathewson [Thu, 6 Feb 2014 22:08:50 +0000 (17:08 -0500)] 
Discard circuit paths on which nobody supports ntor

Right now this accounts for about 1% of circuits over all, but if you
pick a guard that's running 0.2.3, it will be about 6% of the circuits
running through that guard.

Making sure that every circuit has at least one ntor link means that
we're getting plausibly good forward secrecy on every circuit.

This implements ticket 9777,

11 years agoAttribute bug 9602 to a version.
Nick Mathewson [Fri, 7 Feb 2014 15:38:00 +0000 (10:38 -0500)] 
Attribute bug 9602 to a version.

11 years agoNULL out conns on tlschans when freeing in case channel_run_cleanup() is late; fixes...
Andrea Shepard [Thu, 6 Feb 2014 22:47:34 +0000 (14:47 -0800)] 
NULL out conns on tlschans when freeing in case channel_run_cleanup() is late; fixes bug 9602

11 years agoMerge remote-tracking branch 'public/bug9716_024' into maint-0.2.4
Nick Mathewson [Thu, 6 Feb 2014 21:29:08 +0000 (16:29 -0500)] 
Merge remote-tracking branch 'public/bug9716_024' into maint-0.2.4

11 years agochangelog for 10793
Nick Mathewson [Mon, 3 Feb 2014 15:47:49 +0000 (10:47 -0500)] 
changelog for 10793

11 years agoSome anti-forensics paranoia...
Florent Daigniere [Sun, 2 Feb 2014 18:40:30 +0000 (18:40 +0000)] 
Some anti-forensics paranoia...

sed -i 's/BN_free/BN_clear_free/g'

11 years agoAdd a missing include
Nick Mathewson [Thu, 6 Feb 2014 18:25:36 +0000 (13:25 -0500)] 
Add a missing include

11 years agoMerge branch 'bug10485_024' into maint-0.2.4
Nick Mathewson [Thu, 6 Feb 2014 18:24:12 +0000 (13:24 -0500)] 
Merge branch 'bug10485_024' into maint-0.2.4

11 years agoDeliver circuit handshake counts as part of the heartbeat
Nick Mathewson [Thu, 6 Feb 2014 18:03:01 +0000 (13:03 -0500)] 
Deliver circuit handshake counts as part of the heartbeat

Previously, they went out once an hour, unconditionally.

Fixes 10485; bugfix on 0.2.4.17-rc.

11 years agoClarify DirPort multiplicity
Nick Mathewson [Tue, 24 Dec 2013 00:00:46 +0000 (19:00 -0500)] 
Clarify DirPort multiplicity

Fix for #10470 as suggested by arma

11 years agoMerge branch 'bug10465' into maint-0.2.4
Nick Mathewson [Sun, 22 Dec 2013 22:20:22 +0000 (17:20 -0500)] 
Merge branch 'bug10465' into maint-0.2.4

11 years agoFix automapping to ipv6
Nick Mathewson [Sun, 22 Dec 2013 13:38:36 +0000 (08:38 -0500)] 
Fix automapping to ipv6

Bugfix on 0.2.4.7-alpha; fixes bug 10465.

11 years agoMerge branch 'bug10456' into maint-0.2.4
Nick Mathewson [Sun, 22 Dec 2013 02:15:39 +0000 (21:15 -0500)] 
Merge branch 'bug10456' into maint-0.2.4

11 years agoFix a logic error in circuit_stream_is_being_handled.
Nick Mathewson [Sat, 21 Dec 2013 15:15:09 +0000 (10:15 -0500)] 
Fix a logic error in circuit_stream_is_being_handled.

When I introduced the unusable_for_new_circuits flag in
62fb209d837f3f551, I had a spurious ! in the
circuit_stream_is_being_handled loop.  This made us decide that
non-unusable circuits (that is, usable ones) were the ones to avoid,
and caused it to launch a bunch of extra circuits.

Fixes bug 10456; bugfix on 0.2.4.12-alpha.

11 years agoMerge branch 'bug10402_redux_024' into maint-0.2.4
Nick Mathewson [Thu, 19 Dec 2013 02:55:06 +0000 (21:55 -0500)] 
Merge branch 'bug10402_redux_024' into maint-0.2.4

11 years agoNever allow OpenSSL engines to replace the RAND_SSLeay method
Nick Mathewson [Wed, 18 Dec 2013 16:49:44 +0000 (11:49 -0500)] 
Never allow OpenSSL engines to replace the RAND_SSLeay method

This fixes bug 10402, where the rdrand engine would use the rdrand
instruction, not as an additional entropy source, but as a replacement
for the entire userspace PRNG.  That's obviously stupid: even if you
don't think that RDRAND is a likely security risk, the right response
to an alleged new alleged entropy source is never to throw away all
previously used entropy sources.

Thanks to coderman and rl1987 for diagnosing and tracking this down.

11 years agoMerge branch 'bug10423' into maint-0.2.4
Nick Mathewson [Tue, 17 Dec 2013 18:53:11 +0000 (13:53 -0500)] 
Merge branch 'bug10423' into maint-0.2.4

11 years agoMerge remote-tracking branch 'public/bug10409_023' into maint-0.2.4
Nick Mathewson [Tue, 17 Dec 2013 18:15:45 +0000 (13:15 -0500)] 
Merge remote-tracking branch 'public/bug10409_023' into maint-0.2.4

11 years agoAvoid double-free on failure to dump_descriptor() a cached md
Nick Mathewson [Tue, 17 Dec 2013 18:12:52 +0000 (13:12 -0500)] 
Avoid double-free on failure to dump_descriptor() a cached md

This is a fix for 10423, which was introducd in caa0d15c in 0.2.4.13-alpha.

Spotted by bobnomnom.

11 years agoAvoid free()ing from an mmap on corrupted microdesc cache
Nick Mathewson [Mon, 16 Dec 2013 18:00:15 +0000 (13:00 -0500)] 
Avoid free()ing from an mmap on corrupted microdesc cache

The 'body' field of a microdesc_t holds a strdup()'d value if the
microdesc's saved_location field is SAVED_IN_JOURNAL or
SAVED_NOWHERE, and holds a pointer to the middle of an mmap if the
microdesc is SAVED_IN_CACHE.  But we weren't setting that field
until a while after we parsed the microdescriptor, which left an
interval where microdesc_free() would try to free() the middle of
the mmap().

This patch also includes a regression test.

This is a fix for #10409; bugfix on 0.2.2.6-alpha.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Fri, 15 Nov 2013 20:29:24 +0000 (15:29 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

Conflicts:
src/or/or.h
src/or/relay.c

Conflicts were simple to resolve.  More fixes were needed for
compilation, including: reinstating the tv_to_msec function, and renaming
*_conn_cells to *_chan_cells.

12 years agoMerge branch 'bug9093_023' into maint-0.2.3
Nick Mathewson [Fri, 15 Nov 2013 20:23:51 +0000 (15:23 -0500)] 
Merge branch 'bug9093_023' into maint-0.2.3

12 years agomissing changes file for #10124
Nick Mathewson [Mon, 11 Nov 2013 15:49:44 +0000 (10:49 -0500)] 
missing changes file for #10124

12 years agoFix two more DirServer mentions in log
Nick Mathewson [Sun, 10 Nov 2013 17:23:56 +0000 (12:23 -0500)] 
Fix two more DirServer mentions in log

12 years agoFix a wide line
Nick Mathewson [Sun, 10 Nov 2013 17:22:34 +0000 (12:22 -0500)] 
Fix a wide line

12 years agoChange documentation DirServer->DirAuthority
Nick Mathewson [Sun, 10 Nov 2013 17:21:23 +0000 (12:21 -0500)] 
Change documentation DirServer->DirAuthority

We renamed the option, but we didn't actually fix it in the log
messages or the docs.  This patch does that.

For #10124.  Patch by sqrt2.

12 years agoImproved circuit queue out-of-memory handler
Nick Mathewson [Thu, 7 Nov 2013 17:15:30 +0000 (12:15 -0500)] 
Improved circuit queue out-of-memory handler

Previously, when we ran low on memory, we'd close whichever circuits
had the most queued cells. Now, we close those that have the
*oldest* queued cells, on the theory that those are most responsible
for us running low on memory, and that those are the least likely to
actually drain on their own if we wait a little longer.

Based on analysis from a forthcoming paper by Jansen, Tschorsch,
Johnson, and Scheuermann. Fixes bug 9093.

12 years agoMerge remote-tracking branch 'public/bug9645' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 20:09:41 +0000 (16:09 -0400)] 
Merge remote-tracking branch 'public/bug9645' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9731b' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 18:08:28 +0000 (14:08 -0400)] 
Merge remote-tracking branch 'public/bug9731b' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9780_024_v2' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 18:02:28 +0000 (14:02 -0400)] 
Merge remote-tracking branch 'public/bug9780_024_v2' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug6055_v2_024' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 17:14:39 +0000 (13:14 -0400)] 
Merge remote-tracking branch 'public/bug6055_v2_024' into maint-0.2.4

12 years agobe willing to bootstrap from all three of our directory guards
Roger Dingledine [Fri, 11 Oct 2013 00:09:16 +0000 (20:09 -0400)] 
be willing to bootstrap from all three of our directory guards

Also fix a bug where if the guard we choose first doesn't answer, we
would try the second guard, but once we connected to the second guard
we would abandon it and retry the first one, slowing down bootstrapping.

The fix in both cases is to treat all our initially chosen guards as
acceptable to use.

Fixes bug 9946.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Fri, 11 Oct 2013 15:16:59 +0000 (11:16 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Fri, 11 Oct 2013 15:16:45 +0000 (11:16 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the October 2013 GeoIP database. maint-0.2.2
Karsten Loesing [Fri, 11 Oct 2013 11:36:30 +0000 (13:36 +0200)] 
Update to the October 2013 GeoIP database.

12 years agorewrite history to improve two changelog entries
Roger Dingledine [Fri, 11 Oct 2013 01:17:19 +0000 (21:17 -0400)] 
rewrite history to improve two changelog entries

12 years agoMerge branch 'bug9644_024' into maint-0.2.4
Nick Mathewson [Thu, 10 Oct 2013 15:23:46 +0000 (11:23 -0400)] 
Merge branch 'bug9644_024' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Thu, 10 Oct 2013 15:18:07 +0000 (11:18 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoFix unit test for format_helper_exit_status
Nick Mathewson [Thu, 10 Oct 2013 15:15:35 +0000 (11:15 -0400)] 
Fix unit test for format_helper_exit_status

Fix format_helper_exit_status to allow full HEX_ERRNO_SIZE answers,
*and* increase the buffer length again.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Thu, 10 Oct 2013 14:55:24 +0000 (10:55 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9928' into maint-0.2.3
Nick Mathewson [Thu, 10 Oct 2013 14:53:27 +0000 (10:53 -0400)] 
Merge remote-tracking branch 'public/bug9928' into maint-0.2.3

12 years agoPartially revert "Clarify who learns about ContactInfo."
Nick Mathewson [Wed, 9 Oct 2013 16:02:53 +0000 (12:02 -0400)] 
Partially revert "Clarify who learns about ContactInfo."

This reverts the torrc.sample.in changes from commit
66a04a6ac334775dc396025e0c15fa49eca138a7.

We're going to not make this change in 0.2.4, since changing
torrc.sample.in makes all the debian users do some pointless
busywork. see tor-dev discusion of 9 Oct 2013.

12 years agoChanges file for 9854
Nick Mathewson [Wed, 9 Oct 2013 13:43:54 +0000 (09:43 -0400)] 
Changes file for 9854

12 years agoClarify who learns about ContactInfo.
Karsten Loesing [Wed, 9 Oct 2013 10:01:45 +0000 (12:01 +0200)] 
Clarify who learns about ContactInfo.

Explicitly include bridges, and note that we archive and publish all
descriptors.

(We are not yet publishing ContactInfo lines contained in bridge
descriptors, but maybe we'll want to do that soon, so let's err on the
side of caution here.)

Related to #9854.

12 years agoWhen examining interfaces to find an address, discard non-up ones.
Nick Mathewson [Tue, 8 Oct 2013 20:46:29 +0000 (16:46 -0400)] 
When examining interfaces to find an address, discard non-up ones.

Patch from "hantwister" on trac. Fixes bug #9904; bugfix on
0.2.3.11-alpha.

12 years agoSwitch ECDHE group default logic for bridge/relay TLS
Nick Mathewson [Thu, 19 Sep 2013 14:40:41 +0000 (10:40 -0400)] 
Switch ECDHE group default logic for bridge/relay TLS

According to the manpage, bridges use P256 for conformity and relays
use P224 for speed. But skruffy points out that we've gotten it
backwards in the code.

In this patch, we make the default P256 for everybody.

Fixes bug 9780; bugfix on 0.2.4.8-alpha.

12 years agoChanges file for 9866
Nick Mathewson [Mon, 7 Oct 2013 15:32:06 +0000 (11:32 -0400)] 
Changes file for 9866

12 years agoAnchors for options (re#9866)
Peter Palfrader [Wed, 2 Oct 2013 20:27:27 +0000 (22:27 +0200)] 
Anchors for options (re#9866)

12 years agoMerge remote-tracking branch 'public/bug9927' into maint-0.2.4
Nick Mathewson [Tue, 8 Oct 2013 17:37:13 +0000 (13:37 -0400)] 
Merge remote-tracking branch 'public/bug9927' into maint-0.2.4

12 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Tue, 8 Oct 2013 16:16:42 +0000 (12:16 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

12 years agoMerge remote-tracking branch 'public/bug9596' into maint-0.2.4
Nick Mathewson [Tue, 8 Oct 2013 16:10:47 +0000 (12:10 -0400)] 
Merge remote-tracking branch 'public/bug9596' into maint-0.2.4

12 years agoGive credit to bug reporter for 9928
Nick Mathewson [Tue, 8 Oct 2013 16:06:06 +0000 (12:06 -0400)] 
Give credit to bug reporter for 9928

12 years agoGenerate bootstrapping status messages for microdescs too
Nick Mathewson [Tue, 8 Oct 2013 15:31:08 +0000 (11:31 -0400)] 
Generate bootstrapping status messages for microdescs too

Fix for 9927.

12 years agoRaise buffer size, fix checks for format_exit_helper_status.
Nick Mathewson [Tue, 8 Oct 2013 15:13:21 +0000 (11:13 -0400)] 
Raise buffer size, fix checks for format_exit_helper_status.

This is probably not an exploitable bug, since you would need to have
errno be a large negative value in the unix pluggable-transport launcher
case.  Still, best avoided.

Fixes bug 9928; bugfix on 0.2.3.18-rc.

12 years agoMerge branch 'bug9880_fix' into maint-0.2.4
Nick Mathewson [Thu, 3 Oct 2013 02:39:27 +0000 (22:39 -0400)] 
Merge branch 'bug9880_fix' into maint-0.2.4

12 years agoFix a bug in our bug 9776 fix.
Nick Mathewson [Thu, 3 Oct 2013 01:42:24 +0000 (21:42 -0400)] 
Fix a bug in our bug 9776 fix.

By calling circuit_n_chan_done() unconditionally on close, we were
closing pending connections that might not have been pending quite for
the connection we were closing.  Fix for bug 9880.

Thanks to skruffy for finding this and explaining it patiently until
we understood.

12 years agoRe-enable TLS 1.[12] when building with OpenSSL >= 1.0.1e
Nick Mathewson [Wed, 14 Aug 2013 03:43:39 +0000 (23:43 -0400)] 
Re-enable TLS 1.[12] when building with OpenSSL >= 1.0.1e

To fix #6033, we disabled TLS 1.1 and 1.2.  Eventually, OpenSSL fixed
the bug behind #6033.

I've considered alternate implementations that do more testing to see
if there's secretly an OpenSSL 1.0.1c or something that secretly has a
backport of the OpenSSL 1.0.1e fix, and decided against it on the
grounds of complexity.

12 years agoAlways call circuit_n_chan_done(chan, 0) from channel_closed()
Andrea Shepard [Mon, 23 Sep 2013 16:37:26 +0000 (09:37 -0700)] 
Always call circuit_n_chan_done(chan, 0) from channel_closed()

12 years agoFix a compilation warning with older gcc
Nick Mathewson [Mon, 23 Sep 2013 05:47:52 +0000 (01:47 -0400)] 
Fix a compilation warning with older gcc

12 years agoRelays should send timestamp in NETINFO.
Nick Mathewson [Sat, 21 Sep 2013 12:52:27 +0000 (08:52 -0400)] 
Relays should send timestamp in NETINFO.

This avoids skew warnings as authorities test reachability.

Fix 9798; fix not on any released Tor.

12 years agoback out most of 1d0ba9a
Roger Dingledine [Sat, 21 Sep 2013 06:11:51 +0000 (02:11 -0400)] 
back out most of 1d0ba9a

this was causing directory authorities to send a time of 0 on all
connections they generated themselves, which means everybody reachability
test caused a time skew warning in the log for that relay.

(i didn't just revert, because the changes file has been modified by
other later commits.)

12 years agoMerge branch 'no_client_timestamps_024_v2' into maint-0.2.4
Nick Mathewson [Fri, 20 Sep 2013 15:00:43 +0000 (11:00 -0400)] 
Merge branch 'no_client_timestamps_024_v2' into maint-0.2.4

12 years agoAvoid error by not saying which intro cell type I mean
Nick Mathewson [Fri, 20 Sep 2013 15:00:04 +0000 (11:00 -0400)] 
Avoid error by not saying which intro cell type I mean

12 years agoRound down hidden service descriptor publication times to nearest hour
Nick Mathewson [Wed, 18 Sep 2013 15:09:34 +0000 (11:09 -0400)] 
Round down hidden service descriptor publication times to nearest hour

Implements part of proposal 222.  We can do this safely, since
REND_CACHE_MAX_SKEW is 24 hours.

12 years agoRemove the timestamp from AUTHENTICATE cells; replace with random bytes
Nick Mathewson [Wed, 18 Sep 2013 14:51:04 +0000 (10:51 -0400)] 
Remove the timestamp from AUTHENTICATE cells; replace with random bytes

This isn't actually much of an issue, since only relays send
AUTHENTICATE cells, but while we're removing timestamps, we might as
well do this too.

Part of proposal 222.  I didn't take the approach in the proposal of
using a time-based HMAC, since that was a bad-prng-mitigation hack
from SSL3, and in real life, if you don't have a good RNG, you're
hopeless as a Tor server.

12 years agoGet ready to stop sending timestamps in INTRODUCE cells
Nick Mathewson [Tue, 17 Sep 2013 22:05:48 +0000 (18:05 -0400)] 
Get ready to stop sending timestamps in INTRODUCE cells

For now, round down to the nearest 10 minutes.  Later, eliminate entirely by
setting a consensus parameter.

(This rounding is safe because, in 0.2.2, where the timestamp mattered,
REND_REPLAY_TIME_INTERVAL was a nice generous 60 minutes.)

12 years agoStop sending the current time in client NETINFO handshakes.
Nick Mathewson [Tue, 17 Sep 2013 21:55:43 +0000 (17:55 -0400)] 
Stop sending the current time in client NETINFO handshakes.

Implements part of proposal 222.