]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Tue, 26 May 2015 16:09:53 +0000 (12:09 -0400)]
Use accessor functions for client_random/server_random/master_key
If OpenSSL accepts my patch to introduce these functions, they'll
be a way to help Tor work with OpenSSL 1.1.
Nick Mathewson [Tue, 26 May 2015 15:05:36 +0000 (11:05 -0400)]
Stop looking at session->ciphers when possible
If the OpenSSL team accepts my patch to add an
SSL_get_client_ciphers function, this patch will make Tor use it
when available, thereby working better with openssl 1.1.
Nick Mathewson [Tue, 26 May 2015 14:56:54 +0000 (10:56 -0400)]
Remove rectify_client_ciphers as needless.
We previously used this function instead of SSL_set_cipher_list() to
set up a stack of client SSL_CIPHERs for these reasons:
A) In order to force a particular order of the results.
B) In order to be able to include dummy entries for ciphers that
this build of openssl did not support, so we could impersonate
Firefox harder.
But we no longer do B, since we merged proposal 198 and stopped
lying about what ciphers we know.
And A was actually pointless, since I had misread the implementation
of SSL_set_cipher_list(). It _does_ do some internal sorting, but
that is pre-sorting on the master list of ciphers, not sorting on
the user's preferred order.
Nick Mathewson [Fri, 22 May 2015 14:22:11 +0000 (10:22 -0400)]
Revert "Try using SSL_get_ciphers in place of session->ciphers"
This reverts commit
67964cfa787461bc56380fe46439fd5c9863bb4f .
It was the cause of #16153, and was not in any released Tor. We need
a better solution for getting session->ciphers.
Nick Mathewson [Thu, 14 May 2015 14:24:02 +0000 (10:24 -0400)]
Stop poking SSL_CTX->comp_methods
Nick Mathewson [Thu, 14 May 2015 14:17:37 +0000 (10:17 -0400)]
Use SSL_CIPHER accessor functions
Nick Mathewson [Thu, 14 May 2015 14:14:06 +0000 (10:14 -0400)]
Use SSL_CIPHER_find where possible.
Nick Mathewson [Thu, 14 May 2015 12:42:08 +0000 (08:42 -0400)]
Try using SSL_get_ciphers in place of session->ciphers
This should help openssl 1.1. On pre-1.1, we double-check that these
two methods give us the same list, since the underlying code is awfully
hairy.
Nick Mathewson [Wed, 13 May 2015 16:38:17 +0000 (12:38 -0400)]
Tweak rectify_client_ciphers to work with openssl 1.1
The key here is to never touch ssl->cipher_list directly, but only
via SSL_get_ciphers(). But it's not so simple.
See, if there is no specialized cipher_list on the SSL object,
SSL_get_ciphers returns the cipher_list on the SSL_CTX. But we sure
don't want to modify that one! So we need to use
SSL_set_cipher_list first to make sure that we really have a cipher
list on the SSL object.
Nick Mathewson [Wed, 13 May 2015 16:12:53 +0000 (12:12 -0400)]
tor_tls_get_buffer_sizes() will not work on openssl 1.1. Patch from yawning
Nick Mathewson [Wed, 13 May 2015 15:29:33 +0000 (11:29 -0400)]
Use SSL_state() to inspect the state of SSL objects.
Nick Mathewson [Wed, 13 May 2015 15:24:47 +0000 (11:24 -0400)]
Use SSL_clear_mode where available.
Nick Mathewson [Wed, 13 May 2015 15:21:38 +0000 (11:21 -0400)]
SSL_clear_mode exists; we can use it.
Nick Mathewson [Wed, 13 May 2015 15:19:19 +0000 (11:19 -0400)]
Stop accessing 'ssl->s3->flags' when we are using openssl 1.1
This field was only needed to work with the now-long-gone (I hope,
except for some horrible apples) openssl 0.9.8l; if your headers say
you have openssl 1.1, you won't even need it.
Yawning Angel [Thu, 23 Apr 2015 10:56:31 +0000 (10:56 +0000)]
ERR_remove_state() is deprecated since OpenSSL 1.0.0.
OpenSSL 1.1.0 must be built with "enable-deprecated", and compiled with
`OPENSSL_USE_DEPRECATED` for this to work, so instead, use the newer
routine as appropriate.
Nick Mathewson [Wed, 13 May 2015 15:05:33 +0000 (11:05 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Wed, 13 May 2015 15:03:05 +0000 (11:03 -0400)]
Merge branch 'bug15823_025' into maint-0.2.5
John Brooks [Sun, 26 Apr 2015 04:52:35 +0000 (22:52 -0600)]
Fix out-of-bounds read in INTRODUCE2 client auth
The length of auth_data from an INTRODUCE2 cell is checked when the
auth_type is recognized (1 or 2), but not for any other non-zero
auth_type. Later, auth_data is assumed to have at least
REND_DESC_COOKIE_LEN bytes, leading to a client-triggered out of bounds
read.
Fixed by checking auth_len before comparing the descriptor cookie
against known clients.
Fixes #15823; bugfix on 0.2.1.6-alpha.
David Goulet [Tue, 28 Apr 2015 18:22:49 +0000 (14:22 -0400)]
Revert "Remove obsolete workaround in dirserv_thinks_router_is_hs_dir()"
Fixes #15850, part of #15801. Change file is added by this commit. The
original comment in the reverted commit is removed because right now we
*need* a DirPort until #15849 is implemented so no doubt nor confusion there
anymore.
This reverts commit
80bed1ac96a3035f8c55ddced5528f0d7d16d386 .
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Mon, 27 Apr 2015 18:18:16 +0000 (14:18 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 27 Apr 2015 18:16:55 +0000 (14:16 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Mon, 27 Apr 2015 18:15:58 +0000 (14:15 -0400)]
Merge remote-tracking branch 'karsten/geoip6-apr2015' into maint-0.2.4
Nick Mathewson [Mon, 27 Apr 2015 18:15:44 +0000 (14:15 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Karsten Loesing [Fri, 24 Apr 2015 15:51:36 +0000 (17:51 +0200)]
Update geoip6 to the April 8 2015 database.
Karsten Loesing [Fri, 24 Apr 2015 15:49:45 +0000 (17:49 +0200)]
Update geoip to the April 8 2015 database.
Nick Mathewson [Mon, 6 Apr 2015 14:01:16 +0000 (10:01 -0400)]
bump version to 0.2.6.7-dev
Nick Mathewson [Mon, 6 Apr 2015 14:00:30 +0000 (10:00 -0400)]
bump version to 0.2.6.7
Nick Mathewson [Mon, 6 Apr 2015 13:59:06 +0000 (09:59 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 6 Apr 2015 13:56:37 +0000 (09:56 -0400)]
bump 0.2.5 version to 0.2.5.12
Nick Mathewson [Mon, 6 Apr 2015 13:55:44 +0000 (09:55 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Mon, 6 Apr 2015 13:48:53 +0000 (09:48 -0400)]
Bump 0.2.4 version more places
Nick Mathewson [Mon, 6 Apr 2015 13:41:59 +0000 (09:41 -0400)]
Bump 0.2.4 version
Nick Mathewson [Mon, 6 Apr 2015 13:26:16 +0000 (09:26 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 6 Apr 2015 13:25:37 +0000 (09:25 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Mon, 6 Apr 2015 13:24:16 +0000 (09:24 -0400)]
Changes file for bug15601
Yawning Angel [Thu, 2 Apr 2015 12:42:06 +0000 (12:42 +0000)]
Handle empty/zero length encoded intro points more gracefully.
In theory these should never the triggered as the only caller now
validates the parameters before this routine gets called.
Yawning Angel [Thu, 2 Apr 2015 12:36:19 +0000 (12:36 +0000)]
Treat empty introduction points sections as missing.
Found by DonnchaC.
Yawning Angel [Mon, 30 Mar 2015 21:53:39 +0000 (21:53 +0000)]
Validate the RSA key size received when parsing INTRODUCE2 cells.
Fixes bug 15600; reported by skruffy
George Kadianakis [Thu, 2 Apr 2015 14:58:33 +0000 (15:58 +0100)]
Decrease the amount of rend circ relaunches for hidden services.
Nick Mathewson [Fri, 3 Apr 2015 13:39:19 +0000 (09:39 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Fri, 3 Apr 2015 13:38:54 +0000 (09:38 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Fri, 3 Apr 2015 13:36:59 +0000 (09:36 -0400)]
Merge branch 'bug15515_024' into maint-0.2.4
George Kadianakis [Thu, 2 Apr 2015 12:38:52 +0000 (13:38 +0100)]
... and if we do get multiple INTRODUCE1s on a circuit, kill the circuit
(Sending a nak would be pointless.)
See ticket 15515 for discussion.
George Kadianakis [Wed, 1 Apr 2015 13:33:09 +0000 (14:33 +0100)]
Block multiple introductions on the same intro circuit.
Nick Mathewson [Wed, 25 Mar 2015 18:09:23 +0000 (14:09 -0400)]
Bump to 0.2.6.6-dev
Nick Mathewson [Tue, 24 Mar 2015 14:23:34 +0000 (10:23 -0400)]
bump to 0.2.6.6
Nick Mathewson [Mon, 23 Mar 2015 13:25:15 +0000 (09:25 -0400)]
Merge remote-tracking branch 'public/bug15436_025' into maint-0.2.6
Yawning Angel [Sun, 22 Mar 2015 22:31:08 +0000 (22:31 +0000)]
Fix unaligned access in SipHash-2-4.
The compiler is allowed to assume that a "uint64_t *" is aligned
correctly, and will inline a version of memcpy that acts as such.
Use "uint8_t *", so the compiler does the right thing.
Nick Mathewson [Wed, 18 Mar 2015 20:32:13 +0000 (16:32 -0400)]
bump to 0.2.6.5-rc.dev
Nick Mathewson [Wed, 18 Mar 2015 13:10:48 +0000 (09:10 -0400)]
bump to 0.2.6.5-rc
Nick Mathewson [Sat, 14 Mar 2015 18:30:08 +0000 (14:30 -0400)]
Simplify the loop.
Nick Mathewson [Sat, 14 Mar 2015 18:27:33 +0000 (14:27 -0400)]
Add comments for new functions
Nick Mathewson [Sat, 14 Mar 2015 18:25:37 +0000 (14:25 -0400)]
remove a needless "if (1)" that was there for indentation; fix indentation.
Nick Mathewson [Sat, 14 Mar 2015 18:24:18 +0000 (14:24 -0400)]
Extract main part of main loop into a separate function
For 15176; Shadow would like this.
Based on a patch by Rob Jansen, but revised to have a minimal-sized diff.
Nick Mathewson [Thu, 12 Mar 2015 17:15:08 +0000 (13:15 -0400)]
Merge remote-tracking branch 'public/feature15212_026' into maint-0.2.6
Yawning Angel [Thu, 12 Mar 2015 15:37:48 +0000 (15:37 +0000)]
Initialize the extorport auth cookie before launching PTs.
PTs expect the auth cookie to be available immedieately after launch,
leading to a race condition when PTs opt to cache the extorport cookie
once immediately after startup.
Fixes #15240.
Nick Mathewson [Thu, 12 Mar 2015 16:50:41 +0000 (12:50 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
("-s ours" merge to avoid taking reversion of #15064)
Nick Mathewson [Thu, 12 Mar 2015 16:49:08 +0000 (12:49 -0400)]
Revert "Make TransProxyType ipfw work correctly"
This reverts commit
681802817deb6fb93b95f8284856fd42f3556600 .
(I didn't mean to backport this, but somehow I had based my branch
for #15205 on it.)
Nick Mathewson [Thu, 12 Mar 2015 16:27:42 +0000 (12:27 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Thu, 12 Mar 2015 16:27:25 +0000 (12:27 -0400)]
Merge remote-tracking branch 'public/bug15205_025' into maint-0.2.5
Nick Mathewson [Thu, 12 Mar 2015 15:37:02 +0000 (11:37 -0400)]
Merge branch 'bug15245_026' into maint-0.2.6
Nick Mathewson [Thu, 12 Mar 2015 15:28:18 +0000 (11:28 -0400)]
add an explanatory comment
Nick Mathewson [Thu, 12 Mar 2015 15:15:50 +0000 (11:15 -0400)]
Also, add an assertion to assign_onionskin_to_cpuworker
Nick Mathewson [Thu, 12 Mar 2015 15:13:57 +0000 (11:13 -0400)]
Fix crash bug when calling cpuworkers_rotate_keyinfo on a client.
Fixes bug 15245; bugfix on 0.2.6.3-alpha. Thanks to anonym for reporting!
Nick Mathewson [Thu, 12 Mar 2015 14:54:13 +0000 (10:54 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Thu, 12 Mar 2015 14:52:09 +0000 (10:52 -0400)]
Bump 025 version to 0.2.5.11
Nick Mathewson [Thu, 12 Mar 2015 14:51:08 +0000 (10:51 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Thu, 12 Mar 2015 14:50:15 +0000 (10:50 -0400)]
Bump 0.2.4 version.
Nick Mathewson [Thu, 12 Mar 2015 14:05:06 +0000 (10:05 -0400)]
Merge branch 'bug9495_redux_v2' into maint-0.2.6
Nick Mathewson [Thu, 12 Mar 2015 13:49:45 +0000 (09:49 -0400)]
Use PTHREAD_CREATE_DETACHED macro instead of 1: fix Solaris crash
When calling pthread_attr_setdetachstate, we were using 1 as the
argument. But the pthreads documentation says that you have to say
PTHREAD_CREATE_DETACH, which on Solaris is apparently 0x40. Calling
pthread_attr_setdetachstate with 1 crashes on Solaris with FLTBOUNDS.
(Because we're so late in the release cycle, I made the code define
PTHREAD_CREATE_DETACHED if it doesn't exist, so we aren't likely to
break any other platforms.)
This bug was introduced when we made threading mandatory in
0.2.6.1-alpha; previously, we had force-disabled threading on
Solaris. See #9495 discussion.
Nick Mathewson [Tue, 10 Mar 2015 14:10:35 +0000 (10:10 -0400)]
Fix check-spaces
Nick Mathewson [Tue, 10 Mar 2015 14:07:41 +0000 (10:07 -0400)]
Add link protocol version counts to the heartbeat message
Closes ticket 15212
Nick Mathewson [Tue, 10 Mar 2015 12:20:47 +0000 (08:20 -0400)]
bump 0.2.6 to 0.2.6.4-rc-dev
Nick Mathewson [Mon, 9 Mar 2015 23:47:12 +0000 (19:47 -0400)]
Merge remote-tracking branch 'public/bug15205_025' into maint-0.2.6
Nick Mathewson [Mon, 9 Mar 2015 20:25:11 +0000 (16:25 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 9 Mar 2015 20:24:44 +0000 (16:24 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Mon, 9 Mar 2015 20:24:07 +0000 (16:24 -0400)]
Merge remote-tracking branch 'karsten/geoip6-mar2015' into maint-0.2.4
Nick Mathewson [Mon, 9 Mar 2015 20:23:55 +0000 (16:23 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Karsten Loesing [Mon, 9 Mar 2015 20:11:52 +0000 (21:11 +0100)]
Update geoip6 to the March 3 2015 database.
Karsten Loesing [Mon, 9 Mar 2015 20:09:44 +0000 (21:09 +0100)]
Update geoip to the March 3 2015 database.
Nick Mathewson [Mon, 9 Mar 2015 19:09:49 +0000 (15:09 -0400)]
Don't use checked strl{cat,cpy} on OSX.
There is a bug in the overlap-checking in strlcat that can crash Tor
servers. Fixes bug 15205; this is an OSX bug, not a Tor bug.
Nick Mathewson [Mon, 9 Mar 2015 17:49:55 +0000 (13:49 -0400)]
We actually merged this one a while ago.
Nick Mathewson [Mon, 9 Mar 2015 17:23:32 +0000 (13:23 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 9 Mar 2015 17:22:58 +0000 (13:22 -0400)]
Restore c89 in 0.2.5
Nick Mathewson [Mon, 9 Mar 2015 17:21:20 +0000 (13:21 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 9 Mar 2015 17:17:20 +0000 (13:17 -0400)]
Merge remote-tracking branch 'public/bug14261_025' into maint-0.2.5
Nick Mathewson [Wed, 7 Jan 2015 16:37:23 +0000 (11:37 -0500)]
GETINFO bw-event-cache to get information on recent BW events
Closes 14128; useful to regain functionality lost because of 13988.
Nick Mathewson [Mon, 9 Mar 2015 17:12:54 +0000 (13:12 -0400)]
Merge remote-tracking branch 'public/bug13988_025' into maint-0.2.5
Nick Mathewson [Mon, 9 Mar 2015 17:09:50 +0000 (13:09 -0400)]
Merge remote-tracking branch 'public/bug15088_025' into maint-0.2.5
Nick Mathewson [Mon, 9 Mar 2015 17:05:27 +0000 (13:05 -0400)]
Merge remote-tracking branch 'public/feature15006_026' into maint-0.2.6
Nick Mathewson [Mon, 9 Mar 2015 15:13:57 +0000 (11:13 -0400)]
Changes file for 15188
Tom van der Woerdt [Sun, 8 Mar 2015 18:20:56 +0000 (19:20 +0100)]
testing_common.c: avoid side-effects of tor_assert
Nick Mathewson [Mon, 9 Mar 2015 15:09:49 +0000 (11:09 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 9 Mar 2015 15:09:30 +0000 (11:09 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Mon, 9 Mar 2015 15:08:57 +0000 (11:08 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Mon, 9 Mar 2015 15:07:50 +0000 (11:07 -0400)]
Adjust changes header
Nick Mathewson [Wed, 4 Mar 2015 14:18:33 +0000 (15:18 +0100)]
Revert "Missing dependencies; fixes 15127."
This reverts commit
930ab95e1fb0dfd5af35e7d84ca58ff21b65a605 .
Nick Mathewson [Wed, 4 Mar 2015 13:23:59 +0000 (14:23 +0100)]
Make boostrap events include hostname ANDaddr AND digest
Nick Mathewson [Wed, 4 Mar 2015 11:26:43 +0000 (12:26 +0100)]
Merge remote-tracking branch 'public/bug15064_025' into maint-0.2.6
Nick Mathewson [Wed, 4 Mar 2015 11:24:51 +0000 (12:24 +0100)]
Make TransProxyType ipfw work correctly
Fixes bug 15064; bugfix on 0.2.5.4-alpha.