]> git.ipfire.org Git - thirdparty/tor.git/commit
Let servers choose better ciphersuites when clients support them
authorNick Mathewson <nickm@torproject.org>
Wed, 28 Nov 2012 18:31:17 +0000 (13:31 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 26 Dec 2012 01:14:07 +0000 (20:14 -0500)
commit175b2678d7dd0ff8b00b597169e4a9a0d8e86f12
tree3d7531b0316a389bee440521e608b7a9ffc72735
parent63208aa1e53f5ffc3ecbe47402cc2736bbce6af0
Let servers choose better ciphersuites when clients support them

This implements the server-side of proposal 198 by detecting when
clients lack the magic list of ciphersuites that indicates that
they're lying faking some ciphers they don't really have.  When
clients lack this list, we can choose any cipher that we'd actually
like.  The newly allowed ciphersuites are, currently, "All ECDHE-RSA
ciphers that openssl supports, except for ECDHE-RSA-RC4".

The code to detect the cipher list relies on on (ab)use of
SSL_set_session_secret_cb.
changes/tls_ecdhe [new file with mode: 0644]
src/common/tortls.c
src/common/tortls.h
src/or/connection_or.c