3 @@ -1454,10 +1454,12 @@ ossl_connect_step1(struct connectdata *c
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 @@ -883,7 +883,9 @@ static void help(void)
19 " -y/--speed-time Time needed to trig speed-limit abort. Defaults to 30",
20 " --ssl Try SSL/TLS (FTP, IMAP, POP3, SMTP)",
21 " --ssl-reqd Require SSL/TLS (FTP, IMAP, POP3, SMTP)",
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 @@ -2445,10 +2447,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;