-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
Description
Bug report
The function ssl.SSLSocket.shared_ciphers always returns the server's cipher list, rather than the ciphers common to both client and server. I.e., the same list as ssl.SSLContext.get_ciphers, in a different format.
This is due to the use of SSL_get_ciphers in the implementation, rather than SSL_get_shared_ciphers.
Your environment
- CPython versions tested on: 3.8.10, 3.12.0a0
- Operating system and architecture: Ubuntu 20.04, x86_64