Skip to content

Commit 8cbe13e

Browse files
committed
fix docs of SSLSocket.shared_ciphers()
Note `None` is returned if the SSL session has is reused.
1 parent 569887a commit 8cbe13e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/ssl.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,8 +1222,8 @@ SSL sockets also have the following additional methods and attributes:
12221222
entry of the returned list is a three-value tuple containing the name of the
12231223
cipher, the version of the SSL protocol that defines its use, and the number
12241224
of secret bits the cipher uses. :meth:`~SSLSocket.shared_ciphers` returns
1225-
``None`` if no connection has been established or the socket is a client
1226-
socket.
1225+
``None`` if no connection has been established, the socket is a client
1226+
socket, or the session has been reused.
12271227

12281228
.. versionadded:: 3.5
12291229

0 commit comments

Comments
 (0)