aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2018-11-13 23:54:56 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-11-13 23:55:22 +0100
commit3d988c5563f0438a88f4f31a1a176186aa3a399b (patch)
tree34b717925155fafb1e8e55ae0a25fb515272c3da /lib/vtls
parent0c448093dd1cbf7f1b9242ddf4fc166b42088a74 (diff)
nss: remove version selecting dead code
Closes #3262
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/nss.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c
index 2a9b44951..427ab91aa 100644
--- a/lib/vtls/nss.c
+++ b/lib/vtls/nss.c
@@ -1638,17 +1638,6 @@ static CURLcode nss_load_ca_certificates(struct connectdata *conn,
static CURLcode nss_sslver_from_curl(PRUint16 *nssver, long version)
{
switch(version) {
- case CURL_SSLVERSION_TLSv1:
- /* TODO: set sslver->max to SSL_LIBRARY_VERSION_TLS_1_3 once stable */
-#ifdef SSL_LIBRARY_VERSION_TLS_1_2
- *nssver = SSL_LIBRARY_VERSION_TLS_1_2;
-#elif defined SSL_LIBRARY_VERSION_TLS_1_1
- *nssver = SSL_LIBRARY_VERSION_TLS_1_1;
-#else
- *nssver = SSL_LIBRARY_VERSION_TLS_1_0;
-#endif
- return CURLE_OK;
-
case CURL_SSLVERSION_SSLv2:
*nssver = SSL_LIBRARY_VERSION_2;
return CURLE_OK;
@@ -1709,10 +1698,8 @@ static CURLcode nss_init_sslver(SSLVersionRange *sslver,
}
switch(min) {
- case CURL_SSLVERSION_DEFAULT:
- break;
case CURL_SSLVERSION_TLSv1:
- sslver->min = SSL_LIBRARY_VERSION_TLS_1_0;
+ case CURL_SSLVERSION_DEFAULT:
break;
default:
result = nss_sslver_from_curl(&sslver->min, min);