Repository navigation
bpo-24334: Cleanup SSLSocket - #5252
Conversation
4ce6638 to
76b519c
Compare
There was a problem hiding this comment.
What do "mode 0" and "mode 2" refer to?
There was a problem hiding this comment.
Not sure the redundancy adds something here?
76b519c to
7f303a7
Compare
|
@pitrou I have addressed your review comments. Both places are remnants of another patch to implement more shutdown methods. I have removed them from this PR. https://bugs.python.org/issue27815#msg310403 explains the additional shutdown methods. I decided to move new shutdown methods to another PR and get this PR out before beta1. |
7f303a7 to
2a4f5d2
Compare
2a4f5d2 to
f4af45c
Compare
* 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.
f4af45c to
9a5cfc5
Compare
|
Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
|
@tiran: Please replace |
* 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]>
|
GH-5857 is a backport of this pull request to the 3.7 branch. |
* 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]>
avoid an extra level of indirection.
SSLObject.
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.
https://bugs.python.org/issue24334