From: "Aaron D. Gifford" Date: 2010-12-16T05:16:05+09:00 Subject: Re: Using OpenSSL in Ruby 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* Aaron out.