3 @@ -1397,10 +1397,12 @@
4 req_method = TLSv1_client_method();
7 +#ifndef OPENSSL_NO_SSL2
8 case CURL_SSLVERSION_SSLv2:
9 req_method = SSLv2_client_method();
13 case CURL_SSLVERSION_SSLv3:
14 req_method = SSLv3_client_method();
18 @@ -824,7 +824,9 @@ static void help(void)
20 " -Y/--speed-limit Stop transfer if below speed-limit for 'speed-time' secs",
21 " -y/--speed-time Time needed to trig speed-limit abort. Defaults to 30",
22 +#ifndef OPENSSL_NO_SSL2
23 " -2/--sslv2 Use SSLv2 (SSL)",
25 " -3/--sslv3 Use SSLv3 (SSL)",
26 " --stderr <file> Where to redirect stderr. - means stdout",
27 " --tcp-nodelay Use the TCP_NODELAY option",
28 @@ -2228,10 +2230,12 @@ static ParameterError getparameter(char
30 config->ssl_version = CURL_SSLVERSION_TLSv1;
32 +#ifndef OPENSSL_NO_SSL2
35 config->ssl_version = CURL_SSLVERSION_SSLv2;
40 config->ssl_version = CURL_SSLVERSION_SSLv3;