Message181889
I think my original implementation of the SNI callback to see a original sslcontext was wrong. It would be much more useful for the SSLContext.set_servername_callback to take a callable and an object as an argument.
This would allow constructs like the following where self can be used within the callback. Example:
def cb_sni(ssl_sock, server_name, self):
self.sniname = server_name
self.context.set_servername_callback(cb_sni, self)
The original functionality can still occur with:
self.context.set_servername_callback(cb_sni, self.context)
Agree? |
|
Date |
User |
Action |
Args |
2013-02-11 10:07:39 | grooverdan | set | recipients:
+ grooverdan, pitrou |
2013-02-11 10:07:39 | grooverdan | set | messageid: <1360577259.03.0.413727229481.issue17181@psf.upfronthosting.co.za> |
2013-02-11 10:07:38 | grooverdan | link | issue17181 messages |
2013-02-11 10:07:38 | grooverdan | create | |
|