|
@@ -1176,10 +1176,11 @@ tor_tls_context_new(crypto_pk_t *identity, unsigned int key_lifetime,
|
|
|
goto error;
|
|
|
#endif
|
|
|
|
|
|
-
|
|
|
+
|
|
|
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);
|
|
|
|
|
|
|
|
|
* workaround a bug present in all OpenSSL 1.0.1 versions (as of 1
|
|
@@ -1204,6 +1205,7 @@ tor_tls_context_new(crypto_pk_t *identity, unsigned int key_lifetime,
|
|
|
SSL_CTX_set_options(result->ctx, SSL_OP_NO_TICKET);
|
|
|
#endif
|
|
|
|
|
|
+
|
|
|
if (
|
|
|
#ifdef DISABLE_SSL3_HANDSHAKE
|
|
|
1 ||
|