aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-11-12 16:22:23 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-11-13 23:54:13 +0100
commit0c448093dd1cbf7f1b9242ddf4fc166b42088a74 (patch)
tree621a05781abb08f2f2560aa7075881bb39b3e769 /lib
parent2f5f31bb57d68b54e03bffcd9648aece1fe564f8 (diff)
nss: set default max-tls to 1.3/1.2
Fixes #3261
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/nss.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c
index 9dceb9773..2a9b44951 100644
--- a/lib/vtls/nss.c
+++ b/lib/vtls/nss.c
@@ -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;