Re: Question on OpenSSL encryption

2012-01-08 Thread Ben Laurie
On Sat, Jan 7, 2012 at 4:12 PM, Manish Jain invalid.poin...@gmail.com wrote: Hello Michael/Anyone Else, Can you be kind enough to please point me to some place/URL where I can get a bit more information about how the key is negotiated upon ? I have gone through a a couple of write-ups on

Re: socket functions on fds

2012-01-08 Thread Nathan Smyth
Pay special attention to the fact that sometimes an OpenSSL call to send or recv will ask you to wait (select) for it's own direction to be ready, sometimes for the other direction to be ready, depending on internal OpenSSL states.  Selects before the SSL_read/writes? Any chance of a link to

Re: socket functions on fds

2012-01-08 Thread Nathan Smyth
Or perhaps, more specifically, any examples to address the following.  As I seem to be getting deadlocks :( Per the OpenSSL FAQ: http://www.openssl.org/support/faq.html#PROG10 A pitfall to avoid: Don't assume that SSL_read() will just read from the underlying transport or that SSL_write() will

Re: socket functions on fds

2012-01-08 Thread Jakob Bohm
Sorry, I actually haven't been using that part of OpenSSL myself, so I don't know the details, but Michael Smith has offered to help you, could you ask him? What I have read elsewhere seems to be something like: When using non-blocking sockets mode, SSL_read(), SSL_write() etc. may return