Accepting request 66602 from home:elvigia:branches:devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/66602
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/curl?expand=0&rev=44
This commit is contained in:
Cristian Rodríguez
2011-04-09 21:16:06 +00:00
committed by Git OBS Bridge
parent 64df61db69
commit d36d6addd8
6 changed files with 49 additions and 12 deletions

16
curl-no-sslv2.patch Normal file
View File

@@ -0,0 +1,16 @@
--- lib/ssluse.c.orig
+++ lib/ssluse.c
@@ -1449,8 +1449,13 @@ ossl_connect_step1(struct connectdata *c
use_sni(TRUE);
break;
case CURL_SSLVERSION_SSLv2:
+#ifdef OPENSSL_NO_SSL2
+ failf(data, "openSSL was compiled without SSLv2 support");
+ return CURLE_SSL_CONNECT_ERROR;
+#else
req_method = SSLv2_client_method();
use_sni(FALSE);
+#endif
break;
case CURL_SSLVERSION_SSLv3:
req_method = SSLv3_client_method();