From: Felix Fietkau Date: Sun, 21 Feb 2016 20:28:58 +0000 (+0100) Subject: openssl: keep compatibility with older TLS/SSL protocols X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6ba14990e63fc956e8aff3b0b09be1fd3aaa6d75;p=project%2Fustream-ssl.git openssl: keep compatibility with older TLS/SSL protocols Signed-off-by: Felix Fietkau --- 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)