Skip to content

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 christian@python.org

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 <christian@python.org>
@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