Nikhil Sharma wrote:
> I have just started using the SSLeay library
> in my http proxy to handle https. The problem
> I am running into is that SSL_accept returns
> -1. Here is the error-status:
>  -1 error:00000000::lib(0) :func(0) :reason(0)
> 
> And ssl_get_error() reveals that the error-code
> is  SSL_ERROR_SYSCALL.

You are then supposed to look at errno to see what
the error is, I think.  

I suspect you've made some easy mistake; you might
want to try writing the tiniest test program to
demo the problem, then post it here.  In the course
of doing that, you might find your bug.
 
> The socket is non-blocking. I call poll() (ok,
> I tried select() as well) on the socket to make
> sure something is there, before calling SSL_accept().
> 
> I will really appreciate it, if someone could give
> me a clue about what's wrong.

When I had to track down where that kind of error was
coming from, I built openssl from sources, jammed
printf("%s %d\n", __FILE__, __LINE__);'s in every function,
and linked straight to the .a's; that helped narrow down
the mystery enough to use a debugger. 
- Dan
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to