On Fri, Jul 19, 2002 at 10:39:21AM +0200, Martin Sj�gren via RT wrote:

> Note that it's perfectly valid to call write(2) with an empty string [...]

This is true only for regular files.  According to the The Single UNIX
Specification, Version 2, and related write() manual pages on systems
such as Solaris:

     If nbyte is 0, write() will return 0 and have no other results if
     the file is a regular file; otherwise, the results are unspecified.


> A warning in the man pages for SSL_write (and probably SSL_read too)
> would a good start for this.

I agree.  Actually it should be quite easy to change OpenSSL so that
this problem is avoided (I just can't do this in the the 0.9.6 branch
because I have to extend the SSL structure, which will destroy binary
compatibility).


-- 
Bodo M�ller <[EMAIL PROTECTED]>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036

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

Reply via email to