This is marginally naughty, you should not peek at the internals of the SSL socket type in case they change it.