From 7da93b80ca7a6bafdc1caee71863db3eee99da4e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 25 Oct 2007 16:54:56 +0000 Subject: r16159@catbus: nickm | 2007-10-25 12:53:38 -0400 Drop support for OpenSSL 0.9.6. svn:r12191 --- src/common/tortls.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/common/tortls.c') diff --git a/src/common/tortls.c b/src/common/tortls.c index eed35cd32d..986265da9b 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -337,8 +337,7 @@ tor_tls_create_certificate(crypto_pk_env_t *rsa, #define CIPHER_LIST (TLS1_TXT_DHE_RSA_WITH_AES_128_SHA ":" \ SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA) #else -/* We're running OpenSSL before 0.9.7. We only support 3DES. */ -#define CIPHER_LIST SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA +#error "Tor requires OpenSSL version 0.9.7 or later, for AES support." #endif /** Create a new TLS context for use with Tor TLS handshakes. @@ -844,12 +843,6 @@ int tor_tls_get_pending_bytes(tor_tls_t *tls) { tor_assert(tls); -#if OPENSSL_VERSION_NUMBER < 0x0090700fl - if (tls->ssl->rstate == SSL_ST_READ_BODY) - return 0; - if (tls->ssl->s3->rrec.type != SSL3_RT_APPLICATION_DATA) - return 0; -#endif return SSL_pending(tls->ssl); } -- cgit v1.2.3-54-g00ecf