]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
nts: disable TLS version 1.2
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 26 Mar 2020 14:18:08 +0000 (15:18 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 26 Mar 2020 14:30:27 +0000 (15:30 +0100)
Require TLS version 1.3 or later as specified in the latest NTS draft.

nts_ke_session.c

index bd1b00126211899dde779c9cf4d542411d408a48..2883273841d57620f60935f78d64c8e218bfeae0 100644 (file)
@@ -551,8 +551,9 @@ init_gnutls(void)
   if (r < 0)
     LOG_FATAL("Could not initialise %s : %s", "gnutls", gnutls_strerror(r));
 
-  /* NTS specification requires TLS1.2 or later */
-  r = gnutls_priority_init2(&priority_cache, "-VERS-SSL3.0:-VERS-TLS1.0:-VERS-TLS1.1",
+  /* NTS specification requires TLS1.3 or later */
+  r = gnutls_priority_init2(&priority_cache,
+                            "-VERS-SSL3.0:-VERS-TLS1.0:-VERS-TLS1.1:-VERS-TLS1.2",
                             NULL, GNUTLS_PRIORITY_INIT_DEF_APPEND);
   if (r < 0)
     LOG_FATAL("Could not initialise %s : %s", "priority cache", gnutls_strerror(r));