Message186539
I am trying to use SSLContext.set_servername_callback in my program but when a callback is set, it seems that connecting to the server without providing a server name causes a segmentation fault. (e.g. 'openssl s_client -connect localhost:443 -servername foo' is OK but 'openssl s_client -connect localhost:443' crashes the server. A simple test that causes the same error is included in the patch.)
My expectation was to get None as the second argument of the callback in such cases so I modified Modules/_ssl.c (as in the patch) to make it behave as I expected.
The modification seems to work fine as far as I've tested, but I'd appreciate if an official fix is available. |
|
Date |
User |
Action |
Args |
2013-04-11 03:14:56 | kyoshida | set | recipients:
+ kyoshida, jcea, pitrou, christian.heimes, grooverdan, python-dev, piotr.dobrogost, daniel-black |
2013-04-11 03:14:55 | kyoshida | set | messageid: <1365650095.91.0.718509923747.issue8109@psf.upfronthosting.co.za> |
2013-04-11 03:14:55 | kyoshida | link | issue8109 messages |
2013-04-11 03:14:55 | kyoshida | create | |
|