From 8cbe13e450308177abac70765027a8fe3a3e0444 Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Sun, 2 Jul 2023 20:41:21 -0400 Subject: [PATCH] fix docs of `SSLSocket.shared_ciphers()` Note `None` is returned if the SSL session has is reused. --- Doc/library/ssl.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 18a6c5ab4858a4..7d3740072849cd 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1222,8 +1222,8 @@ SSL sockets also have the following additional methods and attributes: entry of the returned list is a three-value tuple containing the name of the cipher, the version of the SSL protocol that defines its use, and the number of secret bits the cipher uses. :meth:`~SSLSocket.shared_ciphers` returns - ``None`` if no connection has been established or the socket is a client - socket. + ``None`` if no connection has been established, the socket is a client + socket, or the session has been reused. .. versionadded:: 3.5