|
@@ -1245,10 +1245,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. */
|
|
@@ -1287,6 +1288,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 ||
|