summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.7.rst
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2018-02-27 10:54:43 (GMT)
committerGitHub <noreply@github.com>2018-02-27 10:54:43 (GMT)
commit698dde16f60729d9e3f53c23a4ddb8e5ffe818bf (patch)
tree5b63122f0f74257a629f45649ed3511612b6e5b0 /Doc/whatsnew/3.7.rst
parent9d50ab563df6307cabbcc9883cb8c52c614b0f22 (diff)
downloadcpython-698dde16f60729d9e3f53c23a4ddb8e5ffe818bf.zip
cpython-698dde16f60729d9e3f53c23a4ddb8e5ffe818bf.tar.gz
cpython-698dde16f60729d9e3f53c23a4ddb8e5ffe818bf.tar.bz2
bpo-31453: Add setter for min/max protocol version (#5259)
OpenSSL 1.1 has introduced a new API to set the minimum and maximum supported protocol version. The API is easier to use than the old OP_NO_TLS1 option flags, too. Since OpenSSL has no call to set minimum version to highest supported, the implementation emulate maximum_version = MINIMUM_SUPPORTED and minimum_version = MAXIMUM_SUPPORTED by figuring out the minumum and maximum supported version at compile time. Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Doc/whatsnew/3.7.rst')
-rw-r--r--Doc/whatsnew/3.7.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 2d62ffa..fa2d472 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -683,6 +683,11 @@ feature. Instances must be created with :class:`~ssl.SSLContext` methods
:meth:`~ssl.SSLContext.wrap_socket` and :meth:`~ssl.SSLContext.wrap_bio`.
(Contributed by Christian Heimes in :issue:`32951`)
+OpenSSL 1.1 APIs for setting the minimum and maximum TLS protocol version are
+available as as :attr:`~ssl.SSLContext.minimum_version` and
+:attr:`~ssl.SSLContext.maximum_version`. Supported protocols are indicated
+by new flags like :data:`~ssl.HAS_TLSv1_1`.
+(Contributed by Christian Heimes in :issue:`32609`.)
string
------