Antoine Pitrou <antoine <at> python.org> writes: > > You mean for use with SSL_set_app_data? Yes, if you look in ``_servername_callback``, you can see where it uses ``SSL_get_app_data`` and then reads ``ssl->Socket``, which is supposed to be the same object that's returned by ``context.wrap_socket()``. Alex