RE: SSL_Connect return 0 with error 5

2014-02-27 Thread Dave Thompson
If SSL_get_error returns 5 after most SSL_* returns <=0, that is SSL_ERROR_SYSCALL. An error occurred on a socket I/O call. Look at errno on Unix or [WSA]GetLastError() on Windows. For Unix you can just use strerror() or perror() to get an explanation; for Windows the MS CRT doesn't know about

Re: SSL_Connect return 0 with error 5

2014-02-26 Thread Viktor Dukhovni
On Wed, Feb 26, 2014 at 04:52:11AM +, Afroz Jahan wrote: > We could not able to trace out where exactly the problem is as > SSL_connect() returned 0 with ErrorNo:5 > Error:error:0005:lib(0):func(0):DH lib $ perl -le 'print $!=5;' Input/output error The problem is at the socket la