On Fri, Mar 16, 2007 at 01:51:15PM -0700, David Schwartz wrote: > > > When an SSL_read() operation has to be repeated because of > > SSL_ERROR_WANT_READ > > or SSL_ERROR_WANT_WRITE, it must be repeated with the same arguments. > > > > I'm having a hard time to understand the openssl code to confirm that > > SSL_read doesn't need the same buffer on retries. > > > > And on the other hand: A friend of mine told me that he used SSL_read on > > non-blocking sockets, and he got bad results from not passing the > > same buffers to SSL_read on retries. > > > > So my question is: Does someone know whether that requirement is still > > in the (current) openssl code? And could the requirement even be dropped > > (from the man page)? > > This is all irritating legacy cruft. Any sane non-blocking OpenSSL user > should set SSL_MODE_ENABLE_PARTIAL_WRITE and > SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER.
Thos are for SSL_write as far as I understand the manpage ode SSL_CTX_set_mode. What about SSL_read? My question was about SSL_read. Robin ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
