On Thu, Nov 5, 2009 at 11:46 AM, Sabyasachi Ruj <
ruj.sabya@...> wrote:
> I am writing an application where I'll need to use non-blocking bio with
> OpenSSL.
> I create the socket myself using "socket", and supply it to the BIO by:
> bio = BIO_new_socket(sock)
> And then I pass that bio to the SSL context using:
> SSL_set_bio (stream->con,bio,bio);
> I have searched a lot to find the proper way of doing non-blocking SSL IO,
> but could not find anything in detail.
> Can anyone give me a proper code snippet of how to do non-blocking SSL
> IO? Any pointer to such information?
> --
> Sabyasachi
>
Hi,
I use non-blocking file descriptors for that. I don't know if this is
the method, but i set the fd to O_NONBLOCK and then re-read the error
from ERR_get_error().
Just as an example:
http://pastebin.com/m7b684078Regards,
--
If you want freedom, compile the source. Get gentoo.
Sebastián Treu
http://labombiya.com.ar______________________________________________________________________
OpenSSL Project
http://www.openssl.orgUser Support Mailing List
openssl-users@...
Automated List Manager
majordomo@...