aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-11-05 14:08:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-11-05 14:08:27 +0000
commit8a6dc572128cc5ea97b8f5c5506a2751f3c1b3ec (patch)
treea4055ffa6b41c791170491946848255c0976ff61
parentaf636c535c6b8bb6dfb5b8d2ddb1fb1023d7baf2 (diff)
John Lask's fix that adds "-1/--TLSv1" support
-rw-r--r--src/main.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index a51d6b292..0cce58ea1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -364,6 +364,7 @@ static void help(void)
" -z/--time-cond <time> Includes a time condition to the server (H)\n"
" -Z/--max-redirs <num> Set maximum number of redirections allowed (H)\n"
" -0/--http1.0 Force usage of HTTP 1.0 (H)\n"
+ " -1/--tlsv1 Force usage of TLSv1 (H)\n"
" -2/--sslv2 Force usage of SSLv2 (H)\n"
" -3/--sslv3 Force usage of SSLv3 (H)");
puts(" -#/--progress-bar Display transfer progress as a progress bar\n"
@@ -863,6 +864,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
{"5d", "ciphers", TRUE},
{"0", "http1.0", FALSE},
+ {"1", "tlsv1", FALSE},
{"2", "sslv2", FALSE},
{"3", "sslv3", FALSE},
{"a", "append", FALSE},
@@ -1060,13 +1062,17 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
/* HTTP version 1.0 */
config->httpversion = CURL_HTTP_VERSION_1_0;
break;
+ case '1':
+ /* TLS version 1 */
+ config->ssl_version = CURL_SSLVERSION_TLSv1;
+ break;
case '2':
/* SSL version 2 */
- config->ssl_version = 2;
+ config->ssl_version = CURL_SSLVERSION_SSLv2;
break;
case '3':
- /* SSL version 2 */
- config->ssl_version = 3;
+ /* SSL version 3 */
+ config->ssl_version = CURL_SSLVERSION_SSLv3;
break;
case 'a':
/* This makes the FTP sessions use APPE instead of STOR */