[package] update curl to 7.19.7 (#6151)
[openwrt/svn-archive/archive.git] / libs / curl / patches / 510-no_sslv2.patch
index 9c1089b2efdd71977882066954f75043879cde87..65b9fe32dd5fb896478eb153a9da7ddfeb068c64 100644 (file)
@@ -1,18 +1,18 @@
 --- a/lib/ssluse.c
 +++ b/lib/ssluse.c
-@@ -1384,10 +1384,12 @@ ossl_connect_step1(struct connectdata *c
-   case CURL_SSLVERSION_TLSv1:
+@@ -1397,10 +1397,12 @@
      req_method = TLSv1_client_method();
+     use_sni(TRUE);
      break;
 +#ifndef OPENSSL_NO_SSL2
    case CURL_SSLVERSION_SSLv2:
      req_method = SSLv2_client_method();
-     sni = FALSE;
+     use_sni(FALSE);
      break;
 +#endif
    case CURL_SSLVERSION_SSLv3:
      req_method = SSLv3_client_method();
-     sni = FALSE;
+     use_sni(FALSE);
 --- a/src/main.c
 +++ b/src/main.c
 @@ -824,7 +824,9 @@ static void help(void)