On Sat, Oct 22, 2011, Akanksha Shukla wrote:
>
> 5) BIO_set_nbio(conn, 1);
>
> 6) int retVal = BIO_do_connect(conn);
>
> if(retVal <= 0)
>
> {
>
> cout << " The Bio_do_connect failed" << endl;
>
> }
>
>
>
> After executing the program, I am getting output as :
>
> The socket is created successfully
>
> The socket is connected successfully
>
> Bio_do_connect failed
>
You aren't calling BIO_do_connect() correctly. A <= 0 return value isn't
necessarily an error it may be a request to retry the operation. See the BIO
manual pages for more information.
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
User Support Mailing List [email protected]
Automated List Manager [email protected]