> [seggelm...@fh-muenster.de - Tue Sep 08 18:31:29 2009]:
> 
> That's just a simple example. If you use blocking sockets, it doesn't  
> return until a ClientHello with a valid cookie has been received  
> (returns 1) or an error occurred (returns 0). If you use non-blocking  
> sockets, it always returns 0 on EAGAIN, so you can use select() to  
> only call it when there's data to process and it will return as soon  
> as there is nothing left.
> 

Is there some reason you only return 0, 1 from the ctrl? I'm wondering
why you can't just return the return value of SSL_accept() (is <= 0) for
consistency with similar calls.

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to