whatsnew: SSLcontext.load_verify_locations cadata argument (#18138)

This commit is contained in:
R David Murray 2014-03-08 23:19:45 -05:00
parent e6bd31ea92
commit 04ea3f35bd
1 changed files with 5 additions and 0 deletions

View File

@ -1269,6 +1269,11 @@ TLSv1.2 support) have been added; support for these protocols is only available
Python is linked with OpenSSL 1.0.1 or later. (Contributed by Michele Orrù and Python is linked with OpenSSL 1.0.1 or later. (Contributed by Michele Orrù and
Antoine Pitrou in :issue:`16692`) Antoine Pitrou in :issue:`16692`)
:class:`~ssl.SSLContext` method :meth:`~ssl.SSLContext.load_verify_locations`
accepts a new optional argument *cadata*, which can be used to provide PEM or
DER encoded certificates directly via strings or bytes, respectively.
(Contributed by Christian Heimes in :issue:`18138`.)
New function :func:`~ssl.get_default_verify_paths` returns New function :func:`~ssl.get_default_verify_paths` returns
a named tuple of the paths and environment variables that the a named tuple of the paths and environment variables that the
:meth:`~ssl.SSLContext.set_default_verify_paths` method uses to set :meth:`~ssl.SSLContext.set_default_verify_paths` method uses to set