move curl back to packages
[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 @@ -425,7 +425,9 @@
20 " -z/--time-cond <time> Transfer based on a time condition",
21 " -0/--http1.0 Use HTTP 1.0 (H)",
22 " -1/--tlsv1 Use TLSv1 (SSL)",
23 +#ifndef OPENSSL_NO_SSL2
24 " -2/--sslv2 Use SSLv2 (SSL)",
25 +#endif
26 " -3/--sslv3 Use SSLv3 (SSL)",
27 " --3p-quote like -Q for the source URL for 3rd party transfer (F)",
28 " --3p-url source URL to activate 3rd party transfer (F)",
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;