[package] update libcurl to 7.19.4
[openwrt/svn-archive/archive.git] / libs / curl / patches / 510-no_sslv2.patch
1 diff -ruN curl-7.14.0-old/lib/ssluse.c curl-7.14.0-new/lib/ssluse.c
2 --- curl-7.14.0-old/lib/ssluse.c 2005-04-15 00:52:57.000000000 +0200
3 +++ curl-7.14.0-new/lib/ssluse.c 2006-12-18 10:48:20.000000000 +0100
4 @@ -1144,9 +1144,11 @@
5 case CURL_SSLVERSION_TLSv1:
6 req_method = TLSv1_client_method();
7 break;
8 +#ifndef OPENSSL_NO_SSL2
9 case CURL_SSLVERSION_SSLv2:
10 req_method = SSLv2_client_method();
11 break;
12 +#endif
13 case CURL_SSLVERSION_SSLv3:
14 req_method = SSLv3_client_method();
15 break;
16 diff -ruN curl-7.14.0-old/src/main.c curl-7.14.0-new/src/main.c
17 --- curl-7.14.0-old/src/main.c 2005-05-12 09:28:03.000000000 +0200
18 +++ curl-7.14.0-new/src/main.c 2006-12-18 10:47:48.000000000 +0100
19 @@ -819,7 +819,9 @@
20 #endif
21 " -Y/--speed-limit Stop transfer if below speed-limit for 'speed-time' secs",
22 " -y/--speed-time Time needed to trig speed-limit abort. Defaults to 30",
23 +#ifndef OPENSSL_NO_SSL2
24 " -2/--sslv2 Use SSLv2 (SSL)",
25 +#endif
26 " -3/--sslv3 Use SSLv3 (SSL)",
27 " --stderr <file> Where to redirect stderr. - means stdout",
28 " --tcp-nodelay Use the TCP_NODELAY option",
29 @@ -1671,10 +1673,12 @@
30 /* TLS version 1 */
31 config->ssl_version = CURL_SSLVERSION_TLSv1;
32 break;
33 +#ifndef OPENSSL_NO_SSL2
34 case '2':
35 /* SSL version 2 */
36 config->ssl_version = CURL_SSLVERSION_SSLv2;
37 break;
38 +#endif
39 case '3':
40 /* SSL version 3 */
41 config->ssl_version = CURL_SSLVERSION_SSLv3;