[packages_10.03.1] curl: update to v7.21.7 (CVE-2011-2192)
[openwrt/svn-archive/archive.git] / libs / curl / patches / 510-no_sslv2.patch
1 --- a/src/main.c
2 +++ b/src/main.c
3 @@ -936,7 +936,9 @@ static void help(void)
4 "Time needed to trig speed-limit abort. Defaults to 30",
5 " --ssl Try SSL/TLS (FTP, IMAP, POP3, SMTP)",
6 " --ssl-reqd Require SSL/TLS (FTP, IMAP, POP3, SMTP)",
7 +#ifndef OPENSSL_NO_SSL2
8 " -2/--sslv2 Use SSLv2 (SSL)",
9 +#endif
10 " -3/--sslv3 Use SSLv3 (SSL)",
11 " --stderr <file> Where to redirect stderr. - means stdout",
12 " --tcp-nodelay Use the TCP_NODELAY option",
13 @@ -2535,10 +2537,12 @@ static ParameterError getparameter(char
14 /* TLS version 1 */
15 config->ssl_version = CURL_SSLVERSION_TLSv1;
16 break;
17 +#ifndef OPENSSL_NO_SSL2
18 case '2':
19 /* SSL version 2 */
20 config->ssl_version = CURL_SSLVERSION_SSLv2;
21 break;
22 +#endif
23 case '3':
24 /* SSL version 3 */
25 config->ssl_version = CURL_SSLVERSION_SSLv3;