Skip to content

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

Merged
tiran merged 1 commit into
python:3.7from
miss-islington:backport-141c5e8-3.7
Feb 24, 2018
Merged

[3.7] bpo-24334: Cleanup SSLSocket (GH-5252)#5857
tiran merged 1 commit into
python:3.7from
miss-islington:backport-141c5e8-3.7

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor
  • 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
Copy Markdown
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
Copy Markdown

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

@miss-islington

Copy link
Copy Markdown
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