> From: owner-openssl-us...@openssl.org On Behalf Of Saikat Debnath > Sent: Wednesday, 15 June, 2011 10:59
> I am using openssl-1.0.0d version and having error in SSL_accept. > SSL_accept() returns -1 which is SSL_ERROR_SYSCALL with > errno 2 (No such file or directory) and > ERR_error_string() retuns > error:00000000:lib(0):func(0):reason(0) SSL_ERROR_SYSCALL is 5 not -1, and SSL_accept never returns it. If SSL_accept returns <0 then you should call SSL_get_error; THAT may return 5 SSL_ERROR_SYSCALL and if so you should check both errno (or WSAGetLastError() on Windows) and the errorqueue. ERR_error_string only works for an errorcode from the errorqueue e.g. from ERR_get_error, NOT a return value from SSL_accept or SSL_get_error or a value of errno or WSAGetLastError. For errno you can use strerror (or perror). For WSAGetLastError you can use FormatMessage, but I find it much less convenient. Are you giving SSL_accept a valid SSL object with a valid socket (or perhaps other BIO)? Are you using blocking or nonblocking? If you can reduce your code to a minimal program with no outside dependencies that still exhibits the error, post it. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org