diff options
author | Christian Heimes <christian@cheimes.de> | 2013-10-29 20:08:56 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-10-29 20:08:56 (GMT) |
commit | 3046fe4c039f333c1dc8d7758990df5bcadef873 (patch) | |
tree | 946d44d083e8e93e5b94bb176d46810948f50661 /Doc/library | |
parent | fb6b44e83083df34e8fccced4a2b518b27718144 (diff) | |
download | cpython-3046fe4c039f333c1dc8d7758990df5bcadef873.zip cpython-3046fe4c039f333c1dc8d7758990df5bcadef873.tar.gz cpython-3046fe4c039f333c1dc8d7758990df5bcadef873.tar.bz2 |
Issue #18747: document issue with OpenSSL's CPRNG state and fork
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/os.rst | 4 | ||||
-rw-r--r-- | Doc/library/ssl.rst | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 59457f7..2c33366 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -2582,6 +2582,10 @@ written in Python, such as a mail server's external command delivery program. Note that some platforms including FreeBSD <= 6.3, Cygwin and OS/2 EMX have known issues when using fork() from a thread. + .. warning:: + + See :mod:`ssl` for applications that use the SSL module with fork(). + Availability: Unix. diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index a688e46..a12ce5b 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -28,6 +28,14 @@ probably additional platforms, as long as OpenSSL is installed on that platform. operating system socket APIs. The installed version of OpenSSL may also cause variations in behavior. +.. warning:: + + OpenSSL's internal random number generator does not properly handle fork. + Applications must change the PRNG state of the parent process if they use + any SSL feature with with :func:`os.fork`. Any successful call of + :func:`~ssl.RAND_add`, :func:`~ssl.RAND_bytes` or + :func:`~ssl.RAND_pseudo_bytes` is sufficient. + This section documents the objects and functions in the ``ssl`` module; for more general information about TLS, SSL, and certificates, the reader is referred to the documents in the "See Also" section at the bottom. |