aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-10-16 09:09:20 -0400
committerNick Mathewson <nickm@torproject.org>2014-10-16 09:09:20 -0400
commit33b399a7b2ecc1ea13219fde86748246d697f6fe (patch)
treecb5f5a6ca561288883c8b85276e1c3ff85fc8830 /src
parent48af23eb0df733c4f42f80e2e3ad047f298ac517 (diff)
parent22b9caf0ae42132bc8107d990b3ebb969394c90f (diff)
downloadtor-33b399a7b2ecc1ea13219fde86748246d697f6fe.tar.gz
tor-33b399a7b2ecc1ea13219fde86748246d697f6fe.zip
Merge remote-tracking branch 'origin/maint-0.2.5'
Diffstat (limited to 'src')
-rw-r--r--src/common/tortls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index f4a07f0b93..32809b8889 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -1240,10 +1240,11 @@ tor_tls_context_new(crypto_pk_t *identity, unsigned int key_lifetime,
goto error;
#endif
- /* Tell OpenSSL to use SSL3 or TLS1 but not SSL2. */
+ /* Tell OpenSSL to use TLS 1.0 or later but not SSL2 or SSL3. */
if (!(result->ctx = SSL_CTX_new(SSLv23_method())))
goto error;
SSL_CTX_set_options(result->ctx, SSL_OP_NO_SSLv2);
+ SSL_CTX_set_options(result->ctx, SSL_OP_NO_SSLv3);
/* Prefer the server's ordering of ciphers: the client's ordering has
* historically been chosen for fingerprinting resistance. */
@@ -1282,6 +1283,7 @@ tor_tls_context_new(crypto_pk_t *identity, unsigned int key_lifetime,
}
#endif
+ /* XXX This block is now obsolete. */
if (
#ifdef DISABLE_SSL3_HANDSHAKE
1 ||