RE: SSL_read()
Hi Mark, SSL_get_error() returned 0 Carlo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Sent: Thursday, October 19, 2006 8:09 AM To: openssl-users@openssl.org Subject: RE: SSL_read() Hi Carlo, > I have a single threaded application where a SSL_read() is returning a > return code of 0. The openSSL doc suggests that this is due to a > socket shutdown by the peer. Upon this error, is there anything that > I can do to recover the connection and/or data or do I just need to > start over? Thank you. Call SSL_get_error() to find out the reason. Regards, Mark __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
SSL_read()
Title: SSL_read() Hello, I have a single threaded application where a SSL_read() is returning a return code of 0. The openSSL doc suggests that this is due to a socket shutdown by the peer. Upon this error, is there anything that I can do to recover the connection and/or data or do I just need to start over? Thank you. Carlo Agopian
RE: large data read error
Thanks, I will. What's the largest value this can be set to? Or is it better to do chunked reads? Carlo Agopian [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marek Marcola Sent: Friday, October 06, 2006 11:52 AM To: openssl-users@openssl.org Subject: RE: large data read error Hello, > Is there a way to overcome the 16k limit besides breaking down the > message/response? Try to set SSL_CTX option SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER to extend SSL buffer to 32k. Best regards, -- Marek Marcola <[EMAIL PROTECTED]> __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
RE: large data read error
Is there a way to overcome the 16k limit besides breaking down the message/response? Carlo Agopian [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Krishna M Singh Sent: Thursday, August 24, 2006 2:39 AM To: openssl-users@openssl.org Subject: Re: large data read error Hi Sendil I am not sure but I haven't seen any such limit of 5K in my usage of the OpenSSL.. OpenSSL record size is around 16K i remember. Can problem be with ur server of client code (not OpenSSL) where some buffer size is hardcoded to 5K and than return values are nto approapriately handled. Just a wild guess.. -Krishna Flextronics, India On 8/20/06, Sendil kumar <[EMAIL PROTECTED]> wrote: > > > Hi, > > I've got some code that seems to work, except when the server responds > with a 'large' amount of data. > > When the server sends 5000 bytes of data to the client ,the client was > able to read it and every thing goes fine.But when the server passes > more than 5000 bytes of data to the client,the client crashes and > SSL_read() gives SSL_ERROR_SSL error but no data returned.I tried but > couldn't find any solution. please give me any solution this seems to > be a headdacke for me. > > Thanks, __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
SSL Error
Title: SSL Error Hello, Has anybody seen the following runtime error message before? error::lib(0):func(0):reason(0) It seems to be coming from the following openssl function: ERR_error_string(m_sslError, 0). This error occurs in a C++ client application that sends SSL encrypted messages over TCP-IP. The application is developed and executed in AIX5.2 O/S and uses 0.9.7d version of SSL. The error occurs when I try to reuse a socket that I had previously opened. After this error message I am able to open a fresh socket and successfully send a message. The interesting thing is that this only happens on a certain server, and of course it is not the development server. When I disable SSL encryption, the error does not occur. I'm not readily able to do any debugging on this server so, before I go digging into all the difference between the 2 servers, I was wondering if anybody has seen this error message and can provide some clues. Thank you, Carlo Agopian [EMAIL PROTECTED]