]> granicus.if.org Git - curl/commitdiff
nss: set default max-tls to 1.3/1.2
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Nov 2018 15:22:23 +0000 (16:22 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 13 Nov 2018 22:54:13 +0000 (23:54 +0100)
Fixes #3261

lib/vtls/nss.c

index 9dceb9773f5daedf0e96a00c0ac33406b9c6356f..2a9b449519dd26264ad97bbd55ab63602af1a311 100644 (file)
@@ -1792,7 +1792,11 @@ static CURLcode nss_setup_connect(struct connectdata *conn, int sockindex)
 
   SSLVersionRange sslver = {
     SSL_LIBRARY_VERSION_TLS_1_0,  /* min */
-    SSL_LIBRARY_VERSION_TLS_1_0   /* max */
+#ifdef SSL_LIBRARY_VERSION_TLS_1_3
+    SSL_LIBRARY_VERSION_TLS_1_3   /* max */
+#else
+    SSL_LIBRARY_VERSION_TLS_1_2
+#endif
   };
 
   BACKEND->data = data;