From fb23f3eb3e83d079412cd2b753e3f301ba443d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 28 Nov 2019 18:42:25 +0200 Subject: [PATCH] OpenSSL 1.1 supports TLSv1.1 and TLSv1.2 TLSv1.0 is the only version that newer OpenSSL versions do not support. --- server/core/listener.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/core/listener.cc b/server/core/listener.cc index 755a83c40..677cf3a7d 100644 --- a/server/core/listener.cc +++ b/server/core/listener.cc @@ -288,7 +288,7 @@ bool SSL_LISTENER_init(SSL_LISTENER* ssl) case SERVICE_TLS11: -#ifdef OPENSSL_1_0 +#if defined (OPENSSL_1_0) || defined (OPENSSL_1_1) ssl->method = (SSL_METHOD*)TLSv1_1_method(); #else MXS_ERROR("TLSv1.1 is not supported on this system."); @@ -297,7 +297,7 @@ bool SSL_LISTENER_init(SSL_LISTENER* ssl) break; case SERVICE_TLS12: -#ifdef OPENSSL_1_0 +#if defined (OPENSSL_1_0) || defined (OPENSSL_1_1) ssl->method = (SSL_METHOD*)TLSv1_2_method(); #else MXS_ERROR("TLSv1.2 is not supported on this system.");