On Wed, Jun 16, 1999 at 10:12:34AM +0200, andy wrote:

> where to get the exactly meaning of the ssl_connect return values.
> 
> i guess that zero is for a failed connect to the specified server and
> everything bigger than zero is for a succesfull connect?

0 is always an error (peer closed during handshake); -1 is an error
unless you are using non-blocking sockets, in which case you may have
to check BIO_sock_should_retry; a positive value (actually always 1, I
think) means that the handshake completed succesfully.  You should
also be able to feed the return value of SSL_connect into
SSL_get_error so that you can handle all the cases in a single switch
statement.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to