From 6ba14990e63fc956e8aff3b0b09be1fd3aaa6d75 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 21 Feb 2016 21:28:58 +0100 Subject: [PATCH] openssl: keep compatibility with older TLS/SSL protocols Signed-off-by: Felix Fietkau --- ustream-openssl.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ustream-openssl.c b/ustream-openssl.c index 4a3f0a2..83f6140 100644 --- a/ustream-openssl.c +++ b/ustream-openssl.c @@ -35,17 +35,14 @@ __ustream_ssl_context_new(bool server) _init = true; } -#ifdef CYASSL_OPENSSL_H_ if (server) +#ifdef CYASSL_OPENSSL_H_ m = SSLv23_server_method(); - else - m = SSLv23_client_method(); #else - if (server) m = TLSv1_2_server_method(); - else - m = TLSv1_2_client_method(); #endif + else + m = SSLv23_client_method(); c = SSL_CTX_new((void *) m); if (!c) -- 2.25.1