From: Eric Hodel Date: 2010-12-17T08:17:36+09:00 Subject: Re: Using OpenSSL in Ruby On Dec 15, 2010, at 12:16, Aaron D. Gifford wrote: > On Wed, Dec 15, 2010 at 8:14 AM, Brian Candler wrote: >> You could create a SocketPair, and demux the TLS stuff into that. You >> would need to beware of it blocking, so perhaps run the TLS stuff in a >> separate thread. >> >> http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/26d3538da0410b8b/fdc3c5c6686ceb49?lnk=gst&q=Socket.pair&rnum=2&hl=en#fdc3c5c6686ceb49 >> >> For regular TLS using a socket, ruby openssl is pretty simple. There's >> code in ruby-ldapserver which does it. > > Thanks, Brian. Sadly, I require non-blocking I/O and a > single-threaded app. I'm debating now whether or not to write a bio > wrapper Ruby extension in C and use that... *sigh* If you do this, please let me know. I can help integrate it into Ruby's OpenSSL binding.