mirror of
https://github.com/httpie/cli.git
synced 2025-05-13 22:06:33 +02:00
* #722: Add support for tls1.3 * #722: Document the potential support for tls1.3
This commit is contained in:
parent
91961c6b51
commit
a7d570916d
@ -927,7 +927,7 @@ SSL version
|
|||||||
Use the ``--ssl=<PROTOCOL>`` to specify the desired protocol version to use.
|
Use the ``--ssl=<PROTOCOL>`` to specify the desired protocol version to use.
|
||||||
This will default to SSL v2.3 which will negotiate the highest protocol that both
|
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
|
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.)
|
available set of protocols may vary depending on your OpenSSL installation.)
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
@ -111,6 +111,7 @@ SSL_VERSION_ARG_MAPPING = {
|
|||||||
'tls1': 'PROTOCOL_TLSv1',
|
'tls1': 'PROTOCOL_TLSv1',
|
||||||
'tls1.1': 'PROTOCOL_TLSv1_1',
|
'tls1.1': 'PROTOCOL_TLSv1_1',
|
||||||
'tls1.2': 'PROTOCOL_TLSv1_2',
|
'tls1.2': 'PROTOCOL_TLSv1_2',
|
||||||
|
'tls1.3': 'PROTOCOL_TLSv1_3',
|
||||||
}
|
}
|
||||||
SSL_VERSION_ARG_MAPPING = {
|
SSL_VERSION_ARG_MAPPING = {
|
||||||
cli_arg: getattr(ssl, ssl_constant)
|
cli_arg: getattr(ssl, ssl_constant)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user