This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients abarry, alex, christian.heimes, dstufft, giampaolo.rodola, janssen, nemunaire, pitrou, vstinner
Date 2017-09-07.18:51:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
How about I make the actual SSLSocket and SSLObject class customizable so you can override what is returned by wrap_socket() and wrap_bio()?

class MySSLSocket(ssl.SSLSocket):

ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
ctx.sslsocket_class = MySSLSocket
sock = ctx.wrap_socket(socket.socket(), server_side=True)
assert isinstance(sock, MySSLSocket)
Date User Action Args
2017-09-07 18:51:07christian.heimessetrecipients: + christian.heimes, janssen, pitrou, vstinner, giampaolo.rodola, alex, dstufft, abarry, nemunaire
2017-09-07 18:51:07christian.heimessetmessageid: <>
2017-09-07 18:51:07christian.heimeslinkissue27629 messages
2017-09-07 18:51:07christian.heimescreate