From: Daniel Stenberg Date: Mon, 12 Nov 2018 15:22:23 +0000 (+0100) Subject: nss: set default max-tls to 1.3/1.2 X-Git-Tag: curl-7_63_0~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c448093dd1cbf7f1b9242ddf4fc166b42088a74;p=curl nss: set default max-tls to 1.3/1.2 Fixes #3261 --- 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;