Skip to content

Commit 66db041

Browse files
committed
Mention ssl.SSLObject in the NEWS entry
1 parent 278cefd commit 66db041

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
:mod:`ssl`: Update :class:`ssl.SSLSocket` for OpenSSL 4. The class now
2-
remembers if it gets a :exc:`ssl.SSLEOFError`. In this case, following
3-
:meth:`~ssl.SSLSocket.read`, :meth:`!sendfile`, :meth:`~ssl.SSLSocket.write`,
4-
and :meth:`~ssl.SSLSocket.do_handshake` calls raise :exc:`ssl.SSLEOFError`
5-
without calling the underlying OpenSSL function. Thanks to that,
6-
:class:`ssl.SSLSocket` behaves the same on all OpenSSL versions on EOF. Patch
7-
by Victor Stinner.
1+
:mod:`ssl`: Update :class:`ssl.SSLSocket` and :class:`ssl.SSLObject` for
2+
OpenSSL 4. The class now remembers if it gets a :exc:`ssl.SSLEOFError`. In this
3+
case, following :meth:`~ssl.SSLSocket.read`, :meth:`!sendfile`,
4+
:meth:`~ssl.SSLSocket.write`, and :meth:`~ssl.SSLSocket.do_handshake` calls
5+
raise :exc:`ssl.SSLEOFError` without calling the underlying OpenSSL function.
6+
Thanks to that, :class:`ssl.SSLSocket` behaves the same on all OpenSSL versions
7+
on EOF. Patch by Victor Stinner.

Modules/_ssl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ typedef struct {
377377
enum py_ssl_server_or_client socket_type;
378378
PyObject *owner; /* weakref to Python level "owner" passed to servername callback */
379379
PyObject *server_hostname;
380-
// gh-148292: If non-zero, read(), sendfile() and write() methods raise
381-
// SSLEOFError without calling the underlying OpenSSL function. Set to 1
382-
// on PY_SSL_ERROR_EOF error.
380+
// gh-148292: If non-zero, read(), sendfile(), write() and do_handshake()
381+
// methods raise SSLEOFError without calling the underlying OpenSSL
382+
// function. Set to 1 on PY_SSL_ERROR_EOF error.
383383
//
384384
// On OpenSSL 4, if SSL_read_ex() fails with
385385
// SSL_R_UNEXPECTED_EOF_WHILE_READING, the following SSL_read_ex() call

0 commit comments

Comments
 (0)