Re: Problem with BIO_do_connect (porting from Solaris to Linux)
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Fri, 16 May 2008 18:34:16 +0200
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.
.
- Follow-Ups:
- References:
- Prev by Date: Socket Programming Problem
- Next by Date: Re: Socket Programming Problem
- Previous by thread: Problem with BIO_do_connect (porting from Solaris to Linux)
- Next by thread: Re: Problem with BIO_do_connect (porting from Solaris to Linux)
- Index(es):