I'm surprised this hasn't been discovered yet.  Stephen just
discovered that the default return value (the value returned when a
specific control command is unimplemented) from the BIO *_ctrl()
functions is 0.  However, that is also an "OK" value from a number of
the underlying functions, like fseek() and lseek().  This is a big
clash and shouldn't be acceptable.

However, it feels like it's a bit on the late side to change that, and
the change has enormous implications for those who have relied on 0
meaning "not implemented here".

Also, this is a bit confusing if we compare with BIO_read() and
BIO_write() who will return -2 if unimplemented.

Something to think of clearing out before 0.9.7, methinks.

-- 
Richard Levitte   \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to