Richard Levitte - VMS Whacker wrote:
> 
> 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.
> 

Just to add a bit. The 0 for unimplemented ctrls is for source/sink
BIOs AFAICs.

Filter BIOs just pass the ctrl along the chain. That's useful provided
you are aware of it, you can pass BIO specific ctrls into the chain at
the end and it will get to the right place.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.

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

Reply via email to