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

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