ssl.SSLSocket.shared_ciphers always returns server cipher list #96931
Copy link
Copy link
Closed
Labels
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Sep 19, 2022 - added a commit that references this issue
on Feb 13, 2025
Bug report
The function
ssl.SSLSocket.shared_ciphersalways returns the server's cipher list, rather than the ciphers common to both client and server. I.e., the same list asssl.SSLContext.get_ciphers, in a different format.This is due to the use of
SSL_get_ciphersin the implementation, rather thanSSL_get_shared_ciphers.Your environment
Linked PRs