2009-08-19 13:20:27 +00:00
|
|
|
--- a/src/main.c
|
|
|
|
+++ b/src/main.c
|
2011-12-07 23:30:57 +00:00
|
|
|
@@ -936,7 +936,9 @@ static void help(void)
|
|
|
|
"Time needed to trig speed-limit abort. Defaults to 30",
|
2010-12-07 10:55:41 +00:00
|
|
|
" --ssl Try SSL/TLS (FTP, IMAP, POP3, SMTP)",
|
|
|
|
" --ssl-reqd Require SSL/TLS (FTP, IMAP, POP3, SMTP)",
|
2008-07-29 13:12:54 +00:00
|
|
|
+#ifndef OPENSSL_NO_SSL2
|
|
|
|
" -2/--sslv2 Use SSLv2 (SSL)",
|
|
|
|
+#endif
|
|
|
|
" -3/--sslv3 Use SSLv3 (SSL)",
|
2009-04-03 09:10:42 +00:00
|
|
|
" --stderr <file> Where to redirect stderr. - means stdout",
|
|
|
|
" --tcp-nodelay Use the TCP_NODELAY option",
|
2011-12-07 23:30:57 +00:00
|
|
|
@@ -2535,10 +2537,12 @@ static ParameterError getparameter(char
|
2008-07-29 13:12:54 +00:00
|
|
|
/* TLS version 1 */
|
|
|
|
config->ssl_version = CURL_SSLVERSION_TLSv1;
|
|
|
|
break;
|
|
|
|
+#ifndef OPENSSL_NO_SSL2
|
|
|
|
case '2':
|
|
|
|
/* SSL version 2 */
|
|
|
|
config->ssl_version = CURL_SSLVERSION_SSLv2;
|
|
|
|
break;
|
|
|
|
+#endif
|
|
|
|
case '3':
|
|
|
|
/* SSL version 3 */
|
|
|
|
config->ssl_version = CURL_SSLVERSION_SSLv3;
|