nss: set default max-tls to 1.3/1.2

Fixes #3261
This commit is contained in:
Daniel Stenberg 2018-11-12 16:22:23 +01:00
parent 2f5f31bb57
commit 0c448093dd
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;