Blame SOURCES/0043-Enable-only-TLSv1.2-by-default.patch

ab00cd
From 75c942c77aa575143c5b75637e64a925ad12641a Mon Sep 17 00:00:00 2001
ab00cd
From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= <olysonek@redhat.com>
ab00cd
Date: Thu, 21 Dec 2017 16:38:40 +0100
ab00cd
Subject: [PATCH 43/59] Enable only TLSv1.2 by default
ab00cd
ab00cd
Disable TLSv1 and TLSv1.1 - enable only TLSv1.2 by default.
ab00cd
---
ab00cd
 tunables.c    | 6 +++---
ab00cd
 vsftpd.conf.5 | 4 ++--
ab00cd
 2 files changed, 5 insertions(+), 5 deletions(-)
ab00cd
ab00cd
diff --git a/tunables.c b/tunables.c
ab00cd
index 354251c..9680528 100644
ab00cd
--- a/tunables.c
ab00cd
+++ b/tunables.c
ab00cd
@@ -211,9 +211,9 @@ tunables_load_defaults()
ab00cd
   tunable_force_local_data_ssl = 1;
ab00cd
   tunable_sslv2 = 0;
ab00cd
   tunable_sslv3 = 0;
ab00cd
-  /* TLSv1 up to TLSv1.2 is enabled by default */
ab00cd
-  tunable_tlsv1 = 1;
ab00cd
-  tunable_tlsv1_1 = 1;
ab00cd
+  tunable_tlsv1 = 0;
ab00cd
+  tunable_tlsv1_1 = 0;
ab00cd
+  /* Only TLSv1.2 is enabled by default */
ab00cd
   tunable_tlsv1_2 = 1;
ab00cd
   tunable_tilde_user_enable = 0;
ab00cd
   tunable_force_anon_logins_ssl = 0;
ab00cd
diff --git a/vsftpd.conf.5 b/vsftpd.conf.5
ab00cd
index 2a7662e..df14027 100644
ab00cd
--- a/vsftpd.conf.5
ab00cd
+++ b/vsftpd.conf.5
ab00cd
@@ -539,7 +539,7 @@ Only applies if
ab00cd
 is activated. If enabled, this option will permit TLS v1 protocol connections.
ab00cd
 TLS v1.2 connections are preferred.
ab00cd
 
ab00cd
-Default: YES
ab00cd
+Default: NO
ab00cd
 .TP
ab00cd
 .B ssl_tlsv1_1
ab00cd
 Only applies if
ab00cd
@@ -547,7 +547,7 @@ Only applies if
ab00cd
 is activated. If enabled, this option will permit TLS v1.1 protocol connections.
ab00cd
 TLS v1.2 connections are preferred.
ab00cd
 
ab00cd
-Default: YES
ab00cd
+Default: NO
ab00cd
 .TP
ab00cd
 .B ssl_tlsv1_2
ab00cd
 Only applies if
ab00cd
-- 
ab00cd
2.14.4
ab00cd