Hi All,

we are working on client - server architecture. We are using openssl for
communication.
My problem is that - while transferring data, SSL_read() always fails (after
transferring few KB of data).
The follwoing error is returned -
----------------------------------------------------------------------------------
 SSL_read() returns SSL_ERROR_SYSCALL

"error:00000005:lib(0):func(0):DH lib"
-------------------------------------------------------------------------------

This always happens between data transfer.

Here's the code snippet
gSSL = SSL_new(ctx);

SSL_set_fd(gSSL, m_Socket);

result = SSL_connect(gSSL);

//Get certificate

** the following piece of code is giving problem

ret=select(1,&sckt,NULL,NULL, &timeout);

ERR_clear_error();

ret = SSL_read(gSSL,buffer,size);



Any help is much appreciated.

Warm Regards,

Arun S.

Reply via email to