aboutsummaryrefslogtreecommitdiff
path: root/src/tool_getparam.c
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2016-10-27 14:58:43 +0200
committerKamil Dudka <kdudka@redhat.com>2016-11-07 12:07:11 +0100
commita110a03b43057879643046538c79cc9dd20d399a (patch)
treef35f5bf60427950ecebf2c65c23f800b7ac6d7b2 /src/tool_getparam.c
parent6ad3add60654182a747f5971afb40817488ef0e8 (diff)
curl: introduce the --tlsv1.3 option to force TLS 1.3
Fully implemented with the NSS backend only for now. Reviewed-by: Ray Satiro
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r--src/tool_getparam.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 95dd4555f..2d16e066d 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -190,6 +190,7 @@ static const struct LongShort aliases[]= {
{"10", "tlsv1.0", FALSE},
{"11", "tlsv1.1", FALSE},
{"12", "tlsv1.2", FALSE},
+ {"13", "tlsv1.3", FALSE},
{"2", "sslv2", FALSE},
{"3", "sslv3", FALSE},
{"4", "ipv4", FALSE},
@@ -1061,6 +1062,10 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
/* TLS version 1.2 */
config->ssl_version = CURL_SSLVERSION_TLSv1_2;
break;
+ case '3':
+ /* TLS version 1.3 */
+ config->ssl_version = CURL_SSLVERSION_TLSv1_3;
+ break;
}
break;
case '2':