Ehsan Amiri wrote:
> 
> Hello All
> 
> I want to use a buffer BIO independently, but after
> initializing a (BIO *) using BIO_new(BIO_f_buffer()) I
> can not write to it( BIO_write() returns zero).
> 
> Could anyone help me resolve this problem?
> 

It depends on what you want to do. If you want to write data that will
be stored in memory then a memory BIO can be used.

Buffer BIOs are filter BIOs meaning that they cannot be used
independently: they must have at least one source/sink BIO following
them in the chain.

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