Martin Sj�gren:

> When you write a zero-length string with SSL_write, OpenSSL signals a
> "protocol-violating EOF" even though no such thing has happened. My
> guess is that a zero returned is misinterpreted somewhere though I have
> not had time to dig through the source.

SSL_write() with length 0 will return 0, and this return value is
always interpreted as "protocol-violating EOF" according to the
SSL_get_error() manpage (SSL_get_error() returns SSL_ERROR_ZERO_RETURN).
This is an inconsistency, but even if we change SSL_write() to
return a different value, the program will not work -- we cannot
return a positive value, and negative values would be interpreted as
errors too.


-- 
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]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to