On Wed, Aug 23, 2000 at 10:03:42AM +0530, Amit Chopra wrote:

>   Steve mentioned that the size of the memory BIO can grow indefinitely
> until memory allocations fail. I assume what he is referring to is that
> when BIO_write is called a reallocation is done if the data to be
> written is more than the current size of the BIO buffer.

Yes.  If you don't like this, forget about memory BIOs and use BIO
pairs instead.  See example code in ssl/ssltest.c or in Postfix-TLS.
BIO pairs do buffer allocation only once.


-- 
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
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to