Skip to content

ssl.SSLSocket.shared_ciphers always returns server cipher list #96931

Description

@benfogle

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

Linked PRs

Activity

  1. added a commit that references this issue on Mar 22, 2023
  2. added 2 commits that reference this issue on Mar 22, 2023
  3. added 2 commits that reference this issue on Mar 24, 2023
  4. added a commit that references this issue on Mar 27, 2023
  5. added a commit that references this issue on Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-SSLtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions