mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-30622: Improve NPN support detection (#5859)
The ssl module now detects missing NPN support in LibreSSL. Co-Authored-By: Bernard Spil <brnrd@FreeBSD.org> Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
141c5e8c24
commit
6cdb7954b0
4 changed files with 42 additions and 11 deletions
|
@ -2434,6 +2434,23 @@ successful call of :func:`~ssl.RAND_add`, :func:`~ssl.RAND_bytes` or
|
|||
:func:`~ssl.RAND_pseudo_bytes` is sufficient.
|
||||
|
||||
|
||||
.. ssl-libressl:
|
||||
|
||||
LibreSSL support
|
||||
----------------
|
||||
|
||||
LibreSSL is a fork of OpenSSL 1.0.1. The ssl module has limited support for
|
||||
LibreSSL. Some features are not available when the ssl module is compiled
|
||||
with LibreSSL.
|
||||
|
||||
* LibreSSL >= 2.6.1 no longer supports NPN. The methods
|
||||
:meth:`SSLContext.set_npn_protocols` and
|
||||
:meth:`SSLSocket.selected_npn_protocol` are not available.
|
||||
* :meth:`SSLContext.set_default_verify_paths` ignores the env vars
|
||||
:envvar:`SSL_CERT_FILE` and :envvar:`SSL_CERT_PATH` although
|
||||
:func:`get_default_verify_paths` still reports them.
|
||||
|
||||
|
||||
.. seealso::
|
||||
|
||||
Class :class:`socket.socket`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue