70e7124
diff --git a/features.c b/features.c
70e7124
index d024366..3a60b88 100644
70e7124
--- a/features.c
70e7124
+++ b/features.c
70e7124
@@ -22,7 +22,7 @@ handle_feat(struct vsf_session* p_sess)
70e7124
     {
70e7124
       vsf_cmdio_write_raw(p_sess, " AUTH SSL\r\n");
70e7124
     }
70e7124
-    if (tunable_tlsv1 || tunable_tlsv1_1 || tunable_tlsv1_2)
70e7124
+    if (tunable_tlsv1 || tunable_tlsv1_1 || tunable_tlsv1_2 || tunable_tlsv1_3)
70e7124
     {
70e7124
       vsf_cmdio_write_raw(p_sess, " AUTH TLS\r\n");
70e7124
     }
70e7124
diff --git a/parseconf.c b/parseconf.c
70e7124
index ee1b8b4..5188088 100644
70e7124
--- a/parseconf.c
70e7124
+++ b/parseconf.c
70e7124
@@ -87,6 +87,7 @@ parseconf_bool_array[] =
70e7124
   { "ssl_tlsv1", &tunable_tlsv1 },
70e7124
   { "ssl_tlsv1_1", &tunable_tlsv1_1 },
70e7124
   { "ssl_tlsv1_2", &tunable_tlsv1_2 },
70e7124
+  { "ssl_tlsv1_3", &tunable_tlsv1_3 },
70e7124
   { "tilde_user_enable", &tunable_tilde_user_enable },
70e7124
   { "force_anon_logins_ssl", &tunable_force_anon_logins_ssl },
70e7124
   { "force_anon_data_ssl", &tunable_force_anon_data_ssl },
70e7124
diff --git a/ssl.c b/ssl.c
70e7124
index b622347..3af67ad 100644
70e7124
--- a/ssl.c
70e7124
+++ b/ssl.c
70e7124
@@ -185,6 +185,10 @@ ssl_init(struct vsf_session* p_sess)
70e7124
     {
70e7124
       options |= SSL_OP_NO_TLSv1_2;
70e7124
     }
70e7124
+    if (!tunable_tlsv1_3)
70e7124
+    {
70e7124
+      options |= SSL_OP_NO_TLSv1_3;
70e7124
+    }
70e7124
     SSL_CTX_set_options(p_ctx, options);
70e7124
     if (tunable_rsa_cert_file)
70e7124
     {
70e7124
diff --git a/tunables.c b/tunables.c
70e7124
index d8dfcde..dc001ac 100644
70e7124
--- a/tunables.c
70e7124
+++ b/tunables.c
70e7124
@@ -68,6 +68,7 @@ int tunable_sslv3;
70e7124
 int tunable_tlsv1;
70e7124
 int tunable_tlsv1_1;
70e7124
 int tunable_tlsv1_2;
70e7124
+int tunable_tlsv1_3;
70e7124
 int tunable_tilde_user_enable;
70e7124
 int tunable_force_anon_logins_ssl;
70e7124
 int tunable_force_anon_data_ssl;
70e7124
@@ -218,8 +219,9 @@ tunables_load_defaults()
70e7124
   tunable_sslv3 = 0;
70e7124
   tunable_tlsv1 = 0;
70e7124
   tunable_tlsv1_1 = 0;
70e7124
-  /* Only TLSv1.2 is enabled by default */
70e7124
+  /* Only TLSv1.2 and TLSv1.3 are enabled by default */
70e7124
   tunable_tlsv1_2 = 1;
70e7124
+  tunable_tlsv1_3 = 1;
70e7124
   tunable_tilde_user_enable = 0;
70e7124
   tunable_force_anon_logins_ssl = 0;
70e7124
   tunable_force_anon_data_ssl = 0;
70e7124
diff --git a/tunables.h b/tunables.h
70e7124
index de6cab0..ff0eebc 100644
70e7124
--- a/tunables.h
70e7124
+++ b/tunables.h
70e7124
@@ -69,6 +69,7 @@ extern int tunable_sslv3;                     /* Allow SSLv3 */
70e7124
 extern int tunable_tlsv1;                     /* Allow TLSv1 */
70e7124
 extern int tunable_tlsv1_1;                   /* Allow TLSv1.1 */
70e7124
 extern int tunable_tlsv1_2;                   /* Allow TLSv1.2 */
70e7124
+extern int tunable_tlsv1_3;                   /* Allow TLSv1.3 */
70e7124
 extern int tunable_tilde_user_enable;         /* Support e.g. ~chris */
70e7124
 extern int tunable_force_anon_logins_ssl;     /* Require anon logins use SSL */
70e7124
 extern int tunable_force_anon_data_ssl;       /* Require anon data uses SSL */
70e7124
diff --git a/vsftpd.conf.5 b/vsftpd.conf.5
70e7124
index 7006287..d181e50 100644
70e7124
--- a/vsftpd.conf.5
70e7124
+++ b/vsftpd.conf.5
70e7124
@@ -587,7 +587,15 @@ Default: NO
70e7124
 Only applies if
70e7124
 .BR ssl_enable
70e7124
 is activated. If enabled, this option will permit TLS v1.2 protocol connections.
70e7124
-TLS v1.2 connections are preferred.
70e7124
+TLS v1.2 and TLS v1.3 connections are preferred.
70e7124
+
70e7124
+Default: YES
70e7124
+.TP
70e7124
+.B ssl_tlsv1_3
70e7124
+Only applies if
70e7124
+.BR ssl_enable
70e7124
+is activated. If enabled, this option will permit TLS v1.3 protocol connections.
70e7124
+TLS v1.2 and TLS v1.3 connections are preferred.
70e7124
 
70e7124
 Default: YES
70e7124
 .TP