On Wed, May 29, 2002 at 04:22:36PM +1000, Alex Cosic wrote:
> What has happened is  that the programs hang on SSL_get_error (sslx->ssl,
> SSL_do_handshake (sslx->ssl))), or effectively on 
> SSL_do_hadshake(sslx->ssl). This instruction  does not give the output
> argument ( I expected a sort of int <= 0 to indicate error) but it hangs.
> That is the problem what I am trying to solve. In fact is it openssl bug
> when SSL_do_handshake is not giving any error response but hang?

When using blocking sockets, SSL_do_handshake will only return once
the handshake succeeded or finally failed completely.

> I will very much appreciate if someone could give me advice on how to time
> out  handshake to prevent the system to hang or that something is wrong in
> my code on how I set my  SSL connection.
Use non-blocking mode.

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
http://www.aet.TU-Cottbus.DE/personen/jaenicke/
BTU Cottbus, Allgemeine Elektrotechnik
Universitaetsplatz 3-4, D-03044 Cottbus
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to