On Thu, Sep 06, 2007 at 05:58:10PM +0200, Thomas Radke wrote:

> Marek Marcola wrote:
> >You may try:
> > - set socket fd to non-blocking, 
> > - use SSL_accept()+select() for timeout
> > - set socket fd to blocking back
> 
> When you say "use SSL_accept()+select()" what exactly do you mean by that ?
> 
> I can test the socket with select() if there is data ready to be 
> received (but not how much), and then call SSL_accept(). But until the 
> data exchange for the handshake hasn't completed yet, the SSL_accept() 
> call won't return.

A complete solution requires the use of bio_pairs. See for example the
Postfix 2.4.5 source code. Network I/O is done by Postfix code, not
OpenSSL code. See tls_bio() and network_biopair_interop().

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to