Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11a4270

Browse files
committed
What's New in Python 3.4: Security improvements
1 parent 637d2e9 commit 11a4270

2 files changed

Lines changed: 28 additions & 4 deletions

File tree

Doc/library/multiprocessing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ to start a process. These *start methods* are
137137
over Unix pipes.
138138

139139
.. versionchanged:: 3.4
140-
*span* added on all unix platforms, and *forkserver* added for
140+
*spawn* added on all unix platforms, and *forkserver* added for
141141
some unix platforms.
142142
Child processes no longer inherit all of the parents inheritable
143143
handles on Windows.

Doc/whatsnew/3.4.rst

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ Significantly Improved Library Modules:
124124
* :ref:`Single-dispatch generic functions <whatsnew-singledispatch>` in
125125
:mod:`functools` (:pep:`443`).
126126
* New :mod:`pickle` :ref:`protocol 4 <whatsnew-protocol-4>` (:pep:`3154`).
127-
* :ref:`TLSv1.1 and TLSv1.2 support <whatsnew-tls-11-12>` for :mod:`ssl`
128-
(:issue:`16692`).
129127
* :mod:`multiprocessing` now has :ref:`an option to avoid using os.fork
130128
on Unix <whatsnew-multiprocessing-no-fork>` (:issue:`8713`).
131129
* :mod:`email` has a new submodule, :mod:`~email.contentmanager`, and
@@ -136,6 +134,26 @@ Significantly Improved Library Modules:
136134
correct introspection of a much wider variety of callable objects
137135
* The :mod:`ipaddress` module API has been declared stable
138136

137+
Security improvements:
138+
139+
* :ref:`Secure and interchangeable hash algorithm <whatsnew-pep-456>`
140+
(:pep:`456`).
141+
* :ref:`Make newly created file descriptors non-inheritable <whatsnew-pep-446>`
142+
(:pep:`446`) to avoid leaking file descriptors to child processes.
143+
* A new :func:`hashlib.pbkdf2_hmac` function provides
144+
the `PKCS#5 password-based key derivation function 2
145+
<http://en.wikipedia.org/wiki/PBKDF2>`_.
146+
* :ref:`TLSv1.1 and TLSv1.2 support <whatsnew-tls-11-12>` for :mod:`ssl`.
147+
* :ref:`Retrieving certificates from the Windows system cert store support
148+
<whatsnew34-win-cert-store>` for :mod:`ssl`.
149+
* :ref:`Server-side SNI (Server Name Indication) support
150+
<whatsnew34-sni>` for :mod:`ssl`.
151+
* The :class:`ssl.SSLContext` class got a :ref:`lot of improvements
152+
<whatsnew34-sslcontext>`.
153+
* :mod:`multiprocessing` now has :ref:`an option to avoid using os.fork
154+
on Unix <whatsnew-multiprocessing-no-fork>`: *spawn* and *forkserver* avoid
155+
sharing data with child processes; child processes no longer inherit all of
156+
the parents inheritable handles on Windows.
139157

140158
CPython implementation improvements:
141159

@@ -1364,6 +1382,8 @@ TLSv1.2 support) have been added; support for these protocols is only available
13641382
Python is linked with OpenSSL 1.0.1 or later. (Contributed by Michele Orrù and
13651383
Antoine Pitrou in :issue:`16692`)
13661384

1385+
.. _whatsnew34-sslcontext:
1386+
13671387
:class:`~ssl.SSLContext` method :meth:`~ssl.SSLContext.load_verify_locations`
13681388
accepts a new optional argument *cadata*, which can be used to provide PEM or
13691389
DER encoded certificates directly via strings or bytes, respectively.
@@ -1383,12 +1403,16 @@ s), as well as a :meth:`~ssl.SSLContext.get_ca_certs` method that returns a
13831403
list of the loaded ``CA`` certificates. (Contributed by Christian Heimes in
13841404
and :issue:`18147`.)
13851405

1406+
.. _whatsnew34-win-cert-store:
1407+
13861408
Two new windows-only functions, :func:`~ssl.enum_certificates` and
13871409
:func:`~ssl.enum_crls` provide the ability to retrieve certificates,
13881410
certificate information, and CRLs from the Windows cert store. (Contributed
13891411
by Christian Heimes in :issue:`17134`.)
13901412

1391-
Support for server-side SNI using the new
1413+
.. _whatsnew34-sni:
1414+
1415+
Support for server-side SNI (Server Name Indication) using the new
13921416
:meth:`ssl.SSLContext.set_servername_callback` method.
13931417
(Contributed by Daniel Black in :issue:`8109`.)
13941418

0 commit comments

Comments
 (0)