From a7d570916d982103f0e7273e7b37f15a87ab34c3 Mon Sep 17 00:00:00 2001 From: Vladimir Berkutov Date: Fri, 2 Nov 2018 22:57:53 +0900 Subject: [PATCH] #722: Add support for tls1.3 (#724) * #722: Add support for tls1.3 * #722: Document the potential support for tls1.3 --- README.rst | 2 +- httpie/input.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 585a0220..bdb99f8b 100644 --- a/README.rst +++ b/README.rst @@ -927,7 +927,7 @@ SSL version Use the ``--ssl=`` to specify the desired protocol version to use. This will default to SSL v2.3 which will negotiate the highest protocol that both the server and your installation of OpenSSL support. The available protocols -are ``ssl2.3``, ``ssl3``, ``tls1``, ``tls1.1``, ``tls1.2``. (The actually +are ``ssl2.3``, ``ssl3``, ``tls1``, ``tls1.1``, ``tls1.2``, ``tls1.3``. (The actually available set of protocols may vary depending on your OpenSSL installation.) .. code-block:: bash diff --git a/httpie/input.py b/httpie/input.py index ebf46df3..c753bcc1 100644 --- a/httpie/input.py +++ b/httpie/input.py @@ -111,6 +111,7 @@ SSL_VERSION_ARG_MAPPING = { 'tls1': 'PROTOCOL_TLSv1', 'tls1.1': 'PROTOCOL_TLSv1_1', 'tls1.2': 'PROTOCOL_TLSv1_2', + 'tls1.3': 'PROTOCOL_TLSv1_3', } SSL_VERSION_ARG_MAPPING = { cli_arg: getattr(ssl, ssl_constant)