Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.7] bpo-24334: Cleanup SSLSocket (GH-5252) #5857

Merged
merged 1 commit into from
Feb 24, 2018

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Feb 24, 2018

  • The SSLSocket is no longer implemented on top of SSLObject to
    avoid an extra level of indirection.
  • Owner and session are now handled in the internal constructor.
  • _ssl._SSLSocket now uses the same method names as SSLSocket and
    SSLObject.
  • Channel binding type check is now handled in C code. Channel binding
    is always available.

The patch also changes the signature of SSLObject.init(). In my
opinion it's fine. A SSLObject is not a user-constructable object.
SSLContext.wrap_bio() is the only valid factory.
(cherry picked from commit 141c5e8)

Co-authored-by: Christian Heimes [email protected]

https://bugs.python.org/issue24334

* The SSLSocket is no longer implemented on top of SSLObject to
  avoid an extra level of indirection.
* Owner and session are now handled in the internal constructor.
* _ssl._SSLSocket now uses the same method names as SSLSocket and
  SSLObject.
* Channel binding type check is now handled in C code. Channel binding
  is always available.

The patch also changes the signature of SSLObject.__init__(). In my
opinion it's fine. A SSLObject is not a user-constructable object.
SSLContext.wrap_bio() is the only valid factory.
(cherry picked from commit 141c5e8)

Co-authored-by: Christian Heimes <[email protected]>
@miss-islington
Copy link
Contributor Author

@tiran: Backport status check is done, and it's a success ✅ .

@tiran tiran merged commit 8fa8478 into python:3.7 Feb 24, 2018
@bedevere-bot
Copy link

@tiran: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington
Copy link
Contributor Author

Thanks, @tiran!

@miss-islington miss-islington deleted the backport-141c5e8-3.7 branch February 24, 2018 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants