>     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.

DS



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to