Message301613
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) |
|
Date |
User |
Action |
Args |
2017-09-07 18:51:07 | christian.heimes | set | recipients:
+ christian.heimes, janssen, pitrou, vstinner, giampaolo.rodola, alex, dstufft, abarry, nemunaire |
2017-09-07 18:51:07 | christian.heimes | set | messageid: <1504810267.47.0.674313349048.issue27629@psf.upfronthosting.co.za> |
2017-09-07 18:51:07 | christian.heimes | link | issue27629 messages |
2017-09-07 18:51:07 | christian.heimes | create | |
|