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 <1504810267.47.0.674313349048.issue27629@psf.upfronthosting.co.za>
In-reply-to
Content
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):
    pass

ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
ctx.sslsocket_class = MySSLSocket
sock = ctx.wrap_socket(socket.socket(), server_side=True)
assert isinstance(sock, MySSLSocket)
History
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: <1504810267.47.0.674313349048.issue27629@psf.upfronthosting.co.za>
2017-09-07 18:51:07christian.heimeslinkissue27629 messages
2017-09-07 18:51:07christian.heimescreate