Once I get SSL communication working, I will put together an example and although I won't make any promises, I will try to put together a patch for any changes I make to the SSL classes in the core.
I think that my issue and the request for choosing protocol version (see this thread) are very related and one patch could deal with both. Not only let the user choose the version, but also if it's client or server.