Re: Problem with BIO_do_connect (porting from Solaris to Linux)



cappeca <cappeca@xxxxxxxxxxxxx> writes:

[...]

printf("testando conexao\n"); /*debug*/
retornerro = BIO_do_connect(conn);
if (retornerro <= 0)
{
printf("ferrou: %d !\n", retornerro); /*debug*/
error_log("Error connecting to remote machine", __LINE__);
/* Atualiza status */
BaseExtAtuStatus(0);
logoff();
exit(1);
}
printf("ok\n"); /*debug*/

[...]

Where can I go from here?

Look at the actual error code to determine what the problem is
(Either something OpenSSL-specific or a system error. 'strace' should
give a hint for the latter case).

Generally, never ever cause a program to print 'something went wrong'
-- that's the one thing which can usually be noticed without help from
the software, but always try to be as specific as possible wrt what
went wrong.

.